@scalar/api-client 2.0.63 → 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 (329) hide show
  1. package/CHANGELOG.md +63 -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 +5 -54
  92. package/dist/components/Sidebar/Sidebar.vue2.js +59 -0
  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/Sidebar/index.js +2 -3
  96. package/dist/components/SubpageHeader.vue.d.ts.map +1 -1
  97. package/dist/components/SubpageHeader.vue.js +3 -3
  98. package/dist/components/SubpageHeader.vue2.js +3 -3
  99. package/dist/components/TopNav/TopNav.vue.d.ts.map +1 -1
  100. package/dist/components/TopNav/TopNav.vue.js +2 -2
  101. package/dist/components/TopNav/TopNav.vue2.js +23 -23
  102. package/dist/components/TopNav/TopNavItem.vue.d.ts.map +1 -1
  103. package/dist/components/TopNav/TopNavItem.vue.js +2 -2
  104. package/dist/components/TopNav/TopNavItem.vue2.js +21 -21
  105. package/dist/components/ViewLayout/ViewLayout.vue.d.ts.map +1 -1
  106. package/dist/components/ViewLayout/ViewLayout.vue.js +7 -7
  107. package/dist/components/ViewLayout/ViewLayoutCollapse.vue.d.ts.map +1 -1
  108. package/dist/components/ViewLayout/ViewLayoutCollapse.vue.js +5 -5
  109. package/dist/components/ViewLayout/ViewLayoutContent.vue.d.ts.map +1 -1
  110. package/dist/components/ViewLayout/ViewLayoutContent.vue.js +4 -4
  111. package/dist/components/ViewLayout/ViewLayoutSection.vue.d.ts.map +1 -1
  112. package/dist/components/ViewLayout/ViewLayoutSection.vue.js +6 -6
  113. package/dist/components/index.js +4 -5
  114. package/dist/index.d.ts +1 -1
  115. package/dist/index.d.ts.map +1 -1
  116. package/dist/index.js +1 -1
  117. package/dist/layouts/App/ApiClientApp.vue.d.ts.map +1 -1
  118. package/dist/layouts/App/ApiClientApp.vue.js +39 -53
  119. package/dist/layouts/App/create-api-client-app.d.ts +2058 -1941
  120. package/dist/layouts/App/create-api-client-app.d.ts.map +1 -1
  121. package/dist/layouts/App/create-api-client-app.js +12 -12
  122. package/dist/layouts/Modal/ApiClientModal.vue.js +1 -1
  123. package/dist/layouts/Modal/ApiClientModal.vue2.js +6 -6
  124. package/dist/layouts/Modal/create-api-client-modal.d.ts +4590 -4356
  125. package/dist/layouts/Modal/create-api-client-modal.d.ts.map +1 -1
  126. package/dist/layouts/Modal/create-api-client-modal.js +18 -23
  127. package/dist/libs/create-client.d.ts +2086 -1972
  128. package/dist/libs/create-client.d.ts.map +1 -1
  129. package/dist/libs/create-client.js +85 -76
  130. package/dist/libs/environment-parser.d.ts +9 -0
  131. package/dist/libs/environment-parser.d.ts.map +1 -0
  132. package/dist/libs/environment-parser.js +17 -0
  133. package/dist/libs/errors.d.ts +21 -0
  134. package/dist/libs/errors.d.ts.map +1 -0
  135. package/dist/libs/errors.js +14 -0
  136. package/dist/libs/event-busses/command-palette-bus.d.ts +1 -1
  137. package/dist/libs/event-busses/command-palette-bus.d.ts.map +1 -1
  138. package/dist/libs/event-busses/hot-keys-bus.d.ts +4 -4
  139. package/dist/libs/event-busses/hot-keys-bus.d.ts.map +1 -1
  140. package/dist/libs/event-busses/hot-keys-bus.js +17 -19
  141. package/dist/libs/index.d.ts +5 -2
  142. package/dist/libs/index.d.ts.map +1 -1
  143. package/dist/libs/index.js +31 -24
  144. package/dist/libs/local-storage.d.ts +3 -3
  145. package/dist/libs/local-storage.d.ts.map +1 -1
  146. package/dist/libs/local-storage.js +24 -12
  147. package/dist/libs/normalize-headers.d.ts +14 -0
  148. package/dist/libs/normalize-headers.d.ts.map +1 -0
  149. package/dist/libs/normalize-headers.js +32 -0
  150. package/dist/libs/send-request.d.ts +28 -0
  151. package/dist/libs/send-request.d.ts.map +1 -0
  152. package/dist/libs/send-request.js +186 -0
  153. package/dist/libs/string-template.d.ts +19 -0
  154. package/dist/libs/string-template.d.ts.map +1 -0
  155. package/dist/libs/string-template.js +30 -0
  156. package/dist/router.d.ts +5 -0
  157. package/dist/router.d.ts.map +1 -1
  158. package/dist/router.js +36 -27
  159. package/dist/store/collections.d.ts +705 -0
  160. package/dist/store/collections.d.ts.map +1 -0
  161. package/dist/store/collections.js +63 -0
  162. package/dist/store/cookies.d.ts +135 -0
  163. package/dist/store/cookies.d.ts.map +1 -0
  164. package/dist/store/cookies.js +29 -0
  165. package/dist/store/environment.d.ts +80 -0
  166. package/dist/store/environment.d.ts.map +1 -0
  167. package/dist/store/environment.js +39 -0
  168. package/dist/store/import-spec.d.ts +8 -0
  169. package/dist/store/import-spec.d.ts.map +1 -0
  170. package/dist/store/import-spec.js +45 -0
  171. package/dist/store/index.d.ts +1 -1
  172. package/dist/store/index.d.ts.map +1 -1
  173. package/dist/store/index.js +1 -1
  174. package/dist/store/request-example.d.ts +1111 -0
  175. package/dist/store/request-example.d.ts.map +1 -0
  176. package/dist/store/request-example.js +47 -0
  177. package/dist/store/requests.d.ts +371 -0
  178. package/dist/store/requests.d.ts.map +1 -0
  179. package/dist/store/requests.js +107 -0
  180. package/dist/store/router-params.d.ts +15 -0
  181. package/dist/store/router-params.d.ts.map +1 -0
  182. package/dist/store/router-params.js +21 -0
  183. package/dist/store/security-schemes.d.ts +616 -0
  184. package/dist/store/security-schemes.d.ts.map +1 -0
  185. package/dist/store/security-schemes.js +68 -0
  186. package/dist/store/servers.d.ts +99 -0
  187. package/dist/store/servers.d.ts.map +1 -0
  188. package/dist/store/servers.js +46 -0
  189. package/dist/store/store-context.d.ts +29 -0
  190. package/dist/store/store-context.d.ts.map +1 -0
  191. package/dist/store/store.d.ts +7504 -0
  192. package/dist/store/store.d.ts.map +1 -0
  193. package/dist/store/store.js +200 -0
  194. package/dist/store/tags.d.ts +169 -0
  195. package/dist/store/tags.d.ts.map +1 -0
  196. package/dist/store/tags.js +57 -0
  197. package/dist/store/workspace.d.ts +93 -7150
  198. package/dist/store/workspace.d.ts.map +1 -1
  199. package/dist/store/workspace.js +49 -543
  200. package/dist/style.css +1 -1
  201. package/dist/views/Cookies/CookieForm.vue.js +2 -2
  202. package/dist/views/Cookies/CookieRaw.vue.d.ts.map +1 -1
  203. package/dist/views/Cookies/CookieRaw.vue.js +10 -10
  204. package/dist/views/Cookies/Cookies.vue.d.ts.map +1 -1
  205. package/dist/views/Cookies/Cookies.vue2.js +29 -32
  206. package/dist/views/Environment/Environment.vue2.js +31 -33
  207. package/dist/views/Environment/EnvironmentVariableDropdown.vue.d.ts +11 -5
  208. package/dist/views/Environment/EnvironmentVariableDropdown.vue.d.ts.map +1 -1
  209. package/dist/views/Environment/EnvironmentVariableDropdown.vue.js +79 -59
  210. package/dist/views/Request/Request.vue.d.ts.map +1 -1
  211. package/dist/views/Request/Request.vue.js +2 -2
  212. package/dist/views/Request/Request.vue2.js +87 -319
  213. package/dist/views/Request/RequestSection/RequestAuth/DeleteRequestAuthModal.vue.d.ts +36 -0
  214. package/dist/views/Request/RequestSection/RequestAuth/DeleteRequestAuthModal.vue.d.ts.map +1 -0
  215. package/dist/views/Request/RequestSection/RequestAuth/DeleteRequestAuthModal.vue.js +59 -0
  216. package/dist/views/Request/RequestSection/RequestAuth/DeleteRequestAuthModal.vue2.js +4 -0
  217. package/dist/views/Request/{components → RequestSection/RequestAuth}/OAuth2.vue.d.ts +3 -1
  218. package/dist/views/Request/RequestSection/RequestAuth/OAuth2.vue.d.ts.map +1 -0
  219. package/dist/views/Request/RequestSection/RequestAuth/OAuth2.vue.js +216 -0
  220. package/dist/views/Request/{components → RequestSection/RequestAuth}/OAuthScopesInput.vue.d.ts +2 -2
  221. package/dist/views/Request/RequestSection/RequestAuth/OAuthScopesInput.vue.d.ts.map +1 -0
  222. package/dist/views/Request/{components → RequestSection/RequestAuth}/OAuthScopesInput.vue.js +3 -3
  223. package/dist/views/Request/RequestSection/RequestAuth/RequestAuth.vue.d.ts.map +1 -0
  224. package/dist/views/Request/RequestSection/RequestAuth/RequestAuth.vue.js +7 -0
  225. package/dist/views/Request/RequestSection/RequestAuth/RequestAuth.vue2.js +183 -0
  226. package/dist/views/Request/RequestSection/RequestAuth/RequestAuthModal.vue.d.ts +30 -0
  227. package/dist/views/Request/RequestSection/RequestAuth/RequestAuthModal.vue.d.ts.map +1 -0
  228. package/dist/views/Request/RequestSection/RequestAuth/RequestExampleAuth.vue.d.ts +3 -0
  229. package/dist/views/Request/RequestSection/RequestAuth/RequestExampleAuth.vue.d.ts.map +1 -0
  230. package/dist/views/Request/RequestSection/RequestAuth/RequestExampleAuth.vue.js +140 -0
  231. package/dist/views/Request/RequestSection/RequestAuth/RequestExampleAuth.vue2.js +4 -0
  232. package/dist/views/Request/RequestSection/RequestAuthDataTableInput.vue.d.ts +1 -1
  233. package/dist/views/Request/RequestSection/RequestBody.vue.d.ts.map +1 -1
  234. package/dist/views/Request/RequestSection/RequestBody.vue.js +167 -186
  235. package/dist/views/Request/RequestSection/RequestParams.vue.d.ts +1 -1
  236. package/dist/views/Request/RequestSection/RequestParams.vue.d.ts.map +1 -1
  237. package/dist/views/Request/RequestSection/RequestParams.vue.js +49 -49
  238. package/dist/views/Request/RequestSection/RequestPathParams.vue.d.ts +1 -1
  239. package/dist/views/Request/RequestSection/RequestPathParams.vue.d.ts.map +1 -1
  240. package/dist/views/Request/RequestSection/RequestPathParams.vue.js +26 -22
  241. package/dist/views/Request/RequestSection/RequestSection.vue.d.ts.map +1 -1
  242. package/dist/views/Request/RequestSection/RequestSection.vue.js +103 -102
  243. package/dist/views/Request/RequestSection/RequestTable.vue.d.ts +5 -5
  244. package/dist/views/Request/RequestSection/RequestTable.vue.d.ts.map +1 -1
  245. package/dist/views/Request/RequestSection/RequestTable.vue.js +1 -1
  246. package/dist/views/Request/RequestSection/RequestTable.vue2.js +1 -1
  247. package/dist/views/Request/RequestSection/RequestTableTooltip.vue.d.ts +1 -1
  248. package/dist/views/Request/RequestSection/RequestTableTooltip.vue.d.ts.map +1 -1
  249. package/dist/views/Request/RequestSidebar.vue.d.ts +30 -0
  250. package/dist/views/Request/RequestSidebar.vue.d.ts.map +1 -0
  251. package/dist/views/Request/RequestSidebar.vue.js +7 -0
  252. package/dist/views/Request/RequestSidebar.vue2.js +179 -0
  253. package/dist/views/Request/RequestSidebarItem.vue.d.ts +6 -7
  254. package/dist/views/Request/RequestSidebarItem.vue.d.ts.map +1 -1
  255. package/dist/views/Request/RequestSidebarItem.vue.js +1 -1
  256. package/dist/views/Request/RequestSidebarItem.vue2.js +283 -254
  257. package/dist/views/Request/RequestSidebarItemMenu.vue.d.ts +3 -5
  258. package/dist/views/Request/RequestSidebarItemMenu.vue.d.ts.map +1 -1
  259. package/dist/views/Request/RequestSidebarItemMenu.vue.js +2 -2
  260. package/dist/views/Request/RequestSidebarItemMenu.vue2.js +9 -7
  261. package/dist/views/Request/RequestSubpageHeader.vue.d.ts +24 -0
  262. package/dist/views/Request/RequestSubpageHeader.vue.d.ts.map +1 -0
  263. package/dist/views/Request/RequestSubpageHeader.vue.js +7 -0
  264. package/dist/views/Request/RequestSubpageHeader.vue2.js +48 -0
  265. package/dist/views/Request/ResponseSection/ResponseBody.vue.d.ts.map +1 -1
  266. package/dist/views/Request/ResponseSection/ResponseBody.vue.js +21 -21
  267. package/dist/views/Request/ResponseSection/ResponseBodyRaw.vue.d.ts.map +1 -1
  268. package/dist/views/Request/ResponseSection/ResponseBodyRaw.vue.js +3 -3
  269. package/dist/views/Request/ResponseSection/ResponseBodyRaw.vue2.js +17 -16
  270. package/dist/views/Request/ResponseSection/ResponseEmpty.vue.d.ts.map +1 -1
  271. package/dist/views/Request/ResponseSection/ResponseEmpty.vue.js +1 -1
  272. package/dist/views/Request/ResponseSection/ResponseEmpty.vue2.js +37 -30
  273. package/dist/views/Request/ResponseSection/ResponseMetaInformation.vue.d.ts +1 -1
  274. package/dist/views/Request/ResponseSection/ResponseMetaInformation.vue.d.ts.map +1 -1
  275. package/dist/views/Request/ResponseSection/ResponseSection.vue.d.ts +1 -1
  276. package/dist/views/Request/ResponseSection/ResponseSection.vue.d.ts.map +1 -1
  277. package/dist/views/Request/ResponseSection/ResponseSection.vue.js +2 -2
  278. package/dist/views/Request/components/WorkspaceDropdown.vue.d.ts.map +1 -1
  279. package/dist/views/Request/components/WorkspaceDropdown.vue.js +69 -90
  280. package/dist/views/Request/components/index.d.ts +0 -1
  281. package/dist/views/Request/components/index.d.ts.map +1 -1
  282. package/dist/views/Request/components/index.js +2 -4
  283. package/dist/views/Request/consts/new-auth-options.d.ts +11 -1
  284. package/dist/views/Request/consts/new-auth-options.d.ts.map +1 -1
  285. package/dist/views/Request/consts/new-auth-options.js +17 -7
  286. package/dist/views/Request/handle-drag.d.ts +8 -0
  287. package/dist/views/Request/handle-drag.d.ts.map +1 -0
  288. package/dist/views/Request/handle-drag.js +56 -0
  289. package/dist/views/Request/libs/auth.d.ts +35 -0
  290. package/dist/views/Request/libs/auth.d.ts.map +1 -0
  291. package/dist/views/Request/libs/auth.js +14 -0
  292. package/dist/views/Request/libs/index.d.ts +1 -0
  293. package/dist/views/Request/libs/index.d.ts.map +1 -1
  294. package/dist/views/Request/libs/index.js +7 -3
  295. package/dist/views/Request/libs/oauth2.d.ts +12 -3
  296. package/dist/views/Request/libs/oauth2.d.ts.map +1 -1
  297. package/dist/views/Request/libs/oauth2.js +42 -27
  298. package/dist/views/Servers/ServerForm.vue.js +22 -22
  299. package/dist/views/Servers/Servers.vue.d.ts.map +1 -1
  300. package/dist/views/Servers/Servers.vue2.js +18 -16
  301. package/package.json +11 -11
  302. package/dist/components/CodeInput/codeDropdownWidget.d.ts +0 -32
  303. package/dist/components/CodeInput/codeDropdownWidget.d.ts.map +0 -1
  304. package/dist/components/CodeInput/codeDropdownWidget.js +0 -121
  305. package/dist/components/CommandPalette/CommandPaletteFolder.vue.d.ts.map +0 -1
  306. package/dist/components/CommandPalette/CommandPaletteFolder.vue.js +0 -106
  307. package/dist/components/CommandPalette/CommandPaletteFolder.vue2.js +0 -4
  308. package/dist/components/Sidebar/Sidebar.vue3.js +0 -5
  309. package/dist/errors.d.ts +0 -5
  310. package/dist/errors.d.ts.map +0 -1
  311. package/dist/errors.js +0 -7
  312. package/dist/libs/normalizeHeaders.d.ts +0 -11
  313. package/dist/libs/normalizeHeaders.d.ts.map +0 -1
  314. package/dist/libs/normalizeHeaders.js +0 -25
  315. package/dist/libs/pathParams.d.ts +0 -10
  316. package/dist/libs/pathParams.d.ts.map +0 -1
  317. package/dist/libs/pathParams.js +0 -36
  318. package/dist/libs/sendRequest.d.ts +0 -14
  319. package/dist/libs/sendRequest.d.ts.map +0 -1
  320. package/dist/libs/sendRequest.js +0 -163
  321. package/dist/views/Request/RequestSection/RequestAuth.vue.d.ts.map +0 -1
  322. package/dist/views/Request/RequestSection/RequestAuth.vue.js +0 -7
  323. package/dist/views/Request/RequestSection/RequestAuth.vue2.js +0 -351
  324. package/dist/views/Request/components/OAuth2.vue.d.ts.map +0 -1
  325. package/dist/views/Request/components/OAuth2.vue.js +0 -208
  326. package/dist/views/Request/components/OAuthScopesInput.vue.d.ts.map +0 -1
  327. /package/dist/views/Request/{components → RequestSection/RequestAuth}/OAuth2.vue2.js +0 -0
  328. /package/dist/views/Request/{components → RequestSection/RequestAuth}/OAuthScopesInput.vue2.js +0 -0
  329. /package/dist/views/Request/RequestSection/{RequestAuth.vue.d.ts → RequestAuth/RequestAuth.vue.d.ts} +0 -0
