@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
@@ -0,0 +1,7 @@
1
+ import o from "./RequestSidebar.vue2.js";
2
+ /* empty css */
3
+ import t from "../../_virtual/_plugin-vue_export-helper.js";
4
+ const f = /* @__PURE__ */ t(o, [["__scopeId", "data-v-0a67e4bf"]]);
5
+ export {
6
+ f as default
7
+ };
@@ -0,0 +1,179 @@
1
+ import { defineComponent as A, watch as j, onMounted as G, onBeforeUnmount as J, withDirectives as Q, openBlock as a, createBlock as l, unref as e, normalizeClass as m, createSlots as X, withCtx as r, createElementVNode as c, createVNode as d, isRef as Y, withKeys as f, withModifiers as u, createElementBlock as k, Fragment as y, renderList as C, createTextVNode as D, toDisplayString as Z, createCommentVNode as _, vShow as ee } from "vue";
2
+ import te from "../../components/HttpMethod/HttpMethod.vue.js";
3
+ import { useSearch as oe } from "../../components/Search/useSearch.js";
4
+ import se from "../../components/Sidebar/SidebarButton.vue.js";
5
+ import { dragHandlerFactory as re } from "./handle-drag.js";
6
+ import { ScalarSearchInput as ae, ScalarSearchResultList as ie, ScalarSearchResultItem as ne, ScalarIcon as I } from "@scalar/components";
7
+ import le from "./RequestSidebarItem.vue.js";
8
+ import de from "../../components/Sidebar/Sidebar.vue.js";
9
+ import ue from "./components/WorkspaceDropdown.vue.js";
10
+ import { useSidebar as pe } from "../../hooks/useSidebar.js";
11
+ import { useWorkspace as me } from "../../store/store.js";
12
+ import { hotKeyBus as $ } from "../../libs/event-busses/hot-keys-bus.js";
13
+ import { commandPaletteBus as x } from "../../libs/event-busses/command-palette-bus.js";
14
+ const ce = { class: "search-button-fade sticky px-3 py-2.5 top-0 z-50" }, $e = /* @__PURE__ */ A({
15
+ __name: "RequestSidebar",
16
+ props: {
17
+ showSidebar: { type: Boolean },
18
+ isReadonly: { type: Boolean }
19
+ },
20
+ emits: ["update:showSidebar", "newTab"],
21
+ setup(B, { emit: V }) {
22
+ const F = B, h = V, b = me(), {
23
+ activeWorkspaceCollections: E,
24
+ activeRequest: q,
25
+ activeWorkspaceRequests: N,
26
+ findRequestParents: P
27
+ } = b, { handleDragEnd: T, isDroppable: z } = re(b), { collapsedSidebarFolders: K, setCollapsedSidebarFolder: U } = pe();
28
+ j(
29
+ q,
30
+ (s) => {
31
+ s && P(s).forEach(
32
+ (t) => U(t, !0)
33
+ );
34
+ },
35
+ { immediate: !0 }
36
+ );
37
+ const {
38
+ searchText: p,
39
+ searchResultsWithPlaceholderResults: S,
40
+ selectedSearchResult: v,
41
+ onSearchResultClick: W,
42
+ fuseSearch: H,
43
+ searchInputRef: R,
44
+ searchResultRefs: M,
45
+ navigateSearchResults: w,
46
+ selectSearchResult: L
47
+ } = oe(), g = (s) => {
48
+ var t;
49
+ s.toggleSidebar && h("update:showSidebar", F.showSidebar), s.openCommandPalette && (s.openCommandPalette.preventDefault(), x.emit()), s.focusRequestSearch && ((t = R.value) == null || t.focus());
50
+ };
51
+ return G(() => {
52
+ $.on(g);
53
+ }), J(() => {
54
+ $.off(g);
55
+ }), (s, t) => Q((a(), l(e(de), {
56
+ class: m([s.showSidebar ? "sidebar-active-width" : ""]),
57
+ showSidebar: s.showSidebar,
58
+ "onUpdate:showSidebar": t[7] || (t[7] = (o) => s.$emit("update:showSidebar", o))
59
+ }, X({
60
+ content: r(() => [
61
+ c("div", ce, [
62
+ d(e(ae), {
63
+ ref_key: "searchInputRef",
64
+ ref: R,
65
+ modelValue: e(p),
66
+ "onUpdate:modelValue": t[0] || (t[0] = (o) => Y(p) ? p.value = o : null),
67
+ sidebar: "",
68
+ onInput: e(H),
69
+ onKeydown: [
70
+ t[1] || (t[1] = f(u((o) => e(w)("down"), ["stop"]), ["down"])),
71
+ t[2] || (t[2] = f(u((o) => e(L)(), ["stop"]), ["enter"])),
72
+ t[3] || (t[3] = f(u((o) => e(w)("up"), ["stop"]), ["up"]))
73
+ ]
74
+ }, null, 8, ["modelValue", "onInput"])
75
+ ]),
76
+ c("div", {
77
+ class: m(["custom-scroll flex flex-1 flex-col overflow-visible px-3 pb-3 pt-0", {
78
+ "pb-14": !s.isReadonly
79
+ }]),
80
+ onDragenter: t[5] || (t[5] = u(() => {
81
+ }, ["prevent"])),
82
+ onDragover: t[6] || (t[6] = u(() => {
83
+ }, ["prevent"]))
84
+ }, [
85
+ e(p) ? (a(), l(e(ie), {
86
+ key: 0,
87
+ class: "gap-px custom-scroll",
88
+ noResults: !e(S).length
89
+ }, {
90
+ default: r(() => [
91
+ (a(!0), k(y, null, C(e(S), (o, i) => (a(), l(e(ne), {
92
+ id: `#search-input-${o.item.id}`,
93
+ key: o.refIndex,
94
+ ref_for: !0,
95
+ ref: (n) => e(M)[i] = n,
96
+ active: e(v) === i,
97
+ class: "px-2",
98
+ onClick: (n) => e(W)(o),
99
+ onFocus: (n) => v.value = i
100
+ }, {
101
+ addon: r(() => [
102
+ d(te, {
103
+ class: "font-bold",
104
+ method: o.item.httpVerb ?? "get"
105
+ }, null, 8, ["method"])
106
+ ]),
107
+ default: r(() => [
108
+ D(Z(o.item.title) + " ", 1)
109
+ ]),
110
+ _: 2
111
+ }, 1032, ["id", "active", "onClick", "onFocus"]))), 128))
112
+ ]),
113
+ _: 1
114
+ }, 8, ["noResults"])) : (a(!0), k(y, { key: 1 }, C(e(E), (o) => {
115
+ var i;
116
+ return a(), l(le, {
117
+ key: o.uid,
118
+ isDraggable: !s.isReadonly && ((i = o.info) == null ? void 0 : i.title) !== "Drafts",
119
+ isDroppable: e(z),
120
+ parentUids: [],
121
+ uid: o.uid,
122
+ onNewTab: t[4] || (t[4] = (n, O) => h("newTab", { name: n, uid: O })),
123
+ onOnDragEnd: e(T)
124
+ }, {
125
+ leftIcon: r(() => [
126
+ d(e(I), {
127
+ class: "text-sidebar-c-2 text-sm group-hover:hidden",
128
+ icon: "CodeFolder",
129
+ size: "sm",
130
+ thickness: "2"
131
+ }),
132
+ c("div", {
133
+ class: m({
134
+ "rotate-90": e(K)[o.uid]
135
+ })
136
+ }, [
137
+ d(e(I), {
138
+ class: "text-c-3 hidden text-sm group-hover:block",
139
+ icon: "ChevronRight",
140
+ size: "sm"
141
+ })
142
+ ], 2)
143
+ ]),
144
+ _: 2
145
+ }, 1032, ["isDraggable", "isDroppable", "uid", "onOnDragEnd"]);
146
+ }), 128))
147
+ ], 34)
148
+ ]),
149
+ button: r(() => [
150
+ s.isReadonly ? _("", !0) : (a(), l(se, {
151
+ key: 0,
152
+ class: m({
153
+ "empty-sidebar-item": e(N).length === 1
154
+ }),
155
+ click: e(x).emit
156
+ }, {
157
+ title: r(() => [
158
+ D("Add Item")
159
+ ]),
160
+ _: 1
161
+ }, 8, ["class", "click"]))
162
+ ]),
163
+ _: 2
164
+ }, [
165
+ s.isReadonly ? void 0 : {
166
+ name: "header",
167
+ fn: r(() => [
168
+ d(e(ue))
169
+ ]),
170
+ key: "0"
171
+ }
172
+ ]), 1032, ["class", "showSidebar"])), [
173
+ [ee, s.showSidebar]
174
+ ]);
175
+ }
176
+ });
177
+ export {
178
+ $e as default
179
+ };
@@ -1,7 +1,4 @@
1
1
  import { type DraggableProps, type DraggingItem, type HoveredItem } from '@scalar/draggable';
