@scalar/api-client 2.8.1 → 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 (403) hide show
  1. package/CHANGELOG.md +58 -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.vue2.js +22 -24
  15. package/dist/components/CommandPalette/WatchModeToggle.vue.js +1 -1
  16. package/dist/components/DataTable/DataTableInput.vue2.js +1 -1
  17. package/dist/components/DataTable/DataTableInputSelect.vue.js +8 -9
  18. package/dist/components/EnvironmentSelector/EnvironmentSelector.vue.js +8 -10
  19. package/dist/components/IconSelector.vue.js +1 -1
  20. package/dist/components/ImportCollection/DropEventListener.vue.js +12 -12
  21. package/dist/components/ImportCollection/ImportCollectionListener.vue.js +8 -8
  22. package/dist/components/ImportCollection/ImportCollectionModal.vue.js +1 -1
  23. package/dist/components/ImportCollection/ImportNowButton.vue.js +14 -16
  24. package/dist/components/ImportCollection/PasteEventListener.vue.js +1 -1
  25. package/dist/components/ImportCollection/PrefetchError.vue.js +2 -2
  26. package/dist/components/ImportCollection/WorkspaceSelector.vue.js +5 -7
  27. package/dist/components/ImportCollection/hooks/useUrlPrefetcher.d.ts +1 -1
  28. package/dist/components/ImportCollection/hooks/useUrlPrefetcher.d.ts.map +1 -1
  29. package/dist/components/ImportCollection/hooks/useUrlPrefetcher.js +3 -3
  30. package/dist/components/OpenApiClientButton.vue2.js +1 -1
  31. package/dist/components/Server/ServerSelector.vue.js +1 -2
  32. package/dist/components/SideNav/SideHelp.vue.js +13 -19
  33. package/dist/components/SideNav/SideNav.vue.js +4 -5
  34. package/dist/components/Sidebar/Actions/SidebarListElementForm.vue2.js +4 -5
  35. package/dist/components/Sidebar/Sidebar.vue.d.ts.map +1 -1
  36. package/dist/components/Sidebar/Sidebar.vue.js +2 -2
  37. package/dist/components/Sidebar/Sidebar.vue2.js +1 -1
  38. package/dist/components/TopNav/TopNav.vue.js +8 -10
  39. package/dist/components/TopNav/TopNavItem.vue2.js +8 -12
  40. package/dist/hooks/index.d.ts +0 -1
  41. package/dist/hooks/index.d.ts.map +1 -1
  42. package/dist/hooks/index.js +9 -11
  43. package/dist/hooks/useClientConfig.d.ts +3 -0
  44. package/dist/hooks/useClientConfig.d.ts.map +1 -1
  45. package/dist/index.d.ts +1 -2
  46. package/dist/index.d.ts.map +1 -1
  47. package/dist/index.js +8 -15
  48. package/dist/layouts/App/create-api-client-app.d.ts +3646 -3645
  49. package/dist/layouts/App/create-api-client-app.d.ts.map +1 -1
  50. package/dist/layouts/App/create-api-client-app.js +24 -18
  51. package/dist/layouts/Modal/create-api-client-modal.d.ts +5 -8089
  52. package/dist/layouts/Modal/create-api-client-modal.d.ts.map +1 -1
  53. package/dist/layouts/Modal/create-api-client-modal.js +28 -46
  54. package/dist/layouts/Modal/index.d.ts +2 -2
  55. package/dist/layouts/Modal/index.d.ts.map +1 -1
  56. package/dist/layouts/Modal/index.js +2 -5
  57. package/dist/layouts/Web/create-api-client-web.d.ts.map +1 -1
  58. package/dist/layouts/Web/create-api-client-web.js +15 -12
  59. package/dist/libs/create-client.d.ts +2 -2
  60. package/dist/libs/create-client.d.ts.map +1 -1
  61. package/dist/libs/postman.d.ts +1 -1
  62. package/dist/libs/postman.d.ts.map +1 -1
  63. package/dist/libs/postman.js +12 -12
  64. package/dist/libs/validate-parameters.d.ts +10 -2
  65. package/dist/libs/validate-parameters.d.ts.map +1 -1
  66. package/dist/libs/validate-parameters.js +13 -6
  67. package/dist/routes.d.ts +3 -184
  68. package/dist/routes.d.ts.map +1 -1
  69. package/dist/routes.js +6 -6
  70. package/dist/store/active-entities.d.ts +1 -1
  71. package/dist/store/active-entities.d.ts.map +1 -1
  72. package/dist/store/active-entities.js +2 -2
  73. package/dist/store/router-params.d.ts.map +1 -1
  74. package/dist/style.css +1 -1
  75. package/dist/v2/blocks/scalar-address-bar-block/components/AddressBar.vue.d.ts +5 -5
  76. package/dist/v2/blocks/scalar-address-bar-block/components/AddressBar.vue.d.ts.map +1 -1
  77. package/dist/v2/blocks/scalar-address-bar-block/components/AddressBar.vue.js +2 -2
  78. package/dist/v2/blocks/scalar-address-bar-block/components/AddressBar.vue2.js +3 -3
  79. package/dist/v2/blocks/scalar-address-bar-block/components/AddressBarHistory.vue2.js +3 -4
  80. package/dist/v2/blocks/scalar-address-bar-block/index.d.ts +1 -0
  81. package/dist/v2/blocks/scalar-address-bar-block/index.d.ts.map +1 -1
  82. package/dist/v2/blocks/scalar-auth-selector-block/components/AuthSelector.vue2.js +2 -2
  83. package/dist/v2/blocks/scalar-auth-selector-block/components/DeleteRequestAuthModal.vue.js +7 -8
  84. package/dist/v2/blocks/scalar-auth-selector-block/components/OAuth2.vue.js +44 -55
  85. package/dist/v2/blocks/scalar-auth-selector-block/components/OAuthScopesInput.vue.js +16 -18
  86. package/dist/v2/blocks/scalar-auth-selector-block/components/RequestAuthTab.vue.js +41 -46
  87. package/dist/v2/blocks/scalar-auth-selector-block/helpers/oauth.d.ts.map +1 -1
  88. package/dist/v2/blocks/scalar-operation-block/components/OperationBlock.vue.d.ts +3 -0
  89. package/dist/v2/blocks/scalar-operation-block/components/OperationBlock.vue.d.ts.map +1 -1
  90. package/dist/v2/blocks/scalar-operation-block/components/OperationBlock.vue.js +2 -2
  91. package/dist/v2/blocks/scalar-operation-block/components/OperationBlock.vue2.js +201 -187
  92. package/dist/v2/blocks/scalar-operation-block/components/OperationBody.vue.js +2 -2
  93. package/dist/v2/blocks/scalar-operation-block/components/OperationBody.vue2.js +8 -10
  94. package/dist/v2/blocks/scalar-operation-block/components/OperationParams.vue.js +2 -3
  95. package/dist/v2/blocks/scalar-operation-block/components/OperationTableRow.vue.js +2 -4
  96. package/dist/v2/blocks/scalar-response-block/components/Headers.vue.js +14 -16
  97. package/dist/v2/blocks/scalar-response-block/components/ResponseBlock.vue.d.ts +3 -0
  98. package/dist/v2/blocks/scalar-response-block/components/ResponseBlock.vue.d.ts.map +1 -1
  99. package/dist/v2/blocks/scalar-response-block/components/ResponseBlock.vue.js +3 -3
  100. package/dist/v2/blocks/scalar-response-block/components/ResponseBlock.vue2.js +87 -85
  101. package/dist/v2/blocks/scalar-response-block/components/ResponseBody.vue2.js +10 -11
  102. package/dist/v2/blocks/scalar-response-block/components/ResponseBodyPreview.vue2.js +4 -5
  103. package/dist/v2/blocks/scalar-response-block/components/ResponseBodyVirtual.vue.js +1 -1
  104. package/dist/v2/blocks/scalar-response-block/components/ResponseCookies.vue.js +3 -3
  105. package/dist/v2/blocks/scalar-response-block/components/ResponseEmpty.vue.js +1 -1
  106. package/dist/v2/blocks/scalar-response-block/components/ResponseEmpty.vue2.js +5 -5
  107. package/dist/v2/blocks/scalar-response-block/components/ResponseLoadingOverlay.vue2.js +9 -10
  108. package/dist/v2/components/TempReplaceMe.vue.d.ts +3 -0
  109. package/dist/v2/components/TempReplaceMe.vue.d.ts.map +1 -0
  110. package/dist/v2/components/TempReplaceMe.vue.js +12 -0
  111. package/dist/v2/components/resize/Resize.vue.d.ts +20 -0
  112. package/dist/v2/components/resize/Resize.vue.d.ts.map +1 -0
  113. package/dist/v2/components/resize/Resize.vue.js +8 -0
  114. package/dist/v2/components/resize/Resize.vue2.js +36 -0
  115. package/dist/v2/components/resize/index.d.ts +3 -0
  116. package/dist/v2/components/resize/index.d.ts.map +1 -0
  117. package/dist/v2/components/resize/index.js +4 -0
  118. package/dist/v2/components/sidebar/Sidebar.vue.d.ts +39 -0
  119. package/dist/v2/components/sidebar/Sidebar.vue.d.ts.map +1 -0
  120. package/dist/v2/components/sidebar/Sidebar.vue.js +95 -0
  121. package/dist/v2/components/sidebar/Sidebar.vue2.js +4 -0
  122. package/dist/v2/components/sidebar/SidebarMenu.vue.d.ts +13 -0
  123. package/dist/v2/components/sidebar/SidebarMenu.vue.d.ts.map +1 -0
  124. package/dist/v2/components/sidebar/SidebarMenu.vue.js +63 -0
  125. package/dist/v2/components/sidebar/SidebarMenu.vue2.js +4 -0
  126. package/dist/v2/components/sidebar/SidebarToggle.vue.d.ts +10 -0
  127. package/dist/v2/components/sidebar/SidebarToggle.vue.d.ts.map +1 -0
  128. package/dist/v2/components/sidebar/SidebarToggle.vue.js +52 -0
  129. package/dist/v2/components/sidebar/SidebarToggle.vue2.js +4 -0
  130. package/dist/v2/components/sidebar/index.d.ts +4 -0
  131. package/dist/v2/components/sidebar/index.d.ts.map +1 -0
  132. package/dist/v2/components/sidebar/index.js +8 -0
  133. package/dist/v2/features/app/App.vue.d.ts +16 -0
  134. package/dist/v2/features/app/App.vue.d.ts.map +1 -0
  135. package/dist/v2/features/app/App.vue.js +72 -0
  136. package/dist/v2/features/app/App.vue3.js +5 -0
  137. package/dist/v2/features/app/components/AppSidebar.vue.d.ts +30 -0
  138. package/dist/v2/features/app/components/AppSidebar.vue.d.ts.map +1 -0
  139. package/dist/v2/features/app/components/AppSidebar.vue.js +7 -0
  140. package/dist/v2/features/app/components/AppSidebar.vue2.js +117 -0
  141. package/dist/v2/features/app/components/DesktopTabs.vue.d.ts +3 -0
  142. package/dist/v2/features/app/components/DesktopTabs.vue.d.ts.map +1 -0
  143. package/dist/v2/features/app/components/DesktopTabs.vue.js +14 -0
  144. package/dist/v2/features/app/components/DownloadAppButton.vue.d.ts +3 -0
  145. package/dist/v2/features/app/components/DownloadAppButton.vue.d.ts.map +1 -0
  146. package/dist/v2/features/app/components/DownloadAppButton.vue.js +7 -0
  147. package/dist/v2/features/app/components/DownloadAppButton.vue2.js +19 -0
  148. package/dist/v2/features/app/components/WebTopNav.vue.d.ts +16 -0
  149. package/dist/v2/features/app/components/WebTopNav.vue.d.ts.map +1 -0
  150. package/dist/v2/features/app/components/WebTopNav.vue.js +28 -0
  151. package/dist/v2/features/app/components/WebTopNav.vue2.js +4 -0
  152. package/dist/v2/features/app/components/index.d.ts +2 -0
  153. package/dist/v2/features/app/components/index.d.ts.map +1 -0
  154. package/dist/v2/features/app/components/index.js +5 -0
  155. package/dist/v2/features/app/helpers/create-api-client-app.d.ts +25 -0
  156. package/dist/v2/features/app/helpers/create-api-client-app.d.ts.map +1 -0
  157. package/dist/v2/features/app/helpers/create-api-client-app.js +21 -0
  158. package/dist/v2/features/app/helpers/routes.d.ts +103 -0
  159. package/dist/v2/features/app/helpers/routes.d.ts.map +1 -0
  160. package/dist/v2/features/app/helpers/routes.js +115 -0
  161. package/dist/v2/features/app/index.d.ts +2 -0
  162. package/dist/v2/features/app/index.d.ts.map +1 -0
  163. package/dist/v2/features/app/index.js +4 -0
  164. package/dist/v2/features/collection/DocumentCollection.test.d.ts +2 -0
  165. package/dist/v2/features/collection/DocumentCollection.test.d.ts.map +1 -0
  166. package/dist/v2/features/collection/DocumentCollection.vue.d.ts +12 -0
  167. package/dist/v2/features/collection/DocumentCollection.vue.d.ts.map +1 -0
  168. package/dist/v2/features/collection/DocumentCollection.vue.js +4 -0
  169. package/dist/v2/features/collection/DocumentCollection.vue2.js +82 -0
  170. package/dist/v2/features/collection/WorkspaceCollection.test.d.ts +2 -0
  171. package/dist/v2/features/collection/WorkspaceCollection.test.d.ts.map +1 -0
  172. package/dist/v2/features/collection/WorkspaceCollection.vue.d.ts +10 -0
  173. package/dist/v2/features/collection/WorkspaceCollection.vue.d.ts.map +1 -0
  174. package/dist/v2/features/collection/WorkspaceCollection.vue.js +4 -0
  175. package/dist/v2/features/collection/WorkspaceCollection.vue2.js +38 -0
  176. package/dist/v2/features/collection/components/Authentication.test.d.ts +2 -0
  177. package/dist/v2/features/collection/components/Authentication.test.d.ts.map +1 -0
  178. package/dist/v2/features/collection/components/Authentication.vue.d.ts +48 -0
  179. package/dist/v2/features/collection/components/Authentication.vue.d.ts.map +1 -0
  180. package/dist/v2/features/collection/components/Authentication.vue.js +7 -0
  181. package/dist/v2/features/collection/components/Authentication.vue2.js +50 -0
  182. package/dist/v2/features/collection/components/Cookies.vue.d.ts +3 -0
  183. package/dist/v2/features/collection/components/Cookies.vue.d.ts.map +1 -0
  184. package/dist/v2/features/collection/components/Cookies.vue.js +9 -0
  185. package/dist/v2/features/collection/components/Environment.test.d.ts +2 -0
  186. package/dist/v2/features/collection/components/Environment.test.d.ts.map +1 -0
  187. package/dist/v2/features/collection/components/Environment.vue.d.ts +89 -0
  188. package/dist/v2/features/collection/components/Environment.vue.d.ts.map +1 -0
  189. package/dist/v2/features/collection/components/Environment.vue.js +4 -0
  190. package/dist/v2/features/collection/components/Environment.vue2.js +34 -0
  191. package/dist/v2/features/collection/components/Form.vue.d.ts +29 -0
  192. package/dist/v2/features/collection/components/Form.vue.d.ts.map +1 -0
  193. package/dist/v2/features/collection/components/Form.vue.js +83 -0
  194. package/dist/v2/features/collection/components/Form.vue2.js +4 -0
  195. package/dist/v2/features/collection/components/LabelInput.test.d.ts +2 -0
  196. package/dist/v2/features/collection/components/LabelInput.test.d.ts.map +1 -0
  197. package/dist/v2/features/collection/components/LabelInput.vue.d.ts +10 -0
  198. package/dist/v2/features/collection/components/LabelInput.vue.d.ts.map +1 -0
  199. package/dist/v2/features/collection/components/LabelInput.vue.js +7 -0
  200. package/dist/v2/features/collection/components/LabelInput.vue2.js +29 -0
  201. package/dist/v2/features/collection/components/Overview.test.d.ts +2 -0
  202. package/dist/v2/features/collection/components/Overview.test.d.ts.map +1 -0
  203. package/dist/v2/features/collection/components/Overview.vue.d.ts +14 -0
  204. package/dist/v2/features/collection/components/Overview.vue.d.ts.map +1 -0
  205. package/dist/v2/features/collection/components/Overview.vue.js +4 -0
  206. package/dist/v2/features/collection/components/Overview.vue2.js +91 -0
  207. package/dist/v2/features/collection/components/Servers.test.d.ts +2 -0
  208. package/dist/v2/features/collection/components/Servers.test.d.ts.map +1 -0
  209. package/dist/v2/features/collection/components/Servers.vue.d.ts +33 -0
  210. package/dist/v2/features/collection/components/Servers.vue.d.ts.map +1 -0
  211. package/dist/v2/features/collection/components/Servers.vue.js +4 -0
  212. package/dist/v2/features/collection/components/Servers.vue2.js +120 -0
  213. package/dist/v2/features/collection/components/Settings.test.d.ts +2 -0
  214. package/dist/v2/features/collection/components/Settings.test.d.ts.map +1 -0
  215. package/dist/v2/features/collection/components/Settings.vue.d.ts +17 -0
  216. package/dist/v2/features/collection/components/Settings.vue.d.ts.map +1 -0
  217. package/dist/v2/features/collection/components/Settings.vue.js +7 -0
  218. package/dist/v2/features/collection/components/Settings.vue2.js +100 -0
  219. package/dist/v2/features/collection/components/Tabs.test.d.ts +2 -0
  220. package/dist/v2/features/collection/components/Tabs.test.d.ts.map +1 -0
  221. package/dist/v2/features/collection/components/Tabs.vue.d.ts +6 -0
  222. package/dist/v2/features/collection/components/Tabs.vue.d.ts.map +1 -0
  223. package/dist/v2/features/collection/components/Tabs.vue.js +46 -0
  224. package/dist/v2/features/collection/components/Tabs.vue2.js +4 -0
  225. package/dist/v2/features/environments/Environments.test.d.ts +2 -0
  226. package/dist/v2/features/environments/Environments.test.d.ts.map +1 -0
  227. package/dist/v2/features/environments/Environments.vue.d.ts +31 -0
  228. package/dist/v2/features/environments/Environments.vue.d.ts.map +1 -0
  229. package/dist/v2/features/environments/Environments.vue.js +65 -0
  230. package/dist/v2/features/environments/Environments.vue2.js +4 -0
  231. package/dist/v2/features/environments/EnvironmentsList.test.d.ts +2 -0
  232. package/dist/v2/features/environments/EnvironmentsList.test.d.ts.map +1 -0
  233. package/dist/v2/features/environments/EnvironmentsList.vue.d.ts +98 -0
  234. package/dist/v2/features/environments/EnvironmentsList.vue.d.ts.map +1 -0
  235. package/dist/v2/features/environments/EnvironmentsList.vue.js +114 -0
  236. package/dist/v2/features/environments/EnvironmentsList.vue2.js +4 -0
  237. package/dist/v2/features/environments/components/Environment.test.d.ts +2 -0
  238. package/dist/v2/features/environments/components/Environment.test.d.ts.map +1 -0
  239. package/dist/v2/features/environments/components/Environment.vue.d.ts +70 -0
  240. package/dist/v2/features/environments/components/Environment.vue.d.ts.map +1 -0
  241. package/dist/v2/features/environments/components/Environment.vue.js +104 -0
  242. package/dist/v2/features/environments/components/Environment.vue2.js +4 -0
  243. package/dist/v2/features/environments/components/EnvironmentColorUpdateModal.vue.d.ts +20 -0
  244. package/dist/v2/features/environments/components/EnvironmentColorUpdateModal.vue.d.ts.map +1 -0
  245. package/dist/v2/features/environments/components/EnvironmentColorUpdateModal.vue.js +48 -0
  246. package/dist/v2/features/environments/components/EnvironmentColorUpdateModal.vue2.js +4 -0
  247. package/dist/v2/features/environments/components/EnvironmentColors.test.d.ts +2 -0
  248. package/dist/v2/features/environments/components/EnvironmentColors.test.d.ts.map +1 -0
  249. package/dist/v2/features/environments/components/EnvironmentColors.vue.d.ts +10 -0
  250. package/dist/v2/features/environments/components/EnvironmentColors.vue.d.ts.map +1 -0
  251. package/dist/v2/features/environments/components/EnvironmentColors.vue.js +97 -0
  252. package/dist/v2/features/environments/components/EnvironmentColors.vue2.js +4 -0
  253. package/dist/v2/features/environments/components/EnvironmentCreateModal.vue.d.ts +19 -0
  254. package/dist/v2/features/environments/components/EnvironmentCreateModal.vue.d.ts.map +1 -0
  255. package/dist/v2/features/environments/components/EnvironmentCreateModal.vue.js +63 -0
  256. package/dist/v2/features/environments/components/EnvironmentCreateModal.vue2.js +4 -0
  257. package/dist/v2/features/environments/components/EnvironmentDeleteModal.vue.d.ts +14 -0
  258. package/dist/v2/features/environments/components/EnvironmentDeleteModal.vue.d.ts.map +1 -0
  259. package/dist/v2/features/environments/components/EnvironmentDeleteModal.vue.js +53 -0
  260. package/dist/v2/features/environments/components/EnvironmentDeleteModal.vue2.js +4 -0
  261. package/dist/v2/features/environments/components/EnvironmentNameUpdateModal.vue.d.ts +18 -0
  262. package/dist/v2/features/environments/components/EnvironmentNameUpdateModal.vue.d.ts.map +1 -0
  263. package/dist/v2/features/environments/components/EnvironmentNameUpdateModal.vue.js +35 -0
  264. package/dist/v2/features/environments/components/EnvironmentNameUpdateModal.vue2.js +4 -0
  265. package/dist/v2/features/environments/components/EnvironmentVariablesTable.test.d.ts +2 -0
  266. package/dist/v2/features/environments/components/EnvironmentVariablesTable.test.d.ts.map +1 -0
  267. package/dist/v2/features/environments/components/EnvironmentVariablesTable.vue.d.ts +23 -0
  268. package/dist/v2/features/environments/components/EnvironmentVariablesTable.vue.d.ts.map +1 -0
  269. package/dist/v2/features/environments/components/EnvironmentVariablesTable.vue.js +7 -0
  270. package/dist/v2/features/environments/components/EnvironmentVariablesTable.vue2.js +122 -0
  271. package/dist/v2/features/environments/index.d.ts +5 -0
  272. package/dist/v2/features/environments/index.d.ts.map +1 -0
  273. package/dist/v2/features/environments/index.js +6 -0
  274. package/dist/v2/features/global-cookies/components/CookiesTable.test.d.ts +2 -0
  275. package/dist/v2/features/global-cookies/components/CookiesTable.test.d.ts.map +1 -0
  276. package/dist/v2/features/global-cookies/components/CookiesTable.vue.d.ts +25 -0
  277. package/dist/v2/features/global-cookies/components/CookiesTable.vue.d.ts.map +1 -0
  278. package/dist/v2/features/global-cookies/components/CookiesTable.vue.js +7 -0
  279. package/dist/v2/features/global-cookies/components/CookiesTable.vue2.js +156 -0
  280. package/dist/v2/features/global-cookies/components/GlobalCookies.test.d.ts +2 -0
  281. package/dist/v2/features/global-cookies/components/GlobalCookies.test.d.ts.map +1 -0
  282. package/dist/v2/features/global-cookies/components/GlobalCookies.vue.d.ts +32 -0
  283. package/dist/v2/features/global-cookies/components/GlobalCookies.vue.d.ts.map +1 -0
  284. package/dist/v2/features/global-cookies/components/GlobalCookies.vue.js +7 -0
  285. package/dist/v2/features/global-cookies/components/GlobalCookies.vue2.js +58 -0
  286. package/dist/v2/features/global-cookies/index.d.ts +2 -0
  287. package/dist/v2/features/global-cookies/index.d.ts.map +1 -0
  288. package/dist/v2/features/global-cookies/index.js +4 -0
  289. package/dist/v2/features/modal/Modal.vue.d.ts +16 -0
  290. package/dist/v2/features/modal/Modal.vue.d.ts.map +1 -0
  291. package/dist/v2/features/modal/Modal.vue.js +7 -0
  292. package/dist/v2/features/modal/Modal.vue2.js +81 -0
  293. package/dist/v2/features/modal/helpers/create-api-client-modal.d.ts +53 -0
  294. package/dist/v2/features/modal/helpers/create-api-client-modal.d.ts.map +1 -0
  295. package/dist/v2/features/modal/helpers/create-api-client-modal.js +46 -0
  296. package/dist/v2/features/modal/index.d.ts +2 -0
  297. package/dist/v2/features/modal/index.d.ts.map +1 -0
  298. package/dist/v2/features/modal/index.js +4 -0
  299. package/dist/v2/features/operation/Operation.test.d.ts +2 -0
  300. package/dist/v2/features/operation/Operation.test.d.ts.map +1 -0
  301. package/dist/v2/features/operation/Operation.vue.d.ts +79 -0
  302. package/dist/v2/features/operation/Operation.vue.d.ts.map +1 -0
  303. package/dist/v2/features/operation/Operation.vue.js +124 -0
  304. package/dist/v2/features/operation/Operation.vue2.js +4 -0
  305. package/dist/v2/features/operation/components/Header.test.d.ts +2 -0
  306. package/dist/v2/features/operation/components/Header.test.d.ts.map +1 -0
  307. package/dist/v2/features/operation/components/Header.vue.d.ts +85 -0
  308. package/dist/v2/features/operation/components/Header.vue.d.ts.map +1 -0
  309. package/dist/v2/features/operation/components/Header.vue.js +7 -0
  310. package/dist/v2/features/operation/components/Header.vue2.js +97 -0
  311. package/dist/v2/features/operation/index.d.ts +3 -0
  312. package/dist/v2/features/operation/index.d.ts.map +1 -0
  313. package/dist/v2/features/operation/index.js +4 -0
  314. package/dist/v2/features/settings/Settings.test.d.ts +2 -0
  315. package/dist/v2/features/settings/Settings.test.d.ts.map +1 -0
  316. package/dist/v2/features/settings/Settings.vue.d.ts +22 -0
  317. package/dist/v2/features/settings/Settings.vue.d.ts.map +1 -0
  318. package/dist/v2/features/settings/Settings.vue.js +268 -0
  319. package/dist/v2/features/settings/Settings.vue2.js +4 -0
  320. package/dist/v2/features/settings/components/Appearance.vue.d.ts +10 -0
  321. package/dist/v2/features/settings/components/Appearance.vue.d.ts.map +1 -0
  322. package/dist/v2/features/settings/components/Appearance.vue.js +88 -0
  323. package/dist/v2/features/settings/components/Appearance.vue2.js +4 -0
  324. package/dist/v2/features/settings/components/Section.vue.d.ts +14 -0
  325. package/dist/v2/features/settings/components/Section.vue.d.ts.map +1 -0
  326. package/dist/v2/features/settings/components/Section.vue.js +24 -0
  327. package/dist/v2/features/settings/components/Section.vue2.js +4 -0
  328. package/dist/v2/features/settings/helpers/get-theme-colors.d.ts +9 -0
  329. package/dist/v2/features/settings/helpers/get-theme-colors.d.ts.map +1 -0
  330. package/dist/v2/features/settings/helpers/get-theme-colors.js +17 -0
  331. package/dist/v2/features/settings/index.d.ts +2 -0
  332. package/dist/v2/features/settings/index.d.ts.map +1 -0
  333. package/dist/v2/features/settings/index.js +4 -0
  334. package/dist/v2/hooks/use-document-watcher.d.ts +28 -0
  335. package/dist/v2/hooks/use-document-watcher.d.ts.map +1 -0
  336. package/dist/v2/hooks/use-document-watcher.test.d.ts +2 -0
  337. package/dist/v2/hooks/use-document-watcher.test.d.ts.map +1 -0
  338. package/dist/v2/hooks/use-workspace-client-events.d.ts +8 -0
  339. package/dist/v2/hooks/use-workspace-client-events.d.ts.map +1 -0
  340. package/dist/v2/hooks/use-workspace-client-events.js +13 -0
  341. package/dist/v2/plugins.d.ts +44 -0
  342. package/dist/v2/plugins.d.ts.map +1 -0
  343. package/dist/v2/types/layout.d.ts +10 -0
  344. package/dist/v2/types/layout.d.ts.map +1 -0
  345. package/dist/views/Collection/Collection.vue2.js +6 -6
  346. package/dist/views/Collection/CollectionCookies.vue2.js +3 -3
  347. package/dist/views/Collection/CollectionEnvironment.vue2.js +12 -13
  348. package/dist/views/Collection/CollectionScripts.vue2.js +3 -3
  349. package/dist/views/Collection/CollectionServerForm.vue.d.ts.map +1 -1
  350. package/dist/views/Collection/CollectionServerForm.vue.js +42 -62
  351. package/dist/views/Collection/CollectionServers.vue.d.ts.map +1 -1
  352. package/dist/views/Collection/CollectionServers.vue2.js +43 -50
  353. package/dist/views/Collection/CollectionSettings.vue.js +2 -2
  354. package/dist/views/Collection/CollectionSettings.vue2.js +5 -6
  355. package/dist/views/Collection/CollectionSync.vue2.js +3 -3
  356. package/dist/views/Collection/components/EnvironmentForm.vue2.js +10 -12
  357. package/dist/views/Collection/components/MarkdownInput.vue2.js +2 -4
  358. package/dist/views/Cookies/CookieModal.vue2.js +6 -6
  359. package/dist/views/Cookies/Cookies.vue2.js +6 -6
  360. package/dist/views/Environment/Environment.vue2.js +5 -6
  361. package/dist/views/Environment/EnvironmentModal.vue.js +13 -14
  362. package/dist/views/Environment/EnvironmentVariableDropdown.vue.js +8 -9
  363. package/dist/views/Request/RequestRoot.vue.d.ts.map +1 -1
  364. package/dist/views/Request/RequestRoot.vue.js +2 -2
  365. package/dist/views/Request/RequestRoot.vue2.js +79 -80
  366. package/dist/views/Request/RequestSection/RequestAuth/DeleteRequestAuthModal.vue.js +10 -11
  367. package/dist/views/Request/RequestSection/RequestAuth/OAuth2.vue.js +44 -55
  368. package/dist/views/Request/RequestSection/RequestAuth/OAuthScopesInput.vue.js +10 -12
  369. package/dist/views/Request/RequestSection/RequestAuth/RequestAuth.vue2.js +2 -2
  370. package/dist/views/Request/RequestSection/RequestAuth/RequestAuthTab.vue.js +39 -44
  371. package/dist/views/Request/RequestSection/RequestBody.vue.d.ts.map +1 -1
  372. package/dist/views/Request/RequestSection/RequestBody.vue.js +2 -2
  373. package/dist/views/Request/RequestSection/RequestBody.vue2.js +96 -78
  374. package/dist/views/Request/RequestSection/RequestCodeExample.vue2.js +3 -3
  375. package/dist/views/Request/RequestSection/RequestParams.vue.js +2 -3
  376. package/dist/views/Request/RequestSection/RequestSection.vue.js +2 -2
  377. package/dist/views/Request/RequestSection/RequestSection.vue2.js +55 -55
  378. package/dist/views/Request/RequestSection/RequestTable.vue2.js +15 -17
  379. package/dist/views/Request/RequestSidebar.vue2.js +7 -8
  380. package/dist/views/Request/RequestSidebarItem.vue.js +2 -2
  381. package/dist/views/Request/RequestSidebarItem.vue2.js +31 -32
  382. package/dist/views/Request/RequestSidebarItemMenu.vue.js +1 -1
  383. package/dist/views/Request/RequestSidebarItemMenu.vue2.js +13 -16
  384. package/dist/views/Request/ResponseSection/RequestHeaders.vue.js +11 -13
  385. package/dist/views/Request/ResponseSection/ResponseBody.vue2.js +4 -5
  386. package/dist/views/Request/ResponseSection/ResponseBodyPreview.vue2.js +4 -5
  387. package/dist/views/Request/ResponseSection/ResponseBodyVirtual.vue.js +1 -1
  388. package/dist/views/Request/ResponseSection/ResponseCookies.vue.js +3 -3
  389. package/dist/views/Request/ResponseSection/ResponseEmpty.vue2.js +4 -4
  390. package/dist/views/Request/ResponseSection/ResponseHeaders.vue.js +11 -13
  391. package/dist/views/Request/ResponseSection/ResponseLoadingOverlay.vue2.js +7 -8
  392. package/dist/views/Request/components/WorkspaceDropdown.vue.js +11 -14
  393. package/dist/views/Request/libs/oauth2.d.ts +1 -1
  394. package/dist/views/Request/libs/oauth2.d.ts.map +1 -1
  395. package/dist/views/Settings/SettingsGeneral.vue.js +40 -42
  396. package/dist/views/Settings/components/SettingsAppearance.vue.js +8 -11
  397. package/package.json +30 -25
  398. package/dist/hooks/useKeyMap.d.ts +0 -2
  399. package/dist/hooks/useKeyMap.d.ts.map +0 -1
  400. package/dist/hooks/useKeyMap.js +0 -9
  401. package/dist/router.d.ts +0 -8
  402. package/dist/router.d.ts.map +0 -1
  403. package/dist/router.js +0 -20
