@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,99 +0,0 @@
1
- import { defineComponent as C, computed as d, createBlock as m, openBlock as p, unref as e, withCtx as t, withDirectives as v, createVNode as o, createTextVNode as u, createCommentVNode as S, toDisplayString as _, vShow as h } from "vue";
2
- import { ScalarMarkdown as w } from "@scalar/components";
3
- import I from "../../ScreenReader.vue.js";
4
- import { useConfig as N } from "../../../hooks/useConfig.js";
5
- import { useNavState as k } from "../../../hooks/useNavState.js";
6
- import y from "./OperationsList.vue.js";
7
- import T from "../../Section/Section.vue.js";
8
- import B from "../../Section/SectionHeader.vue.js";
9
- import L from "../../Anchor/Anchor.vue.js";
10
- import V from "../../Section/SectionHeaderTag.vue.js";
11
- import b from "../../Section/SectionContent.vue.js";
12
- import D from "../../Section/SectionColumns.vue.js";
13
- import s from "../../Section/SectionColumn.vue.js";
14
- import H from "../../../features/specification-extension/SpecificationExtension.vue.js";
15
- const P = /* @__PURE__ */ C({
16
- __name: "Tag",
17
- props: {
18
- id: {},
19
- tag: {},
20
- collection: {},
21
- headerId: {},
22
- isCollapsed: { type: Boolean }
23
- },
24
- setup(f) {
25
- const l = f, { getTagId: c } = k(), i = N(), r = d(() => l.id || c(l.tag) || ""), g = d(() => l.tag["x-displayName"] ?? l.tag.name);
26
- return (a, n) => (p(), m(e(T), {
27
- id: r.value,
28
- label: a.tag.name.toUpperCase(),
29
- role: "none"
30
- }, {
31
- default: t(() => [
32
- v(o(e(B), null, {
33
- default: t(() => [
34
- o(e(L), { id: r.value }, {
35
- default: t(() => [
36
- o(e(V), {
37
- id: a.headerId,
38
- level: 2
39
- }, {
40
- default: t(() => [
41
- u(_(g.value) + " ", 1),
42
- a.isCollapsed ? (p(), m(I, { key: 0 }, {
43
- default: t(() => n[0] || (n[0] = [
44
- u(" (Collapsed)")
45
- ])),
46
- _: 1,
47
- __: [0]
48
- })) : S("", !0)
49
- ]),
50
- _: 1
51
- }, 8, ["id"])
52
- ]),
53
- _: 1
54
- }, 8, ["id"])
55
- ]),
56
- _: 1
57
- }, 512), [
58
- [h, !e(i).isLoading]
59
- ]),
60
- o(e(b), {
61
- loading: e(i).isLoading
62
- }, {
63
- default: t(() => [
64
- o(e(D), null, {
65
- default: t(() => [
66
- o(e(s), null, {
67
- default: t(() => [
68
- o(e(w), {
69
- clamp: a.isCollapsed ? "7" : !1,
70
- value: a.tag.description,
71
- withImages: ""
72
- }, null, 8, ["clamp", "value"])
73
- ]),
74
- _: 1
75
- }),
76
- o(e(s), null, {
77
- default: t(() => [
78
- o(y, {
79
- collection: a.collection,
80
- tag: a.tag
81
- }, null, 8, ["collection", "tag"])
82
- ]),
83
- _: 1
84
- })
85
- ]),
86
- _: 1
87
- })
88
- ]),
89
- _: 1
90
- }, 8, ["loading"]),
91
- o(e(H), { value: a.tag }, null, 8, ["value"])
92
- ]),
93
- _: 1
94
- }, 8, ["id", "label"]));
95
- }
96
- });
97
- export {
98
- P as default
99
- };
@@ -1 +0,0 @@
1
- {"version":3,"file":"TagAccordion.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/Content/Tag/TagAccordion.vue"],"names":[],"mappings":"AAmDA,OAAO,KAAK,EAAE,GAAG,EAAE,MAAM,sBAAsB,CAAA;AAY/C,KAAK,WAAW,GAAG;IACjB,GAAG,EAAE,GAAG,CAAA;CACT,CAAC;AAUF,iBAAS,cAAc;WAoFT,OAAO,IAA6B;;yBARpB,GAAG;;;;EAahC;AAcD,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 +0,0 @@
1
- import o from "./TagAccordion.vue2.js";
2
- /* empty css */
3
- import r from "../../../_virtual/_plugin-vue_export-helper.js";
4
- const d = /* @__PURE__ */ r(o, [["__scopeId", "data-v-ab8ddc14"]]);
5
- export {
6
- d as default
7
- };
@@ -1,50 +0,0 @@
1
- import { defineComponent as i, createBlock as n, openBlock as c, unref as e, withCtx as t, renderSlot as l, createVNode as a, createTextVNode as d, toDisplayString as s } from "vue";
2
- import { ScalarMarkdown as m } from "@scalar/components";
3
- import { useNavState as p } from "../../../hooks/useNavState.js";
4
- import f from "../../Section/SectionContainerAccordion.vue.js";
5
- import u from "../../Section/SectionHeader.vue.js";
6
- import g from "../../Anchor/Anchor.vue.js";
7
- import _ from "../../Section/SectionHeaderTag.vue.js";
8
- const B = /* @__PURE__ */ i({
9
- __name: "TagAccordion",
10
- props: {
11
- tag: {}
12
- },
13
- setup(S) {
14
- const { getTagId: r } = p();
15
- return (o, v) => (c(), n(e(f), { class: "tag-section" }, {
16
- title: t(() => [
17
- a(e(u), { class: "tag-name" }, {
18
- default: t(() => [
19
- a(e(g), {
20
- id: e(r)(o.tag)
21
- }, {
22
- default: t(() => [
23
- a(e(_), { level: 2 }, {
24
- default: t(() => [
25
- d(s(o.tag.name), 1)
26
- ]),
27
- _: 1
28
- })
29
- ]),
30
- _: 1
31
- }, 8, ["id"])
32
- ]),
33
- _: 1
34
- }),
35
- a(e(m), {
36
- class: "tag-description",
37
- value: o.tag.description,
38
- withImages: ""
39
- }, null, 8, ["value"])
40
- ]),
41
- default: t(() => [
42
- l(o.$slots, "default", {}, void 0, !0)
43
- ]),
44
- _: 3
45
- }));
46
- }
47
- });
48
- export {
49
- B as default
50
- };
@@ -1,22 +0,0 @@
1
- import type { Collection, Server } from '@scalar/oas-utils/entities/spec';
2
- import type { OpenAPIV3_1 } from '@scalar/openapi-types';
3
- import type { Spec, Tag as TagType } from '@scalar/types/legacy';
4
- type __VLS_Props = {
5
- /** Just to set the id for webhooks, for now */
6
- id?: string;
7
- document: OpenAPIV3_1.Document;
8
- /**
9
- * @deprecated Use `document` instead
10
- */
11
- collection: Collection;
12
- tags: TagType[];
13
- /**
14
- * @deprecated Use `document` instead
15
- */
16
- spec: Spec;
17
- layout?: 'modern' | 'classic';
18
- server?: Server;
19
- };
20
- declare const _default: 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>;
21
- export default _default;
22
- //# sourceMappingURL=TagList.vue.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"TagList.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/Content/Tag/TagList.vue"],"names":[],"mappings":"AA2FA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,EAAE,MAAM,iCAAiC,CAAA;AACzE,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,uBAAuB,CAAA;AACxD,OAAO,KAAK,EAAE,IAAI,EAAE,GAAG,IAAI,OAAO,EAAE,MAAM,sBAAsB,CAAA;AAahE,KAAK,WAAW,GAAG;IACjB,+CAA+C;IAC/C,EAAE,CAAC,EAAE,MAAM,CAAA;IACX,QAAQ,EAAE,WAAW,CAAC,QAAQ,CAAA;IAC9B;;OAEG;IACH,UAAU,EAAE,UAAU,CAAA;IACtB,IAAI,EAAE,OAAO,EAAE,CAAA;IACf;;OAEG;IACH,IAAI,EAAE,IAAI,CAAA;IACV,MAAM,CAAC,EAAE,QAAQ,GAAG,SAAS,CAAA;IAC7B,MAAM,CAAC,EAAE,MAAM,CAAA;CAChB,CAAC;;AA8HF,wBAMG"}
@@ -1,73 +0,0 @@
1
- import { defineComponent as z, computed as m, createElementBlock as p, openBlock as a, Fragment as y, renderList as f, createBlock as r, unref as o, withCtx as c, resolveDynamicComponent as S, createVNode as h } from "vue";
2
- import { ScalarErrorBoundary as B } from "@scalar/components";
3
- import { useNavState as I } from "../../../hooks/useNavState.js";
4
- import T from "./TagAccordion.vue.js";
5
- import W from "./TagSection.vue.js";
6
- import { useSidebar as C } from "../../../features/sidebar/hooks/useSidebar.js";
7
- import v from "../Lazy/Lazy.vue2.js";
8
- import E from "../../../features/Operation/Operation.vue.js";
9
- const G = /* @__PURE__ */ z({
10
- __name: "TagList",
11
- props: {
12
- id: {},
13
- document: {},
14
- collection: {},
15
- tags: {},
16
- spec: {},
17
- layout: {},
18
- server: {}
19
- },
20
- setup(s) {
21
- const { getTagId: l, hash: k } = I(), { collapsedSidebarItems: n } = C(), L = m(
22
- () => s.layout === "classic" ? T : W
23
- ), b = m(
24
- () => s.tags.findIndex((e) => !n[l(e)]) + 1
25
- ), u = (e) => s.layout !== "classic" && !k.value.startsWith("model") && e > b.value;
26
- return (e, N) => (a(!0), p(y, null, f(e.tags, (t, d) => (a(), r(o(v), {
27
- id: e.id || o(l)(t),
28
- key: e.id || o(l)(t),
29
- isLazy: u(d)
30
- }, {
31
- default: c(() => [
32
- (a(), r(S(L.value), {
33
- id: e.id || o(l)(t),
34
- collection: e.collection,
35
- spec: e.spec,
36
- tag: t
37
- }, {
38
- default: c(() => [
39
- (a(!0), p(y, null, f(t.operations, (i, g) => (a(), r(o(v), {
40
- id: i.id,
41
- key: i.id,
42
- isLazy: u(d) || o(n)[o(l)(t)] && g > 0
43
- }, {
44
- default: c(() => [
45
- h(o(B), null, {
46
- default: c(() => [
47
- h(o(E), {
48
- path: i.path,
49
- method: i.httpVerb,
50
- isWebhook: i.isWebhook,
51
- id: i.id,
52
- document: e.document,
53
- collection: e.collection,
54
- layout: e.layout,
55
- server: e.server
56
- }, null, 8, ["path", "method", "isWebhook", "id", "document", "collection", "layout", "server"])
57
- ]),
58
- _: 2
59
- }, 1024)
60
- ]),
61
- _: 2
62
- }, 1032, ["id", "isLazy"]))), 128))
63
- ]),
64
- _: 2
65
- }, 1032, ["id", "collection", "spec", "tag"]))
66
- ]),
67
- _: 2
68
- }, 1032, ["id", "isLazy"]))), 128));
69
- }
70
- });
71
- export {
72
- G as default
73
- };
@@ -1,4 +0,0 @@
1
- import f from "./TagList.vue.js";
2
- export {
3
- f as default
4
- };
@@ -1 +0,0 @@
1
- {"version":3,"file":"TagSection.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/Content/Tag/TagSection.vue"],"names":[],"mappings":"AAiFA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,iCAAiC,CAAA;AACjE,OAAO,KAAK,EAAE,IAAI,EAAE,GAAG,IAAI,OAAO,EAAE,MAAM,sBAAsB,CAAA;AAChE,OAAO,EAAY,QAAQ,EAAc,MAAM,KAAK,CAAA;AAUpD,KAAK,WAAW,GAAG;IACjB,EAAE,CAAC,EAAE,MAAM,CAAA;IACX,GAAG,EAAE,OAAO,CAAA;IACZ,UAAU,EAAE,UAAU,CAAA;IACtB,IAAI,EAAE,IAAI,CAAA;CACX,CAAC;AAiCF,iBAAS,cAAc;WAyFT,OAAO,IAA6B;;yBAVpB,GAAG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;wCA4DspgB,GAAG,8CAA8C,GAAG,yBAAyB,GAAG,6DAAmC,GAAG;;;;;;;;;EA7C5ygB;AAmBD,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 +0,0 @@
1
- import o from "./TagSection.vue2.js";
2
- /* empty css */
3
- import t from "../../../_virtual/_plugin-vue_export-helper.js";
4
- const f = /* @__PURE__ */ t(o, [["__scopeId", "data-v-e5bbfee4"]]);
5
- export {
6
- f as default
7
- };
@@ -1,67 +0,0 @@
1
- import { defineComponent as v, ref as f, useId as y, computed as r, createBlock as i, openBlock as n, unref as a, withCtx as C, createCommentVNode as b, createElementBlock as S, renderSlot as I, nextTick as T } from "vue";
2
- import _ from "./Tag.vue.js";
3
- import w from "../../ShowMoreButton.vue.js";
4
- import { useNavState as B } from "../../../hooks/useNavState.js";
5
- import { useSidebar as R } from "../../../features/sidebar/hooks/useSidebar.js";
6
- import N from "../../Section/SectionContainer.vue.js";
7
- const V = /* @__PURE__ */ v({
8
- __name: "TagSection",
9
- props: {
10
- id: {},
11
- tag: {},
12
- collection: {},
13
- spec: {}
14
- },
15
- setup(m) {
16
- const o = m, p = f(), s = f(), c = y(), { collapsedSidebarItems: d } = R(), { getTagId: g } = B(), l = r(() => o.id || g(o.tag) || ""), u = r(
17
- () => {
18
- var e, t;
19
- return ((e = o.spec.tags) == null ? void 0 : e.length) && ((t = o.spec.tags) == null ? void 0 : t.length) > 1;
20
- }
21
- ), h = r(
22
- () => {
23
- var e, t;
24
- return u.value || ((e = o.tag) == null ? void 0 : e.name) !== "default" || ((t = o.tag) == null ? void 0 : t.description) !== "";
25
- }
26
- );
27
- async function k() {
28
- var e, t;
29
- await T(), (t = (e = s.value) == null ? void 0 : e.querySelector("button")) == null || t.focus();
30
- }
31
- return (e, t) => (n(), i(a(N), {
32
- ref_key: "sectionContainerRef",
33
- ref: p,
34
- "aria-labelledby": a(c),
35
- class: "tag-section-container",
36
- role: "region"
37
- }, {
38
- default: C(() => [
39
- h.value ? (n(), i(_, {
40
- key: 0,
41
- id: e.id,
42
- collection: e.collection,
43
- headerId: a(c),
44
- isCollapsed: !a(d)[l.value],
45
- tag: e.tag
46
- }, null, 8, ["id", "collection", "headerId", "isCollapsed", "tag"])) : b("", !0),
47
- !a(d)[l.value] && u.value ? (n(), i(w, {
48
- key: 1,
49
- id: l.value,
50
- "aria-label": `Show all ${e.tag["x-displayName"] ?? e.tag.name} endpoints`,
51
- onClick: k
52
- }, null, 8, ["id", "aria-label"])) : (n(), S("div", {
53
- key: 2,
54
- ref_key: "contentsRef",
55
- ref: s,
56
- class: "contents"
57
- }, [
58
- I(e.$slots, "default", {}, void 0, !0)
59
- ], 512))
60
- ]),
61
- _: 3
62
- }, 8, ["aria-labelledby"]));
63
- }
64
- });
65
- export {
66
- V as default
67
- };
@@ -1,3 +0,0 @@
1
- export { default as TagSection } from './TagSection.vue.js';
2
- export { default as TagList } from './TagList.vue.js';
3
- //# sourceMappingURL=index.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/Content/Tag/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,IAAI,UAAU,EAAE,MAAM,kBAAkB,CAAA;AACxD,OAAO,EAAE,OAAO,IAAI,OAAO,EAAE,MAAM,eAAe,CAAA"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"SearchButton.vue.d.ts","sourceRoot":"","sources":["../../../src/features/Search/SearchButton.vue"],"names":[],"mappings":"AAmFA,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,sBAAsB,CAAA;AAQhD,KAAK,WAAW,GAAG;IACjB,IAAI,EAAE,IAAI,CAAA;IACV,YAAY,CAAC,EAAE,MAAM,CAAA;IACrB,UAAU,CAAC,EAAE,OAAO,CAAA;CACrB,CAAC;;AAiJF,wBAMG"}
@@ -1,66 +0,0 @@
1
- import { defineComponent as k, ref as w, watch as M, nextTick as C, onMounted as v, onBeforeUnmount as B, createElementBlock as n, openBlock as r, Fragment as s, createVNode as u, unref as l, normalizeClass as K, withCtx as c, createElementVNode as a, createTextVNode as m, toDisplayString as b } from "vue";
2
- import { useModal as E, ScalarSidebarSearchButton as H } from "@scalar/components";
3
- import { isMacOS as f } from "@scalar/helpers/general/is-mac-os";
4
- import g from "./SearchModal.vue.js";
5
- import { useApiClient as L } from "../api-client-modal/useApiClient.js";
6
- const $ = /* @__PURE__ */ k({
7
- __name: "SearchButton",
8
- props: {
9
- spec: {},
10
- searchHotKey: { default: "k" },
11
- hideModels: { type: Boolean, default: !1 }
12
- },
13
- setup(h) {
14
- const d = w(), t = E(), { client: y } = L(), i = (o) => {
15
- var e;
16
- (f() ? o.metaKey : o.ctrlKey) && o.key === h.searchHotKey && !((e = y.value) != null && e.modalState.open) && (o.preventDefault(), o.stopPropagation(), t.open ? t.hide() : t.show());
17
- };
18
- M(
19
- () => t.open,
20
- (o, e) => {
21
- !o && e && C(() => {
22
- var p;
23
- (p = d.value) == null || p.$el.focus();
24
- });
25
- }
26
- ), v(() => window.addEventListener("keydown", i)), B(() => window.removeEventListener("keydown", i));
27
- function S() {
28
- t.show();
29
- }
30
- return (o, e) => (r(), n(s, null, [
31
- u(l(H), {
32
- ref_key: "button",
33
- ref: d,
34
- class: K(["w-full", o.$attrs.class]),
35
- onClick: S
36
- }, {
37
- shortcut: c(() => [
38
- l(f)() ? (r(), n(s, { key: 0 }, [
39
- m("⌘")
40
- ], 64)) : (r(), n(s, { key: 1 }, [
41
- e[0] || (e[0] = a("span", { class: "sr-only" }, "CTRL", -1)),
42
- e[1] || (e[1] = a("span", { "aria-hidden": "true" }, "⌃", -1))
43
- ], 64)),
44
- m(" " + b(o.searchHotKey), 1)
45
- ]),
46
- default: c(() => [
47
- e[2] || (e[2] = a("span", { class: "sr-only" }, "Open Search", -1)),
48
- e[3] || (e[3] = a("span", {
49
- "aria-hidden": "true",
50
- class: "sidebar-search-placeholder"
51
- }, " Search ", -1))
52
- ]),
53
- _: 1,
54
- __: [2, 3]
55
- }, 8, ["class"]),
56
- u(g, {
57
- modalState: l(t),
58
- hideModels: o.hideModels,
59
- parsedSpec: o.spec
60
- }, null, 8, ["modalState", "hideModels", "parsedSpec"])
61
- ], 64));
62
- }
63
- });
64
- export {
65
- $ as default
66
- };
@@ -1 +0,0 @@
1
- {"version":3,"file":"SearchModal.vue.d.ts","sourceRoot":"","sources":["../../../src/features/Search/SearchModal.vue"],"names":[],"mappings":"AAoTA,OAAO,EAKL,KAAK,UAAU,EAChB,MAAM,oBAAoB,CAAA;AAU3B,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,sBAAsB,CAAA;AAgBhD,KAAK,WAAW,GAAG;IACjB,UAAU,EAAE,IAAI,CAAA;IAChB,UAAU,EAAE,UAAU,CAAA;IACtB,UAAU,EAAE,OAAO,CAAA;CACpB,CAAC;;AAoaF,wBAOG"}
@@ -1,7 +0,0 @@
1
- import o from "./SearchModal.vue2.js";
2
- /* empty css */
3
- import r from "../../_virtual/_plugin-vue_export-helper.js";
4
- const f = /* @__PURE__ */ r(o, [["__scopeId", "data-v-6fcd2762"]]);
5
- export {
6
- f as default
7
- };
@@ -1,207 +0,0 @@
1
- import { defineComponent as Y, toRef as _, ref as j, watch as M, createBlock as $, openBlock as p, unref as n, withCtx as i, createElementVNode as a, createVNode as g, withKeys as I, withModifiers as b, isRef as G, createElementBlock as R, Fragment as w, renderList as J, createSlots as Q, normalizeClass as X, createTextVNode as c, createCommentVNode as E, toDisplayString as d } from "vue";
2
- import { ScalarModal as Z, ScalarSearchInput as ee, ScalarSearchResultList as te, ScalarSearchResultItem as oe } from "@scalar/components";
3
- import { isDefined as ae } from "@scalar/helpers/array/is-defined";
4
- import { scrollToId as N } from "@scalar/helpers/dom/scroll-to-id";
5
- import { ScalarIconTerminalWindow as L, ScalarIconTag as se, ScalarIconBracketsCurly as ne, ScalarIconTextAlignLeft as re } from "@scalar/icons";
6
- import { nanoid as le } from "nanoid";
7
- import { lazyBus as ie } from "../../components/Content/Lazy/lazyBus.js";
8
- import { useSearchIndex as ce } from "./useSearchIndex.js";
9
- import de from "../sidebar/components/SidebarHttpBadge.vue.js";
10
- import { useSidebar as ue } from "../sidebar/hooks/useSidebar.js";
11
- const me = { class: "sr-only" }, pe = { class: "inline-flex items-center gap-1" }, fe = { class: "sr-only" }, Be = /* @__PURE__ */ Y({
12
- __name: "SearchModal",
13
- props: {
14
- parsedSpec: {},
15
- modalState: {},
16
- hideModels: { type: Boolean }
17
- },
18
- setup(q) {
19
- const u = q, D = _(u, "parsedSpec"), S = le(), k = `${S}-search-result`, x = `${S}-search-instructions`, v = (o) => `${S}${o}`, {
20
- resetSearch: F,
21
- fuseSearch: H,
22
- selectedSearchIndex: r,
23
- selectedSearchResult: B,
24
- searchResultsWithPlaceholderResults: m,
25
- searchText: f
26
- } = ce({
27
- specification: D,
28
- hideModels: u.hideModels
29
- }), P = {
30
- heading: re,
31
- model: ne,
32
- req: L,
33
- tag: se,
34
- webhook: L
35
- }, U = {
36
- heading: "Document Heading",
37
- req: "Request",
38
- tag: "Tag",
39
- model: "Model",
40
- webhook: "Webhook"
41
- }, K = j(null);
42
- M(
43
- () => u.modalState.open,
44
- (o) => {
45
- o && F();
46
- }
47
- );
48
- const { setCollapsedSidebarItem: W } = ue(), z = /#(tag\/[^/]*)/;
49
- function T(o) {
50
- let t = "models";
51
- const e = o.item.href.match(z);
52
- e != null && e.length && e.length > 1 && (t = e[1]), W(t, !0);
53
- const s = o.item.href.replace("#", "");
54
- if (document.getElementById(s))
55
- N(s), u.modalState.hide();
56
- else {
57
- const l = ie.on((h) => {
58
- h.id === s && (N(s), l(), u.modalState.hide());
59
- });
60
- }
61
- }
62
- M(r, (o) => {
63
- var s;
64
- if (typeof o != "number")
65
- return;
66
- const t = m.value[o], e = v(t == null ? void 0 : t.item.href);
67
- (s = document.getElementById(e)) == null || s.scrollIntoView({
68
- behavior: "smooth",
69
- block: "nearest"
70
- });
71
- });
72
- const V = (o) => {
73
- const t = o === "up" ? -1 : 1, e = m.value.length;
74
- if (typeof r.value == "number") {
75
- const s = (r.value + t + e) % e;
76
- r.value = s;
77
- } else
78
- r.value = t === -1 ? e - 1 : 0;
79
- };
80
- function A(o) {
81
- const t = new URL(window.location.href);
82
- return t.hash = o, t.toString();
83
- }
84
- function O() {
85
- if (!ae(r.value))
86
- return;
87
- const o = m.value;
88
- o.length !== 0 && T(o[r.value]);
89
- }
90
- return (o, t) => (p(), $(n(Z), {
91
- "aria-label": "Reference Search",
92
- state: o.modalState,
93
- variant: "search"
94
- }, {
95
- default: i(() => [
96
- a("div", {
97
- ref_key: "searchModalRef",
98
- ref: K,
99
- class: "ref-search-container",
100
- role: "search"
101
- }, [
102
- g(n(ee), {
103
- modelValue: n(f),
104
- "onUpdate:modelValue": t[0] || (t[0] = (e) => G(f) ? f.value = e : null),
105
- "aria-activedescendant": n(B) ? v(n(B).item.href) : void 0,
106
- "aria-autocomplete": "list",
107
- "aria-controls": k,
108
- "aria-describedby": x,
109
- role: "combobox",
110
- onBlur: t[1] || (t[1] = (e) => r.value = void 0),
111
- onInput: n(H),
112
- onKeydown: [
113
- t[2] || (t[2] = I(b((e) => V("down"), ["stop", "prevent"]), ["down"])),
114
- I(b(O, ["stop", "prevent"]), ["enter"]),
115
- t[3] || (t[3] = I(b((e) => V("up"), ["stop", "prevent"]), ["up"]))
116
- ]
117
- }, null, 8, ["modelValue", "aria-activedescendant", "onInput", "onKeydown"])
118
- ], 512),
119
- g(n(te), {
120
- id: k,
121
- "aria-label": "Reference Search Results",
122
- class: "ref-search-results custom-scroll",
123
- noResults: !n(m).length
124
- }, {
125
- query: i(() => [
126
- c(d(n(f)), 1)
127
- ]),
128
- default: i(() => [
129
- (p(!0), R(w, null, J(n(m), (e, s) => (p(), $(n(oe), {
130
- id: v(e.item.href),
131
- key: e.refIndex,
132
- href: A(e.item.href),
133
- icon: P[e.item.type],
134
- selected: n(r) === s,
135
- onClick: (l) => T(e),
136
- onFocus: (l) => r.value = s
137
- }, Q({
138
- default: i(() => {
139
- var l, h, y, C;
140
- return [
141
- a("span", {
142
- class: X({
143
- deprecated: (h = (l = e.item.operation) == null ? void 0 : l.information) == null ? void 0 : h.deprecated
144
- })
145
- }, [
146
- a("span", me, [
147
- c(d(U[e.item.type]) + ":  ", 1),
148
- (C = (y = e.item.operation) == null ? void 0 : y.information) != null && C.deprecated ? (p(), R(w, { key: 0 }, [
149
- c(" (Deprecated)  ")
150
- ], 64)) : E("", !0)
151
- ]),
152
- c(" " + d(e.item.title) + " ", 1),
153
- t[4] || (t[4] = a("span", { class: "sr-only" }, ",", -1))
154
- ], 2)
155
- ];
156
- }),
157
- _: 2
158
- }, [
159
- e.item.type !== "webhook" && (e.item.httpVerb || e.item.path) && e.item.path !== e.item.title ? {
160
- name: "description",
161
- fn: i(() => [
162
- a("span", pe, [
163
- e.item.type === "req" ? (p(), R(w, { key: 0 }, [
164
- g(de, {
165
- "aria-hidden": "true",
166
- method: e.item.httpVerb ?? "get"
167
- }, null, 8, ["method"]),
168
- a("span", fe, " HTTP Method: " + d(e.item.httpVerb ?? "get"), 1)
169
- ], 64)) : E("", !0),
170
- t[5] || (t[5] = a("span", { class: "sr-only" }, "Path: ", -1)),
171
- c(" " + d(e.item.path), 1)
172
- ])
173
- ]),
174
- key: "0"
175
- } : e.item.description ? {
176
- name: "description",
177
- fn: i(() => [
178
- t[6] || (t[6] = a("span", { class: "sr-only" }, "Description: ", -1)),
179
- c(" " + d(e.item.description), 1)
180
- ]),
181
- key: "1"
182
- } : void 0
183
- ]), 1032, ["id", "href", "icon", "selected", "onClick", "onFocus"]))), 128))
184
- ]),
185
- _: 1
186
- }, 8, ["noResults"]),
187
- a("div", {
188
- id: x,
189
- class: "ref-search-meta"
190
- }, t[7] || (t[7] = [
191
- a("span", {
192
- "aria-hidden": "true",
193
- class: "contents"
194
- }, [
195
- a("span", null, "↑↓ Navigate"),
196
- a("span", null, "⏎ Select")
197
- ], -1),
198
- a("span", { class: "sr-only" }, " Press up arrow / down arrow to navigate, enter to select, type to filter results ", -1)
199
- ]))
200
- ]),
201
- _: 1
202
- }, 8, ["state"]));
203
- }
204
- });
205
- export {
206
- Be as default
207
- };