@scalar/api-reference 1.32.9 → 1.33.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (404) hide show
  1. package/CHANGELOG.md +99 -0
  2. package/dist/browser/standalone.js +17026 -16443
  3. package/dist/browser/webpack-stats.json +1 -1
  4. package/dist/components/Anchor/Anchor.vue.d.ts.map +1 -1
  5. package/dist/components/Anchor/Anchor.vue.js +50 -5
  6. package/dist/components/Anchor/Anchor.vue2.js +2 -42
  7. package/dist/components/ApiReference.vue.js +6 -6
  8. package/dist/components/ApiReferenceLayout.vue.d.ts.map +1 -1
  9. package/dist/components/ApiReferenceLayout.vue.js +6 -6
  10. package/dist/components/ApiReferenceLayout.vue2.js +167 -176
  11. package/dist/components/ApiReferenceLayout.vue3.js +4 -0
  12. package/dist/components/ApiReferenceLayout.vue4.js +4 -0
  13. package/dist/components/ApiReferenceLayout.vue5.js +4 -0
  14. package/dist/components/ApiReferenceLayout.vue6.js +4 -0
  15. package/dist/components/Badge/Badge.vue.d.ts.map +1 -1
  16. package/dist/components/Badge/Badge.vue.js +4 -4
  17. package/dist/components/Badge/Badge.vue2.js +4 -0
  18. package/dist/components/ClassicHeader.vue.js +1 -1
  19. package/dist/components/ClassicHeader.vue2.js +4 -0
  20. package/dist/components/Content/ClientLibraries/ClientLibraries.vue.d.ts +14 -1
  21. package/dist/components/Content/ClientLibraries/ClientLibraries.vue.d.ts.map +1 -1
  22. package/dist/components/Content/ClientLibraries/ClientLibraries.vue.js +3 -3
  23. package/dist/components/Content/ClientLibraries/ClientLibraries.vue2.js +74 -84
  24. package/dist/components/Content/ClientLibraries/ClientLibraries.vue3.js +4 -0
  25. package/dist/components/Content/ClientLibraries/ClientSelector.vue.d.ts +8 -0
  26. package/dist/components/Content/ClientLibraries/ClientSelector.vue.d.ts.map +1 -1
  27. package/dist/components/Content/ClientLibraries/ClientSelector.vue.js +2 -2
  28. package/dist/components/Content/ClientLibraries/ClientSelector.vue2.js +81 -80
  29. package/dist/components/Content/ClientLibraries/ClientSelector.vue3.js +4 -0
  30. package/dist/components/Content/ClientLibraries/featured-clients.d.ts +11 -0
  31. package/dist/components/Content/ClientLibraries/featured-clients.d.ts.map +1 -0
  32. package/dist/components/Content/ClientLibraries/featured-clients.js +17 -0
  33. package/dist/components/Content/Content.vue.d.ts +5 -6
  34. package/dist/components/Content/Content.vue.d.ts.map +1 -1
  35. package/dist/components/Content/Content.vue.js +49 -6
  36. package/dist/components/Content/Content.vue2.js +2 -160
  37. package/dist/components/Content/Content.vue3.js +5 -0
  38. package/dist/components/Content/Introduction/Description.vue.d.ts.map +1 -1
  39. package/dist/components/Content/Introduction/Description.vue.js +3 -3
  40. package/dist/components/Content/Introduction/Description.vue3.js +4 -0
  41. package/dist/components/Content/Introduction/Introduction.vue.d.ts +7 -17
  42. package/dist/components/Content/Introduction/Introduction.vue.d.ts.map +1 -1
  43. package/dist/components/Content/Introduction/Introduction.vue.js +2 -2
  44. package/dist/components/Content/Introduction/Introduction.vue2.js +103 -118
  45. package/dist/components/Content/Introduction/Introduction.vue3.js +4 -0
  46. package/dist/components/Content/Introduction/IntroductionSection.vue.d.ts +25 -0
  47. package/dist/components/Content/Introduction/IntroductionSection.vue.d.ts.map +1 -0
  48. package/dist/components/Content/Introduction/IntroductionSection.vue.js +7 -0
  49. package/dist/components/Content/Introduction/IntroductionSection.vue2.js +159 -0
  50. package/dist/components/Content/Introduction/IntroductionSection.vue3.js +4 -0
  51. package/dist/components/Content/Models/{ModelsAccordion.vue.d.ts → ClassicLayout.vue.d.ts} +2 -2
  52. package/dist/components/Content/Models/ClassicLayout.vue.d.ts.map +1 -0
  53. package/dist/components/Content/Models/ClassicLayout.vue.js +7 -0
  54. package/dist/components/Content/Models/{ModelsAccordion.vue2.js → ClassicLayout.vue2.js} +30 -30
  55. package/dist/components/Content/Models/ClassicLayout.vue3.js +4 -0
  56. package/dist/components/Content/Models/Models.vue.d.ts +3 -1
  57. package/dist/components/Content/Models/Models.vue.d.ts.map +1 -1
  58. package/dist/components/Content/Models/Models.vue.js +38 -5
  59. package/dist/components/Content/Models/Models.vue2.js +2 -114
  60. package/dist/components/Content/Models/ModernLayout.vue.d.ts +7 -0
  61. package/dist/components/Content/Models/ModernLayout.vue.d.ts.map +1 -0
  62. package/dist/components/Content/Models/ModernLayout.vue.js +7 -0
  63. package/dist/components/Content/Models/ModernLayout.vue2.js +100 -0
  64. package/dist/components/Content/Models/ModernLayout.vue3.js +4 -0
  65. package/dist/components/Content/Models/index.d.ts +0 -1
  66. package/dist/components/Content/Models/index.d.ts.map +1 -1
  67. package/dist/components/Content/Operations/TraversedEntry.vue.d.ts +21 -0
  68. package/dist/components/Content/Operations/TraversedEntry.vue.d.ts.map +1 -0
  69. package/dist/components/Content/Operations/TraversedEntry.vue.js +95 -0
  70. package/dist/components/Content/Operations/TraversedEntry.vue2.js +4 -0
  71. package/dist/components/Content/Operations/TraversedEntryContainer.vue.d.ts +17 -0
  72. package/dist/components/Content/Operations/TraversedEntryContainer.vue.d.ts.map +1 -0
  73. package/dist/components/Content/Operations/TraversedEntryContainer.vue.js +56 -0
  74. package/dist/components/Content/Operations/TraversedEntryContainer.vue2.js +4 -0
  75. package/dist/components/Content/Operations/index.d.ts +2 -0
  76. package/dist/components/Content/Operations/index.d.ts.map +1 -0
  77. package/dist/components/Content/Schema/Schema.vue.js +1 -1
  78. package/dist/components/Content/Schema/Schema.vue3.js +4 -0
  79. package/dist/components/Content/Schema/SchemaComposition.vue.d.ts.map +1 -1
  80. package/dist/components/Content/Schema/SchemaEnumPropertyItem.vue.d.ts.map +1 -1
  81. package/dist/components/Content/Schema/SchemaEnumPropertyItem.vue.js +3 -3
  82. package/dist/components/Content/Schema/SchemaEnumPropertyItem.vue3.js +4 -0
  83. package/dist/components/Content/Schema/SchemaEnumValues.vue.d.ts.map +1 -1
  84. package/dist/components/Content/Schema/SchemaEnumValues.vue.js +3 -3
  85. package/dist/components/Content/Schema/SchemaEnumValues.vue2.js +63 -68
  86. package/dist/components/Content/Schema/SchemaEnumValues.vue3.js +4 -0
  87. package/dist/components/Content/Schema/SchemaHeading.vue.d.ts.map +1 -1
  88. package/dist/components/Content/Schema/SchemaHeading.vue.js +4 -4
  89. package/dist/components/Content/Schema/SchemaHeading.vue2.js +23 -22
  90. package/dist/components/Content/Schema/SchemaHeading.vue3.js +4 -0
  91. package/dist/components/Content/Schema/SchemaProperty.vue.d.ts.map +1 -1
  92. package/dist/components/Content/Schema/SchemaProperty.vue.js +2 -2
  93. package/dist/components/Content/Schema/SchemaProperty.vue2.js +34 -33
  94. package/dist/components/Content/Schema/SchemaProperty.vue3.js +4 -0
  95. package/dist/components/Content/Schema/SchemaPropertyDetail.vue.d.ts.map +1 -1
  96. package/dist/components/Content/Schema/SchemaPropertyDetail.vue.js +2 -2
  97. package/dist/components/Content/Schema/SchemaPropertyDetail.vue3.js +4 -0
  98. package/dist/components/Content/Schema/SchemaPropertyExamples.vue.js +3 -3
  99. package/dist/components/Content/Schema/SchemaPropertyExamples.vue3.js +4 -0
  100. package/dist/components/Content/Schema/SchemaPropertyHeading.vue.d.ts.map +1 -1
  101. package/dist/components/Content/Schema/SchemaPropertyHeading.vue.js +3 -3
  102. package/dist/components/Content/Schema/SchemaPropertyHeading.vue2.js +26 -23
  103. package/dist/components/Content/Schema/SchemaPropertyHeading.vue3.js +4 -0
  104. package/dist/components/Content/Schema/helpers/merge-all-of-schemas.d.ts +2 -1
  105. package/dist/components/Content/Schema/helpers/merge-all-of-schemas.d.ts.map +1 -1
  106. package/dist/components/Content/Schema/helpers/merge-all-of-schemas.js +59 -52
  107. package/dist/components/Content/Schema/helpers/optimize-value-for-display.d.ts.map +1 -1
  108. package/dist/components/Content/Schema/helpers/optimize-value-for-display.js +24 -20
  109. package/dist/components/Content/Schema/helpers/schema-name.d.ts +1 -1
  110. package/dist/components/Content/Schema/helpers/schema-name.d.ts.map +1 -1
  111. package/dist/components/Content/{Tag/TagAccordion.vue.d.ts → Tags/ClassicLayout.vue.d.ts} +3 -3
  112. package/dist/components/Content/Tags/ClassicLayout.vue.d.ts.map +1 -0
  113. package/dist/components/Content/Tags/ClassicLayout.vue.js +7 -0
  114. package/dist/components/Content/Tags/ClassicLayout.vue2.js +51 -0
  115. package/dist/components/Content/Tags/ClassicLayout.vue3.js +4 -0
  116. package/dist/components/Content/{Tag/TagSection.vue.d.ts → Tags/ModernLayout.vue.d.ts} +17 -13
  117. package/dist/components/Content/Tags/ModernLayout.vue.d.ts.map +1 -0
  118. package/dist/components/Content/Tags/ModernLayout.vue.js +7 -0
  119. package/dist/components/Content/Tags/ModernLayout.vue2.js +69 -0
  120. package/dist/components/Content/Tags/ModernLayout.vue3.js +4 -0
  121. package/dist/components/Content/Tags/Tag.vue.d.ts +25 -0
  122. package/dist/components/Content/Tags/Tag.vue.d.ts.map +1 -0
  123. package/dist/components/Content/Tags/Tag.vue.js +27 -0
  124. package/dist/components/Content/{Tag/Tag.vue.d.ts → Tags/TagSection.vue.d.ts} +3 -6
  125. package/dist/components/Content/Tags/TagSection.vue.d.ts.map +1 -0
  126. package/dist/components/Content/Tags/TagSection.vue.js +104 -0
  127. package/dist/components/Content/Tags/TagSection.vue2.js +4 -0
  128. package/dist/components/Content/Tags/index.d.ts +2 -0
  129. package/dist/components/Content/Tags/index.d.ts.map +1 -0
  130. package/dist/components/GettingStarted.vue.js +1 -1
  131. package/dist/components/GettingStarted.vue3.js +4 -0
  132. package/dist/components/HttpMethod/HttpMethod.vue.d.ts.map +1 -1
  133. package/dist/components/HttpMethod/HttpMethod.vue.js +8 -6
  134. package/dist/components/{Content/Lazy → Lazy}/Lazy.vue.d.ts +1 -10
  135. package/dist/components/Lazy/Lazy.vue.d.ts.map +1 -0
  136. package/dist/components/Lazy/Lazy.vue2.js +25 -0
  137. package/dist/components/Lazy/index.d.ts +3 -0
  138. package/dist/components/Lazy/index.d.ts.map +1 -0
  139. package/dist/components/Lazy/lazyBus.d.ts +8 -0
  140. package/dist/components/Lazy/lazyBus.d.ts.map +1 -0
  141. package/dist/components/Lazy/lazyBus.js +7 -0
  142. package/dist/components/LinkList/LinkList.vue.d.ts +20 -0
  143. package/dist/components/LinkList/LinkList.vue.d.ts.map +1 -0
  144. package/dist/components/LinkList/LinkList.vue.js +7 -0
  145. package/dist/components/LinkList/LinkList.vue2.js +32 -0
  146. package/dist/components/LinkList/LinkList.vue3.js +4 -0
  147. package/dist/components/LinkList/index.d.ts +2 -0
  148. package/dist/components/LinkList/index.d.ts.map +1 -0
  149. package/dist/components/LoadingSkeleton.vue.d.ts.map +1 -1
  150. package/dist/components/LoadingSkeleton.vue.js +3 -3
  151. package/dist/components/LoadingSkeleton.vue3.js +4 -0
  152. package/dist/components/MobileHeader.vue.js +1 -1
  153. package/dist/components/MobileHeader.vue3.js +4 -0
  154. package/dist/components/OperationPath.vue.js +1 -1
  155. package/dist/components/OperationPath.vue3.js +4 -0
  156. package/dist/components/{Content/Tag → OperationsList}/OperationsList.vue.d.ts +2 -5
  157. package/dist/components/OperationsList/OperationsList.vue.d.ts.map +1 -0
  158. package/dist/components/OperationsList/OperationsList.vue.js +7 -0
  159. package/dist/components/OperationsList/OperationsList.vue2.js +60 -0
  160. package/dist/components/OperationsList/OperationsList.vue3.js +4 -0
  161. package/dist/components/{Content/Tag → OperationsList}/OperationsListItem.vue.d.ts +2 -4
  162. package/dist/components/OperationsList/OperationsListItem.vue.d.ts.map +1 -0
  163. package/dist/components/OperationsList/OperationsListItem.vue.js +7 -0
  164. package/dist/components/OperationsList/OperationsListItem.vue2.js +63 -0
  165. package/dist/components/OperationsList/OperationsListItem.vue3.js +4 -0
  166. package/dist/components/OperationsList/index.d.ts +2 -0
  167. package/dist/components/OperationsList/index.d.ts.map +1 -0
  168. package/dist/components/ScreenReader.vue.js +1 -1
  169. package/dist/components/ScreenReader.vue3.js +4 -0
  170. package/dist/components/Section/CompactSection.vue.d.ts.map +1 -1
  171. package/dist/components/Section/CompactSection.vue.js +3 -3
  172. package/dist/components/Section/CompactSection.vue2.js +35 -36
  173. package/dist/components/Section/CompactSection.vue3.js +4 -0
  174. package/dist/components/Section/Section.vue.js +1 -1
  175. package/dist/components/Section/Section.vue3.js +4 -0
  176. package/dist/components/Section/SectionAccordion.vue.d.ts.map +1 -1
  177. package/dist/components/Section/SectionAccordion.vue.js +3 -3
  178. package/dist/components/Section/SectionAccordion.vue2.js +42 -36
  179. package/dist/components/Section/SectionAccordion.vue3.js +4 -0
  180. package/dist/components/Section/SectionColumn.vue.js +1 -1
  181. package/dist/components/Section/SectionColumn.vue2.js +4 -0
  182. package/dist/components/Section/SectionColumns.vue.js +1 -1
  183. package/dist/components/Section/SectionColumns.vue2.js +4 -0
  184. package/dist/components/Section/SectionContainer.vue.d.ts +9 -2
  185. package/dist/components/Section/SectionContainer.vue.d.ts.map +1 -1
  186. package/dist/components/Section/SectionContainer.vue.js +5 -11
  187. package/dist/components/Section/SectionContainer.vue2.js +18 -0
  188. package/dist/components/Section/SectionContainer.vue3.js +4 -0
  189. package/dist/components/Section/SectionContainerAccordion.vue.d.ts.map +1 -1
  190. package/dist/components/Section/SectionContainerAccordion.vue.js +3 -3
  191. package/dist/components/Section/SectionContainerAccordion.vue3.js +4 -0
  192. package/dist/components/Section/SectionContent.vue.js +1 -1
  193. package/dist/components/Section/SectionContent.vue3.js +4 -0
  194. package/dist/components/Section/SectionHeader.vue.d.ts +1 -0
  195. package/dist/components/Section/SectionHeader.vue.d.ts.map +1 -1
  196. package/dist/components/Section/SectionHeader.vue.js +3 -3
  197. package/dist/components/Section/SectionHeader.vue2.js +11 -10
  198. package/dist/components/Section/SectionHeader.vue3.js +4 -0
  199. package/dist/components/Section/SectionHeaderTag.vue.js +1 -1
  200. package/dist/components/Section/SectionHeaderTag.vue3.js +4 -0
  201. package/dist/components/SectionFlare/SectionFlare.vue.d.ts +3 -0
  202. package/dist/components/SectionFlare/SectionFlare.vue.d.ts.map +1 -0
  203. package/dist/components/SectionFlare/SectionFlare.vue.js +13 -0
  204. package/dist/components/SectionFlare/SectionFlare.vue2.js +4 -0
  205. package/dist/components/SectionFlare/index.d.ts +2 -0
  206. package/dist/components/SectionFlare/index.d.ts.map +1 -0
  207. package/dist/components/ShowMoreButton.vue.d.ts.map +1 -1
  208. package/dist/components/ShowMoreButton.vue.js +3 -3
  209. package/dist/components/ShowMoreButton.vue2.js +12 -12
  210. package/dist/components/ShowMoreButton.vue3.js +4 -0
  211. package/dist/features/Operation/Operation.vue.d.ts +11 -7
  212. package/dist/features/Operation/Operation.vue.d.ts.map +1 -1
  213. package/dist/features/Operation/Operation.vue.js +66 -48
  214. package/dist/features/Operation/components/ContentTypeSelect.vue.d.ts.map +1 -1
  215. package/dist/features/Operation/components/ContentTypeSelect.vue.js +28 -30
  216. package/dist/features/Operation/components/ParameterHeaders.vue.js +1 -1
  217. package/dist/features/Operation/components/ParameterHeaders.vue3.js +4 -0
  218. package/dist/features/Operation/components/ParameterList.vue.js +1 -1
  219. package/dist/features/Operation/components/ParameterList.vue3.js +4 -0
  220. package/dist/features/Operation/components/ParameterListItem.vue.d.ts.map +1 -1
  221. package/dist/features/Operation/components/ParameterListItem.vue.js +2 -2
  222. package/dist/features/Operation/components/ParameterListItem.vue2.js +31 -29
  223. package/dist/features/Operation/components/ParameterListItem.vue3.js +4 -0
  224. package/dist/features/Operation/components/RequestBody.vue.js +1 -1
  225. package/dist/features/Operation/components/RequestBody.vue3.js +4 -0
  226. package/dist/features/Operation/components/callbacks/Callback.vue.d.ts +8 -6
  227. package/dist/features/Operation/components/callbacks/Callback.vue.d.ts.map +1 -1
  228. package/dist/features/Operation/components/callbacks/Callback.vue.js +4 -4
  229. package/dist/features/Operation/components/callbacks/Callback.vue2.js +22 -29
  230. package/dist/features/Operation/components/callbacks/Callback.vue3.js +4 -0
  231. package/dist/features/Operation/components/callbacks/Callbacks.vue.d.ts +5 -3
  232. package/dist/features/Operation/components/callbacks/Callbacks.vue.d.ts.map +1 -1
  233. package/dist/features/Operation/components/callbacks/Callbacks.vue.js +25 -18
  234. package/dist/features/Operation/layouts/ClassicLayout.vue.d.ts +17 -12
  235. package/dist/features/Operation/layouts/ClassicLayout.vue.d.ts.map +1 -1
  236. package/dist/features/Operation/layouts/ClassicLayout.vue.js +2 -2
  237. package/dist/features/Operation/layouts/ClassicLayout.vue2.js +178 -162
  238. package/dist/features/Operation/layouts/ClassicLayout.vue3.js +4 -0
  239. package/dist/features/Operation/layouts/ModernLayout.vue.d.ts +18 -13
  240. package/dist/features/Operation/layouts/ModernLayout.vue.d.ts.map +1 -1
  241. package/dist/features/Operation/layouts/ModernLayout.vue.js +3 -3
  242. package/dist/features/Operation/layouts/ModernLayout.vue2.js +132 -126
  243. package/dist/features/Operation/layouts/ModernLayout.vue3.js +4 -0
  244. package/dist/features/Search/SearchModal.vue.js +4 -4
  245. package/dist/features/Search/SearchModal.vue2.js +9 -9
  246. package/dist/features/Search/SearchModal.vue3.js +4 -0
  247. package/dist/features/api-client-modal/ApiClientModal.vue.d.ts.map +1 -1
  248. package/dist/features/api-client-modal/useApiClient.d.ts +5188 -5128
  249. package/dist/features/api-client-modal/useApiClient.d.ts.map +1 -1
  250. package/dist/features/base-url/BaseUrl.vue.d.ts.map +1 -1
  251. package/dist/features/base-url/BaseUrl.vue.js +26 -26
  252. package/dist/features/download-link/DownloadLink.vue.js +2 -2
  253. package/dist/features/download-link/DownloadLink.vue3.js +4 -0
  254. package/dist/features/example-responses/ExampleResponse.vue.d.ts +4 -2
  255. package/dist/features/example-responses/ExampleResponse.vue.d.ts.map +1 -1
  256. package/dist/features/example-responses/ExampleResponse.vue.js +3 -3
  257. package/dist/features/example-responses/ExampleResponse.vue2.js +15 -14
  258. package/dist/features/example-responses/ExampleResponse.vue3.js +4 -0
  259. package/dist/features/example-responses/ExampleResponseTab.vue.js +3 -3
  260. package/dist/features/example-responses/ExampleResponseTab.vue3.js +4 -0
  261. package/dist/features/example-responses/ExampleResponseTabList.vue.js +2 -2
  262. package/dist/features/example-responses/ExampleResponseTabList.vue3.js +4 -0
  263. package/dist/features/example-responses/ExampleResponses.vue.d.ts +3 -2
  264. package/dist/features/example-responses/ExampleResponses.vue.d.ts.map +1 -1
  265. package/dist/features/example-responses/ExampleResponses.vue.js +4 -4
  266. package/dist/features/example-responses/ExampleResponses.vue2.js +110 -104
  267. package/dist/features/example-responses/ExampleResponses.vue3.js +4 -0
  268. package/dist/features/external-docs/ExternalDocs.vue.d.ts +7 -0
  269. package/dist/features/external-docs/ExternalDocs.vue.d.ts.map +1 -0
  270. package/dist/features/external-docs/ExternalDocs.vue.js +36 -0
  271. package/dist/features/external-docs/ExternalDocs.vue2.js +4 -0
  272. package/dist/features/external-docs/index.d.ts +2 -0
  273. package/dist/features/external-docs/index.d.ts.map +1 -0
  274. package/dist/features/info-object/Contact.vue.d.ts +7 -0
  275. package/dist/features/info-object/Contact.vue.d.ts.map +1 -0
  276. package/dist/features/info-object/Contact.vue.js +44 -0
  277. package/dist/features/info-object/Contact.vue2.js +4 -0
  278. package/dist/features/info-object/License.vue.d.ts +7 -0
  279. package/dist/features/info-object/License.vue.d.ts.map +1 -0
  280. package/dist/features/info-object/License.vue.js +37 -0
  281. package/dist/features/info-object/License.vue2.js +4 -0
  282. package/dist/features/info-object/TermsOfService.vue.d.ts +7 -0
  283. package/dist/features/info-object/TermsOfService.vue.d.ts.map +1 -0
  284. package/dist/features/info-object/TermsOfService.vue.js +30 -0
  285. package/dist/features/info-object/TermsOfService.vue2.js +4 -0
  286. package/dist/features/info-object/index.d.ts +4 -0
  287. package/dist/features/info-object/index.d.ts.map +1 -0
  288. package/dist/features/sidebar/components/Sidebar.vue.js +3 -3
  289. package/dist/features/sidebar/components/Sidebar.vue3.js +4 -0
  290. package/dist/features/sidebar/components/SidebarElement.vue.js +3 -3
  291. package/dist/features/sidebar/components/SidebarElement.vue3.js +4 -0
  292. package/dist/features/sidebar/components/SidebarGroup.vue.js +1 -1
  293. package/dist/features/sidebar/components/SidebarGroup.vue3.js +4 -0
  294. package/dist/features/sidebar/components/SidebarHttpBadge.vue.js +1 -1
  295. package/dist/features/sidebar/components/SidebarHttpBadge.vue3.js +4 -0
  296. package/dist/features/sidebar/helpers/create-sidebar.js +12 -12
  297. package/dist/features/test-request-button/TestRequestButton.vue.d.ts +3 -2
  298. package/dist/features/test-request-button/TestRequestButton.vue.d.ts.map +1 -1
  299. package/dist/features/test-request-button/TestRequestButton.vue.js +3 -3
  300. package/dist/features/test-request-button/TestRequestButton.vue2.js +21 -19
  301. package/dist/features/test-request-button/TestRequestButton.vue3.js +4 -0
  302. package/dist/features/traverse-schema/index.d.ts +2 -1
  303. package/dist/features/traverse-schema/index.d.ts.map +1 -1
  304. package/dist/helpers/convert-security-scheme.js +23 -0
  305. package/dist/helpers/test-utils.d.ts +51 -0
  306. package/dist/helpers/test-utils.d.ts.map +1 -0
  307. package/dist/index.d.ts +1 -1
  308. package/dist/index.d.ts.map +1 -1
  309. package/dist/index.js +24 -23
  310. package/dist/style.css +1 -1
  311. package/dist/types.d.ts +5 -0
  312. package/dist/types.d.ts.map +1 -1
  313. package/dist/v2/ApiReferenceWorkspace.vue.d.ts +4 -2
  314. package/dist/v2/ApiReferenceWorkspace.vue.d.ts.map +1 -1
  315. package/dist/v2/ApiReferenceWorkspace.vue.js +100 -83
  316. package/dist/v2/ApiReferenceWorkspace.vue2.js +4 -0
  317. package/dist/v2/ApiReferenceWorkspace.vue3.js +1 -1
  318. package/dist/v2/blocks/scalar-request-example-block/components/ExamplePicker.vue.d.ts +2 -4
  319. package/dist/v2/blocks/scalar-request-example-block/components/ExamplePicker.vue.d.ts.map +1 -1
  320. package/dist/v2/blocks/scalar-request-example-block/components/ExamplePicker.vue.js +4 -0
  321. package/dist/v2/blocks/scalar-request-example-block/components/ExamplePicker.vue2.js +72 -0
  322. package/dist/v2/blocks/scalar-request-example-block/components/RequestExample.vue.d.ts +4 -13
  323. package/dist/v2/blocks/scalar-request-example-block/components/RequestExample.vue.d.ts.map +1 -1
  324. package/dist/v2/blocks/scalar-request-example-block/components/RequestExample.vue.js +7 -0
  325. package/dist/v2/blocks/scalar-request-example-block/components/RequestExample.vue2.js +231 -0
  326. package/dist/v2/blocks/scalar-request-example-block/components/RequestExample.vue3.js +4 -0
  327. package/dist/v2/blocks/scalar-request-example-block/helpers/find-client.d.ts +1 -0
  328. package/dist/v2/blocks/scalar-request-example-block/helpers/find-client.d.ts.map +1 -1
  329. package/dist/v2/blocks/scalar-request-example-block/helpers/find-client.js +21 -3
  330. package/dist/v2/blocks/scalar-request-example-block/helpers/generate-client-options.d.ts +12 -13
  331. package/dist/v2/blocks/scalar-request-example-block/helpers/generate-client-options.d.ts.map +1 -1
  332. package/dist/v2/blocks/scalar-request-example-block/helpers/generate-client-options.js +33 -0
  333. package/dist/v2/blocks/scalar-request-example-block/helpers/generate-code-snippet.js +29 -0
  334. package/dist/v2/blocks/scalar-request-example-block/helpers/get-secrets.js +10 -0
  335. package/dist/v2/blocks/scalar-request-example-block/index.d.ts +2 -2
  336. package/dist/v2/blocks/scalar-request-example-block/types.d.ts +11 -3
  337. package/dist/v2/blocks/scalar-request-example-block/types.d.ts.map +1 -1
  338. package/dist/v2/events/definitions.js +7 -0
  339. package/dist/v2/events/index.d.ts +1 -1
  340. package/dist/v2/events/listeners.d.ts +1 -1
  341. package/package.json +18 -18
  342. package/LICENSE +0 -21
  343. package/dist/blocks/constants.js +0 -6
  344. package/dist/blocks/helpers/getPointer.js +0 -12
  345. package/dist/blocks/hooks/useBlockProps.d.ts +0 -31
  346. package/dist/blocks/hooks/useBlockProps.d.ts.map +0 -1
  347. package/dist/blocks/hooks/useBlockProps.js +0 -24
  348. package/dist/components/Content/ClientLibraries/useFeaturedHttpClients.d.ts +0 -16
  349. package/dist/components/Content/ClientLibraries/useFeaturedHttpClients.d.ts.map +0 -1
  350. package/dist/components/Content/ClientLibraries/useFeaturedHttpClients.js +0 -36
  351. package/dist/components/Content/Lazy/Lazy.vue.d.ts.map +0 -1
  352. package/dist/components/Content/Lazy/Lazy.vue2.js +0 -22
  353. package/dist/components/Content/Lazy/Loading.vue.d.ts +0 -18
  354. package/dist/components/Content/Lazy/Loading.vue.d.ts.map +0 -1
  355. package/dist/components/Content/Lazy/Loading.vue.js +0 -163
  356. package/dist/components/Content/Lazy/Loading.vue3.js +0 -5
  357. package/dist/components/Content/Lazy/index.d.ts +0 -3
  358. package/dist/components/Content/Lazy/index.d.ts.map +0 -1
  359. package/dist/components/Content/Lazy/lazyBus.d.ts +0 -4
  360. package/dist/components/Content/Lazy/lazyBus.d.ts.map +0 -1
  361. package/dist/components/Content/Lazy/lazyBus.js +0 -5
  362. package/dist/components/Content/Models/ModelsAccordion.vue.d.ts.map +0 -1
  363. package/dist/components/Content/Models/ModelsAccordion.vue.js +0 -7
  364. package/dist/components/Content/Tag/OperationsList.vue.d.ts.map +0 -1
  365. package/dist/components/Content/Tag/OperationsList.vue.js +0 -7
  366. package/dist/components/Content/Tag/OperationsList.vue2.js +0 -58
  367. package/dist/components/Content/Tag/OperationsListItem.vue.d.ts.map +0 -1
  368. package/dist/components/Content/Tag/OperationsListItem.vue.js +0 -7
  369. package/dist/components/Content/Tag/OperationsListItem.vue2.js +0 -67
  370. package/dist/components/Content/Tag/Tag.vue.d.ts.map +0 -1
  371. package/dist/components/Content/Tag/Tag.vue.js +0 -99
  372. package/dist/components/Content/Tag/TagAccordion.vue.d.ts.map +0 -1
  373. package/dist/components/Content/Tag/TagAccordion.vue.js +0 -7
  374. package/dist/components/Content/Tag/TagAccordion.vue2.js +0 -50
  375. package/dist/components/Content/Tag/TagList.vue.d.ts +0 -22
  376. package/dist/components/Content/Tag/TagList.vue.d.ts.map +0 -1
  377. package/dist/components/Content/Tag/TagList.vue.js +0 -73
  378. package/dist/components/Content/Tag/TagList.vue2.js +0 -4
  379. package/dist/components/Content/Tag/TagSection.vue.d.ts.map +0 -1
  380. package/dist/components/Content/Tag/TagSection.vue.js +0 -7
  381. package/dist/components/Content/Tag/TagSection.vue2.js +0 -67
  382. package/dist/components/Content/Tag/index.d.ts +0 -3
  383. package/dist/components/Content/Tag/index.d.ts.map +0 -1
  384. package/dist/features/example-request/ExamplePicker.vue.d.ts +0 -13
  385. package/dist/features/example-request/ExamplePicker.vue.d.ts.map +0 -1
  386. package/dist/features/example-request/ExamplePicker.vue.js +0 -7
  387. package/dist/features/example-request/ExamplePicker.vue2.js +0 -57
  388. package/dist/features/example-request/ExampleRequest.vue.d.ts +0 -85
  389. package/dist/features/example-request/ExampleRequest.vue.d.ts.map +0 -1
  390. package/dist/features/example-request/ExampleRequest.vue.js +0 -7
  391. package/dist/features/example-request/ExampleRequest.vue2.js +0 -348
  392. package/dist/features/example-request/TextSelect.vue.d.ts +0 -34
  393. package/dist/features/example-request/TextSelect.vue.d.ts.map +0 -1
  394. package/dist/features/example-request/TextSelect.vue.js +0 -48
  395. package/dist/features/example-request/TextSelect.vue3.js +0 -5
  396. package/dist/features/example-request/index.d.ts +0 -3
  397. package/dist/features/example-request/index.d.ts.map +0 -1
  398. package/dist/stores/useHttpClientStore.d.ts +0 -43
  399. package/dist/stores/useHttpClientStore.d.ts.map +0 -1
  400. package/dist/stores/useHttpClientStore.js +0 -70
  401. package/dist/v2/hooks/useStore.d.ts +0 -9
  402. package/dist/v2/hooks/useStore.d.ts.map +0 -1
  403. /package/dist/components/Content/{Tag → Tags}/Tag.vue2.js +0 -0
  404. /package/dist/components/{Content/Lazy → Lazy}/Lazy.vue.js +0 -0
