@scalar/api-reference 1.32.10 → 1.34.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 (432) hide show
  1. package/CHANGELOG.md +99 -0
  2. package/dist/browser/standalone.js +16194 -15784
  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/Anchor/WithBreadcrumb.vue.d.ts +24 -0
  8. package/dist/components/Anchor/WithBreadcrumb.vue.d.ts.map +1 -0
  9. package/dist/components/Anchor/WithBreadcrumb.vue.js +4 -0
  10. package/dist/components/Anchor/WithBreadcrumb.vue2.js +46 -0
  11. package/dist/components/Anchor/index.d.ts +1 -0
  12. package/dist/components/Anchor/index.d.ts.map +1 -1
  13. package/dist/components/ApiReference.vue.js +6 -6
  14. package/dist/components/ApiReferenceLayout.vue.d.ts.map +1 -1
  15. package/dist/components/ApiReferenceLayout.vue.js +6 -6
  16. package/dist/components/ApiReferenceLayout.vue2.js +179 -193
  17. package/dist/components/ApiReferenceLayout.vue3.js +4 -0
  18. package/dist/components/ApiReferenceLayout.vue4.js +4 -0
  19. package/dist/components/ApiReferenceLayout.vue5.js +4 -0
  20. package/dist/components/ApiReferenceLayout.vue6.js +4 -0
  21. package/dist/components/Badge/Badge.vue.js +1 -1
  22. package/dist/components/Badge/Badge.vue2.js +4 -0
  23. package/dist/components/ClassicHeader.vue.js +1 -1
  24. package/dist/components/ClassicHeader.vue2.js +4 -0
  25. package/dist/components/Content/ClientLibraries/ClientLibraries.vue.d.ts +14 -1
  26. package/dist/components/Content/ClientLibraries/ClientLibraries.vue.d.ts.map +1 -1
  27. package/dist/components/Content/ClientLibraries/ClientLibraries.vue.js +3 -3
  28. package/dist/components/Content/ClientLibraries/ClientLibraries.vue2.js +74 -84
  29. package/dist/components/Content/ClientLibraries/ClientLibraries.vue3.js +4 -0
  30. package/dist/components/Content/ClientLibraries/ClientSelector.vue.d.ts +8 -0
  31. package/dist/components/Content/ClientLibraries/ClientSelector.vue.d.ts.map +1 -1
  32. package/dist/components/Content/ClientLibraries/ClientSelector.vue.js +2 -2
  33. package/dist/components/Content/ClientLibraries/ClientSelector.vue2.js +81 -80
  34. package/dist/components/Content/ClientLibraries/ClientSelector.vue3.js +4 -0
  35. package/dist/components/Content/ClientLibraries/featured-clients.d.ts +11 -0
  36. package/dist/components/Content/ClientLibraries/featured-clients.d.ts.map +1 -0
  37. package/dist/components/Content/ClientLibraries/featured-clients.js +17 -0
  38. package/dist/components/Content/Content.vue.d.ts +5 -6
  39. package/dist/components/Content/Content.vue.d.ts.map +1 -1
  40. package/dist/components/Content/Content.vue.js +49 -6
  41. package/dist/components/Content/Content.vue2.js +2 -160
  42. package/dist/components/Content/Content.vue3.js +5 -0
  43. package/dist/components/Content/Introduction/Description.vue.js +1 -1
  44. package/dist/components/Content/Introduction/Description.vue3.js +4 -0
  45. package/dist/components/Content/Introduction/Introduction.vue.d.ts +7 -17
  46. package/dist/components/Content/Introduction/Introduction.vue.d.ts.map +1 -1
  47. package/dist/components/Content/Introduction/Introduction.vue.js +3 -3
  48. package/dist/components/Content/Introduction/Introduction.vue2.js +104 -150
  49. package/dist/components/Content/Introduction/Introduction.vue3.js +4 -0
  50. package/dist/components/Content/Introduction/IntroductionSection.vue.d.ts +25 -0
  51. package/dist/components/Content/Introduction/IntroductionSection.vue.d.ts.map +1 -0
  52. package/dist/components/Content/Introduction/IntroductionSection.vue.js +7 -0
  53. package/dist/components/Content/Introduction/IntroductionSection.vue2.js +159 -0
  54. package/dist/components/Content/Introduction/IntroductionSection.vue3.js +4 -0
  55. package/dist/components/Content/Models/{ModelsAccordion.vue.d.ts → ClassicLayout.vue.d.ts} +2 -2
  56. package/dist/components/Content/Models/ClassicLayout.vue.d.ts.map +1 -0
  57. package/dist/components/Content/Models/ClassicLayout.vue.js +7 -0
  58. package/dist/components/Content/Models/{ModelsAccordion.vue2.js → ClassicLayout.vue2.js} +30 -30
  59. package/dist/components/Content/Models/ClassicLayout.vue3.js +4 -0
  60. package/dist/components/Content/Models/Models.vue.d.ts +3 -1
  61. package/dist/components/Content/Models/Models.vue.d.ts.map +1 -1
  62. package/dist/components/Content/Models/Models.vue.js +38 -5
  63. package/dist/components/Content/Models/Models.vue2.js +2 -114
  64. package/dist/components/Content/Models/ModernLayout.vue.d.ts +7 -0
  65. package/dist/components/Content/Models/ModernLayout.vue.d.ts.map +1 -0
  66. package/dist/components/Content/Models/ModernLayout.vue.js +7 -0
  67. package/dist/components/Content/Models/ModernLayout.vue2.js +100 -0
  68. package/dist/components/Content/Models/ModernLayout.vue3.js +4 -0
  69. package/dist/components/Content/Models/index.d.ts +0 -1
  70. package/dist/components/Content/Models/index.d.ts.map +1 -1
  71. package/dist/components/Content/Operations/TraversedEntry.vue.d.ts +22 -0
  72. package/dist/components/Content/Operations/TraversedEntry.vue.d.ts.map +1 -0
  73. package/dist/components/Content/Operations/TraversedEntry.vue.js +97 -0
  74. package/dist/components/Content/Operations/TraversedEntry.vue2.js +4 -0
  75. package/dist/components/Content/Operations/TraversedEntryContainer.vue.d.ts +17 -0
  76. package/dist/components/Content/Operations/TraversedEntryContainer.vue.d.ts.map +1 -0
  77. package/dist/components/Content/Operations/TraversedEntryContainer.vue.js +60 -0
  78. package/dist/components/Content/Operations/TraversedEntryContainer.vue2.js +4 -0
  79. package/dist/components/Content/Operations/get-current-index.d.ts +4 -0
  80. package/dist/components/Content/Operations/get-current-index.d.ts.map +1 -0
  81. package/dist/components/Content/Operations/get-current-index.js +16 -0
  82. package/dist/components/Content/Operations/index.d.ts +2 -0
  83. package/dist/components/Content/Operations/index.d.ts.map +1 -0
  84. package/dist/components/Content/Schema/Schema.preview.d.ts +28 -0
  85. package/dist/components/Content/Schema/Schema.preview.d.ts.map +1 -1
  86. package/dist/components/Content/Schema/Schema.vue.d.ts +2 -0
  87. package/dist/components/Content/Schema/Schema.vue.d.ts.map +1 -1
  88. package/dist/components/Content/Schema/Schema.vue.js +3 -3
  89. package/dist/components/Content/Schema/Schema.vue2.js +164 -157
  90. package/dist/components/Content/Schema/Schema.vue3.js +4 -0
  91. package/dist/components/Content/Schema/SchemaComposition.vue.d.ts +1 -0
  92. package/dist/components/Content/Schema/SchemaComposition.vue.d.ts.map +1 -1
  93. package/dist/components/Content/Schema/SchemaComposition.vue.js +58 -53
  94. package/dist/components/Content/Schema/SchemaEnumPropertyItem.vue.d.ts.map +1 -1
  95. package/dist/components/Content/Schema/SchemaEnumPropertyItem.vue.js +3 -3
  96. package/dist/components/Content/Schema/SchemaEnumPropertyItem.vue3.js +4 -0
  97. package/dist/components/Content/Schema/SchemaEnumValues.vue.d.ts.map +1 -1
  98. package/dist/components/Content/Schema/SchemaEnumValues.vue.js +3 -3
  99. package/dist/components/Content/Schema/SchemaEnumValues.vue2.js +63 -68
  100. package/dist/components/Content/Schema/SchemaEnumValues.vue3.js +4 -0
  101. package/dist/components/Content/Schema/SchemaHeading.vue.d.ts.map +1 -1
  102. package/dist/components/Content/Schema/SchemaHeading.vue.js +4 -4
  103. package/dist/components/Content/Schema/SchemaHeading.vue2.js +23 -22
  104. package/dist/components/Content/Schema/SchemaHeading.vue3.js +4 -0
  105. package/dist/components/Content/Schema/SchemaObjectProperties.vue.d.ts +1 -0
  106. package/dist/components/Content/Schema/SchemaObjectProperties.vue.d.ts.map +1 -1
  107. package/dist/components/Content/Schema/SchemaObjectProperties.vue.js +52 -40
  108. package/dist/components/Content/Schema/SchemaProperty.vue.d.ts +1 -0
  109. package/dist/components/Content/Schema/SchemaProperty.vue.d.ts.map +1 -1
  110. package/dist/components/Content/Schema/SchemaProperty.vue.js +3 -3
  111. package/dist/components/Content/Schema/SchemaProperty.vue2.js +103 -89
  112. package/dist/components/Content/Schema/SchemaProperty.vue3.js +4 -0
  113. package/dist/components/Content/Schema/SchemaPropertyDetail.vue.d.ts.map +1 -1
  114. package/dist/components/Content/Schema/SchemaPropertyDetail.vue.js +2 -2
  115. package/dist/components/Content/Schema/SchemaPropertyDetail.vue3.js +4 -0
  116. package/dist/components/Content/Schema/SchemaPropertyExamples.vue.js +3 -3
  117. package/dist/components/Content/Schema/SchemaPropertyExamples.vue3.js +4 -0
  118. package/dist/components/Content/Schema/SchemaPropertyHeading.vue.d.ts.map +1 -1
  119. package/dist/components/Content/Schema/SchemaPropertyHeading.vue.js +3 -3
  120. package/dist/components/Content/Schema/SchemaPropertyHeading.vue2.js +30 -24
  121. package/dist/components/Content/Schema/SchemaPropertyHeading.vue3.js +4 -0
  122. package/dist/components/Content/Schema/helpers/merge-all-of-schemas.d.ts +2 -1
  123. package/dist/components/Content/Schema/helpers/merge-all-of-schemas.d.ts.map +1 -1
  124. package/dist/components/Content/Schema/helpers/merge-all-of-schemas.js +59 -52
  125. package/dist/components/Content/Schema/helpers/optimize-value-for-display.d.ts.map +1 -1
  126. package/dist/components/Content/Schema/helpers/optimize-value-for-display.js +24 -20
  127. package/dist/components/Content/Schema/helpers/schema-name.d.ts +1 -1
  128. package/dist/components/Content/Schema/helpers/schema-name.d.ts.map +1 -1
  129. package/dist/components/Content/{Tag/TagAccordion.vue.d.ts → Tags/ClassicLayout.vue.d.ts} +3 -3
  130. package/dist/components/Content/Tags/ClassicLayout.vue.d.ts.map +1 -0
  131. package/dist/components/Content/Tags/ClassicLayout.vue.js +7 -0
  132. package/dist/components/Content/Tags/ClassicLayout.vue2.js +51 -0
  133. package/dist/components/Content/Tags/ClassicLayout.vue3.js +4 -0
  134. package/dist/components/Content/{Tag/TagSection.vue.d.ts → Tags/ModernLayout.vue.d.ts} +17 -13
  135. package/dist/components/Content/Tags/ModernLayout.vue.d.ts.map +1 -0
  136. package/dist/components/Content/Tags/ModernLayout.vue.js +7 -0
  137. package/dist/components/Content/Tags/ModernLayout.vue2.js +69 -0
  138. package/dist/components/Content/Tags/ModernLayout.vue3.js +4 -0
  139. package/dist/components/Content/Tags/Tag.vue.d.ts +25 -0
  140. package/dist/components/Content/Tags/Tag.vue.d.ts.map +1 -0
  141. package/dist/components/Content/Tags/Tag.vue.js +27 -0
  142. package/dist/components/Content/{Tag/Tag.vue.d.ts → Tags/TagSection.vue.d.ts} +3 -6
  143. package/dist/components/Content/Tags/TagSection.vue.d.ts.map +1 -0
  144. package/dist/components/Content/Tags/TagSection.vue.js +104 -0
  145. package/dist/components/Content/Tags/TagSection.vue2.js +4 -0
  146. package/dist/components/Content/Tags/index.d.ts +2 -0
  147. package/dist/components/Content/Tags/index.d.ts.map +1 -0
  148. package/dist/components/GettingStarted.vue.js +1 -1
  149. package/dist/components/GettingStarted.vue3.js +4 -0
  150. package/dist/components/HttpMethod/HttpMethod.vue.d.ts.map +1 -1
  151. package/dist/components/HttpMethod/HttpMethod.vue.js +8 -6
  152. package/dist/components/{Content/Lazy → Lazy}/Lazy.vue.d.ts +2 -10
  153. package/dist/components/Lazy/Lazy.vue.d.ts.map +1 -0
  154. package/dist/components/Lazy/Lazy.vue2.js +26 -0
  155. package/dist/components/Lazy/index.d.ts +3 -0
  156. package/dist/components/Lazy/index.d.ts.map +1 -0
  157. package/dist/components/Lazy/lazyBus.d.ts +10 -0
  158. package/dist/components/Lazy/lazyBus.d.ts.map +1 -0
  159. package/dist/components/Lazy/lazyBus.js +7 -0
  160. package/dist/components/LinkList/LinkList.vue.d.ts +3 -1
  161. package/dist/components/LinkList/LinkList.vue.d.ts.map +1 -1
  162. package/dist/components/LinkList/LinkList.vue.js +5 -10
  163. package/dist/components/LinkList/LinkList.vue2.js +32 -0
  164. package/dist/components/LinkList/LinkList.vue3.js +4 -0
  165. package/dist/components/LoadingSkeleton.vue.d.ts.map +1 -1
  166. package/dist/components/LoadingSkeleton.vue.js +3 -3
  167. package/dist/components/LoadingSkeleton.vue3.js +4 -0
  168. package/dist/components/MobileHeader.vue.js +1 -1
  169. package/dist/components/MobileHeader.vue3.js +4 -0
  170. package/dist/components/OperationPath.vue.js +1 -1
  171. package/dist/components/OperationPath.vue3.js +4 -0
  172. package/dist/components/{Content/Tag → OperationsList}/OperationsList.vue.d.ts +2 -5
  173. package/dist/components/OperationsList/OperationsList.vue.d.ts.map +1 -0
  174. package/dist/components/OperationsList/OperationsList.vue.js +7 -0
  175. package/dist/components/OperationsList/OperationsList.vue2.js +60 -0
  176. package/dist/components/OperationsList/OperationsList.vue3.js +4 -0
  177. package/dist/components/{Content/Tag → OperationsList}/OperationsListItem.vue.d.ts +2 -4
  178. package/dist/components/OperationsList/OperationsListItem.vue.d.ts.map +1 -0
  179. package/dist/components/OperationsList/OperationsListItem.vue.js +7 -0
  180. package/dist/components/OperationsList/OperationsListItem.vue2.js +63 -0
  181. package/dist/components/OperationsList/OperationsListItem.vue3.js +4 -0
  182. package/dist/components/OperationsList/index.d.ts +2 -0
  183. package/dist/components/OperationsList/index.d.ts.map +1 -0
  184. package/dist/components/ScreenReader.vue.js +1 -1
  185. package/dist/components/ScreenReader.vue3.js +4 -0
  186. package/dist/components/Section/CompactSection.vue.d.ts.map +1 -1
  187. package/dist/components/Section/CompactSection.vue.js +3 -3
  188. package/dist/components/Section/CompactSection.vue2.js +35 -36
  189. package/dist/components/Section/CompactSection.vue3.js +4 -0
  190. package/dist/components/Section/Section.vue.js +1 -1
  191. package/dist/components/Section/Section.vue3.js +4 -0
  192. package/dist/components/Section/SectionAccordion.vue.d.ts.map +1 -1
  193. package/dist/components/Section/SectionAccordion.vue.js +3 -3
  194. package/dist/components/Section/SectionAccordion.vue2.js +42 -36
  195. package/dist/components/Section/SectionAccordion.vue3.js +4 -0
  196. package/dist/components/Section/SectionColumn.vue.js +1 -1
  197. package/dist/components/Section/SectionColumn.vue2.js +4 -0
  198. package/dist/components/Section/SectionColumns.vue.js +1 -1
  199. package/dist/components/Section/SectionColumns.vue2.js +4 -0
  200. package/dist/components/Section/SectionContainer.vue.d.ts +9 -2
  201. package/dist/components/Section/SectionContainer.vue.d.ts.map +1 -1
  202. package/dist/components/Section/SectionContainer.vue.js +5 -11
  203. package/dist/components/Section/SectionContainer.vue2.js +18 -0
  204. package/dist/components/Section/SectionContainer.vue3.js +4 -0
  205. package/dist/components/Section/SectionContainerAccordion.vue.d.ts.map +1 -1
  206. package/dist/components/Section/SectionContainerAccordion.vue.js +3 -3
  207. package/dist/components/Section/SectionContainerAccordion.vue3.js +4 -0
  208. package/dist/components/Section/SectionContent.vue.js +1 -1
  209. package/dist/components/Section/SectionContent.vue3.js +4 -0
  210. package/dist/components/Section/SectionHeader.vue.js +1 -1
  211. package/dist/components/Section/SectionHeader.vue3.js +4 -0
  212. package/dist/components/Section/SectionHeaderTag.vue.js +1 -1
  213. package/dist/components/Section/SectionHeaderTag.vue3.js +4 -0
  214. package/dist/components/SectionFlare/SectionFlare.vue.d.ts +3 -0
  215. package/dist/components/SectionFlare/SectionFlare.vue.d.ts.map +1 -0
  216. package/dist/components/SectionFlare/SectionFlare.vue.js +13 -0
  217. package/dist/components/SectionFlare/SectionFlare.vue2.js +4 -0
  218. package/dist/components/SectionFlare/index.d.ts +2 -0
  219. package/dist/components/SectionFlare/index.d.ts.map +1 -0
  220. package/dist/components/ShowMoreButton.vue.d.ts.map +1 -1
  221. package/dist/components/ShowMoreButton.vue.js +3 -3
  222. package/dist/components/ShowMoreButton.vue2.js +12 -12
  223. package/dist/components/ShowMoreButton.vue3.js +4 -0
  224. package/dist/features/Operation/Operation.vue.d.ts +5 -1
  225. package/dist/features/Operation/Operation.vue.d.ts.map +1 -1
  226. package/dist/features/Operation/Operation.vue.js +55 -38
  227. package/dist/features/Operation/components/ContentTypeSelect.vue.d.ts +4 -4
  228. package/dist/features/Operation/components/ContentTypeSelect.vue.d.ts.map +1 -1
  229. package/dist/features/Operation/components/ContentTypeSelect.vue.js +28 -30
  230. package/dist/features/Operation/components/OperationParameters.vue.d.ts +1 -0
  231. package/dist/features/Operation/components/OperationParameters.vue.d.ts.map +1 -1
  232. package/dist/features/Operation/components/OperationParameters.vue.js +49 -43
  233. package/dist/features/Operation/components/OperationResponses.vue.d.ts +1 -0
  234. package/dist/features/Operation/components/OperationResponses.vue.d.ts.map +1 -1
  235. package/dist/features/Operation/components/OperationResponses.vue.js +4 -3
  236. package/dist/features/Operation/components/ParameterHeaders.vue.d.ts +1 -0
  237. package/dist/features/Operation/components/ParameterHeaders.vue.d.ts.map +1 -1
  238. package/dist/features/Operation/components/ParameterHeaders.vue.js +3 -3
  239. package/dist/features/Operation/components/ParameterHeaders.vue2.js +28 -26
  240. package/dist/features/Operation/components/ParameterHeaders.vue3.js +4 -0
  241. package/dist/features/Operation/components/ParameterList.vue.d.ts +1 -0
  242. package/dist/features/Operation/components/ParameterList.vue.d.ts.map +1 -1
  243. package/dist/features/Operation/components/ParameterList.vue.js +3 -3
  244. package/dist/features/Operation/components/ParameterList.vue2.js +17 -15
  245. package/dist/features/Operation/components/ParameterList.vue3.js +4 -0
  246. package/dist/features/Operation/components/ParameterListItem.vue.d.ts +1 -0
  247. package/dist/features/Operation/components/ParameterListItem.vue.d.ts.map +1 -1
  248. package/dist/features/Operation/components/ParameterListItem.vue.js +3 -3
  249. package/dist/features/Operation/components/ParameterListItem.vue2.js +36 -33
  250. package/dist/features/Operation/components/ParameterListItem.vue3.js +4 -0
  251. package/dist/features/Operation/components/RequestBody.vue.d.ts +2 -2
  252. package/dist/features/Operation/components/RequestBody.vue.d.ts.map +1 -1
  253. package/dist/features/Operation/components/RequestBody.vue.js +3 -3
  254. package/dist/features/Operation/components/RequestBody.vue2.js +47 -39
  255. package/dist/features/Operation/components/RequestBody.vue3.js +4 -0
  256. package/dist/features/Operation/components/callbacks/Callback.vue.d.ts +1 -0
  257. package/dist/features/Operation/components/callbacks/Callback.vue.d.ts.map +1 -1
  258. package/dist/features/Operation/components/callbacks/Callback.vue.js +3 -3
  259. package/dist/features/Operation/components/callbacks/Callback.vue2.js +10 -9
  260. package/dist/features/Operation/components/callbacks/Callback.vue3.js +4 -0
  261. package/dist/features/Operation/components/callbacks/Callbacks.vue.d.ts.map +1 -1
  262. package/dist/features/Operation/components/callbacks/Callbacks.vue.js +20 -28
  263. package/dist/features/Operation/layouts/ClassicLayout.vue.d.ts +6 -0
  264. package/dist/features/Operation/layouts/ClassicLayout.vue.d.ts.map +1 -1
  265. package/dist/features/Operation/layouts/ClassicLayout.vue.js +2 -2
  266. package/dist/features/Operation/layouts/ClassicLayout.vue2.js +77 -62
  267. package/dist/features/Operation/layouts/ClassicLayout.vue3.js +4 -0
  268. package/dist/features/Operation/layouts/ModernLayout.vue.d.ts +6 -0
  269. package/dist/features/Operation/layouts/ModernLayout.vue.d.ts.map +1 -1
  270. package/dist/features/Operation/layouts/ModernLayout.vue.js +3 -3
  271. package/dist/features/Operation/layouts/ModernLayout.vue2.js +72 -57
  272. package/dist/features/Operation/layouts/ModernLayout.vue3.js +4 -0
  273. package/dist/features/Search/{SearchButton.vue.d.ts → components/SearchButton.vue.d.ts} +0 -2
  274. package/dist/features/Search/components/SearchButton.vue.d.ts.map +1 -0
  275. package/dist/features/Search/components/SearchButton.vue.js +65 -0
  276. package/dist/features/Search/{SearchModal.vue.d.ts → components/SearchModal.vue.d.ts} +0 -2
  277. package/dist/features/Search/components/SearchModal.vue.d.ts.map +1 -0
  278. package/dist/features/Search/components/SearchModal.vue.js +7 -0
  279. package/dist/features/Search/components/SearchModal.vue2.js +199 -0
  280. package/dist/features/Search/components/SearchModal.vue3.js +4 -0
  281. package/dist/features/Search/helpers/create-fuse-instance.d.ts +9 -0
  282. package/dist/features/Search/helpers/create-fuse-instance.d.ts.map +1 -0
  283. package/dist/features/Search/helpers/create-fuse-instance.js +46 -0
  284. package/dist/features/Search/helpers/create-search-index.d.ts +7 -0
  285. package/dist/features/Search/helpers/create-search-index.d.ts.map +1 -0
  286. package/dist/features/Search/helpers/create-search-index.js +109 -0
  287. package/dist/features/Search/hooks/useSearchIndex.d.ts +14 -0
  288. package/dist/features/Search/hooks/useSearchIndex.d.ts.map +1 -0
  289. package/dist/features/Search/hooks/useSearchIndex.js +46 -0
  290. package/dist/features/Search/index.d.ts +2 -2
  291. package/dist/features/Search/index.d.ts.map +1 -1
  292. package/dist/features/Search/types.d.ts +15 -0
  293. package/dist/features/Search/types.d.ts.map +1 -0
  294. package/dist/features/api-client-modal/ApiClientModal.vue.d.ts.map +1 -1
  295. package/dist/features/api-client-modal/useApiClient.d.ts +414 -354
  296. package/dist/features/api-client-modal/useApiClient.d.ts.map +1 -1
  297. package/dist/features/download-link/DownloadLink.vue.js +2 -2
  298. package/dist/features/download-link/DownloadLink.vue3.js +4 -0
  299. package/dist/features/example-responses/ExampleResponse.vue.d.ts +4 -2
  300. package/dist/features/example-responses/ExampleResponse.vue.d.ts.map +1 -1
  301. package/dist/features/example-responses/ExampleResponse.vue.js +3 -3
  302. package/dist/features/example-responses/ExampleResponse.vue2.js +15 -14
  303. package/dist/features/example-responses/ExampleResponse.vue3.js +4 -0
  304. package/dist/features/example-responses/ExampleResponseTab.vue.js +1 -1
  305. package/dist/features/example-responses/ExampleResponseTab.vue3.js +4 -0
  306. package/dist/features/example-responses/ExampleResponseTabList.vue.js +1 -1
  307. package/dist/features/example-responses/ExampleResponseTabList.vue3.js +4 -0
  308. package/dist/features/example-responses/ExampleResponses.vue.d.ts +3 -2
  309. package/dist/features/example-responses/ExampleResponses.vue.d.ts.map +1 -1
  310. package/dist/features/example-responses/ExampleResponses.vue.js +4 -4
  311. package/dist/features/example-responses/ExampleResponses.vue2.js +107 -104
  312. package/dist/features/example-responses/ExampleResponses.vue3.js +4 -0
  313. package/dist/features/info-object/License.vue.d.ts.map +1 -1
  314. package/dist/features/info-object/License.vue.js +18 -15
  315. package/dist/features/sidebar/components/Sidebar.vue.js +3 -3
  316. package/dist/features/sidebar/components/Sidebar.vue3.js +4 -0
  317. package/dist/features/sidebar/components/SidebarElement.vue.js +3 -3
  318. package/dist/features/sidebar/components/SidebarElement.vue3.js +4 -0
  319. package/dist/features/sidebar/components/SidebarGroup.vue.js +1 -1
  320. package/dist/features/sidebar/components/SidebarGroup.vue3.js +4 -0
  321. package/dist/features/sidebar/components/SidebarHttpBadge.vue.js +1 -1
  322. package/dist/features/sidebar/components/SidebarHttpBadge.vue3.js +4 -0
  323. package/dist/features/sidebar/helpers/create-sidebar.js +12 -12
  324. package/dist/features/test-request-button/TestRequestButton.vue.js +1 -1
  325. package/dist/features/test-request-button/TestRequestButton.vue3.js +4 -0
  326. package/dist/features/traverse-schema/helpers/traverse-paths.d.ts +3 -1
  327. package/dist/features/traverse-schema/helpers/traverse-paths.d.ts.map +1 -1
  328. package/dist/features/traverse-schema/helpers/traverse-schemas.d.ts.map +1 -1
  329. package/dist/features/traverse-schema/helpers/traverse-schemas.js +18 -18
  330. package/dist/features/traverse-schema/helpers/traverse-tags.d.ts.map +1 -1
  331. package/dist/features/traverse-schema/helpers/traverse-webhooks.d.ts.map +1 -1
  332. package/dist/features/traverse-schema/index.d.ts +2 -1
  333. package/dist/features/traverse-schema/index.d.ts.map +1 -1
  334. package/dist/features/traverse-schema/types.d.ts +10 -6
  335. package/dist/features/traverse-schema/types.d.ts.map +1 -1
  336. package/dist/helpers/test-utils.d.ts +60 -0
  337. package/dist/helpers/test-utils.d.ts.map +1 -0
  338. package/dist/hooks/useNavState.d.ts +4 -1
  339. package/dist/hooks/useNavState.d.ts.map +1 -1
  340. package/dist/index.d.ts +1 -1
  341. package/dist/index.d.ts.map +1 -1
  342. package/dist/index.js +24 -23
  343. package/dist/libs/openapi.d.ts +11 -8
  344. package/dist/libs/openapi.d.ts.map +1 -1
  345. package/dist/libs/openapi.js +34 -55
  346. package/dist/style.css +1 -1
  347. package/dist/types.d.ts +6 -6
  348. package/dist/types.d.ts.map +1 -1
  349. package/dist/v2/ApiReferenceWorkspace.vue.d.ts +1 -1
  350. package/dist/v2/ApiReferenceWorkspace.vue.d.ts.map +1 -1
  351. package/dist/v2/ApiReferenceWorkspace.vue.js +128 -129
  352. package/dist/v2/ApiReferenceWorkspace.vue2.js +4 -0
  353. package/dist/v2/ApiReferenceWorkspace.vue3.js +1 -1
  354. package/dist/v2/blocks/scalar-request-example-block/components/ExamplePicker.vue.d.ts +2 -2
  355. package/dist/v2/blocks/scalar-request-example-block/components/ExamplePicker.vue.d.ts.map +1 -1
  356. package/dist/v2/blocks/scalar-request-example-block/components/ExamplePicker.vue2.js +32 -29
  357. package/dist/v2/blocks/scalar-request-example-block/components/RequestExample.vue.d.ts +4 -13
  358. package/dist/v2/blocks/scalar-request-example-block/components/RequestExample.vue.d.ts.map +1 -1
  359. package/dist/v2/blocks/scalar-request-example-block/components/RequestExample.vue.js +3 -3
  360. package/dist/v2/blocks/scalar-request-example-block/components/RequestExample.vue2.js +185 -181
  361. package/dist/v2/blocks/scalar-request-example-block/components/RequestExample.vue3.js +4 -0
  362. package/dist/v2/blocks/scalar-request-example-block/helpers/find-client.d.ts +1 -0
  363. package/dist/v2/blocks/scalar-request-example-block/helpers/find-client.d.ts.map +1 -1
  364. package/dist/v2/blocks/scalar-request-example-block/helpers/find-client.js +1 -0
  365. package/dist/v2/blocks/scalar-request-example-block/helpers/generate-client-options.d.ts +12 -13
  366. package/dist/v2/blocks/scalar-request-example-block/helpers/generate-client-options.d.ts.map +1 -1
  367. package/dist/v2/blocks/scalar-request-example-block/helpers/generate-client-options.js +28 -30
  368. package/dist/v2/blocks/scalar-request-example-block/types.d.ts +11 -3
  369. package/dist/v2/blocks/scalar-request-example-block/types.d.ts.map +1 -1
  370. package/dist/v2/helpers/get-document-name.d.ts +13 -0
  371. package/dist/v2/helpers/get-document-name.d.ts.map +1 -0
  372. package/dist/v2/helpers/get-document-name.js +15 -0
  373. package/dist/v2/helpers/normalize-content.d.ts +3 -0
  374. package/dist/v2/helpers/normalize-content.d.ts.map +1 -0
  375. package/dist/v2/helpers/normalize-content.js +8 -0
  376. package/package.json +25 -19
  377. package/dist/components/Content/ClientLibraries/useFeaturedHttpClients.d.ts +0 -16
  378. package/dist/components/Content/ClientLibraries/useFeaturedHttpClients.d.ts.map +0 -1
  379. package/dist/components/Content/ClientLibraries/useFeaturedHttpClients.js +0 -36
  380. package/dist/components/Content/Lazy/Lazy.vue.d.ts.map +0 -1
  381. package/dist/components/Content/Lazy/Lazy.vue2.js +0 -22
  382. package/dist/components/Content/Lazy/Loading.vue.d.ts +0 -18
  383. package/dist/components/Content/Lazy/Loading.vue.d.ts.map +0 -1
  384. package/dist/components/Content/Lazy/Loading.vue.js +0 -163
  385. package/dist/components/Content/Lazy/Loading.vue3.js +0 -5
  386. package/dist/components/Content/Lazy/index.d.ts +0 -3
  387. package/dist/components/Content/Lazy/index.d.ts.map +0 -1
  388. package/dist/components/Content/Lazy/lazyBus.d.ts +0 -4
  389. package/dist/components/Content/Lazy/lazyBus.d.ts.map +0 -1
  390. package/dist/components/Content/Lazy/lazyBus.js +0 -5
  391. package/dist/components/Content/Models/ModelsAccordion.vue.d.ts.map +0 -1
  392. package/dist/components/Content/Models/ModelsAccordion.vue.js +0 -7
  393. package/dist/components/Content/Tag/OperationsList.vue.d.ts.map +0 -1
  394. package/dist/components/Content/Tag/OperationsList.vue.js +0 -7
  395. package/dist/components/Content/Tag/OperationsList.vue2.js +0 -58
  396. package/dist/components/Content/Tag/OperationsListItem.vue.d.ts.map +0 -1
  397. package/dist/components/Content/Tag/OperationsListItem.vue.js +0 -7
  398. package/dist/components/Content/Tag/OperationsListItem.vue2.js +0 -67
  399. package/dist/components/Content/Tag/Tag.vue.d.ts.map +0 -1
  400. package/dist/components/Content/Tag/Tag.vue.js +0 -99
  401. package/dist/components/Content/Tag/TagAccordion.vue.d.ts.map +0 -1
  402. package/dist/components/Content/Tag/TagAccordion.vue.js +0 -7
  403. package/dist/components/Content/Tag/TagAccordion.vue2.js +0 -50
  404. package/dist/components/Content/Tag/TagList.vue.d.ts +0 -22
  405. package/dist/components/Content/Tag/TagList.vue.d.ts.map +0 -1
  406. package/dist/components/Content/Tag/TagList.vue.js +0 -73
  407. package/dist/components/Content/Tag/TagList.vue2.js +0 -4
  408. package/dist/components/Content/Tag/TagSection.vue.d.ts.map +0 -1
  409. package/dist/components/Content/Tag/TagSection.vue.js +0 -7
  410. package/dist/components/Content/Tag/TagSection.vue2.js +0 -67
  411. package/dist/components/Content/Tag/index.d.ts +0 -3
  412. package/dist/components/Content/Tag/index.d.ts.map +0 -1
  413. package/dist/features/Search/SearchButton.vue.d.ts.map +0 -1
  414. package/dist/features/Search/SearchButton.vue.js +0 -66
  415. package/dist/features/Search/SearchModal.vue.d.ts.map +0 -1
  416. package/dist/features/Search/SearchModal.vue.js +0 -7
  417. package/dist/features/Search/SearchModal.vue2.js +0 -207
  418. package/dist/features/Search/useSearchIndex.d.ts +0 -32
  419. package/dist/features/Search/useSearchIndex.d.ts.map +0 -1
  420. package/dist/features/Search/useSearchIndex.js +0 -170
  421. package/dist/helpers/parse.d.ts +0 -10
  422. package/dist/helpers/parse.d.ts.map +0 -1
  423. package/dist/helpers/parse.js +0 -81
  424. package/dist/stores/useHttpClientStore.d.ts +0 -43
  425. package/dist/stores/useHttpClientStore.d.ts.map +0 -1
  426. package/dist/stores/useHttpClientStore.js +0 -70
  427. package/dist/v2/hooks/useStore.d.ts +0 -9
  428. package/dist/v2/hooks/useStore.d.ts.map +0 -1
  429. package/dist/v2/hooks/useStore.js +0 -14
  430. /package/dist/components/Content/{Tag → Tags}/Tag.vue2.js +0 -0
  431. /package/dist/components/{Content/Lazy → Lazy}/Lazy.vue.js +0 -0
  432. /package/dist/features/Search/{SearchButton.vue2.js → components/SearchButton.vue2.js} +0 -0