@@ -1,4 +1,4 @@
1
- import { defineComponent as K, computed as N, ref as P, onMounted as j, createElementBlock as u, openBlock as r, Fragment as s, renderList as U, createBlock as x, createCommentVNode as b, unref as i, withCtx as a, createVNode as n, createElementVNode as C, toDisplayString as S, mergeProps as y, createTextVNode as V, normalizeClass as A, renderSlot as L, capitalize as g } from "vue";
1
+ import { defineComponent as K, computed as N, ref as P, onMounted as j, createElementBlock as u, openBlock as r, Fragment as s, renderList as C, createBlock as x, createCommentVNode as b, unref as i, withCtx as a, createVNode as n, createElementVNode as h, toDisplayString as _, mergeProps as y, createTextVNode as V, normalizeClass as A, renderSlot as L, capitalize as g } from "vue";
2
2
  import { ScalarMarkdownSummary as M } from "@scalar/components";
3
3
  import { useWorkspace as R } from "../../../../store/store.js";
4
4
  import { updateScheme as Q } from "../helpers/update-scheme.js";
@@ -24,11 +24,11 @@ const E = { class: "bg-b-1 text-c-2 outline-b-3 top-0 z-1 h-full w-full overflow
24
24
  },
25
25
  emits: ["authorized"],
