@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
@@ -177,18 +177,16 @@ const oe = /* @__PURE__ */ W({
177
177
  c(z, { class: "sr-only !block" }, {
178
178
  default: i(() => [
179
179
  c(U, null, {
180
- default: i(() => a[0] || (a[0] = [
181
- E("Key")
182
- ])),
183
- _: 1,
184
- __: [0]
180
+ default: i(() => [...a[0] || (a[0] = [
181
+ E("Key", -1)
182
+ ])]),
183
+ _: 1
185
184
  }),
186
185
  c(U, null, {
187
- default: i(() => a[1] || (a[1] = [
188
- E("Value")
189
- ])),
190
- _: 1,
191
- __: [1]
186
+ default: i(() => [...a[1] || (a[1] = [
187
+ E("Value", -1)
188
+ ])]),
189
+ _: 1
192
190
  })
193
191
  ]),
194
192
  _: 1
@@ -251,8 +249,8 @@ const oe = /* @__PURE__ */ W({
251
249
  default: i(() => [
252
250
  c(V(H), { class: "size-3.5" })
253
251
  ]),
254
- _: 2
255
- }, 1032, ["onClick"])) : J("", !0)
252
+ _: 1
253
+ }, 8, ["onClick"])) : J("", !0)
256
254
  ]),
257
255
  _: 2
258
256
  }, 1032, ["environment", "envVariables", "modelValue", "workspace", "onUpdate:modelValue"])
@@ -44,8 +44,7 @@ const B = { class: "flex h-full w-full flex-col gap-2 pt-8" }, C = { class: "fle
44
44
  }),
45
45
  e[4] || (e[4] = n("span", null, "Edit", -1))
46
46
  ]),
47
- _: 1,
48
- __: [4]
47
+ _: 1
49
48
  })) : a("", !0)
50
49
  ]),
51
50
  n("div", I, [
@@ -75,8 +74,7 @@ const B = { class: "flex h-full w-full flex-col gap-2 pt-8" }, C = { class: "fle
75
74
  }),
76
75
  e[7] || (e[7] = n("span", null, "Write a description", -1))
77
76
  ]),
78
- _: 1,
79
- __: [7]
77
+ _: 1
80
78
  })
81
79
  ]))
82
80
  ], 64)) : a("", !0),
@@ -41,12 +41,12 @@ const U = { class: "flex h-8 items-start gap-2 text-sm" }, $ = { class: "flex h-
41
41
  onCancel: e[3] || (e[3] = (o) => d("cancel")),
42
42
  onSubmit: v
43
43
  }, {
44
- submit: m(() => e[7] || (e[7] = [
45
- l("Add Cookie")
46
- ])),
44
+ submit: m(() => [...e[7] || (e[7] = [
45
+ l("Add Cookie", -1)
46
+ ])]),
47
47
  default: m(() => [
48
48
  i("div", U, [
49
- e[4] || (e[4] = l(" Name: ")),
49
+ e[4] || (e[4] = l(" Name: ", -1)),
50
50
  t(n, {
51
51
  modelValue: a.value.name,
52
52
  "onUpdate:modelValue": e[0] || (e[0] = (o) => a.value.name = o),
@@ -56,7 +56,7 @@ const U = { class: "flex h-8 items-start gap-2 text-sm" }, $ = { class: "flex h-
56
56
  }, null, 8, ["modelValue"])
57
57
  ]),
58
58
  i("div", $, [
59
- e[5] || (e[5] = l(" Value: ")),
59
+ e[5] || (e[5] = l(" Value: ", -1)),
60
60
  t(n, {
61
61
  modelValue: a.value.value,
62
62
  "onUpdate:modelValue": e[1] || (e[1] = (o) => a.value.value = o),
@@ -66,7 +66,7 @@ const U = { class: "flex h-8 items-start gap-2 text-sm" }, $ = { class: "flex h-
66
66
  }, null, 8, ["modelValue"])
67
67
  ]),
68
68
  i("div", w, [
69
- e[6] || (e[6] = l(" Domain: ")),
69
+ e[6] || (e[6] = l(" Domain: ", -1)),
70
70
  t(n, {
71
71
  modelValue: a.value.domain,
72
72
  "onUpdate:modelValue": e[2] || (e[2] = (o) => a.value.domain = o),
@@ -122,9 +122,9 @@ const Z = { class: "flex-1" }, ee = { class: "relative mb-[.5px] last:mb-0" }, _
122
122
  click: f,
123
123
  hotkey: "N"
124
124
  }, {
125
- title: i(() => o[1] || (o[1] = [
126
- b(" Add Cookie ")
127
- ])),
125
+ title: i(() => [...o[1] || (o[1] = [
126
+ b(" Add Cookie ", -1)
127
+ ])]),
128
128
  _: 1
129
129
  })
130
130
  ]),
@@ -136,9 +136,9 @@ const Z = { class: "flex-1" }, ee = { class: "relative mb-[.5px] last:mb-0" }, _
136
136
  key: 0,
137
137
  class: "*:border-b-0"
138
138
  }, {
139
- title: i(() => o[2] || (o[2] = [
140
- b("Edit Cookie")
141
- ])),
139
+ title: i(() => [...o[2] || (o[2] = [
140
+ b("Edit Cookie", -1)
141
+ ])]),
142
142
  default: i(() => [
143
143
  a(G)
144
144
  ]),
@@ -311,9 +311,8 @@ const Ae = { class: "flex-1" }, Be = ["onClick"], Le = { class: "flex h-5 max-w-
311
311
  }),
312
312
  t[2] || (t[2] = p("span", null, "Add Environment", -1))
313
313
  ]),
314
- _: 2,
315
- __: [2]
316
- }, 1032, ["onClick"])) : T("", !0)
314
+ _: 1
315
+ }, 8, ["onClick"])) : T("", !0)
317
316
  ], 2), [
318
317
  [he, le(n.uid)]
319
318
  ])