@@ -1,122 +1,112 @@
1
- import { defineComponent as K, ref as P, useId as y, watch as w, onMounted as B, computed as D, createElementBlock as l, createCommentVNode as _, unref as e, openBlock as n, createVNode as i, withCtx as m, createElementVNode as F, Fragment as h, normalizeClass as V, renderList as A, createBlock as H, createTextVNode as R, toDisplayString as p } from "vue";
2
- import { TabGroup as M, TabList as O, TabPanels as j, TabPanel as z } from "@headlessui/vue";
3
- import { useWorkspace as G } from "@scalar/api-client/store";
4
- import { ScalarMarkdown as J, ScalarCodeBlock as W } from "@scalar/components";
5
- import { REFERENCE_LS_KEYS as Y } from "@scalar/helpers/object/local-storage";
6
- import { useHttpClientStore as q } from "../../../stores/useHttpClientStore.js";
7
- import Q from "./ClientSelector.vue.js";
8
- import { useFeaturedHttpClients as U } from "./useFeaturedHttpClients.js";
9
- const Z = { key: 0 }, $ = ["id"], X = {
1
+ import { defineComponent as O, useId as h, computed as p, useTemplateRef as w, createElementBlock as a, createCommentVNode as C, openBlock as i, createVNode as r, unref as t, withCtx as m, createElementVNode as I, Fragment as g, normalizeClass as E, renderList as N, createBlock as P, createTextVNode as _, toDisplayString as k } from "vue";
2
+ import { TabGroup as B, TabList as F, TabPanels as V, TabPanel as A } from "@headlessui/vue";
3
+ import { ScalarMarkdown as S, ScalarCodeBlock as D } from "@scalar/components";
4
+ import { DEFAULT_CLIENT as M } from "../../../v2/blocks/scalar-request-example-block/helpers/find-client.js";
5
+ import { emitCustomEvent as R } from "../../../v2/events/definitions.js";
6
+ import z from "./ClientSelector.vue.js";
7
+ import { getFeaturedClients as G, isFeaturedClient as K } from "./featured-clients.js";
8
+ const U = {
9
+ key: 0,
10
+ ref: "wrapper"
11
+ }, j = ["id"], q = {
10
12
  key: 1,
11
13
  class: "selected-client card-footer border-t-0 p-0",
12
14
  role: "tabpanel",
13
15
  tabindex: "1"
14
- }, ee = ["id"], de = /* @__PURE__ */ K({
16
+ }, H = ["id"], ee = /* @__PURE__ */ O({
15
17
  __name: "ClientLibraries",
16
- setup(te) {
17
- const {
18
- availableTargets: T,
19
- httpTargetTitle: E,
20
- httpClientTitle: k,
21
- getClientTitle: x,
22
- getTargetTitle: L,
23
- httpClient: a,
24
- setHttpClient: b
25
- } = q(), { featuredClients: d, isFeatured: S } = U(), I = G(), g = P(0), C = y(), v = y();
26
- w(
27
- a,
28
- (t) => {
29
- t && (g.value = d.findIndex(
30
- (o) => o.targetKey === t.targetKey && o.clientKey === t.clientKey
31
- ));
32
- },
33
- { immediate: !0 }
34
- );
35
- function N(t) {
36
- const o = d[t];
37
- o && b(o);
38
- }
39
- B(() => {
40
- const t = localStorage.getItem(
41
- Y.SELECTED_CLIENT_DEPRECATED
42
- );
43
- t && b(JSON.parse(t));
44
- });
45
- const r = D(() => {
46
- var c;
47
- const t = Object.values(I.collections)[0], o = (c = t == null ? void 0 : t.info) == null ? void 0 : c["x-scalar-sdk-installation"];
48
- if (!Array.isArray(o) || !(o != null && o.length))
18
+ props: {
19
+ document: {},
20
+ clientOptions: {},
21
+ selectedClient: { default: () => M }
22
+ },
23
+ setup(o) {
24
+ const v = h(), b = h(), x = p(
25
+ () => o.clientOptions.flatMap(
26
+ (e) => e.options.find((n) => n.id === o.selectedClient) ?? []
27
+ )[0]
28
+ ), d = p(() => G(o.clientOptions)), T = p(
29
+ () => d.value.findIndex(
30
+ (e) => o.selectedClient === e.id
31
+ )
32
+ ), y = w("wrapper"), L = (e) => {
33
+ const n = d.value[e];
34
+ !n || !y.value || R(y.value, "scalar-update-selected-client", n.id);
35
+ }, l = p(() => {
36
+ const e = o.document.info["x-scalar-sdk-installation"];
37
+ if (!Array.isArray(e) || !(e != null && e.length))
49
38
  return;
50
- const s = o.find(
51
- (u) => {
52
- var f;
53
- return u.lang.toLowerCase() === ((f = a == null ? void 0 : a.targetKey) == null ? void 0 : f.toLowerCase());
54
- }
55
- );
56
- if (s)
57
- return s;
39
+ const n = e.find((u) => {
40
+ var s, c;
41
+ const f = (c = (s = o.selectedClient) == null ? void 0 : s.split("/")[0]) == null ? void 0 : c.toLowerCase();
42
+ return u.lang.toLowerCase() === f;
43
+ });
44
+ if (n)
45
+ return n;
58
46
  });
59
- return (t, o) => e(T).length ? (n(), l("div", Z, [
60
- i(e(M), {
47
+ return (e, n) => e.clientOptions.length ? (i(), a("div", U, [
48
+ r(t(B), {
61
49
  manual: "",
62
- selectedIndex: g.value,
63
- onChange: N
50
+ selectedIndex: T.value,
51
+ onChange: L
64
52
  }, {
65
53
  default: m(() => [
66
- F("div", {
67
- id: e(C),
54
+ I("div", {
55
+ id: t(v),
68
56
  class: "client-libraries-heading"
69
- }, " Client Libraries ", 8, $),
70
- i(e(O), {
71
- "aria-labelledby": e(C),
57
+ }, " Client Libraries ", 8, j),
58
+ r(t(F), {
59
+ "aria-labelledby": t(v),
72
60
  class: "client-libraries-list"
73
61
  }, {
74
62
  default: m(() => [
75
- i(Q, {
76
- featured: e(d),
77
- morePanel: e(v)
78
- }, null, 8, ["featured", "morePanel"])
63
+ r(z, {
64
+ clientOptions: e.clientOptions,
65
+ featuredClients: d.value,
66
+ selectedClient: e.selectedClient,
67
+ morePanel: t(b)
68
+ }, null, 8, ["clientOptions", "featuredClients", "selectedClient", "morePanel"])
79
69
  ]),
80
70
  _: 1
81
71
  }, 8, ["aria-labelledby"]),
82
- i(e(j), null, {
72
+ r(t(V), null, {
83
73
  default: m(() => {
84
- var s, c;
74
+ var u, f, s;
85
75
  return [
86
- (s = r.value) != null && s.source || (c = r.value) != null && c.description ? (n(), l(h, { key: 0 }, [
87
- r.value.description ? (n(), l("div", {
76
+ (u = l.value) != null && u.source || (f = l.value) != null && f.description ? (i(), a(g, { key: 0 }, [
77
+ l.value.description ? (i(), a("div", {
88
78
  key: 0,
89
- class: V(["selected-client card-footer -outline-offset-2", r.value.source && "rounded-b-none"]),
79
+ class: E(["selected-client card-footer -outline-offset-2", l.value.source && "rounded-b-none"]),
90
80
  role: "tabpanel",
91
81
  tabindex: "0"
92
82
  }, [
93
- i(e(J), {
94
- value: r.value.description
83
+ r(t(S), {
84
+ value: l.value.description
95
85
  }, null, 8, ["value"])
96
- ], 2)) : _("", !0),
97
- r.value.source ? (n(), l("div", X, [
98
- i(e(W), {
86
+ ], 2)) : C("", !0),
87
+ l.value.source ? (i(), a("div", q, [
88
+ r(t(D), {
99
89
  lang: "shell",
100
- content: r.value.source,
90
+ content: l.value.source,
101
91
  copy: !0,
102
92
  class: "rounded-t-none rounded-b-lg px-3 py-2 -outline-offset-1 has-focus:outline"
103
93
  }, null, 8, ["content"])
104
- ])) : _("", !0)
105
- ], 64)) : e(a) && e(S)(e(a)) ? (n(!0), l(h, { key: 1 }, A(e(d), (u, f) => (n(), H(e(z), {
106
- key: f,
94
+ ])) : C("", !0)
95
+ ], 64)) : t(K)(e.selectedClient) ? (i(!0), a(g, { key: 1 }, N(d.value, (c) => (i(), P(t(A), {
96
+ key: c.id,
107
97
  class: "selected-client card-footer -outline-offset-2"
108
98
  }, {
109
99
  default: m(() => [
110
- R(p(e(x)(u)) + " " + p(e(L)(u)), 1)
100
+ _(k(c.title), 1)
111
101
  ]),
112
102
  _: 2
113
- }, 1024))), 128)) : (n(), l("div", {
103
+ }, 1024))), 128)) : (i(), a("div", {
114
104
  key: 2,
115
- id: e(v),
105
+ id: t(b),
116
106
  class: "selected-client card-footer -outline-offset-2",
117
107
  role: "tabpanel",
118
108
  tabindex: "0"
119
- }, p(e(k)) + " " + p(e(E)), 9, ee))
109
+ }, k((s = x.value) == null ? void 0 : s.title), 9, H))
120
110
  ];
121
111
  }),
122
112
  _: 1
@@ -124,9 +114,9 @@ const Z = { key: 0 }, $ = ["id"], X = {
124
114
  ]),
125
115
  _: 1
126
116
  }, 8, ["selectedIndex"])
127
- ])) : _("", !0);
117
+ ], 512)) : C("", !0);
128
118
  }
129
119
  });
130
120
  export {
131
- de as default
121
+ ee as default
132
122
  };
@@ -0,0 +1,4 @@
1
+ const e = "";
2
+ export {
3
+ e as default
4
+ };
@@ -1,4 +1,12 @@
1
+ import type { AvailableClients } from '@scalar/types/snippetz';
2
+ import type { ClientOption, ClientOptionGroup } from '../../../v2/blocks/scalar-request-example-block/types';
1
3
  type __VLS_Props = {
4
+ /** Client options */
5
+ clientOptions: ClientOptionGroup[];
6
+ /** The currently selected Http Client */
7
+ selectedClient?: AvailableClients[number];
8
+ /** List of featured clients */
9
+ featuredClients: ClientOption[];
2
10
  /** The id of the tab panel that contains for the non featured clients */
3
11
  morePanel?: string;
4
12
  };
@@ -1 +1 @@
1
- {"version":3,"file":"ClientSelector.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/Content/ClientLibraries/ClientSelector.vue"],"names":[],"mappings":"AA8RA,KAAK,WAAW,GAAG;IACjB,yEAAyE;IACzE,SAAS,CAAC,EAAE,MAAM,CAAA;CACnB,CAAC;;AA6MF,wBAOG"}
1
+ {"version":3,"file":"ClientSelector.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/Content/ClientLibraries/ClientSelector.vue"],"names":[],"mappings":"AA0PA,OAAO,KAAK,EAAE,gBAAgB,EAAY,MAAM,wBAAwB,CAAA;AAIxE,OAAO,KAAK,EACV,YAAY,EACZ,iBAAiB,EAClB,MAAM,gDAAgD,CAAA;AAOvD,KAAK,WAAW,GAAG;IACjB,qBAAqB;IACrB,aAAa,EAAE,iBAAiB,EAAE,CAAA;IAClC,yCAAyC;IACzC,cAAc,CAAC,EAAE,gBAAgB,CAAC,MAAM,CAAC,CAAA;IACzC,+BAA+B;IAC/B,eAAe,EAAE,YAAY,EAAE,CAAA;IAC/B,yEAAyE;IACzE,SAAS,CAAC,EAAE,MAAM,CAAA;CACnB,CAAC;;AAmNF,wBAOG"}
@@ -1,7 +1,7 @@
1
1
  import o from "./ClientSelector.vue2.js";
2
- /* empty css */
2
+ import "./ClientSelector.vue3.js";
3
3
  import t from "../../../_virtual/_plugin-vue_export-helper.js";
4
- const m = /* @__PURE__ */ t(o, [["__scopeId", "data-v-82c08547"]]);
4
+ const m = /* @__PURE__ */ t(o, [["__scopeId", "data-v-691dcb64"]]);
5
5
  export {
6
6
  m as default
7
7
  };
@@ -1,12 +1,14 @@
1
- import { defineComponent as S, ref as w, createElementBlock as r, openBlock as l, createElementVNode as n, Fragment as u, renderList as p, unref as e, createBlock as x, normalizeClass as c, withCtx as N, createVNode as g, toDisplayString as b, createCommentVNode as B } from "vue";
2
- import { Tab as T } from "@headlessui/vue";
3
- import { ScalarIcon as f } from "@scalar/components";
4
- import { useFeaturedHttpClients as $ } from "./useFeaturedHttpClients.js";
5
- import { useHttpClientStore as M } from "../../../stores/useHttpClientStore.js";
6
- const F = { class: "client-libraries-text" }, H = ["aria-controls", "value"], I = ["label"], J = ["aria-label", "value"], O = {
1
+ import { defineComponent as y, ref as _, computed as k, createElementBlock as s, openBlock as i, createVNode as m, Fragment as h, renderList as w, createBlock as p, unref as n, normalizeClass as a, withCtx as u, createElementVNode as r, toDisplayString as V, createCommentVNode as f } from "vue";
2
+ import { Tab as B } from "@headlessui/vue";
3
+ import { ScalarIcon as b, ScalarCombobox as S } from "@scalar/components";
4
+ import { freezeElement as z } from "@scalar/helpers/dom/freeze-element";
5
+ import { findClient as E } from "../../../v2/blocks/scalar-request-example-block/helpers/find-client.js";
6
+ import { emitCustomEvent as K } from "../../../v2/events/definitions.js";
7
+ import { isFeaturedClient as g } from "./featured-clients.js";
8
+ const M = { class: "client-libraries-text" }, O = {
7
9
  "aria-hidden": "true",
8
10
  class: "client-libraries-icon__more"
9
- }, V = {
11
+ }, T = {
10
12
  key: 1,
11
13
  class: "client-libraries-icon",
12
14
  height: "50",
@@ -14,101 +16,100 @@ const F = { class: "client-libraries-text" }, H = ["aria-controls", "value"], I
14
16
  viewBox: "0 0 50 50",
15
17
  width: "50",
16
18
  xmlns: "http://www.w3.org/2000/svg"
17
- }, j = {
19
+ }, N = {
18
20
  key: 0,
19
21
  class: "client-libraries-text client-libraries-text-more"
20
- }, q = /* @__PURE__ */ S({
22
+ }, P = /* @__PURE__ */ y({
21
23
  __name: "ClientSelector",
22
24
  props: {
25
+ clientOptions: {},
26
+ selectedClient: {},
27
+ featuredClients: {},
23
28
  morePanel: {}
24
29
  },
25
- setup(z) {
26
- const {
27
- httpClient: i,
28
- setHttpClient: v,
29
- availableTargets: y,
30
- getClientTitle: d,
31
- getTargetTitle: k
32
- } = M(), { featuredClients: K, isFeatured: _ } = $(), C = w(), m = (s) => `programming-language-${s === "js" ? "javascript" : s}`, h = (s) => s.targetKey === i.targetKey && s.clientKey === i.clientKey;
33
- return (s, a) => (l(), r("div", {
30
+ setup(v) {
31
+ const o = _(), d = (e) => `programming-language-${e === "js" ? "javascript" : e}`, C = (e) => {
32
+ if (!o.value)
33
+ return;
34
+ const t = z(o.value);
35
+ setTimeout(() => {
36
+ t();
37
+ }, 300), K(
38
+ o.value,
39
+ "scalar-update-selected-client",
40
+ e.id
41
+ );
42
+ }, c = k(
43
+ () => {
44
+ var e;
45
+ return (e = v.selectedClient) == null ? void 0 : e.split("/")[0];
46
+ }
47
+ );
48
+ return (e, t) => (i(), s("div", {
34
49
  ref_key: "containerRef",
35
- ref: C,
50
+ ref: o,
36
51
  class: "client-libraries-content"
37
52
  }, [
38
- (l(!0), r(u, null, p(e(K), (t) => (l(), x(e(T), {
39
- key: t.clientKey,
40
- class: c(["client-libraries rendered-code-sdks", {
41
- "client-libraries__active": h(t)
53
+ (i(!0), s(h, null, w(e.featuredClients, (l) => (i(), p(n(B), {
54
+ key: l.clientKey,
55
+ class: a(["client-libraries rendered-code-sdks", {
56
+ "client-libraries__active": l.id === e.selectedClient
42
57
  }])
43
58
  }, {
44
- default: N(() => [
45
- n("div", {
46
- class: c(`client-libraries-icon__${t.targetKey}`)
59
+ default: u(() => [
60
+ r("div", {
61
+ class: a(`client-libraries-icon__${l.targetKey}`)
47
62
  }, [
48
- g(e(f), {
63
+ m(n(b), {
49
64
  class: "client-libraries-icon",
50
- icon: m(t.targetKey)
65
+ icon: d(l.targetKey)
51
66
  }, null, 8, ["icon"])
52
67
  ], 2),
53
- n("span", F, b(e(k)(t)), 1)
68
+ r("span", M, V(l.targetTitle), 1)
54
69
  ]),
55
70
  _: 2
56
71
  }, 1032, ["class"]))), 128)),
57
- n("label", {
58
- class: c(["client-libraries client-libraries__select", {
59
- "client-libraries__active": e(i) && !e(_)(e(i))
60
- }])
61
- }, [
62
- n("select", {
63
- "aria-controls": s.morePanel,
64
- class: "language-select",
65
- value: JSON.stringify(e(i)),
66
- onInput: a[0] || (a[0] = (t) => e(v)(JSON.parse(t.target.value)))
67
- }, [
68
- (l(!0), r(u, null, p(e(y), (t) => (l(), r("optgroup", {
69
- key: t.key,
70
- label: t.title
71
- }, [
72
- (l(!0), r(u, null, p(t.clients, (o) => (l(), r("option", {
73
- key: o.client,
74
- "aria-label": `${t.title} ${e(d)({
75
- targetKey: t.key,
76
- clientKey: o.client
77
- })}`,
78
- value: JSON.stringify({
79
- targetKey: t.key,
80
- clientKey: o.client
81
- })
82
- }, b(e(d)({
83
- targetKey: t.key,
84
- clientKey: o.client
85
- })), 9, J))), 128))
86
- ], 8, I))), 128))
87
- ], 40, H),
88
- n("div", O, [
89
- e(i) && !e(_)(e(i)) ? (l(), r("div", {
90
- key: 0,
91
- class: c(`client-libraries-icon__${e(i).targetKey}`)
72
+ m(n(S), {
73
+ options: e.clientOptions,
74
+ modelValue: n(E)(e.clientOptions, e.selectedClient),
75
+ "onUpdate:modelValue": t[0] || (t[0] = (l) => C(l)),
76
+ placement: "bottom-end",
77
+ teleport: ""
78
+ }, {
79
+ default: u(() => [
80
+ r("button", {
81
+ class: a(["client-libraries client-libraries__select", {
82
+ "client-libraries__active": e.selectedClient && !n(g)(e.selectedClient)
83
+ }])
92
84
  }, [
93
- g(e(f), {
94
- class: "client-libraries-icon",
95
- icon: m(e(i).targetKey)
96
- }, null, 8, ["icon"])
97
- ], 2)) : (l(), r("svg", V, a[1] || (a[1] = [
98
- n("g", {
99
- fill: "currentColor",
100
- "fill-rule": "nonzero"
101
- }, [
102
- n("path", { d: "M10.71 25.3a3.87 3.87 0 1 0 7.74 0 3.87 3.87 0 0 0-7.74 0M21.13 25.3a3.87 3.87 0 1 0 7.74 0 3.87 3.87 0 0 0-7.74 0M31.55 25.3a3.87 3.87 0 1 0 7.74 0 3.87 3.87 0 0 0-7.74 0" })
103
- ], -1)
104
- ])))
85
+ r("div", O, [
86
+ e.selectedClient && !n(g)(e.selectedClient) ? (i(), s("div", {
87
+ key: 0,
88
+ class: a(`client-libraries-icon__${c.value}`)
89
+ }, [
90
+ c.value ? (i(), p(n(b), {
91
+ key: 0,
92
+ class: "client-libraries-icon",
93
+ icon: d(c.value)
94
+ }, null, 8, ["icon"])) : f("", !0)
95
+ ], 2)) : (i(), s("svg", T, t[1] || (t[1] = [
96
+ r("g", {
97
+ fill: "currentColor",
98
+ "fill-rule": "nonzero"
99
+ }, [
100
+ r("path", { d: "M10.71 25.3a3.87 3.87 0 1 0 7.74 0 3.87 3.87 0 0 0-7.74 0M21.13 25.3a3.87 3.87 0 1 0 7.74 0 3.87 3.87 0 0 0-7.74 0M31.55 25.3a3.87 3.87 0 1 0 7.74 0 3.87 3.87 0 0 0-7.74 0" })
101
+ ], -1)
102
+ ])))
103
+ ]),
104
+ e.clientOptions.length ? (i(), s("span", N, " More ")) : f("", !0),
105
+ t[2] || (t[2] = r("span", { class: "sr-only" }, "Select from all clients", -1))
106
+ ], 2)
105
107
  ]),
106
- e(y).length ? (l(), r("span", j, " More ")) : B("", !0),
107
- a[2] || (a[2] = n("span", { class: "sr-only" }, "Select from all clients", -1))
108
- ], 2)
108
+ _: 1
109
+ }, 8, ["options", "modelValue"])
109
110
  ], 512));
110
111
  }
111
112
  });
112
113
  export {
113
- q as default
114
+ P as default
114
115
  };
@@ -0,0 +1,4 @@
1
+ const e = "";
2
+ export {
3
+ e as default
4
+ };
@@ -0,0 +1,11 @@
1
+ import type { ClientOption, ClientOptionGroup } from '../../../v2/blocks/scalar-request-example-block/types';
2
+ import type { AvailableClients } from '@scalar/snippetz';
3
+ /** Whether or not a client is in the featured list */
4
+ export declare const isFeaturedClient: (clientId: AvailableClients[number] | undefined, featuredClients?: AvailableClients[number][]) => boolean;
5
+ /**
6
+ * Maps featured client IDs to their corresponding ClientOption objects.
7
+ * Returns an array of ClientOption objects that match the featured clients list,
8
+ * maintaining the order of the featured clients.
9
+ */
10
+ export declare const getFeaturedClients: (clientOptions: ClientOptionGroup[], featuredClients?: AvailableClients[number][]) => ClientOption[];
11
+ //# sourceMappingURL=featured-clients.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"featured-clients.d.ts","sourceRoot":"","sources":["../../../../src/components/Content/ClientLibraries/featured-clients.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,iBAAiB,EAAE,MAAM,gDAAgD,CAAA;AACrG,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,kBAAkB,CAAA;AAWxD,sDAAsD;AACtD,eAAO,MAAM,gBAAgB,aACjB,gBAAgB,CAAC,MAAM,CAAC,GAAG,SAAS,oBAC7B,gBAAgB,CAAC,MAAM,CAAC,EAAE,YACmD,CAAA;AAEhG;;;;GAIG;AACH,eAAO,MAAM,kBAAkB,kBACd,iBAAiB,EAAE,oBACjB,gBAAgB,CAAC,MAAM,CAAC,EAAE,KAC1C,YAAY,EAgBd,CAAA"}
@@ -0,0 +1,17 @@
1
+ const c = [
2
+ "shell/curl",
3
+ "ruby/native",
4
+ "node/undici",
5
+ "php/guzzle",
6
+ "python/python3"
7
+ ], i = (t, n = c) => !!(t && n.includes(t)), r = (t, n = c) => {
8
+ const s = /* @__PURE__ */ new Map();
9
+ for (const o of t)
10
+ for (const e of o.options)
11
+ s.set(e.id, e);
12
+ return n.flatMap((o) => s.get(o) ?? []);
13
+ };
14
+ export {
15
+ r as getFeaturedClients,
16
+ i as isFeaturedClient
17
+ };
@@ -1,9 +1,10 @@
1
1
  import type { OpenAPIV3_1 } from '@scalar/openapi-types';
2
- import type { Spec } from '@scalar/types/legacy';
2
+ import type { ApiReferenceConfiguration } from '@scalar/types';
3
+ import type { WorkspaceStore } from '@scalar/workspace-store/client';
3
4
  type __VLS_Props = {
4
5
  document: OpenAPIV3_1.Document;
5
- parsedSpec: Spec;
6
- layout?: 'modern' | 'classic';
6
+ config: ApiReferenceConfiguration;
7
+ store: WorkspaceStore;
7
8
  };
8
9
  declare function __VLS_template(): {
9
10
  attrs: Partial<{}>;
@@ -16,9 +17,7 @@ declare function __VLS_template(): {
16
17
  rootEl: any;
17
18
  };
18
19
  type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
19
- declare const __VLS_component: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {
20
- layout: "modern" | "classic";
21
- }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
20
+ declare const __VLS_component: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
22
21
  declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
23
22
  export default _default;
24
23
  type __VLS_WithTemplateSlots<T, S> = T & {
@@ -1 +1 @@
1
- {"version":3,"file":"Content.vue.d.ts","sourceRoot":"","sources":["../../../src/components/Content/Content.vue"],"names":[],"mappings":"AA0RA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,uBAAuB,CAAA;AACxD,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,sBAAsB,CAAA;AAchD,KAAK,WAAW,GAAG;IACf,QAAQ,EAAE,WAAW,CAAC,QAAQ,CAAA;IAC9B,UAAU,EAAE,IAAI,CAAA;IAChB,MAAM,CAAC,EAAE,QAAQ,GAAG,SAAS,CAAA;CAC9B,CAAC;AAwDJ,iBAAS,cAAc;WAqOT,OAAO,IAA6B;;uBAVvB,GAAG;+BACM,GAAG;qBACb,GAAG;;;;EAa5B;AA0BD,KAAK,oBAAoB,GAAG,UAAU,CAAC,OAAO,cAAc,CAAC,CAAC;AAC9D,QAAA,MAAM,eAAe;YA9TR,QAAQ,GAAG,SAAS;6EAqU/B,CAAC;wBACkB,uBAAuB,CAAC,OAAO,eAAe,EAAE,oBAAoB,CAAC,OAAO,CAAC,CAAC;AAAnG,wBAAoG;AAgBpG,KAAK,uBAAuB,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG;IACxC,QAAO;QACN,MAAM,EAAE,CAAC,CAAC;KAEV,CAAA;CACD,CAAC"}
1
+ {"version":3,"file":"Content.vue.d.ts","sourceRoot":"","sources":["../../../src/components/Content/Content.vue"],"names":[],"mappings":"AAyEA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,uBAAuB,CAAA;AACxD,OAAO,KAAK,EAAE,yBAAyB,EAAE,MAAM,eAAe,CAAA;AAC9D,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,gCAAgC,CAAA;AAapE,KAAK,WAAW,GAAG;IACjB,QAAQ,EAAE,WAAW,CAAC,QAAQ,CAAA;IAC9B,MAAM,EAAE,yBAAyB,CAAA;IACjC,KAAK,EAAE,cAAc,CAAA;CACtB,CAAC;AAiBF,iBAAS,cAAc;WAyET,OAAO,IAA6B;;uBAVvB,GAAG;+BACM,GAAG;qBACb,GAAG;;;;EAa5B;AAcD,KAAK,oBAAoB,GAAG,UAAU,CAAC,OAAO,cAAc,CAAC,CAAC;AAC9D,QAAA,MAAM,eAAe,kSAMnB,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,8 +1,51 @@
1
- import o from "./Content.vue2.js";
2
- /* empty css */
3
- /* empty css */
4
- import t from "../../_virtual/_plugin-vue_export-helper.js";
5
- const e = /* @__PURE__ */ t(o, [["__scopeId", "data-v-848f1f5e"]]);
1
+ import { defineComponent as p, computed as a, createElementBlock as g, openBlock as t, Fragment as k, createVNode as u, createElementVNode as C, unref as o, renderSlot as r, createBlock as f, createCommentVNode as O } from "vue";
2
+ import { useConfig as $ } from "../../hooks/useConfig.js";
3
+ import { generateClientOptions as h } from "../../v2/blocks/scalar-request-example-block/helpers/generate-client-options.js";
4
+ import v from "../SectionFlare/SectionFlare.vue.js";
5
+ import y from "./Introduction/Introduction.vue.js";
6
+ import _ from "./Operations/TraversedEntryContainer.vue.js";
7
+ import B from "./Models/Models.vue.js";
8
+ const N = { class: "narrow-references-container" }, q = /* @__PURE__ */ p({
9
+ __name: "Content",
10
+ props: {
11
+ document: {},
12
+ config: {},
13
+ store: {}
14
+ },
15
+ setup(V) {
16
+ const n = $(), i = a(
17
+ () => h(n.value.hiddenClients)
18
+ );
19
+ return (e, E) => {
20
+ var c, s, m, l, d;
21
+ return t(), g(k, null, [
22
+ u(o(v)),
23
+ C("div", N, [
24
+ r(e.$slots, "start"),
25
+ (s = (c = e.document) == null ? void 0 : c.info) != null && s.title || (l = (m = e.document) == null ? void 0 : m.info) != null && l.description ? (t(), f(o(y), {
26
+ key: 0,
27
+ document: e.document,
28
+ store: e.store,
29
+ clientOptions: i.value,
30
+ config: o(n)
31
+ }, null, 8, ["document", "store", "clientOptions", "config"])) : r(e.$slots, "empty-state", { key: 1 }),
32
+ u(o(_), {
33
+ document: e.document,
34
+ config: o(n),
35
+ clientOptions: i.value,
36
+ store: e.store
37
+ }, null, 8, ["document", "config", "clientOptions", "store"]),
38
+ (d = o(n)) != null && d.hideModels ? O("", !0) : (t(), f(o(B), {
39
+ key: 2,
40
+ document: e.document,
41
+ config: o(n)
42
+ }, null, 8, ["document", "config"])),
43
+ r(e.$slots, "end")
44
+ ])
45
+ ], 64);
46
+ };
47
+ }
48
+ });
6
49
  export {
7
- e as default
50
+ q as default
8
51
  };