@scalar/api-client 2.0.64 → 2.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (326) hide show
  1. package/CHANGELOG.md +44 -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 +64 -62
  5. package/dist/components/AddressBar/AddressBarHistory.vue.d.ts.map +1 -1
  6. package/dist/components/AddressBar/AddressBarHistory.vue.js +77 -69
  7. package/dist/components/AddressBar/AddressBarServer.vue.d.ts.map +1 -1
  8. package/dist/components/AddressBar/AddressBarServer.vue.js +121 -0
  9. package/dist/components/AddressBar/AddressBarServer.vue2.js +4 -0
  10. package/dist/components/AddressBar/AddressBarServerItem.vue.d.ts +22 -0
  11. package/dist/components/AddressBar/AddressBarServerItem.vue.d.ts.map +1 -0
  12. package/dist/components/AddressBar/AddressBarServerItem.vue.js +57 -0
  13. package/dist/components/AddressBar/AddressBarServerItem.vue2.js +4 -0
  14. package/dist/components/CodeInput/CodeInput.vue.d.ts +1 -6
  15. package/dist/components/CodeInput/CodeInput.vue.d.ts.map +1 -1
  16. package/dist/components/CodeInput/CodeInput.vue.js +2 -2
  17. package/dist/components/CodeInput/CodeInput.vue2.js +87 -82
  18. package/dist/components/CodeInput/codeVariableWidget.d.ts +4 -4
  19. package/dist/components/CodeInput/codeVariableWidget.d.ts.map +1 -1
  20. package/dist/components/CodeInput/codeVariableWidget.js +70 -63
  21. package/dist/components/CommandPalette/CommandActionForm.vue.d.ts +33 -0
  22. package/dist/components/CommandPalette/CommandActionForm.vue.d.ts.map +1 -0
  23. package/dist/components/CommandPalette/CommandActionForm.vue.js +41 -0
  24. package/dist/components/CommandPalette/CommandActionForm.vue2.js +4 -0
  25. package/dist/components/CommandPalette/CommandActionInput.vue.d.ts +20 -0
  26. package/dist/components/CommandPalette/CommandActionInput.vue.d.ts.map +1 -0
  27. package/dist/components/CommandPalette/CommandActionInput.vue.js +42 -0
  28. package/dist/components/CommandPalette/CommandActionInput.vue2.js +4 -0
  29. package/dist/components/CommandPalette/CommandPaletteCollection.vue.d.ts.map +1 -1
  30. package/dist/components/CommandPalette/CommandPaletteCollection.vue.js +33 -56
  31. package/dist/components/CommandPalette/CommandPaletteExample.vue.d.ts.map +1 -1
  32. package/dist/components/CommandPalette/CommandPaletteExample.vue.js +88 -109
  33. package/dist/components/CommandPalette/CommandPaletteImport.vue.d.ts.map +1 -1
  34. package/dist/components/CommandPalette/CommandPaletteImport.vue.js +56 -73
  35. package/dist/components/CommandPalette/CommandPaletteRequest.vue.d.ts +21 -2
  36. package/dist/components/CommandPalette/CommandPaletteRequest.vue.d.ts.map +1 -1
  37. package/dist/components/CommandPalette/CommandPaletteRequest.vue.js +122 -133
  38. package/dist/components/CommandPalette/{CommandPaletteFolder.vue.d.ts → CommandPaletteServer.vue.d.ts} +1 -1
  39. package/dist/components/CommandPalette/CommandPaletteServer.vue.d.ts.map +1 -0
  40. package/dist/components/CommandPalette/CommandPaletteServer.vue.js +92 -0
  41. package/dist/components/CommandPalette/CommandPaletteServer.vue2.js +4 -0
  42. package/dist/components/CommandPalette/CommandPaletteTag.vue.d.ts +7 -0
  43. package/dist/components/CommandPalette/CommandPaletteTag.vue.d.ts.map +1 -0
  44. package/dist/components/CommandPalette/CommandPaletteTag.vue.js +87 -0
  45. package/dist/components/CommandPalette/CommandPaletteTag.vue2.js +4 -0
  46. package/dist/components/CommandPalette/CommandPaletteWorkspace.vue.d.ts.map +1 -1
  47. package/dist/components/CommandPalette/CommandPaletteWorkspace.vue.js +33 -49
  48. package/dist/components/CommandPalette/TheCommandPalette.vue.d.ts +22 -3
  49. package/dist/components/CommandPalette/TheCommandPalette.vue.d.ts.map +1 -1
  50. package/dist/components/CommandPalette/TheCommandPalette.vue.js +3 -3
  51. package/dist/components/CommandPalette/TheCommandPalette.vue2.js +107 -101
  52. package/dist/components/ContextBar.vue.d.ts.map +1 -1
  53. package/dist/components/ContextBar.vue.js +2 -2
  54. package/dist/components/ContextBar.vue2.js +2 -2
  55. package/dist/components/DataTable/DataTable.vue.js +1 -1
  56. package/dist/components/DataTable/DataTableInput.vue.d.ts +1 -1
  57. package/dist/components/DataTable/DataTableInput.vue.d.ts.map +1 -1
  58. package/dist/components/DataTable/DataTableInput.vue.js +2 -2
  59. package/dist/components/DataTable/DataTableInput.vue2.js +13 -13
  60. package/dist/components/DataTable/DataTableInputSelect.vue.d.ts.map +1 -1
  61. package/dist/components/DataTable/DataTableInputSelect.vue.js +39 -40
  62. package/dist/components/DataTable/index.js +12 -12
  63. package/dist/components/EnvironmentSelector/EnvironmentSelector.vue.js +7 -7
  64. package/dist/components/Form/Form.vue.js +1 -1
  65. package/dist/components/HttpMethod/HttpMethod.vue.d.ts +2 -2
  66. package/dist/components/HttpMethod/HttpMethod.vue.d.ts.map +1 -1
  67. package/dist/components/HttpMethod/HttpMethod.vue.js +2 -2
  68. package/dist/components/HttpMethod/HttpMethod.vue2.js +30 -30
  69. package/dist/components/HttpMethod/helpers.d.ts +4 -0
  70. package/dist/components/HttpMethod/helpers.d.ts.map +1 -0
  71. package/dist/components/HttpMethod/helpers.js +5 -0
  72. package/dist/components/HttpMethod/index.d.ts +1 -0
  73. package/dist/components/HttpMethod/index.d.ts.map +1 -1
  74. package/dist/components/HttpMethod/index.js +4 -2
  75. package/dist/components/Search/SearchModal.vue.d.ts.map +1 -1
  76. package/dist/components/Search/SearchModal.vue.js +2 -2
  77. package/dist/components/Search/SearchModal.vue2.js +29 -27
  78. package/dist/components/Search/useSearch.js +35 -35
  79. package/dist/components/SideNav/SideNavLink.vue.js +6 -6
  80. package/dist/components/Sidebar/Actions/DeleteSidebarListElement.vue.d.ts.map +1 -1
  81. package/dist/components/Sidebar/Actions/DeleteSidebarListElement.vue.js +14 -17
  82. package/dist/components/Sidebar/Actions/RenameSidebarListElement.vue.d.ts +22 -0
  83. package/dist/components/Sidebar/Actions/RenameSidebarListElement.vue.d.ts.map +1 -0
  84. package/dist/components/Sidebar/Actions/RenameSidebarListElement.vue.js +29 -0
  85. package/dist/components/Sidebar/Actions/RenameSidebarListElement.vue2.js +4 -0
  86. package/dist/components/Sidebar/Actions/SidebarListElementForm.vue.d.ts.map +1 -1
  87. package/dist/components/Sidebar/Actions/SidebarListElementForm.vue.js +1 -1
  88. package/dist/components/Sidebar/Actions/SidebarListElementForm.vue2.js +38 -35
  89. package/dist/components/Sidebar/Sidebar.vue.d.ts +2 -1
  90. package/dist/components/Sidebar/Sidebar.vue.d.ts.map +1 -1
  91. package/dist/components/Sidebar/Sidebar.vue.js +1 -1
  92. package/dist/components/Sidebar/Sidebar.vue2.js +37 -34
  93. package/dist/components/Sidebar/SidebarButton.vue.d.ts.map +1 -1
  94. package/dist/components/Sidebar/SidebarButton.vue.js +11 -11
  95. package/dist/components/SubpageHeader.vue.d.ts.map +1 -1
  96. package/dist/components/SubpageHeader.vue.js +3 -3
  97. package/dist/components/SubpageHeader.vue2.js +3 -3
  98. package/dist/components/TopNav/TopNav.vue.d.ts.map +1 -1
  99. package/dist/components/TopNav/TopNav.vue.js +2 -2
  100. package/dist/components/TopNav/TopNav.vue2.js +23 -23
  101. package/dist/components/TopNav/TopNavItem.vue.d.ts.map +1 -1
  102. package/dist/components/TopNav/TopNavItem.vue.js +2 -2
  103. package/dist/components/TopNav/TopNavItem.vue2.js +21 -21
  104. package/dist/components/ViewLayout/ViewLayout.vue.d.ts.map +1 -1
  105. package/dist/components/ViewLayout/ViewLayout.vue.js +7 -7
  106. package/dist/components/ViewLayout/ViewLayoutCollapse.vue.d.ts.map +1 -1
  107. package/dist/components/ViewLayout/ViewLayoutCollapse.vue.js +5 -5
  108. package/dist/components/ViewLayout/ViewLayoutContent.vue.d.ts.map +1 -1
  109. package/dist/components/ViewLayout/ViewLayoutContent.vue.js +4 -4
  110. package/dist/components/ViewLayout/ViewLayoutSection.vue.d.ts.map +1 -1
  111. package/dist/components/ViewLayout/ViewLayoutSection.vue.js +6 -6
  112. package/dist/index.d.ts +1 -1
  113. package/dist/index.d.ts.map +1 -1
  114. package/dist/index.js +1 -1
  115. package/dist/layouts/App/ApiClientApp.vue.d.ts.map +1 -1
  116. package/dist/layouts/App/ApiClientApp.vue.js +39 -53
  117. package/dist/layouts/App/create-api-client-app.d.ts +2058 -1941
  118. package/dist/layouts/App/create-api-client-app.d.ts.map +1 -1
  119. package/dist/layouts/App/create-api-client-app.js +12 -12
  120. package/dist/layouts/Modal/ApiClientModal.vue.js +1 -1
  121. package/dist/layouts/Modal/ApiClientModal.vue2.js +6 -6
  122. package/dist/layouts/Modal/create-api-client-modal.d.ts +4590 -4356
  123. package/dist/layouts/Modal/create-api-client-modal.d.ts.map +1 -1
  124. package/dist/layouts/Modal/create-api-client-modal.js +18 -23
  125. package/dist/libs/create-client.d.ts +2086 -1972
  126. package/dist/libs/create-client.d.ts.map +1 -1
  127. package/dist/libs/create-client.js +85 -76
  128. package/dist/libs/environment-parser.d.ts +9 -0
  129. package/dist/libs/environment-parser.d.ts.map +1 -0
  130. package/dist/libs/environment-parser.js +17 -0
  131. package/dist/libs/errors.d.ts +21 -0
  132. package/dist/libs/errors.d.ts.map +1 -0
  133. package/dist/libs/errors.js +14 -0
  134. package/dist/libs/event-busses/command-palette-bus.d.ts +1 -1
  135. package/dist/libs/event-busses/command-palette-bus.d.ts.map +1 -1
  136. package/dist/libs/event-busses/hot-keys-bus.d.ts +4 -4
  137. package/dist/libs/event-busses/hot-keys-bus.d.ts.map +1 -1
  138. package/dist/libs/event-busses/hot-keys-bus.js +17 -19
  139. package/dist/libs/index.d.ts +5 -2
  140. package/dist/libs/index.d.ts.map +1 -1
  141. package/dist/libs/index.js +31 -24
  142. package/dist/libs/local-storage.d.ts +3 -3
  143. package/dist/libs/local-storage.d.ts.map +1 -1
  144. package/dist/libs/local-storage.js +24 -12
  145. package/dist/libs/normalize-headers.d.ts +14 -0
  146. package/dist/libs/normalize-headers.d.ts.map +1 -0
  147. package/dist/libs/normalize-headers.js +32 -0
  148. package/dist/libs/send-request.d.ts +28 -0
  149. package/dist/libs/send-request.d.ts.map +1 -0
  150. package/dist/libs/send-request.js +186 -0
  151. package/dist/libs/string-template.d.ts +19 -0
  152. package/dist/libs/string-template.d.ts.map +1 -0
  153. package/dist/libs/string-template.js +30 -0
  154. package/dist/router.d.ts +5 -0
  155. package/dist/router.d.ts.map +1 -1
  156. package/dist/router.js +36 -27
  157. package/dist/store/collections.d.ts +705 -0
  158. package/dist/store/collections.d.ts.map +1 -0
  159. package/dist/store/collections.js +63 -0
  160. package/dist/store/cookies.d.ts +135 -0
  161. package/dist/store/cookies.d.ts.map +1 -0
  162. package/dist/store/cookies.js +29 -0
  163. package/dist/store/environment.d.ts +80 -0
  164. package/dist/store/environment.d.ts.map +1 -0
  165. package/dist/store/environment.js +39 -0
  166. package/dist/store/import-spec.d.ts +8 -0
  167. package/dist/store/import-spec.d.ts.map +1 -0
  168. package/dist/store/import-spec.js +45 -0
  169. package/dist/store/index.d.ts +1 -1
  170. package/dist/store/index.d.ts.map +1 -1
  171. package/dist/store/index.js +1 -1
  172. package/dist/store/request-example.d.ts +1111 -0
  173. package/dist/store/request-example.d.ts.map +1 -0
  174. package/dist/store/request-example.js +47 -0
  175. package/dist/store/requests.d.ts +371 -0
  176. package/dist/store/requests.d.ts.map +1 -0
  177. package/dist/store/requests.js +107 -0
  178. package/dist/store/router-params.d.ts +15 -0
  179. package/dist/store/router-params.d.ts.map +1 -0
  180. package/dist/store/router-params.js +21 -0
  181. package/dist/store/security-schemes.d.ts +616 -0
  182. package/dist/store/security-schemes.d.ts.map +1 -0
  183. package/dist/store/security-schemes.js +68 -0
  184. package/dist/store/servers.d.ts +99 -0
  185. package/dist/store/servers.d.ts.map +1 -0
  186. package/dist/store/servers.js +46 -0
  187. package/dist/store/store-context.d.ts +29 -0
  188. package/dist/store/store-context.d.ts.map +1 -0
  189. package/dist/store/store.d.ts +7504 -0
  190. package/dist/store/store.d.ts.map +1 -0
  191. package/dist/store/store.js +200 -0
  192. package/dist/store/tags.d.ts +169 -0
  193. package/dist/store/tags.d.ts.map +1 -0
  194. package/dist/store/tags.js +57 -0
  195. package/dist/store/workspace.d.ts +93 -7150
  196. package/dist/store/workspace.d.ts.map +1 -1
  197. package/dist/store/workspace.js +49 -543
  198. package/dist/style.css +1 -1
  199. package/dist/views/Cookies/CookieForm.vue.js +2 -2
  200. package/dist/views/Cookies/CookieRaw.vue.d.ts.map +1 -1
  201. package/dist/views/Cookies/CookieRaw.vue.js +10 -10
  202. package/dist/views/Cookies/Cookies.vue.d.ts.map +1 -1
  203. package/dist/views/Cookies/Cookies.vue2.js +21 -23
  204. package/dist/views/Environment/Environment.vue2.js +27 -28
  205. package/dist/views/Environment/EnvironmentVariableDropdown.vue.d.ts +11 -5
  206. package/dist/views/Environment/EnvironmentVariableDropdown.vue.d.ts.map +1 -1
  207. package/dist/views/Environment/EnvironmentVariableDropdown.vue.js +79 -59
  208. package/dist/views/Request/Request.vue.d.ts.map +1 -1
  209. package/dist/views/Request/Request.vue.js +2 -2
  210. package/dist/views/Request/Request.vue2.js +87 -318
  211. package/dist/views/Request/RequestSection/RequestAuth/DeleteRequestAuthModal.vue.d.ts +36 -0
  212. package/dist/views/Request/RequestSection/RequestAuth/DeleteRequestAuthModal.vue.d.ts.map +1 -0
  213. package/dist/views/Request/RequestSection/RequestAuth/DeleteRequestAuthModal.vue.js +59 -0
  214. package/dist/views/Request/RequestSection/RequestAuth/DeleteRequestAuthModal.vue2.js +4 -0
  215. package/dist/views/Request/{components → RequestSection/RequestAuth}/OAuth2.vue.d.ts +3 -1
  216. package/dist/views/Request/RequestSection/RequestAuth/OAuth2.vue.d.ts.map +1 -0
  217. package/dist/views/Request/RequestSection/RequestAuth/OAuth2.vue.js +216 -0
  218. package/dist/views/Request/{components → RequestSection/RequestAuth}/OAuthScopesInput.vue.d.ts +2 -2
  219. package/dist/views/Request/RequestSection/RequestAuth/OAuthScopesInput.vue.d.ts.map +1 -0
  220. package/dist/views/Request/{components → RequestSection/RequestAuth}/OAuthScopesInput.vue.js +3 -3
  221. package/dist/views/Request/RequestSection/RequestAuth/RequestAuth.vue.d.ts.map +1 -0
  222. package/dist/views/Request/RequestSection/RequestAuth/RequestAuth.vue.js +7 -0
  223. package/dist/views/Request/RequestSection/RequestAuth/RequestAuth.vue2.js +183 -0
  224. package/dist/views/Request/RequestSection/RequestAuth/RequestAuthModal.vue.d.ts +30 -0
  225. package/dist/views/Request/RequestSection/RequestAuth/RequestAuthModal.vue.d.ts.map +1 -0
  226. package/dist/views/Request/RequestSection/RequestAuth/RequestExampleAuth.vue.d.ts +3 -0
  227. package/dist/views/Request/RequestSection/RequestAuth/RequestExampleAuth.vue.d.ts.map +1 -0
  228. package/dist/views/Request/RequestSection/RequestAuth/RequestExampleAuth.vue.js +140 -0
  229. package/dist/views/Request/RequestSection/RequestAuth/RequestExampleAuth.vue2.js +4 -0
  230. package/dist/views/Request/RequestSection/RequestAuthDataTableInput.vue.d.ts +1 -1
  231. package/dist/views/Request/RequestSection/RequestBody.vue.d.ts.map +1 -1
  232. package/dist/views/Request/RequestSection/RequestBody.vue.js +167 -186
  233. package/dist/views/Request/RequestSection/RequestParams.vue.d.ts +1 -1
  234. package/dist/views/Request/RequestSection/RequestParams.vue.d.ts.map +1 -1
  235. package/dist/views/Request/RequestSection/RequestParams.vue.js +49 -49
  236. package/dist/views/Request/RequestSection/RequestPathParams.vue.d.ts +1 -1
  237. package/dist/views/Request/RequestSection/RequestPathParams.vue.d.ts.map +1 -1
  238. package/dist/views/Request/RequestSection/RequestPathParams.vue.js +26 -22
  239. package/dist/views/Request/RequestSection/RequestSection.vue.d.ts.map +1 -1
  240. package/dist/views/Request/RequestSection/RequestSection.vue.js +103 -102
  241. package/dist/views/Request/RequestSection/RequestTable.vue.d.ts +5 -5
  242. package/dist/views/Request/RequestSection/RequestTable.vue.d.ts.map +1 -1
  243. package/dist/views/Request/RequestSection/RequestTable.vue.js +1 -1
  244. package/dist/views/Request/RequestSection/RequestTable.vue2.js +1 -1
  245. package/dist/views/Request/RequestSection/RequestTableTooltip.vue.d.ts +1 -1
  246. package/dist/views/Request/RequestSection/RequestTableTooltip.vue.d.ts.map +1 -1
  247. package/dist/views/Request/RequestSidebar.vue.d.ts +30 -0
  248. package/dist/views/Request/RequestSidebar.vue.d.ts.map +1 -0
  249. package/dist/views/Request/RequestSidebar.vue.js +7 -0
  250. package/dist/views/Request/RequestSidebar.vue2.js +179 -0
  251. package/dist/views/Request/RequestSidebarItem.vue.d.ts +6 -7
  252. package/dist/views/Request/RequestSidebarItem.vue.d.ts.map +1 -1
  253. package/dist/views/Request/RequestSidebarItem.vue.js +1 -1
  254. package/dist/views/Request/RequestSidebarItem.vue2.js +283 -254
  255. package/dist/views/Request/RequestSidebarItemMenu.vue.d.ts +3 -5
  256. package/dist/views/Request/RequestSidebarItemMenu.vue.d.ts.map +1 -1
  257. package/dist/views/Request/RequestSidebarItemMenu.vue.js +2 -2
  258. package/dist/views/Request/RequestSidebarItemMenu.vue2.js +9 -7
  259. package/dist/views/Request/RequestSubpageHeader.vue.d.ts +24 -0
  260. package/dist/views/Request/RequestSubpageHeader.vue.d.ts.map +1 -0
  261. package/dist/views/Request/RequestSubpageHeader.vue.js +7 -0
  262. package/dist/views/Request/RequestSubpageHeader.vue2.js +48 -0
  263. package/dist/views/Request/ResponseSection/ResponseBody.vue.d.ts.map +1 -1
  264. package/dist/views/Request/ResponseSection/ResponseBody.vue.js +21 -21
  265. package/dist/views/Request/ResponseSection/ResponseBodyRaw.vue.d.ts.map +1 -1
  266. package/dist/views/Request/ResponseSection/ResponseBodyRaw.vue.js +3 -3
  267. package/dist/views/Request/ResponseSection/ResponseBodyRaw.vue2.js +17 -16
  268. package/dist/views/Request/ResponseSection/ResponseEmpty.vue.d.ts.map +1 -1
  269. package/dist/views/Request/ResponseSection/ResponseEmpty.vue.js +1 -1
  270. package/dist/views/Request/ResponseSection/ResponseEmpty.vue2.js +37 -30
  271. package/dist/views/Request/ResponseSection/ResponseMetaInformation.vue.d.ts +1 -1
  272. package/dist/views/Request/ResponseSection/ResponseMetaInformation.vue.d.ts.map +1 -1
  273. package/dist/views/Request/ResponseSection/ResponseSection.vue.d.ts +1 -1
  274. package/dist/views/Request/ResponseSection/ResponseSection.vue.d.ts.map +1 -1
  275. package/dist/views/Request/ResponseSection/ResponseSection.vue.js +2 -2
  276. package/dist/views/Request/components/WorkspaceDropdown.vue.d.ts.map +1 -1
  277. package/dist/views/Request/components/WorkspaceDropdown.vue.js +69 -90
  278. package/dist/views/Request/components/index.d.ts +0 -1
  279. package/dist/views/Request/components/index.d.ts.map +1 -1
  280. package/dist/views/Request/components/index.js +2 -4
  281. package/dist/views/Request/consts/new-auth-options.d.ts +11 -1
  282. package/dist/views/Request/consts/new-auth-options.d.ts.map +1 -1
  283. package/dist/views/Request/consts/new-auth-options.js +17 -7
  284. package/dist/views/Request/handle-drag.d.ts +8 -0
  285. package/dist/views/Request/handle-drag.d.ts.map +1 -0
  286. package/dist/views/Request/handle-drag.js +56 -0
  287. package/dist/views/Request/libs/auth.d.ts +35 -0
  288. package/dist/views/Request/libs/auth.d.ts.map +1 -0
  289. package/dist/views/Request/libs/auth.js +14 -0
  290. package/dist/views/Request/libs/index.d.ts +1 -0
  291. package/dist/views/Request/libs/index.d.ts.map +1 -1
  292. package/dist/views/Request/libs/index.js +7 -3
  293. package/dist/views/Request/libs/oauth2.d.ts +12 -3
  294. package/dist/views/Request/libs/oauth2.d.ts.map +1 -1
  295. package/dist/views/Request/libs/oauth2.js +42 -27
  296. package/dist/views/Servers/ServerForm.vue.js +22 -22
  297. package/dist/views/Servers/Servers.vue.d.ts.map +1 -1
  298. package/dist/views/Servers/Servers.vue2.js +17 -14
  299. package/package.json +9 -9
  300. package/dist/components/CodeInput/codeDropdownWidget.d.ts +0 -32
  301. package/dist/components/CodeInput/codeDropdownWidget.d.ts.map +0 -1
  302. package/dist/components/CodeInput/codeDropdownWidget.js +0 -121
  303. package/dist/components/CommandPalette/CommandPaletteFolder.vue.d.ts.map +0 -1
  304. package/dist/components/CommandPalette/CommandPaletteFolder.vue.js +0 -106
  305. package/dist/components/CommandPalette/CommandPaletteFolder.vue2.js +0 -4
  306. package/dist/errors.d.ts +0 -5
  307. package/dist/errors.d.ts.map +0 -1
  308. package/dist/errors.js +0 -7
  309. package/dist/libs/normalizeHeaders.d.ts +0 -11
  310. package/dist/libs/normalizeHeaders.d.ts.map +0 -1
  311. package/dist/libs/normalizeHeaders.js +0 -25
  312. package/dist/libs/pathParams.d.ts +0 -10
  313. package/dist/libs/pathParams.d.ts.map +0 -1
  314. package/dist/libs/pathParams.js +0 -36
  315. package/dist/libs/sendRequest.d.ts +0 -14
  316. package/dist/libs/sendRequest.d.ts.map +0 -1
  317. package/dist/libs/sendRequest.js +0 -163
  318. package/dist/views/Request/RequestSection/RequestAuth.vue.d.ts.map +0 -1
  319. package/dist/views/Request/RequestSection/RequestAuth.vue.js +0 -7
  320. package/dist/views/Request/RequestSection/RequestAuth.vue2.js +0 -351
  321. package/dist/views/Request/components/OAuth2.vue.d.ts.map +0 -1
  322. package/dist/views/Request/components/OAuth2.vue.js +0 -208
  323. package/dist/views/Request/components/OAuthScopesInput.vue.d.ts.map +0 -1
  324. /package/dist/views/Request/{components → RequestSection/RequestAuth}/OAuth2.vue2.js +0 -0
  325. /package/dist/views/Request/{components → RequestSection/RequestAuth}/OAuthScopesInput.vue2.js +0 -0
  326. /package/dist/views/Request/RequestSection/{RequestAuth.vue.d.ts → RequestAuth/RequestAuth.vue.d.ts} +0 -0