@@ -328,9 +327,9 @@ const Ae = { class: "flex-1" }, Be = ["onClick"], Le = { class: "flex h-5 max-w-
328
327
  click: S,
329
328
  hotkey: "N"
330
329
  }, {
331
- title: u(() => t[3] || (t[3] = [
332
- B(" Add Environment ")
333
- ])),
330
+ title: u(() => [...t[3] || (t[3] = [
331
+ B(" Add Environment ", -1)
332
+ ])]),
334
333
  _: 1
335
334
  })
336
335
  ]),
@@ -1,11 +1,11 @@
1
- import { defineComponent as k, ref as m, computed as y, watch as h, createBlock as u, openBlock as v, unref as i, withCtx as o, createVNode as s, createElementVNode as p, createTextVNode as w, normalizeClass as I, toDisplayString as E } from "vue";
1
+ import { defineComponent as y, ref as m, computed as _, watch as h, createBlock as u, openBlock as v, unref as i, withCtx as o, createVNode as s, createElementVNode as p, createTextVNode as w, normalizeClass as I, toDisplayString as E } from "vue";
2
2
  import { ScalarModal as N, ScalarListbox as T, ScalarButton as C, ScalarIcon as $ } from "@scalar/components";
3
3
  import { useToasts as z } from "@scalar/use-toasts";
4
4
  import B from "../../components/CommandPalette/CommandActionForm.vue.js";
5
5
  import D from "../../components/CommandPalette/CommandActionInput.vue.js";
6
6
  import P from "./EnvironmentColors.vue.js";
7
7
  import { useWorkspace as U } from "../../store/store.js";