2
- import type { Collection } from '@scalar/oas-utils/entities/workspace/collection';
3
- import type { Folder } from '@scalar/oas-utils/entities/workspace/folder';
4
- import type { Request, RequestExample } from '@scalar/oas-utils/entities/workspace/spec';
5
2
  declare function __VLS_template(): Readonly<{
6
3
  leftIcon(): void;
7
4
  }> & {
@@ -20,9 +17,10 @@ declare const __VLS_component: import("vue").DefineComponent<__VLS_WithDefaults<
20
17
  * @default false
21
18
  */
22
19
  isDroppable?: DraggableProps["isDroppable"];
23
- /** Both inidicate the level and provide a way to traverse upwards */
20
+ /** Both indicate the level and provide a way to traverse upwards */
24
21
  parentUids: string[];
25
- item: Collection | Folder | Request | RequestExample;
22
+ /** uid of a Collection, Tag, Request or RequestExample */
23
+ uid: string;
26
24
  }>, {
27
25
  isDraggable: boolean;
28
26
  isDroppable: boolean;
@@ -43,9 +41,10 @@ declare const __VLS_component: import("vue").DefineComponent<__VLS_WithDefaults<
43
41
  * @default false
44
42
  */
45
43
  isDroppable?: DraggableProps["isDroppable"];
46
- /** Both inidicate the level and provide a way to traverse upwards */
44
+ /** Both indicate the level and provide a way to traverse upwards */
47
45
  parentUids: string[];
48
- item: Collection | Folder | Request | RequestExample;
46
+ /** uid of a Collection, Tag, Request or RequestExample */
47
+ uid: string;
49
48
  }>, {
50
49
  isDraggable: boolean;
51
50
  isDroppable: boolean;
@@ -1 +1 @@
1
- {"version":3,"file":"RequestSidebarItem.vue.d.ts","sourceRoot":"","sources":["../../../src/views/Request/RequestSidebarItem.vue"],"names":[],"mappings":"AA6fA,OAAO,EAEL,KAAK,cAAc,EACnB,KAAK,YAAY,EACjB,KAAK,WAAW,EACjB,MAAM,mBAAmB,CAAA;AAC1B,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,iDAAiD,CAAA;AACjF,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,6CAA6C,CAAA;AACzE,OAAO,KAAK,EACV,OAAO,EACP,cAAc,EACf,MAAM,2CAA2C,CAAA;AAgQlD,iBAAS,cAAc;gBA5NT,IAAI;;gBAAJ,IAAI;EA47BjB;AACD,QAAA,MAAM,eAAe;IAx9BjB;;;;OAIG;kBACW,OAAO;IACrB;;;;OAIG;kBACW,cAAc,CAAC,aAAa,CAAC;IAC3C,qEAAqE;gBACzD,MAAM,EAAE;UACd,UAAU,GAAG,MAAM,GAAG,OAAO,GAAG,cAAc;;;;;;;;;IAdpD;;;;OAIG;kBACW,OAAO;IACrB;;;;OAIG;kBACW,cAAc,CAAC,aAAa,CAAC;IAC3C,qEAAqE;gBACzD,MAAM,EAAE;UACd,UAAU,GAAG,MAAM,GAAG,OAAO,GAAG,cAAc;;;;;;;;;;iBATtC,OAAO;MA09BvB,CAAC;wBACkB,uBAAuB,CAAC,OAAO,eAAe,EAAE,UAAU,CAAC,OAAO,cAAc,CAAC,CAAC;AAAvG,wBAAwG;AAOxG,KAAK,kBAAkB,CAAC,CAAC,EAAE,CAAC,IAAI;KAC1B,CAAC,IAAI,MAAM,IAAI,CAAC,CAAC,EAAE,MAAM,CAAC,CAAC,GAAG,CAAC,SAAS,MAAM,CAAC,GAC7C,cAAc,CAAC,CAAC,CAAC,CAAC,CAAC,GAAG;QAAE,OAAO,EAAE,CAAC,CAAC,CAAC,CAAC,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,QAAQ,EAAE,IAAI,CAAA;KAAE;CACzD,CAAC"}
@@ -2,7 +2,7 @@ import t from "./RequestSidebarItem.vue2.js";
2
2
  /* empty css */
3
3
  /* empty css */
4
4
  import o from "../../_virtual/_plugin-vue_export-helper.js";
5
- const a = /* @__PURE__ */ o(t, [["__scopeId", "data-v-fc61cd81"]]);
5
+ const a = /* @__PURE__ */ o(t, [["__scopeId", "data-v-1e316c86"]]);
6
6
  export {
7
7
  a as default
8
8
  };