@scalar/api-client 2.2.45 → 2.2.48

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 (364) hide show
  1. package/CHANGELOG.md +82 -0
  2. package/README.md +1 -1
  3. package/dist/components/AddressBar/AddressBar.vue.d.ts +1 -1
  4. package/dist/components/AddressBar/AddressBar.vue.js +2 -2
  5. package/dist/components/AddressBar/AddressBar.vue2.js +1 -2
  6. package/dist/components/AddressBar/AddressBarHistory.vue.d.ts.map +1 -1
  7. package/dist/components/AddressBar/AddressBarHistory.vue.js +2 -2
  8. package/dist/components/AddressBar/AddressBarHistory.vue2.js +35 -30
  9. package/dist/components/AddressBar/index.d.ts +1 -1
  10. package/dist/components/CodeInput/CodeInput.vue.d.ts +5 -5
  11. package/dist/components/CodeInput/CodeInput.vue.d.ts.map +1 -1
  12. package/dist/components/CodeInput/CodeInput.vue.js +1 -1
  13. package/dist/components/CodeInput/CodeInput.vue2.js +76 -70
  14. package/dist/components/CodeInput/codeVariableWidget.d.ts +5 -5
  15. package/dist/components/CodeInput/codeVariableWidget.d.ts.map +1 -1
  16. package/dist/components/CodeInput/codeVariableWidget.js +2 -3
  17. package/dist/components/CommandPalette/CommandActionForm.vue.d.ts +4 -4
  18. package/dist/components/CommandPalette/CommandActionForm.vue.d.ts.map +1 -1
  19. package/dist/components/CommandPalette/CommandActionForm.vue.js +10 -10
  20. package/dist/components/CommandPalette/CommandActionInput.vue.d.ts +2 -2
  21. package/dist/components/CommandPalette/CommandActionInput.vue.js +1 -1
  22. package/dist/components/CommandPalette/CommandPaletteCollection.vue.d.ts +2 -2
  23. package/dist/components/CommandPalette/CommandPaletteExample.vue.d.ts +2 -2
  24. package/dist/components/CommandPalette/CommandPaletteExample.vue.d.ts.map +1 -1
  25. package/dist/components/CommandPalette/CommandPaletteExample.vue.js +46 -40
  26. package/dist/components/CommandPalette/CommandPaletteImport.vue.d.ts +2 -2
  27. package/dist/components/CommandPalette/CommandPaletteImport.vue.js +1 -1
  28. package/dist/components/CommandPalette/CommandPaletteRequest.vue.d.ts +2 -2
  29. package/dist/components/CommandPalette/CommandPaletteServer.vue.d.ts +2 -2
  30. package/dist/components/CommandPalette/CommandPaletteTag.vue.d.ts +2 -2
  31. package/dist/components/CommandPalette/CommandPaletteWorkspace.vue.d.ts +2 -2
  32. package/dist/components/CommandPalette/TheCommandPalette.vue.d.ts +14 -14
  33. package/dist/components/CommandPalette/TheCommandPalette.vue.d.ts.map +1 -1
  34. package/dist/components/CommandPalette/TheCommandPalette.vue.js +2 -2
  35. package/dist/components/CommandPalette/TheCommandPalette.vue2.js +13 -13
  36. package/dist/components/CommandPalette/WatchModeToggle.vue.d.ts +1 -1
  37. package/dist/components/CommandPalette/WatchModeToggle.vue.js +1 -1
  38. package/dist/components/CommandPalette/index.d.ts +1 -1
  39. package/dist/components/ContextBar.vue.d.ts +1 -1
  40. package/dist/components/DataTable/DataTable.vue.d.ts.map +1 -1
  41. package/dist/components/DataTable/DataTableCell.vue.d.ts.map +1 -1
  42. package/dist/components/DataTable/DataTableCheckbox.vue.d.ts +1 -1
  43. package/dist/components/DataTable/DataTableCheckbox.vue.js +6 -6
  44. package/dist/components/DataTable/DataTableInput.vue.d.ts +6 -6
  45. package/dist/components/DataTable/DataTableInput.vue.d.ts.map +1 -1
  46. package/dist/components/DataTable/DataTableInput.vue.js +4 -4
  47. package/dist/components/DataTable/DataTableInput.vue2.js +22 -23
  48. package/dist/components/DataTable/DataTableInputSelect.vue.d.ts +3 -3
  49. package/dist/components/DataTable/DataTableInputSelect.vue.d.ts.map +1 -1
  50. package/dist/components/DataTable/DataTableInputSelect.vue.js +48 -48
  51. package/dist/components/DataTable/DataTableText.vue.d.ts.map +1 -1
  52. package/dist/components/DataTable/index.d.ts +8 -8
  53. package/dist/components/EmptyState.vue.d.ts.map +1 -1
  54. package/dist/components/EmptyState.vue.js +2 -2
  55. package/dist/components/EmptyState.vue2.js +13 -13
  56. package/dist/components/Form/Form.vue.d.ts.map +1 -1
  57. package/dist/components/HelpfulLink.vue.d.ts.map +1 -1
  58. package/dist/components/HttpMethod/HttpMethod.vue.d.ts +1 -1
  59. package/dist/components/HttpMethod/index.d.ts +1 -1
  60. package/dist/components/IconSelector.vue.d.ts +1 -1
  61. package/dist/components/IconSelector.vue.d.ts.map +1 -1
  62. package/dist/components/ImportCollection/DropEventListener.vue.d.ts +1 -1
  63. package/dist/components/ImportCollection/ImportCollectionModal.vue.d.ts +1 -1
  64. package/dist/components/ImportCollection/ImportNowButton.vue.d.ts +1 -1
  65. package/dist/components/ImportCollection/PasteEventListener.vue.d.ts +1 -1
  66. package/dist/components/ImportCollection/UrlQueryParameterChecker.vue.d.ts +1 -1
  67. package/dist/components/ImportCollection/hooks/useUrlPrefetcher.d.ts +2 -2
  68. package/dist/components/ImportCollection/index.d.ts +1 -1
  69. package/dist/components/ImportCurl/ImportCurlModal.vue.d.ts +3 -3
  70. package/dist/components/ScreenReader.vue.d.ts.map +1 -1
  71. package/dist/components/Search/useSearch.d.ts +4 -2
  72. package/dist/components/Search/useSearch.d.ts.map +1 -1
  73. package/dist/components/Search/useSearch.js +63 -56
  74. package/dist/components/Search/useSearch.test.d.ts +2 -0
  75. package/dist/components/Search/useSearch.test.d.ts.map +1 -0
  76. package/dist/components/Server/ServerDropdown.test.d.ts +2 -0
  77. package/dist/components/Server/ServerDropdown.test.d.ts.map +1 -0
  78. package/dist/components/Server/ServerDropdownItem.vue.d.ts +1 -1
  79. package/dist/components/Server/ServerDropdownItem.vue.d.ts.map +1 -1
  80. package/dist/components/Server/ServerDropdownItem.vue.js +1 -1
  81. package/dist/components/Server/ServerDropdownItem.vue2.js +27 -28
  82. package/dist/components/Server/ServerVariablesForm.vue.d.ts +2 -2
  83. package/dist/components/Server/ServerVariablesForm.vue.d.ts.map +1 -1
  84. package/dist/components/Server/ServerVariablesSelect.vue.d.ts +2 -2
  85. package/dist/components/Server/ServerVariablesSelect.vue.d.ts.map +1 -1
  86. package/dist/components/Server/ServerVariablesTextbox.vue.d.ts +2 -2
  87. package/dist/components/Server/ServerVariablesTextbox.vue.d.ts.map +1 -1
  88. package/dist/components/Server/ServerVariablesTextbox.vue.js +9 -9
  89. package/dist/components/Server/index.d.ts +2 -2
  90. package/dist/components/SideNav/SideNav.vue.d.ts.map +1 -1
  91. package/dist/components/SideNav/SideNav.vue.js +19 -19
  92. package/dist/components/SideNav/SideNavLink.vue.d.ts.map +1 -1
  93. package/dist/components/SideNav/SideNavLink.vue.js +11 -11
  94. package/dist/components/SideNav/SideNavRouterLink.vue.d.ts +1 -1
  95. package/dist/components/SideNav/SideNavRouterLink.vue.d.ts.map +1 -1
  96. package/dist/components/SideNav/SideNavRouterLink.vue.js +19 -13
  97. package/dist/components/Sidebar/Actions/DeleteSidebarListElement.vue.d.ts +3 -3
  98. package/dist/components/Sidebar/Actions/DeleteSidebarListElement.vue.d.ts.map +1 -1
  99. package/dist/components/Sidebar/Actions/EditSidebarListCollection.vue.d.ts +2 -2
  100. package/dist/components/Sidebar/Actions/EditSidebarListElement.vue.d.ts +2 -2
  101. package/dist/components/Sidebar/Actions/SidebarListElementForm.vue.d.ts +2 -2
  102. package/dist/components/Sidebar/Actions/SidebarListElementForm.vue.d.ts.map +1 -1
  103. package/dist/components/Sidebar/Sidebar.vue.d.ts.map +1 -1
  104. package/dist/components/Sidebar/Sidebar.vue.js +1 -1
  105. package/dist/components/Sidebar/Sidebar.vue2.js +5 -5
  106. package/dist/components/Sidebar/SidebarButton.vue.d.ts.map +1 -1
  107. package/dist/components/Sidebar/SidebarListElement.vue.d.ts +3 -3
  108. package/dist/components/Sidebar/SidebarListElement.vue.js +1 -1
  109. package/dist/components/Sidebar/SidebarListElement.vue2.js +9 -9
  110. package/dist/components/Sidebar/SidebarListElementActions.vue.d.ts +3 -3
  111. package/dist/components/Sidebar/SidebarListElementActions.vue.d.ts.map +1 -1
  112. package/dist/components/Sidebar/SidebarToggle.vue.d.ts +1 -1
  113. package/dist/components/Sidebar/index.d.ts +1 -1
  114. package/dist/components/TopNav/TopNav.vue.d.ts.map +1 -1
  115. package/dist/components/TopNav/TopNav.vue.js +74 -73
  116. package/dist/components/TopNav/TopNavItem.vue.d.ts +5 -5
  117. package/dist/components/ViewLayout/ViewLayoutCollapse.vue.d.ts.map +1 -1
  118. package/dist/components/ViewLayout/ViewLayoutSection.vue.d.ts.map +1 -1
  119. package/dist/components/ViewLayout/ViewLayoutSection.vue.js +3 -3
  120. package/dist/components/index.d.ts +3 -3
  121. package/dist/hooks/index.d.ts +5 -4
  122. package/dist/hooks/index.d.ts.map +1 -1
  123. package/dist/hooks/index.js +4 -2
  124. package/dist/hooks/useResponseBody.d.ts +18 -0
  125. package/dist/hooks/useResponseBody.d.ts.map +1 -0
  126. package/dist/hooks/useResponseBody.js +28 -0
  127. package/dist/hooks/useResponseBody.test.d.ts +2 -0
  128. package/dist/hooks/useResponseBody.test.d.ts.map +1 -0
  129. package/dist/index.d.ts +4 -4
  130. package/dist/layouts/App/ApiClientApp.vue.d.ts +2 -2
  131. package/dist/layouts/App/create-api-client-app.d.ts +106 -66
  132. package/dist/layouts/App/create-api-client-app.d.ts.map +1 -1
  133. package/dist/layouts/App/create-api-client-app.test.d.ts +2 -0
  134. package/dist/layouts/App/create-api-client-app.test.d.ts.map +1 -0
  135. package/dist/layouts/App/index.d.ts +2 -2
  136. package/dist/layouts/Modal/create-api-client-modal.d.ts +215 -135
  137. package/dist/layouts/Modal/create-api-client-modal.d.ts.map +1 -1
  138. package/dist/layouts/Modal/create-api-client-modal.test.d.ts +2 -0
  139. package/dist/layouts/Modal/create-api-client-modal.test.d.ts.map +1 -0
  140. package/dist/layouts/Modal/index.d.ts +2 -2
  141. package/dist/layouts/Web/create-api-client-web.d.ts +106 -66
  142. package/dist/layouts/Web/create-api-client-web.d.ts.map +1 -1
  143. package/dist/layouts/Web/create-api-client-web.test.d.ts +2 -0
  144. package/dist/layouts/Web/create-api-client-web.test.d.ts.map +1 -0
  145. package/dist/layouts/Web/index.d.ts +2 -2
  146. package/dist/libs/create-client.d.ts +106 -66
  147. package/dist/libs/create-client.d.ts.map +1 -1
  148. package/dist/libs/create-client.js +56 -57
  149. package/dist/libs/env-helpers.test.d.ts +2 -0
  150. package/dist/libs/env-helpers.test.d.ts.map +1 -0
  151. package/dist/libs/environment-parser.d.ts +1 -1
  152. package/dist/libs/event-bus.test.d.ts +2 -0
  153. package/dist/libs/event-bus.test.d.ts.map +1 -0
  154. package/dist/libs/extractAttachmentFilename.test.d.ts +2 -0
  155. package/dist/libs/extractAttachmentFilename.test.d.ts.map +1 -0
  156. package/dist/libs/find-request.test.d.ts +2 -0
  157. package/dist/libs/find-request.test.d.ts.map +1 -0
  158. package/dist/libs/getOpenApiDocumentDetails.d.ts +1 -1
  159. package/dist/libs/getOpenApiDocumentDetails.d.ts.map +1 -1
  160. package/dist/libs/hot-keys.d.ts +1 -1
  161. package/dist/libs/importers/curl.js +1 -1
  162. package/dist/libs/importers/curl.test.d.ts +2 -0
  163. package/dist/libs/importers/curl.test.d.ts.map +1 -0
  164. package/dist/libs/importers/index.d.ts +1 -1
  165. package/dist/libs/index.d.ts +16 -16
  166. package/dist/libs/local-storage.d.ts +1 -1
  167. package/dist/libs/normalize-headers.test.d.ts +2 -0
  168. package/dist/libs/normalize-headers.test.d.ts.map +1 -0
  169. package/dist/libs/parse-curl.test.d.ts +2 -0
  170. package/dist/libs/parse-curl.test.d.ts.map +1 -0
  171. package/dist/libs/send-request/build-request-security.d.ts.map +1 -1
  172. package/dist/libs/send-request/build-request-security.js +13 -12
  173. package/dist/libs/send-request/build-request-security.test.d.ts +2 -0
  174. package/dist/libs/send-request/build-request-security.test.d.ts.map +1 -0
  175. package/dist/libs/send-request/create-fetch-auth.test.d.ts +2 -0
  176. package/dist/libs/send-request/create-fetch-auth.test.d.ts.map +1 -0
  177. package/dist/libs/send-request/create-fetch-body.test.d.ts +2 -0
  178. package/dist/libs/send-request/create-fetch-body.test.d.ts.map +1 -0
  179. package/dist/libs/send-request/create-fetch-headers.test.d.ts +2 -0
  180. package/dist/libs/send-request/create-fetch-headers.test.d.ts.map +1 -0
  181. package/dist/libs/send-request/create-fetch-query-params.test.d.ts +2 -0
  182. package/dist/libs/send-request/create-fetch-query-params.test.d.ts.map +1 -0
  183. package/dist/libs/send-request/create-request-operation.d.ts +4 -4
  184. package/dist/libs/send-request/create-request-operation.d.ts.map +1 -1
  185. package/dist/libs/send-request/create-request-operation.js +54 -54
  186. package/dist/libs/send-request/create-request-operation.test.d.ts +171 -0
  187. package/dist/libs/send-request/create-request-operation.test.d.ts.map +1 -0
  188. package/dist/libs/send-request/decode-buffer.test.d.ts +2 -0
  189. package/dist/libs/send-request/decode-buffer.test.d.ts.map +1 -0
  190. package/dist/libs/send-request/index.d.ts +2 -2
  191. package/dist/libs/send-request/set-request-cookies.d.ts +1 -1
  192. package/dist/libs/send-request/set-request-cookies.d.ts.map +1 -1
  193. package/dist/libs/send-request/set-request-cookies.test.d.ts +2 -0
  194. package/dist/libs/send-request/set-request-cookies.test.d.ts.map +1 -0
  195. package/dist/libs/string-template.test.d.ts +2 -0
  196. package/dist/libs/string-template.test.d.ts.map +1 -0
  197. package/dist/router.d.ts +1 -1
  198. package/dist/routes.d.ts +27 -27
  199. package/dist/routes.js +4 -4
  200. package/dist/routes.test.d.ts +2 -0
  201. package/dist/routes.test.d.ts.map +1 -0
  202. package/dist/store/active-entities.d.ts +10 -6
  203. package/dist/store/active-entities.d.ts.map +1 -1
  204. package/dist/store/collections.d.ts +1 -1
  205. package/dist/store/collections.d.ts.map +1 -1
  206. package/dist/store/collections.js +17 -14
  207. package/dist/store/collections.test.d.ts +2 -0
  208. package/dist/store/collections.test.d.ts.map +1 -0
  209. package/dist/store/events.d.ts +7 -7
  210. package/dist/store/import-spec.d.ts +1 -1
  211. package/dist/store/index.d.ts +2 -2
  212. package/dist/store/request-example.d.ts +52 -52
  213. package/dist/store/request-example.d.ts.map +1 -1
  214. package/dist/store/request.test.d.ts +2 -0
  215. package/dist/store/request.test.d.ts.map +1 -0
  216. package/dist/store/requests.d.ts +1 -1
  217. package/dist/store/router-params.d.ts +1 -1
  218. package/dist/store/store.d.ts +103 -63
  219. package/dist/store/store.d.ts.map +1 -1
  220. package/dist/store/store.js +1 -1
  221. package/dist/store/workspace.d.ts +44 -4
  222. package/dist/store/workspace.d.ts.map +1 -1
  223. package/dist/style.css +1 -1
  224. package/dist/views/Components/CodeSnippet/CodeSnippet.test.d.ts +2 -0
  225. package/dist/views/Components/CodeSnippet/CodeSnippet.test.d.ts.map +1 -0
  226. package/dist/views/Components/CodeSnippet/CodeSnippet.vue.d.ts +13 -0
  227. package/dist/views/Components/CodeSnippet/CodeSnippet.vue.d.ts.map +1 -0
  228. package/dist/views/Components/CodeSnippet/CodeSnippet.vue.js +46 -0
  229. package/dist/views/Components/CodeSnippet/CodeSnippet.vue2.js +4 -0
  230. package/dist/views/Components/CodeSnippet/helpers/convert-to-har-request.d.ts +28 -0
  231. package/dist/views/Components/CodeSnippet/helpers/convert-to-har-request.d.ts.map +1 -0
  232. package/dist/views/Components/CodeSnippet/helpers/convert-to-har-request.js +64 -0
  233. package/dist/views/Components/CodeSnippet/helpers/convert-to-har-request.test.d.ts +2 -0
  234. package/dist/views/Components/CodeSnippet/helpers/convert-to-har-request.test.d.ts.map +1 -0
  235. package/dist/views/Components/CodeSnippet/helpers/get-har-request.d.ts +12 -0
  236. package/dist/views/Components/CodeSnippet/helpers/get-har-request.d.ts.map +1 -0
  237. package/dist/views/Components/CodeSnippet/helpers/get-har-request.js +47 -0
  238. package/dist/views/Components/CodeSnippet/helpers/get-har-request.test.d.ts +2 -0
  239. package/dist/views/Components/CodeSnippet/helpers/get-har-request.test.d.ts.map +1 -0
  240. package/dist/views/Components/CodeSnippet/helpers/get-snippet.d.ts +13 -0
  241. package/dist/views/Components/CodeSnippet/helpers/get-snippet.d.ts.map +1 -0
  242. package/dist/views/Components/CodeSnippet/helpers/get-snippet.js +47 -0
  243. package/dist/views/Components/CodeSnippet/helpers/get-snippet.test.d.ts +2 -0
  244. package/dist/views/Components/CodeSnippet/helpers/get-snippet.test.d.ts.map +1 -0
  245. package/dist/views/Components/CodeSnippet/index.d.ts +5 -0
  246. package/dist/views/Components/CodeSnippet/index.d.ts.map +1 -0
  247. package/dist/views/Components/CodeSnippet/index.js +10 -0
  248. package/dist/views/Cookies/CookieModal.vue.d.ts +3 -3
  249. package/dist/views/Cookies/Cookies.vue.d.ts.map +1 -1
  250. package/dist/views/Cookies/Cookies.vue2.js +77 -70
  251. package/dist/views/Environment/Environment.vue.d.ts.map +1 -1
  252. package/dist/views/Environment/Environment.vue2.js +131 -118
  253. package/dist/views/Environment/EnvironmentColorModal.vue.d.ts +2 -2
  254. package/dist/views/Environment/EnvironmentColors.vue.d.ts +1 -1
  255. package/dist/views/Environment/EnvironmentModal.vue.d.ts +6 -6
  256. package/dist/views/Environment/EnvironmentModal.vue.d.ts.map +1 -1
  257. package/dist/views/Environment/EnvironmentModal.vue.js +1 -1
  258. package/dist/views/Environment/EnvironmentVariableDropdown.vue.d.ts +2 -2
  259. package/dist/views/Request/Request.vue.d.ts +2 -2
  260. package/dist/views/Request/Request.vue.d.ts.map +1 -1
  261. package/dist/views/Request/Request.vue.js +2 -2
  262. package/dist/views/Request/Request.vue2.js +92 -86
  263. package/dist/views/Request/RequestSection/RequestAuth/DeleteRequestAuthModal.vue.d.ts +2 -2
  264. package/dist/views/Request/RequestSection/RequestAuth/OAuthScopesInput.vue.d.ts +1 -1
  265. package/dist/views/Request/RequestSection/RequestAuth/RequestAuth.test.d.ts +2 -0
  266. package/dist/views/Request/RequestSection/RequestAuth/RequestAuth.test.d.ts.map +1 -0
  267. package/dist/views/Request/RequestSection/RequestAuth/RequestAuth.vue.d.ts +1 -1
  268. package/dist/views/Request/RequestSection/RequestAuth/RequestAuth.vue.d.ts.map +1 -1
  269. package/dist/views/Request/RequestSection/RequestAuth/RequestAuth.vue.js +2 -2
  270. package/dist/views/Request/RequestSection/RequestAuth/RequestAuthDataTableInput.vue.d.ts +4 -4
  271. package/dist/views/Request/RequestSection/RequestAuth/RequestAuthDataTableInput.vue.d.ts.map +1 -1
  272. package/dist/views/Request/RequestSection/RequestAuth/index.d.ts +2 -2
  273. package/dist/views/Request/RequestSection/RequestBody.test.d.ts +2 -0
  274. package/dist/views/Request/RequestSection/RequestBody.test.d.ts.map +1 -0
  275. package/dist/views/Request/RequestSection/RequestBody.vue.d.ts.map +1 -1
  276. package/dist/views/Request/RequestSection/RequestBody.vue.js +2 -2
  277. package/dist/views/Request/RequestSection/RequestBody.vue2.js +20 -20
  278. package/dist/views/Request/RequestSection/RequestCodeExample.vue.d.ts +3 -0
  279. package/dist/views/Request/RequestSection/RequestCodeExample.vue.d.ts.map +1 -0
  280. package/dist/views/Request/RequestSection/RequestCodeExample.vue.js +7 -0
  281. package/dist/views/Request/RequestSection/RequestCodeExample.vue2.js +141 -0
  282. package/dist/views/Request/RequestSection/RequestParams.vue.d.ts.map +1 -1
  283. package/dist/views/Request/RequestSection/RequestParams.vue.js +53 -59
  284. package/dist/views/Request/RequestSection/RequestSection.vue.d.ts.map +1 -1
  285. package/dist/views/Request/RequestSection/RequestSection.vue.js +1 -1
  286. package/dist/views/Request/RequestSection/RequestSection.vue2.js +71 -62
  287. package/dist/views/Request/RequestSection/RequestTable.vue.d.ts +8 -8
  288. package/dist/views/Request/RequestSection/RequestTable.vue.js +2 -2
  289. package/dist/views/Request/RequestSection/RequestTable.vue2.js +59 -59
  290. package/dist/views/Request/RequestSection/helpers/filter-security-requirements.d.ts +6 -0
  291. package/dist/views/Request/RequestSection/helpers/filter-security-requirements.d.ts.map +1 -0
  292. package/dist/views/Request/RequestSection/helpers/filter-security-requirements.js +20 -0
  293. package/dist/views/Request/RequestSection/helpers/filter-security-requirements.test.d.ts +2 -0
  294. package/dist/views/Request/RequestSection/helpers/filter-security-requirements.test.d.ts.map +1 -0
  295. package/dist/views/Request/RequestSection/helpers/getting-started.d.ts +6 -0
  296. package/dist/views/Request/RequestSection/helpers/getting-started.d.ts.map +1 -0
  297. package/dist/views/Request/RequestSection/helpers/getting-started.js +17 -0
  298. package/dist/views/Request/RequestSection/helpers/getting-started.test.d.ts +2 -0
  299. package/dist/views/Request/RequestSection/helpers/getting-started.test.d.ts.map +1 -0
  300. package/dist/views/Request/RequestSection/index.d.ts +2 -1
  301. package/dist/views/Request/RequestSection/index.d.ts.map +1 -1
  302. package/dist/views/Request/RequestSection/index.js +4 -2
  303. package/dist/views/Request/RequestSidebar.vue.d.ts +5 -5
  304. package/dist/views/Request/RequestSidebar.vue.d.ts.map +1 -1
  305. package/dist/views/Request/RequestSidebar.vue.js +2 -2
  306. package/dist/views/Request/RequestSidebar.vue2.js +212 -194
  307. package/dist/views/Request/RequestSidebarItem.vue.d.ts +18 -31
  308. package/dist/views/Request/RequestSidebarItem.vue.d.ts.map +1 -1
  309. package/dist/views/Request/RequestSidebarItem.vue.js +1 -1
  310. package/dist/views/Request/RequestSidebarItem.vue2.js +115 -116
  311. package/dist/views/Request/RequestSidebarItemMenu.vue.d.ts +5 -5
  312. package/dist/views/Request/RequestSidebarItemMenu.vue.d.ts.map +1 -1
  313. package/dist/views/Request/RequestSidebarItemMenu.vue.js +1 -1
  314. package/dist/views/Request/RequestSidebarItemMenu.vue2.js +120 -101
  315. package/dist/views/Request/RequestSubpageHeader.test.d.ts +2 -0
  316. package/dist/views/Request/RequestSubpageHeader.test.d.ts.map +1 -0
  317. package/dist/views/Request/RequestSubpageHeader.vue.d.ts +3 -3
  318. package/dist/views/Request/RequestSubpageHeader.vue.js +1 -1
  319. package/dist/views/Request/RequestSubpageHeader.vue2.js +1 -1
  320. package/dist/views/Request/ResponseSection/ResponseBody.vue.d.ts.map +1 -1
  321. package/dist/views/Request/ResponseSection/ResponseBody.vue.js +2 -2
  322. package/dist/views/Request/ResponseSection/ResponseBody.vue2.js +50 -64
  323. package/dist/views/Request/ResponseSection/ResponseBodyPreview.vue.d.ts +3 -3
  324. package/dist/views/Request/ResponseSection/ResponseBodyPreview.vue.d.ts.map +1 -1
  325. package/dist/views/Request/ResponseSection/ResponseBodyPreview.vue.js +1 -1
  326. package/dist/views/Request/ResponseSection/ResponseBodyPreview.vue2.js +27 -27
  327. package/dist/views/Request/ResponseSection/ResponseBodyRaw.vue.d.ts +1 -1
  328. package/dist/views/Request/ResponseSection/ResponseBodyRaw.vue.d.ts.map +1 -1
  329. package/dist/views/Request/ResponseSection/ResponseBodyRaw.vue.js +2 -2
  330. package/dist/views/Request/ResponseSection/ResponseBodyToggle.vue.d.ts +1 -1
  331. package/dist/views/Request/ResponseSection/ResponseBodyVirtual.test.d.ts +2 -0
  332. package/dist/views/Request/ResponseSection/ResponseBodyVirtual.test.d.ts.map +1 -0
  333. package/dist/views/Request/ResponseSection/ResponseBodyVirtual.vue.d.ts +6 -0
  334. package/dist/views/Request/ResponseSection/ResponseBodyVirtual.vue.d.ts.map +1 -1
  335. package/dist/views/Request/ResponseSection/ResponseBodyVirtual.vue.js +38 -19
  336. package/dist/views/Request/ResponseSection/ResponseEmpty.vue2.js +1 -1
  337. package/dist/views/Request/ResponseSection/ResponseSection.vue.d.ts.map +1 -1
  338. package/dist/views/Request/ResponseSection/ResponseSection.vue.js +1 -1
  339. package/dist/views/Request/ResponseSection/ResponseSection.vue2.js +30 -28
  340. package/dist/views/Request/ResponseSection/index.d.ts +1 -1
  341. package/dist/views/Request/components/index.d.ts +1 -1
  342. package/dist/views/Request/consts/index.d.ts +3 -3
  343. package/dist/views/Request/handle-drag.d.ts +2 -2
  344. package/dist/views/Request/libs/auth.d.ts +1 -1
  345. package/dist/views/Request/libs/auth.test.d.ts +2 -0
  346. package/dist/views/Request/libs/auth.test.d.ts.map +1 -0
  347. package/dist/views/Request/libs/index.d.ts +2 -2
  348. package/dist/views/Request/libs/oauth2.d.ts +2 -2
  349. package/dist/views/Request/libs/oauth2.d.ts.map +1 -1
  350. package/dist/views/Request/libs/oauth2.js +7 -7
  351. package/dist/views/Request/libs/oauth2.test.d.ts +2 -0
  352. package/dist/views/Request/libs/oauth2.test.d.ts.map +1 -0
  353. package/dist/views/Request/libs/request.test.d.ts +2 -0
  354. package/dist/views/Request/libs/request.test.d.ts.map +1 -0
  355. package/dist/views/Request/libs/watch-mode.d.ts +2 -2
  356. package/dist/views/Request/libs/watch-mode.test.d.ts +2 -0
  357. package/dist/views/Request/libs/watch-mode.test.d.ts.map +1 -0
  358. package/dist/views/Request/types/sidebar-item.d.ts +2 -2
  359. package/dist/views/Request/types/sidebar-item.d.ts.map +1 -1
  360. package/dist/views/Servers/Servers.vue.d.ts.map +1 -1
  361. package/dist/views/Servers/Servers.vue2.js +74 -65
  362. package/dist/views/Servers/index.d.ts +1 -1
  363. package/dist/views/Settings/components/SettingsAppearance.vue.js +6 -6
  364. package/package.json +27 -21
