@scalar/api-reference 1.32.10 → 1.33.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (345) hide show
  1. package/CHANGELOG.md +70 -0
  2. package/dist/browser/standalone.js +15385 -15039
  3. package/dist/browser/webpack-stats.json +1 -1
  4. package/dist/components/Anchor/Anchor.vue.d.ts.map +1 -1
  5. package/dist/components/Anchor/Anchor.vue.js +50 -5
  6. package/dist/components/Anchor/Anchor.vue2.js +2 -42
  7. package/dist/components/ApiReference.vue.js +6 -6
  8. package/dist/components/ApiReferenceLayout.vue.d.ts.map +1 -1
  9. package/dist/components/ApiReferenceLayout.vue.js +6 -6
  10. package/dist/components/ApiReferenceLayout.vue2.js +107 -104
  11. package/dist/components/ApiReferenceLayout.vue3.js +4 -0
  12. package/dist/components/ApiReferenceLayout.vue4.js +4 -0
  13. package/dist/components/ApiReferenceLayout.vue5.js +4 -0
  14. package/dist/components/ApiReferenceLayout.vue6.js +4 -0
  15. package/dist/components/Badge/Badge.vue.js +1 -1
  16. package/dist/components/Badge/Badge.vue2.js +4 -0
  17. package/dist/components/ClassicHeader.vue.js +1 -1
  18. package/dist/components/ClassicHeader.vue2.js +4 -0
  19. package/dist/components/Content/ClientLibraries/ClientLibraries.vue.d.ts +14 -1
  20. package/dist/components/Content/ClientLibraries/ClientLibraries.vue.d.ts.map +1 -1
  21. package/dist/components/Content/ClientLibraries/ClientLibraries.vue.js +3 -3
  22. package/dist/components/Content/ClientLibraries/ClientLibraries.vue2.js +74 -84
  23. package/dist/components/Content/ClientLibraries/ClientLibraries.vue3.js +4 -0
  24. package/dist/components/Content/ClientLibraries/ClientSelector.vue.d.ts +8 -0
  25. package/dist/components/Content/ClientLibraries/ClientSelector.vue.d.ts.map +1 -1
  26. package/dist/components/Content/ClientLibraries/ClientSelector.vue.js +2 -2
  27. package/dist/components/Content/ClientLibraries/ClientSelector.vue2.js +81 -80
  28. package/dist/components/Content/ClientLibraries/ClientSelector.vue3.js +4 -0
  29. package/dist/components/Content/ClientLibraries/featured-clients.d.ts +11 -0
  30. package/dist/components/Content/ClientLibraries/featured-clients.d.ts.map +1 -0
  31. package/dist/components/Content/ClientLibraries/featured-clients.js +17 -0
  32. package/dist/components/Content/Content.vue.d.ts +5 -6
  33. package/dist/components/Content/Content.vue.d.ts.map +1 -1
  34. package/dist/components/Content/Content.vue.js +49 -6
  35. package/dist/components/Content/Content.vue2.js +2 -160
  36. package/dist/components/Content/Content.vue3.js +5 -0
  37. package/dist/components/Content/Introduction/Description.vue.js +1 -1
  38. package/dist/components/Content/Introduction/Description.vue3.js +4 -0
  39. package/dist/components/Content/Introduction/Introduction.vue.d.ts +7 -17
  40. package/dist/components/Content/Introduction/Introduction.vue.d.ts.map +1 -1
  41. package/dist/components/Content/Introduction/Introduction.vue.js +3 -3
  42. package/dist/components/Content/Introduction/Introduction.vue2.js +103 -150
  43. package/dist/components/Content/Introduction/Introduction.vue3.js +4 -0
  44. package/dist/components/Content/Introduction/IntroductionSection.vue.d.ts +25 -0
  45. package/dist/components/Content/Introduction/IntroductionSection.vue.d.ts.map +1 -0
  46. package/dist/components/Content/Introduction/IntroductionSection.vue.js +7 -0
  47. package/dist/components/Content/Introduction/IntroductionSection.vue2.js +159 -0
  48. package/dist/components/Content/Introduction/IntroductionSection.vue3.js +4 -0
  49. package/dist/components/Content/Models/{ModelsAccordion.vue.d.ts → ClassicLayout.vue.d.ts} +2 -2
  50. package/dist/components/Content/Models/ClassicLayout.vue.d.ts.map +1 -0
  51. package/dist/components/Content/Models/ClassicLayout.vue.js +7 -0
  52. package/dist/components/Content/Models/{ModelsAccordion.vue2.js → ClassicLayout.vue2.js} +30 -30
  53. package/dist/components/Content/Models/ClassicLayout.vue3.js +4 -0
  54. package/dist/components/Content/Models/Models.vue.d.ts +3 -1
  55. package/dist/components/Content/Models/Models.vue.d.ts.map +1 -1
  56. package/dist/components/Content/Models/Models.vue.js +38 -5
  57. package/dist/components/Content/Models/Models.vue2.js +2 -114
  58. package/dist/components/Content/Models/ModernLayout.vue.d.ts +7 -0
  59. package/dist/components/Content/Models/ModernLayout.vue.d.ts.map +1 -0
  60. package/dist/components/Content/Models/ModernLayout.vue.js +7 -0
  61. package/dist/components/Content/Models/ModernLayout.vue2.js +100 -0
  62. package/dist/components/Content/Models/ModernLayout.vue3.js +4 -0
  63. package/dist/components/Content/Models/index.d.ts +0 -1
  64. package/dist/components/Content/Models/index.d.ts.map +1 -1
  65. package/dist/components/Content/Operations/TraversedEntry.vue.d.ts +21 -0
  66. package/dist/components/Content/Operations/TraversedEntry.vue.d.ts.map +1 -0
  67. package/dist/components/Content/Operations/TraversedEntry.vue.js +95 -0
  68. package/dist/components/Content/Operations/TraversedEntry.vue2.js +4 -0
  69. package/dist/components/Content/Operations/TraversedEntryContainer.vue.d.ts +17 -0
  70. package/dist/components/Content/Operations/TraversedEntryContainer.vue.d.ts.map +1 -0
  71. package/dist/components/Content/Operations/TraversedEntryContainer.vue.js +56 -0
  72. package/dist/components/Content/Operations/TraversedEntryContainer.vue2.js +4 -0
  73. package/dist/components/Content/Operations/index.d.ts +2 -0
  74. package/dist/components/Content/Operations/index.d.ts.map +1 -0
  75. package/dist/components/Content/Schema/Schema.vue.js +1 -1
  76. package/dist/components/Content/Schema/Schema.vue3.js +4 -0
  77. package/dist/components/Content/Schema/SchemaComposition.vue.d.ts.map +1 -1
  78. package/dist/components/Content/Schema/SchemaEnumPropertyItem.vue.d.ts.map +1 -1
  79. package/dist/components/Content/Schema/SchemaEnumPropertyItem.vue.js +3 -3
  80. package/dist/components/Content/Schema/SchemaEnumPropertyItem.vue3.js +4 -0
  81. package/dist/components/Content/Schema/SchemaEnumValues.vue.d.ts.map +1 -1
  82. package/dist/components/Content/Schema/SchemaEnumValues.vue.js +3 -3
  83. package/dist/components/Content/Schema/SchemaEnumValues.vue2.js +63 -68
  84. package/dist/components/Content/Schema/SchemaEnumValues.vue3.js +4 -0
  85. package/dist/components/Content/Schema/SchemaHeading.vue.d.ts.map +1 -1
  86. package/dist/components/Content/Schema/SchemaHeading.vue.js +4 -4
  87. package/dist/components/Content/Schema/SchemaHeading.vue2.js +23 -22
  88. package/dist/components/Content/Schema/SchemaHeading.vue3.js +4 -0
  89. package/dist/components/Content/Schema/SchemaProperty.vue.d.ts.map +1 -1
  90. package/dist/components/Content/Schema/SchemaProperty.vue.js +2 -2
  91. package/dist/components/Content/Schema/SchemaProperty.vue2.js +34 -33
  92. package/dist/components/Content/Schema/SchemaProperty.vue3.js +4 -0
  93. package/dist/components/Content/Schema/SchemaPropertyDetail.vue.d.ts.map +1 -1
  94. package/dist/components/Content/Schema/SchemaPropertyDetail.vue.js +2 -2
  95. package/dist/components/Content/Schema/SchemaPropertyDetail.vue3.js +4 -0
  96. package/dist/components/Content/Schema/SchemaPropertyExamples.vue.js +3 -3
  97. package/dist/components/Content/Schema/SchemaPropertyExamples.vue3.js +4 -0
  98. package/dist/components/Content/Schema/SchemaPropertyHeading.vue.d.ts.map +1 -1
  99. package/dist/components/Content/Schema/SchemaPropertyHeading.vue.js +3 -3
  100. package/dist/components/Content/Schema/SchemaPropertyHeading.vue2.js +26 -23
  101. package/dist/components/Content/Schema/SchemaPropertyHeading.vue3.js +4 -0
  102. package/dist/components/Content/Schema/helpers/merge-all-of-schemas.d.ts +2 -1
  103. package/dist/components/Content/Schema/helpers/merge-all-of-schemas.d.ts.map +1 -1
  104. package/dist/components/Content/Schema/helpers/merge-all-of-schemas.js +59 -52
  105. package/dist/components/Content/Schema/helpers/optimize-value-for-display.d.ts.map +1 -1
  106. package/dist/components/Content/Schema/helpers/optimize-value-for-display.js +24 -20
  107. package/dist/components/Content/Schema/helpers/schema-name.d.ts +1 -1
  108. package/dist/components/Content/Schema/helpers/schema-name.d.ts.map +1 -1
  109. package/dist/components/Content/{Tag/TagAccordion.vue.d.ts → Tags/ClassicLayout.vue.d.ts} +3 -3
  110. package/dist/components/Content/Tags/ClassicLayout.vue.d.ts.map +1 -0
  111. package/dist/components/Content/Tags/ClassicLayout.vue.js +7 -0
  112. package/dist/components/Content/Tags/ClassicLayout.vue2.js +51 -0
  113. package/dist/components/Content/Tags/ClassicLayout.vue3.js +4 -0
  114. package/dist/components/Content/{Tag/TagSection.vue.d.ts → Tags/ModernLayout.vue.d.ts} +17 -13
  115. package/dist/components/Content/Tags/ModernLayout.vue.d.ts.map +1 -0
  116. package/dist/components/Content/Tags/ModernLayout.vue.js +7 -0
  117. package/dist/components/Content/Tags/ModernLayout.vue2.js +69 -0
  118. package/dist/components/Content/Tags/ModernLayout.vue3.js +4 -0
  119. package/dist/components/Content/Tags/Tag.vue.d.ts +25 -0
  120. package/dist/components/Content/Tags/Tag.vue.d.ts.map +1 -0
  121. package/dist/components/Content/Tags/Tag.vue.js +27 -0
  122. package/dist/components/Content/{Tag/Tag.vue.d.ts → Tags/TagSection.vue.d.ts} +3 -6
  123. package/dist/components/Content/Tags/TagSection.vue.d.ts.map +1 -0
  124. package/dist/components/Content/Tags/TagSection.vue.js +104 -0
  125. package/dist/components/Content/Tags/TagSection.vue2.js +4 -0
  126. package/dist/components/Content/Tags/index.d.ts +2 -0
  127. package/dist/components/Content/Tags/index.d.ts.map +1 -0
  128. package/dist/components/GettingStarted.vue.js +1 -1
  129. package/dist/components/GettingStarted.vue3.js +4 -0
  130. package/dist/components/HttpMethod/HttpMethod.vue.d.ts.map +1 -1
  131. package/dist/components/HttpMethod/HttpMethod.vue.js +8 -6
  132. package/dist/components/{Content/Lazy → Lazy}/Lazy.vue.d.ts +1 -10
  133. package/dist/components/Lazy/Lazy.vue.d.ts.map +1 -0
  134. package/dist/components/Lazy/Lazy.vue2.js +25 -0
  135. package/dist/components/Lazy/index.d.ts +3 -0
  136. package/dist/components/Lazy/index.d.ts.map +1 -0
  137. package/dist/components/Lazy/lazyBus.d.ts +8 -0
  138. package/dist/components/Lazy/lazyBus.d.ts.map +1 -0
  139. package/dist/components/Lazy/lazyBus.js +7 -0
  140. package/dist/components/LinkList/LinkList.vue.d.ts +3 -1
  141. package/dist/components/LinkList/LinkList.vue.d.ts.map +1 -1
  142. package/dist/components/LinkList/LinkList.vue.js +5 -10
  143. package/dist/components/LinkList/LinkList.vue2.js +32 -0
  144. package/dist/components/LinkList/LinkList.vue3.js +4 -0
  145. package/dist/components/LoadingSkeleton.vue.d.ts.map +1 -1
  146. package/dist/components/LoadingSkeleton.vue.js +3 -3
  147. package/dist/components/LoadingSkeleton.vue3.js +4 -0
  148. package/dist/components/MobileHeader.vue.js +1 -1
  149. package/dist/components/MobileHeader.vue3.js +4 -0
  150. package/dist/components/OperationPath.vue.js +1 -1
  151. package/dist/components/OperationPath.vue3.js +4 -0
  152. package/dist/components/{Content/Tag → OperationsList}/OperationsList.vue.d.ts +2 -5
  153. package/dist/components/OperationsList/OperationsList.vue.d.ts.map +1 -0
  154. package/dist/components/OperationsList/OperationsList.vue.js +7 -0
  155. package/dist/components/OperationsList/OperationsList.vue2.js +60 -0
  156. package/dist/components/OperationsList/OperationsList.vue3.js +4 -0
  157. package/dist/components/{Content/Tag → OperationsList}/OperationsListItem.vue.d.ts +2 -4
  158. package/dist/components/OperationsList/OperationsListItem.vue.d.ts.map +1 -0
  159. package/dist/components/OperationsList/OperationsListItem.vue.js +7 -0
  160. package/dist/components/OperationsList/OperationsListItem.vue2.js +63 -0
  161. package/dist/components/OperationsList/OperationsListItem.vue3.js +4 -0
  162. package/dist/components/OperationsList/index.d.ts +2 -0
  163. package/dist/components/OperationsList/index.d.ts.map +1 -0
  164. package/dist/components/ScreenReader.vue.js +1 -1
  165. package/dist/components/ScreenReader.vue3.js +4 -0
  166. package/dist/components/Section/CompactSection.vue.d.ts.map +1 -1
  167. package/dist/components/Section/CompactSection.vue.js +3 -3
  168. package/dist/components/Section/CompactSection.vue2.js +35 -36
  169. package/dist/components/Section/CompactSection.vue3.js +4 -0
  170. package/dist/components/Section/Section.vue.js +1 -1
  171. package/dist/components/Section/Section.vue3.js +4 -0
  172. package/dist/components/Section/SectionAccordion.vue.d.ts.map +1 -1
  173. package/dist/components/Section/SectionAccordion.vue.js +3 -3
  174. package/dist/components/Section/SectionAccordion.vue2.js +42 -36
  175. package/dist/components/Section/SectionAccordion.vue3.js +4 -0
  176. package/dist/components/Section/SectionColumn.vue.js +1 -1
  177. package/dist/components/Section/SectionColumn.vue2.js +4 -0
  178. package/dist/components/Section/SectionColumns.vue.js +1 -1
  179. package/dist/components/Section/SectionColumns.vue2.js +4 -0
  180. package/dist/components/Section/SectionContainer.vue.d.ts +9 -2
  181. package/dist/components/Section/SectionContainer.vue.d.ts.map +1 -1
  182. package/dist/components/Section/SectionContainer.vue.js +5 -11
  183. package/dist/components/Section/SectionContainer.vue2.js +18 -0
  184. package/dist/components/Section/SectionContainer.vue3.js +4 -0
  185. package/dist/components/Section/SectionContainerAccordion.vue.d.ts.map +1 -1
  186. package/dist/components/Section/SectionContainerAccordion.vue.js +3 -3
  187. package/dist/components/Section/SectionContainerAccordion.vue3.js +4 -0
  188. package/dist/components/Section/SectionContent.vue.js +1 -1
  189. package/dist/components/Section/SectionContent.vue3.js +4 -0
  190. package/dist/components/Section/SectionHeader.vue.js +1 -1
  191. package/dist/components/Section/SectionHeader.vue3.js +4 -0
  192. package/dist/components/Section/SectionHeaderTag.vue.js +1 -1
  193. package/dist/components/Section/SectionHeaderTag.vue3.js +4 -0
  194. package/dist/components/SectionFlare/SectionFlare.vue.d.ts +3 -0
  195. package/dist/components/SectionFlare/SectionFlare.vue.d.ts.map +1 -0
  196. package/dist/components/SectionFlare/SectionFlare.vue.js +13 -0
  197. package/dist/components/SectionFlare/SectionFlare.vue2.js +4 -0
  198. package/dist/components/SectionFlare/index.d.ts +2 -0
  199. package/dist/components/SectionFlare/index.d.ts.map +1 -0
  200. package/dist/components/ShowMoreButton.vue.d.ts.map +1 -1
  201. package/dist/components/ShowMoreButton.vue.js +3 -3
  202. package/dist/components/ShowMoreButton.vue2.js +12 -12
  203. package/dist/components/ShowMoreButton.vue3.js +4 -0
  204. package/dist/features/Operation/Operation.vue.d.ts +5 -1
  205. package/dist/features/Operation/Operation.vue.d.ts.map +1 -1
  206. package/dist/features/Operation/Operation.vue.js +55 -38
  207. package/dist/features/Operation/components/ContentTypeSelect.vue.d.ts.map +1 -1
  208. package/dist/features/Operation/components/ContentTypeSelect.vue.js +28 -30
  209. package/dist/features/Operation/components/ParameterHeaders.vue.js +1 -1
  210. package/dist/features/Operation/components/ParameterHeaders.vue3.js +4 -0
  211. package/dist/features/Operation/components/ParameterList.vue.js +1 -1
  212. package/dist/features/Operation/components/ParameterList.vue3.js +4 -0
  213. package/dist/features/Operation/components/ParameterListItem.vue.d.ts.map +1 -1
  214. package/dist/features/Operation/components/ParameterListItem.vue.js +2 -2
  215. package/dist/features/Operation/components/ParameterListItem.vue2.js +31 -29
  216. package/dist/features/Operation/components/ParameterListItem.vue3.js +4 -0
  217. package/dist/features/Operation/components/RequestBody.vue.js +1 -1
  218. package/dist/features/Operation/components/RequestBody.vue3.js +4 -0
  219. package/dist/features/Operation/components/callbacks/Callback.vue.d.ts.map +1 -1
  220. package/dist/features/Operation/components/callbacks/Callback.vue.js +3 -3
  221. package/dist/features/Operation/components/callbacks/Callback.vue2.js +9 -9
  222. package/dist/features/Operation/components/callbacks/Callback.vue3.js +4 -0
  223. package/dist/features/Operation/components/callbacks/Callbacks.vue.d.ts.map +1 -1
  224. package/dist/features/Operation/components/callbacks/Callbacks.vue.js +20 -28
  225. package/dist/features/Operation/layouts/ClassicLayout.vue.d.ts +6 -0
  226. package/dist/features/Operation/layouts/ClassicLayout.vue.d.ts.map +1 -1
  227. package/dist/features/Operation/layouts/ClassicLayout.vue.js +2 -2
  228. package/dist/features/Operation/layouts/ClassicLayout.vue2.js +77 -62
  229. package/dist/features/Operation/layouts/ClassicLayout.vue3.js +4 -0
  230. package/dist/features/Operation/layouts/ModernLayout.vue.d.ts +6 -0
  231. package/dist/features/Operation/layouts/ModernLayout.vue.d.ts.map +1 -1
  232. package/dist/features/Operation/layouts/ModernLayout.vue.js +3 -3
  233. package/dist/features/Operation/layouts/ModernLayout.vue2.js +94 -81
  234. package/dist/features/Operation/layouts/ModernLayout.vue3.js +4 -0
  235. package/dist/features/Search/SearchModal.vue.js +4 -4
  236. package/dist/features/Search/SearchModal.vue2.js +9 -9
  237. package/dist/features/Search/SearchModal.vue3.js +4 -0
  238. package/dist/features/api-client-modal/ApiClientModal.vue.d.ts.map +1 -1
  239. package/dist/features/api-client-modal/useApiClient.d.ts +414 -354
  240. package/dist/features/api-client-modal/useApiClient.d.ts.map +1 -1
  241. package/dist/features/download-link/DownloadLink.vue.js +2 -2
  242. package/dist/features/download-link/DownloadLink.vue3.js +4 -0
  243. package/dist/features/example-responses/ExampleResponse.vue.d.ts +4 -2
  244. package/dist/features/example-responses/ExampleResponse.vue.d.ts.map +1 -1
  245. package/dist/features/example-responses/ExampleResponse.vue.js +3 -3
  246. package/dist/features/example-responses/ExampleResponse.vue2.js +15 -14
  247. package/dist/features/example-responses/ExampleResponse.vue3.js +4 -0
  248. package/dist/features/example-responses/ExampleResponseTab.vue.js +1 -1
  249. package/dist/features/example-responses/ExampleResponseTab.vue3.js +4 -0
  250. package/dist/features/example-responses/ExampleResponseTabList.vue.js +1 -1
  251. package/dist/features/example-responses/ExampleResponseTabList.vue3.js +4 -0
  252. package/dist/features/example-responses/ExampleResponses.vue.d.ts +3 -2
  253. package/dist/features/example-responses/ExampleResponses.vue.d.ts.map +1 -1
  254. package/dist/features/example-responses/ExampleResponses.vue.js +4 -4
  255. package/dist/features/example-responses/ExampleResponses.vue2.js +107 -104
  256. package/dist/features/example-responses/ExampleResponses.vue3.js +4 -0
  257. package/dist/features/info-object/License.vue.d.ts.map +1 -1
  258. package/dist/features/info-object/License.vue.js +18 -15
  259. package/dist/features/sidebar/components/Sidebar.vue.js +3 -3
  260. package/dist/features/sidebar/components/Sidebar.vue3.js +4 -0
  261. package/dist/features/sidebar/components/SidebarElement.vue.js +3 -3
  262. package/dist/features/sidebar/components/SidebarElement.vue3.js +4 -0
  263. package/dist/features/sidebar/components/SidebarGroup.vue.js +1 -1
  264. package/dist/features/sidebar/components/SidebarGroup.vue3.js +4 -0
  265. package/dist/features/sidebar/components/SidebarHttpBadge.vue.js +1 -1
  266. package/dist/features/sidebar/components/SidebarHttpBadge.vue3.js +4 -0
  267. package/dist/features/sidebar/helpers/create-sidebar.js +12 -12
  268. package/dist/features/test-request-button/TestRequestButton.vue.js +1 -1
  269. package/dist/features/test-request-button/TestRequestButton.vue3.js +4 -0
  270. package/dist/features/traverse-schema/index.d.ts +2 -1
  271. package/dist/features/traverse-schema/index.d.ts.map +1 -1
  272. package/dist/helpers/test-utils.d.ts +51 -0
  273. package/dist/helpers/test-utils.d.ts.map +1 -0
  274. package/dist/index.d.ts +1 -0
  275. package/dist/index.d.ts.map +1 -1
  276. package/dist/index.js +24 -21
  277. package/dist/style.css +1 -1
  278. package/dist/types.d.ts +5 -0
  279. package/dist/types.d.ts.map +1 -1
  280. package/dist/v2/ApiReferenceWorkspace.vue.d.ts +1 -1
  281. package/dist/v2/ApiReferenceWorkspace.vue.d.ts.map +1 -1
  282. package/dist/v2/ApiReferenceWorkspace.vue.js +83 -93
  283. package/dist/v2/ApiReferenceWorkspace.vue2.js +4 -0
  284. package/dist/v2/ApiReferenceWorkspace.vue3.js +1 -1
  285. package/dist/v2/blocks/scalar-request-example-block/components/ExamplePicker.vue.d.ts +2 -2
  286. package/dist/v2/blocks/scalar-request-example-block/components/ExamplePicker.vue.d.ts.map +1 -1
  287. package/dist/v2/blocks/scalar-request-example-block/components/ExamplePicker.vue2.js +32 -29
  288. package/dist/v2/blocks/scalar-request-example-block/components/RequestExample.vue.d.ts +4 -13
  289. package/dist/v2/blocks/scalar-request-example-block/components/RequestExample.vue.d.ts.map +1 -1
  290. package/dist/v2/blocks/scalar-request-example-block/components/RequestExample.vue.js +3 -3
  291. package/dist/v2/blocks/scalar-request-example-block/components/RequestExample.vue2.js +185 -181
  292. package/dist/v2/blocks/scalar-request-example-block/components/RequestExample.vue3.js +4 -0
  293. package/dist/v2/blocks/scalar-request-example-block/helpers/find-client.d.ts +1 -0
  294. package/dist/v2/blocks/scalar-request-example-block/helpers/find-client.d.ts.map +1 -1
  295. package/dist/v2/blocks/scalar-request-example-block/helpers/find-client.js +1 -0
  296. package/dist/v2/blocks/scalar-request-example-block/helpers/generate-client-options.d.ts +12 -13
  297. package/dist/v2/blocks/scalar-request-example-block/helpers/generate-client-options.d.ts.map +1 -1
  298. package/dist/v2/blocks/scalar-request-example-block/helpers/generate-client-options.js +28 -30
  299. package/dist/v2/blocks/scalar-request-example-block/types.d.ts +11 -3
  300. package/dist/v2/blocks/scalar-request-example-block/types.d.ts.map +1 -1
  301. package/package.json +19 -19
  302. package/dist/components/Content/ClientLibraries/useFeaturedHttpClients.d.ts +0 -16
  303. package/dist/components/Content/ClientLibraries/useFeaturedHttpClients.d.ts.map +0 -1
  304. package/dist/components/Content/ClientLibraries/useFeaturedHttpClients.js +0 -36
  305. package/dist/components/Content/Lazy/Lazy.vue.d.ts.map +0 -1
  306. package/dist/components/Content/Lazy/Lazy.vue2.js +0 -22
  307. package/dist/components/Content/Lazy/Loading.vue.d.ts +0 -18
  308. package/dist/components/Content/Lazy/Loading.vue.d.ts.map +0 -1
  309. package/dist/components/Content/Lazy/Loading.vue.js +0 -163
  310. package/dist/components/Content/Lazy/Loading.vue3.js +0 -5
  311. package/dist/components/Content/Lazy/index.d.ts +0 -3
  312. package/dist/components/Content/Lazy/index.d.ts.map +0 -1
  313. package/dist/components/Content/Lazy/lazyBus.d.ts +0 -4
  314. package/dist/components/Content/Lazy/lazyBus.d.ts.map +0 -1
  315. package/dist/components/Content/Lazy/lazyBus.js +0 -5
  316. package/dist/components/Content/Models/ModelsAccordion.vue.d.ts.map +0 -1
  317. package/dist/components/Content/Models/ModelsAccordion.vue.js +0 -7
  318. package/dist/components/Content/Tag/OperationsList.vue.d.ts.map +0 -1
  319. package/dist/components/Content/Tag/OperationsList.vue.js +0 -7
  320. package/dist/components/Content/Tag/OperationsList.vue2.js +0 -58
  321. package/dist/components/Content/Tag/OperationsListItem.vue.d.ts.map +0 -1
  322. package/dist/components/Content/Tag/OperationsListItem.vue.js +0 -7
  323. package/dist/components/Content/Tag/OperationsListItem.vue2.js +0 -67
  324. package/dist/components/Content/Tag/Tag.vue.d.ts.map +0 -1
  325. package/dist/components/Content/Tag/Tag.vue.js +0 -99
  326. package/dist/components/Content/Tag/TagAccordion.vue.d.ts.map +0 -1
  327. package/dist/components/Content/Tag/TagAccordion.vue.js +0 -7
  328. package/dist/components/Content/Tag/TagAccordion.vue2.js +0 -50
  329. package/dist/components/Content/Tag/TagList.vue.d.ts +0 -22
  330. package/dist/components/Content/Tag/TagList.vue.d.ts.map +0 -1
  331. package/dist/components/Content/Tag/TagList.vue.js +0 -73
  332. package/dist/components/Content/Tag/TagList.vue2.js +0 -4
  333. package/dist/components/Content/Tag/TagSection.vue.d.ts.map +0 -1
  334. package/dist/components/Content/Tag/TagSection.vue.js +0 -7
  335. package/dist/components/Content/Tag/TagSection.vue2.js +0 -67
  336. package/dist/components/Content/Tag/index.d.ts +0 -3
  337. package/dist/components/Content/Tag/index.d.ts.map +0 -1
  338. package/dist/stores/useHttpClientStore.d.ts +0 -43
  339. package/dist/stores/useHttpClientStore.d.ts.map +0 -1
  340. package/dist/stores/useHttpClientStore.js +0 -70
  341. package/dist/v2/hooks/useStore.d.ts +0 -9
  342. package/dist/v2/hooks/useStore.d.ts.map +0 -1
  343. package/dist/v2/hooks/useStore.js +0 -14
  344. /package/dist/components/Content/{Tag → Tags}/Tag.vue2.js +0 -0
  345. /package/dist/components/{Content/Lazy → Lazy}/Lazy.vue.js +0 -0