@@ -1,43 +1,44 @@
1
- import { defineComponent as ge, computed as M, provide as S, ref as T, onBeforeMount as he, onMounted as K, watch as D, toValue as z, onUnmounted as Se, useId as be, createElementBlock as f, openBlock as n, Fragment as G, createElementVNode as p, createVNode as v, normalizeStyle as ye, normalizeClass as we, unref as r, createCommentVNode as i, withDirectives as ke, createBlock as b, renderSlot as d, normalizeProps as g, guardReactiveProps as h, withCtx as l, vShow as Ce, createSlots as $e } from "vue";
2
- import { provideUseId as Me } from "@headlessui/vue";
3
- import { OpenApiClientButton as Te } from "@scalar/api-client/components";
4
- import { LAYOUT_SYMBOL as De } from "@scalar/api-client/hooks";
5
- import { WORKSPACE_SYMBOL as Ee, ACTIVE_ENTITIES_SYMBOL as Oe } from "@scalar/api-client/store";
6
- import { addScalarClassesToHeadless as Ie, ScalarErrorBoundary as Be, ScalarSidebarFooter as Re, ScalarColorModeToggleButton as Le, ScalarColorModeToggleIcon as He } from "@scalar/components";
7
- import { sleep as _e } from "@scalar/helpers/testing/sleep";
8
- import { hasObtrusiveScrollbars as Ae, getThemeStyles as Pe } from "@scalar/themes";
9
- import { apiReferenceConfigurationSchema as Fe } from "@scalar/types/api-reference";
10
- import { useBreakpoints as Ne } from "@scalar/use-hooks/useBreakpoints";
11
- import { useToasts as Ve, ScalarToasts as Ue } from "@scalar/use-toasts";
12
- import { useMediaQuery as Ye, useResizeObserver as Ke, useDebounceFn as ze } from "@vueuse/core";
13
- import Ge from "./ClassicHeader.vue.js";
14
- import Qe from "./GettingStarted.vue.js";
15
- import We from "./MobileHeader.vue.js";
16
- import { parse as je } from "../helpers/parse.js";
17
- import { CONFIGURATION_SYMBOL as qe } from "../hooks/useConfig.js";
18
- import { useNavState as Je } from "../hooks/useNavState.js";
19
- import { downloadEventBus as Q, downloadDocument as Xe } from "../libs/download.js";
20
- import { createEmptySpecification as Ze } from "../libs/openapi.js";
21
- import { useHttpClientStore as xe } from "../stores/useHttpClientStore.js";
22
- import { useDocumentSource as et } from "../features/document-source/hooks/useDocumentSource.js";
23
- import { OPENAPI_VERSION_SYMBOL as tt } from "../features/download-link/openapi-version-symbol.js";
24
- import { useSidebar as ot } from "../features/sidebar/hooks/useSidebar.js";
25
- import { PLUGIN_MANAGER_SYMBOL as rt } from "../plugins/hooks/usePluginManager.js";
26
- import { createPluginManager as at } from "../plugins/plugin-manager.js";
27
- import nt from "../features/sidebar/components/Sidebar.vue.js";
28
- import W from "../features/Search/SearchButton.vue.js";
29
- import it from "./Content/Content.vue.js";
30
- import lt from "../features/api-client-modal/ApiClientModal.vue.js";
31
- const st = ["innerHTML"], dt = { class: "references-header" }, ut = ["aria-label"], ct = { class: "references-navigation-list" }, mt = { key: 0 }, ft = {
1
+ import { defineComponent as fe, computed as M, provide as S, ref as T, onBeforeMount as ve, onMounted as Y, watch as O, toValue as K, onUnmounted as pe, useId as ge, createElementBlock as f, openBlock as a, Fragment as z, createElementVNode as p, createVNode as v, normalizeStyle as he, normalizeClass as Se, unref as r, createCommentVNode as i, withDirectives as be, createBlock as b, renderSlot as d, normalizeProps as g, guardReactiveProps as h, withCtx as n, vShow as ye, createSlots as we } from "vue";
2
+ import { provideUseId as ke } from "@headlessui/vue";
3
+ import { OpenApiClientButton as $e } from "@scalar/api-client/components";
4
+ import { LAYOUT_SYMBOL as Me } from "@scalar/api-client/hooks";
5
+ import { WORKSPACE_SYMBOL as Te, ACTIVE_ENTITIES_SYMBOL as De } from "@scalar/api-client/store";
6
+ import { addScalarClassesToHeadless as Ce, ScalarErrorBoundary as Ee, ScalarSidebarFooter as Oe, ScalarColorModeToggleButton as Ie, ScalarColorModeToggleIcon as Be } from "@scalar/components";
7
+ import { sleep as Le } from "@scalar/helpers/testing/sleep";
8
+ import { hasObtrusiveScrollbars as Re, getThemeStyles as _e } from "@scalar/themes";
9
+ import { apiReferenceConfigurationSchema as Ae } from "@scalar/types/api-reference";
10
+ import { useBreakpoints as Pe } from "@scalar/use-hooks/useBreakpoints";
11
+ import { useToasts as He, ScalarToasts as Fe } from "@scalar/use-toasts";
12
+ import { useMediaQuery as Ne, useResizeObserver as Ve, useDebounceFn as Ue } from "@vueuse/core";
13
+ import Ye from "./ClassicHeader.vue.js";
14
+ import Ke from "./GettingStarted.vue.js";
15
+ import { hasLazyLoaded as ze } from "./Lazy/lazyBus.js";
16
+ import Ge from "./MobileHeader.vue.js";
17
+ import { parse as Qe } from "../helpers/parse.js";
18
+ import { CONFIGURATION_SYMBOL as We } from "../hooks/useConfig.js";
19
+ import { useNavState as je } from "../hooks/useNavState.js";
20
+ import { downloadEventBus as G, downloadDocument as qe } from "../libs/download.js";
21
+ import { createEmptySpecification as Je } from "../libs/openapi.js";
22
+ import { useDocumentSource as Xe } from "../features/document-source/hooks/useDocumentSource.js";
23
+ import { OPENAPI_VERSION_SYMBOL as Ze } from "../features/download-link/openapi-version-symbol.js";
24
+ import { useSidebar as xe } from "../features/sidebar/hooks/useSidebar.js";
25
+ import { PLUGIN_MANAGER_SYMBOL as et } from "../plugins/hooks/usePluginManager.js";
26
+ import { createPluginManager as tt } from "../plugins/plugin-manager.js";
27
+ import ot from "../features/sidebar/components/Sidebar.vue.js";
28
+ import Q from "../features/Search/SearchButton.vue.js";
29
+ import rt from "./Content/Content.vue.js";
30
+ import "./Content/Content.vue2.js";
31
+ import at from "../features/api-client-modal/ApiClientModal.vue.js";
32
+ const st = ["innerHTML"], it = { class: "references-header" }, nt = ["aria-label"], lt = { class: "references-navigation-list" }, dt = { key: 0 }, ut = {
32
33
  key: 1,
33
34
  class: "scalar-api-references-standalone-search"
34
- }, vt = { key: 1 }, pt = { class: "references-editor" }, gt = { class: "references-editor-textarea" }, ht = ["aria-label"], St = {
35
+ }, ct = { key: 1 }, mt = { class: "references-editor" }, ft = { class: "references-editor-textarea" }, vt = ["aria-label"], pt = {
35
36
  key: 0,
36
37
  class: "w-64 *:!p-0 empty:hidden"
37
- }, bt = {
38
+ }, gt = {
38
39
  key: 0,
39
40
  class: "references-footer"
40
- }, Jt = /* @__PURE__ */ ge({
41
+ }, jt = /* @__PURE__ */ fe({
41
42
  inheritAttrs: !1,
42
43
  __name: "ApiReferenceLayout",
43
44
  props: {
@@ -46,150 +47,140 @@ const st = ["innerHTML"], dt = { class: "references-header" }, ut = ["aria-label
46
47
  originalDocument: {},
47
48
  isDark: { type: Boolean },
48
49
  parsedSpec: {},
49
- rawSpec: {}
50
+ rawSpec: {},
51
+ store: {}
50
52
  },
51
53
  emits: ["changeTheme", "updateContent", "loadSwaggerFile", "linkSwaggerFile", "toggleDarkMode"],
52
- setup(E) {
54
+ setup(D) {
53
55
  const t = M(
54
- () => Fe.parse(E.configuration)
55
- ), { initializeToasts: j, toast: q } = Ve();
56
- j((e) => q(e));
56
+ () => Ae.parse(D.configuration)
57
+ ), { initializeToasts: W, toast: j } = He();
58
+ W((e) => j(e));
57
59
  const {
58
- originalDocument: J,
59
- originalOpenApiVersion: X,
60
+ originalDocument: q,
61
+ originalOpenApiVersion: J,
60
62
  dereferencedDocument: u,
61
- workspaceStore: Z,
62
- activeEntitiesStore: x
63
- } = et({
63
+ workspaceStore: X,
64
+ activeEntitiesStore: Z
65
+ } = Xe({
64
66
  configuration: t,
65
- dereferencedDocument: E.dereferencedDocument,
66
- originalDocument: E.originalDocument
67
+ dereferencedDocument: D.dereferencedDocument,
68
+ originalDocument: D.originalDocument
67
69
  });
68
- S(tt, X), S(Ee, Z), S(Oe, x);
69
- const ee = Ye("(min-width: 1150px)"), te = T("100dvh"), y = T(null);
70
- Ke(y, (e) => {
71
- te.value = e[0].contentRect.height + "px";
70
+ S(Ze, J), S(Te, X), S(De, Z);
71
+ const x = Ne("(min-width: 1150px)"), ee = T("100dvh"), y = T(null);
72
+ Ve(y, (e) => {
73
+ ee.value = e[0] ? e[0].contentRect.height + "px" : "100dvh";
72
74
  });
73
- const oe = M(Ae), R = Je(t), { isSidebarOpen: I, setCollapsedSidebarItem: L, scrollToOperation: re, items: H } = ot(u, {
74
- ...R,
75
+ const te = M(Re), L = je(t), { isSidebarOpen: I, setCollapsedSidebarItem: R, scrollToOperation: oe, items: _ } = xe(u, {
76
+ ...L,
75
77
  config: t
76
78
  }), {
77
- getReferenceId: ae,
78
- getPathRoutingId: ne,
79
- getSectionId: ie,
80
- getTagId: le,
81
- hash: O,
82
- isIntersectionEnabled: _,
83
- updateHash: A,
84
- replaceUrlState: se
85
- } = R;
79
+ getReferenceId: re,
80
+ getPathRoutingId: ae,
81
+ getSectionId: se,
82
+ getTagId: ie,
83
+ hash: C,
84
+ isIntersectionEnabled: A,
85
+ updateHash: P,
86
+ replaceUrlState: ne
87
+ } = L;
86
88
  if (t.value.redirect && typeof window < "u") {
87
89
  const e = t.value.redirect(
88
90
  (t.value.pathRouting ? window.location.pathname : "") + window.location.hash
89
91
  );
90
92
  e && history.replaceState({}, "", e);
91
93
  }
92
- he(() => {
93
- A(), Ie();
94
+ ve(() => {
95
+ P(), Ce();
94
96
  });
95
- const P = async (e) => {
97
+ const H = async (e) => {
96
98
  var o;
97
- _.value = !1, A(), e ? re(e) : (o = y.value) == null || o.scrollTo(0, 0), await _e(100), _.value = !0;
99
+ A.value = !1, P(), e ? oe(e) : (o = y.value) == null || o.scrollTo(0, 0), await Le(100), A.value = !0;
98
100
  }, F = T(0);
99
- K(() => {
100
- var a, k, C;
101
+ Y(() => {
102
+ var s, w, k;
101
103
  history.scrollRestoration = "manual";
102
- const e = (k = (a = y.value) == null ? void 0 : a.parentElement) == null ? void 0 : k.getBoundingClientRect(), o = (C = y.value) == null ? void 0 : C.getBoundingClientRect();
104
+ const e = (w = (s = y.value) == null ? void 0 : s.parentElement) == null ? void 0 : w.getBoundingClientRect(), o = (k = y.value) == null ? void 0 : k.getBoundingClientRect();
103
105
  if (e && o) {
104
106
  const $ = o.top - e.top;
105
107
  F.value = $ < 2 ? 0 : $;
106
108
  }
107
109
  window.onhashchange = () => {
108
- P(ae());
109
- }, window.onpopstate = () => t.value.pathRouting && P(ne(window.location.pathname)), window.addEventListener("scroll", N, { passive: !0 });
110
+ H(re());
111
+ }, window.onpopstate = () => t.value.pathRouting && H(ae(window.location.pathname)), window.addEventListener("scroll", N, { passive: !0 });
110
112
  });
111
- const de = M(
112
- () => ee.value || !t.value.isEditable
113
- ), N = ze(() => {
114
- window.scrollY < 50 && se("");
115
- }), ue = T(!1);
116
- D(u, (e) => {
113
+ const le = M(
114
+ () => x.value || !t.value.isEditable
115
+ ), N = Ue(() => {
116
+ window.scrollY < 50 && ze.value && ne("");
117
+ }), de = T(!1);
118
+ O(u, (e) => {
117
119
  var o;
118
- if (O.value) {
119
- const a = ie(O.value);
120
- a && L(a, !0);
120
+ if (C.value) {
121
+ const s = se(C.value);
122
+ s && R(s, !0);
121
123
  } else {
122
- const a = (o = e.tags) == null ? void 0 : o[0];
123
- a && L(le(a), !0);
124
+ const s = (o = e.tags) == null ? void 0 : o[0];
125
+ s && R(ie(s), !0);
124
126
  }
125
- ue.value = !0;
127
+ de.value = !0;
126
128
  });
127
- const w = T(Ze());
128
- D(
129
+ const E = T(Je());
130
+ O(
129
131
  u,
130
132
  async (e) => {
131
133
  if (!e)
132
134
  return;
133
- const o = await je(e, H.value.entries);
134
- w.value = o;
135
+ const o = await Qe(e, _.value.entries);
136
+ E.value = o;
135
137
  },
136
138
  { immediate: !0 }
137
139
  );
138
140
  const c = M(() => {
139
141
  var e;
140
142
  return {
141
- spec: w.value,
142
- breadcrumb: ((e = H.value) == null ? void 0 : e.titles.get(O.value)) ?? ""
143
+ spec: E.value,
144
+ breadcrumb: ((e = _.value) == null ? void 0 : e.titles.get(C.value)) ?? ""
143
145
  };
144
146
  });
145
- K(
146
- () => Q.on(({ filename: e, format: o }) => {
147
- Xe(
148
- z(J) || z(E.rawSpec) || "",
147
+ Y(
148
+ () => G.on(({ filename: e, format: o }) => {
149
+ qe(
150
+ K(q) || K(D.rawSpec) || "",
149
151
  e,
150
152
  o
151
153
  );
152
154
  })
153
- ), Se(() => {
154
- window.removeEventListener("scroll", N), Q.reset();
155
- }), Me(() => be()), S(De, "modal"), S(qe, t), S(
156
- rt,
157
- at({
155
+ ), pe(() => {
156
+ window.removeEventListener("scroll", N), G.reset();
157
+ }), ke(() => ge()), S(Me, "modal"), S(We, t), S(
158
+ et,
159
+ tt({
158
160
  plugins: t.value.plugins
159
161
  })
160
162
  );
161
- function V(e, o) {
162
- D(
163
- () => t.value[e],
164
- (a) => {
165
- typeof a < "u" && o(a);
166
- },
167
- { immediate: !0 }
168
- );
169
- }
170
- const { setExcludedClients: ce, setDefaultHttpClient: me } = xe();
171
- V("defaultHttpClient", me), V("hiddenClients", ce);
172
- const fe = M(
163
+ const ue = M(
173
164
  () => `<style>
174
- ${Pe(t.value.theme, {
165
+ ${_e(t.value.theme, {
175
166
  fonts: t.value.withDefaultFonts
176
167
  })}</style>`
177
- ), { mediaQueries: ve } = Ne(), pe = !1;
178
- return D(ve.lg, (e, o) => {
168
+ ), { mediaQueries: ce } = Pe(), me = !1;
169
+ return O(ce.lg, (e, o) => {
179
170
  o && !e && (I.value = !1);
180
- }), D(O, (e, o) => {
171
+ }), O(C, (e, o) => {
181
172
  e && e !== o && (I.value = !1);
182
173
  }), (e, o) => {
183
- var a, k, C, $, U;
184
- return n(), f(G, null, [
185
- p("div", { innerHTML: fe.value }, null, 8, st),
174
+ var s, w, k, $, V;
175
+ return a(), f(z, null, [
176
+ p("div", { innerHTML: ue.value }, null, 8, st),
186
177
  p("div", {
187
178
  ref_key: "documentEl",
188
179
  ref: y,
189
- class: we(["scalar-app scalar-api-reference references-layout", [
180
+ class: Se(["scalar-app scalar-api-reference references-layout", [
190
181
  {
191
182
  "scalar-api-references-standalone-mobile": t.value.showSidebar ?? !0,
192
- "scalar-scrollbars-obtrusive": oe.value,
183
+ "scalar-scrollbars-obtrusive": te.value,
193
184
  "references-editable": t.value.isEditable,
194
185
  "references-sidebar": t.value.showSidebar,
195
186
  "references-sidebar-mobile-open": r(I),
@@ -197,62 +188,62 @@ const st = ["innerHTML"], dt = { class: "references-header" }, ut = ["aria-label
197
188
  },
198
189
  e.$attrs.class
199
190
  ]]),
200
- style: ye({
191
+ style: he({
201
192
  "--scalar-y-offset": `var(--scalar-custom-header-height, ${F.value}px)`
202
193
  })
203
194
  }, [
204
- p("div", dt, [
205
- t.value.layout === "modern" && (t.value.showSidebar ?? !0) ? (n(), b(We, {
195
+ p("div", it, [
196
+ t.value.layout === "modern" && (t.value.showSidebar ?? !0) ? (a(), b(Ge, {
206
197
  key: 0,
207
198
  breadcrumb: c.value.breadcrumb
208
199
  }, null, 8, ["breadcrumb"])) : i("", !0),
209
200
  d(e.$slots, "header", g(h(c.value)), void 0, !0)
210
201
  ]),
211
- t.value.showSidebar ? (n(), f("aside", {
202
+ t.value.showSidebar ? (a(), f("aside", {
212
203
  key: 0,
213
- "aria-label": `Sidebar for ${(k = (a = r(u)) == null ? void 0 : a.info) == null ? void 0 : k.title}`,
204
+ "aria-label": `Sidebar for ${(w = (s = r(u)) == null ? void 0 : s.info) == null ? void 0 : w.title}`,
214
205
  class: "references-navigation t-doc__sidebar"
215
206
  }, [
216
- p("div", ct, [
217
- v(r(Be), null, {
218
- default: l(() => {
219
- var s, m;
207
+ p("div", lt, [
208
+ v(r(Ee), null, {
209
+ default: n(() => {
210
+ var l, m;
220
211
  return [
221
- v(r(nt), {
222
- title: ((m = (s = r(u)) == null ? void 0 : s.info) == null ? void 0 : m.title) ?? "The OpenAPI Schema"
212
+ v(r(ot), {
213
+ title: ((m = (l = r(u)) == null ? void 0 : l.info) == null ? void 0 : m.title) ?? "The OpenAPI Schema"
223
214
  }, {
224
- "sidebar-start": l(() => {
225
- var B, Y;
215
+ "sidebar-start": n(() => {
216
+ var B, U;
226
217
  return [
227
- e.$slots["document-selector"] ? (n(), f("div", mt, [
218
+ e.$slots["document-selector"] ? (a(), f("div", dt, [
228
219
  d(e.$slots, "document-selector", {}, void 0, !0)
229
220
  ])) : i("", !0),
230
- t.value.hideSearch ? i("", !0) : (n(), f("div", ft, [
231
- v(r(W), {
221
+ t.value.hideSearch ? i("", !0) : (a(), f("div", ut, [
222
+ v(r(Q), {
232
223
  searchHotKey: (B = t.value) == null ? void 0 : B.searchHotKey,
233
- hideModels: (Y = t.value) == null ? void 0 : Y.hideModels,
234
- spec: w.value
224
+ hideModels: (U = t.value) == null ? void 0 : U.hideModels,
225
+ spec: E.value
235
226
  }, null, 8, ["searchHotKey", "hideModels", "spec"])
236
227
  ])),
237
228
  d(e.$slots, "sidebar-start", g(h(c.value)), void 0, !0)
238
229
  ];
239
230
  }),
240
- "sidebar-end": l(() => [
231
+ "sidebar-end": n(() => [
241
232
  d(e.$slots, "sidebar-end", g(h(c.value)), () => [
242
- v(r(Re), { class: "darklight-reference" }, {
243
- toggle: l(() => [
244
- t.value.hideDarkModeToggle ? (n(), f("span", vt)) : (n(), b(r(Le), {
233
+ v(r(Oe), { class: "darklight-reference" }, {
234
+ toggle: n(() => [
235
+ t.value.hideDarkModeToggle ? (a(), f("span", ct)) : (a(), b(r(Ie), {
245
236
  key: 0,
246
237
  modelValue: e.isDark,
247
238
  "onUpdate:modelValue": o[0] || (o[0] = (B) => e.$emit("toggleDarkMode"))
248
239
  }, null, 8, ["modelValue"]))
249
240
  ]),
250
- default: l(() => [
251
- t.value.hideClientButton ? i("", !0) : (n(), b(r(Te), {
241
+ default: n(() => [
242
+ t.value.hideClientButton ? i("", !0) : (a(), b(r($e), {
252
243
  key: 0,
253
244
  buttonSource: "sidebar",
254
245
  integration: t.value._integration,
255
- isDevelopment: pe,
246
+ isDevelopment: me,
256
247
  url: t.value.url
257
248
  }, null, 8, ["integration", "url"]))
258
249
  ]),
@@ -267,49 +258,49 @@ const st = ["innerHTML"], dt = { class: "references-header" }, ut = ["aria-label
267
258
  _: 3
268
259
  })
269
260
  ])
270
- ], 8, ut)) : i("", !0),
271
- ke(p("div", pt, [
272
- p("div", gt, [
261
+ ], 8, nt)) : i("", !0),
262
+ be(p("div", mt, [
263
+ p("div", ft, [
273
264
  d(e.$slots, "editor", g(h(c.value)), void 0, !0)
274
265
  ])
275
266
  ], 512), [
276
- [Ce, t.value.isEditable]
267
+ [ye, t.value.isEditable]
277
268
  ]),
278
- de.value ? (n(), f(G, { key: 1 }, [
269
+ le.value ? (a(), f(z, { key: 1 }, [
279
270
  p("main", {
280
- "aria-label": `Open API Documentation for ${($ = (C = r(u)) == null ? void 0 : C.info) == null ? void 0 : $.title}`,
271
+ "aria-label": `Open API Documentation for ${($ = (k = r(u)) == null ? void 0 : k.info) == null ? void 0 : $.title}`,
281
272
  class: "references-rendered"
282
273
  }, [
283
- v(r(it), {
284
- layout: t.value.layout,
274
+ v(r(rt), {
285
275
  document: r(u),
286
- parsedSpec: w.value
287
- }, $e({
288
- start: l(() => [
276
+ config: t.value,
277
+ store: e.store
278
+ }, we({
279
+ start: n(() => [
289
280
  d(e.$slots, "content-start", g(h(c.value)), () => [
290
- t.value.layout === "classic" ? (n(), b(Ge, { key: 0 }, {
291
- "dark-mode-toggle": l(() => [
292
- t.value.hideDarkModeToggle ? i("", !0) : (n(), b(r(He), {
281
+ t.value.layout === "classic" ? (a(), b(Ye, { key: 0 }, {
282
+ "dark-mode-toggle": n(() => [
283
+ t.value.hideDarkModeToggle ? i("", !0) : (a(), b(r(Be), {
293
284
  key: 0,
294
285
  class: "text-c-2 hover:text-c-1",
295
286
  mode: e.isDark ? "dark" : "light",
296
287
  style: { transform: "scale(1.4)" },
297
288
  variant: "icon",
298
- onClick: o[1] || (o[1] = (s) => e.$emit("toggleDarkMode"))
289
+ onClick: o[1] || (o[1] = (l) => e.$emit("toggleDarkMode"))
299
290
  }, null, 8, ["mode"]))
300
291
  ]),
301
- default: l(() => {
302
- var s;
292
+ default: n(() => {
293
+ var l;
303
294
  return [
304
- e.$slots["document-selector"] ? (n(), f("div", St, [
295
+ e.$slots["document-selector"] ? (a(), f("div", pt, [
305
296
  d(e.$slots, "document-selector", {}, void 0, !0)
306
297
  ])) : i("", !0),
307
- t.value.hideSearch ? i("", !0) : (n(), b(r(W), {
298
+ t.value.hideSearch ? i("", !0) : (a(), b(r(Q), {
308
299
  key: 1,
309
300
  class: "t-doc__sidebar max-w-64",
310
301
  searchHotKey: t.value.searchHotKey,
311
- hideModels: (s = t.value) == null ? void 0 : s.hideModels,
312
- spec: w.value
302
+ hideModels: (l = t.value) == null ? void 0 : l.hideModels,
303
+ spec: E.value
313
304
  }, null, 8, ["searchHotKey", "hideModels", "spec"]))
314
305
  ];
315
306
  }),
@@ -317,18 +308,18 @@ const st = ["innerHTML"], dt = { class: "references-header" }, ut = ["aria-label
317
308
  })) : i("", !0)
318
309
  ], !0)
319
310
  ]),
320
- end: l(() => [
311
+ end: n(() => [
321
312
  d(e.$slots, "content-end", g(h(c.value)), void 0, !0)
322
313
  ]),
323
314
  _: 2
324
315
  }, [
325
- (U = t.value) != null && U.isEditable ? {
316
+ (V = t.value) != null && V.isEditable ? {
326
317
  name: "empty-state",
327
- fn: l(() => {
328
- var s;
318
+ fn: n(() => {
319
+ var l;
329
320
  return [
330
- v(Qe, {
331
- theme: ((s = t.value) == null ? void 0 : s.theme) || "default",
321
+ v(Ke, {
322
+ theme: ((l = t.value) == null ? void 0 : l.theme) || "default",
332
323
  onChangeTheme: o[2] || (o[2] = (m) => e.$emit("changeTheme", m)),
333
324
  onLinkSwaggerFile: o[3] || (o[3] = (m) => e.$emit("linkSwaggerFile")),
334
325
  onLoadSwaggerFile: o[4] || (o[4] = (m) => e.$emit("loadSwaggerFile")),
@@ -338,22 +329,22 @@ const st = ["innerHTML"], dt = { class: "references-header" }, ut = ["aria-label
338
329
  }),
339
330
  key: "0"
340
331
  } : void 0
341
- ]), 1032, ["layout", "document", "parsedSpec"])
342
- ], 8, ht),
343
- e.$slots.footer ? (n(), f("div", bt, [
332
+ ]), 1032, ["document", "config", "store"])
333
+ ], 8, vt),
334
+ e.$slots.footer ? (a(), f("div", gt, [
344
335
  d(e.$slots, "footer", g(h(c.value)), void 0, !0)
345
336
  ])) : i("", !0)
346
337
  ], 64)) : i("", !0),
347
- v(r(lt), {
338
+ v(r(at), {
348
339
  configuration: t.value,
349
340
  dereferencedDocument: r(u)
350
341
  }, null, 8, ["configuration", "dereferencedDocument"])
351
342
  ], 6),
352
- v(r(Ue))
343
+ v(r(Fe))
353
344
  ], 64);
354
345
  };
355
346
  }
356
347
  });
357
348
  export {
358
- Jt as default
349
+ jt as default
359
350
  };
@@ -0,0 +1,4 @@
1
+ const e = "";
2
+ export {
3
+ e as default
4
+ };
@@ -0,0 +1,4 @@
1
+ const e = "";
2
+ export {
3
+ e as default
4
+ };
@@ -0,0 +1,4 @@
1
+ const e = "";
2
+ export {
3
+ e as default
4
+ };
@@ -0,0 +1,4 @@
1
+ const e = "";
2
+ export {
3
+ e as default
4
+ };
@@ -1 +1 @@
1
- {"version":3,"file":"Badge.vue.d.ts","sourceRoot":"","sources":["../../../src/components/Badge/Badge.vue"],"names":[],"mappings":"AA+CA,iBAAS,cAAc;WAgDT,OAAO,IAA6B;;yBARrB,GAAG;;;;EAa/B;AAOD,KAAK,oBAAoB,GAAG,UAAU,CAAC,OAAO,cAAc,CAAC,CAAC;AAC9D,QAAA,MAAM,eAAe,0RAMnB,CAAC;wBACkB,uBAAuB,CAAC,OAAO,eAAe,EAAE,oBAAoB,CAAC,OAAO,CAAC,CAAC;AAAnG,wBAAoG;AAKpG,KAAK,uBAAuB,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG;IACxC,QAAO;QACN,MAAM,EAAE,CAAC,CAAC;KAEV,CAAA;CACD,CAAC"}
1
+ {"version":3,"file":"Badge.vue.d.ts","sourceRoot":"","sources":["../../../src/components/Badge/Badge.vue"],"names":[],"mappings":"AA8CA,iBAAS,cAAc;WAgDT,OAAO,IAA6B;;yBARrB,GAAG;;;;EAa/B;AAOD,KAAK,oBAAoB,GAAG,UAAU,CAAC,OAAO,cAAc,CAAC,CAAC;AAC9D,QAAA,MAAM,eAAe,0RAMnB,CAAC;wBACkB,uBAAuB,CAAC,OAAO,eAAe,EAAE,oBAAoB,CAAC,OAAO,CAAC,CAAC;AAAnG,wBAAoG;AAKpG,KAAK,uBAAuB,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG;IACxC,QAAO;QACN,MAAM,EAAE,CAAC,CAAC;KAEV,CAAA;CACD,CAAC"}
@@ -1,13 +1,13 @@
1
1
  import { createElementBlock as t, openBlock as o, renderSlot as r } from "vue";
2
- /* empty css */
2
+ import "./Badge.vue2.js";
3
3
  import c from "../../_virtual/_plugin-vue_export-helper.js";
4
- const n = {}, d = { class: "badge" };
4
+ const d = {}, n = { class: "badge" };
5
5
  function s(e, a) {
6
- return o(), t("div", d, [
6
+ return o(), t("div", n, [
7
7
  r(e.$slots, "default", {}, void 0, !0)
8
8
  ]);
9
9
  }
10
- const l = /* @__PURE__ */ c(n, [["render", s], ["__scopeId", "data-v-2a0118c0"]]);
10
+ const l = /* @__PURE__ */ c(d, [["render", s], ["__scopeId", "data-v-f1bc5cda"]]);
11
11
  export {
12
12
  l as default
13
13
  };
@@ -0,0 +1,4 @@
1
+ const e = "";
2
+ export {
3
+ e as default
4
+ };
@@ -1,5 +1,5 @@
1
1
  import { createElementBlock as c, openBlock as t, createElementVNode as s, renderSlot as r } from "vue";
2
- /* empty css */
2
+ import "./ClassicHeader.vue2.js";
3
3
  import o from "../_virtual/_plugin-vue_export-helper.js";
4
4
  const n = {}, d = { class: "references-classic-header-container" }, a = { class: "references-classic-header" }, i = { class: "references-classic-header-content" };
5
5
  function l(e, _) {
@@ -0,0 +1,4 @@
1
+ const e = "";
2
+ export {
3
+ e as default
4
+ };
@@ -1,3 +1,16 @@
1
- declare const _default: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
1
+ import type { AvailableClients } from '@scalar/snippetz';
2
+ import type { WorkspaceDocument } from '@scalar/workspace-store/schemas/schemas/workspace';
3
+ import type { ClientOptionGroup } from '../../../v2/blocks/scalar-request-example-block/types';
4
+ type __VLS_Props = {
5
+ /** Current document from the store */
6
+ document: WorkspaceDocument;
7
+ /** Computed list of all available Http Client options */
8
+ clientOptions: ClientOptionGroup[];
9
+ /** The currently selected Http Client */
10
+ selectedClient?: AvailableClients[number];
11
+ };
12
+ 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, {
13
+ wrapper: HTMLDivElement;
14
+ }, any>;
2
15
  export default _default;
3
16
  //# sourceMappingURL=ClientLibraries.vue.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"ClientLibraries.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/Content/ClientLibraries/ClientLibraries.vue"],"names":[],"mappings":";AA2dA,wBAKG"}
1
+ {"version":3,"file":"ClientLibraries.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/Content/ClientLibraries/ClientLibraries.vue"],"names":[],"mappings":"AAsMA,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,kBAAkB,CAAA;AACxD,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,mDAAmD,CAAA;AAI1F,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,gDAAgD,CAAA;AAQvF,KAAK,WAAW,GAAG;IACjB,sCAAsC;IACtC,QAAQ,EAAE,iBAAiB,CAAA;IAC3B,yDAAyD;IACzD,aAAa,EAAE,iBAAiB,EAAE,CAAA;IAClC,yCAAyC;IACzC,cAAc,CAAC,EAAE,gBAAgB,CAAC,MAAM,CAAC,CAAA;CAC1C,CAAC;;;;AA8PF,wBAOG"}
@@ -1,7 +1,7 @@
1
1
  import o from "./ClientLibraries.vue2.js";
2
- /* empty css */
2
+ import "./ClientLibraries.vue3.js";
3
3
  import r from "../../../_virtual/_plugin-vue_export-helper.js";
4
- const a = /* @__PURE__ */ r(o, [["__scopeId", "data-v-d0decf3e"]]);
4
+ const e = /* @__PURE__ */ r(o, [["__scopeId", "data-v-798b4d3b"]]);
5
5
  export {
6
- a as default
6
+ e as default
7
7
  };