@@ -1,32 +1,33 @@
1
- import { defineComponent as re, ref as b, watch as se, onMounted as ie, onBeforeUnmount as ue, openBlock as v, createBlock as E, withCtx as d, createVNode as u, createElementVNode as p, createElementBlock as M, Fragment as U, renderList as z, unref as s, normalizeClass as A, createTextVNode as B, toDisplayString as K, withDirectives as de, withModifiers as me, createCommentVNode as F, vShow as ce, createSlots as ve } from "vue";
2
- import fe from "../../components/CodeInput/CodeInput.vue.js";
3
- import pe from "../../components/Sidebar/Actions/EditSidebarListElement.vue.js";
4
- import xe from "../../components/Sidebar/Sidebar.vue.js";
5
- import be from "../../components/Sidebar/SidebarButton.vue.js";
6
- import he from "../../components/Sidebar/SidebarList.vue.js";
1
+ import { defineComponent as se, ref as b, watch as ie, onMounted as ue, onBeforeUnmount as me, openBlock as v, createBlock as k, withCtx as d, createVNode as u, createElementVNode as p, createElementBlock as $, Fragment as W, renderList as z, unref as s, normalizeClass as A, createTextVNode as B, toDisplayString as K, withDirectives as de, withModifiers as ce, createCommentVNode as F, vShow as ve, createSlots as fe } from "vue";
2
+ import pe from "../../components/CodeInput/CodeInput.vue.js";
3
+ import xe from "../../components/Sidebar/Actions/EditSidebarListElement.vue.js";
4
+ import be from "../../components/Sidebar/Sidebar.vue.js";
5
+ import he from "../../components/Sidebar/SidebarButton.vue.js";
6
+ import Ce from "../../components/Sidebar/SidebarList.vue.js";
7
7
  import G from "../../components/Sidebar/SidebarListElement.vue.js";