26
26
  setup(m, { emit: F }) {
27
- const z = F, $ = R(), { securitySchemes: B } = $, _ = N(
27
+ const z = F, $ = R(), { securitySchemes: B } = $, U = N(
28
28
  () => m.securitySchemeUids.map((t) => ({
29
29
  scheme: B[t]
30
30
  }))
31
- ), d = P(""), h = (t) => {
31
+ ), d = P(""), S = (t) => {
32
32
  const o = t.description ? `: ${t.description}` : "", e = `${g(t.nameKey)}${o || `: ${t.type}`}`;
33
33
  if (t.type === "apiKey")
34
34
  return `${g(t.nameKey)}${o || `: ${t.in}`}`;
@@ -48,24 +48,24 @@ const E = { class: "bg-b-1 text-c-2 outline-b-3 top-0 z-1 h-full w-full overflow
48
48
  envVariables: m.envVariables,
49
49
  workspace: m.workspace
50
50
  };
51
- return (t, o) => (r(!0), u(s, null, U(_.value, ({ scheme: e }) => (r(), u(s, {
51
+ return (t, o) => (r(!0), u(s, null, C(U.value, ({ scheme: e }) => (r(), u(s, {
52
52
  key: e?.uid
53
53
  }, [
54
- _.value.length > 1 && e ? (r(), x(i(f), { key: 0 }, {
54
+ U.value.length > 1 && e ? (r(), x(i(f), { key: 0 }, {
55
55
  default: a(() => [
56
56
  n(i(T), {
57
- "aria-label": h(e),
57
+ "aria-label": S(e),
58
58
  class: "text-c-2 group/auth flex items-center leading-[22px] whitespace-nowrap outline-none hover:whitespace-normal"
59
59
  }, {
60
60
  default: a(() => [
61
- C("p", E, S(h(e)), 1)
61
+ h("p", E, _(S(e)), 1)
62
62
  ]),
63
63
  _: 2
64
64
  }, 1032, ["aria-label"])
65
65
  ]),
66
66
  _: 2
67
67
  }, 1024)) : b("", !0),
68
- e?.description && _.value.length <= 1 ? (r(), x(i(f), { key: 1 }, {
68
+ e?.description && U.value.length <= 1 ? (r(), x(i(f), { key: 1 }, {
69
69
  default: a(() => [
70
70
  n(i(T), {
71
71
  "aria-label": e.description,
@@ -92,12 +92,11 @@ const E = { class: "bg-b-1 text-c-2 outline-b-3 top-0 z-1 h-full w-full overflow
92
92
  type: "password",
93
93
  "onUpdate:modelValue": (l) => v(e.uid, "token", l)
94
94
  }), {
95
- default: a(() => o[1] || (o[1] = [
96
- V(" Bearer Token ")
97
- ])),
98
- _: 2,
99
- __: [1]
100
- }, 1040, ["containerClass", "modelValue", "onUpdate:modelValue"])
95
+ default: a(() => [...o[1] || (o[1] = [
96
+ V(" Bearer Token ", -1)
97
+ ])]),
98
+ _: 1
99
+ }, 16, ["containerClass", "modelValue", "onUpdate:modelValue"])
101
100
  ]),
102
101
  _: 2
103
102
  }, 1024)) : e?.scheme === "basic" ? (r(), u(s, { key: 1 }, [
@@ -110,12 +109,11 @@ const E = { class: "bg-b-1 text-c-2 outline-b-3 top-0 z-1 h-full w-full overflow
110
109
  required: "",
111
110
  "onUpdate:modelValue": (l) => v(e.uid, "username", l)
112
111
  }), {
113
- default: a(() => o[2] || (o[2] = [
114
- V(" Username ")
115
- ])),
116
- _: 2,
117
- __: [2]
118
- }, 1040, ["modelValue", "onUpdate:modelValue"])
112
+ default: a(() => [...o[2] || (o[2] = [
113
+ V(" Username ", -1)
114
+ ])]),
115
+ _: 1
116
+ }, 16, ["modelValue", "onUpdate:modelValue"])
119
117
  ]),
120
118
  _: 2
121
119
  }, 1024),
@@ -127,12 +125,11 @@ const E = { class: "bg-b-1 text-c-2 outline-b-3 top-0 z-1 h-full w-full overflow
127
125
  type: "password",
128
126
  "onUpdate:modelValue": (l) => v(e.uid, "password", l)
129
127
  }), {
130
- default: a(() => o[3] || (o[3] = [
131
- V(" Password ")
132
- ])),
133
- _: 2,
134
- __: [3]
135
- }, 1040, ["modelValue", "onUpdate:modelValue"])
128
+ default: a(() => [...o[3] || (o[3] = [
129
+ V(" Password ", -1)
130
+ ])]),
131
+ _: 1
132
+ }, 16, ["modelValue", "onUpdate:modelValue"])
136
133
  ]),
137
134
  _: 2
138
135
  }, 1024)
@@ -146,12 +143,11 @@ const E = { class: "bg-b-1 text-c-2 outline-b-3 top-0 z-1 h-full w-full overflow
146
143
  placeholder: "api-key",
147
144
  "onUpdate:modelValue": (l) => v(e.uid, "name", l)
148
145
  }), {
149
- default: a(() => o[4] || (o[4] = [
150
- V(" Name ")
151
- ])),
152
- _: 2,
153
- __: [4]
154
- }, 1040, ["containerClass", "modelValue", "onUpdate:modelValue"])
146
+ default: a(() => [...o[4] || (o[4] = [
147
+ V(" Name ", -1)
148
+ ])]),
149
+ _: 1
150
+ }, 16, ["containerClass", "modelValue", "onUpdate:modelValue"])
155
151
  ]),
