@scalar/api-client 2.8.0 → 2.9.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 (418) hide show
  1. package/CHANGELOG.md +90 -0
  2. package/dist/components/AddressBar/AddressBarHistory.vue2.js +9 -10
  3. package/dist/components/CodeInput/CodeInput.vue2.js +5 -5
  4. package/dist/components/CommandPalette/CommandActionForm.vue.d.ts.map +1 -1
  5. package/dist/components/CommandPalette/CommandActionForm.vue.js +2 -2
  6. package/dist/components/CommandPalette/CommandPaletteCollection.vue.js +3 -3
  7. package/dist/components/CommandPalette/CommandPaletteExample.vue.js +3 -3
  8. package/dist/components/CommandPalette/CommandPaletteImport.vue.js +18 -20
  9. package/dist/components/CommandPalette/CommandPaletteImportCurl.vue.js +2 -2
  10. package/dist/components/CommandPalette/CommandPaletteImportCurl.vue2.js +1 -1
  11. package/dist/components/CommandPalette/CommandPaletteServer.vue.js +13 -14
  12. package/dist/components/CommandPalette/CommandPaletteTag.vue.js +3 -3
  13. package/dist/components/CommandPalette/CommandPaletteWorkspace.vue.js +3 -3
  14. package/dist/components/CommandPalette/TheCommandPalette.vue.d.ts +4 -4
  15. package/dist/components/CommandPalette/TheCommandPalette.vue2.js +22 -24
  16. package/dist/components/CommandPalette/WatchModeToggle.vue.js +1 -1
  17. package/dist/components/DataTable/DataTableInput.vue2.js +1 -1
  18. package/dist/components/DataTable/DataTableInputSelect.vue.js +8 -9
  19. package/dist/components/EnvironmentSelector/EnvironmentSelector.vue.js +8 -10
  20. package/dist/components/HttpMethod/HttpMethod.vue.d.ts +2 -2
  21. package/dist/components/IconSelector.vue.js +1 -1
  22. package/dist/components/ImportCollection/DropEventListener.vue.js +12 -12
  23. package/dist/components/ImportCollection/ImportCollectionListener.vue.js +8 -8
  24. package/dist/components/ImportCollection/ImportCollectionModal.vue.js +1 -1
  25. package/dist/components/ImportCollection/ImportNowButton.vue.js +14 -16
  26. package/dist/components/ImportCollection/PasteEventListener.vue.js +1 -1
  27. package/dist/components/ImportCollection/PrefetchError.vue.js +2 -2
  28. package/dist/components/ImportCollection/WorkspaceSelector.vue.js +5 -7
  29. package/dist/components/ImportCollection/hooks/useUrlPrefetcher.d.ts +1 -1
  30. package/dist/components/ImportCollection/hooks/useUrlPrefetcher.d.ts.map +1 -1
  31. package/dist/components/ImportCollection/hooks/useUrlPrefetcher.js +3 -3
  32. package/dist/components/OpenApiClientButton.vue2.js +1 -1
  33. package/dist/components/Server/ServerSelector.vue.js +1 -2
  34. package/dist/components/SideNav/SideHelp.vue.js +13 -19
  35. package/dist/components/SideNav/SideNav.vue.js +4 -5
  36. package/dist/components/Sidebar/Actions/SidebarListElementForm.vue2.js +4 -5
  37. package/dist/components/Sidebar/Sidebar.vue.d.ts.map +1 -1
  38. package/dist/components/Sidebar/Sidebar.vue.js +2 -2
  39. package/dist/components/Sidebar/Sidebar.vue2.js +1 -1
  40. package/dist/components/TopNav/TopNav.vue.js +8 -10
  41. package/dist/components/TopNav/TopNavItem.vue2.js +8 -12
  42. package/dist/hooks/index.d.ts +0 -1
  43. package/dist/hooks/index.d.ts.map +1 -1
  44. package/dist/hooks/index.js +9 -11
  45. package/dist/hooks/useClientConfig.d.ts +9 -6
  46. package/dist/hooks/useClientConfig.d.ts.map +1 -1
  47. package/dist/index.d.ts +1 -2
  48. package/dist/index.d.ts.map +1 -1
  49. package/dist/index.js +8 -15
  50. package/dist/layouts/App/create-api-client-app.d.ts +3644 -3643
  51. package/dist/layouts/App/create-api-client-app.d.ts.map +1 -1
  52. package/dist/layouts/App/create-api-client-app.js +24 -18
  53. package/dist/layouts/Modal/create-api-client-modal.d.ts +5 -8089
  54. package/dist/layouts/Modal/create-api-client-modal.d.ts.map +1 -1
  55. package/dist/layouts/Modal/create-api-client-modal.js +28 -46
  56. package/dist/layouts/Modal/index.d.ts +2 -2
  57. package/dist/layouts/Modal/index.d.ts.map +1 -1
  58. package/dist/layouts/Modal/index.js +2 -5
  59. package/dist/layouts/Web/create-api-client-web.d.ts +20 -20
  60. package/dist/layouts/Web/create-api-client-web.d.ts.map +1 -1
  61. package/dist/layouts/Web/create-api-client-web.js +15 -12
  62. package/dist/libs/create-client.d.ts +25 -25
  63. package/dist/libs/create-client.d.ts.map +1 -1
  64. package/dist/libs/create-client.js +23 -23
  65. package/dist/libs/find-request.d.ts +2 -2
  66. package/dist/libs/postman.d.ts +1 -1
  67. package/dist/libs/postman.d.ts.map +1 -1
  68. package/dist/libs/postman.js +12 -12
  69. package/dist/libs/send-request/create-request-operation.js +8 -8
  70. package/dist/libs/send-request/create-request-operation.test.d.ts +2 -2
  71. package/dist/libs/validate-parameters.d.ts +10 -2
  72. package/dist/libs/validate-parameters.d.ts.map +1 -1
  73. package/dist/libs/validate-parameters.js +13 -6
  74. package/dist/plugins/plugin-manager.d.ts +1 -1
  75. package/dist/routes.d.ts +3 -184
  76. package/dist/routes.d.ts.map +1 -1
  77. package/dist/routes.js +6 -6
  78. package/dist/store/active-entities.d.ts +3 -3
  79. package/dist/store/active-entities.d.ts.map +1 -1
  80. package/dist/store/active-entities.js +2 -2
  81. package/dist/store/requests.d.ts +22 -22
  82. package/dist/store/router-params.d.ts.map +1 -1
  83. package/dist/store/store.d.ts +20 -20
  84. package/dist/style.css +1 -1
  85. package/dist/v2/blocks/operation-code-sample/components/OperationCodeSample.vue.js +2 -2
  86. package/dist/v2/blocks/operation-code-sample/components/OperationCodeSample.vue2.js +1 -1
  87. package/dist/v2/blocks/operation-code-sample/index.d.ts +1 -0
  88. package/dist/v2/blocks/operation-code-sample/index.d.ts.map +1 -1
  89. package/dist/v2/blocks/operation-code-sample/index.js +8 -6
  90. package/dist/v2/blocks/scalar-address-bar-block/components/AddressBar.vue.d.ts +5 -5
  91. package/dist/v2/blocks/scalar-address-bar-block/components/AddressBar.vue.d.ts.map +1 -1
  92. package/dist/v2/blocks/scalar-address-bar-block/components/AddressBar.vue.js +2 -2
  93. package/dist/v2/blocks/scalar-address-bar-block/components/AddressBar.vue2.js +3 -3
  94. package/dist/v2/blocks/scalar-address-bar-block/components/AddressBarHistory.vue2.js +3 -4
  95. package/dist/v2/blocks/scalar-address-bar-block/index.d.ts +1 -0
  96. package/dist/v2/blocks/scalar-address-bar-block/index.d.ts.map +1 -1
  97. package/dist/v2/blocks/scalar-auth-selector-block/components/AuthSelector.vue2.js +2 -2
  98. package/dist/v2/blocks/scalar-auth-selector-block/components/DeleteRequestAuthModal.vue.js +7 -8
  99. package/dist/v2/blocks/scalar-auth-selector-block/components/OAuth2.vue.js +44 -55
  100. package/dist/v2/blocks/scalar-auth-selector-block/components/OAuthScopesInput.vue.js +16 -18
  101. package/dist/v2/blocks/scalar-auth-selector-block/components/RequestAuthTab.vue.js +41 -46
  102. package/dist/v2/blocks/scalar-auth-selector-block/helpers/oauth.d.ts.map +1 -1
  103. package/dist/v2/blocks/scalar-operation-block/components/OperationBlock.vue.d.ts +3 -0
  104. package/dist/v2/blocks/scalar-operation-block/components/OperationBlock.vue.d.ts.map +1 -1
  105. package/dist/v2/blocks/scalar-operation-block/components/OperationBlock.vue.js +2 -2
  106. package/dist/v2/blocks/scalar-operation-block/components/OperationBlock.vue2.js +201 -187
  107. package/dist/v2/blocks/scalar-operation-block/components/OperationBody.vue.js +2 -2
  108. package/dist/v2/blocks/scalar-operation-block/components/OperationBody.vue2.js +8 -10
  109. package/dist/v2/blocks/scalar-operation-block/components/OperationParams.vue.js +2 -3
  110. package/dist/v2/blocks/scalar-operation-block/components/OperationTableRow.vue.js +2 -4
  111. package/dist/v2/blocks/scalar-response-block/components/Headers.vue.js +14 -16
  112. package/dist/v2/blocks/scalar-response-block/components/ResponseBlock.vue.d.ts +3 -0
  113. package/dist/v2/blocks/scalar-response-block/components/ResponseBlock.vue.d.ts.map +1 -1
  114. package/dist/v2/blocks/scalar-response-block/components/ResponseBlock.vue.js +3 -3
  115. package/dist/v2/blocks/scalar-response-block/components/ResponseBlock.vue2.js +87 -85
  116. package/dist/v2/blocks/scalar-response-block/components/ResponseBody.vue2.js +10 -11
  117. package/dist/v2/blocks/scalar-response-block/components/ResponseBodyPreview.vue2.js +4 -5
  118. package/dist/v2/blocks/scalar-response-block/components/ResponseBodyVirtual.vue.js +1 -1
  119. package/dist/v2/blocks/scalar-response-block/components/ResponseCookies.vue.js +3 -3
  120. package/dist/v2/blocks/scalar-response-block/components/ResponseEmpty.vue.js +1 -1
  121. package/dist/v2/blocks/scalar-response-block/components/ResponseEmpty.vue2.js +5 -5
  122. package/dist/v2/blocks/scalar-response-block/components/ResponseLoadingOverlay.vue2.js +9 -10
  123. package/dist/v2/components/TempReplaceMe.vue.d.ts +3 -0
  124. package/dist/v2/components/TempReplaceMe.vue.d.ts.map +1 -0
  125. package/dist/v2/components/TempReplaceMe.vue.js +12 -0
  126. package/dist/v2/components/resize/Resize.vue.d.ts +20 -0
  127. package/dist/v2/components/resize/Resize.vue.d.ts.map +1 -0
  128. package/dist/v2/components/resize/Resize.vue.js +8 -0
  129. package/dist/v2/components/resize/Resize.vue2.js +36 -0
  130. package/dist/v2/components/resize/index.d.ts +3 -0
  131. package/dist/v2/components/resize/index.d.ts.map +1 -0
  132. package/dist/v2/components/resize/index.js +4 -0
  133. package/dist/v2/components/sidebar/Sidebar.vue.d.ts +39 -0
  134. package/dist/v2/components/sidebar/Sidebar.vue.d.ts.map +1 -0
  135. package/dist/v2/components/sidebar/Sidebar.vue.js +95 -0
  136. package/dist/v2/components/sidebar/Sidebar.vue2.js +4 -0
  137. package/dist/v2/components/sidebar/SidebarMenu.vue.d.ts +13 -0
  138. package/dist/v2/components/sidebar/SidebarMenu.vue.d.ts.map +1 -0
  139. package/dist/v2/components/sidebar/SidebarMenu.vue.js +63 -0
  140. package/dist/v2/components/sidebar/SidebarMenu.vue2.js +4 -0
  141. package/dist/v2/components/sidebar/SidebarToggle.vue.d.ts +10 -0
  142. package/dist/v2/components/sidebar/SidebarToggle.vue.d.ts.map +1 -0
  143. package/dist/v2/components/sidebar/SidebarToggle.vue.js +52 -0
  144. package/dist/v2/components/sidebar/SidebarToggle.vue2.js +4 -0
  145. package/dist/v2/components/sidebar/index.d.ts +4 -0
  146. package/dist/v2/components/sidebar/index.d.ts.map +1 -0
  147. package/dist/v2/components/sidebar/index.js +8 -0
  148. package/dist/v2/features/app/App.vue.d.ts +16 -0
  149. package/dist/v2/features/app/App.vue.d.ts.map +1 -0
  150. package/dist/v2/features/app/App.vue.js +72 -0
  151. package/dist/v2/features/app/App.vue3.js +5 -0
  152. package/dist/v2/features/app/components/AppSidebar.vue.d.ts +30 -0
  153. package/dist/v2/features/app/components/AppSidebar.vue.d.ts.map +1 -0
  154. package/dist/v2/features/app/components/AppSidebar.vue.js +7 -0
  155. package/dist/v2/features/app/components/AppSidebar.vue2.js +117 -0
  156. package/dist/v2/features/app/components/DesktopTabs.vue.d.ts +3 -0
  157. package/dist/v2/features/app/components/DesktopTabs.vue.d.ts.map +1 -0
  158. package/dist/v2/features/app/components/DesktopTabs.vue.js +14 -0
  159. package/dist/v2/features/app/components/DownloadAppButton.vue.d.ts +3 -0
  160. package/dist/v2/features/app/components/DownloadAppButton.vue.d.ts.map +1 -0
  161. package/dist/v2/features/app/components/DownloadAppButton.vue.js +7 -0
  162. package/dist/v2/features/app/components/DownloadAppButton.vue2.js +19 -0
  163. package/dist/v2/features/app/components/WebTopNav.vue.d.ts +16 -0
  164. package/dist/v2/features/app/components/WebTopNav.vue.d.ts.map +1 -0
  165. package/dist/v2/features/app/components/WebTopNav.vue.js +28 -0
  166. package/dist/v2/features/app/components/WebTopNav.vue2.js +4 -0
  167. package/dist/v2/features/app/components/index.d.ts +2 -0
  168. package/dist/v2/features/app/components/index.d.ts.map +1 -0
  169. package/dist/v2/features/app/components/index.js +5 -0
  170. package/dist/v2/features/app/helpers/create-api-client-app.d.ts +25 -0
  171. package/dist/v2/features/app/helpers/create-api-client-app.d.ts.map +1 -0
  172. package/dist/v2/features/app/helpers/create-api-client-app.js +21 -0
  173. package/dist/v2/features/app/helpers/routes.d.ts +103 -0
  174. package/dist/v2/features/app/helpers/routes.d.ts.map +1 -0
  175. package/dist/v2/features/app/helpers/routes.js +115 -0
  176. package/dist/v2/features/app/index.d.ts +2 -0
  177. package/dist/v2/features/app/index.d.ts.map +1 -0
  178. package/dist/v2/features/app/index.js +4 -0
  179. package/dist/v2/features/collection/DocumentCollection.test.d.ts +2 -0
  180. package/dist/v2/features/collection/DocumentCollection.test.d.ts.map +1 -0
  181. package/dist/v2/features/collection/DocumentCollection.vue.d.ts +12 -0
  182. package/dist/v2/features/collection/DocumentCollection.vue.d.ts.map +1 -0
  183. package/dist/v2/features/collection/DocumentCollection.vue.js +4 -0
  184. package/dist/v2/features/collection/DocumentCollection.vue2.js +82 -0
  185. package/dist/v2/features/collection/WorkspaceCollection.test.d.ts +2 -0
  186. package/dist/v2/features/collection/WorkspaceCollection.test.d.ts.map +1 -0
  187. package/dist/v2/features/collection/WorkspaceCollection.vue.d.ts +10 -0
  188. package/dist/v2/features/collection/WorkspaceCollection.vue.d.ts.map +1 -0
  189. package/dist/v2/features/collection/WorkspaceCollection.vue.js +4 -0
  190. package/dist/v2/features/collection/WorkspaceCollection.vue2.js +38 -0
  191. package/dist/v2/features/collection/components/Authentication.test.d.ts +2 -0
  192. package/dist/v2/features/collection/components/Authentication.test.d.ts.map +1 -0
  193. package/dist/v2/features/collection/components/Authentication.vue.d.ts +48 -0
  194. package/dist/v2/features/collection/components/Authentication.vue.d.ts.map +1 -0
  195. package/dist/v2/features/collection/components/Authentication.vue.js +7 -0
  196. package/dist/v2/features/collection/components/Authentication.vue2.js +50 -0
  197. package/dist/v2/features/collection/components/Cookies.vue.d.ts +3 -0
  198. package/dist/v2/features/collection/components/Cookies.vue.d.ts.map +1 -0
  199. package/dist/v2/features/collection/components/Cookies.vue.js +9 -0
  200. package/dist/v2/features/collection/components/Environment.test.d.ts +2 -0
  201. package/dist/v2/features/collection/components/Environment.test.d.ts.map +1 -0
  202. package/dist/v2/features/collection/components/Environment.vue.d.ts +89 -0
  203. package/dist/v2/features/collection/components/Environment.vue.d.ts.map +1 -0
  204. package/dist/v2/features/collection/components/Environment.vue.js +4 -0
  205. package/dist/v2/features/collection/components/Environment.vue2.js +34 -0
  206. package/dist/v2/features/collection/components/Form.vue.d.ts +29 -0
  207. package/dist/v2/features/collection/components/Form.vue.d.ts.map +1 -0
  208. package/dist/v2/features/collection/components/Form.vue.js +83 -0
  209. package/dist/v2/features/collection/components/Form.vue2.js +4 -0
  210. package/dist/v2/features/collection/components/LabelInput.test.d.ts +2 -0
  211. package/dist/v2/features/collection/components/LabelInput.test.d.ts.map +1 -0
  212. package/dist/v2/features/collection/components/LabelInput.vue.d.ts +10 -0
  213. package/dist/v2/features/collection/components/LabelInput.vue.d.ts.map +1 -0
  214. package/dist/v2/features/collection/components/LabelInput.vue.js +7 -0
  215. package/dist/v2/features/collection/components/LabelInput.vue2.js +29 -0
  216. package/dist/v2/features/collection/components/Overview.test.d.ts +2 -0
  217. package/dist/v2/features/collection/components/Overview.test.d.ts.map +1 -0
  218. package/dist/v2/features/collection/components/Overview.vue.d.ts +14 -0
  219. package/dist/v2/features/collection/components/Overview.vue.d.ts.map +1 -0
  220. package/dist/v2/features/collection/components/Overview.vue.js +4 -0
  221. package/dist/v2/features/collection/components/Overview.vue2.js +91 -0
  222. package/dist/v2/features/collection/components/Servers.test.d.ts +2 -0
  223. package/dist/v2/features/collection/components/Servers.test.d.ts.map +1 -0
  224. package/dist/v2/features/collection/components/Servers.vue.d.ts +33 -0
  225. package/dist/v2/features/collection/components/Servers.vue.d.ts.map +1 -0
  226. package/dist/v2/features/collection/components/Servers.vue.js +4 -0
  227. package/dist/v2/features/collection/components/Servers.vue2.js +120 -0
  228. package/dist/v2/features/collection/components/Settings.test.d.ts +2 -0
  229. package/dist/v2/features/collection/components/Settings.test.d.ts.map +1 -0
  230. package/dist/v2/features/collection/components/Settings.vue.d.ts +17 -0
  231. package/dist/v2/features/collection/components/Settings.vue.d.ts.map +1 -0
  232. package/dist/v2/features/collection/components/Settings.vue.js +7 -0
  233. package/dist/v2/features/collection/components/Settings.vue2.js +100 -0
  234. package/dist/v2/features/collection/components/Tabs.test.d.ts +2 -0
  235. package/dist/v2/features/collection/components/Tabs.test.d.ts.map +1 -0
  236. package/dist/v2/features/collection/components/Tabs.vue.d.ts +6 -0
  237. package/dist/v2/features/collection/components/Tabs.vue.d.ts.map +1 -0
  238. package/dist/v2/features/collection/components/Tabs.vue.js +46 -0
  239. package/dist/v2/features/collection/components/Tabs.vue2.js +4 -0
  240. package/dist/v2/features/environments/Environments.test.d.ts +2 -0
  241. package/dist/v2/features/environments/Environments.test.d.ts.map +1 -0
  242. package/dist/v2/features/environments/Environments.vue.d.ts +31 -0
  243. package/dist/v2/features/environments/Environments.vue.d.ts.map +1 -0
  244. package/dist/v2/features/environments/Environments.vue.js +65 -0
  245. package/dist/v2/features/environments/Environments.vue2.js +4 -0
  246. package/dist/v2/features/environments/EnvironmentsList.test.d.ts +2 -0
  247. package/dist/v2/features/environments/EnvironmentsList.test.d.ts.map +1 -0
  248. package/dist/v2/features/environments/EnvironmentsList.vue.d.ts +98 -0
  249. package/dist/v2/features/environments/EnvironmentsList.vue.d.ts.map +1 -0
  250. package/dist/v2/features/environments/EnvironmentsList.vue.js +114 -0
  251. package/dist/v2/features/environments/EnvironmentsList.vue2.js +4 -0
  252. package/dist/v2/features/environments/components/Environment.test.d.ts +2 -0
  253. package/dist/v2/features/environments/components/Environment.test.d.ts.map +1 -0
  254. package/dist/v2/features/environments/components/Environment.vue.d.ts +70 -0
  255. package/dist/v2/features/environments/components/Environment.vue.d.ts.map +1 -0
  256. package/dist/v2/features/environments/components/Environment.vue.js +104 -0
  257. package/dist/v2/features/environments/components/Environment.vue2.js +4 -0
  258. package/dist/v2/features/environments/components/EnvironmentColorUpdateModal.vue.d.ts +20 -0
  259. package/dist/v2/features/environments/components/EnvironmentColorUpdateModal.vue.d.ts.map +1 -0
  260. package/dist/v2/features/environments/components/EnvironmentColorUpdateModal.vue.js +48 -0
  261. package/dist/v2/features/environments/components/EnvironmentColorUpdateModal.vue2.js +4 -0
  262. package/dist/v2/features/environments/components/EnvironmentColors.test.d.ts +2 -0
  263. package/dist/v2/features/environments/components/EnvironmentColors.test.d.ts.map +1 -0
  264. package/dist/v2/features/environments/components/EnvironmentColors.vue.d.ts +10 -0
  265. package/dist/v2/features/environments/components/EnvironmentColors.vue.d.ts.map +1 -0
  266. package/dist/v2/features/environments/components/EnvironmentColors.vue.js +97 -0
  267. package/dist/v2/features/environments/components/EnvironmentColors.vue2.js +4 -0
  268. package/dist/v2/features/environments/components/EnvironmentCreateModal.vue.d.ts +19 -0
  269. package/dist/v2/features/environments/components/EnvironmentCreateModal.vue.d.ts.map +1 -0
  270. package/dist/v2/features/environments/components/EnvironmentCreateModal.vue.js +63 -0
  271. package/dist/v2/features/environments/components/EnvironmentCreateModal.vue2.js +4 -0
  272. package/dist/v2/features/environments/components/EnvironmentDeleteModal.vue.d.ts +14 -0
  273. package/dist/v2/features/environments/components/EnvironmentDeleteModal.vue.d.ts.map +1 -0
  274. package/dist/v2/features/environments/components/EnvironmentDeleteModal.vue.js +53 -0
  275. package/dist/v2/features/environments/components/EnvironmentDeleteModal.vue2.js +4 -0
  276. package/dist/v2/features/environments/components/EnvironmentNameUpdateModal.vue.d.ts +18 -0
  277. package/dist/v2/features/environments/components/EnvironmentNameUpdateModal.vue.d.ts.map +1 -0
  278. package/dist/v2/features/environments/components/EnvironmentNameUpdateModal.vue.js +35 -0
  279. package/dist/v2/features/environments/components/EnvironmentNameUpdateModal.vue2.js +4 -0
  280. package/dist/v2/features/environments/components/EnvironmentVariablesTable.test.d.ts +2 -0
  281. package/dist/v2/features/environments/components/EnvironmentVariablesTable.test.d.ts.map +1 -0
  282. package/dist/v2/features/environments/components/EnvironmentVariablesTable.vue.d.ts +23 -0
  283. package/dist/v2/features/environments/components/EnvironmentVariablesTable.vue.d.ts.map +1 -0
  284. package/dist/v2/features/environments/components/EnvironmentVariablesTable.vue.js +7 -0
  285. package/dist/v2/features/environments/components/EnvironmentVariablesTable.vue2.js +122 -0
  286. package/dist/v2/features/environments/index.d.ts +5 -0
  287. package/dist/v2/features/environments/index.d.ts.map +1 -0
  288. package/dist/v2/features/environments/index.js +6 -0
  289. package/dist/v2/features/global-cookies/components/CookiesTable.test.d.ts +2 -0
  290. package/dist/v2/features/global-cookies/components/CookiesTable.test.d.ts.map +1 -0
  291. package/dist/v2/features/global-cookies/components/CookiesTable.vue.d.ts +25 -0
  292. package/dist/v2/features/global-cookies/components/CookiesTable.vue.d.ts.map +1 -0
  293. package/dist/v2/features/global-cookies/components/CookiesTable.vue.js +7 -0
  294. package/dist/v2/features/global-cookies/components/CookiesTable.vue2.js +156 -0
  295. package/dist/v2/features/global-cookies/components/GlobalCookies.test.d.ts +2 -0
  296. package/dist/v2/features/global-cookies/components/GlobalCookies.test.d.ts.map +1 -0
  297. package/dist/v2/features/global-cookies/components/GlobalCookies.vue.d.ts +32 -0
  298. package/dist/v2/features/global-cookies/components/GlobalCookies.vue.d.ts.map +1 -0
  299. package/dist/v2/features/global-cookies/components/GlobalCookies.vue.js +7 -0
  300. package/dist/v2/features/global-cookies/components/GlobalCookies.vue2.js +58 -0
  301. package/dist/v2/features/global-cookies/index.d.ts +2 -0
  302. package/dist/v2/features/global-cookies/index.d.ts.map +1 -0
  303. package/dist/v2/features/global-cookies/index.js +4 -0
  304. package/dist/v2/features/modal/Modal.vue.d.ts +16 -0
  305. package/dist/v2/features/modal/Modal.vue.d.ts.map +1 -0
  306. package/dist/v2/features/modal/Modal.vue.js +7 -0
  307. package/dist/v2/features/modal/Modal.vue2.js +81 -0
  308. package/dist/v2/features/modal/helpers/create-api-client-modal.d.ts +53 -0
  309. package/dist/v2/features/modal/helpers/create-api-client-modal.d.ts.map +1 -0
  310. package/dist/v2/features/modal/helpers/create-api-client-modal.js +46 -0
  311. package/dist/v2/features/modal/index.d.ts +2 -0
  312. package/dist/v2/features/modal/index.d.ts.map +1 -0
  313. package/dist/v2/features/modal/index.js +4 -0
  314. package/dist/v2/features/operation/Operation.test.d.ts +2 -0
  315. package/dist/v2/features/operation/Operation.test.d.ts.map +1 -0
  316. package/dist/v2/features/operation/Operation.vue.d.ts +79 -0
  317. package/dist/v2/features/operation/Operation.vue.d.ts.map +1 -0
  318. package/dist/v2/features/operation/Operation.vue.js +124 -0
  319. package/dist/v2/features/operation/Operation.vue2.js +4 -0
  320. package/dist/v2/features/operation/components/Header.test.d.ts +2 -0
  321. package/dist/v2/features/operation/components/Header.test.d.ts.map +1 -0
  322. package/dist/v2/features/operation/components/Header.vue.d.ts +85 -0
  323. package/dist/v2/features/operation/components/Header.vue.d.ts.map +1 -0
  324. package/dist/v2/features/operation/components/Header.vue.js +7 -0
  325. package/dist/v2/features/operation/components/Header.vue2.js +97 -0
  326. package/dist/v2/features/operation/index.d.ts +3 -0
  327. package/dist/v2/features/operation/index.d.ts.map +1 -0
  328. package/dist/v2/features/operation/index.js +4 -0
  329. package/dist/v2/features/settings/Settings.test.d.ts +2 -0
  330. package/dist/v2/features/settings/Settings.test.d.ts.map +1 -0
  331. package/dist/v2/features/settings/Settings.vue.d.ts +22 -0
  332. package/dist/v2/features/settings/Settings.vue.d.ts.map +1 -0
  333. package/dist/v2/features/settings/Settings.vue.js +268 -0
  334. package/dist/v2/features/settings/Settings.vue2.js +4 -0
  335. package/dist/v2/features/settings/components/Appearance.vue.d.ts +10 -0
  336. package/dist/v2/features/settings/components/Appearance.vue.d.ts.map +1 -0
  337. package/dist/v2/features/settings/components/Appearance.vue.js +88 -0
  338. package/dist/v2/features/settings/components/Appearance.vue2.js +4 -0
  339. package/dist/v2/features/settings/components/Section.vue.d.ts +14 -0
  340. package/dist/v2/features/settings/components/Section.vue.d.ts.map +1 -0
  341. package/dist/v2/features/settings/components/Section.vue.js +24 -0
  342. package/dist/v2/features/settings/components/Section.vue2.js +4 -0
  343. package/dist/v2/features/settings/helpers/get-theme-colors.d.ts +9 -0
  344. package/dist/v2/features/settings/helpers/get-theme-colors.d.ts.map +1 -0
  345. package/dist/v2/features/settings/helpers/get-theme-colors.js +17 -0
  346. package/dist/v2/features/settings/index.d.ts +2 -0
  347. package/dist/v2/features/settings/index.d.ts.map +1 -0
  348. package/dist/v2/features/settings/index.js +4 -0
  349. package/dist/v2/hooks/use-document-watcher.d.ts +28 -0
  350. package/dist/v2/hooks/use-document-watcher.d.ts.map +1 -0
  351. package/dist/v2/hooks/use-document-watcher.test.d.ts +2 -0
  352. package/dist/v2/hooks/use-document-watcher.test.d.ts.map +1 -0
  353. package/dist/v2/hooks/use-workspace-client-events.d.ts +8 -0
  354. package/dist/v2/hooks/use-workspace-client-events.d.ts.map +1 -0
  355. package/dist/v2/hooks/use-workspace-client-events.js +13 -0
  356. package/dist/v2/plugins.d.ts +44 -0
  357. package/dist/v2/plugins.d.ts.map +1 -0
  358. package/dist/v2/types/layout.d.ts +10 -0
  359. package/dist/v2/types/layout.d.ts.map +1 -0
  360. package/dist/views/Collection/Collection.vue2.js +6 -6
  361. package/dist/views/Collection/CollectionCookies.vue2.js +3 -3
  362. package/dist/views/Collection/CollectionEnvironment.vue2.js +12 -13
  363. package/dist/views/Collection/CollectionScripts.vue2.js +3 -3
  364. package/dist/views/Collection/CollectionServerForm.vue.d.ts.map +1 -1
  365. package/dist/views/Collection/CollectionServerForm.vue.js +42 -62
  366. package/dist/views/Collection/CollectionServers.vue.d.ts.map +1 -1
  367. package/dist/views/Collection/CollectionServers.vue2.js +43 -50
  368. package/dist/views/Collection/CollectionSettings.vue.js +2 -2
  369. package/dist/views/Collection/CollectionSettings.vue2.js +5 -6
  370. package/dist/views/Collection/CollectionSync.vue2.js +3 -3
  371. package/dist/views/Collection/components/EnvironmentForm.vue2.js +10 -12
  372. package/dist/views/Collection/components/MarkdownInput.vue2.js +2 -4
  373. package/dist/views/Cookies/CookieModal.vue2.js +6 -6
  374. package/dist/views/Cookies/Cookies.vue2.js +6 -6
  375. package/dist/views/Environment/Environment.vue2.js +5 -6
  376. package/dist/views/Environment/EnvironmentModal.vue.js +13 -14
  377. package/dist/views/Environment/EnvironmentVariableDropdown.vue.js +8 -9
  378. package/dist/views/Request/RequestRoot.vue.d.ts.map +1 -1
  379. package/dist/views/Request/RequestRoot.vue.js +2 -2
  380. package/dist/views/Request/RequestRoot.vue2.js +79 -80
  381. package/dist/views/Request/RequestSection/RequestAuth/DeleteRequestAuthModal.vue.js +10 -11
  382. package/dist/views/Request/RequestSection/RequestAuth/OAuth2.vue.js +44 -55
  383. package/dist/views/Request/RequestSection/RequestAuth/OAuthScopesInput.vue.js +10 -12
  384. package/dist/views/Request/RequestSection/RequestAuth/RequestAuth.vue2.js +2 -2
  385. package/dist/views/Request/RequestSection/RequestAuth/RequestAuthTab.vue.js +39 -44
  386. package/dist/views/Request/RequestSection/RequestBody.vue.d.ts.map +1 -1
  387. package/dist/views/Request/RequestSection/RequestBody.vue.js +2 -2
  388. package/dist/views/Request/RequestSection/RequestBody.vue2.js +96 -78
  389. package/dist/views/Request/RequestSection/RequestCodeExample.vue2.js +3 -3
  390. package/dist/views/Request/RequestSection/RequestParams.vue.js +2 -3
  391. package/dist/views/Request/RequestSection/RequestSection.vue.js +2 -2
  392. package/dist/views/Request/RequestSection/RequestSection.vue2.js +55 -55
  393. package/dist/views/Request/RequestSection/RequestTable.vue2.js +15 -17
  394. package/dist/views/Request/RequestSidebar.vue2.js +7 -8
  395. package/dist/views/Request/RequestSidebarItem.vue.js +2 -2
  396. package/dist/views/Request/RequestSidebarItem.vue2.js +31 -32
  397. package/dist/views/Request/RequestSidebarItemMenu.vue.js +1 -1
  398. package/dist/views/Request/RequestSidebarItemMenu.vue2.js +13 -16
  399. package/dist/views/Request/ResponseSection/RequestHeaders.vue.js +11 -13
  400. package/dist/views/Request/ResponseSection/ResponseBody.vue2.js +4 -5
  401. package/dist/views/Request/ResponseSection/ResponseBodyPreview.vue2.js +4 -5
  402. package/dist/views/Request/ResponseSection/ResponseBodyVirtual.vue.js +1 -1
  403. package/dist/views/Request/ResponseSection/ResponseCookies.vue.js +3 -3
  404. package/dist/views/Request/ResponseSection/ResponseEmpty.vue2.js +4 -4
  405. package/dist/views/Request/ResponseSection/ResponseHeaders.vue.js +11 -13
  406. package/dist/views/Request/ResponseSection/ResponseLoadingOverlay.vue2.js +7 -8
  407. package/dist/views/Request/components/WorkspaceDropdown.vue.js +11 -14
  408. package/dist/views/Request/libs/oauth2.d.ts +1 -1
  409. package/dist/views/Request/libs/oauth2.d.ts.map +1 -1
  410. package/dist/views/Settings/SettingsGeneral.vue.js +40 -42
  411. package/dist/views/Settings/components/SettingsAppearance.vue.js +8 -11
  412. package/package.json +52 -27
  413. package/dist/hooks/useKeyMap.d.ts +0 -2
  414. package/dist/hooks/useKeyMap.d.ts.map +0 -1
  415. package/dist/hooks/useKeyMap.js +0 -9
  416. package/dist/router.d.ts +0 -8
  417. package/dist/router.d.ts.map +0 -1
  418. package/dist/router.js +0 -20
