@scalar/api-client 2.2.51 → 2.2.53

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 (404) hide show
  1. package/CHANGELOG.md +66 -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 +3 -1
  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 +1 -1
  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 +39 -33
  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 +37 -35
  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 +1 -1
  299. package/dist/views/Request/Request.vue2.js +114 -171
  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/components/SettingsAppearance.vue.js +6 -6
  393. package/dist/vitest.setup.d.ts +16 -0
  394. package/dist/vitest.setup.d.ts.map +1 -0
  395. package/package.json +16 -21
  396. package/dist/views/Servers/ServerForm.vue.d.ts.map +0 -1
  397. package/dist/views/Servers/ServerForm.vue.js +0 -39
  398. package/dist/views/Servers/ServerForm.vue2.js +0 -4
  399. package/dist/views/Servers/Servers.vue.d.ts.map +0 -1
  400. package/dist/views/Servers/Servers.vue.js +0 -4
  401. package/dist/views/Servers/Servers.vue2.js +0 -168
  402. package/dist/views/Servers/index.d.ts +0 -2
  403. package/dist/views/Servers/index.d.ts.map +0 -1
  404. package/dist/views/Servers/index.js +0 -4
@@ -1,39 +1,38 @@
1
- import { defineComponent as s, openBlock as l, createElementBlock as n, createElementVNode as e, toDisplayString as r, normalizeClass as a } from "vue";
2
- const i = { class: "sr-only" }, d = {
1
+ import { defineComponent as a, openBlock as s, createElementBlock as l, unref as o, createElementVNode as t, toDisplayString as d, normalizeClass as p } from "vue";
2
+ import { useSidebar as c } from "../../hooks/useSidebar.js";
3
+ const u = { class: "sr-only" }, m = {
3
4
  class: "size-4",
4
5
  fill: "none",
5
6
  viewBox: "0 0 24 24",
6
7
  xmlns: "http://www.w3.org/2000/svg"
7
- }, p = { "clip-path": "url(#mask)" }, g = /* @__PURE__ */ s({
8
+ }, g = { "clip-path": "url(#mask)" }, k = /* @__PURE__ */ a({
8
9
  __name: "SidebarToggle",
9
- props: {
10
- modelValue: { type: Boolean }
11
- },
12
- emits: ["update:modelValue"],
13
- setup(u) {
14
- return (o, t) => (l(), n("button", {
15
- class: "scalar-sidebar-toggle text-c-3 hover:bg-b-2 active:text-c-1 p-2 rounded-lg",
10
+ setup(b) {
11
+ const { isSidebarOpen: n, toggleSidebarOpen: r } = c();
12
+ return (f, e) => (s(), l("button", {
13
+ class: "scalar-sidebar-toggle text-c-3 hover:bg-b-2 active:text-c-1 rounded-lg p-2",
16
14
  type: "button",
17
- onClick: t[0] || (t[0] = (m) => o.$emit("update:modelValue", !o.modelValue))
15
+ onClick: e[0] || (e[0] = //@ts-ignore
16
+ (...i) => o(r) && o(r)(...i))
18
17
  }, [
19
- e("span", i, r(o.modelValue ? "Hide" : "Show") + " sidebar", 1),
20
- (l(), n("svg", d, [
21
- t[1] || (t[1] = e("defs", null, [
22
- e("clipPath", { id: "mask" }, [
23
- e("path", {
18
+ t("span", u, d(o(n) ? "Hide" : "Show") + " sidebar", 1),
19
+ (s(), l("svg", m, [
20
+ e[1] || (e[1] = t("defs", null, [
21
+ t("clipPath", { id: "mask" }, [
22
+ t("path", {
24
23
  "clip-rule": "evenodd",
25
24
  d: "M9 3.2H4c-1.7 0-3 1.3-3 3v11.5c0 1.7 1.3 3 3 3h5V3.2z"
26
25
  })
27
26
  ])
28
27
  ], -1)),
29
- e("g", p, [
30
- e("path", {
31
- class: a(["transition-transform duration-300", o.modelValue ? "translate-x-0" : "-translate-x-1/2"]),
28
+ t("g", g, [
29
+ t("path", {
30
+ class: p(["transition-transform duration-300", o(n) ? "translate-x-0" : "-translate-x-1/2"]),
32
31
  d: "M1 3.2h8v17.5H1z",
33
32
  fill: "currentColor"
34
33
  }, null, 2)
35
34
  ]),
36
- t[2] || (t[2] = e("path", {
35
+ e[2] || (e[2] = t("path", {
37
36
  d: "M20 20.8H4c-1.7 0-3-1.3-3-3V6.2c0-1.7 1.3-3 3-3h16c1.7 0 3 1.3 3 3v11.5c0 1.7-1.3 3-3 3zM9 3.2v17.5",
38
37
  stroke: "currentColor",
39
38
  "stroke-linecap": "round",
@@ -45,5 +44,5 @@ const i = { class: "sr-only" }, d = {
45
44
  }
46
45
  });
47
46
  export {
48
- g as default
47
+ k as default
49
48
  };
@@ -1 +1 @@
1
- {"version":3,"file":"TopNav.vue.d.ts","sourceRoot":"","sources":["../../../src/components/TopNav/TopNav.vue"],"names":[],"mappings":"AAiQA,KAAK,WAAW,GAAG;IACjB,UAAU,EAAE;QAAE,IAAI,EAAE,MAAM,CAAC;QAAC,GAAG,EAAE,MAAM,CAAA;KAAE,GAAG,IAAI,CAAA;CACjD,CAAC;;AAkbF,wBAOG"}
1
+ {"version":3,"file":"TopNav.vue.d.ts","sourceRoot":"","sources":["../../../src/components/TopNav/TopNav.vue"],"names":[],"mappings":"AAiRA,KAAK,WAAW,GAAG;IACjB,UAAU,EAAE;QAAE,IAAI,EAAE,MAAM,CAAC;QAAC,GAAG,EAAE,MAAM,CAAA;KAAE,GAAG,IAAI,CAAA;CACjD,CAAC;;AAkcF,wBAOG"}
@@ -1,139 +1,158 @@
1
- import { defineComponent as $, reactive as z, ref as B, computed as E, watch as w, onMounted as V, onBeforeUnmount as j, openBlock as m, createElementBlock as b, createElementVNode as d, createVNode as r, unref as i, withCtx as c, createBlock as x, createCommentVNode as O, toDisplayString as D, createTextVNode as _, Fragment as K, renderList as q } from "vue";
2
- import F from "../ScalarHotkey.vue.js";
3
- import { ROUTES as H } from "../../constants.js";
4
- import { useActiveEntities as W } from "../../store/active-entities.js";
5
- import { ScalarContextMenu as G, ScalarIcon as h, ScalarFloating as J, ScalarDropdownMenu as P, ScalarDropdownButton as I } from "@scalar/components";
6
- import { capitalize as Q } from "@scalar/oas-utils/helpers";
1
+ import { defineComponent as j, reactive as z, ref as O, computed as W, watch as R, onMounted as D, onBeforeUnmount as K, openBlock as m, createElementBlock as b, createElementVNode as v, createVNode as r, unref as s, withCtx as u, createBlock as _, createCommentVNode as q, toDisplayString as F, createTextVNode as S, Fragment as H, renderList as G } from "vue";
2
+ import { ScalarContextMenu as J, ScalarIcon as d, ScalarFloating as P, ScalarDropdownMenu as Q, ScalarDropdownButton as I } from "@scalar/components";
7
3
  import { useClipboard as X } from "@scalar/use-hooks/useClipboard";
8
4
  import { useRouter as Y } from "vue-router";
9
- import Z from "./TopNavItem.vue.js";
10
- import { useWorkspace as ee } from "../../store/store.js";
11
- const te = { class: "flex relative h-10 pl-2 mac:pl-[72px] t-app__top-nav" }, oe = { class: "flex h-10 flex-1 items-center gap-1.5 text-sm font-medium pr-2.5 relative overflow-hidden" }, ae = {
5
+ import Z from "../ScalarHotkey.vue.js";
6
+ import { ROUTES as ee } from "../../constants.js";
7
+ import { useActiveEntities as te } from "../../store/active-entities.js";
8
+ import oe from "./TopNavItem.vue.js";
9
+ import { useWorkspace as ae } from "../../store/store.js";
10
+ const ne = { class: "mac:pl-[72px] t-app__top-nav relative flex h-10 pl-2" }, le = { class: "relative flex h-10 flex-1 items-center gap-1.5 overflow-hidden pr-2.5 text-sm font-medium" }, ie = {
12
11
  key: 0,
13
12
  class: "h-full w-full overflow-hidden"
14
- }, de = /* @__PURE__ */ $({
13
+ }, he = /* @__PURE__ */ j({
15
14
  __name: "TopNav",
16
15
  props: {
17
16
  openNewTab: {}
18
17
  },
19
- setup(S) {
20
- const L = S, { activeRequest: R } = W(), u = Y(), { events: g } = ee(), { copyToClipboard: U } = X(), o = z([{ label: "", path: "", icon: "Add" }]), a = B(0), T = E(() => a.value);
18
+ setup(L) {
19
+ const U = L, { activeRequest: A, activeCollection: E } = te(), c = Y(), { events: g } = ae(), { copyToClipboard: M } = X(), t = z([{ label: "", path: "", icon: "Add" }]), a = O(0), T = W(() => a.value);
21
20
  function k() {
22
- var t;
23
- const e = H.find((n) => u.currentRoute.value.name == n.name);
24
- e && ((e == null ? void 0 : e.name) === "request" ? o[a.value] = {
25
- label: ((t = R.value) == null ? void 0 : t.summary) || "",
26
- path: u.currentRoute.value.path,
27
- icon: e.icon
28
- } : o[a.value] = {
29
- label: Q(e == null ? void 0 : e.name) || "",
30
- path: u.currentRoute.value.path,
31
- icon: e.icon
21
+ var o, n, l, i, x;
22
+ if ((o = c.currentRoute.value.name) != null && o.toString().startsWith("collection.")) {
23
+ t[a.value] = {
24
+ label: ((l = (n = E.value) == null ? void 0 : n.info) == null ? void 0 : l.title) || "Untitled Collection",
25
+ path: c.currentRoute.value.path,
26
+ icon: "Collection"
27
+ };
28
+ return;
29
+ }
30
+ if ((i = c.currentRoute.value.name) != null && i.toString().startsWith("request")) {
31
+ t[a.value] = {
32
+ label: ((x = A.value) == null ? void 0 : x.summary) || "",
33
+ path: c.currentRoute.value.path,
34
+ icon: "ExternalLink"
35
+ };
36
+ return;
37
+ }
38
+ const e = ee.find((V) => {
39
+ var w;
40
+ return V.to.name.startsWith(
41
+ ((w = c.currentRoute.value.name) == null ? void 0 : w.toString()) ?? ""
42
+ );
32
43
  });
44
+ if (e) {
45
+ t[a.value] = {
46
+ label: e.displayName,
47
+ path: c.currentRoute.value.path,
48
+ icon: e.icon
49
+ };
50
+ return;
51
+ }
33
52
  }
34
- function v() {
35
- var t;
36
- const e = (t = o[a.value]) == null ? void 0 : t.path;
37
- e && u.push(e);
53
+ function h() {
54
+ var o;
55
+ const e = (o = t[a.value]) == null ? void 0 : o.path;
56
+ e && c.push(e);
38
57
  }
39
58
  function f() {
40
- o.push({ label: "", path: "", icon: "Add" }), a.value = o.length - 1, k();
59
+ t.push({ label: "", path: "", icon: "Add" }), a.value = t.length - 1, k();
41
60
  }
42
61
  function p(e) {
43
- a.value = e, v();
62
+ a.value = e, h();
44
63
  }
45
- w(
46
- () => u.currentRoute.value.path,
64
+ R(
65
+ () => c.currentRoute.value.path,
47
66
  () => {
48
67
  k();
49
68
  },
50
69
  { immediate: !0 }
51
70
  );
52
- function N(e) {
53
- o.splice(e, 1), a.value = Math.min(
71
+ function C(e) {
72
+ t.splice(e, 1), a.value = Math.min(
54
73
  a.value,
55
- o.length - 1
56
- ), v();
74
+ t.length - 1
75
+ ), h();
57
76
  }
58
- const y = (e) => {
77
+ const N = (e) => {
59
78
  var n;
60
- if (!((n = o[e]) != null && n.path)) return;
61
- const t = new URL(window.location.href);
62
- t.pathname = o[e].path, U(t.toString());
63
- }, A = (e) => {
64
- o.splice(0, e), o.splice(1), a.value = 0, v();
65
- }, C = (e) => {
79
+ if (!((n = t[e]) != null && n.path)) return;
80
+ const o = new URL(window.location.href);
81
+ o.pathname = t[e].path, M(o.toString());
82
+ }, $ = (e) => {
83
+ t.splice(0, e), t.splice(1), a.value = 0, h();
84
+ }, y = (e) => {
66
85
  if (e) {
67
- if (e.addTopNav && f(), e.closeTopNav && N(a.value), e.navigateTopNavLeft && p(Math.max(a.value - 1, 0)), e.navigateTopNavRight && p(Math.min(a.value + 1, o.length - 1)), e.jumpToTab) {
68
- const t = Number(e.jumpToTab.key) - 1;
69
- t >= 0 && t < o.length && p(t);
86
+ if (e.addTopNav && f(), e.closeTopNav && C(a.value), e.navigateTopNavLeft && p(Math.max(a.value - 1, 0)), e.navigateTopNavRight && p(Math.min(a.value + 1, t.length - 1)), e.jumpToTab) {
87
+ const o = Number(e.jumpToTab.key) - 1;
88
+ o >= 0 && o < t.length && p(o);
70
89
  }
71
- e.jumpToLastTab && p(o.length - 1);
90
+ e.jumpToLastTab && p(t.length - 1);
72
91
  }
73
- }, M = (e) => {
74
- o.push({
92
+ }, B = (e) => {
93
+ t.push({
75
94
  label: e.name,
76
95
  path: e.uid,
77
96
  icon: "ExternalLink"
78
97
  });
79
98
  };
80
- return w(
81
- () => L.openNewTab,
99
+ return R(
100
+ () => U.openNewTab,
82
101
  (e) => {
83
- e && M(e);
102
+ e && B(e);
84
103
  },
85
104
  { immediate: !0 }
86
- ), V(() => g.hotKeys.on(C)), j(() => g.hotKeys.off(C)), (e, t) => (m(), b("nav", te, [
87
- t[3] || (t[3] = d("div", { class: "absolute inset-0 app-drag-region" }, null, -1)),
88
- d("div", oe, [
89
- o.length === 1 ? (m(), b("div", ae, [
90
- r(i(G), { triggerClass: "flex custom-scroll gap-1.5 h-full items-center justify-center w-full whitespace-nowrap" }, {
91
- trigger: c(() => {
92
- var n, l, s;
105
+ ), D(() => g.hotKeys.on(y)), K(() => g.hotKeys.off(y)), (e, o) => (m(), b("nav", ne, [
106
+ o[3] || (o[3] = v("div", { class: "app-drag-region absolute inset-0" }, null, -1)),
107
+ v("div", le, [
108
+ t.length === 1 ? (m(), b("div", ie, [
109
+ r(s(J), { triggerClass: "flex custom-scroll gap-1.5 h-full items-center justify-center w-full whitespace-nowrap" }, {
110
+ trigger: u(() => {
111
+ var n, l, i;
93
112
  return [
94
- (n = o[0]) != null && n.icon ? (m(), x(i(h), {
113
+ (n = t[0]) != null && n.icon ? (m(), _(s(d), {
95
114
  key: 0,
96
- icon: (l = o[0]) == null ? void 0 : l.icon,
115
+ icon: (l = t[0]) == null ? void 0 : l.icon,
97
116
  size: "xs",
98
117
  thickness: "2.5"
99
- }, null, 8, ["icon"])) : O("", !0),
100
- d("span", null, D((s = o[0]) == null ? void 0 : s.label), 1)
118
+ }, null, 8, ["icon"])) : q("", !0),
119
+ v("span", null, F((i = t[0]) == null ? void 0 : i.label), 1)
101
120
  ];
102
121
  }),
103
- content: c(() => [
104
- r(i(J), { placement: "right-start" }, {
105
- floating: c(() => [
106
- r(i(P), { class: "scalar-app scalar-client" }, {
107
- default: c(() => [
108
- r(i(I), {
122
+ content: u(() => [
123
+ r(s(P), { placement: "right-start" }, {
124
+ floating: u(() => [
125
+ r(s(Q), { class: "scalar-app scalar-client" }, {
126
+ default: u(() => [
127
+ r(s(I), {
109
128
  class: "flex items-center gap-1.5",
110
129
  onClick: f
111
130
  }, {
112
- default: c(() => [
113
- r(i(h), {
131
+ default: u(() => [
132
+ r(s(d), {
114
133
  icon: "AddTab",
115
134
  size: "sm",
116
135
  thickness: "1.5"
117
136
  }),
118
- t[1] || (t[1] = _(" New Tab ")),
119
- r(F, {
137
+ o[1] || (o[1] = S(" New Tab ")),
138
+ r(Z, {
120
139
  class: "bg-b-2 ml-auto",
121
140
  hotkey: "T"
122
141
  })
123
142
  ]),
124
143
  _: 1
125
144
  }),
126
- r(i(I), {
145
+ r(s(I), {
127
146
  class: "flex items-center gap-1.5",
128
- onClick: t[0] || (t[0] = (n) => y(T.value))
147
+ onClick: o[0] || (o[0] = (n) => N(T.value))
129
148
  }, {
130
- default: c(() => [
131
- r(i(h), {
149
+ default: u(() => [
150
+ r(s(d), {
132
151
  icon: "Link",
133
152
  size: "sm",
134
153
  thickness: "1.5"
135
154
  }),
136
- t[2] || (t[2] = _(" Copy URL "))
155
+ o[2] || (o[2] = S(" Copy URL "))
137
156
  ]),
138
157
  _: 1
139
158
  })
@@ -146,24 +165,24 @@ const te = { class: "flex relative h-10 pl-2 mac:pl-[72px] t-app__top-nav" }, oe
146
165
  ]),
147
166
  _: 1
148
167
  })
149
- ])) : (m(!0), b(K, { key: 1 }, q(o, (n, l) => (m(), x(Z, {
168
+ ])) : (m(!0), b(H, { key: 1 }, G(t, (n, l) => (m(), _(oe, {
150
169
  key: n.path,
151
170
  active: l === T.value,
152
171
  hotkey: (l + 1).toString(),
153
172
  icon: n.icon,
154
173
  label: n.label,
155
- onClick: (s) => p(l),
156
- onClose: (s) => N(l),
157
- onCloseOtherTabs: (s) => A(l),
158
- onCopyUrl: (s) => y(l),
174
+ onClick: (i) => p(l),
175
+ onClose: (i) => C(l),
176
+ onCloseOtherTabs: (i) => $(l),
177
+ onCopyUrl: (i) => N(l),
159
178
  onNewTab: f
160
179
  }, null, 8, ["active", "hotkey", "icon", "label", "onClick", "onClose", "onCloseOtherTabs", "onCopyUrl"]))), 128)),
161
- d("button", {
162
- class: "text-c-3 hover:bg-b-3 p-1.5 rounded app-no-drag-region",
180
+ v("button", {
181
+ class: "text-c-3 hover:bg-b-3 app-no-drag-region rounded p-1.5",
163
182
  type: "button",
164
183
  onClick: f
165
184
  }, [
166
- r(i(h), {
185
+ r(s(d), {
167
186
  icon: "Add",
168
187
  size: "xs",
169
188
  thickness: "2.5"
@@ -174,5 +193,5 @@ const te = { class: "flex relative h-10 pl-2 mac:pl-[72px] t-app__top-nav" }, oe
174
193
  }
175
194
  });
176
195
  export {
177
- de as default
196
+ he as default
178
197
  };
@@ -6,14 +6,14 @@ type __VLS_Props = {
6
6
  icon: Icon;
7
7
  };
8
8
  declare const _default: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {} & {
9
- close: () => any;
10
9
  click: () => any;
10
+ close: () => any;
11
11
  newTab: () => any;
12
12
  copyUrl: () => any;
13
13
  closeOtherTabs: () => any;
14
14
  }, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{
15
- onClose?: () => any;
16
15
  onClick?: () => any;
16
+ onClose?: () => any;
17
17
  onNewTab?: () => any;
18
18
  onCopyUrl?: () => any;
19
19
  onCloseOtherTabs?: () => any;
@@ -1 +1 @@
1
- {"version":3,"file":"TopNavItem.vue.d.ts","sourceRoot":"","sources":["../../../src/components/TopNav/TopNavItem.vue"],"names":[],"mappings":"AAwMA,OAAO,EACL,KAAK,IAAI,EAQV,MAAM,oBAAoB,CAAA;AAI3B,KAAK,WAAW,GAAG;IACjB,MAAM,CAAC,EAAE,MAAM,CAAA;IACf,MAAM,EAAE,OAAO,CAAA;IACf,KAAK,EAAE,MAAM,CAAA;IACb,IAAI,EAAE,IAAI,CAAA;CACX,CAAC;;;;;;;;;;;;;;AA2UF,wBAQG"}
1
+ {"version":3,"file":"TopNavItem.vue.d.ts","sourceRoot":"","sources":["../../../src/components/TopNav/TopNavItem.vue"],"names":[],"mappings":"AAwMA,OAAO,EAQL,KAAK,IAAI,EACV,MAAM,oBAAoB,CAAA;AAM3B,KAAK,WAAW,GAAG;IACjB,MAAM,CAAC,EAAE,MAAM,CAAA;IACf,MAAM,EAAE,OAAO,CAAA;IACf,KAAK,EAAE,MAAM,CAAA;IACb,IAAI,EAAE,IAAI,CAAA;CACX,CAAC;;;;;;;;;;;;;;AA2UF,wBAQG"}
@@ -1,7 +1,7 @@
1
1
  import o from "./TopNavItem.vue2.js";
2
2
  /* empty css */
3
3
  import t from "../../_virtual/_plugin-vue_export-helper.js";
4
- const a = /* @__PURE__ */ t(o, [["__scopeId", "data-v-d56f12d9"]]);
4
+ const r = /* @__PURE__ */ t(o, [["__scopeId", "data-v-220e0e29"]]);
5
5
  export {
6
- a as default
6
+ r as default
7
7
  };
@@ -1,6 +1,6 @@
1
1
  import { defineComponent as f, openBlock as p, createBlock as d, unref as s, withCtx as l, createVNode as t, createElementVNode as a, normalizeClass as k, toDisplayString as u, createCommentVNode as g, createTextVNode as r } from "vue";
2
- import c from "../ScalarHotkey.vue.js";
3
2
  import { ScalarContextMenu as b, ScalarTooltip as v, ScalarIcon as n, ScalarFloating as C, ScalarDropdownMenu as y, ScalarDropdownButton as m, ScalarDropdownDivider as T } from "@scalar/components";
3
+ import c from "../ScalarHotkey.vue.js";
4
4
  const $ = { class: "nav-item-icon-copy flex flex-1 items-center justify-center gap-1.5" }, w = { class: "custom-scroll nav-item-copy text-xs" }, B = /* @__PURE__ */ f({
5
5
  __name: "TopNavItem",
6
6
  props: {
@@ -1 +1 @@
1
- {"version":3,"file":"ViewLayout.vue.d.ts","sourceRoot":"","sources":["../../../src/components/ViewLayout/ViewLayout.vue"],"names":[],"mappings":"AAeA,iBAAS,cAAc;WA4CT,OAAO,IAA6B;;yBARrB,GAAG;;;;EAa/B;AAOD,KAAK,oBAAoB,GAAG,UAAU,CAAC,OAAO,cAAc,CAAC,CAAC;AAC9D,QAAA,MAAM,eAAe,0RAMnB,CAAC;wBACkB,uBAAuB,CAAC,OAAO,eAAe,EAAE,oBAAoB,CAAC,OAAO,CAAC,CAAC;AAAnG,wBAAoG;AAKpG,KAAK,uBAAuB,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG;IACxC,QAAO;QACN,MAAM,EAAE,CAAC,CAAC;KAEV,CAAA;CACD,CAAC"}
1
+ {"version":3,"file":"ViewLayout.vue.d.ts","sourceRoot":"","sources":["../../../src/components/ViewLayout/ViewLayout.vue"],"names":[],"mappings":"AA6BA,iBAAS,cAAc;WAsCT,OAAO,IAA6B;;yBARrB,GAAG;;;;EAa/B;AAQD,KAAK,oBAAoB,GAAG,UAAU,CAAC,OAAO,cAAc,CAAC,CAAC;AAC9D,QAAA,MAAM,eAAe,0RAMnB,CAAC;wBACkB,uBAAuB,CAAC,OAAO,eAAe,EAAE,oBAAoB,CAAC,OAAO,CAAC,CAAC;AAAnG,wBAAoG;AAKpG,KAAK,uBAAuB,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG;IACxC,QAAO;QACN,MAAM,EAAE,CAAC,CAAC;KAEV,CAAA;CACD,CAAC"}
@@ -1,12 +1,18 @@
1
- import { openBlock as o, createElementBlock as r, renderSlot as t } from "vue";
2
- import l from "../../_virtual/_plugin-vue_export-helper.js";
3
- const d = {}, n = { class: "flex flex-col min-h-0 flex-1 *:border-t-1/2 first:*:border-t-0 md:*:border-t-0 xl:overflow-hidden md:flex-row leading-3" };
4
- function c(e, f) {
5
- return o(), r("div", n, [
6
- t(e.$slots, "default")
7
- ]);
8
- }
9
- const a = /* @__PURE__ */ l(d, [["render", c]]);
1
+ import { defineComponent as o, openBlock as t, createElementBlock as n, normalizeProps as l, guardReactiveProps as d, unref as f, renderSlot as i } from "vue";
2
+ import { useBindCx as a } from "@scalar/components";
3
+ const u = /* @__PURE__ */ o({
4
+ __name: "ViewLayout",
5
+ setup(m) {
6
+ const { cx: e } = a();
7
+ return (r, s) => (t(), n("div", l(d(
8
+ f(e)(
9
+ "flex flex-col min-h-0 flex-1 *:border-t-1/2 first:*:border-t-0 md:*:border-t-0 xl:overflow-hidden md:flex-row leading-3"
10
+ )
11
+ )), [
12
+ i(r.$slots, "default")
13
+ ], 16));
14
+ }
15
+ });
10
16
  export {
11
- a as default
17
+ u as default
12
18
  };
@@ -0,0 +1,4 @@
1
+ import f from "./ViewLayout.vue.js";
2
+ export {
3
+ f as default
4
+ };
@@ -1 +1 @@
1
- {"version":3,"file":"ViewLayoutCollapse.vue.d.ts","sourceRoot":"","sources":["../../../src/components/ViewLayout/ViewLayoutCollapse.vue"],"names":[],"mappings":"AAsEA,KAAK,WAAW,GAAG;IACjB,WAAW,CAAC,EAAE,OAAO,CAAA;IACrB,SAAS,CAAC,EAAE,MAAM,CAAA;IAClB,MAAM,CAAC,EAAE,QAAQ,GAAG,WAAW,CAAA;CAChC,CAAC;AAaF,iBAAS,cAAc;WAwJT,OAAO,IAA6B;;;;YAVtB,GAAG;;;YACD,GAAG;;;YACH,GAAG;;;;EAahC;AAYD,KAAK,oBAAoB,GAAG,UAAU,CAAC,OAAO,cAAc,CAAC,CAAC;AAC9D,QAAA,MAAM,eAAe,kSAOnB,CAAC;wBACkB,uBAAuB,CAAC,OAAO,eAAe,EAAE,oBAAoB,CAAC,OAAO,CAAC,CAAC;AAAnG,wBAAoG;AAUpG,KAAK,uBAAuB,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG;IACxC,QAAO;QACN,MAAM,EAAE,CAAC,CAAC;KAEV,CAAA;CACD,CAAC"}
1
+ {"version":3,"file":"ViewLayoutCollapse.vue.d.ts","sourceRoot":"","sources":["../../../src/components/ViewLayout/ViewLayoutCollapse.vue"],"names":[],"mappings":"AAqEA,KAAK,WAAW,GAAG;IACjB,WAAW,CAAC,EAAE,OAAO,CAAA;IACrB,SAAS,CAAC,EAAE,MAAM,CAAA;IAClB,MAAM,CAAC,EAAE,QAAQ,GAAG,WAAW,CAAA;CAChC,CAAC;AAaF,iBAAS,cAAc;WAyJT,OAAO,IAA6B;;;;YAVtB,GAAG;;;YACD,GAAG;;;YACH,GAAG;;;;EAahC;AAYD,KAAK,oBAAoB,GAAG,UAAU,CAAC,OAAO,cAAc,CAAC,CAAC;AAC9D,QAAA,MAAM,eAAe,kSAOnB,CAAC;wBACkB,uBAAuB,CAAC,OAAO,eAAe,EAAE,oBAAoB,CAAC,OAAO,CAAC,CAAC;AAAnG,wBAAoG;AAUpG,KAAK,uBAAuB,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG;IACxC,QAAO;QACN,MAAM,EAAE,CAAC,CAAC;KAEV,CAAA;CACD,CAAC"}
@@ -1,10 +1,10 @@
1
- import { defineComponent as f, openBlock as o, createBlock as a, unref as s, normalizeClass as l, withCtx as r, createElementVNode as u, createVNode as c, createCommentVNode as n, renderSlot as i, createElementBlock as d, toDisplayString as p, mergeProps as m } from "vue";
2
- import { Disclosure as h, DisclosureButton as b, DisclosurePanel as x } from "@headlessui/vue";
3
- import { ScalarIcon as y } from "@scalar/components";
4
- const g = { class: "bg-b-2 flex items-center" }, v = { class: "flex flex-1 items-center gap-1.5 text-c-1" }, C = {
1
+ import { defineComponent as f, openBlock as o, createBlock as a, unref as l, withCtx as s, createElementVNode as i, createVNode as u, normalizeClass as c, createCommentVNode as r, renderSlot as n, createElementBlock as d, toDisplayString as p, mergeProps as m } from "vue";
2
+ import { Disclosure as h, DisclosureButton as x, DisclosurePanel as b } from "@headlessui/vue";
3
+ import { ScalarIcon as g } from "@scalar/components";
4
+ const y = { class: "bg-b-2 flex items-center" }, v = { class: "text-c-1 flex flex-1 items-center gap-1.5" }, C = {
5
5
  key: 0,
6
- class: "bg-b-2 text-c-2 text-3xs inline-flex h-4 w-4 items-center justify-center rounded-full font-semibold border"
7
- }, k = {
6
+ class: "bg-b-2 text-c-2 text-3xs inline-flex h-4 w-4 items-center justify-center rounded-full border font-semibold"
7
+ }, _ = {
8
8
  key: 0,
9
9
  class: "ui-not-open:invisible flex items-center gap-2 pr-1.5"
10
10
  }, O = /* @__PURE__ */ f({
@@ -14,51 +14,51 @@ const g = { class: "bg-b-2 flex items-center" }, v = { class: "flex flex-1 items
14
14
  itemCount: { default: 0 },
15
15
  layout: { default: "client" }
16
16
  },
17
- setup(_) {
18
- return (e, w) => (o(), a(s(h), {
17
+ setup(k) {
18
+ return (e, w) => (o(), a(l(h), {
19
19
  as: "div",
20
- class: l(["focus-within:text-c-1 text-c-2 request-item border-b", { "first:border-t": e.layout === "client" }]),
20
+ class: "group/collapse focus-within:text-c-1 text-c-2 request-item",
21
21
  defaultOpen: e.defaultOpen,
22
22
  static: e.layout === "reference"
23
23
  }, {
24
- default: r(({ open: t }) => [
25
- u("div", g, [
26
- c(s(b), {
27
- class: l([
28
- "group hover:text-c-1 flex flex-1 items-center gap-2.5 overflow-hidden py-1.5 text-sm font-medium max-h-8 px-1 md:px-1.5 xl:pl-2 xl:pr-0.5 outline-none",
24
+ default: s(({ open: t }) => [
25
+ i("div", y, [
26
+ u(l(x), {
27
+ class: c([
28
+ "hover:text-c-1 group box-content flex max-h-8 flex-1 items-center gap-2.5 overflow-hidden px-1 py-1.5 text-sm font-medium outline-none group-last/collapse:border-b md:px-1.5 xl:pl-2 xl:pr-0.5",
29
29
  { "!pl-3": e.layout === "reference" }
30
30
  ]),
31
31
  disabled: e.layout === "reference"
32
32
  }, {
33
- default: r(() => [
34
- e.layout !== "reference" ? (o(), a(s(y), {
33
+ default: s(() => [
34
+ e.layout !== "reference" ? (o(), a(l(g), {
35
35
  key: 0,
36
- class: l([
37
- "text-c-3 group-hover:text-c-1 group-focus-visible:outline ui-open:rotate-90 ui-not-open:rotate-0 rounded-px outline-offset-2"
36
+ class: c([
37
+ "text-c-3 group-hover:text-c-1 ui-open:rotate-90 ui-not-open:rotate-0 rounded-px outline-offset-2 group-focus-visible:outline"
38
38
  ]),
39
39
  icon: "ChevronRight",
40
40
  size: "md"
41
- })) : n("", !0),
42
- u("div", v, [
43
- i(e.$slots, "title", { open: t }),
44
- !t && e.itemCount ? (o(), d("span", C, p(e.itemCount), 1)) : n("", !0)
41
+ })) : r("", !0),
42
+ i("div", v, [
43
+ n(e.$slots, "title", { open: t }),
44
+ !t && e.itemCount ? (o(), d("span", C, p(e.itemCount), 1)) : r("", !0)
45
45
  ])
46
46
  ]),
47
47
  _: 2
48
48
  }, 1032, ["class", "disabled"]),
49
- e.$slots.actions ? (o(), d("div", k, [
50
- i(e.$slots, "actions", { open: t })
51
- ])) : n("", !0)
49
+ e.$slots.actions ? (o(), d("div", _, [
50
+ n(e.$slots, "actions", { open: t })
51
+ ])) : r("", !0)
52
52
  ]),
53
- c(s(x), m(e.$attrs, { class: "h-full max-h-fit rounded-b diclosure-panel" }), {
54
- default: r(() => [
55
- i(e.$slots, "default", { open: t })
53
+ u(l(b), m(e.$attrs, { class: "diclosure-panel h-full max-h-fit rounded-b" }), {
54
+ default: s(() => [
55
+ n(e.$slots, "default", { open: t })
56
56
  ]),
57
57
  _: 2
58
58
  }, 1040)
59
59
  ]),
60
60
  _: 3
61
- }, 8, ["class", "defaultOpen", "static"]));
61
+ }, 8, ["defaultOpen", "static"]));
62
62
  }
63
63
  });
64
64
  export {
@@ -1,6 +1,6 @@
1
1
  import { openBlock as e, createElementBlock as o, renderSlot as t } from "vue";
2
2
  import l from "../../_virtual/_plugin-vue_export-helper.js";
3
- const c = {}, s = { class: "*:border-t-1/2 first:*:border-t-0 xl:*:border-t-0 xl:*:border-l-1/2 xl:first:*:border-l-0 flex xl:flex-row flex-col custom-scroll pr-0" };
3
+ const c = {}, s = { class: "*:border-t-1/2 xl:*:border-l-1/2 custom-scroll flex flex-col pr-0 first:*:border-t-0 xl:flex-row xl:*:border-t-0 xl:first:*:border-l-0" };
4
4
  function n(r, f) {
5
5
  return e(), o("div", s, [
6
6
  t(r.$slots, "default")
@@ -1 +1 @@
1
- {"version":3,"file":"ViewLayoutSection.vue.d.ts","sourceRoot":"","sources":["../../../src/components/ViewLayout/ViewLayoutSection.vue"],"names":[],"mappings":"AAmBA,iBAAS,cAAc;WA0DT,OAAO,IAA6B;;uBATvB,GAAG;yBACD,GAAG;;;;EAa/B;AAOD,KAAK,oBAAoB,GAAG,UAAU,CAAC,OAAO,cAAc,CAAC,CAAC;AAC9D,QAAA,MAAM,eAAe,uRAMnB,CAAC;wBACkB,uBAAuB,CAAC,OAAO,eAAe,EAAE,oBAAoB,CAAC,OAAO,CAAC,CAAC;AAAnG,wBAAoG;AAKpG,KAAK,uBAAuB,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG;IACxC,QAAO;QACN,MAAM,EAAE,CAAC,CAAC;KAEV,CAAA;CACD,CAAC"}
1
+ {"version":3,"file":"ViewLayoutSection.vue.d.ts","sourceRoot":"","sources":["../../../src/components/ViewLayout/ViewLayoutSection.vue"],"names":[],"mappings":"AAgCA,iBAAS,cAAc;WAsDT,OAAO,IAA6B;;uBATvB,GAAG;yBACD,GAAG;;;;EAa/B;AAQD,KAAK,oBAAoB,GAAG,UAAU,CAAC,OAAO,cAAc,CAAC,CAAC;AAC9D,QAAA,MAAM,eAAe,uRAMnB,CAAC;wBACkB,uBAAuB,CAAC,OAAO,eAAe,EAAE,oBAAoB,CAAC,OAAO,CAAC,CAAC;AAAnG,wBAAoG;AAKpG,KAAK,uBAAuB,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG;IACxC,QAAO;QACN,MAAM,EAAE,CAAC,CAAC;KAEV,CAAA;CACD,CAAC"}
@@ -1,15 +1,22 @@
1
- import { openBlock as o, createElementBlock as l, createElementVNode as s, renderSlot as t } from "vue";
2
- import n from "../../_virtual/_plugin-vue_export-helper.js";
3
- const c = {}, r = { class: "flex xl:h-full xl:min-w-0 flex-1 flex-col xl:custom-scroll bg-b-1" }, i = { class: "border-b min-h-11 -mb-0.25 flex items-center px-2.5 text-sm font-medium sticky top-0 bg-b-1 xl:rounded-none z-1" };
4
- function m(e, f) {
5
- return o(), l("section", r, [
6
- s("div", i, [
7
- t(e.$slots, "title")
8
- ]),
9
- t(e.$slots, "default")
10
- ]);
11
- }
12
- const a = /* @__PURE__ */ n(c, [["render", m]]);
1
+ import { defineComponent as r, openBlock as t, createElementBlock as o, normalizeProps as s, guardReactiveProps as i, unref as c, renderSlot as l, createCommentVNode as m } from "vue";
2
+ import { useBindCx as u } from "@scalar/components";
3
+ const a = {
4
+ key: 0,
5
+ class: "bg-b-1 z-1 sticky top-0 flex min-h-11 items-center border-b px-2.5 text-sm font-medium xl:rounded-none"
6
+ }, _ = /* @__PURE__ */ r({
7
+ __name: "ViewLayoutSection",
8
+ setup(d) {
9
+ const { cx: n } = u();
10
+ return (e, f) => (t(), o("section", s(i(
11
+ c(n)("xl:custom-scroll bg-b-1 flex flex-1 flex-col xl:h-full xl:min-w-0")
12
+ )), [
13
+ e.$slots.title ? (t(), o("div", a, [
14
+ l(e.$slots, "title")
15
+ ])) : m("", !0),
16
+ l(e.$slots, "default")
17
+ ], 16));
18
+ }
19
+ });
13
20
  export {
14
- a as default
21
+ _ as default
15
22
  };
@@ -0,0 +1,4 @@
1
+ import f from "./ViewLayoutSection.vue.js";
2
+ export {
3
+ f as default
4
+ };