@@ -1,22 +1,22 @@
1
- import { defineComponent as c, openBlock as t, createBlock as r, withCtx as n, unref as e, createCommentVNode as i, createElementVNode as m } from "vue";
2
- import s from "../../components/CodeInput/CodeInput.vue.js";
3
- import p from "../../components/ViewLayout/ViewLayoutSection.vue.js";
4
- import { useWorkspace as l } from "../../store/workspace.js";
5
- const u = /* @__PURE__ */ m("span", null, "Raw Cookie String", -1), w = /* @__PURE__ */ c({
1
+ import { defineComponent as p, openBlock as t, createBlock as r, withCtx as n, unref as e, createCommentVNode as a, createElementVNode as c } from "vue";
2
+ import i from "../../components/CodeInput/CodeInput.vue.js";
3
+ import s from "../../components/ViewLayout/ViewLayoutSection.vue.js";
4
+ import { useWorkspace as l } from "../../store/store.js";
5
+ const u = /* @__PURE__ */ c("span", null, "Raw Cookie String", -1), w = /* @__PURE__ */ p({
6
6
  __name: "CookieRaw",
7
7
  setup(_) {
8
- const { cookies: a, activeCookieId: o } = l();
9
- return (f, d) => (t(), r(p, null, {
8
+ const { cookies: m, activeCookieId: o } = l();
9
+ return (d, f) => (t(), r(s, null, {
10
10
  title: n(() => [
11
11
  u
12
12
  ]),
13
13
  default: n(() => [
14
- e(o) && e(a)[e(o)] ? (t(), r(s, {
14
+ e(o) && e(m)[e(o)] ? (t(), r(i, {
15
15
  key: 0,
16
- class: "px-2 py-2.5",
16
+ class: "pl-px pr-2 md:px-2 py-2.5",
17
17
  lineNumbers: "",
18
18
  modelValue: ""
19
- })) : i("", !0)
19
+ })) : a("", !0)
20
20
  ]),
21
21
  _: 1
22
22
  }));
@@ -1 +1 @@
1
- {"version":3,"file":"Cookies.vue.d.ts","sourceRoot":"","sources":["../../../src/views/Cookies/Cookies.vue"],"names":[],"mappings":";AA+hBA,wBAKG"}
1
+ {"version":3,"file":"Cookies.vue.d.ts","sourceRoot":"","sources":["../../../src/views/Cookies/Cookies.vue"],"names":[],"mappings":";AAqhBA,wBAKG"}
@@ -1,26 +1,23 @@
1
- import { defineComponent as L, computed as V, onMounted as D, openBlock as l, createBlock as y, withCtx as n, createVNode as s, unref as a, createElementVNode as m, createElementBlock as f, Fragment as h, renderList as x, normalizeClass as w, createTextVNode as v, toDisplayString as S, withDirectives as $, vShow as O } from "vue";
1
+ import { defineComponent as L, computed as V, onMounted as D, openBlock as l, createBlock as y, withCtx as n, createVNode as s, unref as a, createElementVNode as f, createElementBlock as m, Fragment as _, renderList as x, normalizeClass as w, createTextVNode as v, toDisplayString as S, withDirectives as O, vShow as $ } from "vue";
2
2
  import M from "../../components/Sidebar/SidebarButton.vue.js";
3
3
  import N from "../../components/Sidebar/SidebarList.vue.js";
4
4
  import B from "../../components/Sidebar/SidebarListElement.vue.js";
5
5
  import F from "../../components/SubpageHeader.vue.js";
6
6
  import I from "../../components/ViewLayout/ViewLayout.vue.js";
7
7
  import R from "../../components/ViewLayout/ViewLayoutContent.vue.js";
8
- import { useWorkspace as A } from "../../store/workspace.js";
9
8
  import { ScalarIcon as j } from "@scalar/components";
10
- import { createCookie as H } from "@scalar/oas-utils/entities/workspace/cookie";
11
- import { nanoid as P } from "nanoid";
12
- import { useRouter as T } from "vue-router";
13
- import W from "./CookieForm.vue.js";
14
- import q from "./CookieRaw.vue.js";
9
+ import { cookieSchema as A } from "@scalar/oas-utils/entities/cookie";
10
+ import { useRouter as H } from "vue-router";
11
+ import P from "./CookieForm.vue.js";
12
+ import T from "./CookieRaw.vue.js";
13
+ import { useSidebar as W } from "../../hooks/useSidebar.js";
14
+ import { useWorkspace as q } from "../../store/store.js";
15
15
  import G from "../../components/Sidebar/Sidebar.vue.js";
16
- /* empty css */
17
- import { useSidebar as J } from "../../hooks/useSidebar.js";
18
- const K = { class: "flex-1" }, Q = ["onClick"], U = { class: "before:bg-b-3 before:absolute before:left-[calc(1rem_-_1.5px)] before:top-0 before:z-10 before:h-[calc(100%_+_.5px)] last:before:h-full before:w-[.5px] mb-[.5px] last:mb-0 relative" }, X = ["onClick"], Y = { class: "before:bg-b-3 before:absolute before:left-[calc(1.75rem_-_1.5px)] before:top-0 before:z-10 before:h-[calc(100%_+_.5px)] last:before:h-full before:w-[.5px] mb-[.5px] last:mb-0 relative" }, xe = /* @__PURE__ */ L({
16
+ const J = { class: "flex-1" }, K = ["onClick"], Q = { class: "before:bg-b-3 before:absolute before:left-[calc(1rem_-_1.5px)] before:top-0 before:z-10 before:h-[calc(100%_+_.5px)] last:before:h-full before:w-[.5px] mb-[.5px] last:mb-0 relative" }, U = ["onClick"], X = { class: "before:bg-b-3 before:absolute before:left-[calc(1.75rem_-_1.5px)] before:top-0 before:z-10 before:h-[calc(100%_+_.5px)] last:before:h-full before:w-[.5px] mb-[.5px] last:mb-0 relative" }, be = /* @__PURE__ */ L({
19
17
  __name: "Cookies",
20
- setup(Z) {
21
- const { cookies: p, cookieMutators: g } = A(), { collapsedSidebarFolders: i, toggleSidebarFolder: k } = J(), b = T(), E = () => {
22
- const t = Object.keys(p).length, e = H({
23
- uid: P(),
18
+ setup(Y) {
19
+ const { cookies: p, cookieMutators: g } = q(), { collapsedSidebarFolders: i, toggleSidebarFolder: k } = W(), b = H(), E = () => {
20
+ const t = Object.keys(p).length, e = A.parse({
24
21
  name: `Cookie ${t}`,
25
22
  value: "",
26
23
  domain: "example.com",
@@ -39,14 +36,14 @@ const K = { class: "flex-1" }, Q = ["onClick"], U = { class: "before:bg-b-3 befo
39
36
  const o = e[e.length - 1];
40
37
  b.push(o.uid);
41
38
  } else e.length === 1 && e[0].uid === "default" && b.push("default");
42
- }, _ = V(() => {
39
+ }, h = V(() => {
43
40
  const t = {};
44
41
  return Object.values(p).forEach((e) => {
45
42
  e.domain && e.path && (t[e.domain] || (t[e.domain] = {}), t[e.domain][e.path] || (t[e.domain][e.path] = []), t[e.domain][e.path].push(e));
46
43
  }), t;
47
44
  }), C = (t) => i[t];
48
45
  return D(() => {
49
- const t = Object.keys(_.value), e = Object.entries(_.value).flatMap(
46
+ const t = Object.keys(h.value), e = Object.entries(h.value).flatMap(
50
47
  ([o, r]) => Object.keys(r).map((d) => o + d)
51
48
  );
52
49
  t.forEach((o) => {
@@ -60,11 +57,11 @@ const K = { class: "flex-1" }, Q = ["onClick"], U = { class: "before:bg-b-3 befo
60
57
  default: n(() => [
61
58
  s(a(G), { title: "Cookies" }, {
62
59
  content: n(() => [
63
- m("div", K, [
60
+ f("div", J, [
64
61
  s(N, null, {
65
62
  default: n(() => [
66
- (l(!0), f(h, null, x(_.value, (o, r) => (l(), f("div", { key: r }, [
67
- m("button", {
63
+ (l(!0), m(_, null, x(h.value, (o, r) => (l(), m("div", { key: r }, [
64
+ f("button", {
68
65
  class: "flex font-medium gap-1.5 items-center px-2 py-1.5 text-left text-sm w-full break-words rounded hover:bg-b-2",
69
66
  type: "button",
70
67
  onClick: (d) => a(k)(r)
@@ -78,10 +75,10 @@ const K = { class: "flex-1" }, Q = ["onClick"], U = { class: "before:bg-b-3 befo
78
75
  thickness: "2.5"
79
76
  }, null, 8, ["class"]),
80
77
  v(" " + S(r), 1)
81
- ], 8, Q),
82
- $(m("div", U, [
83
- (l(!0), f(h, null, x(o, (d, c) => (l(), f("div", { key: c }, [
84
- m("button", {
78
+ ], 8, K),
79
+ O(f("div", Q, [
80
+ (l(!0), m(_, null, x(o, (d, c) => (l(), m("div", { key: c }, [
81
+ f("button", {
85
82
  class: "flex font-medium gap-1.5 items-center pl-5 pr-2 py-1.5 text-left text-sm w-full break-words rounded hover:bg-b-2",
86
83
  type: "button",
87
84
  onClick: (u) => a(k)(r + c)
@@ -95,21 +92,21 @@ const K = { class: "flex-1" }, Q = ["onClick"], U = { class: "before:bg-b-3 befo
95
92
  thickness: "2.5"
96
93
  }, null, 8, ["class"]),
97
94
  v(" " + S(c), 1)
98
- ], 8, X),
99
- $(m("div", Y, [
100
- (l(!0), f(h, null, x(d, (u) => (l(), y(B, {
95
+ ], 8, U),
96
+ O(f("div", X, [
97
+ (l(!0), m(_, null, x(d, (u) => (l(), y(B, {
101
98
  key: u.uid,
102
99
  class: "cookie text-xs",
103
100
  variable: { name: u.name, uid: u.uid },
104
101
  warningMessage: "Are you sure you want to delete this cookie?",
105
- onDelete: (ee) => z(u.uid)
102
+ onDelete: (Z) => z(u.uid)
106
103
  }, null, 8, ["variable", "onDelete"]))), 128))
107
104
  ], 512), [
108
- [O, C(r + c)]
105
+ [$, C(r + c)]
109
106
  ])
110
107
  ]))), 128))
111
108
  ], 512), [
112
- [O, C(r)]
109
+ [$, C(r)]
113
110
  ])
114
111
  ]))), 128))
115
112
  ]),
@@ -129,8 +126,8 @@ const K = { class: "flex-1" }, Q = ["onClick"], U = { class: "before:bg-b-3 befo
129
126
  }),
130
127
  s(R, { class: "flex-1" }, {
131
128
  default: n(() => [
132
- s(W),
133
- s(q)
129
+ s(P),
130
+ s(T)
134
131
  ]),
135
132
  _: 1
136
133
  })
@@ -143,5 +140,5 @@ const K = { class: "flex-1" }, Q = ["onClick"], U = { class: "before:bg-b-3 befo
143
140
  }
144
141
  });
145
142
  export {
146
- xe as default
143
+ be as default
147
144
  };
@@ -1,7 +1,6 @@
1
- import { defineComponent as b, ref as c, onMounted as C, openBlock as r, createBlock as f, withCtx as o, createVNode as a, createElementVNode as _, createElementBlock as d, Fragment as V, renderList as S, unref as u, createTextVNode as $, createSlots as h, createCommentVNode as I, toDisplayString as L, withKeys as B, nextTick as R } from "vue";
1
+ import { defineComponent as C, ref as c, onMounted as S, openBlock as r, createBlock as d, withCtx as o, createVNode as a, createElementVNode as _, createElementBlock as f, Fragment as V, renderList as w, unref as u, createTextVNode as h, createSlots as I, createCommentVNode as $, toDisplayString as L, withKeys as B, nextTick as R } from "vue";
2
2
  import A from "../../components/CodeInput/CodeInput.vue.js";
3
3
  import K from "../../components/Sidebar/Sidebar.vue.js";
4
- /* empty css */
5
4
  import M from "../../components/Sidebar/SidebarButton.vue.js";
6
5
  import T from "../../components/Sidebar/SidebarList.vue.js";
7
6
  import U from "../../components/Sidebar/SidebarListElement.vue.js";
@@ -9,53 +8,52 @@ import F from "../../components/SubpageHeader.vue.js";
9
8
  import H from "../../components/ViewLayout/ViewLayout.vue.js";
10
9
  import J from "../../components/ViewLayout/ViewLayoutContent.vue.js";
11
10
  import O from "../../components/ViewLayout/ViewLayoutSection.vue.js";
12
- import { useWorkspace as W } from "../../store/workspace.js";
11
+ import { environmentSchema as W } from "@scalar/oas-utils/entities/environment";
13
12
  import { nanoid as j } from "nanoid";
14
13
  import { useRouter as q } from "vue-router";
15
14
  import z from "./EnvironmentColors.vue.js";
16
- const G = { class: "flex-1" }, P = ["value"], Q = { class: "colors ml-auto" }, de = /* @__PURE__ */ b({
15
+ import { useWorkspace as G } from "../../store/store.js";
16
+ const P = { class: "flex-1" }, Q = ["value"], X = { class: "colors ml-auto" }, ve = /* @__PURE__ */ C({
17
17
  __name: "Environment",
18
- setup(X) {
19
- const v = q(), { environments: l, environmentMutators: s } = W(), e = c(null), p = c(null), m = c(!1);
18
+ setup(Y) {
19
+ const v = q(), { environments: l, environmentMutators: i } = G(), e = c(null), p = c(null), m = c(!1);
20
20
  function y() {
21
- const t = {
21
+ const t = W.parse({
22
22
  name: "New Environment",
23
23
  uid: j(),
24
24
  color: "grey",
25
25
  raw: JSON.stringify({ exampleKey: "exampleValue" }, null, 2),
26
26
  parsed: [],
27
27
  isDefault: !1
28
- };
29
- s.add(t), e.value = t.uid, v.push(e.value);
28
+ });
29
+ i.add(t), e.value = t.uid, v.push(e.value);
30
30
  }
31
31
  function E(t) {
32
- e.value && s.edit(e.value, "raw", t);
32
+ e.value && i.edit(e.value, "value", t);
33
33
  }
34
34
  const k = (t) => {
35
- s.delete(t), e.value === t && (e.value = null);
36
- }, g = (t) => {
37
- e.value && (l[e.value].color = t);
38
- }, x = () => {
35
+ i.delete(t), e.value === t && (e.value = null);
36
+ }, g = (t) => e.value && i.edit(e.value, "color", t), x = () => {
39
37
  v.currentRoute.value.params.environment === "default" && (e.value = l.default.uid);
40
- }, w = () => {
38
+ }, b = () => {
41
39
  e.value && !l[e.value].isDefault && (m.value = !0, R(() => {
42
40
  var t;
43
41
  (t = p.value) == null || t.focus();
44
42
  }));
45
43
  }, D = (t) => {
46
44
  const n = t.target.value;
47
- e.value && !l[e.value].isDefault && s.edit(e.value, "name", n);
45
+ e.value && !l[e.value].isDefault && i.edit(e.value, "name", n);
48
46
  };
49
- return C(x), (t, i) => (r(), f(F, null, {
47
+ return S(x), (t, s) => (r(), d(F, null, {
50
48
  default: o(() => [
51
49
  a(H, null, {
52
50
  default: o(() => [
53
51
  a(K, { title: "Environment" }, {
54
52
  content: o(() => [
55
- _("div", G, [
53
+ _("div", P, [
56
54
  a(T, null, {
57
55
  default: o(() => [
58
- (r(!0), d(V, null, S(u(l), (n) => (r(), f(U, {
56
+ (r(!0), f(V, null, w(u(l), (n) => (r(), d(U, {
59
57
  key: n.uid,
60
58
  class: "text-xs",
61
59
  variable: {
@@ -76,7 +74,7 @@ const G = { class: "flex-1" }, P = ["value"], Q = { class: "colors ml-auto" }, d
76
74
  button: o(() => [
77
75
  a(M, { click: y }, {
78
76
  title: o(() => [
79
- $("Add Environment")
77
+ h("Add Environment")
80
78
  ]),
81
79
  _: 1
82
80
  })
@@ -85,25 +83,25 @@ const G = { class: "flex-1" }, P = ["value"], Q = { class: "colors ml-auto" }, d
85
83
  }),
86
84
  a(J, { class: "flex-1" }, {
87
85
  default: o(() => [
88
- a(O, null, h({
86
+ a(O, null, I({
89
87
  default: o(() => [
90
- e.value ? (r(), f(A, {
88
+ e.value ? (r(), d(A, {
91
89
  key: 0,
92
- class: "px-2 py-2.5",
90
+ class: "pl-px pr-2 md:px-2 py-2.5",
93
91
  lineNumbers: "",
94
- modelValue: u(l)[e.value].raw,
92
+ modelValue: u(l)[e.value].value,
95
93
  "onUpdate:modelValue": E
96
- }, null, 8, ["modelValue"])) : I("", !0)
94
+ }, null, 8, ["modelValue"])) : $("", !0)
97
95
  ]),
98
96
  _: 2
99
97
  }, [
100
98
  e.value ? {
101
99
  name: "title",
102
100
  fn: o(() => [
103
- !m.value || u(l)[e.value].isDefault ? (r(), d("span", {
101
+ !m.value || u(l)[e.value].isDefault ? (r(), f("span", {
104
102
  key: 0,
105
- onDblclick: w
106
- }, L(u(l)[e.value].name), 33)) : (r(), d("input", {
103
+ onDblclick: b
104
+ }, L(u(l)[e.value].name), 33)) : (r(), f("input", {
107
105
  key: 1,
108
106
  ref_key: "nameInputRef",
109
107
  ref: p,
@@ -111,11 +109,11 @@ const G = { class: "flex-1" }, P = ["value"], Q = { class: "colors ml-auto" }, d
111
109
  spellcheck: "false",
112
110
  type: "text",
113
111
  value: u(l)[e.value].name,
114
- onBlur: i[0] || (i[0] = (n) => m.value = !1),
112
+ onBlur: s[0] || (s[0] = (n) => m.value = !1),
115
113
  onInput: D,
116
- onKeyup: i[1] || (i[1] = B((n) => m.value = !1, ["enter"]))
117
- }, null, 40, P)),
118
- _("div", Q, [
114
+ onKeyup: s[1] || (s[1] = B((n) => m.value = !1, ["enter"]))
115
+ }, null, 40, Q)),
116
+ _("div", X, [
119
117
  a(z, {
120
118
  activeColor: u(l)[e.value].color,
121
119
  onSelect: g
@@ -137,5 +135,5 @@ const G = { class: "flex-1" }, P = ["value"], Q = { class: "colors ml-auto" }, d
137
135
  }
138
136
  });
139
137
  export {
140
- de as default
138
+ ve as default
141
139
  };
@@ -1,17 +1,23 @@
1
- import type { WorkspaceStore } from '../../store/workspace.js';
1
+ import type { WorkspaceStore } from '../../store/index.js';
2
2
  import type { Router } from 'vue-router';
3
3
  declare const _default: import("vue").DefineComponent<__VLS_TypePropsToOption<{
4
4
  query: string;
5
- activeParsedEnvironments: WorkspaceStore["activeParsedEnvironments"];
6
- environments: WorkspaceStore["environments"];
5
+ activeEnvVariables: WorkspaceStore["activeEnvVariables"];
7
6
  router: Router;
7
+ dropdownPosition?: {
8
+ left: number;
9
+ top: number;
10
+ };
8
11
  }>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
9
12
  select: (variable: string) => void;
10
13
  }, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<__VLS_TypePropsToOption<{
11
14
  query: string;
12
- activeParsedEnvironments: WorkspaceStore["activeParsedEnvironments"];
13
- environments: WorkspaceStore["environments"];
15
+ activeEnvVariables: WorkspaceStore["activeEnvVariables"];
14
16
  router: Router;
17
+ dropdownPosition?: {
18
+ left: number;
19
+ top: number;
20
+ };
15
21
  }>>> & {
16
22
  onSelect?: ((variable: string) => any) | undefined;
17
23
  }, {}, {}>;
@@ -1 +1 @@
1
- {"version":3,"file":"EnvironmentVariableDropdown.vue.d.ts","sourceRoot":"","sources":["../../../src/views/Environment/EnvironmentVariableDropdown.vue"],"names":[],"mappings":"AAuHA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,mBAAmB,CAAA;AAQvD,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,YAAY,CAAA;;WAK/B,MAAM;8BACa,cAAc,CAAC,0BAA0B,CAAC;kBACtD,cAAc,CAAC,cAAc,CAAC;YACpC,MAAM;;;;WAHP,MAAM;8BACa,cAAc,CAAC,0BAA0B,CAAC;kBACtD,cAAc,CAAC,cAAc,CAAC;YACpC,MAAM;;;;AAqOhB,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":"EnvironmentVariableDropdown.vue.d.ts","sourceRoot":"","sources":["../../../src/views/Environment/EnvironmentVariableDropdown.vue"],"names":[],"mappings":"AA0HA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,SAAS,CAAA;AAK7C,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,YAAY,CAAA;;WAK/B,MAAM;wBACO,cAAc,CAAC,oBAAoB,CAAC;YAChD,MAAM;uBAEK;QAAE,IAAI,EAAE,MAAM,CAAC;QAAC,GAAG,EAAE,MAAM,CAAA;KAAE;;;;WAJzC,MAAM;wBACO,cAAc,CAAC,oBAAoB,CAAC;YAChD,MAAM;uBAEK;QAAE,IAAI,EAAE,MAAM,CAAC;QAAC,GAAG,EAAE,MAAM,CAAA;KAAE;;;;AAiPlD,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,71 +1,91 @@
1
- import { defineComponent as b, ref as E, computed as C, openBlock as n, createBlock as u, unref as s, withCtx as d, createElementBlock as a, Fragment as V, renderList as I, createElementVNode as c, normalizeClass as D, createTextVNode as p, toDisplayString as v, createVNode as S } from "vue";
2
- import { ScalarDropdown as z, ScalarDropdownItem as B, ScalarIcon as N } from "@scalar/components";
3
- import P from "fuse.js";
4
- const $ = { key: 0 }, j = ["onClick"], q = { class: "flex items-center gap-1.5 whitespace-nowrap" }, A = { class: "w-20 overflow-hidden text-ellipsis text-right" }, Q = /* @__PURE__ */ b({
1
+ import { defineComponent as B, ref as f, computed as O, openBlock as o, createBlock as m, unref as i, normalizeStyle as z, withCtx as v, createElementBlock as c, Fragment as D, renderList as N, createElementVNode as u, normalizeClass as P, createTextVNode as w, toDisplayString as h, createVNode as R } from "vue";
2
+ import { ScalarDropdown as $, ScalarButton as j, ScalarIcon as q } from "@scalar/components";
3
+ import { onClickOutside as A } from "@vueuse/core";
4
+ import F from "fuse.js";
5
+ import { parseEnvVariables as k } from "../../libs/environment-parser.js";
6
+ const I = { key: 0 }, T = ["onClick"], L = { class: "flex items-center gap-1.5 whitespace-nowrap" }, Q = { class: "w-20 overflow-hidden text-ellipsis text-right whitespace-nowrap" }, W = /* @__PURE__ */ B({
5
7
  __name: "EnvironmentVariableDropdown",
6
8
  props: {
7
9
  query: {},
8
- activeParsedEnvironments: {},
9
- environments: {},
10
- router: {}
10
+ activeEnvVariables: {},
11
+ router: {},
12
+ dropdownPosition: {}
11
13
  },
12
14
  emits: ["select"],
13
- setup(m, { emit: f }) {
14
- const r = m, h = f, l = E(!0), w = () => {
15
- const e = k.value.params.workspace;
16
- _(`/workspace/${e}/environment/default`), l.value = !1;
17
- }, { push: _, currentRoute: k } = r.router, g = new P(r.activeParsedEnvironments.value, {
15
+ setup(y, { emit: b }) {
16
+ const t = y, x = b, s = f(!0), a = f(null), _ = () => {
17
+ const e = V.value.params.workspace;
18
+ g(`/workspace/${e}/environment/default`), s.value = !1;
19
+ }, { push: g, currentRoute: V } = t.router, E = new F(k(t.activeEnvVariables.value), {
18
20
  keys: ["key", "value"]
19
- }), i = C(() => {
20
- const e = r.query;
21
+ }), p = O(() => {
22
+ const e = t.query;
21
23
  if (!e)
22
- return r.activeParsedEnvironments.value.slice(-4);
23
- const o = g.search(e);
24
- return o.length > 0 ? o.map((t) => t.item) : [];
25
- }), x = (e) => {
26
- h("select", e);
27
- }, y = (e) => "_scalarEnvId" in e ? `bg-${r.environments[e._scalarEnvId].color}` : "bg-grey";
28
- return (e, o) => (n(), u(s(z), {
29
- id: "env-dialog",
30
- class: "z-10 w-60 rounded border bg-b-1 p-1",
31
- open: l.value,
32
- static: ""
33
- }, {
34
- items: d(() => [
35
- i.value.length ? (n(), a("ul", $, [
36
- (n(!0), a(V, null, I(i.value, (t) => (n(), a("li", {
37
- key: t.key,
38
- class: "h-8 font-code text-3xs hover:bg-b-2 flex cursor-pointer items-center justify-between gap-1.5 rounded p-1.5 transition-colors duration-150",
39
- onClick: (F) => x(t.key)
40
- }, [
41
- c("div", q, [
42
- c("span", {
43
- class: D(["h-2.5 w-2.5 min-w-2.5 rounded-full", y(t)])
44
- }, null, 2),
45
- p(" " + v(t.key), 1)
24
+ return k(t.activeEnvVariables.value).slice(-4);
25
+ const l = E.search(e);
26
+ return l.length > 0 ? l.map((r) => r.item) : [];
27
+ }), C = (e) => {
28
+ x("select", e);
29
+ }, S = () => t.activeEnvVariables.value.map((e) => {
30
+ if (e.key === "color")
31
+ return `bg-${e.value}`;
32
+ });
33
+ return A(
34
+ a,
35
+ () => {
36
+ s.value = !1;
37
+ },
38
+ { ignore: [a] }
39
+ ), (e, l) => {
40
+ var r, d;
41
+ return o(), m(i($), {
42
+ ref_key: "dropdownRef",
43
+ ref: a,
44
+ class: "mt-2 z-10 min-w-60 rounded border bg-b-1 p-1 w-fit",
45
+ static: "",
46
+ staticOpen: s.value,
47
+ style: z({
48
+ left: ((r = e.dropdownPosition) == null ? void 0 : r.left) + "px",
49
+ top: ((d = e.dropdownPosition) == null ? void 0 : d.top) + "px"
50
+ }),
51
+ teleport: ".scalar-client"
52
+ }, {
53
+ items: v(() => [
54
+ p.value.length ? (o(), c("ul", I, [
55
+ (o(!0), c(D, null, N(p.value, (n) => (o(), c("li", {
56
+ key: n.key,
57
+ class: "h-8 font-code text-xxs hover:bg-b-2 flex cursor-pointer items-center justify-between gap-1.5 rounded p-1.5 transition-colors duration-150",
58
+ onClick: (G) => C(n.key)
59
+ }, [
60
+ u("div", L, [
61
+ u("span", {
62
+ class: P(["h-2.5 w-2.5 min-w-2.5 rounded-full", S()])
63
+ }, null, 2),
64
+ w(" " + h(n.key), 1)
65
+ ]),
66
+ u("span", Q, h(n.value), 1)
67
+ ], 8, T))), 128))
68
+ ])) : (o(), m(i(j), {
69
+ key: 1,
70
+ class: "font-code text-xxs hover:bg-b-2 flex h-8 w-full justify-start gap-2 px-1.5 transition-colors duration-150",
71
+ variant: "secondary",
72
+ onClick: _
73
+ }, {
74
+ default: v(() => [
75
+ R(i(q), {
76
+ class: "w-2.5",
77
+ icon: "Add"
78
+ }),
79
+ w(" Add Variable ")
46
80
  ]),
47
- c("span", A, v(t.value), 1)
48
- ], 8, j))), 128))
49
- ])) : (n(), u(s(B), {
50
- key: 1,
51
- class: "font-code !text-3xs hover:bg-b-2 flex h-8 w-full justify-start gap-2 !px-1.5 transition-colors duration-150",
52
- onClick: w
53
- }, {
54
- default: d(() => [
55
- S(s(N), {
56
- class: "w-2",
57
- icon: "Add",
58
- size: "xs"
59
- }),
60
- p(" Add variable ")
61
- ]),
62
- _: 1
63
- }))
64
- ]),
65
- _: 1
66
- }, 8, ["open"]));
81
+ _: 1
82
+ }))
83
+ ]),
84
+ _: 1
85
+ }, 8, ["staticOpen", "style"]);
86
+ };
67
87
  }
68
88
  });
69
89
  export {
70
- Q as default
90
+ W as default
71
91
  };
@@ -1 +1 @@
1
- {"version":3,"file":"Request.vue.d.ts","sourceRoot":"","sources":["../../../src/views/Request/Request.vue"],"names":[],"mappings":";;cA2hB8B,MAAM;aAAO,MAAM;;;;cAAnB,MAAM;aAAO,MAAM;;;AAkzBjD,wBAMG"}
1
+ {"version":3,"file":"Request.vue.d.ts","sourceRoot":"","sources":["../../../src/views/Request/Request.vue"],"names":[],"mappings":";;cAmL8B,MAAM;aAAO,MAAM;;;;cAAnB,MAAM;aAAO,MAAM;;;AAiQjD,wBAMG"}
@@ -1,7 +1,7 @@
1
1
  import o from "./Request.vue2.js";
2
2
  /* empty css */
3
3
  import t from "../../_virtual/_plugin-vue_export-helper.js";
4
- const f = /* @__PURE__ */ t(o, [["__scopeId", "data-v-fa353420"]]);
4
+ const m = /* @__PURE__ */ t(o, [["__scopeId", "data-v-54a2405d"]]);
5
5
  export {
6
- f as default
6
+ m as default
7
7
  };