@@ -1,4 +1,4 @@
1
- import { defineComponent as R, computed as N, ref as P, createElementBlock as u, openBlock as r, Fragment as i, renderList as U, createBlock as k, createCommentVNode as b, unref as s, withCtx as o, createVNode as a, createElementVNode as C, toDisplayString as F, mergeProps as v, createTextVNode as x, normalizeClass as j, capitalize as _ } from "vue";
1
+ import { defineComponent as R, computed as N, ref as P, createElementBlock as u, openBlock as r, Fragment as i, renderList as C, createBlock as k, createCommentVNode as b, unref as s, withCtx as o, createVNode as a, createElementVNode as _, toDisplayString as F, mergeProps as v, createTextVNode as x, normalizeClass as j, capitalize as $ } from "vue";
2
2
  import { ScalarMarkdownSummary as z } from "@scalar/components";
3
3
  import { getResolvedRef as K } from "@scalar/workspace-store/helpers/get-resolved-ref";
4
4
  import O from "./OAuth2.vue.js";
@@ -20,41 +20,41 @@ const L = { class: "bg-b-1 text-c-2 outline-b-3 top-0 z-1 h-full w-full overflow
20
20
  },
21
21
  emits: ["update:securityScheme", "update:selectedScopes"],
22
22
  setup(S, { emit: I }) {
23
- const c = I, $ = N(
23
+ const c = I, h = N(
24
24
  () => Object.entries(S.selectedSecuritySchema).map(([l, e]) => ({
25
25
  scheme: K(S.securitySchemes[l]),
26
26
  name: l,
27
27
  scopes: e
28
28
  }))
29
29
  ), p = P(""), T = (l, e) => {
30
- const t = e.description ? `: ${e.description}` : "", m = `${_(l)}${t || `: ${e.type}`}`;
30
+ const t = e.description ? `: ${e.description}` : "", m = `${$(l)}${t || `: ${e.type}`}`;
31
31
  if (e.type === "apiKey")
32
- return `${_(l)}${t || `: ${e.in}`}`;
32
+ return `${$(l)}${t || `: ${e.in}`}`;
33
33
  if (e.type === "oauth2") {
34
- const h = Object.keys(e.flows ?? {})[0];
35
- return `${_(l)}: ${p.value ? p.value : h}${t}`;
34
+ const U = Object.keys(e.flows ?? {})[0];
35
+ return `${$(l)}: ${p.value ? p.value : U}${t}`;
36
36
  }
37
- return e.type === "http" ? `${_(l)}: ${e.scheme}${t}` : `${m}${t}`;
37
+ return e.type === "http" ? `${$(l)}: ${e.scheme}${t}` : `${m}${t}`;
38
38
  }, y = {
39
39
  environment: S.environment,
40
40
  envVariables: S.envVariables
41
41
  };
42
- return (l, e) => (r(!0), u(i, null, U($.value, ({ scheme: t, name: m, scopes: h }) => (r(), u(i, { key: m }, [
43
- $.value.length > 1 && t ? (r(), k(s(f), { key: 0 }, {
42
+ return (l, e) => (r(!0), u(i, null, C(h.value, ({ scheme: t, name: m, scopes: U }) => (r(), u(i, { key: m }, [
43
+ h.value.length > 1 && t ? (r(), k(s(f), { key: 0 }, {
44
44
  default: o(() => [
45
45
  a(s(B), {
46
46
  "aria-label": T(m, t),
47
47
  class: "text-c-2 group/auth flex items-center leading-[22px] whitespace-nowrap outline-none hover:whitespace-normal"
48
48
  }, {
49
49
  default: o(() => [
50
- C("p", L, F(T(m, t)), 1)
50
+ _("p", L, F(T(m, t)), 1)
51
51
  ]),
52
52
  _: 2
53
53
  }, 1032, ["aria-label"])
54
54
  ]),
55
55
  _: 2
56
56
  }, 1024)) : b("", !0),
57
- t?.description && $.value.length <= 1 ? (r(), k(s(f), { key: 1 }, {
57
+ t?.description && h.value.length <= 1 ? (r(), k(s(f), { key: 1 }, {
58
58
  default: o(() => [
59
59
  a(s(B), {
60
60
  "aria-label": t.description,
@@ -84,12 +84,11 @@ const L = { class: "bg-b-1 text-c-2 outline-b-3 top-0 z-1 h-full w-full overflow
84
84
  payload: { token: n }
85
85
  }))
86
86
  }), {
87
- default: o(() => e[5] || (e[5] = [
88
- x(" Bearer Token ")
89
- ])),
90
- _: 2,
91
- __: [5]
92
- }, 1040, ["containerClass", "modelValue"])
87
+ default: o(() => [...e[5] || (e[5] = [
88
+ x(" Bearer Token ", -1)
89
+ ])]),
90
+ _: 1
91
+ }, 16, ["containerClass", "modelValue"])
93
92
  ]),
94
93
  _: 2
95
94
  }, 1024)) : t?.scheme === "basic" ? (r(), u(i, { key: 1 }, [
@@ -105,12 +104,11 @@ const L = { class: "bg-b-1 text-c-2 outline-b-3 top-0 z-1 h-full w-full overflow
105
104
  payload: { username: n }
106
105
  }))
107
106
  }), {
108
- default: o(() => e[6] || (e[6] = [
109
- x(" Username ")
110
- ])),
111
- _: 2,
112
- __: [6]
113
- }, 1040, ["modelValue"])
107
+ default: o(() => [...e[6] || (e[6] = [
108
+ x(" Username ", -1)
109
+ ])]),
110
+ _: 1
111
+ }, 16, ["modelValue"])
114
112
  ]),
115
113
  _: 2
116
114
  }, 1024),
@@ -125,12 +123,11 @@ const L = { class: "bg-b-1 text-c-2 outline-b-3 top-0 z-1 h-full w-full overflow
125
123
  payload: { password: n }
126
124
  }))
127
125
  }), {
128
- default: o(() => e[7] || (e[7] = [
129
- x(" Password ")
130
- ])),
131
- _: 2,
132
- __: [7]
133
- }, 1040, ["modelValue"])
126
+ default: o(() => [...e[7] || (e[7] = [
127
+ x(" Password ", -1)
128
+ ])]),
129
+ _: 1
130
+ }, 16, ["modelValue"])
134
131
  ]),
