@scalar/api-client 2.2.50 → 2.2.52

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 (406) hide show
  1. package/CHANGELOG.md +57 -0
  2. package/dist/components/AddressBar/AddressBar.vue.d.ts.map +1 -1
  3. package/dist/components/AddressBar/AddressBar.vue.js +2 -2
  4. package/dist/components/AddressBar/AddressBar.vue2.js +30 -30
  5. package/dist/components/AddressBar/AddressBarHistory.vue.d.ts.map +1 -1
  6. package/dist/components/AddressBar/AddressBarHistory.vue.js +2 -2
  7. package/dist/components/AddressBar/AddressBarHistory.vue2.js +22 -22
  8. package/dist/components/CodeInput/CodeInput.vue.d.ts +4 -2
  9. package/dist/components/CodeInput/CodeInput.vue.d.ts.map +1 -1
  10. package/dist/components/CodeInput/CodeInput.vue.js +2 -2
  11. package/dist/components/CodeInput/CodeInput.vue2.js +38 -38
  12. package/dist/components/CommandPalette/CommandActionForm.vue.js +2 -2
  13. package/dist/components/CommandPalette/CommandActionInput.vue.js +1 -1
  14. package/dist/components/CommandPalette/CommandPaletteExample.vue.d.ts.map +1 -1
  15. package/dist/components/CommandPalette/CommandPaletteExample.vue.js +13 -13
  16. package/dist/components/CommandPalette/CommandPaletteImport.vue.d.ts.map +1 -1
  17. package/dist/components/CommandPalette/CommandPaletteImport.vue.js +143 -114
  18. package/dist/components/CommandPalette/CommandPaletteServer.vue.d.ts.map +1 -1
  19. package/dist/components/CommandPalette/CommandPaletteServer.vue.js +59 -51
  20. package/dist/components/CommandPalette/CommandPaletteWorkspace.vue.d.ts.map +1 -1
  21. package/dist/components/CommandPalette/TheCommandPalette.vue.d.ts.map +1 -1
  22. package/dist/components/CommandPalette/TheCommandPalette.vue.js +2 -2
  23. package/dist/components/CommandPalette/TheCommandPalette.vue2.js +85 -82
  24. package/dist/components/CommandPalette/WatchModeToggle.vue.js +2 -2
  25. package/dist/components/ContextBar.vue.js +2 -2
  26. package/dist/components/ContextBar.vue2.js +2 -2
  27. package/dist/components/DataTable/DataTable.vue.js +1 -1
  28. package/dist/components/DataTable/DataTableCell.vue.d.ts.map +1 -1
  29. package/dist/components/DataTable/DataTableCell.vue.js +11 -11
  30. package/dist/components/DataTable/DataTableCheckbox.vue.js +3 -3
  31. package/dist/components/DataTable/DataTableInput.vue.d.ts +175 -6
  32. package/dist/components/DataTable/DataTableInput.vue.d.ts.map +1 -1
  33. package/dist/components/DataTable/DataTableInput.vue.js +3 -3
  34. package/dist/components/DataTable/DataTableInput.vue2.js +57 -48
  35. package/dist/components/DataTable/DataTableInputSelect.vue.d.ts.map +1 -1
  36. package/dist/components/DataTable/DataTableInputSelect.vue.js +1 -1
  37. package/dist/components/DataTable/DataTableText.vue.js +1 -1
  38. package/dist/components/EmptyState.vue.js +1 -1
  39. package/dist/components/EmptyState.vue2.js +4 -4
  40. package/dist/components/EnvironmentSelector/EnvironmentSelector.vue.d.ts.map +1 -1
  41. package/dist/components/EnvironmentSelector/EnvironmentSelector.vue.js +13 -13
  42. package/dist/components/Form/Form.vue.d.ts.map +1 -1
  43. package/dist/components/Form/Form.vue.js +56 -36
  44. package/dist/components/Form/LabelInput.vue.d.ts +14 -0
  45. package/dist/components/Form/LabelInput.vue.d.ts.map +1 -0
  46. package/dist/components/Form/LabelInput.vue.js +7 -0
  47. package/dist/components/Form/LabelInput.vue2.js +42 -0
  48. package/dist/components/HelpfulLink.vue.js +1 -1
  49. package/dist/components/HttpMethod/HttpMethod.vue.d.ts +3 -3
  50. package/dist/components/HttpMethod/HttpMethod.vue.d.ts.map +1 -1
  51. package/dist/components/HttpMethod/HttpMethod.vue.js +2 -2
  52. package/dist/components/HttpMethod/HttpMethod.vue2.js +1 -1
  53. package/dist/components/IconSelector.vue.js +3 -3
  54. package/dist/components/ImportCollection/DropEventListener.vue.js +3 -3
  55. package/dist/components/ImportCollection/ImportNowButton.vue.d.ts.map +1 -1
  56. package/dist/components/ImportCollection/ImportNowButton.vue.js +8 -8
  57. package/dist/components/ImportCollection/IntegrationLogo.vue.js +1 -1
  58. package/dist/components/ImportCollection/OpenAppButton.vue.d.ts.map +1 -1
  59. package/dist/components/ImportCollection/PrefetchError.vue.js +1 -1
  60. package/dist/components/ImportCollection/WorkspaceSelector.vue.d.ts.map +1 -1
  61. package/dist/components/ImportCollection/WorkspaceSelector.vue.js +15 -15
  62. package/dist/components/ImportCollection/hooks/useUrlPrefetcher.d.ts.map +1 -1
  63. package/dist/components/ImportCurl/ImportCurlModal.vue.d.ts +2 -2
  64. package/dist/components/ImportCurl/ImportCurlModal.vue.d.ts.map +1 -1
  65. package/dist/components/ImportCurl/ImportCurlModal.vue.js +1 -1
  66. package/dist/components/ImportCurl/ImportCurlModal.vue2.js +13 -13
  67. package/dist/components/ScalarAsciiArt.vue.js +3 -3
  68. package/dist/components/Search/useSearch.d.ts.map +1 -1
  69. package/dist/components/Search/useSearch.js +5 -13
  70. package/dist/components/Server/ServerDropdown.vue.d.ts +0 -1
  71. package/dist/components/Server/ServerDropdown.vue.d.ts.map +1 -1
  72. package/dist/components/Server/ServerDropdown.vue.js +40 -57
  73. package/dist/components/Server/ServerDropdownItem.vue.d.ts +0 -1
  74. package/dist/components/Server/ServerDropdownItem.vue.d.ts.map +1 -1
  75. package/dist/components/Server/ServerDropdownItem.vue.js +1 -1
  76. package/dist/components/Server/ServerDropdownItem.vue2.js +19 -20
  77. package/dist/components/Server/ServerSelector.vue.d.ts +12 -0
  78. package/dist/components/Server/ServerSelector.vue.d.ts.map +1 -0
  79. package/dist/components/Server/ServerSelector.vue.js +85 -0
  80. package/dist/components/Server/ServerSelector.vue2.js +4 -0
  81. package/dist/components/Server/ServerVariablesForm.vue.d.ts +1 -1
  82. package/dist/components/Server/ServerVariablesForm.vue.d.ts.map +1 -1
  83. package/dist/components/Server/ServerVariablesForm.vue.js +1 -1
  84. package/dist/components/Server/ServerVariablesSelect.vue.js +1 -1
  85. package/dist/components/Server/ServerVariablesTextbox.vue.js +1 -1
  86. package/dist/components/Server/index.d.ts +1 -0
  87. package/dist/components/Server/index.d.ts.map +1 -1
  88. package/dist/components/Server/index.js +6 -4
  89. package/dist/components/Server/types.d.ts.map +1 -1
  90. package/dist/components/SideNav/DownloadAppButton.vue.d.ts.map +1 -1
  91. package/dist/components/SideNav/DownloadAppButton.vue.js +2 -2
  92. package/dist/components/SideNav/DownloadAppButton.vue2.js +6 -6
  93. package/dist/components/SideNav/SideHelp.vue.js +12 -12
  94. package/dist/components/SideNav/SideNav.vue.d.ts.map +1 -1
  95. package/dist/components/SideNav/SideNav.vue.js +73 -58
  96. package/dist/components/SideNav/SideNavLink.vue.d.ts.map +1 -1
  97. package/dist/components/SideNav/SideNavLink.vue.js +3 -3
  98. package/dist/components/SideNav/SideNavRouterLink.vue.d.ts +2 -2
  99. package/dist/components/SideNav/SideNavRouterLink.vue.d.ts.map +1 -1
  100. package/dist/components/SideNav/SideNavRouterLink.vue.js +17 -28
  101. package/dist/components/Sidebar/Actions/DeleteSidebarListElement.vue.d.ts.map +1 -1
  102. package/dist/components/Sidebar/Actions/DeleteSidebarListElement.vue.js +1 -1
  103. package/dist/components/Sidebar/Actions/EditSidebarListCollection.vue.d.ts.map +1 -1
  104. package/dist/components/Sidebar/Actions/EditSidebarListCollection.vue.js +12 -12
  105. package/dist/components/Sidebar/Actions/EditSidebarListElement.vue.d.ts.map +1 -1
  106. package/dist/components/Sidebar/Actions/EditSidebarListElement.vue.js +4 -4
  107. package/dist/components/Sidebar/Actions/SidebarListElementForm.vue.js +2 -2
  108. package/dist/components/Sidebar/Actions/SidebarListElementForm.vue2.js +3 -3
  109. package/dist/components/Sidebar/Sidebar.vue.d.ts +1 -4
  110. package/dist/components/Sidebar/Sidebar.vue.d.ts.map +1 -1
  111. package/dist/components/Sidebar/Sidebar.vue.js +1 -1
  112. package/dist/components/Sidebar/Sidebar.vue2.js +34 -34
  113. package/dist/components/Sidebar/SidebarButton.vue.d.ts.map +1 -1
  114. package/dist/components/Sidebar/SidebarButton.vue.js +6 -6
  115. package/dist/components/Sidebar/SidebarListElement.vue.d.ts +2 -2
  116. package/dist/components/Sidebar/SidebarListElement.vue.d.ts.map +1 -1
  117. package/dist/components/Sidebar/SidebarListElement.vue.js +2 -2
  118. package/dist/components/Sidebar/SidebarListElement.vue2.js +36 -46
  119. package/dist/components/Sidebar/SidebarListElementActions.vue.d.ts.map +1 -1
  120. package/dist/components/Sidebar/SidebarListElementActions.vue.js +7 -7
  121. package/dist/components/Sidebar/SidebarToggle.vue.d.ts +1 -8
  122. package/dist/components/Sidebar/SidebarToggle.vue.d.ts.map +1 -1
  123. package/dist/components/Sidebar/SidebarToggle.vue.js +20 -21
  124. package/dist/components/TopNav/TopNav.vue.d.ts.map +1 -1
  125. package/dist/components/TopNav/TopNav.vue.js +104 -85
  126. package/dist/components/TopNav/TopNavItem.vue.d.ts +2 -2
  127. package/dist/components/TopNav/TopNavItem.vue.d.ts.map +1 -1
  128. package/dist/components/TopNav/TopNavItem.vue.js +2 -2
  129. package/dist/components/TopNav/TopNavItem.vue2.js +1 -1
  130. package/dist/components/ViewLayout/ViewLayout.vue.d.ts.map +1 -1
  131. package/dist/components/ViewLayout/ViewLayout.vue.js +16 -10
  132. package/dist/components/ViewLayout/ViewLayout.vue2.js +4 -0
  133. package/dist/components/ViewLayout/ViewLayoutCollapse.vue.d.ts.map +1 -1
  134. package/dist/components/ViewLayout/ViewLayoutCollapse.vue.js +29 -29
  135. package/dist/components/ViewLayout/ViewLayoutContent.vue.js +1 -1
  136. package/dist/components/ViewLayout/ViewLayoutSection.vue.d.ts.map +1 -1
  137. package/dist/components/ViewLayout/ViewLayoutSection.vue.js +20 -13
  138. package/dist/components/ViewLayout/ViewLayoutSection.vue2.js +4 -0
  139. package/dist/constants.d.ts +16 -12
  140. package/dist/constants.d.ts.map +1 -1
  141. package/dist/constants.js +35 -6
  142. package/dist/hooks/index.d.ts +0 -1
  143. package/dist/hooks/index.d.ts.map +1 -1
  144. package/dist/hooks/index.js +5 -7
  145. package/dist/hooks/useFileDialog.d.ts +1 -1
  146. package/dist/hooks/useFileDialog.d.ts.map +1 -1
  147. package/dist/hooks/useFileDialog.js +1 -6
  148. package/dist/hooks/useResponseBody.d.ts.map +1 -1
  149. package/dist/hooks/useResponseBody.js +3 -9
  150. package/dist/hooks/useSidebar.d.ts +19 -2
  151. package/dist/hooks/useSidebar.d.ts.map +1 -1
  152. package/dist/hooks/useSidebar.js +25 -9
  153. package/dist/hooks/useSidebar.test.d.ts +2 -0
  154. package/dist/hooks/useSidebar.test.d.ts.map +1 -0
  155. package/dist/layouts/App/ApiClientApp.vue.d.ts.map +1 -1
  156. package/dist/layouts/App/ApiClientApp.vue.js +41 -35
  157. package/dist/layouts/App/MainLayout.vue.js +4 -4
  158. package/dist/layouts/App/create-api-client-app.d.ts +207 -255
  159. package/dist/layouts/App/create-api-client-app.d.ts.map +1 -1
  160. package/dist/layouts/Modal/ApiClientModal.vue.d.ts.map +1 -1
  161. package/dist/layouts/Modal/ApiClientModal.vue.js +2 -2
  162. package/dist/layouts/Modal/ApiClientModal.vue2.js +8 -8
  163. package/dist/layouts/Modal/create-api-client-modal.d.ts +414 -510
  164. package/dist/layouts/Modal/create-api-client-modal.d.ts.map +1 -1
  165. package/dist/layouts/Web/ApiClientWeb.vue.d.ts.map +1 -1
  166. package/dist/layouts/Web/ApiClientWeb.vue.js +35 -29
  167. package/dist/layouts/Web/create-api-client-web.d.ts +207 -255
  168. package/dist/layouts/Web/create-api-client-web.d.ts.map +1 -1
  169. package/dist/libs/create-client.d.ts +200 -248
  170. package/dist/libs/create-client.d.ts.map +1 -1
  171. package/dist/libs/create-client.js +79 -63
  172. package/dist/libs/errors.d.ts.map +1 -1
  173. package/dist/libs/extractAttachmentFilename.d.ts.map +1 -1
  174. package/dist/libs/extractAttachmentFilename.js +1 -3
  175. package/dist/libs/find-request.d.ts.map +1 -1
  176. package/dist/libs/getOpenApiDocumentDetails.d.ts.map +1 -1
  177. package/dist/libs/importers/curl.d.ts.map +1 -1
  178. package/dist/libs/importers/curl.js +2 -12
  179. package/dist/libs/isUrl.d.ts.map +1 -1
  180. package/dist/libs/local-storage.d.ts.map +1 -1
  181. package/dist/libs/local-storage.js +1 -9
  182. package/dist/libs/normalize-headers.d.ts.map +1 -1
  183. package/dist/libs/normalize-headers.js +2 -6
  184. package/dist/libs/parse-curl.d.ts.map +1 -1
  185. package/dist/libs/parse-curl.js +1 -5
  186. package/dist/libs/postman.d.ts.map +1 -1
  187. package/dist/libs/send-request/create-fetch-body.d.ts +1 -1
  188. package/dist/libs/send-request/create-fetch-body.d.ts.map +1 -1
  189. package/dist/libs/send-request/create-fetch-body.js +1 -2
  190. package/dist/libs/send-request/create-fetch-headers.d.ts.map +1 -1
  191. package/dist/libs/send-request/create-fetch-query-params.d.ts.map +1 -1
  192. package/dist/libs/send-request/create-request-operation.d.ts.map +1 -1
  193. package/dist/libs/send-request/create-request-operation.js +6 -12
  194. package/dist/libs/send-request/create-request-operation.test.d.ts +0 -3
  195. package/dist/libs/send-request/create-request-operation.test.d.ts.map +1 -1
  196. package/dist/libs/string-template.d.ts.map +1 -1
  197. package/dist/libs/string-template.js +1 -4
  198. package/dist/router.d.ts.map +1 -1
  199. package/dist/routes.d.ts +62 -14
  200. package/dist/routes.d.ts.map +1 -1
  201. package/dist/routes.js +93 -75
  202. package/dist/store/active-entities.d.ts +32 -32
  203. package/dist/store/active-entities.d.ts.map +1 -1
  204. package/dist/store/active-entities.js +43 -39
  205. package/dist/store/collections.d.ts +164 -164
  206. package/dist/store/collections.d.ts.map +1 -1
  207. package/dist/store/cookies.d.ts +4 -4
  208. package/dist/store/cookies.d.ts.map +1 -1
  209. package/dist/store/cookies.js +1 -5
  210. package/dist/store/environment.d.ts +4 -4
  211. package/dist/store/request-example.d.ts +2 -2
  212. package/dist/store/requests.d.ts +4 -4
  213. package/dist/store/requests.d.ts.map +1 -1
  214. package/dist/store/security-schemes.d.ts +8 -8
  215. package/dist/store/store-context.d.ts.map +1 -1
  216. package/dist/store/store.d.ts +200 -248
  217. package/dist/store/store.d.ts.map +1 -1
  218. package/dist/store/tags.d.ts.map +1 -1
  219. package/dist/store/workspace.d.ts +4 -4
  220. package/dist/style.css +1 -1
  221. package/dist/tailwind/desktop-variants.d.ts.map +1 -1
  222. package/dist/types/vue.d.ts.map +1 -1
  223. package/dist/views/Collection/Collection.vue.d.ts.map +1 -1
  224. package/dist/views/Collection/Collection.vue.js +4 -0
  225. package/dist/views/Collection/Collection.vue2.js +50 -0
  226. package/dist/views/Collection/CollectionAuthentication.vue.d.ts +3 -0
  227. package/dist/views/Collection/CollectionAuthentication.vue.d.ts.map +1 -0
  228. package/dist/views/Collection/CollectionAuthentication.vue.js +4 -0
  229. package/dist/views/Collection/CollectionAuthentication.vue2.js +16 -0
  230. package/dist/views/Collection/CollectionCookies.vue.d.ts +3 -0
  231. package/dist/views/Collection/CollectionCookies.vue.d.ts.map +1 -0
  232. package/dist/views/Collection/CollectionCookies.vue.js +4 -0
  233. package/dist/views/Collection/CollectionCookies.vue2.js +16 -0
  234. package/dist/views/Collection/CollectionEnvironment.vue.d.ts +3 -0
  235. package/dist/views/Collection/CollectionEnvironment.vue.d.ts.map +1 -0
  236. package/dist/views/Collection/CollectionEnvironment.vue.js +4 -0
  237. package/dist/views/Collection/CollectionEnvironment.vue2.js +16 -0
  238. package/dist/views/{Servers/Servers.vue.d.ts → Collection/CollectionInfoForm.vue.d.ts} +1 -1
  239. package/dist/views/Collection/CollectionInfoForm.vue.d.ts.map +1 -0
  240. package/dist/views/Collection/CollectionInfoForm.vue.js +7 -0
  241. package/dist/views/Collection/CollectionInfoForm.vue2.js +70 -0
  242. package/dist/views/Collection/CollectionNavigation.vue.d.ts +6 -0
  243. package/dist/views/Collection/CollectionNavigation.vue.d.ts.map +1 -0
  244. package/dist/views/Collection/CollectionNavigation.vue.js +142 -0
  245. package/dist/views/Collection/CollectionNavigation.vue2.js +4 -0
  246. package/dist/views/Collection/CollectionOverview.vue.d.ts +3 -0
  247. package/dist/views/Collection/CollectionOverview.vue.d.ts.map +1 -0
  248. package/dist/views/Collection/CollectionOverview.vue.js +4 -0
  249. package/dist/views/Collection/CollectionOverview.vue2.js +37 -0
  250. package/dist/views/Collection/CollectionScripts.vue.d.ts +3 -0
  251. package/dist/views/Collection/CollectionScripts.vue.d.ts.map +1 -0
  252. package/dist/views/Collection/CollectionScripts.vue.js +4 -0
  253. package/dist/views/Collection/CollectionScripts.vue2.js +16 -0
  254. package/dist/views/Collection/CollectionServerForm.vue.d.ts +10 -0
  255. package/dist/views/Collection/CollectionServerForm.vue.d.ts.map +1 -0
  256. package/dist/views/Collection/CollectionServerForm.vue.js +74 -0
  257. package/dist/views/Collection/CollectionServerForm.vue2.js +4 -0
  258. package/dist/views/{Servers/ServerForm.vue.d.ts → Collection/CollectionServers.vue.d.ts} +1 -1
  259. package/dist/views/Collection/CollectionServers.vue.d.ts.map +1 -0
  260. package/dist/views/Collection/CollectionServers.vue.js +4 -0
  261. package/dist/views/Collection/CollectionServers.vue2.js +124 -0
  262. package/dist/views/Collection/CollectionSettings.vue.d.ts +3 -0
  263. package/dist/views/Collection/CollectionSettings.vue.d.ts.map +1 -0
  264. package/dist/views/Collection/CollectionSettings.vue.js +7 -0
  265. package/dist/views/Collection/CollectionSettings.vue2.js +124 -0
  266. package/dist/views/Collection/CollectionSync.vue.d.ts +3 -0
  267. package/dist/views/Collection/CollectionSync.vue.d.ts.map +1 -0
  268. package/dist/views/Collection/CollectionSync.vue.js +4 -0
  269. package/dist/views/Collection/CollectionSync.vue2.js +16 -0
  270. package/dist/views/Collection/components/MarkdownInput.vue.d.ts +16 -0
  271. package/dist/views/Collection/components/MarkdownInput.vue.d.ts.map +1 -0
  272. package/dist/views/Collection/components/MarkdownInput.vue.js +7 -0
  273. package/dist/views/Collection/components/MarkdownInput.vue2.js +95 -0
  274. package/dist/views/Components/CodeSnippet/CodeSnippet.vue.d.ts.map +1 -1
  275. package/dist/views/Components/CodeSnippet/CodeSnippet.vue.js +7 -7
  276. package/dist/views/Components/CodeSnippet/helpers/convert-to-har-request.d.ts.map +1 -1
  277. package/dist/views/Components/CodeSnippet/helpers/convert-to-har-request.js +1 -3
  278. package/dist/views/Components/CodeSnippet/helpers/get-har-request.d.ts.map +1 -1
  279. package/dist/views/Components/CodeSnippet/helpers/get-har-request.js +1 -5
  280. package/dist/views/Components/CodeSnippet/helpers/get-snippet.d.ts.map +1 -1
  281. package/dist/views/Components/CodeSnippet/helpers/get-snippet.js +1 -5
  282. package/dist/views/Cookies/CookieForm.vue.d.ts.map +1 -1
  283. package/dist/views/Cookies/CookieForm.vue.js +18 -23
  284. package/dist/views/Cookies/CookieModal.vue.d.ts.map +1 -1
  285. package/dist/views/Cookies/CookieModal.vue.js +1 -1
  286. package/dist/views/Cookies/CookieModal.vue2.js +7 -7
  287. package/dist/views/Cookies/Cookies.vue.d.ts.map +1 -1
  288. package/dist/views/Cookies/Cookies.vue2.js +96 -78
  289. package/dist/views/Environment/Environment.vue.d.ts.map +1 -1
  290. package/dist/views/Environment/Environment.vue2.js +125 -112
  291. package/dist/views/Environment/EnvironmentColorModal.vue.d.ts.map +1 -1
  292. package/dist/views/Environment/EnvironmentColorModal.vue.js +5 -5
  293. package/dist/views/Environment/EnvironmentColors.vue.js +8 -8
  294. package/dist/views/Environment/EnvironmentVariableDropdown.vue.d.ts +1 -1
  295. package/dist/views/Environment/EnvironmentVariableDropdown.vue.d.ts.map +1 -1
  296. package/dist/views/Environment/EnvironmentVariableDropdown.vue.js +16 -16
  297. package/dist/views/Request/Request.vue.d.ts.map +1 -1
  298. package/dist/views/Request/Request.vue.js +2 -2
  299. package/dist/views/Request/Request.vue2.js +117 -170
  300. package/dist/views/Request/RequestRoot.vue.d.ts +13 -0
  301. package/dist/views/Request/RequestRoot.vue.d.ts.map +1 -0
  302. package/dist/views/Request/RequestRoot.vue.js +7 -0
  303. package/dist/views/Request/RequestRoot.vue2.js +78 -0
  304. package/dist/views/Request/RequestSection/RequestAuth/OAuth2.vue.d.ts +1 -1
  305. package/dist/views/Request/RequestSection/RequestAuth/OAuth2.vue.d.ts.map +1 -1
  306. package/dist/views/Request/RequestSection/RequestAuth/OAuth2.vue.js +9 -9
  307. package/dist/views/Request/RequestSection/RequestAuth/OAuthScopesInput.vue.d.ts +1 -1
  308. package/dist/views/Request/RequestSection/RequestAuth/OAuthScopesInput.vue.d.ts.map +1 -1
  309. package/dist/views/Request/RequestSection/RequestAuth/OAuthScopesInput.vue.js +5 -5
  310. package/dist/views/Request/RequestSection/RequestAuth/RequestAuth.vue.d.ts.map +1 -1
  311. package/dist/views/Request/RequestSection/RequestAuth/RequestAuth.vue.js +1 -1
  312. package/dist/views/Request/RequestSection/RequestAuth/RequestAuth.vue2.js +104 -89
  313. package/dist/views/Request/RequestSection/RequestAuth/RequestAuthDataTableInput.vue.d.ts +5 -5
  314. package/dist/views/Request/RequestSection/RequestAuth/RequestAuthDataTableInput.vue.d.ts.map +1 -1
  315. package/dist/views/Request/RequestSection/RequestBody.vue.d.ts +1 -1
  316. package/dist/views/Request/RequestSection/RequestBody.vue.d.ts.map +1 -1
  317. package/dist/views/Request/RequestSection/RequestBody.vue.js +1 -1
  318. package/dist/views/Request/RequestSection/RequestBody.vue2.js +59 -65
  319. package/dist/views/Request/RequestSection/RequestCodeExample.vue.d.ts.map +1 -1
  320. package/dist/views/Request/RequestSection/RequestCodeExample.vue.js +3 -3
  321. package/dist/views/Request/RequestSection/RequestCodeExample.vue2.js +22 -23
  322. package/dist/views/Request/RequestSection/RequestParams.vue.d.ts +1 -1
  323. package/dist/views/Request/RequestSection/RequestParams.vue.d.ts.map +1 -1
  324. package/dist/views/Request/RequestSection/RequestParams.vue.js +14 -14
  325. package/dist/views/Request/RequestSection/RequestPathParams.vue.d.ts +1 -1
  326. package/dist/views/Request/RequestSection/RequestPathParams.vue.d.ts.map +1 -1
  327. package/dist/views/Request/RequestSection/RequestPathParams.vue.js +6 -6
  328. package/dist/views/Request/RequestSection/RequestSection.vue.d.ts +1 -1
  329. package/dist/views/Request/RequestSection/RequestSection.vue.d.ts.map +1 -1
  330. package/dist/views/Request/RequestSection/RequestSection.vue.js +2 -2
  331. package/dist/views/Request/RequestSection/RequestSection.vue2.js +38 -38
  332. package/dist/views/Request/RequestSection/RequestTable.vue.d.ts +2 -2
  333. package/dist/views/Request/RequestSection/RequestTable.vue.d.ts.map +1 -1
  334. package/dist/views/Request/RequestSection/RequestTable.vue.js +2 -2
  335. package/dist/views/Request/RequestSection/RequestTable.vue2.js +34 -33
  336. package/dist/views/Request/RequestSection/RequestTableTooltip.vue.d.ts.map +1 -1
  337. package/dist/views/Request/RequestSection/RequestTableTooltip.vue.js +2 -2
  338. package/dist/views/Request/RequestSection/RequestTableTooltip.vue2.js +5 -5
  339. package/dist/views/Request/RequestSection/helpers/filter-security-requirements.d.ts.map +1 -1
  340. package/dist/views/Request/RequestSection/helpers/filter-security-requirements.js +2 -6
  341. package/dist/views/Request/RequestSidebar.vue.d.ts +3 -10
  342. package/dist/views/Request/RequestSidebar.vue.d.ts.map +1 -1
  343. package/dist/views/Request/RequestSidebar.vue.js +1 -1
  344. package/dist/views/Request/RequestSidebar.vue2.js +186 -188
  345. package/dist/views/Request/RequestSidebarItem.vue.d.ts.map +1 -1
  346. package/dist/views/Request/RequestSidebarItem.vue.js +2 -2
  347. package/dist/views/Request/RequestSidebarItem.vue2.js +290 -173
  348. package/dist/views/Request/RequestSidebarItemMenu.vue.d.ts.map +1 -1
  349. package/dist/views/Request/RequestSidebarItemMenu.vue.js +4 -4
  350. package/dist/views/Request/RequestSidebarItemMenu.vue2.js +13 -13
  351. package/dist/views/Request/RequestSubpageHeader.vue.d.ts +1 -4
  352. package/dist/views/Request/RequestSubpageHeader.vue.d.ts.map +1 -1
  353. package/dist/views/Request/RequestSubpageHeader.vue.js +1 -1
  354. package/dist/views/Request/RequestSubpageHeader.vue2.js +51 -51
  355. package/dist/views/Request/ResponseSection/ResponseBody.vue.d.ts.map +1 -1
  356. package/dist/views/Request/ResponseSection/ResponseBody.vue.js +2 -2
  357. package/dist/views/Request/ResponseSection/ResponseBody.vue2.js +12 -12
  358. package/dist/views/Request/ResponseSection/ResponseBodyDownload.vue.d.ts.map +1 -1
  359. package/dist/views/Request/ResponseSection/ResponseBodyDownload.vue.js +1 -1
  360. package/dist/views/Request/ResponseSection/ResponseBodyPreview.vue.d.ts.map +1 -1
  361. package/dist/views/Request/ResponseSection/ResponseBodyPreview.vue.js +1 -1
  362. package/dist/views/Request/ResponseSection/ResponseBodyPreview.vue2.js +2 -2
  363. package/dist/views/Request/ResponseSection/ResponseBodyRaw.vue.d.ts.map +1 -1
  364. package/dist/views/Request/ResponseSection/ResponseBodyRaw.vue.js +2 -2
  365. package/dist/views/Request/ResponseSection/ResponseBodyToggle.vue.js +1 -1
  366. package/dist/views/Request/ResponseSection/ResponseBodyVirtual.vue.d.ts.map +1 -1
  367. package/dist/views/Request/ResponseSection/ResponseBodyVirtual.vue.js +8 -8
  368. package/dist/views/Request/ResponseSection/ResponseCookies.vue.js +1 -1
  369. package/dist/views/Request/ResponseSection/ResponseEmpty.vue.d.ts.map +1 -1
  370. package/dist/views/Request/ResponseSection/ResponseEmpty.vue.js +1 -1
  371. package/dist/views/Request/ResponseSection/ResponseEmpty.vue2.js +20 -20
  372. package/dist/views/Request/ResponseSection/ResponseHeaders.vue.js +25 -26
  373. package/dist/views/Request/ResponseSection/ResponseLoadingOverlay.vue.d.ts.map +1 -1
  374. package/dist/views/Request/ResponseSection/ResponseLoadingOverlay.vue.js +3 -3
  375. package/dist/views/Request/ResponseSection/ResponseLoadingOverlay.vue2.js +1 -1
  376. package/dist/views/Request/ResponseSection/ResponseMetaInformation.vue.d.ts.map +1 -1
  377. package/dist/views/Request/ResponseSection/ResponseMetaInformation.vue.js +7 -7
  378. package/dist/views/Request/ResponseSection/ResponseSection.vue.d.ts.map +1 -1
  379. package/dist/views/Request/ResponseSection/ResponseSection.vue.js +1 -1
  380. package/dist/views/Request/ResponseSection/ResponseSection.vue2.js +7 -7
  381. package/dist/views/Request/hooks/useOpenApiWatcher.d.ts.map +1 -1
  382. package/dist/views/Request/hooks/useOpenApiWatcher.js +12 -37
  383. package/dist/views/Request/libs/request.d.ts +4 -0
  384. package/dist/views/Request/libs/request.d.ts.map +1 -1
  385. package/dist/views/Request/libs/request.js +2 -1
  386. package/dist/views/Request/libs/watch-mode.d.ts.map +1 -1
  387. package/dist/views/Request/libs/watch-mode.js +63 -63
  388. package/dist/views/Request/types/sidebar-item.d.ts +1 -1
  389. package/dist/views/Request/types/sidebar-item.d.ts.map +1 -1
  390. package/dist/views/Settings/Settings.vue.d.ts.map +1 -1
  391. package/dist/views/Settings/Settings.vue2.js +8 -8
  392. package/dist/views/Settings/SettingsGeneral.vue.d.ts.map +1 -1
  393. package/dist/views/Settings/SettingsGeneral.vue.js +9 -11
  394. package/dist/views/Settings/components/SettingsAppearance.vue.js +6 -6
  395. package/dist/vitest.setup.d.ts +16 -0
  396. package/dist/vitest.setup.d.ts.map +1 -0
  397. package/package.json +16 -21
  398. package/dist/views/Servers/ServerForm.vue.d.ts.map +0 -1
  399. package/dist/views/Servers/ServerForm.vue.js +0 -39
  400. package/dist/views/Servers/ServerForm.vue2.js +0 -4
  401. package/dist/views/Servers/Servers.vue.d.ts.map +0 -1
  402. package/dist/views/Servers/Servers.vue.js +0 -4
  403. package/dist/views/Servers/Servers.vue2.js +0 -168
  404. package/dist/views/Servers/index.d.ts +0 -2
  405. package/dist/views/Servers/index.d.ts.map +0 -1
  406. package/dist/views/Servers/index.js +0 -4