@@ -1,16 +1,16 @@
1
- import { defineComponent as z, reactive as A, ref as B, computed as M, watch as C, onMounted as j, onBeforeUnmount as E, openBlock as f, createElementBlock as g, createElementVNode as h, createVNode as n, unref as l, withCtx as u, toDisplayString as O, createTextVNode as x, Fragment as V, renderList as D, createBlock as q, pushScopeId as K, popScopeId as F } from "vue";
1
+ import { defineComponent as z, reactive as A, ref as B, computed as M, watch as y, onMounted as j, onBeforeUnmount as E, openBlock as d, createElementBlock as g, createElementVNode as h, createVNode as n, unref as l, withCtx as u, toDisplayString as O, createTextVNode as C, Fragment as V, renderList as D, createBlock as q, pushScopeId as K, popScopeId as F } from "vue";
2
2
  import H from "../ScalarHotkey.vue.js";
3
3
  import { ROUTES as W } from "../../constants.js";
4
4
  import { useClipboard as G } from "../../hooks/useClipboard.js";
5
- import { ScalarContextMenu as J, ScalarIcon as d, ScalarDropdown as P, ScalarDropdownItem as I } from "@scalar/components";
5
+ import { ScalarContextMenu as J, ScalarIcon as f, ScalarDropdown as P, ScalarDropdownItem as x } from "@scalar/components";
6
6
  import { capitalize as Q } from "@scalar/oas-utils/helpers";
