@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 +1 @@
1
- {"version":3,"file":"SectionContainer.vue.d.ts","sourceRoot":"","sources":["../../../src/components/Section/SectionContainer.vue"],"names":[],"mappings":"AA4BA,iBAAS,cAAc;WAyCT,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":"SectionContainer.vue.d.ts","sourceRoot":"","sources":["../../../src/components/Section/SectionContainer.vue"],"names":[],"mappings":"AAsCA,KAAK,WAAW,GAAG;IACjB;;OAEG;IACH,IAAI,CAAC,EAAE,OAAO,CAAA;CACf,CAAC;AAQF,iBAAS,cAAc;WAgDT,OAAO,IAA6B;;yBATrB,GAAG;yBACH,GAAG;;;;EAa/B;AAQD,KAAK,oBAAoB,GAAG,UAAU,CAAC,OAAO,cAAc,CAAC,CAAC;AAC9D,QAAA,MAAM,eAAe,kSAMnB,CAAC;wBACkB,uBAAuB,CAAC,OAAO,eAAe,EAAE,oBAAoB,CAAC,OAAO,CAAC,CAAC;AAAnG,wBAAoG;AAWpG,KAAK,uBAAuB,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG;IACxC,QAAO;QACN,MAAM,EAAE,CAAC,CAAC;KAEV,CAAA;CACD,CAAC"}
@@ -1,13 +1,7 @@
1
- import { createElementBlock as t, openBlock as o, renderSlot as n } from "vue";
2
- /* empty css */
3
- import r from "../../_virtual/_plugin-vue_export-helper.js";
4
- const c = {}, s = { class: "section-container" };
5
- function a(e, i) {
6
- return o(), t("div", s, [
7
- n(e.$slots, "default", {}, void 0, !0)
8
- ]);
9
- }
10
- const l = /* @__PURE__ */ r(c, [["render", a], ["__scopeId", "data-v-3afcb4e7"]]);
1
+ import o from "./SectionContainer.vue2.js";
2
+ import "./SectionContainer.vue3.js";
3
+ import t from "../../_virtual/_plugin-vue_export-helper.js";
4
+ const i = /* @__PURE__ */ t(o, [["__scopeId", "data-v-20a1472a"]]);
11
5
  export {
12
- l as default
6
+ i as default
13
7
  };