@@ -1,171 +1,174 @@
1
- import { defineComponent as M, useId as N, computed as v, ref as R, createBlock as r, createCommentVNode as x, openBlock as o, unref as l, withCtx as u, createVNode as k, createElementBlock as f, Fragment as _, renderList as C, createTextVNode as g, toDisplayString as F, withDirectives as I, createElementVNode as j, vModelCheckbox as A } from "vue";
2
- import { ScalarCard as D, ScalarIcon as K, ScalarCardSection as L, ScalarCodeBlock as U, ScalarCardFooter as J, ScalarMarkdown as P } from "@scalar/components";
3
- import { normalizeMimeTypeObject as W, getObjectKeys as $ } from "@scalar/oas-utils/helpers";
4
- import { useClipboard as q } from "@scalar/use-hooks/useClipboard";
5
- import G from "../../components/ScreenReader.vue.js";
6
- import w from "./ExampleResponse.vue.js";
7
- import H from "./ExampleResponseTab.vue.js";
8
- import Q from "./ExampleResponseTabList.vue.js";
9
- import X from "../../v2/blocks/scalar-request-example-block/components/ExamplePicker.vue2.js";
10
- const Y = {
1
+ import { defineComponent as C, useId as M, computed as d, ref as h, toValue as E, createBlock as p, createCommentVNode as u, openBlock as o, unref as t, withCtx as r, createVNode as x, createElementBlock as k, Fragment as N, renderList as F, createTextVNode as g, toDisplayString as I, withDirectives as K, createElementVNode as _, vModelCheckbox as A } from "vue";
2
+ import { ScalarCard as D, ScalarIcon as L, ScalarCardSection as U, ScalarCodeBlock as $, ScalarCardFooter as q, ScalarMarkdown as G } from "@scalar/components";
3
+ import { normalizeMimeTypeObject as H, getObjectKeys as J } from "@scalar/oas-utils/helpers";
4
+ import { useClipboard as P } from "@scalar/use-hooks/useClipboard";
5
+ import Q from "../../components/ScreenReader.vue.js";
6
+ import W from "./ExampleResponse.vue.js";
7
+ import X from "./ExampleResponseTab.vue.js";
8
+ import Y from "./ExampleResponseTabList.vue.js";
9
+ import Z from "../../v2/blocks/scalar-request-example-block/components/ExamplePicker.vue2.js";
10
+ const z = {
11
11
  key: 1,
12
12
  class: "scalar-card-checkbox"
13
- }, Z = ["aria-controls"], z = {
14
- key: 1,
13
+ }, ee = ["aria-controls"], se = {
14
+ key: 0,
15
15
  class: "response-description"
16
- }, ne = /* @__PURE__ */ M({
16
+ }, ie = /* @__PURE__ */ C({
17
17
  __name: "ExampleResponses",
18
18
  props: {
19
19
  responses: {}
20
20
  },
21
- setup(E) {
22
- const p = N(), { copyToClipboard: T } = q(), S = v(() => Object.keys(E.responses ?? {}).sort()), y = v(
23
- () => !!s.value.examples
24
- ), V = R(0), i = v(() => {
25
- var a;
26
- const e = S.value[V.value];
27
- return (a = E.responses) == null ? void 0 : a[e];
28
- }), s = v(() => {
29
- var m;
30
- const e = W(
31
- (m = i.value) == null ? void 0 : m.content
32
- ), a = $(e ?? {});
21
+ setup(R) {
22
+ var j;
23
+ const v = M(), { copyToClipboard: w } = P(), y = d(
24
+ () => Object.keys(R.responses ?? {}).sort()
25
+ ), V = h(0), f = d(() => {
26
+ var s;
27
+ const e = E(y)[E(V)];
28
+ return (s = R.responses) == null ? void 0 : s[e];
29
+ }), l = d(() => {
30
+ var c;
31
+ const e = H(
32
+ (c = f.value) == null ? void 0 : c.content
33
+ ), s = J(e ?? {});
33
34
  return (
34
35
  // OpenAPI 3.x
35
36
  (e == null ? void 0 : e["application/json"]) ?? (e == null ? void 0 : e["application/xml"]) ?? (e == null ? void 0 : e["text/plain"]) ?? (e == null ? void 0 : e["text/html"]) ?? (e == null ? void 0 : e["*/*"]) ?? // Take the first key - in the future we may want to use the selected content type
36
- (e == null ? void 0 : e[a[0]]) ?? // Swagger 2.0
37
- i.value
37
+ (e == null ? void 0 : e[s[0]]) ?? void 0
38
38
  );
39
- }), c = R(
40
- Object.keys(s.value.examples ?? {})[0] ?? ""
39
+ }), b = d(
40
+ () => {
41
+ var e, s;
42
+ return !!((e = l.value) != null && e.examples) && Object.keys(((s = l.value) == null ? void 0 : s.examples) ?? {}).length > 1;
43
+ }
44
+ ), i = h(
45
+ Object.keys(((j = l.value) == null ? void 0 : j.examples) ?? {})[0] ?? ""
41
46
  ), O = () => {
42
- if (!y.value)
43
- return s.value.example;
44
- if (Array.isArray(s.value.examples))
45
- return s.value.examples[0];
46
- const e = Object.keys(s.value.examples)[0], a = s.value.examples[e];
47
- return (a == null ? void 0 : a.value) ?? a;
48
- }, b = v(() => ({
49
- ...s.value,
50
- example: y.value && c.value ? s.value.examples[c.value].value ?? s.value.examples[c.value] : O()
51
- })), B = (e) => {
52
- V.value = e, c.value = "";
53
- }, h = R(!1);
54
- return (e, a) => S.value.length ? (o(), r(l(D), {
47
+ var a;
48
+ const e = E(l);
49
+ if (!e)
50
+ return;
51
+ if (Array.isArray(e.examples))
52
+ return e.examples[0];
53
+ const s = Object.keys(e.examples ?? {})[0];
54
+ return (a = e.examples) == null ? void 0 : a[s];
55
+ }, T = d(() => {
56
+ var e, s;
57
+ return b.value && i.value ? (s = (e = l.value) == null ? void 0 : e.examples) == null ? void 0 : s[i.value] : O();
58
+ }), B = (e) => {
59
+ V.value = e, i.value = "";
60
+ }, S = h(!1);
61
+ return (e, s) => y.value.length ? (o(), p(t(D), {
55
62
  key: 0,
56
63
  "aria-label": "Example Responses",
57
64
  role: "region",
58
65
  class: "response-card"
59
66
  }, {
60
- default: u(() => {
61
- var m;
67
+ default: r(() => {
68
+ var c;
62
69
  return [
63
- k(Q, { onChange: B }, {
64
- actions: u(() => {
65
- var t, d;
70
+ x(Y, { onChange: B }, {
71
+ actions: r(() => {
72
+ var a, m;
66
73
  return [
67
- (t = s.value) != null && t.example ? (o(), f("button", {
74
+ (a = l.value) != null && a.example ? (o(), k("button", {
68
75
  key: 0,
69
76
  class: "code-copy",
70
77
  type: "button",
71
- onClick: a[0] || (a[0] = () => {
78
+ onClick: s[0] || (s[0] = () => {
72
79
  var n;
73
- return l(T)((n = s.value) == null ? void 0 : n.example);
80
+ return t(w)((n = l.value) == null ? void 0 : n.example);
74
81
  })
75
82
  }, [
76
- k(l(K), {
83
+ x(t(L), {
77
84
  icon: "Clipboard",
78
85
  width: "12px"
79
86
  })
80
- ])) : x("", !0),
81
- (d = s.value) != null && d.schema ? (o(), f("label", Y, [
82
- a[4] || (a[4] = g(" Show Schema ")),
83
- I(j("input", {
84
- "onUpdate:modelValue": a[1] || (a[1] = (n) => h.value = n),
85
- "aria-controls": l(p),
87
+ ])) : u("", !0),
88
+ (m = l.value) != null && m.schema ? (o(), k("label", z, [
89
+ s[4] || (s[4] = g(" Show Schema ")),
90
+ K(_("input", {
91
+ "onUpdate:modelValue": s[1] || (s[1] = (n) => S.value = n),
92
+ "aria-controls": t(v),
86
93
  class: "scalar-card-checkbox-input",
87
94
  type: "checkbox"
88
- }, null, 8, Z), [
89
- [A, h.value]
95
+ }, null, 8, ee), [
96
+ [A, S.value]
90
97
  ]),
91
- a[5] || (a[5] = j("span", { class: "scalar-card-checkbox-checkmark" }, null, -1))
92
- ])) : x("", !0)
98
+ s[5] || (s[5] = _("span", { class: "scalar-card-checkbox-checkmark" }, null, -1))
99
+ ])) : u("", !0)
93
100
  ];
94
101
  }),
95
- default: u(() => [
96
- (o(!0), f(_, null, C(S.value, (t) => (o(), r(H, {
97
- key: t,
98
- "aria-controls": l(p)
102
+ default: r(() => [
103
+ (o(!0), k(N, null, F(y.value, (a) => (o(), p(X, {
104
+ key: a,
105
+ "aria-controls": t(v)
99
106
  }, {
100
- default: u(() => [
101
- k(G, null, {
102
- default: u(() => a[3] || (a[3] = [
107
+ default: r(() => [
108
+ x(Q, null, {
109
+ default: r(() => s[3] || (s[3] = [
103
110
  g("Status:")
104
111
  ])),
105
112
  _: 1,
106
113
  __: [3]
107
114
  }),
108
- g(" " + F(t), 1)
115
+ g(" " + I(a), 1)
109
116
  ]),
110
117
  _: 2
111
118
  }, 1032, ["aria-controls"]))), 128))
112
119
  ]),
113
120
  _: 1
114
121
  }),
115
- k(l(L), { class: "grid flex-1" }, {
116
- default: u(() => {
117
- var t;
122
+ x(t(U), { class: "grid flex-1" }, {
123
+ default: r(() => {
124
+ var a;
118
125
  return [
119
- (t = s.value) != null && t.schema ? (o(), f(_, { key: 0 }, [
120
- h.value && b.value ? (o(), r(l(U), {
121
- key: 0,
122
- id: l(p),
123
- class: "-outline-offset-2",
124
- content: b.value,
125
- lang: "json"
126
- }, null, 8, ["id", "content"])) : (o(), r(w, {
127
- key: 1,
128
- id: l(p),
129
- response: b.value
130
- }, null, 8, ["id", "response"]))
131
- ], 64)) : (o(), r(w, {
126
+ S.value && ((a = l.value) != null && a.schema) ? (o(), p(t($), {
127
+ key: 0,
128
+ id: t(v),
129
+ class: "-outline-offset-2",
130
+ content: l.value.schema,
131
+ lang: "json"
132
+ }, null, 8, ["id", "content"])) : (o(), p(W, {
132
133
  key: 1,
133
- id: l(p),
134
- response: b.value
135
- }, null, 8, ["id", "response"]))
134
+ id: t(v),
135
+ response: l.value,
136
+ example: T.value
137
+ }, null, 8, ["id", "response", "example"]))
136
138
  ];
137
139
  }),
138
140
  _: 1
139
141
  }),
140
- (m = i.value) != null && m.description || y.value ? (o(), r(l(J), {
142
+ (c = f.value) != null && c.description || b.value ? (o(), p(t(q), {
141
143
  key: 0,
142
144
  class: "response-card-footer"
143
145
  }, {
144
- default: u(() => {
145
- var t, d;
146
+ default: r(() => {
147
+ var a, m;
146
148
  return [
147
- y.value ? (o(), r(l(X), {
148
- key: 0,
149
- class: "response-example-selector",
150
- examples: (t = s.value) == null ? void 0 : t.examples,
151
- modelValue: c.value,
152
- "onUpdate:modelValue": a[2] || (a[2] = (n) => c.value = n)
153
- }, null, 8, ["examples", "modelValue"])) : (d = i.value) != null && d.description ? (o(), f("div", z, [
154
- k(l(P), {
149
+ (a = f.value) != null && a.description ? (o(), k("div", se, [
150
+ x(t(G), {
155
151
  class: "markdown",
156
- value: i.value.description
152
+ value: f.value.description
157
153
  }, null, 8, ["value"])
158
- ])) : x("", !0)
154
+ ])) : u("", !0),
155
+ b.value ? (o(), p(t(Z), {
156
+ key: 1,
157
+ class: "response-example-selector",
158
+ examples: (m = l.value) == null ? void 0 : m.examples,
159
+ modelValue: i.value,
160
+ "onUpdate:modelValue": s[2] || (s[2] = (n) => i.value = n)
161
+ }, null, 8, ["examples", "modelValue"])) : u("", !0)
159
162
  ];
160
163
  }),
161
164
  _: 1
162
- })) : x("", !0)
165
+ })) : u("", !0)
163
166
  ];
164
167
  }),
165
168
  _: 1
166
- })) : x("", !0);
169
+ })) : u("", !0);
167
170
  }
168
171
  });
169
172
  export {
170
- ne as default
173
+ ie as default
171
174
  };
@@ -0,0 +1,4 @@
1
+ const e = "";
2
+ export {
3
+ e as default
4
+ };
@@ -1 +1 @@
1
- {"version":3,"file":"License.vue.d.ts","sourceRoot":"","sources":["../../../src/features/info-object/License.vue"],"names":[],"mappings":"AAiCA,OAAO,EAAE,KAAK,WAAW,EAAE,MAAM,uBAAuB,CAAA;AAIxD,KAAK,WAAW,GAAG;IACjB,KAAK,CAAC,EAAE,WAAW,CAAC,aAAa,CAAA;CAClC,CAAC;;AAkGF,wBAOG"}
1
+ {"version":3,"file":"License.vue.d.ts","sourceRoot":"","sources":["../../../src/features/info-object/License.vue"],"names":[],"mappings":"AAoCA,OAAO,EAAE,KAAK,WAAW,EAAE,MAAM,uBAAuB,CAAA;AAIxD,KAAK,WAAW,GAAG;IACjB,KAAK,CAAC,EAAE,WAAW,CAAC,aAAa,CAAA;CAClC,CAAC;;AAyGF,wBAOG"}
@@ -1,34 +1,37 @@
1
- import { defineComponent as s, createElementBlock as r, openBlock as n, createVNode as i, createElementVNode as d, unref as m, toDisplayString as a } from "vue";
2
- import { ScalarIconGavel as u } from "@scalar/icons";
3
- const c = { class: "group flex h-fit items-center last:border-r-0 xl:border-r xl:first:ml-auto" }, p = ["href"], f = { class: "ml-1 empty:hidden" }, h = {
4
- key: 1,
5
- class: "ml-1 empty:hidden"
6
- }, y = /* @__PURE__ */ s({
1
+ import { defineComponent as c, createElementBlock as r, openBlock as t, createVNode as s, createElementVNode as a, unref as i, toDisplayString as d, Fragment as u } from "vue";
2
+ import { ScalarIconGavel as m } from "@scalar/icons";
3
+ const p = { class: "group flex h-fit items-center last:border-r-0 xl:border-r xl:first:ml-auto" }, f = ["href"], h = { class: "ml-1 empty:hidden" }, _ = { class: "ml-1 empty:hidden" }, k = /* @__PURE__ */ c({
7
4
  __name: "License",
8
5
  props: {
9
6
  value: {}
10
7
  },
11
- setup(_) {
12
- return (e, v) => {
13
- var o, t, l;
14
- return n(), r("div", c, [
15
- (o = e.value) != null && o.url ? (n(), r("a", {
8
+ setup(v) {
9
+ return (e, b) => {
10
+ var n, o, l;
11
+ return t(), r("div", p, [
12
+ (n = e.value) != null && n.url ? (t(), r("a", {
16
13
  key: 0,
17
14
  class: "text-c-1 hover:bg-b-2 mr-2 flex min-h-7 min-w-7 items-center rounded-lg border px-2 py-1 no-underline group-last:mr-0 xl:border-none",
18
15
  href: e.value.url,
19
16
  target: "_blank",
20
17
  rel: "noopener noreferrer"
21
18
  }, [
22
- i(m(u), {
19
+ s(i(m), {
23
20
  weight: "bold",
24
21
  class: "size-3 text-current"
25
22
  }),
26
- d("span", f, a(((t = e.value) == null ? void 0 : t.name) || e.value.identifier || e.value.url), 1)
27
- ], 8, p)) : (n(), r("span", h, a((l = e.value) == null ? void 0 : l.name), 1))
23
+ a("span", h, d(((o = e.value) == null ? void 0 : o.name) || e.value.identifier || e.value.url), 1)
24
+ ], 8, f)) : (t(), r(u, { key: 1 }, [
25
+ s(i(m), {
26
+ weight: "bold",
27
+ class: "size-3 text-current"
28
+ }),
29
+ a("span", _, d((l = e.value) == null ? void 0 : l.name), 1)
30
+ ], 64))
28
31
  ]);
29
32
  };
30
33
  }
31
34
  });
32
35
  export {
33
- y as default
36
+ k as default
34
37
  };
@@ -1,7 +1,7 @@
1
1
  import o from "./Sidebar.vue2.js";
2
- /* empty css */
2
+ import "./Sidebar.vue3.js";
3
3
  import r from "../../../_virtual/_plugin-vue_export-helper.js";
4
- const p = /* @__PURE__ */ r(o, [["__scopeId", "data-v-db673c0a"]]);
4
+ const m = /* @__PURE__ */ r(o, [["__scopeId", "data-v-7ed79e6b"]]);
5
5
  export {
6
- p as default
6
+ m as default
7
7
  };
@@ -0,0 +1,4 @@
1
+ const e = "";
2
+ export {
3
+ e as default
4
+ };
@@ -1,7 +1,7 @@
1
1
  import o from "./SidebarElement.vue2.js";
2
- /* empty css */
2
+ import "./SidebarElement.vue3.js";
3
3
  import t from "../../../_virtual/_plugin-vue_export-helper.js";
4
- const f = /* @__PURE__ */ t(o, [["__scopeId", "data-v-fa7fb2b8"]]);
4
+ const a = /* @__PURE__ */ t(o, [["__scopeId", "data-v-181295c9"]]);
5
5
  export {
6
- f as default
6
+ a as default
7
7
  };
@@ -0,0 +1,4 @@
1
+ const e = "";
2
+ export {
3
+ e as default
4
+ };
@@ -1,5 +1,5 @@
1
1
  import o from "./SidebarGroup.vue2.js";
2
- /* empty css */
2
+ import "./SidebarGroup.vue3.js";
3
3
  import r from "../../../_virtual/_plugin-vue_export-helper.js";
4
4
  const m = /* @__PURE__ */ r(o, [["__scopeId", "data-v-a0601651"]]);
5
5
  export {
@@ -0,0 +1,4 @@
1
+ const e = "";
2
+ export {
3
+ e as default
4
+ };
@@ -1,5 +1,5 @@
1
1
  import t from "./SidebarHttpBadge.vue2.js";
2
- /* empty css */
2
+ import "./SidebarHttpBadge.vue3.js";
3
3
  import o from "../../../_virtual/_plugin-vue_export-helper.js";
4
4
  const e = /* @__PURE__ */ o(t, [["__scopeId", "data-v-522f945c"]]);
5
5
  export {
@@ -0,0 +1,4 @@
1
+ const e = "";
2
+ export {
3
+ e as default
4
+ };
@@ -1,31 +1,31 @@
1
- import { lazyBus as b } from "../../../components/Content/Lazy/lazyBus.js";
2
- import { reactive as p, ref as S, computed as g } from "vue";
1
+ import { reactive as b, ref as p, computed as S } from "vue";
3
2
  import { scrollToId as l } from "@scalar/helpers/dom/scroll-to-id";
4
- import { measure as v } from "@scalar/helpers/testing/measure";
5
- import { traverseDocument as O } from "../../traverse-schema/helpers/traverse-document.js";
6
- const z = (i, o) => {
7
- const r = p({}), m = S(!1), a = (e) => r[e] = !r[e], c = (e, t) => r[e] = t, n = (e, t) => {
3
+ import { measure as g } from "@scalar/helpers/testing/measure";
4
+ import { traverseDocument as v } from "../../traverse-schema/helpers/traverse-document.js";
5
+ import { lazyBus as O } from "../../../components/Lazy/lazyBus.js";
6
+ const z = (a, o) => {
7
+ const r = b({}), i = p(!1), m = (e) => r[e] = !r[e], c = (e, t) => r[e] = t, n = (e, t) => {
8
8
  const s = o.getSectionId(e);
9
9
  if (s && s !== e)
10
10
  if (r[s])
11
11
  l(e, t);
12
12
  else {
13
- const f = b.on((d) => {
14
- d.id === e && (l(e, t), f());
13
+ const d = O.on((f) => {
14
+ f.loaded === e && (l(e, t), d());
15
15
  });
16
16
  c(s, !0);
17
17
  }
18
- }, u = g(() => {
19
- const e = v("traverse-document", () => O(i.value, o));
18
+ }, u = S(() => {
19
+ const e = g("traverse-document", () => v(a.value, o));
20
20
  return o.config.value.defaultOpenAllTags && e.entries.forEach((t) => c(t.id, !0)), e;
21
21
  });
22
22
  return {
23
23
  collapsedSidebarItems: r,
24
- isSidebarOpen: m,
24
+ isSidebarOpen: i,
25
25
  items: u,
26
26
  scrollToOperation: n,
27
27
  setCollapsedSidebarItem: c,
28
- toggleCollapsedSidebarItem: a
28
+ toggleCollapsedSidebarItem: m
29
29
  };
30
30
  };
31
31
  export {
@@ -1,5 +1,5 @@
1
1
  import t from "./TestRequestButton.vue2.js";
2
- /* empty css */
2
+ import "./TestRequestButton.vue3.js";
3
3
  import o from "../../_virtual/_plugin-vue_export-helper.js";
4
4
  const c = /* @__PURE__ */ o(t, [["__scopeId", "data-v-976c9c1f"]]);
5
5
  export {
@@ -0,0 +1,4 @@
1
+ const e = "";
2
+ export {
3
+ e as default
4
+ };
@@ -1,4 +1,5 @@
1
- export type { TraverseSpecOptions, TraversedOperation, TraversedEntry, TraversedDescription, TraversedTag, } from './types';
1
+ export type { TraverseSpecOptions, TraversedOperation, TraversedEntry, TraversedDescription, TraversedTag, TraversedWebhook, TagsMap, } from './types';
2
2
  export { traverseDocument } from './helpers/traverse-document.js';
3
+ export { traverseTags } from './helpers/traverse-tags.js';
3
4
  export { DEFAULT_INTRODUCTION_SLUG } from './helpers/traverse-description.js';
4
5
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/features/traverse-schema/index.ts"],"names":[],"mappings":"AAAA,YAAY,EACV,mBAAmB,EACnB,kBAAkB,EAClB,cAAc,EACd,oBAAoB,EACpB,YAAY,GACb,MAAM,SAAS,CAAA;AAEhB,OAAO,EAAE,gBAAgB,EAAE,MAAM,6BAA6B,CAAA;AAC9D,OAAO,EAAE,yBAAyB,EAAE,MAAM,gCAAgC,CAAA"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/features/traverse-schema/index.ts"],"names":[],"mappings":"AAAA,YAAY,EACV,mBAAmB,EACnB,kBAAkB,EAClB,cAAc,EACd,oBAAoB,EACpB,YAAY,EACZ,gBAAgB,EAChB,OAAO,GACR,MAAM,SAAS,CAAA;AAEhB,OAAO,EAAE,gBAAgB,EAAE,MAAM,6BAA6B,CAAA;AAC9D,OAAO,EAAE,YAAY,EAAE,MAAM,yBAAyB,CAAA;AACtD,OAAO,EAAE,yBAAyB,EAAE,MAAM,gCAAgC,CAAA"}
@@ -0,0 +1,51 @@
1
+ import { type TraversedEntry } from '../features/traverse-schema';
2
+ import type { OpenAPIV3_1 } from '@scalar/openapi-types';
3
+ import type { WorkspaceStore } from '@scalar/workspace-store/client';
4
+ import type { WorkspaceDocument } from '@scalar/workspace-store/schemas/schemas/workspace';
5
+ /**
6
+ * A collection of tools which are used strictly for testing
7
+ */
8
+ export declare const createMockSidebar: (collapsedItems?: Record<string, boolean>, entries?: TraversedEntry[]) => {
9
+ collapsedSidebarItems: Record<string, boolean>;
10
+ isSidebarOpen: import("vue").Ref<boolean, boolean>;
11
+ items: import("vue").ComputedRef<{
12
+ entries: TraversedEntry[];
13
+ titles: Map<any, any>;
14
+ }>;
15
+ scrollToOperation: import("vitest").Mock<(...args: any[]) => any>;
16
+ setCollapsedSidebarItem: import("vitest").Mock<(...args: any[]) => any>;
17
+ toggleCollapsedSidebarItem: import("vitest").Mock<(...args: any[]) => any>;
18
+ };
19
+ export declare const createMockSidebarFromDocument: (document: OpenAPIV3_1.Document) => {
20
+ collapsedSidebarItems: Record<string, boolean>;
21
+ isSidebarOpen: import("vue").Ref<boolean, boolean>;
22
+ items: import("vue").ComputedRef<{
23
+ entries: TraversedEntry[];
24
+ titles: Map<any, any>;
25
+ }>;
26
+ scrollToOperation: import("vitest").Mock<(...args: any[]) => any>;
27
+ setCollapsedSidebarItem: import("vitest").Mock<(...args: any[]) => any>;
28
+ toggleCollapsedSidebarItem: import("vitest").Mock<(...args: any[]) => any>;
29
+ };
30
+ export declare const createMockPluginManager: () => {
31
+ getSpecificationExtensions: import("vitest").Mock<(...args: any[]) => any>;
32
+ };
33
+ export declare const createMockNavState: (hash?: string) => {
34
+ hash: import("vue").Ref<string, string>;
35
+ isIntersectionEnabled: import("vue").Ref<boolean, boolean>;
36
+ setHashPrefix: import("vitest").Mock<(...args: any[]) => any>;
37
+ getFullHash: import("vitest").Mock<(...args: any[]) => any>;
38
+ getHashedUrl: import("vitest").Mock<(...args: any[]) => any>;
39
+ replaceUrlState: import("vitest").Mock<(...args: any[]) => any>;
40
+ getReferenceId: import("vitest").Mock<(...args: any[]) => any>;
41
+ getWebhookId: import("vitest").Mock<(...args: any[]) => any>;
42
+ getModelId: import("vitest").Mock<(...args: any[]) => any>;
43
+ getHeadingId: import("vitest").Mock<(...args: any[]) => any>;
44
+ getOperationId: import("vitest").Mock<(...args: any[]) => any>;
45
+ getPathRoutingId: import("vitest").Mock<(...args: any[]) => any>;
46
+ getSectionId: import("vitest").Mock<(...args: any[]) => any>;
47
+ getTagId: import("vitest").Mock<(...args: any[]) => any>;
48
+ updateHash: import("vitest").Mock<(...args: any[]) => any>;
49
+ };
50
+ export declare const createMockStore: (activeDocument: WorkspaceDocument) => WorkspaceStore;
51
+ //# sourceMappingURL=test-utils.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"test-utils.d.ts","sourceRoot":"","sources":["../../src/helpers/test-utils.ts"],"names":[],"mappings":"AAAA,OAAO,EAAoB,KAAK,cAAc,EAAE,MAAM,4BAA4B,CAAA;AAClF,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,uBAAuB,CAAA;AAExD,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,gCAAgC,CAAA;AACpE,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,mDAAmD,CAAA;AAI1F;;GAEG;AAEH,eAAO,MAAM,iBAAiB,oBAAoB,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,YAAgB,cAAc,EAAE;;;;;;;;;;CAOvG,CAAA;AAEF,eAAO,MAAM,6BAA6B,aAAc,WAAW,CAAC,QAAQ;;;;;;;;;;CAe3E,CAAA;AAED,eAAO,MAAM,uBAAuB;;CAElC,CAAA;AAEF,eAAO,MAAM,kBAAkB;;;;;;;;;;;;;;;;CAgB7B,CAAA;AAEF,eAAO,MAAM,eAAe,mBAAoB,iBAAiB,KAAG,cAqBlE,CAAA"}
package/dist/index.d.ts CHANGED
@@ -1,5 +1,6 @@
1
1
  export { default as ApiReference } from './components/ApiReference.vue.js';
2
2
  export { default as ApiReferenceLayout } from './components/ApiReferenceLayout.vue.js';
3
+ export { default as ApiReferenceWorkspace } from './v2/ApiReferenceWorkspace.vue.js';
3
4
  export { SearchButton, SearchModal } from './features/Search';
4
5
  export { default as GettingStarted } from './components/GettingStarted.vue.js';
5
6
  export { createApiReference } from './standalone/lib/html-api.js';
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,IAAI,YAAY,EAAE,MAAM,+BAA+B,CAAA;AACvE,OAAO,EAAE,OAAO,IAAI,kBAAkB,EAAE,MAAM,qCAAqC,CAAA;AACnF,OAAO,EAAE,YAAY,EAAE,WAAW,EAAE,MAAM,mBAAmB,CAAA;AAE7D,OAAO,EAAE,OAAO,IAAI,cAAc,EAAE,MAAM,iCAAiC,CAAA;AAE3E,OAAO,EAAE,kBAAkB,EAAE,MAAM,2BAA2B,CAAA;AAE9D,OAAO,EAAE,UAAU,EAAE,OAAO,EAAE,MAAM,oBAAoB,CAAA;AAGxD,OAAO,EAAE,KAAK,EAAE,MAAM,iBAAiB,CAAA;AACvC,OAAO,EAAE,wBAAwB,EAAE,MAAM,gBAAgB,CAAA;AACzD,OAAO,EAAE,WAAW,EAAE,MAAM,qBAAqB,CAAA;AACjD,YAAY,EACV,yBAAyB,EACzB,cAAc,GACf,MAAM,SAAS,CAAA"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,IAAI,YAAY,EAAE,MAAM,+BAA+B,CAAA;AACvE,OAAO,EAAE,OAAO,IAAI,kBAAkB,EAAE,MAAM,qCAAqC,CAAA;AACnF,OAAO,EAAE,OAAO,IAAI,qBAAqB,EAAE,MAAM,gCAAgC,CAAA;AACjF,OAAO,EAAE,YAAY,EAAE,WAAW,EAAE,MAAM,mBAAmB,CAAA;AAE7D,OAAO,EAAE,OAAO,IAAI,cAAc,EAAE,MAAM,iCAAiC,CAAA;AAE3E,OAAO,EAAE,kBAAkB,EAAE,MAAM,2BAA2B,CAAA;AAE9D,OAAO,EAAE,UAAU,EAAE,OAAO,EAAE,MAAM,oBAAoB,CAAA;AAGxD,OAAO,EAAE,KAAK,EAAE,MAAM,iBAAiB,CAAA;AACvC,OAAO,EAAE,wBAAwB,EAAE,MAAM,gBAAgB,CAAA;AACzD,OAAO,EAAE,WAAW,EAAE,MAAM,qBAAqB,CAAA;AACjD,YAAY,EACV,yBAAyB,EACzB,cAAc,GACf,MAAM,SAAS,CAAA"}