@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,21 +1,21 @@
1
- import { defineComponent as a, ref as c, openBlock as o, createBlock as n, withCtx as r, createVNode as m, resolveDynamicComponent as i, createCommentVNode as l } from "vue";
1
+ import { defineComponent as a, ref as c, openBlock as n, createBlock as o, withCtx as r, createVNode as m, resolveDynamicComponent as i, createCommentVNode as l } from "vue";
2
2
  import s from "../../components/ViewLayout/ViewLayout.vue.js";
3
- import p from "../../components/ViewLayout/ViewLayoutContent.vue.js";
3
+ import _ from "../../components/ViewLayout/ViewLayoutContent.vue.js";
4
4
  import f from "./SettingsGeneral.vue.js";
5
- const y = /* @__PURE__ */ a({
5
+ const k = /* @__PURE__ */ a({
6
6
  __name: "Settings",
7
- setup(u) {
7
+ setup(p) {
8
8
  const e = {
9
9
  general: {
10
10
  component: f,
11
11
  title: "general"
12
12
  }
13
13
  }, t = c("general");
14
- return (_, d) => (o(), n(s, null, {
14
+ return (u, d) => (n(), o(s, null, {
15
15
  default: r(() => [
16
- m(p, { class: "flex-1" }, {
16
+ m(_, { class: "flex-1" }, {
17
17
  default: r(() => [
18
- e[t.value] ? (o(), n(i(e[t.value].component), { key: 0 })) : l("", !0)
18
+ e[t.value] ? (n(), o(i(e[t.value].component), { key: 0 })) : l("", !0)
19
19
  ]),
20
20
  _: 1
21
21
  })
@@ -25,5 +25,5 @@ const y = /* @__PURE__ */ a({
25
25
  }
26
26
  });
27
27
  export {
28
- y as default
28
+ k as default
29
29
  };
@@ -1 +1 @@
1
- {"version":3,"file":"SettingsGeneral.vue.d.ts","sourceRoot":"","sources":["../../../src/views/Settings/SettingsGeneral.vue"],"names":[],"mappings":";AA62BA,wBAMG"}
1
+ {"version":3,"file":"SettingsGeneral.vue.d.ts","sourceRoot":"","sources":["../../../src/views/Settings/SettingsGeneral.vue"],"names":[],"mappings":";AA22BA,wBAMG"}
@@ -50,7 +50,7 @@ const D = { class: "bg-b-1 h-full w-full overflow-auto" }, G = { class: "ml-auto
50
50
  return (x, t) => (d(), S("div", D, [
51
51
  r("div", G, [
52
52
  r("div", q, [
53
- t[15] || (t[15] = r("div", null, [
53
+ t[13] || (t[13] = r("div", null, [
54
54
  r("h2", { class: "mt-10 text-xl font-bold" }, "Settings")
55
55
  ], -1)),
56
56
  c(C, null, {
@@ -89,7 +89,6 @@ const D = { class: "bg-b-1 h-full w-full overflow-auto" }, G = { class: "ml-auto
89
89
  default: n(() => {
90
90
  var l, p;
91
91
  return [
92
- t[5] || (t[5] = a(' "> ')),
93
92
  r("div", {
94
93
  class: f(["flex h-5 w-5 items-center justify-center rounded-full border-[1.5px] p-1", {
95
94
  "bg-c-accent text-b-1 border-transparent": ((l = e(o)) == null ? void 0 : l.proxyUrl) === w
@@ -102,7 +101,7 @@ const D = { class: "bg-b-1 h-full w-full overflow-auto" }, G = { class: "ml-auto
102
101
  thickness: "3.5"
103
102
  })) : b("", !0)
104
103
  ], 2),
105
- t[6] || (t[6] = a(" Use proxy.scalar.com (default) "))
104
+ t[5] || (t[5] = a(" Use proxy.scalar.com (default) "))
106
105
  ];
107
106
  }),
108
107
  _: 1
@@ -121,7 +120,6 @@ const D = { class: "bg-b-1 h-full w-full overflow-auto" }, G = { class: "ml-auto
121
120
  default: n(() => {
122
121
  var l, p;
123
122
  return [
124
- t[7] || (t[7] = a(' "> ')),
125
123
  r("div", {
126
124
  class: f(["flex h-5 w-5 items-center justify-center rounded-full border-[1.5px] p-1", {
127
125
  "bg-c-accent text-b-1 border-transparent": ((l = e(o)) == null ? void 0 : l.proxyUrl) === e(k)
@@ -159,7 +157,7 @@ const D = { class: "bg-b-1 h-full w-full overflow-auto" }, G = { class: "ml-auto
159
157
  thickness: "3.5"
160
158
  }))
161
159
  ], 2),
162
- t[8] || (t[8] = a(" Skip the proxy "))
160
+ t[6] || (t[6] = a(" Skip the proxy "))
163
161
  ];
164
162
  }),
165
163
  _: 1
@@ -170,10 +168,10 @@ const D = { class: "bg-b-1 h-full w-full overflow-auto" }, G = { class: "ml-auto
170
168
  _: 1
171
169
  }),
172
170
  c(C, null, {
173
- title: n(() => t[9] || (t[9] = [
171
+ title: n(() => t[7] || (t[7] = [
174
172
  a(" Themes ")
175
173
  ])),
176
- description: n(() => t[10] || (t[10] = [
174
+ description: n(() => t[8] || (t[8] = [
177
175
  a(" We’ve got a whole rainbow of themes for you to play with: ")
178
176
  ])),
179
177
  default: n(() => [
@@ -241,10 +239,10 @@ const D = { class: "bg-b-1 h-full w-full overflow-auto" }, G = { class: "ml-auto
241
239
  _: 1
242
240
  }),
243
241
  c(C, null, {
244
- title: n(() => t[11] || (t[11] = [
242
+ title: n(() => t[9] || (t[9] = [
245
243
  a(" Framework Themes ")
246
244
  ])),
247
- description: n(() => t[12] || (t[12] = [
245
+ description: n(() => t[10] || (t[10] = [
248
246
  a(" Are you a real fan? Show your support by using your favorite framework’s theme! ")
249
247
  ])),
250
248
  default: n(() => [
@@ -295,10 +293,10 @@ const D = { class: "bg-b-1 h-full w-full overflow-auto" }, G = { class: "ml-auto
295
293
  _: 1
296
294
  }),
297
295
  c(C, null, {
298
- title: n(() => t[13] || (t[13] = [
296
+ title: n(() => t[11] || (t[11] = [
299
297
  a(" Appearance ")
300
298
  ])),
301
- description: n(() => t[14] || (t[14] = [
299
+ description: n(() => t[12] || (t[12] = [
302
300
  a(" Choose between light, dark, or system-based appearance for your workspace. ")
303
301
  ])),
304
302
  default: n(() => [
@@ -20,8 +20,8 @@ const C = { class: "flex flex-col gap-2" }, z = /* @__PURE__ */ x({
20
20
  }, {
21
21
  default: c(() => [
22
22
  i("div", {
23
- class: s(["flex items-center justify-center w-5 h-5 rounded-full border-[1.5px] p-1", {
24
- "bg-c-accent border-transparent text-b-1": e(r) === "system"
23
+ class: s(["flex h-5 w-5 items-center justify-center rounded-full border-[1.5px] p-1", {
24
+ "bg-c-accent text-b-1 border-transparent": e(r) === "system"
25
25
  }])
26
26
  }, [
27
27
  e(r) === "system" ? (o(), d(e(k), {
@@ -41,8 +41,8 @@ const C = { class: "flex flex-col gap-2" }, z = /* @__PURE__ */ x({
41
41
  }, {
42
42
  default: c(() => [
43
43
  i("div", {
44
- class: s(["flex items-center justify-center w-5 h-5 rounded-full border-[1.5px] p-1", {
45
- "bg-c-accent border-transparent text-b-1": e(r) === "light"
44
+ class: s(["flex h-5 w-5 items-center justify-center rounded-full border-[1.5px] p-1", {
45
+ "bg-c-accent text-b-1 border-transparent": e(r) === "light"
46
46
  }])
47
47
  }, [
48
48
  e(r) === "light" ? (o(), d(e(k), {
@@ -62,8 +62,8 @@ const C = { class: "flex flex-col gap-2" }, z = /* @__PURE__ */ x({
62
62
  }, {
63
63
  default: c(() => [
64
64
  i("div", {
65
- class: s(["flex items-center justify-center w-5 h-5 rounded-full border-[1.5px] p-1", {
66
- "bg-c-accent border-transparent text-b-1": e(r) === "dark"
65
+ class: s(["flex h-5 w-5 items-center justify-center rounded-full border-[1.5px] p-1", {
66
+ "bg-c-accent text-b-1 border-transparent": e(r) === "dark"
67
67
  }])
68
68
  }, [
69
69
  e(r) === "dark" ? (o(), d(e(k), {
@@ -0,0 +1,16 @@
1
+ import { useLayout } from './hooks/useLayout';
2
+ import { useSidebar } from './hooks/useSidebar';
3
+ import { type Mock } from 'vitest';
4
+ export declare const mockUseLayout: Mock<[], ReturnType<typeof useLayout>>;
5
+ export declare const mockUseSidebar: Mock<[], ReturnType<typeof useSidebar>>;
6
+ /** Spy on console.warn */
7
+ export declare const consoleWarnSpy: import("vitest").MockInstance<[message?: any, ...optionalParams: any[]], void>;
8
+ /** Spy on console.error */
9
+ export declare const consoleErrorSpy: import("vitest").MockInstance<[message?: any, ...optionalParams: any[]], void>;
10
+ /** Reset the spies */
11
+ export declare const resetConsoleSpies: () => void;
12
+ /** Helper to re-enable console warn checks */
13
+ export declare const enableConsoleWarn: () => boolean;
14
+ /** Helper to disable console warn checks */
15
+ export declare const disableConsoleWarn: () => boolean;
16
+ //# sourceMappingURL=vitest.setup.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"vitest.setup.d.ts","sourceRoot":"","sources":["../src/vitest.setup.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,mBAAmB,CAAA;AAC7C,OAAO,EAAE,UAAU,EAAE,MAAM,oBAAoB,CAAA;AAC/C,OAAO,EAAqC,KAAK,IAAI,EAAE,MAAM,QAAQ,CAAA;AAOrE,eAAO,MAAM,aAAa,EAAgB,IAAI,CAAC,EAAE,EAAE,UAAU,CAAC,OAAO,SAAS,CAAC,CAAC,CAAA;AAMhF,eAAO,MAAM,cAAc,EAAiB,IAAI,CAAC,EAAE,EAAE,UAAU,CAAC,OAAO,UAAU,CAAC,CAAC,CAAA;AAEnF,0BAA0B;AAC1B,eAAO,MAAM,cAAc,gFAA4B,CAAA;AAGvD,2BAA2B;AAC3B,eAAO,MAAM,eAAe,gFAA6B,CAAA;AAEzD,sBAAsB;AACtB,eAAO,MAAM,iBAAiB,YAG7B,CAAA;AAED,8CAA8C;AAC9C,eAAO,MAAM,iBAAiB,eAAsC,CAAA;AAEpE,4CAA4C;AAC5C,eAAO,MAAM,kBAAkB,eAAuC,CAAA"}
package/package.json CHANGED
@@ -18,7 +18,7 @@
18
18
  "rest",
19
19
  "testing"
20
20
  ],
21
- "version": "2.2.50",
21
+ "version": "2.2.52",
22
22
  "engines": {
23
23
  "node": ">=18"
24
24
  },
@@ -30,11 +30,6 @@
30
30
  "types": "./dist/index.d.ts",
31
31
  "default": "./dist/index.js"
32
32
  },
33
- "./views/Servers": {
34
- "import": "./dist/views/Servers/index.js",
35
- "types": "./dist/views/Servers/index.d.ts",
36
- "default": "./dist/views/Servers/index.js"
37
- },
38
33
  "./views/Request/types": {
39
34
  "import": "./dist/views/Request/types/index.js",
40
35
  "types": "./dist/views/Request/types/index.d.ts",
@@ -193,22 +188,22 @@
193
188
  "whatwg-mimetype": "^4.0.0",
194
189
  "yaml": "^2.4.5",
195
190
  "zod": "^3.23.8",
196
- "@scalar/draggable": "0.1.10",
197
- "@scalar/components": "0.13.25",
191
+ "@scalar/components": "0.13.26",
192
+ "@scalar/draggable": "0.1.11",
198
193
  "@scalar/icons": "0.1.3",
199
- "@scalar/import": "0.2.27",
200
- "@scalar/oas-utils": "0.2.107",
194
+ "@scalar/import": "0.2.28",
195
+ "@scalar/openapi-parser": "0.10.9",
196
+ "@scalar/oas-utils": "0.2.108",
201
197
  "@scalar/object-utils": "1.1.13",
202
- "@scalar/openapi-parser": "0.10.8",
203
- "@scalar/openapi-types": "0.1.8",
204
- "@scalar/postman-to-openapi": "0.1.30",
205
- "@scalar/snippetz": "0.2.14",
206
- "@scalar/themes": "0.9.68",
207
- "@scalar/types": "0.0.34",
208
- "@scalar/use-codemirror": "0.11.70",
198
+ "@scalar/postman-to-openapi": "0.1.31",
199
+ "@scalar/openapi-types": "0.1.9",
200
+ "@scalar/themes": "0.9.69",
201
+ "@scalar/snippetz": "0.2.15",
202
+ "@scalar/types": "0.0.35",
203
+ "@scalar/use-codemirror": "0.11.71",
204
+ "@scalar/use-tooltip": "1.0.6",
209
205
  "@scalar/use-toasts": "0.7.9",
210
- "@scalar/use-hooks": "0.1.22",
211
- "@scalar/use-tooltip": "1.0.6"
206
+ "@scalar/use-hooks": "0.1.23"
212
207
  },
213
208
  "devDependencies": {
214
209
  "@types/shell-quote": "^1.7.5",
@@ -224,8 +219,8 @@
224
219
  "vite": "^5.4.10",
225
220
  "vite-svg-loader": "^5.1.0",
226
221
  "vitest": "^1.6.0",
227
- "@scalar/build-tooling": "0.1.14",
228
- "@scalar/galaxy": "0.2.20"
222
+ "@scalar/galaxy": "0.2.21",
223
+ "@scalar/build-tooling": "0.1.15"
229
224
  },
230
225
  "scripts": {
231
226
  "build": "scalar-build-vite",
@@ -1 +0,0 @@
1
- {"version":3,"file":"ServerForm.vue.d.ts","sourceRoot":"","sources":["../../../src/views/Servers/ServerForm.vue"],"names":[],"mappings":";AAmKA,wBAMG"}
@@ -1,39 +0,0 @@
1
- import { defineComponent as d, computed as p, openBlock as s, createElementBlock as m, createBlock as f, createCommentVNode as _ } from "vue";
2
- import k from "../../components/Form/Form.vue.js";
3
- import { useActiveEntities as h } from "../../store/active-entities.js";
4
- import { useWorkspace as y } from "../../store/store.js";
5
- const x = { class: "divide-0.5 flex w-full divide-x" }, L = /* @__PURE__ */ d({
6
- __name: "ServerForm",
7
- setup(S) {
8
- const { activeRouterParams: t, activeWorkspaceCollections: a } = h(), { collections: c, servers: l, serverMutators: i } = y(), n = [
9
- { label: "URL", key: "url", placeholder: "https://void.scalar.com/api" },
10
- {
11
- label: "Label",
12
- key: "description",
13
- placeholder: "Production"
14
- }
15
- ], o = p(() => {
16
- const e = c[t.value.collection];
17
- if (!e) return;
18
- const r = typeof t.value.servers == "string" && t.value.servers === "default" ? e.servers[0] : e.servers.find(
19
- (v) => v === t.value.servers
20
- );
21
- if (r)
22
- return l[r];
23
- }), u = (e, r) => {
24
- !a.value || !o.value || i.edit(o.value.uid, e, r);
25
- };
26
- return (e, r) => (s(), m("div", x, [
27
- o.value ? (s(), f(k, {
28
- key: 0,
29
- data: o.value,
30
- onUpdate: u,
31
- options: n,
32
- title: "Server"
33
- }, null, 8, ["data"])) : _("", !0)
34
- ]));
35
- }
36
- });
37
- export {
38
- L as default
39
- };
@@ -1,4 +0,0 @@
1
- import f from "./ServerForm.vue.js";
2
- export {
3
- f as default
4
- };
@@ -1 +0,0 @@
1
- {"version":3,"file":"Servers.vue.d.ts","sourceRoot":"","sources":["../../../src/views/Servers/Servers.vue"],"names":[],"mappings":";AAilBA,wBAMG"}
@@ -1,4 +0,0 @@
1
- import f from "./Servers.vue2.js";
2
- export {
3
- f as default
4
- };
@@ -1,168 +0,0 @@
1
- import { defineComponent as P, computed as x, openBlock as i, createBlock as m, withCtx as l, createVNode as a, unref as o, createElementVNode as n, createElementBlock as d, Fragment as k, renderList as _, normalizeClass as g, toDisplayString as W, withModifiers as F, withDirectives as O, createCommentVNode as R, vShow as M, createTextVNode as q } from "vue";
2
- import { ScalarIcon as p, ScalarButton as y } from "@scalar/components";
3
- import { LibraryIcon as K } from "@scalar/icons";
4
- import { useRouter as T } from "vue-router";
5
- import G from "../../components/EmptyState.vue.js";
6
- import H from "../../components/Sidebar/SidebarButton.vue.js";
7
- import J from "../../components/Sidebar/SidebarList.vue.js";
8
- import Q from "../../components/Sidebar/SidebarListElement.vue.js";
9
- import X from "../../components/ViewLayout/ViewLayout.vue.js";
10
- import Y from "../../components/ViewLayout/ViewLayoutContent.vue.js";
11
- import { PathId as f } from "../../routes.js";
12
- import { useActiveEntities as Z } from "../../store/active-entities.js";
13
- import U from "./ServerForm.vue.js";
14
- import { useWorkspace as ee } from "../../store/store.js";
15
- import te from "../../components/Sidebar/Sidebar.vue.js";
16
- import { useSidebar as re } from "../../hooks/useSidebar.js";
17
- const oe = { class: "flex-1" }, se = ["onClick"], ae = { class: "flex h-5 max-w-[14px] items-center justify-center pr-px" }, ie = { class: "line-clamp-1 w-full break-all text-left font-medium" }, Ce = /* @__PURE__ */ P({
18
- __name: "Servers",
19
- setup(le) {
20
- const { activeWorkspaceCollections: S, activeWorkspace: C, activeRouterParams: w } = Z(), { servers: v, events: z, serverMutators: D } = ee(), { push: A, resolve: L } = T(), { collapsedSidebarFolders: b, toggleSidebarFolder: N } = re(), V = (t) => b[t];
21
- function u(t) {
22
- z.commandPalette.emit({
23
- commandName: "Add Server",
24
- metaData: { parentUid: t }
25
- });
26
- }
27
- const j = x(() => S.value.filter(
28
- (t) => {
29
- var s;
30
- return ((s = t.info) == null ? void 0 : s.title) !== "Drafts";
31
- }
32
- )), E = (t, s, e) => {
33
- var r;
34
- const c = {
35
- name: "servers",
36
- params: {
37
- [f.Workspace]: (r = C.value) == null ? void 0 : r.uid,
38
- [f.Collection]: e,
39
- [f.Servers]: s
40
- }
41
- };
42
- t.metaKey ? window.open(L(c).href, "_blank") : A(c);
43
- }, I = (t) => D.delete(
44
- t,
45
- w.value.collection
46
- ), $ = x(() => Object.keys(v).length > 0);
47
- return (t, s) => (i(), m(X, null, {
48
- default: l(() => [
49
- a(o(te), { title: "Servers" }, {
50
- content: l(() => [
51
- n("div", oe, [
52
- a(J, null, {
53
- default: l(() => [
54
- (i(!0), d(k, null, _(j.value, (e) => {
55
- var c;
56
- return i(), d("li", {
57
- key: e.uid,
58
- class: "gap-1/2 flex flex-col"
59
- }, [
60
- n("button", {
61
- 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",
62
- type: "button",
63
- onClick: (r) => o(N)(e.uid)
64
- }, [
65
- n("span", ae, [
66
- a(o(K), {
67
- class: "text-sidebar-c-2 size-3.5 min-w-3.5 stroke-2 group-hover:hidden",
68
- src: e["x-scalar-icon"] || "interface-content-folder"
69
- }, null, 8, ["src"]),
70
- n("div", {
71
- class: g({
72
- "rotate-90": o(b)[e.uid]
73
- })
74
- }, [
75
- a(o(p), {
76
- class: "text-c-3 hover:text-c-1 hidden text-sm group-hover:block",
77
- icon: "ChevronRight",
78
- size: "md"
79
- })
80
- ], 2)
81
- ]),
82
- n("span", ie, W(((c = e.info) == null ? void 0 : c.title) ?? ""), 1),
83
- a(o(y), {
84
- class: "hover:bg-b-3 hover:text-c-1 hidden aspect-square h-fit px-0.5 py-0 group-hover:block group-focus-visible:opacity-100 group-has-[:focus-visible]:opacity-100",
85
- size: "sm",
86
- variant: "ghost",
87
- onClick: F((r) => u(e.uid), ["stop", "prevent"])
88
- }, {
89
- default: l(() => [
90
- a(o(p), {
91
- icon: "Add",
92
- size: "md",
93
- thickness: "2"
94
- })
95
- ]),
96
- _: 2
97
- }, 1032, ["onClick"])
98
- ], 8, se),
99
- O(n("div", {
100
- class: g({
101
- "before:bg-border before:z-1 gap-1/2 relative mb-[.5px] flex flex-col 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(e.servers || {}).length > 0
102
- })
103
- }, [
104
- (i(!0), d(k, null, _(e.servers, (r) => {
105
- var h;
106
- return i(), m(Q, {
107
- key: r,
108
- class: "[&>a]:pl-[1.625rem]",
109
- collectionId: e.uid,
110
- isDeletable: !0,
111
- type: "servers",
112
- variable: {
113
- name: ((h = o(v)[r]) == null ? void 0 : h.url) ?? "",
114
- uid: r
115
- },
116
- onClick: (B) => E(B, r, e.uid),
117
- onDelete: I
118
- }, null, 8, ["collectionId", "variable", "onClick"]);
119
- }), 128)),
120
- Object.keys(e.servers || {}).length === 0 ? (i(), m(o(y), {
121
- key: 0,
122
- class: "text-c-1 hover:bg-b-2 mb-[.5px] flex h-8 w-full justify-start gap-1.5 py-0 pl-6 text-xs",
123
- variant: "ghost",
124
- onClick: (r) => u(e.uid)
125
- }, {
126
- default: l(() => [
127
- a(o(p), {
128
- icon: "Add",
129
- size: "sm"
130
- }),
131
- s[0] || (s[0] = n("span", null, "Add Server", -1))
132
- ]),
133
- _: 2
134
- }, 1032, ["onClick"])) : R("", !0)
135
- ], 2), [
136
- [M, V(e.uid)]
137
- ])
138
- ]);
139
- }), 128))
140
- ]),
141
- _: 1
142
- })
143
- ])
144
- ]),
145
- button: l(() => [
146
- a(H, { click: u }, {
147
- title: l(() => s[1] || (s[1] = [
148
- q(" Add Server ")
149
- ])),
150
- _: 1
151
- })
152
- ]),
153
- _: 1
154
- }),
155
- a(Y, { class: "flex-1" }, {
156
- default: l(() => [
157
- $.value ? (i(), m(U, { key: 0 })) : (i(), m(G, { key: 1 }))
158
- ]),
159
- _: 1
160
- })
161
- ]),
162
- _: 1
163
- }));
164
- }
165
- });
166
- export {
167
- Ce as default
168
- };
@@ -1,2 +0,0 @@
1
- export { default as ServerForm } from './ServerForm.vue';
2
- //# sourceMappingURL=index.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/views/Servers/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,IAAI,UAAU,EAAE,MAAM,kBAAkB,CAAA"}
@@ -1,4 +0,0 @@
1
- import { default as o } from "./ServerForm.vue.js";
2
- export {
3
- o as ServerForm
4
- };