8
- const W = { class: "flex items-start gap-2" }, J = /* @__PURE__ */ k({
8
+ const W = { class: "flex items-start gap-2" }, J = /* @__PURE__ */ y({
9
9
  __name: "EnvironmentModal",
10
10
  props: {
11
11
  state: {},
@@ -14,7 +14,7 @@ const W = { class: "flex items-start gap-2" }, J = /* @__PURE__ */ k({
14
14
  },
15
15
  emits: ["cancel", "submit"],
16
16
  setup(x, { emit: g }) {
17
- const a = x, f = g, { events: F } = U(), n = m(""), r = m("#FFFFFF"), c = y(() => [
17
+ const a = x, f = g, { events: F } = U(), n = m(""), r = m("#FFFFFF"), c = _(() => [
18
18
  ...a.activeWorkspaceCollections.filter((t) => t.info?.title !== "Drafts").map((t) => ({
19
19
  id: t.uid,
20
20
  label: t.info?.title ?? "Untitled Collection"
@@ -32,7 +32,7 @@ const W = { class: "flex items-start gap-2" }, J = /* @__PURE__ */ k({
32
32
  ) : e.value = void 0);
33
33
  }
34
34
  );
35
- const _ = () => {
35
+ const V = () => {
36
36
  if (!n.value.trim()) {
37
37
  b("Please enter a name before adding an environment.", "error");
38
38
  return;
@@ -47,7 +47,7 @@ const W = { class: "flex items-start gap-2" }, J = /* @__PURE__ */ k({
47
47
  type: e.value?.id === "global" ? "global" : "collection",
48
48
  collectionId: e.value?.id !== "global" ? e.value?.id : void 0
49
49
  });
50
- }, V = () => {
50
+ }, k = () => {
51
51
  a.state.hide(), F.commandPalette.emit({ commandName: "Create Collection" });
52
52
  };
53
53
  return (t, l) => (v(), u(i(N), {
@@ -59,7 +59,7 @@ const W = { class: "flex items-start gap-2" }, J = /* @__PURE__ */ k({
59
59
  s(B, {
60
60
  disabled: !e.value || !n.value.trim(),
61
61
  onCancel: l[2] || (l[2] = (d) => f("cancel")),
62
- onSubmit: _
62
+ onSubmit: V
63
63
  }, {
64
64
  options: o(() => [
65
65
  s(i(T), {
@@ -89,21 +89,20 @@ const W = { class: "flex items-start gap-2" }, J = /* @__PURE__ */ k({
89
89
  key: 1,
90
90
  class: "hover:bg-b-2 max-h-8 justify-between gap-1 p-2 text-xs",
91
91
  variant: "outlined",
92
- onClick: V
92
+ onClick: k
93
93
  }, {
94
- default: o(() => l[3] || (l[3] = [
94
+ default: o(() => [...l[3] || (l[3] = [
95
95
  p("span", { class: "text-c-1" }, "Create Collection", -1)
96
- ])),
97
- _: 1,
98
- __: [3]
96
+ ])]),
97
+ _: 1
99
98
  }))
100
99
  ]),
101
100
  _: 1
102
101
  }, 8, ["modelValue", "options"])
103
102
  ]),
104
- submit: o(() => l[4] || (l[4] = [
105
- w(" Add Environment ")
106
- ])),
103
+ submit: o(() => [...l[4] || (l[4] = [
104
+ w(" Add Environment ", -1)
105
+ ])]),
107
106
  default: o(() => [
108
107
  p("div", W, [
109
108
  s(P, {
@@ -5,9 +5,9 @@ import { onClickOutside as L } from "@vueuse/core";
5
5
  import M from "fuse.js";
6
6
  import { useRouter as Q } from "vue-router";
7
7
  import { getEnvColor as W } from "../../libs/env-helpers.js";
8
- import { PathId as _ } from "../../routes.js";
8
+ import { PathId as C } from "../../routes.js";
9
9
  import { useActiveEntities as $ } from "../../store/active-entities.js";
10
- import { parseEnvVariables as C } from "../../libs/environment-parser.js";
10
+ import { parseEnvVariables as _ } from "../../libs/environment-parser.js";
11
11
  const H = {
12
12
  key: 0,
13
13
  class: "gap-1/2 flex flex-col"
@@ -28,20 +28,20 @@ const H = {
28
28
  !m.value || m.value.info?.title === "Drafts" ? o({
29
29
  name: "environment.default",
30
30
  params: {
31
- [_.Workspace]: e
31
+ [C.Workspace]: e
32
32
  }
33
33
  }) : o({
34
34
  name: "collection.environment",
35
35
  params: {
36
- [_.Collection]: m.value.uid
36
+ [C.Collection]: m.value.uid
37
37
  }
38
38
  }), d.value = !1;
39
- }, P = new M(C(s.envVariables), {
39
+ }, P = new M(_(s.envVariables), {
40
40
  keys: ["key", "value"]
41
41
  }), i = w(() => {
42
42
  const t = s.query;
43
43
  if (!t)
44
- return C(s.envVariables).slice(-4).filter(({ key: e, value: a }) => e !== "" || a !== "");
44
+ return _(s.envVariables).slice(-4).filter(({ key: e, value: a }) => e !== "" || a !== "");
45
45
  const o = P.search(t, { limit: 10 });
46
46
  return o.length > 0 ? o.map((e) => e.item).filter(({ key: e, value: a }) => e !== "" || a !== "") : [];
47
47
  }), b = (t) => {
@@ -113,10 +113,9 @@ const H = {
113
113
  }, {
114
114
  default: k(() => [
115
115
  q(l(O), { class: "size-3" }),
116
- o[0] || (o[0] = g(" Add Variable "))
116
+ o[0] || (o[0] = g(" Add Variable ", -1))
117
117
  ]),
118
- _: 1,
119
- __: [0]
118
+ _: 1
120
119
  })) : y("", !0),
121
120
  o[1] || (o[1] = c("div", { class: "bg-b-1 brightness-lifted absolute inset-0 -z-1 rounded shadow-lg" }, null, -1))
122
121
  ], 4)
@@ -1 +1 @@
1
- {"version":3,"file":"RequestRoot.vue.d.ts","sourceRoot":"","sources":["../../../src/views/Request/RequestRoot.vue"],"names":[],"mappings":";;cAiR8C,MAAM;aAAO,MAAM;;;;cAAnB,MAAM;aAAO,MAAM;;;AAsTjE,wBAMG"}
1
+ {"version":3,"file":"RequestRoot.vue.d.ts","sourceRoot":"","sources":["../../../src/views/Request/RequestRoot.vue"],"names":[],"mappings":";;cAsR8C,MAAM;aAAO,MAAM;;;;cAAnB,MAAM;aAAO,MAAM;;;AAqTjE,wBAMG"}
@@ -1,7 +1,7 @@
1
1
  import o from "./RequestRoot.vue2.js";
2
2
  /* empty css */
3
3
  import t from "../../_virtual/_plugin-vue_export-helper.js";
4
- const e = /* @__PURE__ */ t(o, [["__scopeId", "data-v-c648cff4"]]);
4
+ const a = /* @__PURE__ */ t(o, [["__scopeId", "data-v-f141e3af"]]);
5
5
  export {
6
- e as default
6
+ a as default
7
7
  };
@@ -1,107 +1,106 @@
1
- import { defineComponent as L, ref as c, computed as $, onMounted as H, onBeforeUnmount as Q, watch as F, createElementBlock as G, openBlock as m, normalizeClass as C, unref as r, createBlock as N, createCommentVNode as U, createElementVNode as _, isRef as K, createVNode as X } from "vue";
2
- import { isDefined as Y } from "@scalar/oas-utils/helpers";
3
- import { safeJSON as Z } from "@scalar/object-utils/parse";
4
- import { useToasts as ee } from "@scalar/use-toasts";
5
- import { RouterView as te } from "vue-router";
6
- import oe from "../../components/Sidebar/SidebarToggle.vue.js";
7
- import { useAnalytics as re } from "../../hooks/useAnalytics.js";
8
- import { useClientConfig as se } from "../../hooks/useClientConfig.js";
9
- import { useSidebar as ae } from "../../hooks/useSidebar.js";
10
- import { validateParameters as ne } from "../../libs/validate-parameters.js";
11
- import { useActiveEntities as le } from "../../store/active-entities.js";
12
- import { useOpenApiWatcher as ue } from "./hooks/useOpenApiWatcher.js";
13
- import ce from "./RequestSidebar.vue.js";
1
+ import { defineComponent as $, ref as c, computed as C, onMounted as H, onBeforeUnmount as Q, createElementBlock as F, openBlock as m, normalizeClass as N, unref as o, createBlock as U, createCommentVNode as _, createElementVNode as O, isRef as G, createVNode as K } from "vue";
2
+ import { isDefined as X } from "@scalar/oas-utils/helpers";
3
+ import { safeJSON as Y } from "@scalar/object-utils/parse";
4
+ import { useToasts as Z } from "@scalar/use-toasts";
5
+ import { RouterView as ee } from "vue-router";
6
+ import te from "../../components/Sidebar/SidebarToggle.vue.js";
7
+ import { useAnalytics as oe } from "../../hooks/useAnalytics.js";
8
+ import { useClientConfig as re } from "../../hooks/useClientConfig.js";
9
+ import { useSidebar as se } from "../../hooks/useSidebar.js";
10
+ import { validateParameters as ae } from "../../libs/validate-parameters.js";
11
+ import { useActiveEntities as ne } from "../../store/active-entities.js";
12
+ import { useOpenApiWatcher as le } from "./hooks/useOpenApiWatcher.js";
13
+ import ue from "./RequestSidebar.vue.js";
14
14
  import { usePluginManager as ie } from "../../plugins/hooks/usePluginManager.js";
15
- import { createRequestOperation as me } from "../../libs/send-request/create-request-operation.js";
16
- import { ERRORS as fe } from "../../libs/errors.js";
17
- import { useWorkspace as de } from "../../store/store.js";
18
- import { useLayout as pe } from "../../hooks/useLayout.js";
19
- const ve = { class: "flex h-full" }, Re = { class: "flex h-full flex-1 flex-col" }, Pe = /* @__PURE__ */ L({
15
+ import { createRequestOperation as ce } from "../../libs/send-request/create-request-operation.js";
16
+ import { ERRORS as me } from "../../libs/errors.js";
17
+ import { useWorkspace as fe } from "../../store/store.js";
18
+ import { useLayout as de } from "../../hooks/useLayout.js";
19
+ const pe = { class: "flex h-full" }, ve = { class: "flex h-full flex-1 flex-col" }, Te = /* @__PURE__ */ $({
20
20
  __name: "RequestRoot",
21
21
  emits: ["newTab"],
22
- setup(Se) {
23
- const w = de(), { toast: f } = ee(), { layout: d } = pe(), O = se(), { isSidebarOpen: a } = ae(), V = re(), {
22
+ setup(Re) {
23
+ const V = fe(), { toast: u } = Z(), { layout: f } = de(), w = re(), { isSidebarOpen: s } = se(), B = oe(), {
24
24
  activeCollection: n,
25
- activeExample: l,
26
- activeEnvironment: p,
27
- activeRequest: u,
28
- activeWorkspace: v,
25
+ activeExample: i,
26
+ activeEnvironment: d,
27
+ activeRequest: l,
28
+ activeWorkspace: p,
29
29
  activeServer: A
30
- } = le(), { cookies: B, requestHistory: T, showSidebar: R, securitySchemes: P, events: s } = w, D = ie(), M = c(), S = c(), i = c(/* @__PURE__ */ new Set()), q = c(null), y = $(
31
- () => (n.value?.useCollectionSecurity ? n.value?.selectedSecuritySchemeUids : u.value?.selectedSecuritySchemeUids) ?? []
30
+ } = ne(), { cookies: T, requestHistory: P, showSidebar: v, securitySchemes: D, events: r } = V, M = ie(), z = c(), R = c(), S = C(
31
+ () => ae(i.value ?? null)
32
+ ), q = c(null), y = C(
33
+ () => (n.value?.useCollectionSecurity ? n.value?.selectedSecuritySchemeUids : l.value?.selectedSecuritySchemeUids) ?? []
32
34
  ), x = async () => {
33
- if (!u.value || !l.value || !n.value)
35
+ if (!l.value || !i.value || !n.value)
34
36
  return;
35
- i.value = ne(l.value);
36
- const e = typeof p.value == "object" ? p.value.value : "{}", t = Z.parse(e);
37
- t.error && console.error("INVALID ENVIRONMENT!");
38
- const o = t.error || typeof t.data != "object" ? {} : t.data ?? {}, J = v.value?.cookies.map((j) => B[j]).filter(Y) ?? [], W = n.value?.info?.title === "Drafts" ? void 0 : A.value, [h, g] = me({
39
- request: u.value,
40
- example: l.value,
37
+ if (S.value.hasBlockingErrors) {
38
+ u("Path parameters must have values.", "error"), r.requestStatus.emit("abort");
39
+ return;
40
+ }
41
+ const t = typeof d.value == "object" ? d.value.value : "{}", e = Y.parse(t);
42
+ e.error && console.error("INVALID ENVIRONMENT!");
43
+ const a = e.error || typeof e.data != "object" ? {} : e.data ?? {}, W = p.value?.cookies.map((L) => T[L]).filter(X) ?? [], j = n.value?.info?.title === "Drafts" ? void 0 : A.value, [h, g] = ce({
44
+ request: l.value,
45
+ example: i.value,
41
46
  selectedSecuritySchemeUids: y.value,
42
- proxyUrl: v.value?.proxyUrl ?? "",
43
- environment: o,
44
- globalCookies: J,
45
- status: s.requestStatus,
46
- securitySchemes: P,
47
- server: W,
48
- pluginManager: D
47
+ proxyUrl: p.value?.proxyUrl ?? "",
48
+ environment: a,
49
+ globalCookies: W,
50
+ status: r.requestStatus,
51
+ securitySchemes: D,
52
+ server: j,
53
+ pluginManager: M
49
54
  });
50
- if (O.value?.onRequestSent?.(u.value.path ?? ""), h) {
51
- f(h.message, "error");
55
+ if (w.value?.onRequestSent?.(l.value.path ?? ""), h) {
56
+ u(h.message, "error");
52
57
  return;
53
58
  }
54
- S.value = g.controller;
59
+ R.value = g.controller;
55
60
  const [k, E] = await g.sendRequest();
56
- q.value = E, k ? f(k.message, "error") : T.push(I(E));
57
- }, z = async () => S.value?.abort(fe.REQUEST_ABORTED);
61
+ q.value = E, k ? u(k.message, "error") : P.push(J(E));
62
+ }, I = async () => R.value?.abort(me.REQUEST_ABORTED);
58
63
  function b() {
59
- V?.capture("client-send-request");
64
+ B?.capture("client-send-request");
60
65
  }
61
66
  H(() => {
62
- s.executeRequest.on(x), s.executeRequest.on(b), s.cancelRequest.on(z);
63
- }), ue(), Q(() => {
64
- s.executeRequest.off(x), s.executeRequest.off(b);
65
- }), F(
66
- () => l.value?.parameters,
67
- () => {
68
- i.value.clear();
69
- },
70
- { deep: !0 }
71
- );
72
- const I = (e) => {
67
+ r.executeRequest.on(x), r.executeRequest.on(b), r.cancelRequest.on(I);
68
+ }), le(), Q(() => {
69
+ r.executeRequest.off(x), r.executeRequest.off(b);
70
+ });
71
+ const J = (t) => {
73
72
  try {
74
- return structuredClone(e);
73
+ return structuredClone(t);
75
74
  } catch {
76
- const o = { ...e };
77
- return e.response?.data && (e.response.data instanceof Blob || e.response.data instanceof ArrayBuffer ? o.response.data = e.response.data : o.response.data = JSON.parse(JSON.stringify(e.response.data))), o;
75
+ const e = { ...t };
76
+ return t.response?.data && (t.response.data instanceof Blob || t.response.data instanceof ArrayBuffer ? e.response.data = t.response.data : e.response.data = JSON.parse(JSON.stringify(t.response.data))), e;
78
77
  }
79
78
  };
80
- return (e, t) => (m(), G("div", {
79
+ return (t, e) => (m(), F("div", {
81
80
  ref_key: "element",
82
- ref: M,
83
- class: C(["bg-b-1 relative z-0 flex h-full flex-1 flex-col overflow-hidden pt-0", {
84
- "!mr-0 !mb-0 !border-0": r(d) === "modal"
81
+ ref: z,
82
+ class: N(["bg-b-1 relative z-0 flex h-full flex-1 flex-col overflow-hidden pt-0", {
83
+ "!mr-0 !mb-0 !border-0": o(f) === "modal"
85
84
  }])
86
85
  }, [
87
- r(R) ? (m(), N(oe, {
86
+ o(v) ? (m(), U(te, {
88
87
  key: 0,
89
- modelValue: r(a),
90
- "onUpdate:modelValue": t[0] || (t[0] = (o) => K(a) ? a.value = o : null),
91
- class: C(["absolute top-2 left-3 z-50", [
92
- { hidden: r(a) },
93
- { "xl:!flex": !r(a) },
94
- { "!flex": r(d) === "modal" }
88
+ modelValue: o(s),
89
+ "onUpdate:modelValue": e[0] || (e[0] = (a) => G(s) ? s.value = a : null),
90
+ class: N(["absolute top-2 left-3 z-50", [
91
+ { hidden: o(s) },
92
+ { "xl:!flex": !o(s) },
93
+ { "!flex": o(f) === "modal" }
95
94
  ]])
96
- }, null, 8, ["modelValue", "class"])) : U("", !0),
97
- _("div", ve, [
98
- r(R) ? (m(), N(ce, {
95
+ }, null, 8, ["modelValue", "class"])) : _("", !0),
96
+ O("div", pe, [
97
+ o(v) ? (m(), U(ue, {
99
98
  key: 0,
100
- onNewTab: t[1] || (t[1] = (o) => e.$emit("newTab", o))
101
- })) : U("", !0),
102
- _("div", Re, [
103
- X(r(te), {
104
- invalidParams: i.value,
99
+ onNewTab: e[1] || (e[1] = (a) => t.$emit("newTab", a))
100
+ })) : _("", !0),
101
+ O("div", ve, [
102
+ K(o(ee), {
103
+ invalidParams: S.value.invalidParams,
105
104
  requestResult: q.value,
106
105
  selectedSecuritySchemeUids: y.value
107
106
  }, null, 8, ["invalidParams", "requestResult", "selectedSecuritySchemeUids"])
@@ -111,5 +110,5 @@ const ve = { class: "flex h-full" }, Re = { class: "flex h-full flex-1 flex-col"
111
110
  }
112
111
  });
113
112
  export {
114
- Pe as default
113
+ Te as default
115
114
  };
@@ -1,7 +1,7 @@
1
1
  import { defineComponent as h, createBlock as x, openBlock as b, unref as o, withCtx as s, createElementVNode as c, toDisplayString as a, createVNode as r, createTextVNode as i } from "vue";
2
- import { ScalarModal as _, ScalarButton as m } from "@scalar/components";
3
- import { useWorkspace as y } from "../../../../store/store.js";
4
- const S = { class: "text-c-2 mb-4 text-sm leading-normal" }, g = { class: "flex justify-between gap-2" }, v = /* @__PURE__ */ h({
2
+ import { ScalarModal as y, ScalarButton as m } from "@scalar/components";
3
+ import { useWorkspace as S } from "../../../../store/store.js";
4
+ const _ = { class: "text-c-2 mb-4 text-sm leading-normal" }, g = { class: "flex justify-between gap-2" }, v = /* @__PURE__ */ h({
5
5
  __name: "DeleteRequestAuthModal",
6
6
  props: {
7
7
  state: {},
@@ -9,16 +9,16 @@ const S = { class: "text-c-2 mb-4 text-sm leading-normal" }, g = { class: "flex
9
9
  },
10
10
  emits: ["close", "delete"],
11
11
  setup(u, { emit: d }) {
12
- const n = u, l = d, { securitySchemeMutators: p } = y(), f = () => {
12
+ const n = u, l = d, { securitySchemeMutators: p } = S(), f = () => {
13
13
  n.scheme?.id && p.delete(n.scheme.id), l("delete");
14
14
  };
15
- return (t, e) => (b(), x(o(_), {
15
+ return (t, e) => (b(), x(o(y), {
16
16
  size: "xxs",
17
17
  state: t.state,
18
18
  title: "Delete Security Scheme"
19
19
  }, {
20
20
  default: s(() => [
21
- c("p", S, " This cannot be undone. You're about to delete the " + a(t.scheme?.label) + " security scheme from the collection. ", 1),
21
+ c("p", _, " This cannot be undone. You're about to delete the " + a(t.scheme?.label) + " security scheme from the collection. ", 1),
22
22
  c("div", g, [
23
23
  r(o(m), {
24
24
  class: "flex h-8 cursor-pointer items-center gap-1.5 px-3 shadow-none focus:outline-none",
@@ -26,11 +26,10 @@ const S = { class: "text-c-2 mb-4 text-sm leading-normal" }, g = { class: "flex
26
26
  variant: "outlined",
27
27
  onClick: e[0] || (e[0] = (k) => l("close"))
28
28
  }, {
29
- default: s(() => e[1] || (e[1] = [
30
- i(" Cancel ")
31
- ])),
32
- _: 1,
33
- __: [1]
29
+ default: s(() => [...e[1] || (e[1] = [
30
+ i(" Cancel ", -1)
31
+ ])]),
32
+ _: 1
34
33
  }),
35
34
  r(o(m), {
36
35
  class: "flex h-8 cursor-pointer items-center gap-1.5 px-3 shadow-none focus:outline-none",