7
7
  import X from "./TopNavItem.vue.js";
8
- import { useWorkspace as Y } from "../../store/workspace.js";
9
- import { hotKeyBus as w } from "../../libs/event-busses/hot-keys-bus.js";
10
- const Z = (s) => (K("data-v-53f7f946"), s = s(), F(), s), ee = { class: "flex h-10 t-app__top-nav" }, te = /* @__PURE__ */ Z(() => /* @__PURE__ */ h("div", { class: "t-app__top-nav-draggable" }, null, -1)), oe = { class: "flex h-10 flex-1 items-center gap-1.5 text-sm font-medium relative" }, ae = {
8
+ import { useWorkspace as Y } from "../../store/store.js";
9
+ import { hotKeyBus as I } from "../../libs/event-busses/hot-keys-bus.js";
10
+ const Z = (s) => (K("data-v-df123a3c"), s = s(), F(), s), ee = { class: "flex h-10 t-app__top-nav" }, te = /* @__PURE__ */ Z(() => /* @__PURE__ */ h("div", { class: "t-app__top-nav-draggable" }, null, -1)), oe = { class: "flex h-10 flex-1 items-center gap-1.5 text-sm font-medium pr-1 relative overflow-hidden" }, ae = {
11
11
  key: 0,
12
- class: "h-full w-full"
13
- }, fe = /* @__PURE__ */ z({
12
+ class: "h-full w-full overflow-hidden"
13
+ }, de = /* @__PURE__ */ z({
14
14
  __name: "TopNav",
15
15
  props: {
16
16
  openNewTab: {}
@@ -39,7 +39,7 @@ const Z = (s) => (K("data-v-53f7f946"), s = s(), F(), s), ee = { class: "flex h-
39
39
  function r(e) {
40
40
  o.value = e, v();
41
41
  }
42
- C(
42
+ y(
43
43
  () => i.currentRoute.value.path,
44
44
  () => {
45
45
  k();
@@ -57,7 +57,7 @@ const Z = (s) => (K("data-v-53f7f946"), s = s(), F(), s), ee = { class: "flex h-
57
57
  a.pathname = t[e].path, U(a.toString());
58
58
  }, R = (e) => {
59
59
  t.splice(0, e), t.splice(1), o.value = 0, v();
60
- }, y = (e) => {
60
+ }, w = (e) => {
61
61
  if (e.addTopNav && m(), e.closeTopNav && _(o.value), e.navigateTopNavLeft && r(Math.max(o.value - 1, 0)), e.navigateTopNavRight && r(Math.min(o.value + 1, t.length - 1)), e.jumpToTab) {
62
62
  const a = Number(e.jumpToTab.key) - 1;
63
63
  a >= 0 && a < t.length && r(a);
@@ -70,19 +70,19 @@ const Z = (s) => (K("data-v-53f7f946"), s = s(), F(), s), ee = { class: "flex h-
70
70
  icon: "ExternalLink"
71
71
  });
72
72
  };
73
- return C(
73
+ return y(
74
74
  () => S.openNewTab,
75
75
  (e) => {
76
76
  e && $(e);
77
77
  },
78
78
  { immediate: !0 }
79
- ), j(() => w.on(y)), E(() => w.off(y)), (e, a) => (f(), g("nav", ee, [
79
+ ), j(() => I.on(w)), E(() => I.off(w)), (e, a) => (d(), g("nav", ee, [
80
80
  te,
81
81
  h("div", oe, [
82
- t.length === 1 ? (f(), g("div", ae, [
83
- n(l(J), { triggerClass: "flex gap-1.5 h-full items-center justify-center w-full" }, {
82
+ t.length === 1 ? (d(), g("div", ae, [
83
+ n(l(J), { triggerClass: "flex custom-scroll gap-1.5 h-full items-center justify-center w-full whitespace-nowrap" }, {
84
84
  trigger: u(() => [
85
- n(l(d), {
85
+ n(l(f), {
86
86
  icon: t[0].icon,
87
87
  size: "xs",
88
88
  thickness: "2.5"
@@ -95,17 +95,17 @@ const Z = (s) => (K("data-v-53f7f946"), s = s(), F(), s), ee = { class: "flex h-
95
95
  static: ""
96
96
  }, {
97
97
  items: u(() => [
98
- n(l(I), {
98
+ n(l(x), {
99
99
  class: "flex items-center gap-1.5",
100
100
  onClick: m
101
101
  }, {
102
102
  default: u(() => [
103
- n(l(d), {
103
+ n(l(f), {
104
104
  icon: "AddTab",
105
105
  size: "sm",
106
106
  thickness: "1.5"
107
107
  }),
108
- x(" New Tab "),
108
+ C(" New Tab "),
109
109
  n(H, {
110
110
  class: "bg-b-2 ml-auto",
111
111
  hotkey: "T"
@@ -113,17 +113,17 @@ const Z = (s) => (K("data-v-53f7f946"), s = s(), F(), s), ee = { class: "flex h-
113
113
  ]),
114
114
  _: 1
115
115
  }),
116
- n(l(I), {
116
+ n(l(x), {
117
117
  class: "flex items-center gap-1.5",
118
118
  onClick: a[0] || (a[0] = (p) => N(T.value))
119
119
  }, {
120
120
  default: u(() => [
121
- n(l(d), {
121
+ n(l(f), {
122
122
  icon: "Link",
123
123
  size: "sm",
124
124
  thickness: "1.5"
125
125
  }),
126
- x(" Copy URL ")
126
+ C(" Copy URL ")
127
127
  ]),
128
128
  _: 1
129
129
  })
@@ -133,7 +133,7 @@ const Z = (s) => (K("data-v-53f7f946"), s = s(), F(), s), ee = { class: "flex h-
133
133
  ]),
134
134
  _: 1
135
135
  })
136
- ])) : (f(!0), g(V, { key: 1 }, D(t, (p, c) => (f(), q(X, {
136
+ ])) : (d(!0), g(V, { key: 1 }, D(t, (p, c) => (d(), q(X, {
137
137
  key: c,
138
138
  active: c === T.value,
139
139
  hotkey: (c + 1).toString(),
@@ -150,7 +150,7 @@ const Z = (s) => (K("data-v-53f7f946"), s = s(), F(), s), ee = { class: "flex h-
150
150
  type: "button",
151
151
  onClick: m
152
152
  }, [
153
- n(l(d), {
153
+ n(l(f), {
154
154
  icon: "Add",
155
155
  size: "xs",
156
156
  thickness: "2.5"
@@ -161,5 +161,5 @@ const Z = (s) => (K("data-v-53f7f946"), s = s(), F(), s), ee = { class: "flex h-
161
161
  }
162
162
  });
163
163
  export {
164
- fe as default
164
+ de as default
165
165
  };
@@ -1 +1 @@
1
- {"version":3,"file":"TopNavItem.vue.d.ts","sourceRoot":"","sources":["../../../src/components/TopNav/TopNavItem.vue"],"names":[],"mappings":"AAwMA,OAAO,EACL,KAAK,IAAI,EAOV,MAAM,oBAAoB,CAAA;;aAKhB,MAAM;YACP,OAAO;WACR,MAAM;UACP,IAAI;;;;;;;;aAHD,MAAM;YACP,OAAO;WACR,MAAM;UACP,IAAI;;;;;;;;AAiaZ,wBAOG;AAOH,KAAK,sBAAsB,CAAC,CAAC,IAAI,CAAC,SAAS,SAAS,GAAG,KAAK,GAAG,CAAC,CAAC;AAC5D,KAAK,uBAAuB,CAAC,CAAC,IAAI;KAChC,CAAC,IAAI,MAAM,CAAC,CAAC,CAAC,GAAG,EAAE,SAAS,IAAI,CAAC,CAAC,EAAE,CAAC,CAAC,GACpC;QAAE,IAAI,EAAE,OAAO,KAAK,EAAE,QAAQ,CAAC,sBAAsB,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAA;KAAE,GAC9D;QAAE,IAAI,EAAE,OAAO,KAAK,EAAE,QAAQ,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;QAAC,QAAQ,EAAE,IAAI,CAAA;KAAE;CACzD,CAAC"}
1
+ {"version":3,"file":"TopNavItem.vue.d.ts","sourceRoot":"","sources":["../../../src/components/TopNav/TopNavItem.vue"],"names":[],"mappings":"AA0MA,OAAO,EACL,KAAK,IAAI,EAOV,MAAM,oBAAoB,CAAA;;aAKhB,MAAM;YACP,OAAO;WACR,MAAM;UACP,IAAI;;;;;;;;aAHD,MAAM;YACP,OAAO;WACR,MAAM;UACP,IAAI;;;;;;;;AAoaZ,wBAOG;AAOH,KAAK,sBAAsB,CAAC,CAAC,IAAI,CAAC,SAAS,SAAS,GAAG,KAAK,GAAG,CAAC,CAAC;AAC5D,KAAK,uBAAuB,CAAC,CAAC,IAAI;KAChC,CAAC,IAAI,MAAM,CAAC,CAAC,CAAC,GAAG,EAAE,SAAS,IAAI,CAAC,CAAC,EAAE,CAAC,CAAC,GACpC;QAAE,IAAI,EAAE,OAAO,KAAK,EAAE,QAAQ,CAAC,sBAAsB,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAA;KAAE,GAC9D;QAAE,IAAI,EAAE,OAAO,KAAK,EAAE,QAAQ,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;QAAC,QAAQ,EAAE,IAAI,CAAA;KAAE;CACzD,CAAC"}
@@ -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 p = /* @__PURE__ */ t(o, [["__scopeId", "data-v-dff6dda5"]]);
4
+ const r = /* @__PURE__ */ t(o, [["__scopeId", "data-v-e4e81f66"]]);
5
5
  export {
6
- p as default
6
+ r as default
7
7
  };
@@ -1,7 +1,7 @@
1
- import { defineComponent as d, openBlock as p, createBlock as k, unref as t, withCtx as i, createVNode as e, createElementVNode as a, normalizeClass as f, toDisplayString as b, createCommentVNode as u, createTextVNode as r } from "vue";
1
+ import { defineComponent as k, openBlock as p, createBlock as d, unref as t, withCtx as i, createVNode as e, createElementVNode as a, normalizeClass as f, toDisplayString as u, createCommentVNode as b, createTextVNode as r } from "vue";
2
2
  import m from "../ScalarHotkey.vue.js";
3
- import { ScalarContextMenu as C, ScalarTooltip as g, ScalarIcon as n, ScalarDropdown as v, ScalarDropdownItem as c, ScalarDropdownDivider as y } from "@scalar/components";
4
- const T = { class: "nav-item-icon-copy flex flex-1 items-center justify-center gap-1.5" }, $ = { class: "nav-item-copy text-xs" }, N = /* @__PURE__ */ d({
3
+ import { ScalarContextMenu as v, ScalarTooltip as C, ScalarIcon as l, ScalarDropdown as g, ScalarDropdownItem as c, ScalarDropdownDivider as y } from "@scalar/components";
4
+ const T = { class: "nav-item-icon-copy flex flex-1 items-center justify-center gap-1.5" }, $ = { class: "custom-scroll nav-item-copy text-xs" }, N = /* @__PURE__ */ k({
5
5
  __name: "TopNavItem",
6
6
  props: {
7
7
  hotkey: {},
@@ -11,9 +11,9 @@ const T = { class: "nav-item-icon-copy flex flex-1 items-center justify-center g
11
11
  },
12
12
  emits: ["click", "close", "newTab", "copyUrl", "closeOtherTabs"],
13
13
  setup(w) {
14
- return (o, s) => (p(), k(t(C), { triggerClass: "w-full" }, {
14
+ return (o, s) => (p(), d(t(v), { triggerClass: "overflow-hidden w-full" }, {
15
15
  trigger: i(() => [
16
- e(t(g), {
16
+ e(t(C), {
17
17
  class: "scalar-client",
18
18
  delay: 500,
19
19
  disableClosingTrigger: !0,
@@ -23,22 +23,22 @@ const T = { class: "nav-item-icon-copy flex flex-1 items-center justify-center g
23
23
  trigger: i(() => [
24
24
  a("div", {
25
25
  class: f(["nav-item webkit-app-no-drag", { "nav-item__active": o.active }]),
26
- onClick: s[1] || (s[1] = (l) => o.$emit("click"))
26
+ onClick: s[1] || (s[1] = (n) => o.$emit("click"))
27
27
  }, [
28
28
  a("div", T, [
29
- e(t(n), {
29
+ e(t(l), {
30
30
  icon: o.icon,
31
31
  size: "xs",
32
32
  thickness: "2.5"
33
33
  }, null, 8, ["icon"]),
34
- a("span", $, b(o.label), 1)
34
+ a("span", $, u(o.label), 1)
35
35
  ]),
36
36
  a("button", {
37
37
  class: "nav-item-close",
38
38
  type: "button",
39
- onClick: s[0] || (s[0] = (l) => o.$emit("close"))
39
+ onClick: s[0] || (s[0] = (n) => o.$emit("close"))
40
40
  }, [
41
- e(t(n), {
41
+ e(t(l), {
42
42
  icon: "Close",
43
43
  thickness: "1.75"
44
44
  })
@@ -46,26 +46,26 @@ const T = { class: "nav-item-icon-copy flex flex-1 items-center justify-center g
46
46
  ], 2)
47
47
  ]),
48
48
  content: i(() => [
49
- o.hotkey ? (p(), k(m, {
49
+ o.hotkey ? (p(), d(m, {
50
50
  key: 0,
51
51
  hotkey: o.hotkey
52
- }, null, 8, ["hotkey"])) : u("", !0)
52
+ }, null, 8, ["hotkey"])) : b("", !0)
53
53
  ]),
54
54
  _: 1
55
55
  })
56
56
  ]),
57
57
  content: i(() => [
58
- e(t(v), {
58
+ e(t(g), {
59
59
  class: "scalar-client",
60
60
  static: ""
61
61
  }, {
62
62
  items: i(() => [
63
63
  e(t(c), {
64
64
  class: "flex items-center gap-1.5",
65
- onClick: s[2] || (s[2] = (l) => o.$emit("newTab"))
65
+ onClick: s[2] || (s[2] = (n) => o.$emit("newTab"))
66
66
  }, {
67
67
  default: i(() => [
68
- e(t(n), {
68
+ e(t(l), {
69
69
  icon: "AddTab",
70
70
  size: "sm",
71
71
  thickness: "1.5"
@@ -80,10 +80,10 @@ const T = { class: "nav-item-icon-copy flex flex-1 items-center justify-center g
80
80
  }),
81
81
  e(t(c), {
82
82
  class: "flex items-center gap-1.5",
83
- onClick: s[3] || (s[3] = (l) => o.$emit("copyUrl"))
83
+ onClick: s[3] || (s[3] = (n) => o.$emit("copyUrl"))
84
84
  }, {
85
85
  default: i(() => [
86
- e(t(n), {
86
+ e(t(l), {
87
87
  icon: "Link",
88
88
  size: "sm",
89
89
  thickness: "1.5"
@@ -95,10 +95,10 @@ const T = { class: "nav-item-icon-copy flex flex-1 items-center justify-center g
95
95
  e(t(y)),
96
96
  e(t(c), {
97
97
  class: "flex items-center gap-1.5",
98
- onClick: s[4] || (s[4] = (l) => o.$emit("close"))
98
+ onClick: s[4] || (s[4] = (n) => o.$emit("close"))
99
99
  }, {
100
100
  default: i(() => [
101
- e(t(n), {
101
+ e(t(l), {
102
102
  icon: "CloseTab",
103
103
  size: "sm",
104
104
  thickness: "1.5"
@@ -113,10 +113,10 @@ const T = { class: "nav-item-icon-copy flex flex-1 items-center justify-center g
113
113
  }),
114
114
  e(t(c), {
115
115
  class: "flex items-center gap-1.5",
116
- onClick: s[5] || (s[5] = (l) => o.$emit("closeOtherTabs"))
116
+ onClick: s[5] || (s[5] = (n) => o.$emit("closeOtherTabs"))
117
117
  }, {
118
118
  default: i(() => [
119
- e(t(n), {
119
+ e(t(l), {
120
120
  icon: "CloseTabs",
121
121
  size: "sm",
122
122
  thickness: "1.5"
@@ -1 +1 @@
1
- {"version":3,"file":"ViewLayout.vue.d.ts","sourceRoot":"","sources":["../../../src/components/ViewLayout/ViewLayout.vue"],"names":[],"mappings":"AAcA,iBAAS,cAAc;qBAuBM,GAAG;EAa/B;AACD,QAAA,MAAM,eAAe,0NAKnB,CAAC;wBACkB,uBAAuB,CAAC,OAAO,eAAe,EAAE,UAAU,CAAC,OAAO,cAAc,CAAC,CAAC;AAAvG,wBAAwG;AAOxG,KAAK,uBAAuB,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG;IACpC,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":"AAeA,iBAAS,cAAc;qBAyBM,GAAG;EAa/B;AACD,QAAA,MAAM,eAAe,0NAKnB,CAAC;wBACkB,uBAAuB,CAAC,OAAO,eAAe,EAAE,UAAU,CAAC,OAAO,cAAc,CAAC,CAAC;AAAvG,wBAAwG;AAOxG,KAAK,uBAAuB,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG;IACpC,QAAO;QACN,MAAM,EAAE,CAAC,CAAC;KAEV,CAAA;CACD,CAAC"}
@@ -1,12 +1,12 @@
1
- import { openBlock as o, createElementBlock as t, renderSlot as r } from "vue";
2
- import n from "../../_virtual/_plugin-vue_export-helper.js";
3
- const c = {}, l = { class: "flex min-h-0 flex-1 xl:overflow-hidden leading-3 z-0" };
4
- function s(e, f) {
5
- return o(), t("div", l, [
6
- r(e.$slots, "default")
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 n = {}, c = { class: "flex flex-col min-h-0 flex-1 xl:overflow-hidden md:flex-row leading-3 z-0" };
4
+ function f(e, s) {
5
+ return o(), r("div", c, [
6
+ t(e.$slots, "default")
7
7
  ]);
8
8
  }
9
- const a = /* @__PURE__ */ n(c, [["render", s]]);
9
+ const a = /* @__PURE__ */ l(n, [["render", f]]);
10
10
  export {
11
11
  a as default
12
12
  };
@@ -1 +1 @@
1
- {"version":3,"file":"ViewLayoutCollapse.vue.d.ts","sourceRoot":"","sources":["../../../src/components/ViewLayout/ViewLayoutCollapse.vue"],"names":[],"mappings":"AAiFA,iBAAS,cAAc;;;QA6IK,GAAG;;;QACD,GAAG;;;QACH,GAAG;EAkBhC;AACD,QAAA,MAAM,eAAe;kBAtLH,OAAO;gBACT,MAAM;;;;;kBADJ,OAAO;gBACT,MAAM;;;;;iBADJ,OAAO;eACT,MAAM;MA2LpB,CAAC;wBACkB,uBAAuB,CAAC,OAAO,eAAe,EAAE,UAAU,CAAC,OAAO,cAAc,CAAC,CAAC;AAAvG,wBAAwG;AAOxG,KAAK,kBAAkB,CAAC,CAAC,EAAE,CAAC,IAAI;KAC1B,CAAC,IAAI,MAAM,IAAI,CAAC,CAAC,EAAE,MAAM,CAAC,CAAC,GAAG,CAAC,SAAS,MAAM,CAAC,GAC7C,cAAc,CAAC,CAAC,CAAC,CAAC,CAAC,GAAG;QAAE,OAAO,EAAE,CAAC,CAAC,CAAC,CAAC,CAAA;KAAC,CAAC,GACvC,CAAC,CAAC,CAAC,CAAC;CACP,CAAC;AAEN,KAAK,cAAc,CAAC,CAAC,IAAI;KAAG,CAAC,IAAI,MAAM,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;CAAG,GAAG,EAAE,CAAC;AAExD,KAAK,uBAAuB,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG;IACpC,QAAO;QACN,MAAM,EAAE,CAAC,CAAC;KAEV,CAAA;CACD,CAAC;AAEN,KAAK,sBAAsB,CAAC,CAAC,IAAI,CAAC,SAAS,SAAS,GAAG,KAAK,GAAG,CAAC,CAAC;AAC5D,KAAK,uBAAuB,CAAC,CAAC,IAAI;KAChC,CAAC,IAAI,MAAM,CAAC,CAAC,CAAC,GAAG,EAAE,SAAS,IAAI,CAAC,CAAC,EAAE,CAAC,CAAC,GACpC;QAAE,IAAI,EAAE,OAAO,KAAK,EAAE,QAAQ,CAAC,sBAAsB,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAA;KAAE,GAC9D;QAAE,IAAI,EAAE,OAAO,KAAK,EAAE,QAAQ,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;QAAC,QAAQ,EAAE,IAAI,CAAA;KAAE;CACzD,CAAC"}
1
+ {"version":3,"file":"ViewLayoutCollapse.vue.d.ts","sourceRoot":"","sources":["../../../src/components/ViewLayout/ViewLayoutCollapse.vue"],"names":[],"mappings":"AAiFA,iBAAS,cAAc;;;QA+IK,GAAG;;;QACD,GAAG;;;QACH,GAAG;EAkBhC;AACD,QAAA,MAAM,eAAe;kBAxLH,OAAO;gBACT,MAAM;;;;;kBADJ,OAAO;gBACT,MAAM;;;;;iBADJ,OAAO;eACT,MAAM;MA6LpB,CAAC;wBACkB,uBAAuB,CAAC,OAAO,eAAe,EAAE,UAAU,CAAC,OAAO,cAAc,CAAC,CAAC;AAAvG,wBAAwG;AAOxG,KAAK,kBAAkB,CAAC,CAAC,EAAE,CAAC,IAAI;KAC1B,CAAC,IAAI,MAAM,IAAI,CAAC,CAAC,EAAE,MAAM,CAAC,CAAC,GAAG,CAAC,SAAS,MAAM,CAAC,GAC7C,cAAc,CAAC,CAAC,CAAC,CAAC,CAAC,GAAG;QAAE,OAAO,EAAE,CAAC,CAAC,CAAC,CAAC,CAAA;KAAC,CAAC,GACvC,CAAC,CAAC,CAAC,CAAC;CACP,CAAC;AAEN,KAAK,cAAc,CAAC,CAAC,IAAI;KAAG,CAAC,IAAI,MAAM,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;CAAG,GAAG,EAAE,CAAC;AAExD,KAAK,uBAAuB,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG;IACpC,QAAO;QACN,MAAM,EAAE,CAAC,CAAC;KAEV,CAAA;CACD,CAAC;AAEN,KAAK,sBAAsB,CAAC,CAAC,IAAI,CAAC,SAAS,SAAS,GAAG,KAAK,GAAG,CAAC,CAAC;AAC5D,KAAK,uBAAuB,CAAC,CAAC,IAAI;KAChC,CAAC,IAAI,MAAM,CAAC,CAAC,CAAC,GAAG,EAAE,SAAS,IAAI,CAAC,CAAC,EAAE,CAAC,CAAC,GACpC;QAAE,IAAI,EAAE,OAAO,KAAK,EAAE,QAAQ,CAAC,sBAAsB,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAA;KAAE,GAC9D;QAAE,IAAI,EAAE,OAAO,KAAK,EAAE,QAAQ,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;QAAC,QAAQ,EAAE,IAAI,CAAA;KAAE;CACzD,CAAC"}
@@ -1,10 +1,10 @@
1
1
  import { defineComponent as c, openBlock as s, createBlock as p, unref as o, withCtx as n, createVNode as i, createElementVNode as r, renderSlot as l, createElementBlock as a, toDisplayString as d, createCommentVNode as u } from "vue";
2
2
  import { Disclosure as f, DisclosureButton as m, DisclosurePanel as h } from "@headlessui/vue";
3
3
  import { ScalarIcon as b } from "@scalar/components";
4
- const x = { class: "flex flex-1 items-center gap-1.5" }, _ = {
4
+ const x = { class: "flex flex-1 items-center gap-1.5 text-c-1" }, g = {
5
5
  key: 0,
6
6
  class: "bg-b-2 text-c-2 text-3xs inline-flex h-4 w-4 items-center justify-center rounded-full font-semibold"
7
- }, g = { class: "flex items-center gap-2" }, v = {
7
+ }, _ = { class: "flex items-center gap-2" }, v = {
8
8
  key: 0,
9
9
  class: "ui-not-open:invisible -my-1 flex items-center gap-2"
10
10
  }, D = /* @__PURE__ */ c({
@@ -16,7 +16,7 @@ const x = { class: "flex flex-1 items-center gap-1.5" }, _ = {
16
16
  setup(y) {
17
17
  return (e, C) => (s(), p(o(f), {
18
18
  as: "div",
19
- class: "focus-within:bg-b-2 focus-within:text-c-1 text-c-2 rounded request-item ui-not-open:bg-transparent ui-open:pb-1 ui-open:mb-3 ui-not-open:mb-0 ui-not-open:pb-0",
19
+ class: "focus-within:bg-b-2 ui-not-open:hover:bg-b-2 focus-within:text-c-1 text-c-2 rounded request-item ui-not-open:bg-transparent ui-open:pb-1 ui-open:mb-3 ui-not-open:mb-0 ui-not-open:pb-0",
20
20
  defaultOpen: e.defaultOpen
21
21
  }, {
22
22
  default: n(({ open: t }) => [
@@ -30,9 +30,9 @@ const x = { class: "flex flex-1 items-center gap-1.5" }, _ = {
30
30
  }),
31
31
  r("div", x, [
32
32
  l(e.$slots, "title", { open: t }),
33
- !t && e.itemCount ? (s(), a("span", _, d(e.itemCount), 1)) : u("", !0)
33
+ !t && e.itemCount ? (s(), a("span", g, d(e.itemCount), 1)) : u("", !0)
34
34
  ]),
35
- r("div", g, [
35
+ r("div", _, [
36
36
  e.$slots.actions ? (s(), a("div", v, [
37
37
  l(e.$slots, "actions", { open: t })
38
38
  ])) : u("", !0)
@@ -1 +1 @@
1
- {"version":3,"file":"ViewLayoutContent.vue.d.ts","sourceRoot":"","sources":["../../../src/components/ViewLayout/ViewLayoutContent.vue"],"names":[],"mappings":"AAeA,iBAAS,cAAc;qBA0BM,GAAG;EAa/B;AACD,QAAA,MAAM,eAAe,0NAKnB,CAAC;wBACkB,uBAAuB,CAAC,OAAO,eAAe,EAAE,UAAU,CAAC,OAAO,cAAc,CAAC,CAAC;AAAvG,wBAAwG;AAOxG,KAAK,uBAAuB,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG;IACpC,QAAO;QACN,MAAM,EAAE,CAAC,CAAC;KAEV,CAAA;CACD,CAAC"}
1
+ {"version":3,"file":"ViewLayoutContent.vue.d.ts","sourceRoot":"","sources":["../../../src/components/ViewLayout/ViewLayoutContent.vue"],"names":[],"mappings":"AAeA,iBAAS,cAAc;qBA6BM,GAAG;EAa/B;AACD,QAAA,MAAM,eAAe,0NAKnB,CAAC;wBACkB,uBAAuB,CAAC,OAAO,eAAe,EAAE,UAAU,CAAC,OAAO,cAAc,CAAC,CAAC;AAAvG,wBAAwG;AAOxG,KAAK,uBAAuB,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG;IACpC,QAAO;QACN,MAAM,EAAE,CAAC,CAAC;KAEV,CAAA;CACD,CAAC"}
@@ -1,9 +1,9 @@
1
- import { openBlock as o, createElementBlock as t, renderSlot as r } from "vue";
1
+ import { openBlock as o, createElementBlock as r, renderSlot as t } from "vue";
2
2
  import d from "../../_virtual/_plugin-vue_export-helper.js";
3
- const l = {}, c = { class: "divide divide-y xl:divide-y-0 xl:divide-x-1/2 flex xl:flex-row flex-col custom-scroll rounded" };
3
+ const l = {}, c = { class: "border-t-1/2 md:border-t-0 divide divide-y xl:divide-y-0 xl:divide-x-1/2 flex xl:flex-row flex-col custom-scroll pr-0 rounded" };
4
4
  function i(e, n) {
5
- return o(), t("div", c, [
6
- r(e.$slots, "default")
5
+ return o(), r("div", c, [
6
+ t(e.$slots, "default")
7
7
  ]);
8
8
  }
9
9
  const x = /* @__PURE__ */ d(l, [["render", i]]);
@@ -1 +1 @@
1
- {"version":3,"file":"ViewLayoutSection.vue.d.ts","sourceRoot":"","sources":["../../../src/components/ViewLayout/ViewLayoutSection.vue"],"names":[],"mappings":"AA8BA,iBAAS,cAAc;mBA2CI,GAAG;qBACD,GAAG;EAc/B;AACD,QAAA,MAAM,eAAe,0NAKnB,CAAC;wBACkB,uBAAuB,CAAC,OAAO,eAAe,EAAE,UAAU,CAAC,OAAO,cAAc,CAAC,CAAC;AAAvG,wBAAwG;AAOxG,KAAK,uBAAuB,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG;IACpC,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":"AA8BA,iBAAS,cAAc;mBA6CI,GAAG;qBACD,GAAG;EAc/B;AACD,QAAA,MAAM,eAAe,0NAKnB,CAAC;wBACkB,uBAAuB,CAAC,OAAO,eAAe,EAAE,UAAU,CAAC,OAAO,cAAc,CAAC,CAAC;AAAvG,wBAAwG;AAOxG,KAAK,uBAAuB,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG;IACpC,QAAO;QACN,MAAM,EAAE,CAAC,CAAC;KAEV,CAAA;CACD,CAAC"}
@@ -1,16 +1,16 @@
1
- import { defineComponent as n, openBlock as r, createElementBlock as s, unref as o, createElementVNode as i, renderSlot as l } from "vue";
2
- import { nanoid as d } from "nanoid";
1
+ import { defineComponent as n, openBlock as r, createElementBlock as s, unref as o, createElementVNode as d, renderSlot as l } from "vue";
2
+ import { nanoid as i } from "nanoid";
3
3
  const a = ["aria-labelledby"], c = ["id"], u = /* @__PURE__ */ n({
4
4
  __name: "ViewLayoutSection",
5
5
  setup(m) {
6
- const e = d();
7
- return (t, x) => (r(), s("section", {
6
+ const e = i();
7
+ return (t, p) => (r(), s("section", {
8
8
  "aria-labelledby": o(e),
9
9
  class: "flex xl:min-w-0 xl:flex-1 flex-col xl:custom-scroll bg-b-1"
10
10
  }, [
11
- i("div", {
11
+ d("div", {
12
12
  id: o(e),
13
- class: "xl:min-h-header py-2.5 flex items-center border-b-1/2 px-4 xl:px-6 text-sm font-medium sticky top-0 bg-b-1 z-20 rounded-t xl:rounded-none"
13
+ class: "xl:min-h-header flex items-center border-b-1/2 p-2 md:px-4 md:py-2.5 xl:pl-6 xl:pr-5 text-sm font-medium sticky top-0 bg-b-1 z-20 rounded-t xl:rounded-none"
14
14
  }, [
15
15
  l(t.$slots, "title")
16
16
  ], 8, c),
package/dist/index.d.ts CHANGED
@@ -1,5 +1,5 @@
1
1
  export * from './layouts/Modal/index.js';
2
2
  export * from './layouts/App/index.js';
3
- export { useWorkspace } from './store/workspace.js';
3
+ export { useWorkspace } from './store/store.js';
4
4
  export { createModalRouter, createWebHashRouter, router } from './router.js';
5
5
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,iBAAiB,CAAA;AAC/B,cAAc,eAAe,CAAA;AAE7B,OAAO,EAAE,YAAY,EAAE,MAAM,mBAAmB,CAAA;AAChD,OAAO,EAAE,iBAAiB,EAAE,mBAAmB,EAAE,MAAM,EAAE,MAAM,UAAU,CAAA"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,iBAAiB,CAAA;AAC/B,cAAc,eAAe,CAAA;AAE7B,OAAO,EAAE,YAAY,EAAE,MAAM,eAAe,CAAA;AAC5C,OAAO,EAAE,iBAAiB,EAAE,mBAAmB,EAAE,MAAM,EAAE,MAAM,UAAU,CAAA"}
package/dist/index.js CHANGED
@@ -1,4 +1,4 @@
1
- import { useWorkspace as o } from "./store/workspace.js";
1
+ import { useWorkspace as o } from "./store/store.js";
2
2
  import { createModalRouter as a, createWebHashRouter as i, router as l } from "./router.js";
3
3
  import { default as c } from "./layouts/App/ApiClientApp.vue.js";
4
4
  /* empty css */
@@ -1 +1 @@
1
- {"version":3,"file":"ApiClientApp.vue.d.ts","sourceRoot":"","sources":["../../../src/layouts/App/ApiClientApp.vue"],"names":[],"mappings":";;cA+J8B,MAAM;aAAO,MAAM;;;;cAAnB,MAAM;aAAO,MAAM;;;AAiOjD,wBAMG"}
1
+ {"version":3,"file":"ApiClientApp.vue.d.ts","sourceRoot":"","sources":["../../../src/layouts/App/ApiClientApp.vue"],"names":[],"mappings":";;cAiI8B,MAAM;aAAO,MAAM;;;;cAAnB,MAAM;aAAO,MAAM;;;AAqMjD,wBAMG"}
@@ -1,79 +1,65 @@
1
- import { defineComponent as _, ref as h, onMounted as d, watchEffect as y, onBeforeMount as k, onBeforeUnmount as T, computed as g, openBlock as n, createElementBlock as p, Fragment as S, createElementVNode as u, createVNode as l, unref as r, withCtx as x, createBlock as f, KeepAlive as b, resolveDynamicComponent as N, createCommentVNode as C } from "vue";
2
- import L from "../../components/SideNav/SideNav.vue.js";
3
- import B from "../../components/TopNav/TopNav.vue.js";
4
- import { useWorkspace as E } from "../../store/workspace.js";
5
- import { addScalarClassesToHeadless as K } from "@scalar/components";
6
- import { LS_KEYS as M } from "@scalar/object-utils/mutator-record";
7
- import { getThemeStyles as W } from "@scalar/themes";
8
- import { ScalarToasts as A } from "@scalar/use-toasts";
9
- import { RouterView as D } from "vue-router";
10
- import { loadAllResources as H } from "../../libs/local-storage.js";
11
- import V from "../../components/CommandPalette/TheCommandPalette.vue.js";
12
- import { useDarkModeState as F } from "../../hooks/useDarkModeState.js";
13
- import { handleHotKeyDown as O } from "../../libs/event-busses/hot-keys-bus.js";
14
- const P = ["innerHTML"], R = {
1
+ import { defineComponent as w, ref as _, onMounted as c, watchEffect as h, onBeforeMount as k, onBeforeUnmount as T, computed as y, openBlock as t, createElementBlock as i, Fragment as N, createElementVNode as d, createVNode as e, unref as n, withCtx as b, createBlock as p, KeepAlive as g, resolveDynamicComponent as x, createCommentVNode as C } from "vue";
2
+ import S from "../../components/SideNav/SideNav.vue.js";
3
+ import L from "../../components/TopNav/TopNav.vue.js";
4
+ import { addScalarClassesToHeadless as B } from "@scalar/components";
5
+ import { getThemeStyles as D } from "@scalar/themes";
6
+ import { ScalarToasts as E } from "@scalar/use-toasts";
7
+ import { RouterView as M } from "vue-router";
8
+ import H from "../../components/CommandPalette/TheCommandPalette.vue.js";
9
+ import { useDarkModeState as V } from "../../hooks/useDarkModeState.js";
10
+ import { useWorkspace as W } from "../../store/store.js";
11
+ import { handleHotKeyDown as A } from "../../libs/event-busses/hot-keys-bus.js";
12
+ const K = ["innerHTML"], z = {
15
13
  key: 0,
16
14
  class: "flex min-h-0 flex-1 z-0"
17
- }, z = { class: "flex flex-1 flex-col min-w-0" }, ae = /* @__PURE__ */ _({
15
+ }, F = { class: "flex flex-1 flex-col min-w-0" }, Z = /* @__PURE__ */ w({
18
16
  __name: "ApiClientApp",
19
17
  emits: ["newTab"],
20
18
  setup(I) {
21
- const c = h(null), w = (e) => {
22
- c.value = e;
19
+ const r = _(null), u = (o) => {
20
+ r.value = o;
23
21
  };
24
- d(() => {
25
- y(() => {
26
- document.body.classList.toggle("dark-mode", m.value), document.body.classList.toggle("light-mode", !m.value);
22
+ c(() => {
23
+ h(() => {
24
+ document.body.classList.toggle("dark-mode", l.value), document.body.classList.toggle("light-mode", !l.value);
27
25
  });
28
26
  });
29
- const { isDark: m } = F(), a = E();
27
+ const { isDark: l } = V(), a = W();
30
28
  k(async () => {
31
- if (localStorage.getItem(M.WORKSPACE)) {
32
- const e = {};
33
- let s = 0, t = 0, o = "";
34
- for (o in localStorage)
35
- Object.prototype.hasOwnProperty.call(localStorage, o) && (t = (localStorage[o].length + o.length) * 2, s += t, e[o] = (t / 1024).toFixed(2) + " KB");
36
- e.Total = (s / 1024).toFixed(2) + " KB", console.table(e), H(a);
37
- } else
38
- a.workspaceMutators.add({
39
- uid: "default",
40
- name: "Workspace",
41
- proxyUrl: "https://proxy.scalar.com"
42
- });
43
- K();
29
+ B();
44
30
  });
45
- const i = (e) => O(e);
46
- d(() => window.addEventListener("keydown", i)), T(() => window.removeEventListener("keydown", i));
47
- const v = g(
31
+ const s = (o) => A(o);
32
+ c(() => window.addEventListener("keydown", s)), T(() => window.removeEventListener("keydown", s));
33
+ const f = y(
48
34
  () => a.activeWorkspace.value && `<style>
49
- ${W(a.activeWorkspace.value.themeId, {
35
+ ${D(a.activeWorkspace.value.themeId, {
50
36
  fonts: !0
51
37
  })}</style>`
52
38
  );
53
- return (e, s) => {
54
- var t;
55
- return n(), p(S, null, [
56
- u("div", { innerHTML: v.value }, null, 8, P),
57
- l(B, { openNewTab: c.value }, null, 8, ["openNewTab"]),
58
- (t = r(a).activeWorkspace.value) != null && t.uid ? (n(), p("main", R, [
59
- l(L),
60
- l(r(V)),
61
- u("div", z, [
62
- l(r(D), { onNewTab: w }, {
63
- default: x(({ Component: o }) => [
64
- (n(), f(b, null, [
65
- (n(), f(N(o)))
39
+ return (o, P) => {
40
+ var m;
41
+ return t(), i(N, null, [
42
+ d("div", { innerHTML: f.value }, null, 8, K),
43
+ e(L, { openNewTab: r.value }, null, 8, ["openNewTab"]),
44
+ (m = n(a).activeWorkspace.value) != null && m.uid ? (t(), i("main", z, [
45
+ e(S),
46
+ e(n(H)),
47
+ d("div", F, [
48
+ e(n(M), { onNewTab: u }, {
49
+ default: b(({ Component: v }) => [
50
+ (t(), p(g, null, [
51
+ (t(), p(x(v)))
66
52
  ], 1024))
67
53
  ]),
68
54
  _: 1
69
55
  })
70
56
  ])
71
57
  ])) : C("", !0),
72
- l(r(A))
58
+ e(n(E))
73
59
  ], 64);
74
60
  };
75
61
  }
76
62
  });
77
63
  export {
78
- ae as default
64
+ Z as default
79
65
  };