156
152
  _: 2
157
153
  }, 1024),
@@ -163,12 +159,11 @@ const E = { class: "bg-b-1 text-c-2 outline-b-3 top-0 z-1 h-full w-full overflow
163
159
  type: "password",
164
160
  "onUpdate:modelValue": (l) => v(e.uid, "value", l)
165
161
  }), {
166
- default: a(() => o[5] || (o[5] = [
167
- V(" Value ")
168
- ])),
169
- _: 2,
170
- __: [5]
171
- }, 1040, ["modelValue", "onUpdate:modelValue"])
162
+ default: a(() => [...o[5] || (o[5] = [
163
+ V(" Value ", -1)
164
+ ])]),
165
+ _: 1
166
+ }, 16, ["modelValue", "onUpdate:modelValue"])
172
167
  ]),
173
168
  _: 2
174
169
  }, 1024)
@@ -176,8 +171,8 @@ const E = { class: "bg-b-1 text-c-2 outline-b-3 top-0 z-1 h-full w-full overflow
176
171
  n(i(f), null, {
177
172
  default: a(() => [
178
173
  Object.keys(e.flows).length > 1 ? (r(), u("div", O, [
179
- C("div", H, [
180
- (r(!0), u(s, null, U(e?.flows, (l, p, k) => (r(), u("button", {
174
+ h("div", H, [
175
+ (r(!0), u(s, null, C(e?.flows, (l, p, k) => (r(), u("button", {
181
176
  key: p,
182
177
  class: A(["floating-bg text-c-3 relative cursor-pointer border-b-[1px] border-transparent py-1 text-base font-medium", {
183
178
  "!text-c-1 !rounded-none border-b-[1px] !border-current": t.layout !== "reference" && (d.value === p || k === 0 && !d.value),
@@ -186,14 +181,14 @@ const E = { class: "bg-b-1 text-c-2 outline-b-3 top-0 z-1 h-full w-full overflow
186
181
  type: "button",
187
182
  onClick: (I) => d.value = p
188
183
  }, [
189
- C("span", G, S(p), 1)
184
+ h("span", G, _(p), 1)
190
185
  ], 10, W))), 128))
191
186
  ])
192
187
  ])) : b("", !0)
193
188
  ]),
194
189
  _: 2
195
190
  }, 1024),
196
- (r(!0), u(s, null, U(e?.flows, (l, p, k) => (r(), u(s, { key: p }, [
191
+ (r(!0), u(s, null, C(e?.flows, (l, p, k) => (r(), u(s, { key: p }, [
197
192
  d.value === p || k === 0 && !d.value ? (r(), x(D, y({
198
193
  key: 0,
199
194
  ref_for: !0
@@ -209,8 +204,8 @@ const E = { class: "bg-b-1 text-c-2 outline-b-3 top-0 z-1 h-full w-full overflow
209
204
  "oauth-actions": a(() => [
210
205
  L(t.$slots, "oauth-actions")
211
206
  ]),
212
- _: 2
213
- }, 1040, ["collection", "flow", "persistAuth", "scheme", "server", "workspace"])) : b("", !0)
207
+ _: 3
208
+ }, 16, ["collection", "flow", "persistAuth", "scheme", "server", "workspace"])) : b("", !0)
214
209
  ], 64))), 128))
215
210
  ], 64)) : e?.type === "openIdConnect" ? (r(), u("div", {
216
211
  key: 5,
@@ -1 +1 @@
1
- {"version":3,"file":"RequestBody.vue.d.ts","sourceRoot":"","sources":["../../../../src/views/Request/RequestSection/RequestBody.vue"],"names":[],"mappings":"AAqoBA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,wCAAwC,CAAA;AACzE,OAAO,EAEL,KAAK,SAAS,EACd,KAAK,cAAc,EACpB,MAAM,iCAAiC,CAAA;AACxC,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,sCAAsC,CAAA;AAarE,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,yBAAyB,CAAA;AAI1D,KAAK,WAAW,GAAG;IACf,OAAO,EAAE,cAAc,CAAA;IACvB,SAAS,EAAE,SAAS,CAAA;IACpB,WAAW,EAAE,WAAW,CAAA;IACxB,YAAY,EAAE,WAAW,EAAE,CAAA;IAC3B,SAAS,EAAE,SAAS,CAAA;IACpB,KAAK,EAAE,MAAM,CAAA;CACd,CAAC;;AA48BJ,wBAMG"}
1
+ {"version":3,"file":"RequestBody.vue.d.ts","sourceRoot":"","sources":["../../../../src/views/Request/RequestSection/RequestBody.vue"],"names":[],"mappings":"AAwoBA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,wCAAwC,CAAA;AACzE,OAAO,EAEL,KAAK,SAAS,EACd,KAAK,cAAc,EACpB,MAAM,iCAAiC,CAAA;AACxC,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,sCAAsC,CAAA;AAarE,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,yBAAyB,CAAA;AAI1D,KAAK,WAAW,GAAG;IACf,OAAO,EAAE,cAAc,CAAA;IACvB,SAAS,EAAE,SAAS,CAAA;IACpB,WAAW,EAAE,WAAW,CAAA;IACxB,YAAY,EAAE,WAAW,EAAE,CAAA;IAC3B,SAAS,EAAE,SAAS,CAAA;IACpB,KAAK,EAAE,MAAM,CAAA;CACd,CAAC;;AA+8BJ,wBAMG"}
@@ -1,7 +1,7 @@
1
1
  import o from "./RequestBody.vue2.js";
2
2
  /* empty css */
3
3
  import t from "../../../_virtual/_plugin-vue_export-helper.js";
4
- const a = /* @__PURE__ */ t(o, [["__scopeId", "data-v-fac9ef96"]]);
4
+ const f = /* @__PURE__ */ t(o, [["__scopeId", "data-v-9adcfa05"]]);
5
5
  export {
6
- a as default
6
+ f as default
7
7
  };
@@ -1,5 +1,5 @@
1
- import { defineComponent as K, computed as v, ref as Q, watch as L, createBlock as y, openBlock as f, withCtx as d, createVNode as s, createCommentVNode as Z, unref as c, createElementVNode as g, toDisplayString as w, createElementBlock as F, Fragment as I, createTextVNode as M, nextTick as _ } from "vue";
2
- import { ScalarListbox as W, ScalarButton as k, ScalarIcon as T } from "@scalar/components";
1
+ import { defineComponent as K, computed as v, ref as Q, watch as L, createBlock as y, openBlock as f, withCtx as d, createVNode as s, createCommentVNode as Z, unref as c, createElementVNode as g, toDisplayString as k, createElementBlock as V, Fragment as I, createTextVNode as M, nextTick as _ } from "vue";
2
+ import { ScalarListbox as W, ScalarButton as w, ScalarIcon as F } from "@scalar/components";
3
3
  import { requestExampleParametersSchema as z } from "@scalar/oas-utils/entities/spec";
4
4
  import { canMethodHaveBody as ee } from "@scalar/oas-utils/helpers";
5
5
  import ae from "../../../components/CodeInput/CodeInput.vue.js";
@@ -16,7 +16,7 @@ const ie = {
16
16
  }, re = {
17
17
  key: 1,
18
18
  class: "flex items-center justify-center overflow-hidden border-t p-1.5"
19
- }, de = { class: "text-c-2 w-full max-w-full overflow-hidden rounded border px-1.5 py-1 text-xs whitespace-nowrap" }, ke = /* @__PURE__ */ K({
19
+ }, de = { class: "text-c-2 w-full max-w-full overflow-hidden rounded border px-1.5 py-1 text-xs whitespace-nowrap" }, we = /* @__PURE__ */ K({
20
20
  __name: "RequestBody",
21
21
  props: {
22
22
  example: {},
@@ -48,18 +48,18 @@ const ie = {
48
48
  label: a
49
49
  })), B = v(() => {
50
50
  const { activeBody: e, formData: a, raw: t } = l.example.body;
51
- return e === "formData" ? a?.encoding === "urlencoded" ? "formUrlEncoded" : "multipartForm" : e === "binary" ? "binaryFile" : e === "raw" && t?.encoding ? t.encoding === "html" ? "other" : t.encoding : Object.keys(l.operation.requestBody?.content || {})[0] || "none";
51
+ return e === "formData" ? a?.encoding === "urlencoded" ? "formUrlEncoded" : "multipartForm" : e === "binary" ? "binaryFile" : e === "raw" && t?.encoding ? t.encoding === "html" || t.encoding === "text" ? "other" : t.encoding : Object.keys(l.operation.requestBody?.content || {})[0] || "none";
52
52
  }), u = v({
53
53
  get: () => b.find(
54
54
  (e) => e.id === B.value
55
55
  ) ?? b[b.length - 1] ?? b[0],
56
56
  set: (e) => {
57
- e?.id && O(e.id);
57
+ e?.id && N(e.id);
58
58
  }
59
59
  }), x = Q(null), H = v(() => {
60
60
  const e = u.value?.id;
61
61
  return $[e] ?? "plaintext";
62
- }), U = (e) => {
62
+ }), C = (e) => {
63
63
  const a = m.value;
64
64
  if (a.length > e) {
65
65
  const t = [...a];
@@ -69,7 +69,7 @@ const ie = {
69
69
  t
70
70
  );
71
71
  }
72
- }, j = (e, a, t) => {
72
+ }, U = (e, a, t) => {
73
73
  const o = m.value;
74
74
  if (o.length > e) {
75
75
  const n = [...o];
@@ -92,11 +92,11 @@ const ie = {
92
92
  x.value.querySelectorAll("input")[a === "key" ? 0 : 1]?.focus();
93
93
  });
94
94
  }
95
- e === o.length - 1 && C();
95
+ e === o.length - 1 && j();
96
96
  }, m = v(() => l.example.body.formData?.value ?? []), D = () => {
97
97
  const e = m.value[m.value.length - 1];
98
- (!e || e.key !== "" || e.value !== "") && C();
99
- }, C = () => {
98
+ (!e || e.key !== "" || e.value !== "") && j();
99
+ }, j = () => {
100
100
  const e = z.parse({
101
101
  enabled: !1
102
102
  }), a = [...m.value, e];
@@ -114,40 +114,60 @@ const ie = {
114
114
  o
115
115
  );
116
116
  }
117
- }, P = (e) => i.edit(l.example.uid, "body.raw.value", e), N = (e) => e === "multipartForm" ? {
118
- activeBody: "formData",
119
- encoding: "form-data",
120
- header: "multipart/form-data"
121
- } : e === "formUrlEncoded" ? {
122
- activeBody: "formData",
123
- encoding: "urlencoded",
124
- header: "application/x-www-form-urlencoded"
125
- } : e === "binaryFile" ? {
126
- activeBody: "binary",
127
- encoding: void 0,
128
- header: "application/octet-stream"
129
- } : e === "json" ? {
130
- activeBody: "raw",
131
- encoding: "json",
132
- header: Object.keys(l.operation.requestBody?.content ?? {}).find((o) => o.includes("json") || o.endsWith("+json")) || "application/json"
133
- } : e === "xml" ? {
134
- activeBody: "raw",
135
- encoding: "xml",
136
- header: "application/xml"
137
- } : e === "yaml" ? {
138
- activeBody: "raw",
139
- encoding: "yaml",
140
- header: "application/yaml"
141
- } : e === "edn" ? {
142
- activeBody: "raw",
143
- encoding: "edn",
144
- header: "application/edn"
145
- } : e === "other" ? {
146
- activeBody: "raw",
147
- encoding: "html",
148
- header: "application/html"
149
- } : { activeBody: "raw", encoding: void 0, header: void 0 }, O = (e) => {
150
- const { activeBody: a, encoding: t, header: o } = N(e);
117
+ }, P = (e) => i.edit(l.example.uid, "body.raw.value", e), O = (e) => {
118
+ if (e === "multipartForm")
119
+ return {
120
+ activeBody: "formData",
121
+ encoding: "form-data",
122
+ header: "multipart/form-data"
123
+ };
124
+ if (e === "formUrlEncoded")
125
+ return {
126
+ activeBody: "formData",
127
+ encoding: "urlencoded",
128
+ header: "application/x-www-form-urlencoded"
129
+ };
130
+ if (e === "binaryFile")
131
+ return {
132
+ activeBody: "binary",
133
+ encoding: void 0,
134
+ header: "application/octet-stream"
135
+ };
136
+ if (e === "json")
137
+ return {
138
+ activeBody: "raw",
139
+ encoding: "json",
140
+ header: Object.keys(l.operation.requestBody?.content ?? {}).find((o) => o.includes("json") || o.endsWith("+json")) || "application/json"
141
+ };
142
+ if (e === "xml")
143
+ return {
144
+ activeBody: "raw",
145
+ encoding: "xml",
146
+ header: "application/xml"
147
+ };
148
+ if (e === "yaml")
149
+ return {
150
+ activeBody: "raw",
151
+ encoding: "yaml",
152
+ header: "application/yaml"
153
+ };
154
+ if (e === "edn")
155
+ return {
156
+ activeBody: "raw",
157
+ encoding: "edn",
158
+ header: "application/edn"
159
+ };
160
+ if (e === "other") {
161
+ const t = Object.keys(l.operation.requestBody?.content ?? {}).find((o) => o.startsWith("text/"));
162
+ return {
163
+ activeBody: "raw",
164
+ encoding: t ? "text" : "html",
165
+ header: t ?? "application/html"
166
+ };
167
+ }
168
+ return { activeBody: "raw", encoding: void 0, header: void 0 };
169
+ }, N = (e) => {
170
+ const { activeBody: a, encoding: t, header: o } = O(e);
151
171
  if (i.edit(l.example.uid, "body.activeBody", a), t && a === "raw")
152
172
  i.edit(l.example.uid, "body.raw", {
153
173
  encoding: t,
@@ -180,9 +200,9 @@ const ie = {
180
200
  });
181
201
  }
182
202
  i.edit(l.example.uid, "parameters.headers", n);
183
- }, S = async (e) => {
203
+ }, S = (e) => {
184
204
  const { open: a } = A({
185
- onChange: async (t) => {
205
+ onChange: (t) => {
186
206
  const o = t?.[0];
187
207
  if (o) {
188
208
  const r = [...m.value];
@@ -210,7 +230,7 @@ const ie = {
210
230
  }
211
231
  function Y() {
212
232
  const { open: e } = A({
213
- onChange: async (a) => {
233
+ onChange: (a) => {
214
234
  const t = a?.[0];
215
235
  t && i.edit(l.example.uid, "body.binary", t);
216
236
  },
@@ -228,20 +248,20 @@ const ie = {
228
248
  ), L(
229
249
  () => l.example.uid,
230
250
  () => {
231
- l.operation.method && ee(l.operation.method) && O(B.value), ["multipartForm", "formUrlEncoded"].includes(
251
+ l.operation.method && ee(l.operation.method) && N(B.value), ["multipartForm", "formUrlEncoded"].includes(
232
252
  B.value
233
253
  ) && D();
234
254
  },
235
255
  { immediate: !0 }
236
256
  );
237
257
  const h = v(() => {
238
- const e = u.value?.id, { header: a } = N(e), t = l.operation.requestBody?.content || {}, o = a ? t[a]?.examples || {} : {};
258
+ const e = u.value?.id, { header: a } = O(e), t = l.operation.requestBody?.content || {}, o = a ? t[a]?.examples || {} : {};
239
259
  return Object.entries(o).map(([n, r]) => ({
240
260
  id: n,
241
261
  label: n,
242
262
  value: r
243
263
  }));
244
- }), V = v({
264
+ }), T = v({
245
265
  get: () => {
246
266
  const e = l.example.body.raw?.value ?? "{}", a = JSON.parse(e);
247
267
  return h.value.find((o) => {
@@ -261,7 +281,7 @@ const ie = {
261
281
  });
262
282
  return (e, a) => (f(), y(oe, null, {
263
283
  title: d(() => [
264
- M(w(e.title), 1)
284
+ M(k(e.title), 1)
265
285
  ]),
266
286
  default: d(() => [
267
287
  s(te, {
@@ -280,13 +300,13 @@ const ie = {
280
300
  teleport: ""
281
301
  }, {
282
302
  default: d(() => [
283
- s(c(k), {
303
+ s(c(w), {
284
304
  class: "text-c-2 hover:text-c-1 flex h-full w-fit gap-1.5 px-3 font-normal",
285
305
  variant: "ghost"
286
306
  }, {
287
307
  default: d(() => [
288
- g("span", null, w(u.value?.label), 1),
289
- s(c(T), {
308
+ g("span", null, k(u.value?.label), 1),
309
+ s(c(F), {
290
310
  icon: "ChevronDown",
291
311
  size: "md"
292
312
  })
@@ -298,21 +318,21 @@ const ie = {
298
318
  }, 8, ["modelValue", "options"]),
299
319
  h.value.length > 0 ? (f(), y(c(W), {
300
320
  key: 0,
301
- modelValue: V.value,
302
- "onUpdate:modelValue": a[1] || (a[1] = (t) => V.value = t),
321
+ modelValue: T.value,
322
+ "onUpdate:modelValue": a[1] || (a[1] = (t) => T.value = t),
303
323
  options: h.value,
304
324
  side: "left",
305
325
  teleport: ""
306
326
  }, {
307
327
  default: d(() => [
308
- s(c(k), {
328
+ s(c(w), {
309
329
  class: "text-c-2 hover:text-c-1 flex h-full w-fit gap-1.5 px-2 font-normal",
310
330
  fullWidth: "",
311
331
  variant: "ghost"
312
332
  }, {
313
333
  default: d(() => [
314
- g("span", null, w(V.value?.label), 1),
315
- s(c(T), {
334
+ g("span", null, k(T.value?.label), 1),
335
+ s(c(F), {
316
336
  icon: "ChevronDown",
317
337
  size: "md"
318
338
  })
@@ -330,24 +350,23 @@ const ie = {
330
350
  }),
331
351
  s(R, null, {
332
352
  default: d(() => [
333
- u.value?.id === "none" ? (f(), F("div", ie, a[2] || (a[2] = [
353
+ u.value?.id === "none" ? (f(), V("div", ie, [...a[2] || (a[2] = [
334
354
  g("span", null, "No Body", -1)
335
- ]))) : u.value?.id === "binaryFile" ? (f(), F("div", re, [
336
- e.example.body.binary ? (f(), F(I, { key: 0 }, [
337
- g("span", de, w(e.example.body.binary.name), 1),
338
- s(c(k), {
355
+ ])])) : u.value?.id === "binaryFile" ? (f(), V("div", re, [
356
+ e.example.body.binary ? (f(), V(I, { key: 0 }, [
357
+ g("span", de, k(e.example.body.binary.name), 1),
358
+ s(c(w), {
339
359
  class: "bg-b-2 hover:bg-b-3 text-c-2 ml-1 border-0 shadow-none",
340
360
  size: "sm",
341
361
  variant: "outlined",
342
362
  onClick: X
343
363
  }, {
344
- default: d(() => a[3] || (a[3] = [
345
- M(" Delete ")
346
- ])),
347
- _: 1,
348
- __: [3]
364
+ default: d(() => [...a[3] || (a[3] = [
365
+ M(" Delete ", -1)
366
+ ])]),
367
+ _: 1
349
368
  })
350
- ], 64)) : (f(), y(c(k), {
369
+ ], 64)) : (f(), y(c(w), {
351
370
  key: 1,
352
371
  class: "bg-b-2 hover:bg-b-3 text-c-2 border-0 shadow-none",
353
372
  size: "sm",
@@ -356,15 +375,14 @@ const ie = {
356
375
  }, {
357
376
  default: d(() => [
358
377
  a[4] || (a[4] = g("span", null, "Upload File", -1)),
359
- s(c(T), {
378
+ s(c(F), {
360
379
  class: "ml-1",
361
380
  icon: "Upload",
362
381
  size: "xs",
363
382
  thickness: "2.5"
364
383
  })
365
384
  ]),
366
- _: 1,
367
- __: [4]
385
+ _: 1
368
386
  }))
369
387
  ])) : u.value?.id == "multipartForm" ? (f(), y(J, {
370
388
  key: 2,
@@ -377,10 +395,10 @@ const ie = {
377
395
  items: m.value,
378
396
  showUploadButton: "",
379
397
  workspace: e.workspace,
380
- onDeleteRow: U,
398
+ onDeleteRow: C,
381
399
  onRemoveFile: q,
382
400
  onToggleRow: E,
383
- onUpdateRow: j,
401
+ onUpdateRow: U,
384
402
  onUploadFile: S
385
403
  }, null, 8, ["envVariables", "environment", "items", "workspace"])) : u.value?.id == "formUrlEncoded" ? (f(), y(J, {
386
404
  key: 3,
@@ -393,10 +411,10 @@ const ie = {
393
411
  items: m.value,
394
412
  showUploadButton: "",
395
413
  workspace: e.workspace,
396
- onDeleteRow: U,
414
+ onDeleteRow: C,
397
415
  onRemoveFile: q,
398
416
  onToggleRow: E,
399
- onUpdateRow: j,
417
+ onUpdateRow: U,
400
418
  onUploadFile: S
401
419
  }, null, 8, ["envVariables", "environment", "items", "workspace"])) : (f(), y(ae, {
402
420
  key: 4,
@@ -424,5 +442,5 @@ const ie = {
424
442
  }
425
443
  });
426
444
  export {
427
- ke as default
445
+ we as default
428
446
  };
@@ -99,9 +99,9 @@ const q = { class: "w-full" }, M = { class: "flex flex-1" }, P = { class: "bg-b-
99
99
  class: "group/preview w-full border-b-0",
100
100
  defaultOpen: !1
101
101
  }, {
102
- title: c(() => t[0] || (t[0] = [
103
- H("Code Snippet")
104
- ])),
102
+ title: c(() => [...t[0] || (t[0] = [
103
+ H("Code Snippet", -1)
104
+ ])]),
105
105
  actions: c(() => [
106
106
  x("div", M, [
107
107
  i(u(j), {
@@ -110,11 +110,10 @@ const G = { class: "text-c-2 request-meta-buttons flex whitespace-nowrap opacity
110
110
  onClick: M($, ["stop"])
111
111
  }, {
112
112
  default: i(() => [
113
- a[0] || (a[0] = P(" Clear ")),
113
+ a[0] || (a[0] = P(" Clear ", -1)),
114
114
  f("span", U, "All " + R(e.title), 1)
115
115
  ]),
116
- _: 1,
117
- __: [0]
116
+ _: 1
118
117
  })
119
118
  ]),
120
119
  _: 1
@@ -1,7 +1,7 @@
1
1
  import o from "./RequestSection.vue2.js";
2
2
  /* empty css */
3
3
  import t from "../../../_virtual/_plugin-vue_export-helper.js";
4
- const f = /* @__PURE__ */ t(o, [["__scopeId", "data-v-fbbc9b8b"]]);
4
+ const p = /* @__PURE__ */ t(o, [["__scopeId", "data-v-e85e2882"]]);
5
5
  export {
6
- f as default
6
+ p as default
7
7
  };