135
132
  _: 2
136
133
  }, 1024)
@@ -147,12 +144,11 @@ const L = { class: "bg-b-1 text-c-2 outline-b-3 top-0 z-1 h-full w-full overflow
147
144
  payload: { name: n }
148
145
  }))
149
146
  }), {
150
- default: o(() => e[8] || (e[8] = [
151
- x(" Name ")
152
- ])),
153
- _: 2,
154
- __: [8]
155
- }, 1040, ["containerClass", "modelValue"])
147
+ default: o(() => [...e[8] || (e[8] = [
148
+ x(" Name ", -1)
149
+ ])]),
150
+ _: 1
151
+ }, 16, ["containerClass", "modelValue"])
156
152
  ]),
157
153
  _: 2
158
154
  }, 1024),
@@ -167,12 +163,11 @@ const L = { class: "bg-b-1 text-c-2 outline-b-3 top-0 z-1 h-full w-full overflow
167
163
  payload: { value: n }
168
164
  }))
169
165
  }), {
170
- default: o(() => e[9] || (e[9] = [
171
- x(" Value ")
172
- ])),
173
- _: 2,
174
- __: [9]
175
- }, 1040, ["modelValue"])
166
+ default: o(() => [...e[9] || (e[9] = [
167
+ x(" Value ", -1)
168
+ ])]),
169
+ _: 1
170
+ }, 16, ["modelValue"])
176
171
  ]),
