@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,6 +1,6 @@
1
- import { defineComponent as z, computed as A, ref as c, watch as k, nextTick as N, openBlock as n, createElementBlock as m, withDirectives as T, withKeys as j, vModelText as I, createBlock as i, unref as l, withCtx as r, Fragment as E, renderList as K, createElementVNode as p, normalizeClass as R, createVNode as d, createTextVNode as $, toDisplayString as y, createCommentVNode as V } from "vue";
2
- import { ScalarDropdown as F, ScalarDropdownItem as C, ScalarIcon as f, ScalarDropdownDivider as L, ScalarButton as M } from "@scalar/components";
3
- const U = { class: "w-full" }, W = { class: "flex items-center justify-center h-4 w-4" }, q = /* @__PURE__ */ p("span", null, "Add value", -1), O = /* @__PURE__ */ z({
1
+ import { defineComponent as b, computed as z, ref as i, watch as V, nextTick as A, openBlock as u, createElementBlock as p, withDirectives as N, withKeys as T, vModelText as j, createBlock as m, unref as l, withCtx as r, Fragment as I, renderList as E, createElementVNode as d, normalizeClass as K, createVNode as c, createTextVNode as R, toDisplayString as k, createCommentVNode as $ } from "vue";
2
+ import { ScalarDropdown as F, ScalarDropdownItem as y, ScalarIcon as f, ScalarDropdownDivider as L, ScalarButton as M } from "@scalar/components";
3
+ const U = { class: "w-full" }, W = { class: "text-c-1" }, q = { class: "flex items-center justify-center h-4 w-4" }, G = /* @__PURE__ */ d("span", null, "Add value", -1), P = /* @__PURE__ */ b({
4
4
  __name: "DataTableInputSelect",
5
5
  props: {
6
6
  modelValue: {},
@@ -8,96 +8,95 @@ const U = { class: "w-full" }, W = { class: "flex items-center justify-center h-
8
8
  canAddCustomValue: { type: Boolean, default: !0 }
9
9
  },
10
10
  emits: ["update:modelValue"],
11
- setup(_, { emit: g }) {
12
- const v = _, h = g, S = A(() => v.value ?? []), o = c(v.modelValue.toString()), s = c(!1), a = c(""), x = c(null);
13
- k(a, (e) => {
11
+ setup(_, { emit: C }) {
12
+ const v = _, h = C, g = z(() => v.value ?? []), o = i(v.modelValue.toString()), s = i(!1), a = i(""), x = i(null);
13
+ V(a, (e) => {
14
14
  h("update:modelValue", e);
15
15
  });
16
16
  const w = (e) => {
17
17
  o.value = e, h("update:modelValue", e), s.value = !1;
18
- }, D = () => {
18
+ }, S = () => {
19
19
  a.value.trim() && (w(a.value), a.value = "");
20
- }, B = () => {
20
+ }, D = () => {
21
21
  a.value.trim() || (o.value = "", s.value = !1);
22
- }, b = (e) => o.value === e;
23
- return k(s, (e) => {
24
- e && N(() => {
25
- var u;
26
- (u = x.value) == null || u.focus();
22
+ }, B = (e) => o.value === e;
23
+ return V(s, (e) => {
24
+ e && A(() => {
25
+ var n;
26
+ (n = x.value) == null || n.focus();
27
27
  });
28
- }), (e, u) => (n(), m("div", U, [
29
- s.value ? T((n(), m("input", {
28
+ }), (e, n) => (u(), p("div", U, [
29
+ s.value ? N((u(), p("input", {
30
30
  key: 0,
31
31
  ref_key: "inputRef",
32
32
  ref: x,
33
- "onUpdate:modelValue": u[0] || (u[0] = (t) => a.value = t),
33
+ "onUpdate:modelValue": n[0] || (n[0] = (t) => a.value = t),
34
34
  class: "border-none text-c-1 min-w-0 w-full px-2 py-1.5 outline-none",
35
35
  placeholder: "Value",
36
36
  type: "text",
37
- onBlur: B,
38
- onKeyup: j(D, ["enter"])
37
+ onBlur: D,
38
+ onKeyup: T(S, ["enter"])
39
39
  }, null, 544)), [
40
- [I, a.value]
41
- ]) : (n(), i(l(F), {
40
+ [j, a.value]
41
+ ]) : (u(), m(l(F), {
42
42
  key: 1,
43
43
  resize: "",
44
44
  value: o.value
45
45
  }, {
46
46
  items: r(() => [
47
- (n(!0), m(E, null, K(S.value, (t) => (n(), i(l(C), {
47
+ (u(!0), p(I, null, E(g.value, (t) => (u(), m(l(y), {
48
48
  key: t,
49
49
  class: "flex gap-1.5 group/item items-center whitespace-nowrap text-ellipsis overflow-hidden",
50
50
  value: t,
51
- onClick: (G) => w(t)
51
+ onClick: (H) => w(t)
52
52
  }, {
53
53
  default: r(() => [
54
- p("div", {
55
- class: R([
54
+ d("div", {
55
+ class: K([
56
56
  "flex items-center justify-center rounded-full p-[3px] w-4 h-4 group-hover/item:shadow-border",
57
- b(t) ? "bg-blue text-b-1" : "text-transparent"
57
+ B(t) ? "bg-blue text-b-1" : "text-transparent"
58
58
  ])
59
59
  }, [
60
- d(l(f), {
60
+ c(l(f), {
61
61
  class: "size-2.5",
62
62
  icon: "Checkmark",
63
63
  thickness: "3.5"
64
64
  })
65
65
  ], 2),
66
- $(" " + y(t), 1)
66
+ R(" " + k(t), 1)
67
67
  ]),
68
68
  _: 2
69
69
  }, 1032, ["value", "onClick"]))), 128)),
70
- d(l(L)),
71
- e.canAddCustomValue ? (n(), i(l(C), {
70
+ c(l(L)),
71
+ e.canAddCustomValue ? (u(), m(l(y), {
72
72
  key: 0,
73
73
  class: "flex items-center gap-1.5",
74
- onClick: u[1] || (u[1] = (t) => s.value = !0)
74
+ onClick: n[1] || (n[1] = (t) => s.value = !0)
75
75
  }, {
76
76
  default: r(() => [
77
- p("div", W, [
78
- d(l(f), {
77
+ d("div", q, [
78
+ c(l(f), {
79
79
  class: "h-2.5",
80
80
  icon: "Add"
81
81
  })
82
82
  ]),
83
- q
83
+ G
84
84
  ]),
85
85
  _: 1
86
- })) : V("", !0)
86
+ })) : $("", !0)
87
87
  ]),
88
88
  default: r(() => [
89
- d(l(M), {
89
+ c(l(M), {
90
90
  class: "gap-1.5 font-normal h-full justify-start px-2 py-1.5",
91
91
  fullWidth: "",
92
92
  variant: "ghost"
93
93
  }, {
94
94
  default: r(() => [
95
- p("span", null, y(o.value || "Select a value"), 1),
96
- o.value ? V("", !0) : (n(), i(l(f), {
97
- key: 0,
95
+ d("span", W, k(o.value || "Select a value"), 1),
96
+ c(l(f), {
98
97
  icon: "ChevronDown",
99
98
  size: "xs"
100
- }))
99
+ })
101
100
  ]),
102
101
  _: 1
103
102
  })
@@ -108,5 +107,5 @@ const U = { class: "w-full" }, W = { class: "flex items-center justify-center h-
108
107
  }
109
108
  });
110
109
  export {
111
- O as default
110
+ P as default
112
111
  };
@@ -1,18 +1,18 @@
1
1
  import { default as t } from "./DataTable.vue.js";
2
- import { default as o } from "./DataTableHeader.vue.js";
3
- import { default as f } from "./DataTableInput.vue.js";
4
- import { default as u } from "./DataTableRow.vue.js";
5
- import { default as b } from "./DataTableText.vue.js";
6
- import { default as T } from "./DataTableCell.vue.js";
7
- import { default as s } from "./DataTableCheckbox.vue.js";
2
+ import { default as o } from "./DataTableCell.vue.js";
3
+ import { default as f } from "./DataTableCheckbox.vue.js";
4
+ import { default as u } from "./DataTableHeader.vue.js";
5
+ import { default as b } from "./DataTableInput.vue.js";
6
+ import { default as T } from "./DataTableRow.vue.js";
7
+ import { default as s } from "./DataTableText.vue.js";
8
8
  import { default as c } from "./DataTableInputSelect.vue.js";
9
9
  export {
10
10
  t as DataTable,
11
- T as DataTableCell,
12
- s as DataTableCheckbox,
13
- o as DataTableHeader,
14
- f as DataTableInput,
11
+ o as DataTableCell,
12
+ f as DataTableCheckbox,
13
+ u as DataTableHeader,
14
+ b as DataTableInput,
15
15
  c as DataTableInputSelect,
16
- u as DataTableRow,
17
- b as DataTableText
16
+ T as DataTableRow,
17
+ s as DataTableText
18
18
  };
@@ -1,7 +1,7 @@
1
1
  import { defineComponent as y, computed as S, openBlock as a, createElementBlock as f, createVNode as n, unref as e, withCtx as o, Fragment as N, renderList as D, createBlock as v, withModifiers as h, createElementVNode as r, normalizeClass as x, createTextVNode as l, toDisplayString as k, createCommentVNode as j } from "vue";
2
- import { useWorkspace as z } from "../../store/workspace.js";
3
- import { ScalarDropdown as B, ScalarDropdownItem as d, ScalarIcon as c, ScalarDropdownDivider as I, ScalarButton as V } from "@scalar/components";
4
- import { useRouter as M } from "vue-router";
2
+ import { ScalarDropdown as z, ScalarDropdownItem as d, ScalarIcon as c, ScalarDropdownDivider as B, ScalarButton as I } from "@scalar/components";
3
+ import { useRouter as V } from "vue-router";
4
+ import { useWorkspace as M } from "../../store/store.js";
5
5
  const W = { class: "font-medium m-0 text-sm flex gap-1.5 items-center" }, $ = { class: "flex items-center justify-center h-4 w-4" }, O = /* @__PURE__ */ r("span", { class: "leading-none" }, "Manage Environments", -1), G = /* @__PURE__ */ y({
6
6
  __name: "EnvironmentSelector",
7
7
  setup(R) {
@@ -11,7 +11,7 @@ const W = { class: "font-medium m-0 text-sm flex gap-1.5 items-center" }, $ = {
11
11
  workspaceMutators: w,
12
12
  activeEnvironment: _,
13
13
  isReadOnly: g
14
- } = z(), b = M(), m = (i) => {
14
+ } = M(), b = V(), m = (i) => {
15
15
  w.edit(s.value.uid, "activeEnvironmentId", i);
16
16
  }, C = () => b.push(`/workspace/${s.value.uid}/environment`), E = S(() => [
17
17
  // Always add the default environment
@@ -19,7 +19,7 @@ const W = { class: "font-medium m-0 text-sm flex gap-1.5 items-center" }, $ = {
19
19
  ...Object.values(u).filter((i) => i.uid !== "default")
20
20
  ]);
21
21
  return (i, p) => (a(), f("div", null, [
22
- n(e(B), null, {
22
+ n(e(z), null, {
23
23
  items: o(() => [
24
24
  (a(!0), f(N, null, D(E.value, (t) => (a(), v(e(d), {
25
25
  key: t.uid,
@@ -64,7 +64,7 @@ const W = { class: "font-medium m-0 text-sm flex gap-1.5 items-center" }, $ = {
64
64
  ]),
65
65
  _: 1
66
66
  }),
67
- n(e(I)),
67
+ n(e(B)),
68
68
  e(g) ? j("", !0) : (a(), v(e(d), {
69
69
  key: 0,
70
70
  class: "flex items-center gap-1.5",
@@ -83,7 +83,7 @@ const W = { class: "font-medium m-0 text-sm flex gap-1.5 items-center" }, $ = {
83
83
  }))
84
84
  ]),
85
85
  default: o(() => [
86
- n(e(V), {
86
+ n(e(I), {
87
87
  class: "font-normal h-auto justify-start py-1.5 px-1.5 text-c-1 hover:bg-b-2 text-c-2 w-fit",
88
88
  fullWidth: "",
89
89
  variant: "ghost"
@@ -3,7 +3,7 @@ import h from "../DataTable/DataTable.vue.js";
3
3
  import V from "../DataTable/DataTableInput.vue.js";
4
4
  import b from "../DataTable/DataTableRow.vue.js";
5
5
  import g from "../ViewLayout/ViewLayoutSection.vue.js";
6
- const C = { key: 0 }, N = { class: "custom-scroll flex flex-1 flex-col gap-1.5 px-5 py-5" }, w = /* @__PURE__ */ m({
6
+ const C = { key: 0 }, N = { class: "custom-scroll flex flex-1 flex-col gap-1.5 p-2 md:p-5" }, w = /* @__PURE__ */ m({
7
7
  __name: "Form",
8
8
  props: {
9
9
  title: {},
@@ -7,7 +7,7 @@ declare const _default: import("vue").DefineComponent<__VLS_WithDefaults<__VLS_T
7
7
  isDisable: boolean;
8
8
  isEditable: boolean;
9
9
  }>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
10
- change: (value: "CONNECT" | "DELETE" | "GET" | "HEAD" | "OPTIONS" | "PATCH" | "POST" | "PUT" | "TRACE") => void;
10
+ change: (value: "head" | "get" | "delete" | "connect" | "options" | "patch" | "post" | "put" | "trace") => void;
11
11
  }, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToOption<{
12
12
  isSquare?: boolean;
13
13
  method: string;
@@ -17,7 +17,7 @@ declare const _default: import("vue").DefineComponent<__VLS_WithDefaults<__VLS_T
17
17
  isDisable: boolean;
18
18
  isEditable: boolean;
19
19
  }>>> & {
20
- onChange?: ((value: "CONNECT" | "DELETE" | "GET" | "HEAD" | "OPTIONS" | "PATCH" | "POST" | "PUT" | "TRACE") => any) | undefined;
20
+ onChange?: ((value: "head" | "get" | "delete" | "connect" | "options" | "patch" | "post" | "put" | "trace") => any) | undefined;
21
21
  }, {
22
22
  isSquare: boolean;
23
23
  isEditable: boolean;
@@ -1 +1 @@
1
- {"version":3,"file":"HttpMethod.vue.d.ts","sourceRoot":"","sources":["../../../src/components/HttpMethod/HttpMethod.vue"],"names":[],"mappings":";eA0Ge,OAAO;YACV,MAAM;iBACD,OAAO;;;;;;;;eAFT,OAAO;YACV,MAAM;iBACD,OAAO;;;;;;;;cAFT,OAAO;gBAEL,OAAO;;AAgIxB,wBAOG;AAOH,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,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":"HttpMethod.vue.d.ts","sourceRoot":"","sources":["../../../src/components/HttpMethod/HttpMethod.vue"],"names":[],"mappings":";eAmGe,OAAO;YACV,MAAM;iBACD,OAAO;;;;;;;;eAFT,OAAO;YACV,MAAM;iBACD,OAAO;;;;;;;;cAFT,OAAO;gBAEL,OAAO;;AAiIxB,wBAOG;AAOH,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,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 t from "./HttpMethod.vue2.js";
2
2
  /* empty css */
3
3
  import o from "../../_virtual/_plugin-vue_export-helper.js";
4
- const f = /* @__PURE__ */ o(t, [["__scopeId", "data-v-5fe98831"]]);
4
+ const m = /* @__PURE__ */ o(t, [["__scopeId", "data-v-1a4c22a1"]]);
5
5
  export {
6
- f as default
6
+ m as default
7
7
  };
@@ -1,8 +1,8 @@
1
- import { defineComponent as S, computed as s, openBlock as p, createBlock as g, unref as t, withCtx as y, createElementVNode as l, normalizeClass as r, toDisplayString as c, createElementBlock as q } from "vue";
2
- import { ScalarListbox as w } from "@scalar/components";
3
- import { getRequest as k, REQUEST_METHODS as x } from "@scalar/oas-utils/helpers";
4
- import { cva as B, cx as m } from "cva";
5
- const O = /* @__PURE__ */ S({
1
+ import { defineComponent as g, computed as a, openBlock as c, createBlock as y, unref as t, withCtx as q, createElementVNode as s, normalizeClass as l, toDisplayString as p, createElementBlock as w } from "vue";
2
+ import { ScalarListbox as k } from "@scalar/components";
3
+ import { getHttpMethodInfo as m, REQUEST_METHODS as x } from "@scalar/oas-utils/helpers";
4
+ import { cva as B, cx as f } from "cva";
5
+ const L = /* @__PURE__ */ g({
6
6
  __name: "HttpMethod",
7
7
  props: {
8
8
  isSquare: { type: Boolean, default: !1 },
@@ -10,16 +10,15 @@ const O = /* @__PURE__ */ S({
10
10
  isEditable: { type: Boolean, default: !1 }
11
11
  },
12
12
  emits: ["change"],
13
- setup(f, { emit: b }) {
14
- const i = f, h = b, o = s(() => k(i.method)), n = Object.entries(x).map(
15
- ([e, { short: a }]) => ({
16
- id: e,
17
- label: e.charAt(0) + e.toLowerCase().slice(1)
18
- })
19
- ), d = s({
20
- get: () => n.find(({ id: e }) => e === i.method),
21
- set: (e) => (e == null ? void 0 : e.id) && h("change", e.id)
22
- }), u = B({
13
+ setup(b, { emit: h }) {
14
+ const r = b, v = h, o = a(() => m(r.method)), i = Object.entries(x).map(([e]) => ({
15
+ id: e,
16
+ label: e.charAt(0) + e.toLowerCase().slice(1),
17
+ color: m(e).color
18
+ })), n = a({
19
+ get: () => i.find(({ id: e }) => e === r.method),
20
+ set: (e) => (e == null ? void 0 : e.id) && v("change", e.id)
21
+ }), d = B({
23
22
  base: "text-center font-code text-3xs justify-center items-center flex",
24
23
  variants: {
25
24
  isSquare: {
@@ -31,33 +30,34 @@ const O = /* @__PURE__ */ S({
31
30
  false: "cusor-pointer"
32
31
  }
33
32
  }
34
- }), v = s(() => o.value.short);
35
- return (e, a) => e.isEditable ? (p(), g(t(w), {
33
+ }), E = a(() => o.value.short);
34
+ return (e, u) => e.isEditable ? (c(), y(t(k), {
36
35
  key: 0,
37
- modelValue: d.value,
38
- "onUpdate:modelValue": a[0] || (a[0] = (E) => d.value = E),
39
- options: t(n)
36
+ modelValue: n.value,
37
+ "onUpdate:modelValue": u[0] || (u[0] = (S) => n.value = S),
38
+ class: "mt-1 font-code uppercase",
39
+ options: t(i)
40
40
  }, {
41
- default: y(() => [
42
- l("div", {
43
- class: r(["h-full", { "pointer-events-none": !e.isEditable }])
41
+ default: q(() => [
42
+ s("div", {
43
+ class: l(["h-full", { "pointer-events-none": !e.isEditable }])
44
44
  }, [
45
- l("button", {
46
- class: r(["relative h-full", t(m)(t(u)({ isSquare: e.isSquare, isEditable: e.isEditable }), o.value.color)]),
45
+ s("button", {
46
+ class: l(["relative h-full", t(f)(t(d)({ isSquare: e.isSquare, isEditable: e.isEditable }), o.value.color)]),
47
47
  type: "button"
48
48
  }, [
49
- l("span", null, c(v.value), 1)
49
+ s("span", null, p(E.value), 1)
50
50
  ], 2)
51
51
  ], 2)
52
52
  ]),
53
53
  _: 1
54
- }, 8, ["modelValue", "options"])) : (p(), q("div", {
54
+ }, 8, ["modelValue", "options"])) : (c(), w("div", {
55
55
  key: 1,
56
- class: r(["relative gap-1 whitespace-nowrap", t(m)(t(u)({ isSquare: e.isSquare, isEditable: e.isEditable }), o.value.color)]),
56
+ class: l(["relative gap-1 whitespace-nowrap", t(f)(t(d)({ isSquare: e.isSquare, isEditable: e.isEditable }), o.value.color)]),
57
57
  type: "button"
58
- }, c(o.value.short), 3));
58
+ }, p(o.value.short), 3));
59
59
  }
60
60
  });
61
61
  export {
62
- O as default
62
+ L as default
63
63
  };
@@ -0,0 +1,4 @@
1
+ import { type RequestMethod } from '@scalar/oas-utils/entities/spec';
2
+ /** Type guard which takes in a string and returns true if it is in fact an HTTPMethod */
3
+ export declare const isHTTPMethod: (method: string) => method is RequestMethod;
4
+ //# sourceMappingURL=helpers.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"helpers.d.ts","sourceRoot":"","sources":["../../../src/components/HttpMethod/helpers.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,KAAK,aAAa,EAEnB,MAAM,iCAAiC,CAAA;AAExC,yFAAyF;AACzF,eAAO,MAAM,YAAY,WAAY,MAAM,KAAG,MAAM,IAAI,aACN,CAAA"}
@@ -0,0 +1,5 @@
1
+ import { requestMethods as o } from "@scalar/oas-utils/entities/spec";
2
+ const s = (e) => o.includes(e);
3
+ export {
4
+ s as isHTTPMethod
5
+ };
@@ -1,2 +1,3 @@
1
1
  export { default as HttpMethod } from './HttpMethod.vue.js';
2
+ export * from './helpers.js';
2
3
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/HttpMethod/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,IAAI,UAAU,EAAE,MAAM,kBAAkB,CAAA"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/HttpMethod/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,IAAI,UAAU,EAAE,MAAM,kBAAkB,CAAA;AACxD,cAAc,WAAW,CAAA"}
@@ -1,4 +1,6 @@
1
- import { default as o } from "./HttpMethod.vue.js";
1
+ import { default as e } from "./HttpMethod.vue.js";
2
+ import { isHTTPMethod as d } from "./helpers.js";
2
3
  export {
3
- o as HttpMethod
4
+ e as HttpMethod,
5
+ d as isHTTPMethod
4
6
  };
@@ -1 +1 @@
1
- {"version":3,"file":"SearchModal.vue.d.ts","sourceRoot":"","sources":["../../../src/components/Search/SearchModal.vue"],"names":[],"mappings":"AA2PA,OAAO,EACL,KAAK,UAAU,EAKhB,MAAM,oBAAoB,CAAA;;gBAUb,UAAU;;gBAAV,UAAU;;AA4WxB,wBAMG;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":"SearchModal.vue.d.ts","sourceRoot":"","sources":["../../../src/components/Search/SearchModal.vue"],"names":[],"mappings":"AA8PA,OAAO,EACL,KAAK,UAAU,EAKhB,MAAM,oBAAoB,CAAA;;gBAUb,UAAU;;gBAAV,UAAU;;AA+WxB,wBAMG;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 "./SearchModal.vue2.js";
2
2
  /* empty css */
3
3
  import r from "../../_virtual/_plugin-vue_export-helper.js";
4
- const m = /* @__PURE__ */ r(o, [["__scopeId", "data-v-905c8bd2"]]);
4
+ const e = /* @__PURE__ */ r(o, [["__scopeId", "data-v-85de57c6"]]);
5
5
  export {
6
- m as default
6
+ e as default
7
7
  };
@@ -1,24 +1,24 @@
1
- import { defineComponent as A, ref as i, watch as M, computed as y, openBlock as w, createBlock as B, unref as d, withCtx as r, createElementVNode as h, createVNode as R, createTextVNode as m, toDisplayString as p, createElementBlock as D, Fragment as N, renderList as T, createSlots as W, pushScopeId as L, popScopeId as U } from "vue";
2
- import { useWorkspace as H } from "../../store/workspace.js";
1
+ import { defineComponent as D, ref as i, watch as y, computed as B, openBlock as w, createBlock as E, unref as d, withCtx as r, createElementVNode as h, createVNode as R, createTextVNode as m, toDisplayString as p, createElementBlock as N, Fragment as T, renderList as W, createSlots as L, pushScopeId as U, popScopeId as H } from "vue";
3
2
  import { ScalarModal as K, ScalarSearchInput as P, ScalarSearchResultList as j, ScalarSearchResultItem as z } from "@scalar/components";
4
3
  import { useMagicKeys as G, whenever as g } from "@vueuse/core";
5
4
  import J from "fuse.js";
6
5
  import { useRouter as O } from "vue-router";
7
6
  import Q from "../HttpMethod/HttpMethod.vue.js";
8
- const X = (u) => (L("data-v-905c8bd2"), u = u(), U(), u), Y = /* @__PURE__ */ X(() => /* @__PURE__ */ h("div", { class: "ref-search-meta" }, [
7
+ import { useWorkspace as X } from "../../store/store.js";
8
+ const Y = (u) => (U("data-v-85de57c6"), u = u(), H(), u), Z = /* @__PURE__ */ Y(() => /* @__PURE__ */ h("div", { class: "ref-search-meta" }, [
9
9
  /* @__PURE__ */ h("span", null, "↑↓ Navigate"),
10
10
  /* @__PURE__ */ h("span", null, "⏎ Select")
11
- ], -1)), re = /* @__PURE__ */ A({
11
+ ], -1)), se = /* @__PURE__ */ D({
12
12
  __name: "SearchModal",
13
13
  props: {
14
14
  modalState: {}
15
15
  },
16
16
  setup(u) {
17
- const c = u, E = O(), { activeWorkspaceRequests: I } = H(), v = G(), l = i([]), f = i([]), o = i(0), s = i(""), V = i(null), S = new J(l.value, {
17
+ const c = u, F = O(), { activeWorkspaceRequests: I, requests: V } = X(), v = G(), l = i([]), f = i([]), o = i(0), s = i(""), _ = i(null), S = new J(l.value, {
18
18
  keys: ["title", "description", "body"]
19
- }), F = () => {
19
+ }), $ = () => {
20
20
  s.value = "", o.value = 0, f.value = [];
21
- }, _ = (e) => {
21
+ }, b = (e) => {
22
22
  l.value = e.map((a) => ({
23
23
  id: a.uid,
24
24
  title: a.summary ?? a.method,
@@ -26,10 +26,10 @@ const X = (u) => (L("data-v-905c8bd2"), u = u(), U(), u), Y = /* @__PURE__ */ X(
26
26
  httpVerb: a.method,
27
27
  path: a.path
28
28
  })), S.setCollection(l.value);
29
- }, $ = () => {
29
+ }, x = () => {
30
30
  o.value = 0, f.value = S.search(s.value);
31
31
  };
32
- M(
32
+ y(
33
33
  () => c.modalState.open,
34
34
  (e) => {
35
35
  var a;
@@ -37,27 +37,29 @@ const X = (u) => (L("data-v-905c8bd2"), u = u(), U(), u), Y = /* @__PURE__ */ X(
37
37
  l.value.length > 0 && (l.value = [], S.setCollection(l.value));
38
38
  return;
39
39
  }
40
- (a = V.value) == null || a.focus(), F(), _(I.value);
40
+ (a = _.value) == null || a.focus(), $(), b(
41
+ I.value.map((t) => V[t])
42
+ );
41
43
  }
42
- ), M(
44
+ ), y(
43
45
  I,
44
46
  (e) => {
45
- _(e);
47
+ b(e.map((a) => V[a]));
46
48
  },
47
49
  { immediate: !0 }
48
50
  );
49
- function b(e) {
50
- E.push(e.item.id), c.modalState.hide();
51
+ function C(e) {
52
+ F.push(e.item.id), c.modalState.hide();
51
53
  }
52
- const k = y(
54
+ const k = B(
53
55
  () => n.value[o.value]
54
- ), n = y(
56
+ ), n = B(
55
57
  () => s.value.length === 0 ? l.value.map((e) => ({
56
58
  item: e
57
59
  })) : f.value
58
60
  );
59
61
  return g(v.enter, () => {
60
- c.modalState.open && window && b(k.value);
62
+ c.modalState.open && window && C(k.value);
61
63
  }), g(v.ArrowDown, () => {
62
64
  var e;
63
65
  c.modalState.open && window && (o.value < n.value.length - 1 ? o.value++ : o.value = 0, (e = document.getElementById(`search-modal-${k.value.item.id}`)) == null || e.scrollIntoView({
@@ -70,20 +72,20 @@ const X = (u) => (L("data-v-905c8bd2"), u = u(), U(), u), Y = /* @__PURE__ */ X(
70
72
  behavior: "smooth",
71
73
  block: "center"
72
74
  }));
73
- }), (e, a) => (w(), B(d(K), {
75
+ }), (e, a) => (w(), E(d(K), {
74
76
  state: e.modalState,
75
77
  variant: "search"
76
78
  }, {
77
79
  default: r(() => [
78
80
  h("div", {
79
81
  ref_key: "searchModalRef",
80
- ref: V,
82
+ ref: _,
81
83
  class: "ref-search-container"
82
84
  }, [
83
85
  R(d(P), {
84
86
  modelValue: s.value,
85
87
  "onUpdate:modelValue": a[0] || (a[0] = (t) => s.value = t),
86
- onInput: $
88
+ onInput: x
87
89
  }, null, 8, ["modelValue"])
88
90
  ], 512),
89
91
  R(d(j), {
@@ -94,14 +96,14 @@ const X = (u) => (L("data-v-905c8bd2"), u = u(), U(), u), Y = /* @__PURE__ */ X(
94
96
  m(p(s.value), 1)
95
97
  ]),
96
98
  default: r(() => [
97
- (w(!0), D(N, null, T(n.value, (t, C) => (w(), B(d(z), {
99
+ (w(!0), N(T, null, W(n.value, (t, M) => (w(), E(d(z), {
98
100
  id: `#search-modal-${t.item.id}`,
99
101
  key: t.refIndex,
100
- active: o.value === C,
102
+ active: o.value === M,
101
103
  icon: "Terminal",
102
- onClick: (x) => b(t),
103
- onFocus: (x) => o.value = C
104
- }, W({
104
+ onClick: (A) => C(t),
105
+ onFocus: (A) => o.value = M
106
+ }, L({
105
107
  addon: r(() => [
106
108
  R(d(Q), {
107
109
  method: t.item.httpVerb ?? "get"
@@ -129,12 +131,12 @@ const X = (u) => (L("data-v-905c8bd2"), u = u(), U(), u), Y = /* @__PURE__ */ X(
129
131
  ]),
130
132
  _: 1
131
133
  }, 8, ["noResults"]),
132
- Y
134
+ Z
133
135
  ]),
134
136
  _: 1
135
137
  }, 8, ["state"]));
136
138
  }
137
139
  });
138
140
  export {
139
- re as default
141
+ se as default
140
142
  };