8
- import ye from "../../components/ViewLayout/ViewLayout.vue.js";
9
- import Ce from "../../components/ViewLayout/ViewLayoutContent.vue.js";
10
- import Ee from "../../components/ViewLayout/ViewLayoutSection.vue.js";
11
- import { useActiveEntities as ke } from "../../store/active-entities.js";
12
- import { useModal as V, ScalarIcon as J, ScalarButton as ge, ScalarModal as _e } from "@scalar/components";
13
- import { LibraryIcon as we } from "@scalar/icons";
14
- import { useToasts as Ie } from "@scalar/use-toasts";
15
- import { useRouter as Se, useRoute as $e } from "vue-router";
16
- import Me from "./EnvironmentColorModal.vue.js";
17
- import Ve from "./EnvironmentModal.vue.js";
18
- import { useWorkspace as Ne } from "../../store/store.js";
19
- import { useSidebar as Oe } from "../../hooks/useSidebar.js";
20
- const Re = { class: "flex-1" }, je = ["onClick"], De = { class: "flex h-5 items-center justify-center max-w-[14px]" }, tn = /* @__PURE__ */ re({
8
+ import Ee from "../../components/ViewLayout/ViewLayout.vue.js";
9
+ import ye from "../../components/ViewLayout/ViewLayoutContent.vue.js";
10
+ import ke from "../../components/ViewLayout/ViewLayoutSection.vue.js";
11
+ import { PathId as m } from "../../routes.js";
12
+ import { useActiveEntities as ge } from "../../store/active-entities.js";
13
+ import { useModal as N, ScalarIcon as J, ScalarButton as _e, ScalarModal as we } from "@scalar/components";
14
+ import { LibraryIcon as Ie } from "@scalar/icons";
15
+ import { useToasts as Se } from "@scalar/use-toasts";
16
+ import { useRouter as Me, useRoute as Ve } from "vue-router";
17
+ import $e from "./EnvironmentColorModal.vue.js";
18
+ import Ne from "./EnvironmentModal.vue.js";
19
+ import { useWorkspace as Oe } from "../../store/store.js";
20
+ import { useSidebar as je } from "../../hooks/useSidebar.js";
21
+ const Re = { class: "flex-1" }, De = ["onClick"], Le = { class: "flex h-5 items-center justify-center max-w-[14px]" }, an = /* @__PURE__ */ se({
21
22
  __name: "Environment",
22
- setup(Le) {
23
- const h = Se(), k = $e(), { activeWorkspace: c, activeEnvironment: T, activeWorkspaceCollections: i } = ke(), { events: N, workspaceMutators: H, collectionMutators: y } = Ne(), { collapsedSidebarFolders: C, toggleSidebarFolder: g } = Oe(), _ = V(), w = V(), I = V(), O = b(null), r = b("default"), R = b(""), x = b(void 0), m = b(void 0), S = b(void 0), { toast: j } = Ie(), W = (e) => JSON.parse(e);
24
- function D(e, o, n) {
23
+ setup(Ue) {
24
+ const h = Me(), C = Ve(), { activeWorkspace: g, activeEnvironment: T, activeWorkspaceCollections: i } = ge(), { events: O, workspaceMutators: H, collectionMutators: E } = Oe(), { collapsedSidebarFolders: y, toggleSidebarFolder: _ } = je(), w = N(), I = N(), S = N(), j = b(null), r = b("default"), R = b(""), x = b(void 0), c = b(void 0), M = b(void 0), { toast: D } = Se(), P = (e) => JSON.parse(e);
25
+ function L(e, o, n) {
25
26
  var t;
26
- e && (o.uid === n ? j(
27
+ e && (o.uid === n ? D(
27
28
  `Environment name already used in ${(t = o.info) == null ? void 0 : t.title}`,
28
29
  "error"
29
- ) : j("Environment name already used in another collection", "error"));
30
+ ) : D("Environment name already used in another collection", "error"));
30
31
  }
31
32
  function q(e) {
32
33
  i.value.some(
@@ -34,30 +35,30 @@ const Re = { class: "flex-1" }, je = ["onClick"], De = { class: "flex h-5 items-
34
35
  const t = Object.keys(
35
36
  n["x-scalar-environments"] || {}
36
37
  ).includes(e.name);
37
- return D(t, n, e.collectionId), t;
38
+ return L(t, n, e.collectionId), t;
38
39
  }
39
- ) || (e.collectionId && (y.addEnvironment(
40
+ ) || (e.collectionId && (E.addEnvironment(
40
41
  e.name,
41
42
  {
42
43
  variables: {},
43
44
  color: e.color
44
45
  },
45
46
  e.collectionId
46
- ), C[e.collectionId] || g(e.collectionId), h.push({
47
+ ), y[e.collectionId] || _(e.collectionId), h.push({
47
48
  name: "environment.collection",
48
49
  params: {
49
- collectionId: e.collectionId,
50
- environmentId: e.name
50
+ [m.Collection]: e.collectionId,
51
+ [m.Environment]: e.name
51
52
  }
52
- })), w.hide());
53
+ })), I.hide());
53
54
  }
54
- function P(e) {
55
+ function Q(e) {
55
56
  var o, n;
56
57
  if (T) {
57
- const t = W(e);
58
+ const t = P(e);
58
59
  if (r.value === "default")
59
60
  H.edit(
60
- ((o = c.value) == null ? void 0 : o.uid) ?? "",
61
+ ((o = g.value) == null ? void 0 : o.uid) ?? "",
61
62
  "environments",
62
63
  t
63
64
  );
@@ -70,7 +71,7 @@ const Re = { class: "flex-1" }, je = ["onClick"], De = { class: "flex h-5 items-
70
71
  );
71
72
  if ((n = a == null ? void 0 : a["x-scalar-environments"]) != null && n[r.value ?? ""]) {
72
73
  const l = a["x-scalar-environments"][r.value ?? ""];
73
- l && (l.variables = t, y.edit(
74
+ l && (l.variables = t, E.edit(
74
75
  a.uid,
75
76
  "x-scalar-environments",
76
77
  a["x-scalar-environments"]
@@ -79,20 +80,20 @@ const Re = { class: "flex-1" }, je = ["onClick"], De = { class: "flex h-5 items-
79
80
  }
80
81
  }
81
82
  }
82
- const $ = (e) => {
83
- x.value = e, w.show();
84
- }, Q = (e, o) => {
85
- m.value = e, x.value = o, S.value = e, I.show();
86
- }, X = (e) => {
83
+ const V = (e) => {
84
+ x.value = e, I.show();
85
+ }, X = (e, o) => {
86
+ c.value = e, x.value = o, M.value = e, S.show();
87
+ }, Y = (e) => {
87
88
  var o, n, t;
88
- O.value = e, R.value = ((t = (n = (o = i.value.find(
89
+ j.value = e, R.value = ((t = (n = (o = i.value.find(
89
90
  (a) => {
90
91
  var l;
91
92
  return (l = a["x-scalar-environments"]) == null ? void 0 : l[e];
92
93
  }
93
- )) == null ? void 0 : o["x-scalar-environments"]) == null ? void 0 : n[e]) == null ? void 0 : t.color) ?? "", _.show();
94
- }, Y = (e) => {
95
- const o = O.value;
94
+ )) == null ? void 0 : o["x-scalar-environments"]) == null ? void 0 : n[e]) == null ? void 0 : t.color) ?? "", w.show();
95
+ }, Z = (e) => {
96
+ const o = j.value;
96
97
  typeof o == "string" && (i.value.some(
97
98
  (t) => {
98
99
  var a;
@@ -100,16 +101,16 @@ const Re = { class: "flex-1" }, je = ["onClick"], De = { class: "flex h-5 items-
100
101
  }
101
102
  ) && i.value.forEach((t) => {
102
103
  var a;
103
- (a = t["x-scalar-environments"]) != null && a[o] && (t["x-scalar-environments"][o].color = e, y.edit(
104
+ (a = t["x-scalar-environments"]) != null && a[o] && (t["x-scalar-environments"][o].color = e, E.edit(
104
105
  t.uid,
105
106
  "x-scalar-environments",
106
107
  t["x-scalar-environments"]
107
108
  ));
108
- }), _.hide());
109
+ }), w.hide());
109
110
  };
110
- function Z(e) {
111
+ function ee(e) {
111
112
  i.value.forEach((n) => {
112
- y.removeEnvironment(e, n.uid);
113
+ E.removeEnvironment(e, n.uid);
113
114
  });
114
115
  const o = i.value.flatMap(
115
116
  (n) => Object.keys(n["x-scalar-environments"] || {})
@@ -128,16 +129,16 @@ const Re = { class: "flex-1" }, je = ["onClick"], De = { class: "flex h-5 items-
128
129
  collectionId: t == null ? void 0 : t.uid,
129
130
  environmentId: n
130
131
  }
131
- }), t && !C[t.uid] && g(t.uid);
132
+ }), t && !y[t.uid] && _(t.uid);
132
133
  } else
133
134
  r.value = "default", h.push({
134
135
  name: "environment",
135
136
  params: { environment: "default" }
136
137
  });
137
138
  }
138
- const ee = () => r.value === "default" ? "Global Environment" : r.value, ne = () => {
139
+ const ne = () => r.value === "default" ? "Global Environment" : r.value, te = () => {
139
140
  var e, o, n, t;
140
- return r.value === "default" ? JSON.stringify((e = c.value) == null ? void 0 : e.environments, null, 2) : JSON.stringify(
141
+ return r.value === "default" ? JSON.stringify((e = g.value) == null ? void 0 : e.environments, null, 2) : JSON.stringify(
141
142
  (t = (n = (o = i.value.find(
142
143
  (a) => {
143
144
  var l;
@@ -147,59 +148,72 @@ const Re = { class: "flex-1" }, je = ["onClick"], De = { class: "flex h-5 items-
147
148
  null,
148
149
  2
149
150
  );
150
- }, te = (e) => C[e], L = (e) => {
151
- e != null && e.createNew && k.name === "environment" && $();
151
+ }, oe = (e) => y[e], U = (e) => {
152
+ e != null && e.createNew && C.name === "environment" && V();
152
153
  };
153
- se(
154
- () => [k.params.collectionId, k.params.environmentId],
154
+ ie(
155
+ () => [C.params[m.Collection], C.params[m.Environment]],
155
156
  ([e, o]) => {
156
157
  e ? r.value = o : r.value = "default";
157
158
  }
158
- ), ie(() => {
159
- r.value = k.params.environmentId || "default", N.hotKeys.on(L);
160
- const { collectionId: e } = h.currentRoute.value.params;
161
- e && !C[e] && g(e);
162
- }), ue(() => N.hotKeys.off(L));
163
- const oe = (e, o, n) => {
159
+ ), ue(() => {
160
+ r.value = C.params[m.Environment] || "default", O.hotKeys.on(U);
161
+ const e = C.params[m.Collection];
162
+ e && !y[e] && _(e);
163
+ }), me(() => O.hotKeys.off(U));
164
+ const ae = (e, o, n) => {
164
165
  var a, l;
165
- const t = n ? `/workspace/${(a = c == null ? void 0 : c.value) == null ? void 0 : a.uid}/environment/${n}/${o}` : `/workspace/${(l = c == null ? void 0 : c.value) == null ? void 0 : l.uid}/environment/${o}`;
166
- e.metaKey ? window.open(t, "_blank") : h.push({ path: t });
166
+ const t = n ? {
167
+ name: "environment.collection",
168
+ params: {
169
+ [m.Workspace]: (a = g.value) == null ? void 0 : a.uid,
170
+ [m.Collection]: n,
171
+ [m.Environment]: o
172
+ }
173
+ } : {
174
+ name: "environment.default",
175
+ params: {
176
+ [m.Workspace]: (l = g.value) == null ? void 0 : l.uid,
177
+ [m.Environment]: o
178
+ }
179
+ };
180
+ e.metaKey ? window.open(h.resolve(t).href, "_blank") : h.push(t);
167
181
  };
168
- function ae() {
169
- m.value = void 0, x.value = void 0, S.value = void 0, I.hide();
182
+ function le() {
183
+ c.value = void 0, x.value = void 0, M.value = void 0, S.hide();
170
184
  }
171
- function le(e) {
185
+ function re(e) {
172
186
  i.value.some(
173
187
  (n) => {
174
188
  const t = Object.keys(
175
189
  n["x-scalar-environments"] || {}
176
190
  ).includes(e);
177
- return D(
191
+ return L(
178
192
  t,
179
193
  n,
180
194
  x.value
181
195
  ), t;
182
196
  }
183
- ) || (e && m.value !== "default" && i.value.forEach((n) => {
197
+ ) || (e && c.value !== "default" && i.value.forEach((n) => {
184
198
  var t;
185
- if ((t = n["x-scalar-environments"]) != null && t[m.value ?? ""]) {
186
- const a = n["x-scalar-environments"][m.value ?? ""];
187
- a && (delete n["x-scalar-environments"][m.value ?? ""], n["x-scalar-environments"][e] = a, y.edit(
199
+ if ((t = n["x-scalar-environments"]) != null && t[c.value ?? ""]) {
200
+ const a = n["x-scalar-environments"][c.value ?? ""];
201
+ a && (delete n["x-scalar-environments"][c.value ?? ""], n["x-scalar-environments"][e] = a, E.edit(
188
202
  n.uid,
189
203
  "x-scalar-environments",
190
204
  n["x-scalar-environments"]
191
205
  ));
192
206
  }
193
- }), e && r.value === m.value && (r.value = e), m.value = void 0, x.value = void 0, S.value = void 0, I.hide());
207
+ }), e && r.value === c.value && (r.value = e), c.value = void 0, x.value = void 0, M.value = void 0, S.hide());
194
208
  }
195
- return (e, o) => (v(), E(ye, null, {
209
+ return (e, o) => (v(), k(Ee, null, {
196
210
  default: d(() => [
197
- u(xe, { title: "Collections" }, {
211
+ u(be, { title: "Collections" }, {
198
212
  content: d(() => [
199
213
  p("div", Re, [
200
- u(he, null, {
214
+ u(Ce, null, {
201
215
  default: d(() => [
202
- (v(), E(G, {
216
+ (v(), k(G, {
203
217
  key: "default",
204
218
  class: "text-xs",
205
219
  isCopyable: !1,
@@ -211,42 +225,42 @@ const Re = { class: "flex-1" }, je = ["onClick"], De = { class: "flex h-5 items-
211
225
  isDefault: !0
212
226
  }
213
227
  })),
214
- (v(!0), M(U, null, z(s(i), (n) => {
228
+ (v(!0), $(W, null, z(s(i), (n) => {
215
229
  var t;
216
- return v(), M("li", {
230
+ return v(), $("li", {
217
231
  key: n.uid,
218
- class: "flex flex-col gap-0.25"
232
+ class: "flex flex-col gap-1/2"
219
233
  }, [
220
234
  p("button", {
221
235
  class: "flex font-medium gap-1.5 group items-center p-1.5 text-left text-sm w-full break-words rounded hover:bg-b-2",
222
236
  type: "button",
223
- onClick: (a) => s(g)(n.uid)
237
+ onClick: (a) => s(_)(n.uid)
224
238
  }, [
225
- p("span", De, [
226
- u(s(we), {
239
+ p("span", Le, [
240
+ u(s(Ie), {
227
241
  class: "min-w-3.5 text-sidebar-c-2 size-3.5 stroke-2 group-hover:hidden",
228
242
  src: n["x-scalar-icon"] || "interface-content-folder"
229
243
  }, null, 8, ["src"]),
230
244
  p("div", {
231
245
  class: A({
232
- "rotate-90": s(C)[n.uid]
246
+ "rotate-90": s(y)[n.uid]
233
247
  })
234
248
  }, [
235
249
  u(s(J), {
236
- class: "text-c-3 hidden text-sm group-hover:block",
250
+ class: "text-c-3 hidden text-sm group-hover:block hover:text-c-1",
237
251
  icon: "ChevronRight",
238
252
  size: "md"
239
253
  })
240
254
  ], 2)
241
255
  ]),
242
256
  B(" " + K(((t = n.info) == null ? void 0 : t.title) ?? ""), 1)
243
- ], 8, je),
257
+ ], 8, De),
244
258
  de(p("div", {
245
259
  class: A({
246
260
  "before:bg-border before:pointer-events-none before:z-1 before:absolute before:left-3 before:top-0 before:h-[calc(100%_+_.5px)] last:before:h-full before:w-[.5px] mb-[.5px] last:mb-0 relative": Object.keys(n["x-scalar-environments"] || {}).length > 0
247
261
  })
248
262
  }, [
249
- (v(!0), M(U, null, z(n["x-scalar-environments"], (a, l) => (v(), E(G, {
263
+ (v(!0), $(W, null, z(n["x-scalar-environments"], (a, l) => (v(), k(G, {
250
264
  key: l,
251
265
  class: "text-xs [&>a]:pl-5",
252
266
  collectionId: n.uid,
@@ -261,29 +275,28 @@ const Re = { class: "flex-1" }, je = ["onClick"], De = { class: "flex h-5 items-
261
275
  isDefault: !1
262
276
  },
263
277
  warningMessage: "Are you sure you want to delete this environment?",
264
- onClick: me((f) => oe(f, l, n.uid), ["prevent"]),
265
- onColorModal: (f) => X(l),
266
- onDelete: (f) => Z(l),
267
- onRename: (f) => Q(l, n.uid)
278
+ onClick: ce((f) => ae(f, l, n.uid), ["prevent"]),
279
+ onColorModal: (f) => Y(l),
280
+ onDelete: (f) => ee(l),
281
+ onRename: (f) => X(l, n.uid)
268
282
  }, null, 8, ["collectionId", "variable", "onClick", "onColorModal", "onDelete", "onRename"]))), 128)),
269
- Object.keys(n["x-scalar-environments"] || {}).length === 0 ? (v(), E(s(ge), {
283
+ Object.keys(n["x-scalar-environments"] || {}).length === 0 ? (v(), k(s(_e), {
270
284
  key: 0,
271
- class: "mb-[.5px] flex gap-1.5 h-8 text-c-1 pl-6 py-0 justify-start text-xs w-full hover:bg-b-2",
285
+ class: "flex gap-1.5 h-8 text-c-1 pl-6 py-0 justify-start text-xs w-full hover:bg-b-2",
272
286
  variant: "ghost",
273
- onClick: (a) => $(n.uid)
287
+ onClick: (a) => V(n.uid)
274
288
  }, {
275
289
  default: d(() => [
276
290
  u(s(J), {
277
- class: "ml-0.5 h-2.5 w-2.5",
278
291
  icon: "Add",
279
- thickness: "3"
292
+ size: "sm"
280
293
  }),
281
294
  o[2] || (o[2] = p("span", null, "Add Environment", -1))
282
295
  ]),
283
296
  _: 2
284
297
  }, 1032, ["onClick"])) : F("", !0)
285
298
  ], 2), [
286
- [ce, te(n.uid)]
299
+ [ve, oe(n.uid)]
287
300
  ])
288
301
  ]);
289
302
  }), 128))
@@ -293,8 +306,8 @@ const Re = { class: "flex-1" }, je = ["onClick"], De = { class: "flex h-5 items-
293
306
  ])
294
307
  ]),
295
308
  button: d(() => [
296
- u(be, {
297
- click: $,
309
+ u(he, {
310
+ click: V,
298
311
  hotkey: "N"
299
312
  }, {
300
313
  title: d(() => o[3] || (o[3] = [
@@ -305,19 +318,19 @@ const Re = { class: "flex-1" }, je = ["onClick"], De = { class: "flex h-5 items-
305
318
  ]),
306
319
  _: 1
307
320
  }),
308
- u(Ce, { class: "flex-1" }, {
321
+ u(ye, { class: "flex-1" }, {
309
322
  default: d(() => [
310
- u(Ee, null, ve({
323
+ u(ke, null, fe({
311
324
  default: d(() => [
312
- r.value ? (v(), E(fe, {
325
+ r.value ? (v(), k(pe, {
313
326
  key: 0,
314
327
  class: "border-t pl-px pr-2 md:px-4 py-2",
315
328
  isCopyable: "",
316
329
  language: "json",
317
330
  lineNumbers: "",
318
331
  lint: "",
319
- modelValue: ne(),
320
- "onUpdate:modelValue": P
332
+ modelValue: te(),
333
+ "onUpdate:modelValue": Q
321
334
  }, null, 8, ["modelValue"])) : F("", !0)
322
335
  ]),
323
336
  _: 2
@@ -325,7 +338,7 @@ const Re = { class: "flex-1" }, je = ["onClick"], De = { class: "flex h-5 items-
325
338
  r.value ? {
326
339
  name: "title",
327
340
  fn: d(() => [
328
- p("span", null, K(ee()), 1)
341
+ p("span", null, K(ne()), 1)
329
342
  ]),
330
343
  key: "0"
331
344
  } : void 0
@@ -333,29 +346,29 @@ const Re = { class: "flex-1" }, je = ["onClick"], De = { class: "flex h-5 items-
333
346
  ]),
334
347
  _: 1
335
348
  }),
336
- u(Me, {
349
+ u($e, {
337
350
  selectedColor: R.value,
338
- state: s(_),
339
- onCancel: o[0] || (o[0] = (n) => s(_).hide()),
340
- onSubmit: Y
351
+ state: s(w),
352
+ onCancel: o[0] || (o[0] = (n) => s(w).hide()),
353
+ onSubmit: Z
341
354
  }, null, 8, ["selectedColor", "state"]),
342
- u(Ve, {
355
+ u(Ne, {
343
356
  activeWorkspaceCollections: s(i),
344
357
  collectionId: x.value,
345
- state: s(w),
346
- onCancel: o[1] || (o[1] = (n) => s(w).hide()),
358
+ state: s(I),
359
+ onCancel: o[1] || (o[1] = (n) => s(I).hide()),
347
360
  onSubmit: q
348
361
  }, null, 8, ["activeWorkspaceCollections", "collectionId", "state"]),
349
- u(s(_e), {
362
+ u(s(we), {
350
363
  size: "xxs",
351
- state: s(I),
352
- title: `Edit ${m.value}`
364
+ state: s(S),
365
+ title: `Edit ${c.value}`
353
366
  }, {
354
367
  default: d(() => [
355
- u(pe, {
356
- name: S.value ?? "",
357
- onClose: ae,
358
- onEdit: le
368
+ u(xe, {
369
+ name: M.value ?? "",
370
+ onClose: le,
371
+ onEdit: re
359
372
  }, null, 8, ["name"])
360
373
  ]),
361
374
  _: 1
@@ -366,5 +379,5 @@ const Re = { class: "flex-1" }, je = ["onClick"], De = { class: "flex h-5 items-
366
379
  }
367
380
  });
368
381
  export {
369
- tn as default
382
+ an as default
370
383
  };
@@ -7,8 +7,8 @@ declare const _default: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {
7
7
  submit: (color: string) => any;
8
8
  cancel: () => any;
9
9
  }, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{
10
- onSubmit?: ((color: string) => any) | undefined;
11
- onCancel?: (() => any) | undefined;
10
+ onSubmit?: (color: string) => any;
11
+ onCancel?: () => any;
12
12
  }>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
13
13
  export default _default;
14
14
  //# sourceMappingURL=EnvironmentColorModal.vue.d.ts.map
@@ -5,7 +5,7 @@ type __VLS_Props = {
5
5
  declare const _default: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {} & {
6
6
  select: (color: string) => any;
7
7
  }, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{
8
- onSelect?: ((color: string) => any) | undefined;
8
+ onSelect?: (color: string) => any;
9
9
  }>, {
10
10
  selector: boolean;
11
11
  }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, HTMLDivElement>;
@@ -3,24 +3,24 @@ import type { Collection } from '@scalar/oas-utils/entities/spec';
3
3
  type __VLS_Props = {
4
4
  state: ModalState;
5
5
  activeWorkspaceCollections: Collection[];
6
- collectionId?: string;
6
+ collectionId: string | undefined;
7
7
  };
8
8
  declare const _default: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {} & {
9
9
  submit: (environment: {
10
10
  name: string;
11
11
  color: string;
12
12
  type: string;
13
- collectionId?: string;
13
+ collectionId: string | undefined;
14
14
  }) => any;
15
15
  cancel: () => any;
16
16
  }, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{
17
- onSubmit?: ((environment: {
17
+ onSubmit?: (environment: {
18
18
  name: string;
19
19
  color: string;
20
20
  type: string;
21
- collectionId?: string;
22
- }) => any) | undefined;
23
- onCancel?: (() => any) | undefined;
21
+ collectionId: string | undefined;
22
+ }) => any;
23
+ onCancel?: () => any;
24
24
  }>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
25
25
  export default _default;
26
26
  //# sourceMappingURL=EnvironmentModal.vue.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"EnvironmentModal.vue.d.ts","sourceRoot":"","sources":["../../../src/views/Environment/EnvironmentModal.vue"],"names":[],"mappings":"AA8JA,OAAO,EACL,KAAK,UAAU,EAMhB,MAAM,oBAAoB,CAAA;AAC3B,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,iCAAiC,CAAA;AAQjE,KAAK,WAAW,GAAG;IACjB,KAAK,EAAE,UAAU,CAAA;IACjB,0BAA0B,EAAE,UAAU,EAAE,CAAA;IACxC,YAAY,CAAC,EAAE,MAAM,CAAA;CACtB,CAAC;;;cAQU,MAAM;eACL,MAAM;cACP,MAAM;uBACG,MAAM;;;;;cAHf,MAAM;eACL,MAAM;cACP,MAAM;uBACG,MAAM;;;;AAmS3B,wBAQG"}
1
+ {"version":3,"file":"EnvironmentModal.vue.d.ts","sourceRoot":"","sources":["../../../src/views/Environment/EnvironmentModal.vue"],"names":[],"mappings":"AA8JA,OAAO,EACL,KAAK,UAAU,EAMhB,MAAM,oBAAoB,CAAA;AAC3B,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,iCAAiC,CAAA;AAQjE,KAAK,WAAW,GAAG;IACjB,KAAK,EAAE,UAAU,CAAA;IACjB,0BAA0B,EAAE,UAAU,EAAE,CAAA;IACxC,YAAY,EAAE,MAAM,GAAG,SAAS,CAAA;CACjC,CAAC;;;cAQU,MAAM;eACL,MAAM;cACP,MAAM;sBACE,MAAM,GAAG,SAAS;;;;;cAH1B,MAAM;eACL,MAAM;cACP,MAAM;sBACE,MAAM,GAAG,SAAS;;;;AAkStC,wBAQG"}
@@ -74,7 +74,7 @@ const P = { class: "flex gap-2 items-start" }, K = /* @__PURE__ */ _({
74
74
  default: a(() => [
75
75
  d.value.length > 0 ? (m(), v(i(C), {
76
76
  key: 0,
77
- class: "justify-between p-2 max-h-8 w-full gap-1 text-xs hover:bg-b-2 w-fit",
77
+ class: "justify-between p-2 max-h-8 gap-1 text-xs hover:bg-b-2 w-fit",
78
78
  variant: "outlined"
79
79
  }, {
80
80
  default: a(() => [
@@ -1,4 +1,4 @@
1
- import { type EnvVariables } from '../../libs/env-helpers.js';
1
+ import { type EnvVariables } from '../../libs/env-helpers';
2
2
  import type { Environment } from '@scalar/oas-utils/entities/environment';
3
3
  type __VLS_Props = {
4
4
  query: string;
@@ -15,7 +15,7 @@ declare const _default: import("vue").DefineComponent<__VLS_Props, {
15
15
  }, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {} & {
16
16
  select: (variable: string) => any;
17
17
  }, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{
18
- onSelect?: ((variable: string) => any) | undefined;
18
+ onSelect?: (variable: string) => any;
19
19
  }>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
20
20
  export default _default;
21
21
  //# sourceMappingURL=EnvironmentVariableDropdown.vue.d.ts.map
@@ -4,10 +4,10 @@ declare const _default: import("vue").DefineComponent<{}, {}, {}, {}, {}, import
4
4
  uid: string;
5
5
  }) => any;
6
6
  }, string, import("vue").PublicProps, Readonly<{}> & Readonly<{
7
- onNewTab?: ((item: {
7
+ onNewTab?: (item: {
8
8
  name: string;
9
9
  uid: string;
10
- }) => any) | undefined;
10
+ }) => any;
11
11
  }>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
12
12
  export default _default;
13
13
  //# sourceMappingURL=Request.vue.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"Request.vue.d.ts","sourceRoot":"","sources":["../../../src/views/Request/Request.vue"],"names":[],"mappings":";;cA8S8B,MAAM;aAAO,MAAM;;;;cAAnB,MAAM;aAAO,MAAM;;;AA0ajD,wBAMG"}
1
+ {"version":3,"file":"Request.vue.d.ts","sourceRoot":"","sources":["../../../src/views/Request/Request.vue"],"names":[],"mappings":";;cAqT8B,MAAM;aAAO,MAAM;;;;cAAnB,MAAM;aAAO,MAAM;;;AA+ajD,wBAMG"}
@@ -1,7 +1,7 @@
1
1
  import o from "./Request.vue2.js";
2
2
  /* empty css */
3
3
  import t from "../../_virtual/_plugin-vue_export-helper.js";
4
- const p = /* @__PURE__ */ t(o, [["__scopeId", "data-v-bdc3d973"]]);
4
+ const m = /* @__PURE__ */ t(o, [["__scopeId", "data-v-92a497c5"]]);
5
5
  export {
6
- p as default
6
+ m as default
7
7
  };