177
172
  _: 2
178
173
  }, 1024)
@@ -180,8 +175,8 @@ const L = { class: "bg-b-1 text-c-2 outline-b-3 top-0 z-1 h-full w-full overflow
180
175
  a(s(f), null, {
181
176
  default: o(() => [
182
177
  Object.keys(t.flows).length > 1 ? (r(), u("div", M, [
183
- C("div", Q, [
184
- (r(!0), u(i, null, U(t?.flows, (n, d, V) => (r(), u("button", {
178
+ _("div", Q, [
179
+ (r(!0), u(i, null, C(t?.flows, (n, d, V) => (r(), u("button", {
185
180
  key: d,
186
181
  class: j(["floating-bg text-c-3 relative cursor-pointer border-b-[1px] border-transparent py-1 text-base font-medium", {
187
182
  "!text-c-1 !rounded-none border-b-[1px] !border-current": l.layout !== "reference" && (p.value === d || V === 0 && !p.value),
@@ -190,14 +185,14 @@ const L = { class: "bg-b-1 text-c-2 outline-b-3 top-0 z-1 h-full w-full overflow
190
185
  type: "button",
191
186
  onClick: (g) => p.value = d
192
187
  }, [
193
- C("span", D, F(d), 1)
188
+ _("span", D, F(d), 1)
194
189
  ], 10, q))), 128))
195
190
  ])
196
191
  ])) : b("", !0)
197
192
  ]),
198
193
  _: 2
199
194
  }, 1024),
200
- (r(!0), u(i, null, U(t.flows, (n, d, V) => (r(), u(i, { key: d }, [
195
+ (r(!0), u(i, null, C(t.flows, (n, d, V) => (r(), u(i, { key: d }, [
201
196
  p.value === d || V === 0 && !p.value ? (r(), k(O, v({
202
197
  key: 0,
203
198
  ref_for: !0
@@ -205,7 +200,7 @@ const L = { class: "bg-b-1 text-c-2 outline-b-3 top-0 z-1 h-full w-full overflow
205
200
  flows: t.flows,
206
201
  proxyUrl: "",
207
202
  scheme: t,
208
- selectedScopes: h,
203
+ selectedScopes: U,
209
204
  server: l.server,
210
205
  type: d,
211
206
  "onUpdate:securityScheme": (g) => c("update:securityScheme", {
@@ -1 +1 @@
1
- {"version":3,"file":"oauth.d.ts","sourceRoot":"","sources":["../../../../../src/v2/blocks/scalar-auth-selector-block/helpers/oauth.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,gBAAgB,EAAE,YAAY,EAAE,MAAM,8DAA8D,CAAA;AAGlH,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,eAAe,CAAA;AAElD,qDAAqD;AACrD,KAAK,eAAe,GAAG,IAAI,CAAC,gBAAgB,EAAE,UAAU,CAAC,CAAA;AAEzD,KAAK,SAAS,GAAG;IACf,YAAY,EAAE,MAAM,CAAA;IACpB,aAAa,EAAE,MAAM,CAAA;IACrB,mBAAmB,EAAE,MAAM,CAAA;CAC5B,CAAA;AAgBD;;GAEG;AACH,eAAO,MAAM,qBAAqB,GAAU,UAAU,MAAM,EAAE,UAAU,SAAS,GAAG,OAAO,KAAG,OAAO,CAAC,MAAM,CAY3G,CAAA;AAED;;;;GAIG;AACH,eAAO,MAAM,eAAe,GAC1B,OAAO,gBAAgB,EACvB,MAAM,MAAM,gBAAgB,EAC5B,gBAAgB,MAAM,EAAE;AACxB,wEAAwE;AACxE,cAAc,YAAY;AAC1B,kCAAkC;AAClC,WAAW,MAAM,KAChB,OAAO,CAAC,aAAa,CAAC,MAAM,CAAC,CAiK/B,CAAA;AAED;;;GAGG;AACH,eAAO,MAAM,gBAAgB,GAC3B,OAAO,eAAe,EACtB,MAAM,MAAM,eAAe,EAC3B,QAAQ,MAAM,EACd,4BAIG;IACD,IAAI,CAAC,EAAE,MAAM,CAAA;IACb,IAAI,CAAC,EAAE,SAAS,GAAG,IAAI,CAAA;IACvB,QAAQ,CAAC,EAAE,MAAM,GAAG,SAAS,CAAA;CACzB,KACL,OAAO,CAAC,aAAa,CAAC,MAAM,CAAC,CA8F/B,CAAA"}
1
+ {"version":3,"file":"oauth.d.ts","sourceRoot":"","sources":["../../../../../src/v2/blocks/scalar-auth-selector-block/helpers/oauth.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,gBAAgB,EAAE,YAAY,EAAE,MAAM,8DAA8D,CAAA;AAGlH,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,eAAe,CAAA;AAElD,qDAAqD;AACrD,KAAK,eAAe,GAAG,IAAI,CAAC,gBAAgB,EAAE,UAAU,CAAC,CAAA;AAEzD,KAAK,SAAS,GAAG;IACf,YAAY,EAAE,MAAM,CAAA;IACpB,aAAa,EAAE,MAAM,CAAA;IACrB,mBAAmB,EAAE,MAAM,CAAA;CAC5B,CAAA;AAgBD;;GAEG;AACH,eAAO,MAAM,qBAAqB,GAAU,UAAU,MAAM,EAAE,UAAU,SAAS,GAAG,OAAO,KAAG,OAAO,CAAC,MAAM,CAY3G,CAAA;AAED;;;;GAIG;AACH,eAAO,MAAM,eAAe,GAC1B,OAAO,gBAAgB,EACvB,MAAM,MAAM,gBAAgB,EAC5B,gBAAgB,MAAM,EAAE;AACxB,wEAAwE;AACxE,cAAc,YAAY;AAC1B,kCAAkC;AAClC,WAAW,MAAM,KAChB,OAAO,CAAC,aAAa,CAAC,MAAM,CAAC,CAkK/B,CAAA;AAED;;;GAGG;AACH,eAAO,MAAM,gBAAgB,GAC3B,OAAO,eAAe,EACtB,MAAM,MAAM,eAAe,EAC3B,QAAQ,MAAM,EACd,4BAIG;IACD,IAAI,CAAC,EAAE,MAAM,CAAA;IACb,IAAI,CAAC,EAAE,SAAS,GAAG,IAAI,CAAA;IACvB,QAAQ,CAAC,EAAE,MAAM,GAAG,SAAS,CAAA;CACzB,KACL,OAAO,CAAC,aAAa,CAAC,MAAM,CAAC,CA8F/B,CAAA"}
@@ -3,6 +3,7 @@ import type { Environment } from '@scalar/oas-utils/entities/environment';
3
3
  import type { OpenApiDocument, OperationObject, ServerObject } from '@scalar/workspace-store/schemas/v3.1/strict/openapi-document';
4
4
  import type { ClientLayout } from '../../../../hooks/index.js';
5
5
  import type { EnvVariable } from '../../../../store/index.js';
6
+ import type { ClientPlugin } from '../../../../v2/plugins';
6
7
  type __VLS_Props = {
7
8
  /** Operation method */
8
9
  method: HttpMethod;
@@ -24,6 +25,8 @@ type __VLS_Props = {
24
25
  server?: ServerObject;
25
26
  /** Client layout */
26
27
  layout: ClientLayout;
28
+ /** Registered app plugins */
29
+ plugins?: ClientPlugin[];
27
30
  /** TODO: remove when we migrate */
28
31
  environment: Environment;
29
32
  envVariables: EnvVariable[];
@@ -1 +1 @@
1
- {"version":3,"file":"OperationBlock.vue.d.ts","sourceRoot":"","sources":["../../../../../src/v2/blocks/scalar-operation-block/components/OperationBlock.vue"],"names":[],"mappings":"AAmcA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,mCAAmC,CAAA;AACnE,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,wCAAwC,CAAA;AAGzE,OAAO,KAAK,EACV,eAAe,EACf,eAAe,EAGf,YAAY,EACb,MAAM,8DAA8D,CAAA;AAKrE,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,SAAS,CAAA;AAC3C,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,SAAS,CAAA;AAO1C,KAAK,WAAW,GAAG;IACjB,uBAAuB;IACvB,MAAM,EAAE,UAAU,CAAA;IAClB,qBAAqB;IACrB,IAAI,EAAE,MAAM,CAAA;IACZ,uBAAuB;IACvB,SAAS,EAAE,eAAe,CAAA;IAC1B,+DAA+D;IAC/D,UAAU,EAAE,MAAM,CAAA;IAClB,wEAAwE;IACxE,mBAAmB,CAAC,EAAE,MAAM,CAAA;IAC5B,wCAAwC;IACxC,eAAe,EAAE,WAAW,CAAC,eAAe,CAAC,YAAY,CAAC,CAAC,CAAC,iBAAiB,CAAC,CAAA;IAC9E,4DAA4D;IAC5D,gBAAgB,EAAE,eAAe,CAAC,4BAA4B,CAAC,CAAA;IAC/D,mDAAmD;IACnD,QAAQ,EAAE,eAAe,CAAC,UAAU,CAAC,CAAA;IACrC,6EAA6E;IAC7E,MAAM,CAAC,EAAE,YAAY,CAAA;IACrB,oBAAoB;IACpB,MAAM,EAAE,YAAY,CAAA;IAEpB,mCAAmC;IACnC,WAAW,EAAE,WAAW,CAAA;IACxB,YAAY,EAAE,WAAW,EAAE,CAAA;CAC5B,CAAC;;;;;;;;AAyoBF,wBAOG"}
1
+ {"version":3,"file":"OperationBlock.vue.d.ts","sourceRoot":"","sources":["../../../../../src/v2/blocks/scalar-operation-block/components/OperationBlock.vue"],"names":[],"mappings":"AAidA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,mCAAmC,CAAA;AACnE,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,wCAAwC,CAAA;AAGzE,OAAO,KAAK,EACV,eAAe,EACf,eAAe,EAGf,YAAY,EACb,MAAM,8DAA8D,CAAA;AAKrE,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,SAAS,CAAA;AAC3C,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,SAAS,CAAA;AAM1C,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,cAAc,CAAA;AAEhD,KAAK,WAAW,GAAG;IACjB,uBAAuB;IACvB,MAAM,EAAE,UAAU,CAAA;IAClB,qBAAqB;IACrB,IAAI,EAAE,MAAM,CAAA;IACZ,uBAAuB;IACvB,SAAS,EAAE,eAAe,CAAA;IAC1B,+DAA+D;IAC/D,UAAU,EAAE,MAAM,CAAA;IAClB,wEAAwE;IACxE,mBAAmB,CAAC,EAAE,MAAM,CAAA;IAC5B,wCAAwC;IACxC,eAAe,EAAE,WAAW,CAAC,eAAe,CAAC,YAAY,CAAC,CAAC,CAAC,iBAAiB,CAAC,CAAA;IAC9E,4DAA4D;IAC5D,gBAAgB,EAAE,eAAe,CAAC,4BAA4B,CAAC,CAAA;IAC/D,mDAAmD;IACnD,QAAQ,EAAE,eAAe,CAAC,UAAU,CAAC,CAAA;IACrC,6EAA6E;IAC7E,MAAM,CAAC,EAAE,YAAY,CAAA;IACrB,oBAAoB;IACpB,MAAM,EAAE,YAAY,CAAA;IACpB,6BAA6B;IAC7B,OAAO,CAAC,EAAE,YAAY,EAAE,CAAA;IAExB,mCAAmC;IACnC,WAAW,EAAE,WAAW,CAAA;IACxB,YAAY,EAAE,WAAW,EAAE,CAAA;CAC5B,CAAC;;;;;;;;AAkqBF,wBAOG"}
@@ -1,7 +1,7 @@
1
1
  import o from "./OperationBlock.vue2.js";
2
2
  /* empty css */
3
3
  import t from "../../../../_virtual/_plugin-vue_export-helper.js";
4
- const c = /* @__PURE__ */ t(o, [["__scopeId", "data-v-6c469e03"]]);
4
+ const f = /* @__PURE__ */ t(o, [["__scopeId", "data-v-a58f7b6a"]]);
5
5
  export {
6
- c as default
6
+ f as default
7
7
  };
@@ -1,16 +1,16 @@
1
- import { defineComponent as g, ref as D, computed as f, useId as q, watch as O, createBlock as U, openBlock as y, withCtx as k, withDirectives as p, createVNode as s, unref as o, vShow as m, createElementVNode as T, createElementBlock as b, createCommentVNode as N, toDisplayString as H } from "vue";
2
- import { canMethodHaveBody as V, REGEX as K } from "@scalar/oas-utils/helpers";
3
- import { getResolvedRef as R } from "@scalar/workspace-store/helpers/get-resolved-ref";
4
- import I from "../../../../components/SectionFilter.vue.js";
5
- import E from "../../../../components/ViewLayout/ViewLayoutSection.vue.js";
6
- import P from "./OperationBody.vue.js";
7
- import v from "./OperationParams.vue.js";
8
- import { groupBy as Q } from "../helpers/group-by.js";
9
- import $ from "../../scalar-auth-selector-block/components/AuthSelector.vue.js";
10
- const j = { class: "group pointer-events-none flex flex-1 items-center gap-1 lg:pr-24" }, z = ["for"], F = ["id", "placeholder", "value"], L = {
1
+ import { defineComponent as E, ref as T, computed as b, useId as K, watch as N, resolveComponent as H, createBlock as V, openBlock as s, withCtx as S, withDirectives as m, createElementBlock as v, createVNode as i, unref as l, vShow as y, Fragment as I, renderList as P, createCommentVNode as R, resolveDynamicComponent as Q, createElementVNode as F, toDisplayString as L } from "vue";
2
+ import { canMethodHaveBody as A, REGEX as C } from "@scalar/oas-utils/helpers";
3
+ import { getResolvedRef as h } from "@scalar/workspace-store/helpers/get-resolved-ref";
4
+ import $ from "../../../../components/SectionFilter.vue.js";
5
+ import j from "../../../../components/ViewLayout/ViewLayoutSection.vue.js";
6
+ import z from "./OperationBody.vue.js";
7
+ import f from "./OperationParams.vue.js";
8
+ import { groupBy as G } from "../helpers/group-by.js";
9
+ import M from "../../scalar-auth-selector-block/components/AuthSelector.vue.js";
10
+ const X = { class: "group pointer-events-none flex flex-1 items-center gap-1 lg:pr-24" }, J = ["for"], W = ["id", "placeholder", "value"], Y = {
11
11
  key: 2,
12
12
  class: "text-c-1 flex h-8 items-center"
13
- }, _ = /* @__PURE__ */ g({
13
+ }, le = /* @__PURE__ */ E({
14
14
  __name: "OperationBlock",
15
15
  props: {
16
16
  method: {},
@@ -23,13 +23,14 @@ const j = { class: "group pointer-events-none flex flex-1 items-center gap-1 lg:
23
23
  security: {},
24
24
  server: {},
25
25
  layout: {},
26
+ plugins: {},
26
27
  environment: {},
27
28
  envVariables: {}
28
29
  },
29
30
  emits: ["operation:update:requestName", "auth:delete", "auth:update:securityScheme", "auth:update:selectedScopes", "auth:update:selectedSecurity", "parameters:add", "parameters:update", "parameters:delete", "parameters:deleteAll", "requestBody:update:contentType", "requestBody:update:value", "requestBody:add:formRow", "requestBody:update:formRow"],
30
- setup(l, { emit: h }) {
31
- const a = h, i = Q(
32
- l.operation.parameters?.map((r) => R(r)) ?? [],
31
+ setup(o, { emit: g }) {
32
+ const a = g, d = G(
33
+ o.operation.parameters?.map((r) => h(r)) ?? [],
33
34
  "in"
34
35
  ), w = [
35
36
  "Auth",
@@ -38,189 +39,202 @@ const j = { class: "group pointer-events-none flex flex-1 items-center gap-1 lg:
38
39
  "Headers",
39
40
  "Query",
40
41
  "Body"
41
- ], d = D("All"), A = f(() => {
42
+ ], u = T("All"), B = b(() => {
42
43
  const r = /* @__PURE__ */ new Set(["All", ...w]);
43
- return i.path?.length || r.delete("Variables"), V(l.method) || r.delete("Body"), S.value && r.delete("Auth"), [...r];
44
- }), n = f(
44
+ return d.path?.length || r.delete("Variables"), A(o.method) || r.delete("Body"), q.value && r.delete("Auth"), [...r];
45
+ }), n = b(
45
46
  () => Object.fromEntries(
46
- A.value.map((r) => [r, q()])
47
+ B.value.map((r) => [r, K()])
47
48
  )
48
49
  );
49
- O(
50
- () => l.method,
50
+ N(
51
+ () => o.method,
51
52
  (r) => {
52
- d.value === "Body" && !V(r) && (d.value = "All");
53
+ u.value === "Body" && !A(r) && (u.value = "All");
53
54
  }
54
55
  );
55
- const S = f(
56
- () => l.layout === "modal" && !l.operation.security && !Object.keys(l.securitySchemes ?? {}).length
57
- ), C = () => l.operation.summary ? l.operation.summary : l.path.replace(K.PROTOCOL, "") ? l.path.replace(K.PROTOCOL, "") : "Request Name", u = (r) => d.value === "All" || d.value === r, B = q();
58
- return (r, e) => (y(), U(E, {
59
- "aria-label": `Request: ${r.operation.summary}`
60
- }, {
61
- title: k(() => [
62
- T("div", j, [
63
- r.layout !== "modal" ? (y(), b("label", {
64
- key: 0,
65
- class: "pointer-events-auto absolute top-0 left-0 h-full w-full cursor-text opacity-0",
66
- for: o(B)
67
- }, null, 8, z)) : N("", !0),
68
- r.layout !== "modal" ? (y(), b("input", {
69
- key: 1,
70
- id: o(B),
71
- class: "text-c-1 group-hover-input pointer-events-auto relative z-10 -ml-0.5 h-8 w-full rounded pl-1.25 has-[:focus-visible]:outline md:-ml-1.25",
72
- placeholder: C(),
73
- value: r.operation.summary,
74
- onInput: e[0] || (e[0] = (t) => a("operation:update:requestName", {
75
- name: t.target.value
76
- }))
77
- }, null, 40, F)) : (y(), b("span", L, H(r.operation.summary), 1))
78
- ]),
79
- s(I, {
80
- modelValue: d.value,
81
- "onUpdate:modelValue": e[1] || (e[1] = (t) => d.value = t),
82
- filterIds: n.value,
83
- filters: A.value
84
- }, null, 8, ["modelValue", "filterIds", "filters"])
85
- ]),
86
- default: k(() => [
87
- p(s(o($), {
88
- id: n.value.Auth,
89
- envVariables: r.envVariables,
90
- environment: r.environment,
91
- layout: "client",
92
- security: r.security,
93
- securitySchemes: r.securitySchemes,
94
- selectedSecurity: r.selectedSecurity,
95
- server: r.server,
96
- title: "Authorization",
97
- onDeleteOperationAuth: e[2] || (e[2] = (t) => a("auth:delete", t)),
98
- "onUpdate:securityScheme": e[3] || (e[3] = (t) => a("auth:update:securityScheme", t)),
99
- "onUpdate:selectedScopes": e[4] || (e[4] = (t) => a("auth:update:selectedScopes", t)),
100
- "onUpdate:selectedSecurity": e[5] || (e[5] = (t) => a("auth:update:selectedSecurity", t))
101
- }, null, 8, ["id", "envVariables", "environment", "security", "securitySchemes", "selectedSecurity", "server"]), [
102
- [m, u("Auth") && !S.value]
103
- ]),
104
- p(s(v, {
105
- id: n.value.Variables,
106
- envVariables: r.envVariables,
107
- environment: r.environment,
108
- exampleKey: r.exampleKey,
109
- parameters: o(i).path ?? [],
110
- title: "Variables",
111
- onAdd: e[6] || (e[6] = (t) => a("parameters:add", {
112
- type: "path",
113
- payload: t
114
- })),
115
- onDelete: e[7] || (e[7] = (t) => a("parameters:delete", {
116
- type: "path",
117
- ...t
118
- })),
119
- onDeleteAll: e[8] || (e[8] = () => a("parameters:deleteAll", {
120
- type: "path"
121
- })),
122
- onUpdate: e[9] || (e[9] = (t) => a("parameters:update", {
123
- type: "path",
124
- ...t
125
- }))
126
- }, null, 8, ["id", "envVariables", "environment", "exampleKey", "parameters"]), [
127
- [m, u("Variables") && o(i).path?.length]
128
- ]),
129
- p(s(v, {
130
- id: n.value.Cookies,
131
- envVariables: r.envVariables,
132
- environment: r.environment,
133
- exampleKey: r.exampleKey,
134
- parameters: o(i).cookie ?? [],
135
- title: "Cookies",
136
- onAdd: e[10] || (e[10] = (t) => a("parameters:add", {
137
- type: "cookie",
138
- payload: t
139
- })),
140
- onDelete: e[11] || (e[11] = (t) => a("parameters:delete", {
141
- type: "cookie",
142
- ...t
143
- })),
144
- onDeleteAll: e[12] || (e[12] = () => a("parameters:deleteAll", {
145
- type: "cookie"
146
- })),
147
- onUpdate: e[13] || (e[13] = (t) => a("parameters:update", {
148
- type: "cookie",
149
- ...t
150
- }))
151
- }, null, 8, ["id", "envVariables", "environment", "exampleKey", "parameters"]), [
152
- [m, u("Cookies")]
153
- ]),
154
- p(s(v, {
155
- id: n.value.Headers,
156
- envVariables: r.envVariables,
157
- environment: r.environment,
158
- exampleKey: r.exampleKey,
159
- parameters: o(i).header ?? [],
160
- title: "Headers",
161
- onAdd: e[14] || (e[14] = (t) => a("parameters:add", {
162
- type: "header",
163
- payload: t
164
- })),
165
- onDelete: e[15] || (e[15] = (t) => a("parameters:delete", {
166
- type: "header",
167
- ...t
168
- })),
169
- onDeleteAll: e[16] || (e[16] = () => a("parameters:deleteAll", {
170
- type: "header"
171
- })),
172
- onUpdate: e[17] || (e[17] = (t) => a("parameters:update", {
173
- type: "header",
174
- ...t
175
- }))
176
- }, null, 8, ["id", "envVariables", "environment", "exampleKey", "parameters"]), [
177
- [m, u("Headers")]
56
+ const q = b(
57
+ () => o.layout === "modal" && !o.operation.security && !Object.keys(o.securitySchemes ?? {}).length
58
+ ), D = () => o.operation.summary ? o.operation.summary : o.path.replace(C.PROTOCOL, "") ? o.path.replace(C.PROTOCOL, "") : "Request Name", p = (r) => u.value === "All" || u.value === r, k = K();
59
+ return (r, e) => {
60
+ const O = H("ScalarErrorBoundary");
61
+ return s(), V(j, {
62
+ "aria-label": `Request: ${r.operation.summary}`
63
+ }, {
64
+ title: S(() => [
65
+ F("div", X, [
66
+ r.layout !== "modal" ? (s(), v("label", {
67
+ key: 0,
68
+ class: "pointer-events-auto absolute top-0 left-0 h-full w-full cursor-text opacity-0",
69
+ for: l(k)
70
+ }, null, 8, J)) : R("", !0),
71
+ r.layout !== "modal" ? (s(), v("input", {
72
+ key: 1,
73
+ id: l(k),
74
+ class: "text-c-1 group-hover-input pointer-events-auto relative z-10 -ml-0.5 h-8 w-full rounded pl-1.25 has-[:focus-visible]:outline md:-ml-1.25",
75
+ placeholder: D(),
76
+ value: r.operation.summary,
77
+ onInput: e[0] || (e[0] = (t) => a("operation:update:requestName", {
78
+ name: t.target.value
79
+ }))
80
+ }, null, 40, W)) : (s(), v("span", Y, L(r.operation.summary), 1))
81
+ ]),
82
+ i($, {
83
+ modelValue: u.value,
84
+ "onUpdate:modelValue": e[1] || (e[1] = (t) => u.value = t),
85
+ filterIds: n.value,
86
+ filters: B.value
87
+ }, null, 8, ["modelValue", "filterIds", "filters"])
178
88
  ]),
179
- p(s(v, {
180
- id: n.value.Query,
181
- envVariables: r.envVariables,
182
- environment: r.environment,
183
- exampleKey: r.exampleKey,
184
- parameters: o(i).query ?? [],
185
- title: "Query Parameters",
186
- onAdd: e[18] || (e[18] = (t) => a("parameters:add", {
187
- type: "query",
188
- payload: t
189
- })),
190
- onDelete: e[19] || (e[19] = (t) => a("parameters:delete", {
191
- type: "query",
192
- ...t
193
- })),
194
- onDeleteAll: e[20] || (e[20] = () => a("parameters:deleteAll", {
195
- type: "query"
196
- })),
197
- onUpdate: e[21] || (e[21] = (t) => a("parameters:update", {
198
- type: "query",
199
- ...t
200
- }))
201
- }, null, 8, ["id", "envVariables", "environment", "exampleKey", "parameters"]), [
202
- [m, u("Query")]
89
+ default: S(() => [
90
+ m(i(l(M), {
91
+ id: n.value.Auth,
92
+ envVariables: r.envVariables,
93
+ environment: r.environment,
94
+ layout: "client",
95
+ security: r.security,
96
+ securitySchemes: r.securitySchemes,
97
+ selectedSecurity: r.selectedSecurity,
98
+ server: r.server,
99
+ title: "Authorization",
100
+ onDeleteOperationAuth: e[2] || (e[2] = (t) => a("auth:delete", t)),
101
+ "onUpdate:securityScheme": e[3] || (e[3] = (t) => a("auth:update:securityScheme", t)),
102
+ "onUpdate:selectedScopes": e[4] || (e[4] = (t) => a("auth:update:selectedScopes", t)),
103
+ "onUpdate:selectedSecurity": e[5] || (e[5] = (t) => a("auth:update:selectedSecurity", t))
104
+ }, null, 8, ["id", "envVariables", "environment", "security", "securitySchemes", "selectedSecurity", "server"]), [
105
+ [y, p("Auth") && !q.value]
106
+ ]),
107
+ m(i(f, {
108
+ id: n.value.Variables,
109
+ envVariables: r.envVariables,
110
+ environment: r.environment,
111
+ exampleKey: r.exampleKey,
112
+ parameters: l(d).path ?? [],
113
+ title: "Variables",
114
+ onAdd: e[6] || (e[6] = (t) => a("parameters:add", {
115
+ type: "path",
116
+ payload: t
117
+ })),
118
+ onDelete: e[7] || (e[7] = (t) => a("parameters:delete", {
119
+ type: "path",
120
+ ...t
121
+ })),
122
+ onDeleteAll: e[8] || (e[8] = () => a("parameters:deleteAll", {
123
+ type: "path"
124
+ })),
125
+ onUpdate: e[9] || (e[9] = (t) => a("parameters:update", {
126
+ type: "path",
127
+ ...t
128
+ }))
129
+ }, null, 8, ["id", "envVariables", "environment", "exampleKey", "parameters"]), [
130
+ [y, p("Variables") && l(d).path?.length]
131
+ ]),
132
+ m(i(f, {
133
+ id: n.value.Cookies,
134
+ envVariables: r.envVariables,
135
+ environment: r.environment,
136
+ exampleKey: r.exampleKey,
137
+ parameters: l(d).cookie ?? [],
138
+ title: "Cookies",
139
+ onAdd: e[10] || (e[10] = (t) => a("parameters:add", {
140
+ type: "cookie",
141
+ payload: t
142
+ })),
143
+ onDelete: e[11] || (e[11] = (t) => a("parameters:delete", {
144
+ type: "cookie",
145
+ ...t
146
+ })),
147
+ onDeleteAll: e[12] || (e[12] = () => a("parameters:deleteAll", {
148
+ type: "cookie"
149
+ })),
150
+ onUpdate: e[13] || (e[13] = (t) => a("parameters:update", {
151
+ type: "cookie",
152
+ ...t
153
+ }))
154
+ }, null, 8, ["id", "envVariables", "environment", "exampleKey", "parameters"]), [
155
+ [y, p("Cookies")]
156
+ ]),
157
+ m(i(f, {
158
+ id: n.value.Headers,
159
+ envVariables: r.envVariables,
160
+ environment: r.environment,
161
+ exampleKey: r.exampleKey,
162
+ parameters: l(d).header ?? [],
163
+ title: "Headers",
164
+ onAdd: e[14] || (e[14] = (t) => a("parameters:add", {
165
+ type: "header",
166
+ payload: t
167
+ })),
168
+ onDelete: e[15] || (e[15] = (t) => a("parameters:delete", {
169
+ type: "header",
170
+ ...t
171
+ })),
172
+ onDeleteAll: e[16] || (e[16] = () => a("parameters:deleteAll", {
173
+ type: "header"
174
+ })),
175
+ onUpdate: e[17] || (e[17] = (t) => a("parameters:update", {
176
+ type: "header",
177
+ ...t
178
+ }))
179
+ }, null, 8, ["id", "envVariables", "environment", "exampleKey", "parameters"]), [
180
+ [y, p("Headers")]
181
+ ]),
182
+ m(i(f, {
183
+ id: n.value.Query,
184
+ envVariables: r.envVariables,
185
+ environment: r.environment,
186
+ exampleKey: r.exampleKey,
187
+ parameters: l(d).query ?? [],
188
+ title: "Query Parameters",
189
+ onAdd: e[18] || (e[18] = (t) => a("parameters:add", {
190
+ type: "query",
191
+ payload: t
192
+ })),
193
+ onDelete: e[19] || (e[19] = (t) => a("parameters:delete", {
194
+ type: "query",
195
+ ...t
196
+ })),
197
+ onDeleteAll: e[20] || (e[20] = () => a("parameters:deleteAll", {
198
+ type: "query"
199
+ })),
200
+ onUpdate: e[21] || (e[21] = (t) => a("parameters:update", {
201
+ type: "query",
202
+ ...t
203
+ }))
204
+ }, null, 8, ["id", "envVariables", "environment", "exampleKey", "parameters"]), [
205
+ [y, p("Query")]
206
+ ]),
207
+ m(i(z, {
208
+ id: n.value.Body,
209
+ envVariables: r.envVariables,
210
+ environment: r.environment,
211
+ exampleKey: r.exampleKey,
212
+ requestBody: l(h)(r.operation.requestBody),
213
+ selectedContentType: r.selectedContentType ?? "other",
214
+ title: "Request Body",
215
+ "onAdd:formRow": e[22] || (e[22] = (t) => a("requestBody:add:formRow", t)),
216
+ "onUpdate:contentType": e[23] || (e[23] = (t) => a("requestBody:update:contentType", t)),
217
+ "onUpdate:formRow": e[24] || (e[24] = (t) => a("requestBody:update:formRow", t)),
218
+ "onUpdate:value": e[25] || (e[25] = (t) => a("requestBody:update:value", t))
219
+ }, null, 8, ["id", "envVariables", "environment", "exampleKey", "requestBody", "selectedContentType"]), [
220
+ [y, p("Body") && l(A)(r.method)]
221
+ ]),
222
+ (s(!0), v(I, null, P(r.plugins, (t, U) => (s(), V(O, { key: U }, {
223
+ default: S(() => [
224
+ t?.components?.request ? (s(), V(Q(t.components.request), {
225
+ key: 0,
226
+ operation: r.operation,
227
+ selectedExample: r.exampleKey
228
+ }, null, 8, ["operation", "selectedExample"])) : R("", !0)
229
+ ]),
230
+ _: 2
231
+ }, 1024))), 128))
203
232
  ]),
204
- p(s(P, {
205
- id: n.value.Body,
206
- envVariables: r.envVariables,
207
- environment: r.environment,
208
- exampleKey: r.exampleKey,
209
- requestBody: o(R)(r.operation.requestBody),
210
- selectedContentType: r.selectedContentType ?? "other",
211
- title: "Request Body",
212
- "onAdd:formRow": e[22] || (e[22] = (t) => a("requestBody:add:formRow", t)),
213
- "onUpdate:contentType": e[23] || (e[23] = (t) => a("requestBody:update:contentType", t)),
214
- "onUpdate:formRow": e[24] || (e[24] = (t) => a("requestBody:update:formRow", t)),
215
- "onUpdate:value": e[25] || (e[25] = (t) => a("requestBody:update:value", t))
216
- }, null, 8, ["id", "envVariables", "environment", "exampleKey", "requestBody", "selectedContentType"]), [
217
- [m, u("Body") && o(V)(r.method)]
218
- ])
219
- ]),
220
- _: 1
221
- }, 8, ["aria-label"]));
233
+ _: 1
234
+ }, 8, ["aria-label"]);
235
+ };
222
236
  }
223
237
  });
224
238
  export {
225
- _ as default
239
+ le as default
226
240
  };