@@ -0,0 +1,18 @@
1
+ import { defineComponent as t, renderSlot as o, createElementBlock as n, openBlock as r } from "vue";
2
+ const s = {
3
+ key: 1,
4
+ class: "section-container"
5
+ }, c = /* @__PURE__ */ t({
6
+ __name: "SectionContainer",
7
+ props: {
8
+ omit: { type: Boolean }
9
+ },
10
+ setup(i) {
11
+ return (e, a) => e.omit ? o(e.$slots, "default", { key: 0 }, void 0, !0) : (r(), n("div", s, [
12
+ o(e.$slots, "default", {}, void 0, !0)
13
+ ]));
14
+ }
15
+ });
16
+ export {
17
+ c as default
18
+ };
@@ -0,0 +1,4 @@
1
+ const e = "";
2
+ export {
3
+ e as default
4
+ };
@@ -1 +1 @@
1
- {"version":3,"file":"SectionContainerAccordion.vue.d.ts","sourceRoot":"","sources":["../../../src/components/Section/SectionContainerAccordion.vue"],"names":[],"mappings":"AAoGA,iBAAS,cAAc;WAiGT,OAAO,IAA6B;;uBATtB,GAAG;yBACD,GAAG;;;;EAahC;AAWD,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":"SectionContainerAccordion.vue.d.ts","sourceRoot":"","sources":["../../../src/components/Section/SectionContainerAccordion.vue"],"names":[],"mappings":"AAkGA,iBAAS,cAAc;WAiGT,OAAO,IAA6B;;uBATtB,GAAG;yBACD,GAAG;;;;EAahC;AAWD,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,7 +1,7 @@
1
1
  import o from "./SectionContainerAccordion.vue2.js";
2
- /* empty css */
2
+ import "./SectionContainerAccordion.vue3.js";
3
3
  import t from "../../_virtual/_plugin-vue_export-helper.js";
4
- const i = /* @__PURE__ */ t(o, [["__scopeId", "data-v-88109f3f"]]);
4
+ const a = /* @__PURE__ */ t(o, [["__scopeId", "data-v-797031c0"]]);
5
5
  export {
6
- i 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 "./SectionContent.vue2.js";
2
- /* empty css */
2
+ import "./SectionContent.vue3.js";
3
3
  import t from "../../_virtual/_plugin-vue_export-helper.js";
4
4
  const p = /* @__PURE__ */ t(o, [["__scopeId", "data-v-9735459e"]]);
5
5
  export {
@@ -0,0 +1,4 @@
1
+ const e = "";
2
+ export {
3
+ e as default
4
+ };
@@ -1,5 +1,5 @@
1
1
  import o from "./SectionHeader.vue2.js";
2
- /* empty css */
2
+ import "./SectionHeader.vue3.js";
3
3
  import t from "../../_virtual/_plugin-vue_export-helper.js";
4
4
  const m = /* @__PURE__ */ t(o, [["__scopeId", "data-v-465a7a78"]]);
5
5
  export {
@@ -0,0 +1,4 @@
1
+ const e = "";
2
+ export {
3
+ e as default
4
+ };
@@ -1,5 +1,5 @@
1
1
  import o from "./SectionHeaderTag.vue2.js";
2
- /* empty css */
2
+ import "./SectionHeaderTag.vue3.js";
3
3
  import t from "../../_virtual/_plugin-vue_export-helper.js";
4
4
  const e = /* @__PURE__ */ t(o, [["__scopeId", "data-v-f1ac6c38"]]);
5
5
  export {
@@ -0,0 +1,4 @@
1
+ const e = "";
2
+ export {
3
+ e as default
4
+ };
@@ -0,0 +1,3 @@
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>;
2
+ export default _default;
3
+ //# sourceMappingURL=SectionFlare.vue.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"SectionFlare.vue.d.ts","sourceRoot":"","sources":["../../../src/components/SectionFlare/SectionFlare.vue"],"names":[],"mappings":";AA8FA,wBAKG"}
@@ -0,0 +1,13 @@
1
+ import { createElementBlock as c, openBlock as e, createStaticVNode as t } from "vue";
2
+ import "./SectionFlare.vue2.js";
3
+ import i from "../../_virtual/_plugin-vue_export-helper.js";
4
+ const s = {}, d = { class: "section-flare" };
5
+ function o(v, a) {
6
+ return e(), c("div", d, a[0] || (a[0] = [
7
+ t('<div class="section-flare-item" data-v-2a9c8c02></div><div class="section-flare-item" data-v-2a9c8c02></div><div class="section-flare-item" data-v-2a9c8c02></div><div class="section-flare-item" data-v-2a9c8c02></div><div class="section-flare-item" data-v-2a9c8c02></div><div class="section-flare-item" data-v-2a9c8c02></div><div class="section-flare-item" data-v-2a9c8c02></div><div class="section-flare-item" data-v-2a9c8c02></div>', 8)
8
+ ]));
9
+ }
10
+ const f = /* @__PURE__ */ i(s, [["render", o], ["__scopeId", "data-v-2a9c8c02"]]);
11
+ export {
12
+ f as default
13
+ };
@@ -0,0 +1,4 @@
1
+ const e = "";
2
+ export {
3
+ e as default
4
+ };
@@ -0,0 +1,2 @@
1
+ export { default as SectionFlare } from './SectionFlare.vue.js';
2
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/SectionFlare/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,IAAI,YAAY,EAAE,MAAM,oBAAoB,CAAA"}
@@ -1 +1 @@
1
- {"version":3,"file":"ShowMoreButton.vue.d.ts","sourceRoot":"","sources":["../../src/components/ShowMoreButton.vue"],"names":[],"mappings":"AA4EA,KAAK,WAAW,GAAG;IACjB,EAAE,EAAE,MAAM,CAAA;CACX,CAAC;;AA+EF,wBAOG"}
1
+ {"version":3,"file":"ShowMoreButton.vue.d.ts","sourceRoot":"","sources":["../../src/components/ShowMoreButton.vue"],"names":[],"mappings":"AA0EA,KAAK,WAAW,GAAG;IACjB,EAAE,EAAE,MAAM,CAAA;CACX,CAAC;;AAgFF,wBAOG"}
@@ -1,7 +1,7 @@
1
1
  import o from "./ShowMoreButton.vue2.js";
2
- /* empty css */
2
+ import "./ShowMoreButton.vue3.js";
3
3
  import t from "../_virtual/_plugin-vue_export-helper.js";
4
- const _ = /* @__PURE__ */ t(o, [["__scopeId", "data-v-c46d29d9"]]);
4
+ const p = /* @__PURE__ */ t(o, [["__scopeId", "data-v-b2ca4789"]]);
5
5
  export {
6
- _ as default
6
+ p as default
7
7
  };
@@ -1,30 +1,30 @@
1
- import { defineComponent as i, createElementBlock as s, openBlock as a, createTextVNode as m, createVNode as l, unref as u } from "vue";
2
- import { ScalarIcon as d } from "@scalar/components";
1
+ import { defineComponent as i, createElementBlock as s, openBlock as a, createTextVNode as m, createVNode as l, unref as d } from "vue";
2
+ import { ScalarIconCaretDown as u } from "@scalar/icons";
3
3
  import { useConfig as f } from "../hooks/useConfig.js";
4
4
  import { useSidebar as p } from "../features/sidebar/hooks/useSidebar.js";
5
- const b = /* @__PURE__ */ i({
5
+ const h = /* @__PURE__ */ i({
6
6
  __name: "ShowMoreButton",
7
7
  props: {
8
8
  id: {}
9
9
  },
10
10
  setup(t) {
11
- const { setCollapsedSidebarItem: n } = p(), r = f(), c = () => {
12
- var e, o;
13
- n(t.id, !0), (o = (e = r.value).onShowMore) == null || o.call(e, t.id);
11
+ const { setCollapsedSidebarItem: r } = p(), n = f(), c = () => {
12
+ var o, e;
13
+ r(t.id, !0), (e = (o = n.value).onShowMore) == null || e.call(o, t.id);
14
14
  };
15
- return (e, o) => (a(), s("button", {
15
+ return (o, e) => (a(), s("button", {
16
16
  class: "show-more",
17
17
  type: "button",
18
18
  onClick: c
19
19
  }, [
20
- o[0] || (o[0] = m(" Show More ")),
21
- l(u(d), {
22
- class: "show-more-icon",
23
- icon: "ChevronDown"
20
+ e[0] || (e[0] = m(" Show More ")),
21
+ l(d(u), {
22
+ weight: "bold",
23
+ class: "text-c-2 mt-0.25 size-3"
24
24
  })
25
25
  ]));
26
26
  }
27
27
  });
28
28
  export {
29
- b as default
29
+ h as default
30
30
  };
@@ -0,0 +1,4 @@
1
+ const e = "";
2
+ export {
3
+ e as default
4
+ };
@@ -1,13 +1,17 @@
1
1
  import type { HttpMethod } from '@scalar/helpers/http/http-methods';
2
2
  import type { Collection, Server } from '@scalar/oas-utils/entities/spec';
3
3
  import type { OpenAPIV3_1 } from '@scalar/openapi-types';
4
+ import type { WorkspaceStore } from '@scalar/workspace-store/client';
5
+ import type { ClientOptionGroup } from '../../v2/blocks/scalar-request-example-block/types';
4
6
  type __VLS_Props = {
5
7
  path: string;
6
8
  method: HttpMethod;
7
- isWebhook?: boolean;
9
+ clientOptions: ClientOptionGroup[];
10
+ isWebhook: boolean;
8
11
  layout?: 'modern' | 'classic';
9
12
  id: string;
10
13
  server: Server | undefined;
14
+ store: WorkspaceStore;
11
15
  /** @deprecated Use `document` instead, we just need the selected security scheme uids for now */
12
16
  collection: Collection;
13
17
  /** @deprecated Use the new workspace store instead*/
@@ -1 +1 @@
1
- {"version":3,"file":"Operation.vue.d.ts","sourceRoot":"","sources":["../../../src/features/Operation/Operation.vue"],"names":[],"mappings":"AAsHA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,mCAAmC,CAAA;AACnE,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,EAAE,MAAM,iCAAiC,CAAA;AACzE,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,uBAAuB,CAAA;AAaxD,KAAK,WAAW,GAAG;IACjB,IAAI,EAAE,MAAM,CAAA;IACZ,MAAM,EAAE,UAAU,CAAA;IAClB,SAAS,CAAC,EAAE,OAAO,CAAA;IACnB,MAAM,CAAC,EAAE,QAAQ,GAAG,SAAS,CAAA;IAC7B,EAAE,EAAE,MAAM,CAAA;IACV,MAAM,EAAE,MAAM,GAAG,SAAS,CAAA;IAC1B,iGAAiG;IACjG,UAAU,EAAE,UAAU,CAAA;IACtB,qDAAqD;IACrD,QAAQ,CAAC,EAAE,WAAW,CAAC,QAAQ,CAAA;CAChC,CAAC;;AAiKF,wBAMG"}
1
+ {"version":3,"file":"Operation.vue.d.ts","sourceRoot":"","sources":["../../../src/features/Operation/Operation.vue"],"names":[],"mappings":"AAiJA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,mCAAmC,CAAA;AACnE,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,EAAE,MAAM,iCAAiC,CAAA;AACzE,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,uBAAuB,CAAA;AACxD,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,gCAAgC,CAAA;AAUpE,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,gDAAgD,CAAA;AAOvF,KAAK,WAAW,GAAG;IACjB,IAAI,EAAE,MAAM,CAAA;IACZ,MAAM,EAAE,UAAU,CAAA;IAClB,aAAa,EAAE,iBAAiB,EAAE,CAAA;IAClC,SAAS,EAAE,OAAO,CAAA;IAClB,MAAM,CAAC,EAAE,QAAQ,GAAG,SAAS,CAAA;IAC7B,EAAE,EAAE,MAAM,CAAA;IACV,MAAM,EAAE,MAAM,GAAG,SAAS,CAAA;IAC1B,KAAK,EAAE,cAAc,CAAA;IACrB,iGAAiG;IACjG,UAAU,EAAE,UAAU,CAAA;IACtB,qDAAqD;IACrD,QAAQ,CAAC,EAAE,WAAW,CAAC,QAAQ,CAAA;CAChC,CAAC;;AAiLF,wBAMG"}
@@ -1,80 +1,97 @@
1
- import { defineComponent as S, computed as c, createElementBlock as b, createCommentVNode as W, openBlock as u, Fragment as O, createBlock as y, unref as k } from "vue";
2
- import { useWorkspace as U } from "@scalar/api-client/store";
3
- import { filterSecurityRequirements as V } from "@scalar/api-client/views/Request/RequestSection";
4
- import { isReference as B } from "@scalar/workspace-store/schemas/v3.1/type-guard";
5
- import { convertSecurityScheme as C } from "../../helpers/convert-security-scheme.js";
6
- import { useOperationDiscriminator as w } from "../../hooks/useOperationDiscriminator.js";
7
- import { useStore as D } from "../../v2/hooks/useStore.js";
1
+ import { defineComponent as S, computed as m, createElementBlock as b, createCommentVNode as W, openBlock as l, Fragment as U, createBlock as k, unref as f } from "vue";
2
+ import { useWorkspace as V } from "@scalar/api-client/store";
3
+ import { filterSecurityRequirements as B } from "@scalar/api-client/views/Request/RequestSection";
4
+ import { isReference as C, isResolvedRef as R } from "@scalar/workspace-store/schemas/v3.1/type-guard";
5
+ import { convertSecurityScheme as w } from "../../helpers/convert-security-scheme.js";
6
+ import { useOperationDiscriminator as D } from "../../hooks/useOperationDiscriminator.js";
8
7
  import g from "./layouts/ClassicLayout.vue.js";
9
8
  import L from "./layouts/ModernLayout.vue.js";
10
- const A = /* @__PURE__ */ S({
9
+ const j = /* @__PURE__ */ S({
11
10
  __name: "Operation",
12
11
  props: {
13
12
  path: {},
14
13
  method: {},
14
+ clientOptions: {},
15
15
  isWebhook: { type: Boolean },
16
16
  layout: { default: "modern" },
17
17
  id: {},
18
18
  server: {},
19
+ store: {},
19
20
  collection: {},
20
21
  document: {}
21
22
  },
22
23
  setup(o) {
23
- var l, p;
24
- const { workspace: v } = D(), n = c(() => {
25
- var a, r, m;
26
- const e = o.isWebhook ? "webhooks" : "paths", t = (m = (r = (a = v.activeDocument) == null ? void 0 : a[e]) == null ? void 0 : r[o.path]) == null ? void 0 : m[o.method];
27
- return B(t) ? null : t;
28
- }), s = c(
24
+ var v, y;
25
+ const u = m(() => {
26
+ var t, a;
27
+ const e = o.isWebhook ? "webhooks" : "paths";
28
+ return (a = (t = o.store.workspace.activeDocument) == null ? void 0 : t[e]) == null ? void 0 : a[o.path];
29
+ }), s = m(() => {
30
+ var t;
31
+ const e = (t = u.value) == null ? void 0 : t[o.method];
32
+ return C(e) ? null : e;
33
+ }), c = m(
29
34
  () => {
30
- var e, t, a, r, m, i;
31
- return o.isWebhook ? (a = (t = (e = o.document) == null ? void 0 : e.webhooks) == null ? void 0 : t[o.path]) == null ? void 0 : a[o.method] : (i = (m = (r = o.document) == null ? void 0 : r.paths) == null ? void 0 : m[o.path]) == null ? void 0 : i[o.method];
35
+ var e, t, a, r, n, i;
36
+ return o.isWebhook ? (a = (t = (e = o.document) == null ? void 0 : e.webhooks) == null ? void 0 : t[o.path]) == null ? void 0 : a[o.method] : (i = (n = (r = o.document) == null ? void 0 : r.paths) == null ? void 0 : n[o.path]) == null ? void 0 : i[o.method];
32
37
  }
33
- ), { handleDiscriminatorChange: h } = w(
34
- s.value,
35
- (p = (l = o.document) == null ? void 0 : l.components) == null ? void 0 : p.schemas
36
- ), { securitySchemes: f } = U(), d = c(
38
+ ), { handleDiscriminatorChange: h } = D(
39
+ c.value,
40
+ (y = (v = o.document) == null ? void 0 : v.components) == null ? void 0 : y.schemas
41
+ ), { securitySchemes: O } = V(), d = m(
37
42
  () => {
38
43
  var e, t;
39
- return V(
40
- ((e = n.value) == null ? void 0 : e.security) || ((t = o.document) == null ? void 0 : t.security),
44
+ return B(
45
+ ((e = s.value) == null ? void 0 : e.security) || ((t = o.document) == null ? void 0 : t.security),
41
46
  o.collection.selectedSecuritySchemeUids,
42
- f
43
- ).map(C);
47
+ O
48
+ ).map(w);
44
49
  }
45
- );
50
+ ), p = m(() => {
51
+ var a, r;
52
+ const e = ((a = u.value) == null ? void 0 : a.parameters) ?? [], t = ((r = s.value) == null ? void 0 : r.parameters) ?? [];
53
+ return [...e, ...t].filter(
54
+ R
55
+ );
56
+ });
46
57
  return (e, t) => {
47
- var a, r, m, i;
48
- return n.value ? (u(), b(O, { key: 0 }, [
49
- e.layout === "classic" ? (u(), y(g, {
58
+ var a, r, n, i;
59
+ return s.value && c.value ? (l(), b(U, { key: 0 }, [
60
+ e.layout === "classic" ? (l(), k(g, {
50
61
  key: 0,
51
62
  id: e.id,
52
63
  isWebhook: e.isWebhook,
53
64
  method: e.method,
54
- operation: n.value,
55
- oldOperation: s.value,
65
+ operation: s.value,
66
+ oldOperation: c.value,
67
+ clientOptions: e.clientOptions,
56
68
  securitySchemes: d.value,
69
+ parameters: p.value,
70
+ store: e.store,
57
71
  path: e.path,
58
72
  schemas: (r = (a = e.document) == null ? void 0 : a.components) == null ? void 0 : r.schemas,
59
73
  server: e.server,
60
- "onUpdate:modelValue": k(h)
61
- }, null, 8, ["id", "isWebhook", "method", "operation", "oldOperation", "securitySchemes", "path", "schemas", "server", "onUpdate:modelValue"])) : (u(), y(L, {
74
+ "onUpdate:modelValue": f(h)
75
+ }, null, 8, ["id", "isWebhook", "method", "operation", "oldOperation", "clientOptions", "securitySchemes", "parameters", "store", "path", "schemas", "server", "onUpdate:modelValue"])) : (l(), k(L, {
62
76
  key: 1,
63
77
  id: e.id,
64
78
  isWebhook: e.isWebhook,
65
79
  method: e.method,
66
- oldOperation: s.value,
80
+ clientOptions: e.clientOptions,
81
+ oldOperation: c.value,
67
82
  securitySchemes: d.value,
83
+ parameters: p.value,
68
84
  path: e.path,
69
- operation: n.value,
70
- schemas: (i = (m = e.document) == null ? void 0 : m.components) == null ? void 0 : i.schemas,
85
+ store: e.store,
86
+ operation: s.value,
87
+ schemas: (i = (n = e.document) == null ? void 0 : n.components) == null ? void 0 : i.schemas,
71
88
  server: e.server,
72
- "onUpdate:modelValue": k(h)
73
- }, null, 8, ["id", "isWebhook", "method", "oldOperation", "securitySchemes", "path", "operation", "schemas", "server", "onUpdate:modelValue"]))
89
+ "onUpdate:modelValue": f(h)
90
+ }, null, 8, ["id", "isWebhook", "method", "clientOptions", "oldOperation", "securitySchemes", "parameters", "path", "store", "operation", "schemas", "server", "onUpdate:modelValue"]))
74
91
  ], 64)) : W("", !0);
75
92
  };
76
93
  }
77
94
  });
78
95
  export {
79
- A as default
96
+ j as default
80
97
  };
@@ -1 +1 @@
1
- {"version":3,"file":"ContentTypeSelect.vue.d.ts","sourceRoot":"","sources":["../../../../src/features/Operation/components/ContentTypeSelect.vue"],"names":[],"mappings":"AAuGA,OAAO,KAAK,EAAE,WAAW,EAAE,WAAW,EAAE,MAAM,sBAAsB,CAAA;AAOpE,KAAK,WAAW,GAAG;IACjB,WAAW,CAAC,EAAE,WAAW,CAAA;IACzB,YAAY,CAAC,EAAE,WAAW,CAAA;CAC3B,CAAC;;;qBAIiD,WAAW;;;;qBAAX,WAAW;;;AAwK9D,wBAOG"}
1
+ {"version":3,"file":"ContentTypeSelect.vue.d.ts","sourceRoot":"","sources":["../../../../src/features/Operation/components/ContentTypeSelect.vue"],"names":[],"mappings":"AA4FA,OAAO,KAAK,EAAE,WAAW,EAAE,WAAW,EAAE,MAAM,sBAAsB,CAAA;AAOpE,KAAK,WAAW,GAAG;IACjB,WAAW,CAAC,EAAE,WAAW,CAAA;IACzB,YAAY,CAAC,EAAE,WAAW,CAAA;CAC3B,CAAC;;;qBAIiD,WAAW;;;;qBAAX,WAAW;;;AAyK9D,wBAOG"}
@@ -1,7 +1,8 @@
1
- import { defineComponent as S, computed as s, ref as B, createBlock as V, createElementBlock as k, openBlock as p, unref as n, withCtx as r, createVNode as c, normalizeClass as m, createElementVNode as f, createTextVNode as _, toDisplayString as y } from "vue";
2
- import { cva as g, ScalarListbox as h, ScalarButton as w, ScalarIcon as q } from "@scalar/components";
1
+ import { defineComponent as S, computed as r, ref as B, createBlock as V, createElementBlock as g, openBlock as p, unref as n, withCtx as s, createVNode as c, normalizeClass as m, createElementVNode as f, createTextVNode as _, toDisplayString as y } from "vue";
2
+ import { cva as k, ScalarListbox as w, ScalarButton as h } from "@scalar/components";
3
+ import { ScalarIconCaretDown as q } from "@scalar/icons";
3
4
  import N from "../../../components/ScreenReader.vue.js";
4
- const O = /* @__PURE__ */ S({
5
+ const j = /* @__PURE__ */ S({
5
6
  __name: "ContentTypeSelect",
6
7
  props: {
7
8
  requestBody: {},
@@ -9,22 +10,22 @@ const O = /* @__PURE__ */ S({
9
10
  },
10
11
  emits: ["selectContentType"],
11
12
  setup(v, { emit: x }) {
12
- const t = v, C = x, T = (e) => {
13
- e != null && e.id && C("selectContentType", { contentType: e.id });
14
- }, a = s(() => {
13
+ const t = v, b = x, C = (e) => {
14
+ e != null && e.id && b("selectContentType", { contentType: e.id });
15
+ }, a = r(() => {
15
16
  var e;
16
17
  return (e = t.requestBody) != null && e.content ? Object.keys(t.requestBody.content) : [];
17
- }), l = B(
18
+ }), o = B(
18
19
  t.defaultValue || a.value[0]
19
- ), u = s({
20
- get: () => d.value.find((e) => e.id === l.value),
20
+ ), d = r({
21
+ get: () => u.value.find((e) => e.id === o.value),
21
22
  set: (e) => {
22
- e && (l.value = e.id);
23
+ e && (o.value = e.id);
23
24
  }
24
- }), d = s(() => a.value.map((e) => ({
25
+ }), u = r(() => a.value.map((e) => ({
25
26
  id: e,
26
27
  label: e
27
- }))), i = g({
28
+ }))), i = k({
28
29
  base: "font-normal text-c-2 bg-b-2 py-0.75 flex cursor-pointer items-center gap-1 rounded-full text-xs",
29
30
  variants: {
30
31
  dropdown: {
@@ -33,51 +34,48 @@ const O = /* @__PURE__ */ S({
33
34
  }
34
35
  }
35
36
  });
36
- return (e, o) => t != null && t.requestBody && a.value.length > 1 ? (p(), V(n(h), {
37
+ return (e, l) => t != null && t.requestBody && a.value.length > 1 ? (p(), V(n(w), {
37
38
  key: 0,
38
- modelValue: u.value,
39
+ modelValue: d.value,
39
40
  "onUpdate:modelValue": [
40
- o[0] || (o[0] = (b) => u.value = b),
41
- T
41
+ l[0] || (l[0] = (T) => d.value = T),
42
+ C
42
43
  ],
43
- class: "font-normal",
44
- options: d.value,
44
+ options: u.value,
45
45
  placement: "bottom-end"
46
46
  }, {
47
- default: r(() => [
48
- c(n(w), {
47
+ default: s(() => [
48
+ c(n(h), {
49
49
  class: m(["h-fit", n(i)({ dropdown: !0 })]),
50
50
  variant: "ghost"
51
51
  }, {
52
- default: r(() => [
52
+ default: s(() => [
53
53
  c(N, null, {
54
- default: r(() => o[1] || (o[1] = [
54
+ default: s(() => l[1] || (l[1] = [
55
55
  _("Selected Content Type:")
56
56
  ])),
57
57
  _: 1,
58
58
  __: [1]
59
59
  }),
60
- f("span", null, y(l.value), 1),
60
+ f("span", null, y(o.value), 1),
61
61
  c(n(q), {
62
- class: "ui-open:rotate-180 ml-auto",
63
- icon: "ChevronDown",
64
- size: "sm",
65
- thickness: "2"
62
+ weight: "bold",
63
+ class: "ui-open:rotate-180 size-2.75 transition-transform duration-100"
66
64
  })
67
65
  ]),
68
66
  _: 1
69
67
  }, 8, ["class"])
70
68
  ]),
71
69
  _: 1
72
- }, 8, ["modelValue", "options"])) : (p(), k("div", {
70
+ }, 8, ["modelValue", "options"])) : (p(), g("div", {
73
71
  key: 1,
74
72
  class: m([n(i)({ dropdown: !1 }), "selected-content-type"]),
75
73
  tabindex: "0"
76
74
  }, [
77
- f("span", null, y(l.value), 1)
75
+ f("span", null, y(o.value), 1)
78
76
  ], 2));
79
77
  }
80
78
  });
81
79
  export {
82
- O as default
80
+ j as default
83
81
  };
@@ -1,5 +1,5 @@
1
1
  import r from "./ParameterHeaders.vue2.js";
2
- /* empty css */
2
+ import "./ParameterHeaders.vue3.js";
3
3
  import a from "../../../_virtual/_plugin-vue_export-helper.js";
4
4
  const m = /* @__PURE__ */ a(r, [["__scopeId", "data-v-9293fa9e"]]);
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 "./ParameterList.vue2.js";
2
- /* empty css */
2
+ import "./ParameterList.vue3.js";
3
3
  import a from "../../../_virtual/_plugin-vue_export-helper.js";
4
4
  const e = /* @__PURE__ */ a(t, [["__scopeId", "data-v-dabf3ac7"]]);
5
5
  export {
@@ -0,0 +1,4 @@
1
+ const e = "";
2
+ export {
3
+ e as default
4
+ };
@@ -1 +1 @@
1
- {"version":3,"file":"ParameterListItem.vue.d.ts","sourceRoot":"","sources":["../../../../src/features/Operation/components/ParameterListItem.vue"],"names":[],"mappings":"AAuPA,OAAO,KAAK,EAAE,OAAO,IAAI,aAAa,EAAE,MAAM,iCAAiC,CAAA;AAE/E,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,uBAAuB,CAAA;AAWxD,KAAK,WAAW,GAAG;IACf,SAAS,EACL,WAAW,CAAC,aAAa,CAAC,YAAY,CAAC,CAAC,CAAC,MAAM,CAAC,GAChD,WAAW,CAAC,aAAa,CAAC,WAAW,CAAC,CAAC,CAAC,MAAM,CAAC,CAAA;IACnD,YAAY,CAAC,EAAE,OAAO,CAAA;IACtB,gBAAgB,CAAC,EAAE,OAAO,CAAA;IAC1B,YAAY,CAAC,EAAE,OAAO,CAAA;IACtB,OAAO,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,WAAW,CAAC,YAAY,CAAC,GAAG,OAAO,CAAA;CAC7D,CAAC;;kBAFe,OAAO;kBAFP,OAAO;sBACH,OAAO;;AAwR9B,wBAOG"}
1
+ {"version":3,"file":"ParameterListItem.vue.d.ts","sourceRoot":"","sources":["../../../../src/features/Operation/components/ParameterListItem.vue"],"names":[],"mappings":"AAuQA,OAAO,KAAK,EAAE,OAAO,IAAI,aAAa,EAAE,MAAM,iCAAiC,CAAA;AAE/E,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,uBAAuB,CAAA;AAWxD,KAAK,WAAW,GAAG;IACf,SAAS,EACL,WAAW,CAAC,aAAa,CAAC,YAAY,CAAC,CAAC,CAAC,MAAM,CAAC,GAChD,WAAW,CAAC,aAAa,CAAC,WAAW,CAAC,CAAC,CAAC,MAAM,CAAC,CAAA;IACnD,YAAY,CAAC,EAAE,OAAO,CAAA;IACtB,gBAAgB,CAAC,EAAE,OAAO,CAAA;IAC1B,YAAY,CAAC,EAAE,OAAO,CAAA;IACtB,OAAO,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,WAAW,CAAC,YAAY,CAAC,GAAG,OAAO,CAAA;CAC7D,CAAC;;kBAFe,OAAO;kBAFP,OAAO;sBACH,OAAO;;AA2R9B,wBAOG"}
@@ -1,7 +1,7 @@
1
1
  import t from "./ParameterListItem.vue2.js";
2
- /* empty css */
2
+ import "./ParameterListItem.vue3.js";
3
3
  import o from "../../../_virtual/_plugin-vue_export-helper.js";
4
- const e = /* @__PURE__ */ o(t, [["__scopeId", "data-v-47696a96"]]);
4
+ const e = /* @__PURE__ */ o(t, [["__scopeId", "data-v-d4b35d7f"]]);
5
5
  export {
6
6
  e as default
7
7
  };