@@ -1,82 +1,82 @@
1
- import { defineComponent as ie, ref as h, watch as ue, onMounted as me, onBeforeUnmount as ce, openBlock as v, createBlock as g, withCtx as c, createVNode as u, createElementVNode as p, createElementBlock as $, Fragment as z, renderList as A, unref as s, normalizeClass as B, createTextVNode as K, toDisplayString as F, withDirectives as de, withModifiers as ve, createCommentVNode as G, vShow as fe, createSlots as pe } from "vue";
2
- import { useModal as N, ScalarIcon as J, ScalarButton as xe, ScalarModal as be } from "@scalar/components";
1
+ import { defineComponent as ie, ref as h, watch as ue, onMounted as me, onBeforeUnmount as ce, openBlock as v, createBlock as g, withCtx as c, createVNode as m, createElementVNode as p, unref as r, createElementBlock as V, Fragment as A, renderList as B, normalizeClass as L, createTextVNode as K, toDisplayString as F, withDirectives as de, withModifiers as ve, createCommentVNode as G, vShow as fe, createSlots as pe } from "vue";
2
+ import { useModal as O, ScalarIcon as J, ScalarButton as xe, ScalarModal as be } from "@scalar/components";
3
3
  import { LibraryIcon as he } from "@scalar/icons";
4
4
  import { useToasts as Ce } from "@scalar/use-toasts";
5
- import { useRouter as Ee, useRoute as ye } from "vue-router";
6
- import ke from "../../components/CodeInput/CodeInput.vue.js";
5
+ import { useRouter as Ee, useRoute as ke } from "vue-router";
6
+ import ye from "../../components/CodeInput/CodeInput.vue.js";
7
7
  import ge from "../../components/Sidebar/Actions/EditSidebarListElement.vue.js";
8
8
  import _e from "../../components/Sidebar/Sidebar.vue.js";
9
9
  import we from "../../components/Sidebar/SidebarButton.vue.js";
10
10
  import Ie from "../../components/Sidebar/SidebarList.vue.js";
11
11
  import T from "../../components/Sidebar/SidebarListElement.vue.js";
12
- import Se from "../../components/ViewLayout/ViewLayout.vue.js";
13
- import Me from "../../components/ViewLayout/ViewLayoutContent.vue.js";
14
- import Ve from "../../components/ViewLayout/ViewLayoutSection.vue.js";
15
- import { PathId as m } from "../../routes.js";
16
- import { useActiveEntities as $e } from "../../store/active-entities.js";
17
- import Ne from "./EnvironmentColorModal.vue.js";
18
- import Oe from "./EnvironmentModal.vue.js";
19
- import { useWorkspace as je } from "../../store/store.js";
20
- import { useSidebar as Re } from "../../hooks/useSidebar.js";
21
- const De = { class: "flex-1" }, Le = ["onClick"], Ue = { class: "flex h-5 max-w-[14px] items-center justify-center" }, ln = /* @__PURE__ */ ie({
12
+ import Me from "../../components/ViewLayout/ViewLayout.vue.js";
13
+ import Se from "../../components/ViewLayout/ViewLayoutContent.vue.js";
14
+ import $e from "../../components/ViewLayout/ViewLayoutSection.vue.js";
15
+ import { useSidebar as Ve } from "../../hooks/useSidebar.js";
16
+ import { PathId as i } from "../../routes.js";
17
+ import { useActiveEntities as Oe } from "../../store/active-entities.js";
18
+ import je from "./EnvironmentColorModal.vue.js";
19
+ import Ne from "./EnvironmentModal.vue.js";
20
+ import { useWorkspace as Re } from "../../store/store.js";
21
+ const De = { class: "flex-1" }, Ue = ["onClick"], We = { class: "flex h-5 max-w-[14px] items-center justify-center" }, ln = /* @__PURE__ */ ie({
22
22
  __name: "Environment",
23
- setup(We) {
24
- const C = Ee(), E = ye(), {
23
+ setup(ze) {
24
+ const C = Ee(), E = ke(), {
25
25
  activeWorkspace: x,
26
- activeEnvironment: O,
27
- activeWorkspaceCollections: i,
26
+ activeEnvironment: j,
27
+ activeWorkspaceCollections: u,
28
28
  activeEnvVariables: H
29
- } = $e(), { events: j, workspaceMutators: P, collectionMutators: y } = je(), { collapsedSidebarFolders: k, toggleSidebarFolder: _ } = Re(), w = N(), I = N(), S = N(), R = h(null), r = h("default"), D = h(""), b = h(void 0), d = h(void 0), M = h(void 0), { toast: L } = Ce(), q = (e) => JSON.parse(e);
30
- function U(e, o, n) {
29
+ } = Oe(), { events: N, workspaceMutators: P, collectionMutators: k } = Re(), { collapsedSidebarFolders: y, toggleSidebarFolder: _ } = Ve(), w = O(), I = O(), M = O(), R = h(null), s = h("default"), D = h(""), b = h(void 0), d = h(void 0), S = h(void 0), { toast: U } = Ce(), q = (e) => JSON.parse(e);
30
+ function W(e, o, n) {
31
31
  var t;
32
- e && (o.uid === n ? L(
32
+ e && (o.uid === n ? U(
33
33
  `Environment name already used in ${(t = o.info) == null ? void 0 : t.title}`,
34
34
  "error"
35
- ) : L("Environment name already used in another collection", "error"));
35
+ ) : U("Environment name already used in another collection", "error"));
36
36
  }
37
37
  function Q(e) {
38
- i.value.some(
38
+ u.value.some(
39
39
  (n) => {
40
40
  const t = Object.keys(
41
41
  n["x-scalar-environments"] || {}
42
42
  ).includes(e.name);
43
- return U(t, n, e.collectionId), t;
43
+ return W(t, n, e.collectionId), t;
44
44
  }
45
- ) || (e.collectionId && (y.addEnvironment(
45
+ ) || (e.collectionId && (k.addEnvironment(
46
46
  e.name,
47
47
  {
48
48
  variables: {},
49
49
  color: e.color
50
50
  },
51
51
  e.collectionId
52
- ), k[e.collectionId] || _(e.collectionId), C.push({
52
+ ), y[e.collectionId] || _(e.collectionId), C.push({
53
53
  name: "environment.collection",
54
54
  params: {
55
- [m.Collection]: e.collectionId,
56
- [m.Environment]: e.name
55
+ [i.Collection]: e.collectionId,
56
+ [i.Environment]: e.name
57
57
  }
58
58
  })), I.hide());
59
59
  }
60
60
  function X(e) {
61
61
  var o, n;
62
- if (O) {
62
+ if (j) {
63
63
  const t = q(e);
64
- if (r.value === "default")
64
+ if (s.value === "default")
65
65
  P.edit(
66
66
  (o = x.value) == null ? void 0 : o.uid,
67
67
  "environments",
68
68
  t
69
69
  );
70
70
  else {
71
- const a = i.value.find(
71
+ const a = u.value.find(
72
72
  (l) => {
73
73
  var f;
74
- return (f = l["x-scalar-environments"]) == null ? void 0 : f[r.value ?? ""];
74
+ return (f = l["x-scalar-environments"]) == null ? void 0 : f[s.value ?? ""];
75
75
  }
76
76
  );
77
- if ((n = a == null ? void 0 : a["x-scalar-environments"]) != null && n[r.value ?? ""]) {
78
- const l = a["x-scalar-environments"][r.value ?? ""];
79
- l && (l.variables = t, y.edit(
77
+ if ((n = a == null ? void 0 : a["x-scalar-environments"]) != null && n[s.value ?? ""]) {
78
+ const l = a["x-scalar-environments"][s.value ?? ""];
79
+ l && (l.variables = t, k.edit(
80
80
  a.uid,
81
81
  "x-scalar-environments",
82
82
  a["x-scalar-environments"]
@@ -85,13 +85,13 @@ const De = { class: "flex-1" }, Le = ["onClick"], Ue = { class: "flex h-5 max-w-
85
85
  }
86
86
  }
87
87
  }
88
- const V = (e) => {
88
+ const $ = (e) => {
89
89
  b.value = e, I.show();
90
90
  }, Y = (e, o) => {
91
- d.value = e, b.value = o, M.value = e, S.show();
91
+ d.value = e, b.value = o, S.value = e, M.show();
92
92
  }, Z = (e) => {
93
93
  var o, n, t;
94
- R.value = e, D.value = ((t = (n = (o = i.value.find(
94
+ R.value = e, D.value = ((t = (n = (o = u.value.find(
95
95
  (a) => {
96
96
  var l;
97
97
  return (l = a["x-scalar-environments"]) == null ? void 0 : l[e];
@@ -99,14 +99,14 @@ const De = { class: "flex-1" }, Le = ["onClick"], Ue = { class: "flex h-5 max-w-
99
99
  )) == null ? void 0 : o["x-scalar-environments"]) == null ? void 0 : n[e]) == null ? void 0 : t.color) ?? "", w.show();
100
100
  }, ee = (e) => {
101
101
  const o = R.value;
102
- typeof o == "string" && (i.value.some(
102
+ typeof o == "string" && (u.value.some(
103
103
  (t) => {
104
104
  var a;
105
105
  return (a = t["x-scalar-environments"]) == null ? void 0 : a[o];
106
106
  }
107
- ) && i.value.forEach((t) => {
107
+ ) && u.value.forEach((t) => {
108
108
  var a;
109
- (a = t["x-scalar-environments"]) != null && a[o] && (t["x-scalar-environments"][o].color = e, y.edit(
109
+ (a = t["x-scalar-environments"]) != null && a[o] && (t["x-scalar-environments"][o].color = e, k.edit(
110
110
  t.uid,
111
111
  "x-scalar-environments",
112
112
  t["x-scalar-environments"]
@@ -114,114 +114,120 @@ const De = { class: "flex-1" }, Le = ["onClick"], Ue = { class: "flex h-5 max-w-
114
114
  }), w.hide());
115
115
  };
116
116
  function ne(e) {
117
- i.value.forEach((n) => {
118
- y.removeEnvironment(e, n.uid);
117
+ u.value.forEach((n) => {
118
+ k.removeEnvironment(e, n.uid);
119
119
  });
120
- const o = i.value.flatMap(
120
+ const o = u.value.flatMap(
121
121
  (n) => Object.keys(n["x-scalar-environments"] || {})
122
122
  );
123
123
  if (o.length > 0) {
124
124
  const n = o[o.length - 1];
125
125
  if (!n) return;
126
- const t = i.value.find(
126
+ const t = u.value.find(
127
127
  (a) => Object.keys(a["x-scalar-environments"] || {}).includes(
128
128
  n
129
129
  )
130
130
  );
131
- r.value = n, C.push({
131
+ s.value = n, C.push({
132
132
  name: "environment.collection",
133
133
  params: {
134
134
  collectionId: t == null ? void 0 : t.uid,
135
135
  environmentId: n
136
136
  }
137
- }), t && !k[t.uid] && _(t.uid);
137
+ }), t && !y[t.uid] && _(t.uid);
138
138
  } else
139
- r.value = "default", C.push({
139
+ s.value = "default", C.push({
140
140
  name: "environment",
141
141
  params: { environment: "default" }
142
142
  });
143
143
  }
144
- const te = () => r.value === "default" ? "Global Environment" : r.value, oe = () => {
144
+ const te = () => s.value === "default" ? "Global Environment" : s.value, oe = () => {
145
145
  var e, o, n, t;
146
- return r.value === "default" ? JSON.stringify((e = x.value) == null ? void 0 : e.environments, null, 2) : JSON.stringify(
147
- (t = (n = (o = i.value.find(
146
+ return s.value === "default" ? JSON.stringify((e = x.value) == null ? void 0 : e.environments, null, 2) : JSON.stringify(
147
+ (t = (n = (o = u.value.find(
148
148
  (a) => {
149
149
  var l;
150
- return (l = a["x-scalar-environments"]) == null ? void 0 : l[r.value ?? ""];
150
+ return (l = a["x-scalar-environments"]) == null ? void 0 : l[s.value ?? ""];
151
151
  }
152
- )) == null ? void 0 : o["x-scalar-environments"]) == null ? void 0 : n[r.value ?? ""]) == null ? void 0 : t.variables,
152
+ )) == null ? void 0 : o["x-scalar-environments"]) == null ? void 0 : n[s.value ?? ""]) == null ? void 0 : t.variables,
153
153
  null,
154
154
  2
155
155
  );
156
- }, ae = (e) => k[e], W = (e) => {
157
- e != null && e.createNew && E.name === "environment" && V();
156
+ }, ae = (e) => y[e], z = (e) => {
157
+ e != null && e.createNew && E.name === "environment" && $();
158
158
  };
159
159
  ue(
160
- () => [E.params[m.Collection], E.params[m.Environment]],
160
+ () => [E.params[i.Collection], E.params[i.Environment]],
161
161
  ([e, o]) => {
162
- e ? r.value = o : r.value = "default";
162
+ e ? s.value = o : s.value = "default";
163
163
  }
164
164
  ), me(() => {
165
- r.value = E.params[m.Environment] || "default", j.hotKeys.on(W);
166
- const e = E.params[m.Collection];
167
- e && !k[e] && _(e);
168
- }), ce(() => j.hotKeys.off(W));
165
+ s.value = E.params[i.Environment] || "default", N.hotKeys.on(z);
166
+ const e = E.params[i.Collection];
167
+ e && !y[e] && _(e);
168
+ }), ce(() => N.hotKeys.off(z));
169
169
  const le = (e, o, n) => {
170
170
  var a, l;
171
171
  const t = n ? {
172
172
  name: "environment.collection",
173
173
  params: {
174
- [m.Workspace]: (a = x.value) == null ? void 0 : a.uid,
175
- [m.Collection]: n,
176
- [m.Environment]: o
174
+ [i.Workspace]: (a = x.value) == null ? void 0 : a.uid,
175
+ [i.Collection]: n,
176
+ [i.Environment]: o
177
177
  }
178
178
  } : {
179
179
  name: "environment.default",
180
180
  params: {
181
- [m.Workspace]: (l = x.value) == null ? void 0 : l.uid,
182
- [m.Environment]: o
181
+ [i.Workspace]: (l = x.value) == null ? void 0 : l.uid,
182
+ [i.Environment]: o
183
183
  }
184
184
  };
185
185
  e.metaKey ? window.open(C.resolve(t).href, "_blank") : C.push(t);
186
186
  };
187
187
  function re() {
188
- d.value = void 0, b.value = void 0, M.value = void 0, S.hide();
188
+ d.value = void 0, b.value = void 0, S.value = void 0, M.hide();
189
189
  }
190
190
  function se(e) {
191
- i.value.some(
191
+ u.value.some(
192
192
  (n) => {
193
193
  const t = Object.keys(
194
194
  n["x-scalar-environments"] || {}
195
195
  ).includes(e);
196
- return U(
196
+ return W(
197
197
  t,
198
198
  n,
199
199
  b.value
200
200
  ), t;
201
201
  }
202
- ) || (e && d.value !== "default" && i.value.forEach((n) => {
202
+ ) || (e && d.value !== "default" && u.value.forEach((n) => {
203
203
  var t;
204
204
  if ((t = n["x-scalar-environments"]) != null && t[d.value ?? ""]) {
205
205
  const a = n["x-scalar-environments"][d.value ?? ""];
206
- a && (delete n["x-scalar-environments"][d.value ?? ""], n["x-scalar-environments"][e] = a, y.edit(
206
+ a && (delete n["x-scalar-environments"][d.value ?? ""], n["x-scalar-environments"][e] = a, k.edit(
207
207
  n.uid,
208
208
  "x-scalar-environments",
209
209
  n["x-scalar-environments"]
210
210
  ));
211
211
  }
212
- }), e && r.value === d.value && (r.value = e), d.value = void 0, b.value = void 0, M.value = void 0, S.hide());
212
+ }), e && s.value === d.value && (s.value = e), d.value = void 0, b.value = void 0, S.value = void 0, M.hide());
213
213
  }
214
- return (e, o) => (v(), g(Se, null, {
214
+ return (e, o) => (v(), g(Me, null, {
215
215
  default: c(() => [
216
- u(_e, { title: "Collections" }, {
216
+ m(_e, { title: "Collections" }, {
217
217
  content: c(() => [
218
218
  p("div", De, [
219
- u(Ie, null, {
219
+ m(Ie, null, {
220
220
  default: c(() => [
221
221
  (v(), g(T, {
222
222
  key: "default",
223
223
  class: "text-xs",
224
224
  isCopyable: !1,
225
+ to: {
226
+ name: "environment.default",
227
+ params: {
228
+ [r(i).Environment]: "default"
229
+ }
230
+ },
225
231
  type: "environment",
226
232
  variable: {
227
233
  name: "Global Environment",
@@ -229,29 +235,29 @@ const De = { class: "flex-1" }, Le = ["onClick"], Ue = { class: "flex h-5 max-w-
229
235
  icon: "Globe",
230
236
  isDefault: !0
231
237
  }
232
- })),
233
- (v(!0), $(z, null, A(s(i), (n) => {
238
+ }, null, 8, ["to"])),
239
+ (v(!0), V(A, null, B(r(u), (n) => {
234
240
  var t;
235
- return v(), $("li", {
241
+ return v(), V("li", {
236
242
  key: n.uid,
237
243
  class: "gap-1/2 flex flex-col"
238
244
  }, [
239
245
  p("button", {
240
246
  class: "hover:bg-b-2 group flex w-full items-center gap-1.5 break-words rounded p-1.5 text-left text-sm font-medium",
241
247
  type: "button",
242
- onClick: (a) => s(_)(n.uid)
248
+ onClick: (a) => r(_)(n.uid)
243
249
  }, [
244
- p("span", Ue, [
245
- u(s(he), {
250
+ p("span", We, [
251
+ m(r(he), {
246
252
  class: "text-sidebar-c-2 size-3.5 min-w-3.5 stroke-2 group-hover:hidden",
247
253
  src: n["x-scalar-icon"] || "interface-content-folder"
248
254
  }, null, 8, ["src"]),
249
255
  p("div", {
250
- class: B({
251
- "rotate-90": s(k)[n.uid]
256
+ class: L({
257
+ "rotate-90": r(y)[n.uid]
252
258
  })
253
259
  }, [
254
- u(s(J), {
260
+ m(r(J), {
255
261
  class: "text-c-3 hover:text-c-1 hidden text-sm group-hover:block",
256
262
  icon: "ChevronRight",
257
263
  size: "md"
@@ -259,19 +265,26 @@ const De = { class: "flex-1" }, Le = ["onClick"], Ue = { class: "flex h-5 max-w-
259
265
  ], 2)
260
266
  ]),
261
267
  K(" " + F(((t = n.info) == null ? void 0 : t.title) ?? ""), 1)
262
- ], 8, Le),
268
+ ], 8, Ue),
263
269
  de(p("div", {
264
- class: B({
270
+ class: L({
265
271
  "before:bg-border before:z-1 relative mb-[.5px] before:pointer-events-none before:absolute before:left-3 before:top-0 before:h-[calc(100%_+_.5px)] before:w-[.5px] last:mb-0 last:before:h-full": Object.keys(n["x-scalar-environments"] || {}).length > 0
266
272
  })
267
273
  }, [
268
- (v(!0), $(z, null, A(n["x-scalar-environments"], (a, l) => (v(), g(T, {
274
+ (v(!0), V(A, null, B(n["x-scalar-environments"], (a, l) => (v(), g(T, {
269
275
  key: l,
270
276
  class: "text-xs [&>a]:pl-5",
271
277
  collectionId: n.uid,
272
278
  isCopyable: !1,
273
279
  isDeletable: !0,
274
280
  isRenameable: !0,
281
+ to: {
282
+ name: "collection.environment",
283
+ params: {
284
+ [r(i).Collection]: n.uid,
285
+ [r(i).Environment]: l
286
+ }
287
+ },
275
288
  type: "environment",
276
289
  variable: {
277
290
  name: l,
@@ -284,15 +297,15 @@ const De = { class: "flex-1" }, Le = ["onClick"], Ue = { class: "flex h-5 max-w-
284
297
  onColorModal: (f) => Z(l),
285
298
  onDelete: (f) => ne(l),
286
299
  onRename: (f) => Y(l, n.uid)
287
- }, null, 8, ["collectionId", "variable", "onClick", "onColorModal", "onDelete", "onRename"]))), 128)),
288
- Object.keys(n["x-scalar-environments"] || {}).length === 0 ? (v(), g(s(xe), {
300
+ }, null, 8, ["collectionId", "to", "variable", "onClick", "onColorModal", "onDelete", "onRename"]))), 128)),
301
+ Object.keys(n["x-scalar-environments"] || {}).length === 0 ? (v(), g(r(xe), {
289
302
  key: 0,
290
303
  class: "text-c-1 hover:bg-b-2 flex h-8 w-full justify-start gap-1.5 py-0 pl-6 text-xs",
291
304
  variant: "ghost",
292
- onClick: (a) => V(n.uid)
305
+ onClick: (a) => $(n.uid)
293
306
  }, {
294
307
  default: c(() => [
295
- u(s(J), {
308
+ m(r(J), {
296
309
  icon: "Add",
297
310
  size: "sm"
298
311
  }),
@@ -311,8 +324,8 @@ const De = { class: "flex-1" }, Le = ["onClick"], Ue = { class: "flex h-5 max-w-
311
324
  ])
312
325
  ]),
313
326
  button: c(() => [
314
- u(we, {
315
- click: V,
327
+ m(we, {
328
+ click: $,
316
329
  hotkey: "N"
317
330
  }, {
318
331
  title: c(() => o[3] || (o[3] = [
@@ -323,27 +336,27 @@ const De = { class: "flex-1" }, Le = ["onClick"], Ue = { class: "flex h-5 max-w-
323
336
  ]),
324
337
  _: 1
325
338
  }),
326
- u(Me, { class: "flex-1" }, {
339
+ m(Se, { class: "flex-1" }, {
327
340
  default: c(() => [
328
- u(Ve, null, pe({
341
+ m($e, null, pe({
329
342
  default: c(() => [
330
- r.value && s(x) ? (v(), g(ke, {
343
+ s.value && r(x) ? (v(), g(ye, {
331
344
  key: 0,
332
- class: "border-t py-2 pl-px pr-2 md:px-4",
333
- envVariables: s(H),
334
- environment: s(O),
345
+ class: "py-2 pl-px pr-2 md:px-4",
346
+ envVariables: r(H),
347
+ environment: r(j),
335
348
  isCopyable: "",
336
349
  language: "json",
337
350
  lineNumbers: "",
338
351
  lint: "",
339
352
  modelValue: oe(),
340
- workspace: s(x),
353
+ workspace: r(x),
341
354
  "onUpdate:modelValue": X
342
355
  }, null, 8, ["envVariables", "environment", "modelValue", "workspace"])) : G("", !0)
343
356
  ]),
344
357
  _: 2
345
358
  }, [
346
- r.value ? {
359
+ s.value ? {
347
360
  name: "title",
348
361
  fn: c(() => [
349
362
  p("span", null, F(te()), 1)
@@ -354,27 +367,27 @@ const De = { class: "flex-1" }, Le = ["onClick"], Ue = { class: "flex h-5 max-w-
354
367
  ]),
355
368
  _: 1
356
369
  }),
357
- u(Ne, {
370
+ m(je, {
358
371
  selectedColor: D.value,
359
- state: s(w),
360
- onCancel: o[0] || (o[0] = (n) => s(w).hide()),
372
+ state: r(w),
373
+ onCancel: o[0] || (o[0] = (n) => r(w).hide()),
361
374
  onSubmit: ee
362
375
  }, null, 8, ["selectedColor", "state"]),
363
- u(Oe, {
364
- activeWorkspaceCollections: s(i),
376
+ m(Ne, {
377
+ activeWorkspaceCollections: r(u),
365
378
  collectionId: b.value,
366
- state: s(I),
367
- onCancel: o[1] || (o[1] = (n) => s(I).hide()),
379
+ state: r(I),
380
+ onCancel: o[1] || (o[1] = (n) => r(I).hide()),
368
381
  onSubmit: Q
369
382
  }, null, 8, ["activeWorkspaceCollections", "collectionId", "state"]),
370
- u(s(be), {
383
+ m(r(be), {
371
384
  size: "xxs",
372
- state: s(S),
385
+ state: r(M),
373
386
  title: `Edit ${d.value}`
374
387
  }, {
375
388
  default: c(() => [
376
- u(ge, {
377
- name: M.value ?? "",
389
+ m(ge, {
390
+ name: S.value ?? "",
378
391
  onClose: re,
379
392
  onEdit: se
380
393
  }, null, 8, ["name"])
@@ -1 +1 @@
1
- {"version":3,"file":"EnvironmentColorModal.vue.d.ts","sourceRoot":"","sources":["../../../src/views/Environment/EnvironmentColorModal.vue"],"names":[],"mappings":"AAgDA,OAAO,EAAE,KAAK,UAAU,EAAe,MAAM,oBAAoB,CAAA;AAOjE,KAAK,WAAW,GAAG;IACjB,KAAK,EAAE,UAAU,CAAA;IACjB,aAAa,EAAE,MAAM,CAAA;CACtB,CAAC;;;;;;;;AAoJF,wBAQG"}
1
+ {"version":3,"file":"EnvironmentColorModal.vue.d.ts","sourceRoot":"","sources":["../../../src/views/Environment/EnvironmentColorModal.vue"],"names":[],"mappings":"AAgDA,OAAO,EAAe,KAAK,UAAU,EAAE,MAAM,oBAAoB,CAAA;AASjE,KAAK,WAAW,GAAG;IACjB,KAAK,EAAE,UAAU,CAAA;IACjB,aAAa,EAAE,MAAM,CAAA;CACtB,CAAC;;;;;;;;AAoJF,wBAQG"}
@@ -1,6 +1,6 @@
1
1
  import { defineComponent as m, ref as u, openBlock as d, createBlock as f, unref as p, withCtx as C, createElementVNode as v, createVNode as n } from "vue";
2
- import _ from "../../components/Sidebar/Actions/SidebarListElementForm.vue.js";
3
- import { ScalarModal as x } from "@scalar/components";
2
+ import { ScalarModal as _ } from "@scalar/components";
3
+ import x from "../../components/Sidebar/Actions/SidebarListElementForm.vue.js";
4
4
  import S from "./EnvironmentColors.vue.js";
5
5
  const b = { class: "flex flex-col gap-4" }, M = /* @__PURE__ */ m({
6
6
  __name: "EnvironmentColorModal",
@@ -15,7 +15,7 @@ const b = { class: "flex flex-col gap-4" }, M = /* @__PURE__ */ m({
15
15
  }, i = () => {
16
16
  o("submit", e.value), e.value = "";
17
17
  };
18
- return (t, l) => (d(), f(p(x), {
18
+ return (t, l) => (d(), f(p(_), {
19
19
  size: "xxs",
20
20
  state: t.state,
21
21
  title: "Edit Environment Color"
@@ -24,10 +24,10 @@ const b = { class: "flex flex-col gap-4" }, M = /* @__PURE__ */ m({
24
24
  v("div", b, [
25
25
  n(S, {
26
26
  activeColor: e.value || s.selectedColor,
27
- class: "p-1 w-full",
27
+ class: "w-full p-1",
28
28
  onSelect: c
29
29
  }, null, 8, ["activeColor"]),
30
- n(_, {
30
+ n(x, {
31
31
  onCancel: l[0] || (l[0] = (E) => o("cancel")),
32
32
  onSubmit: i
33
33
  })
@@ -47,7 +47,7 @@ const R = ["onClick"], T = ["placeholder"], U = /* @__PURE__ */ F({
47
47
  ], 6)) : c("", !0),
48
48
  u.value || !e.selector ? (t(), d("div", {
49
49
  key: 1,
50
- class: s(["color-selector flex flex-row gap-1.5 items-center justify-between space-x-1", e.selector ? "h-4" : "min-h-10 min-w-[296px]"])
50
+ class: s(["color-selector flex flex-row items-center justify-between gap-1.5 space-x-1", e.selector ? "h-4" : "min-h-10 min-w-[296px]"])
51
51
  }, [
52
52
  (t(), d(w, null, j(k, (r) => n("div", {
53
53
  key: r.color,
@@ -62,9 +62,9 @@ const R = ["onClick"], T = ["placeholder"], U = /* @__PURE__ */ F({
62
62
  size: "xs"
63
63
  }, null, 8, ["class"])) : c("", !0)
64
64
  ], 14, R)), 64)),
65
- i[2] || (i[2] = n("hr", { class: "w-0.5 h-5 border-ghost border-l" }, null, -1)),
65
+ i[2] || (i[2] = n("hr", { class: "border-ghost h-5 w-0.5 border-l" }, null, -1)),
66
66
  n("label", {
67
- class: s(["cursor-pointer flex flex-row justify-center gap-2 items-center rounded-full z-10", e.selector ? "h-4 w-4" : "h-5 w-5"]),
67
+ class: s(["z-10 flex cursor-pointer flex-row items-center justify-center gap-2 rounded-full", e.selector ? "h-4 w-4" : "h-5 w-5"]),
68
68
  style: f(b.value),
69
69
  onClick: y
70
70
  }, [
@@ -79,20 +79,20 @@ const R = ["onClick"], T = ["placeholder"], U = /* @__PURE__ */ F({
79
79
  ], 64)),
80
80
  a.value ? (t(), d("div", {
81
81
  key: 1,
82
- class: s(["color-selector flex flex-1 gap-2 items-center rounded", e.selector ? "h-4" : "min-h-10"])
82
+ class: s(["color-selector flex flex-1 items-center gap-2 rounded", e.selector ? "h-4" : "min-h-10"])
83
83
  }, [
84
84
  n("span", {
85
- class: s(["absolute border border-dashed rounded-full", e.selector ? "h-4 w-4" : "h-5 w-5"])
85
+ class: s(["absolute rounded-full border border-dashed", e.selector ? "h-4 w-4" : "h-5 w-5"])
86
86
  }, null, 2),
87
87
  n("span", {
88
- class: s(["rounded-full z-[1]", e.selector ? "h-4 w-4" : "h-5 w-5"]),
88
+ class: s(["z-[1] rounded-full", e.selector ? "h-4 w-4" : "h-5 w-5"]),
89
89
  style: f(b.value)
90
90
  }, null, 6),
91
91
  D(n("input", {
92
92
  ref_key: "customColorInputRef",
93
93
  ref: C,
94
94
  "onUpdate:modelValue": i[0] || (i[0] = (r) => o.value = r),
95
- class: "border-transparent flex-1 outline-none w-full text-sm",
95
+ class: "w-full flex-1 border-transparent text-sm outline-none",
96
96
  placeholder: l.activeColor || "#000000",
97
97
  type: "text",
98
98
  onInput: i[1] || (i[1] = (r) => g(o.value))
@@ -100,7 +100,7 @@ const R = ["onClick"], T = ["placeholder"], U = /* @__PURE__ */ F({
100
100
  [V, o.value]
101
101
  ]),
102
102
  n("button", {
103
- class: "text-c-3 hover:bg-b-2 p-1.5 rounded-lg",
103
+ class: "text-c-3 hover:bg-b-2 rounded-lg p-1.5",
104
104
  type: "button",
105
105
  onClick: y
106
106
  }, [
@@ -1,5 +1,5 @@
1
- import { type EnvVariables } from '../../libs/env-helpers';
2
1
  import type { Environment } from '@scalar/oas-utils/entities/environment';
2
+ import { type EnvVariables } from '../../libs/env-helpers';
3
3
  type __VLS_Props = {
4
4
  query: string;
5
5
  environment: Environment;
@@ -1 +1 @@
1
- {"version":3,"file":"EnvironmentVariableDropdown.vue.d.ts","sourceRoot":"","sources":["../../../src/views/Environment/EnvironmentVariableDropdown.vue"],"names":[],"mappings":"AA6KA,OAAO,EAAE,KAAK,YAAY,EAAe,MAAM,oBAAoB,CAAA;AAEnE,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,wCAAwC,CAAA;AAQzE,KAAK,WAAW,GAAG;IACjB,KAAK,EAAE,MAAM,CAAA;IACb,WAAW,EAAE,WAAW,CAAA;IACxB,YAAY,EAAE,YAAY,CAAA;IAE1B,gBAAgB,CAAC,EAAE;QAAE,IAAI,EAAE,MAAM,CAAC;QAAC,GAAG,EAAE,MAAM,CAAA;KAAE,CAAA;CACjD,CAAC;;gCAwDiC,IAAI,GAAG,MAAM;;;;;;;AAqPhD,wBAQG"}
1
+ {"version":3,"file":"EnvironmentVariableDropdown.vue.d.ts","sourceRoot":"","sources":["../../../src/views/Environment/EnvironmentVariableDropdown.vue"],"names":[],"mappings":"AA8KA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,wCAAwC,CAAA;AAOzE,OAAO,EAAe,KAAK,YAAY,EAAE,MAAM,oBAAoB,CAAA;AAInE,KAAK,WAAW,GAAG;IACjB,KAAK,EAAE,MAAM,CAAA;IACb,WAAW,EAAE,WAAW,CAAA;IACxB,YAAY,EAAE,YAAY,CAAA;IAE1B,gBAAgB,CAAC,EAAE;QAAE,IAAI,EAAE,MAAM,CAAC;QAAC,GAAG,EAAE,MAAM,CAAA;KAAE,CAAA;CACjD,CAAC;;gCAwDiC,IAAI,GAAG,MAAM;;;;;;;AAqPhD,wBAQG"}