@scalar/api-client 2.0.64 → 2.1.1

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 +51 -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 +82 -73
  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,292 +1,321 @@
1
- import { defineComponent as he, useCssVars as Ue, computed as o, ref as J, resolveComponent as we, openBlock as f, createElementBlock as I, Fragment as Q, createElementVNode as l, normalizeClass as g, unref as s, createVNode as d, withCtx as u, createBlock as h, withModifiers as X, toDisplayString as Y, createCommentVNode as y, createTextVNode as D, renderSlot as ye, withDirectives as De, renderList as ke, vShow as qe, withKeys as $e, pushScopeId as Re, popScopeId as Ce } from "vue";
2
- import Se from "../../components/Sidebar/Actions/DeleteSidebarListElement.vue.js";
3
- import { PathId as E } from "../../router.js";
4
- import { useWorkspace as xe } from "../../store/workspace.js";
5
- import { useModal as Z, ScalarContextMenu as _, ScalarIcon as Me, ScalarModal as ee, ScalarTextField as Te, ScalarButton as te } from "@scalar/components";
6
- import { Draggable as Ie } from "@scalar/draggable";
7
- import { useRouter as Ee, RouterLink as Ne } from "vue-router";
8
- import S from "./RequestSidebarItemMenu.vue.js";
9
- import ze from "../../components/HttpMethod/HttpMethod.vue.js";
10
- import { useSidebar as Ve } from "../../hooks/useSidebar.js";
11
- import { getModifiers as Oe } from "../../libs/event-busses/hot-keys-bus.js";
12
- const Be = (U) => (Re("data-v-fc61cd81"), U = U(), Ce(), U), Fe = { class: "flex flex-row gap-1 items-center" }, je = { class: "relative" }, Pe = { class: "flex items-start" }, Ke = { class: "z-10 flex h-5 items-center justify-center max-w-[14px]" }, Le = { class: "flex flex-1 flex-row justify-between editable-sidebar-hover" }, We = { class: "relative flex h-fit" }, Ae = /* @__PURE__ */ Be(() => /* @__PURE__ */ l("span", null, " ", -1)), He = { key: 2 }, Ge = { class: "flex gap-3" }, ie = "hover:bg-sidebar-active-b indent-padding-left", lt = /* @__PURE__ */ he({
1
+ import { defineComponent as pe, useCssVars as me, computed as c, ref as F, resolveComponent as fe, openBlock as d, createElementBlock as A, Fragment as Y, createElementVNode as s, normalizeClass as v, unref as i, createVNode as m, withCtx as p, createBlock as f, withModifiers as ce, toDisplayString as L, createCommentVNode as w, createTextVNode as M, renderSlot as ve, withDirectives as be, renderList as ge, vShow as he, pushScopeId as we, popScopeId as xe } from "vue";
2
+ import ye from "../../components/Sidebar/Actions/DeleteSidebarListElement.vue.js";
3
+ import ke from "../../components/Sidebar/Actions/RenameSidebarListElement.vue.js";
4
+ import { PathId as S } from "../../router.js";
5
+ import { useModal as W, ScalarContextMenu as H, ScalarIcon as G, ScalarButton as Ue, ScalarModal as J } from "@scalar/components";
6
+ import { Draggable as De } from "@scalar/draggable";
7
+ import { useRouter as Re, RouterLink as Te } from "vue-router";
8
+ import D from "./RequestSidebarItemMenu.vue.js";
9
+ import $e from "../../components/HttpMethod/HttpMethod.vue.js";
10
+ import { useSidebar as qe } from "../../hooks/useSidebar.js";
11
+ import { getModifiers as Ce } from "../../libs/event-busses/hot-keys-bus.js";
12
+ import { useWorkspace as Me } from "../../store/store.js";
13
+ import { commandPaletteBus as Se } from "../../libs/event-busses/command-palette-bus.js";
14
+ const Q = (x) => (we("data-v-1e316c86"), x = x(), xe(), x), Ie = { class: "flex flex-row gap-1 items-center" }, Ee = { class: "relative" }, Ne = { class: "flex items-start" }, ze = { class: "z-10 flex h-5 items-center justify-center max-w-[14px]" }, Be = { class: "flex flex-1 flex-row justify-between editable-sidebar-hover" }, Oe = { class: "relative flex h-fit" }, je = /* @__PURE__ */ Q(() => /* @__PURE__ */ s("span", null, " ", -1)), Pe = /* @__PURE__ */ Q(() => /* @__PURE__ */ s("span", null, "Add Request", -1)), K = "hover:bg-sidebar-active-b indent-padding-left", _e = /* @__PURE__ */ pe({
13
15
  __name: "RequestSidebarItem",
14
16
  props: {
15
17
  isDraggable: { type: Boolean, default: !1 },
16
18
  isDroppable: { type: [Boolean, Function], default: !1 },
17
19
  parentUids: {},
18
- item: {}
20
+ uid: {}
19
21
  },
20
22
  emits: ["onDragEnd", "newTab"],
21
- setup(U, { emit: se }) {
22
- Ue((e) => ({
23
- "107d727c": de.value,
24
- "11a7c088": ue.value
23
+ setup(x, { emit: X }) {
24
+ me((e) => ({
25
+ efb8c1e6: le.value,
26
+ "1bacdf91": ie.value
25
27
  }));
26
- const t = U, re = se, {
27
- activeRequest: N,
28
- activeRouterParams: x,
29
- activeWorkspace: w,
30
- collections: z,
31
- folders: le,
32
- isReadOnly: n,
33
- requests: V,
34
- requestExamples: M,
35
- collectionMutators: O,
36
- folderMutators: B,
37
- requestMutators: F,
38
- requestExampleMutators: j,
39
- router: ne
40
- } = xe(), { replace: P } = Ee(), { collapsedSidebarFolders: K, toggleSidebarFolder: ae } = Ve(), oe = o(() => "childUids" in t.item), L = o(() => "spec" in t.item), W = o(() => "summary" in t.item), de = o(() => t.parentUids.length ? n.value ? `${(t.parentUids.length - 1) * 12}px` : `${t.parentUids.length * 12}px` : "12px"), ue = o(() => t.parentUids.length ? n.value ? `${(t.parentUids.length - 1) * 12}px` : `${t.parentUids.length * 12}px` : "0px"), k = (e) => {
41
- var i;
42
- return "spec" in e ? (i = e.spec.info) == null ? void 0 : i.title : "summary" in e ? e.summary || e.path : "name" in e ? e.name : "";
43
- }, me = o(() => ("requestUid" in t.item ? V[t.item.requestUid] : t.item).method), fe = o(
28
+ const n = x, Z = X, {
29
+ activeRequest: I,
30
+ activeRouterParams: R,
31
+ activeWorkspace: b,
32
+ collections: T,
33
+ tags: _,
34
+ isReadOnly: o,
35
+ requests: E,
36
+ requestExamples: $,
37
+ collectionMutators: N,
38
+ tagMutators: z,
39
+ requestMutators: B,
40
+ requestExampleMutators: O,
41
+ router: ee
42
+ } = Me(), { replace: j } = Re(), { collapsedSidebarFolders: P, toggleSidebarFolder: te } = qe(), l = c(() => {
43
+ var u, U;
44
+ const e = T[n.uid], t = _[n.uid], r = E[n.uid], a = $[n.uid];
45
+ return e ? {
46
+ title: ((u = e.info) == null ? void 0 : u.title) ?? "Unknown title",
47
+ entity: e,
48
+ resourceTitle: "Collection",
49
+ children: e.children,
50
+ warning: "This cannot be undone. You’re about to delete the collection and all folders andrequests inside it.",
51
+ rename: () => N.edit(e.uid, "info.title", g.value),
52
+ delete: () => N.delete(e, b.value)
53
+ } : t ? {
54
+ title: t.name,
55
+ entity: t,
56
+ resourceTitle: "Tag",
57
+ children: t.children,
58
+ warning: "This cannot be undone. You’re about to delete the tag and all requests inside it",
59
+ rename: () => z.edit(t.uid, "name", g.value),
60
+ delete: () => z.delete(t, n.parentUids[0])
61
+ } : r ? {
62
+ title: r.summary ?? [r.method, r.path].join(" - "),
63
+ link: `/workspace/${b.value.uid}/request/${r.uid}`,
64
+ method: r.method,
65
+ entity: r,
66
+ resourceTitle: "Request",
67
+ warning: "This cannot be undone. You’re about to delete the request.",
68
+ children: r.examples,
69
+ rename: () => B.edit(r.uid, "summary", g.value),
70
+ delete: () => B.delete(r, n.parentUids[0])
71
+ } : {
72
+ title: a.name,
73
+ link: `/workspace/${b.value.uid}/request/${a.requestUid}/examples/${a.uid}`,
74
+ method: (U = E[a.requestUid]) == null ? void 0 : U.method,
75
+ entity: a,
76
+ resourceTitle: "Example",
77
+ children: [],
78
+ rename: () => O.edit(a.uid, "name", g.value),
79
+ delete: () => O.delete(a)
80
+ };
81
+ }), q = c(
82
+ () => l.value.entity.type === "collection" && l.value.title === "Drafts"
83
+ ), le = c(() => n.parentUids.length ? o.value ? `${(n.parentUids.length - 1) * 12}px` : `${n.parentUids.length * 12}px` : "12px"), ie = c(() => n.parentUids.length ? o.value ? `${(n.parentUids.length - 1) * 12}px` : `${n.parentUids.length * 12}px` : "0px"), ae = c(
44
84
  () => {
45
85
  var e;
46
- return K[t.item.uid] || ((e = N.value) == null ? void 0 : e.uid) === t.item.uid && t.item.childUids.length > 1;
86
+ return P[n.uid] || ((e = I.value) == null ? void 0 : e.uid) === n.uid && l.value.entity.examples.length > 1;
47
87
  }
48
- ), A = () => "requestUid" in t.item ? `/workspace/${w.value.uid}/request/${t.item.requestUid}/examples/${t.item.uid}` : `/workspace/${w.value.uid}/request/${t.item.uid}`, pe = o(
49
- () => x.value[E.Request] === "default" && N.value.uid === t.item.uid
50
- ), T = J(null), H = o(() => {
51
- let e = 0.5, i = 0.5;
52
- if (!T.value) return { ceiling: e, floor: i };
53
- const { draggingItem: b } = T.value;
54
- return !z[b == null ? void 0 : b.id] && L.value ? (e = 1, i = 0) : oe.value && !W.value && !L.value && (e = 0.8, i = 0.2), { ceiling: e, floor: i };
55
- }), ce = (e, i) => !(w.value.isReadOnly || M[i.id] || z[e.id]), p = J(""), q = Z(), v = Z(), G = () => {
56
- "summary" in t.item ? F.edit(t.item.uid, "summary", p.value) : "requestUid" in t.item ? j.edit(t.item.uid, "name", p.value) : "spec" in t.item ? O.edit(t.item.uid, "spec.info.title", p.value) : B.edit(t.item.uid, "name", p.value), q.hide();
57
- }, $ = () => {
58
- p.value = k(t.item) || "", q.show();
59
- }, ve = () => {
60
- "requestUid" in t.item ? (j.delete(t.item), x.value[E.Examples] === t.item.uid && P(`/workspace/${w.value}/request/default`)) : "summary" in t.item ? (F.delete(
61
- t.item,
62
- t.parentUids[t.parentUids.length - 1]
63
- ), x.value[E.Request] === t.item.uid && P(`/workspace/${w.value.uid}/request/default`)) : "spec" in t.item ? O.delete(t.item) : "name" in t.item && B.delete(
64
- t.item,
65
- t.parentUids[t.parentUids.length - 1]
66
- );
67
- }, be = o(() => {
68
- var e;
69
- return "summary" in t.item ? t.item.summary || "" : "name" in t.item ? t.item.name || "" : "spec" in t.item && ((e = t.item.spec.info) == null ? void 0 : e.title) || "";
70
- }), c = o(() => "requestUid" in t.item ? "Example" : "summary" in t.item ? "Request" : "spec" in t.item ? "Collection" : "Folder"), ge = (e, i) => {
71
- e && (Oe(["default"]).some((R) => e[R]) ? re("newTab", k(i) || "", i.uid) : ne.push(A()));
88
+ ), ne = c(
89
+ () => {
90
+ var e;
91
+ return R.value[S.Request] === "default" && ((e = I.value) == null ? void 0 : e.uid) === n.uid;
92
+ }
93
+ ), C = F(null), V = c(() => {
94
+ let e = 0.5, t = 0.5;
95
+ if (!C.value) return { ceiling: e, floor: t };
96
+ const { draggingItem: r } = C.value;
97
+ return !T[r == null ? void 0 : r.id] && l.value.entity.type === "collection" ? (e = 1, t = 0) : l.value.entity.type === "tag" && (e = 0.8, t = 0.2), { ceiling: e, floor: t };
98
+ }), re = (e, t) => !(b.value.isReadOnly || $[t.id] || T[e.id]), g = F(""), y = W(), h = W(), se = (e) => {
99
+ g.value = e, l.value.rename(), y.hide();
100
+ }, k = () => {
101
+ g.value = l.value.title || "", y.show();
102
+ }, oe = () => {
103
+ l.value.delete(), R.value[S.Request] === n.uid && j(`/workspace/${b.value.uid}/request/default`), R.value[S.Examples] === n.uid && j(`/workspace/${b.value}/request/default`);
104
+ }, ue = (e, t) => {
105
+ e && (Ce(["default"]).some((u) => e[u]) ? Z("newTab", t.title || "", t.entity.uid) : t.link && ee.push(t.link));
72
106
  };
73
- return (e, i) => {
74
- const b = we("RequestSidebarItem", !0);
75
- return f(), I(Q, null, [
76
- l("div", {
77
- class: g(["relative flex flex-row", [
78
- s(n) && e.parentUids.length > 1 || !s(n) && e.parentUids.length ? "before:bg-b-3 before:absolute before:left-[calc(.75rem_+_.5px)] before:top-0 before:z-10 before:h-[calc(100%_+_.5px)] last:before:h-full before:w-[.5px] mb-[.5px] last:mb-0 indent-border-line-offset" : ""
107
+ function de() {
108
+ Se.emit({
109
+ commandName: "Create Request",
110
+ metaData: {
111
+ itemUid: n.uid,
112
+ parentUid: n.parentUids[0]
113
+ }
114
+ });
115
+ }
116
+ return (e, t) => {
117
+ const r = fe("RequestSidebarItem", !0);
118
+ return d(), A(Y, null, [
119
+ s("div", {
120
+ class: v(["relative flex flex-row", [
121
+ i(o) && e.parentUids.length > 1 || !i(o) && e.parentUids.length ? "before:bg-b-3 before:absolute before:left-[calc(.75rem_+_.5px)] before:top-0 before:z-10 before:h-[calc(100%_+_.5px)] last:before:h-full before:w-[.5px] mb-[.5px] last:mb-0 indent-border-line-offset" : ""
79
122
  ]])
80
123
  }, [
81
- d(s(Ie), {
82
- id: e.item.uid,
124
+ m(i(De), {
125
+ id: l.value.entity.uid,
83
126
  ref_key: "draggableRef",
84
- ref: T,
85
- ceiling: H.value.ceiling,
127
+ ref: C,
128
+ ceiling: V.value.ceiling,
86
129
  class: "flex flex-1 flex-col gap-[.5px] text-sm",
87
- floor: H.value.floor,
130
+ floor: V.value.floor,
88
131
  isDraggable: e.isDraggable,
89
132
  isDroppable: e.isDroppable,
90
133
  parentIds: e.parentUids,
91
- onOnDragEnd: i[7] || (i[7] = (...m) => e.$emit("onDragEnd", ...m))
134
+ onOnDragEnd: t[9] || (t[9] = (...a) => e.$emit("onDragEnd", ...a))
92
135
  }, {
93
- default: u(() => {
94
- var m, R;
95
- return [
96
- "summary" in e.item || "requestUid" in e.item ? (f(), h(s(Ne), {
97
- key: 0,
98
- class: "no-underline",
99
- to: A(),
100
- onClick: i[2] || (i[2] = X(
101
- (r) => ge(r, e.item),
102
- ["prevent"]
103
- ))
104
- }, {
105
- default: u(({ isExactActive: r }) => [
106
- d(s(_), { disabled: s(n) }, {
107
- trigger: u(() => [
108
- l("div", {
109
- class: g(["group relative flex min-h-8 cursor-pointer flex-row items-start justify-between gap-2 py-1.5 pr-2 rounded editable-sidebar-hover w-full", [
110
- ie,
111
- r || pe.value ? "bg-sidebar-active-b text-sidebar-active-c transition-none" : "text-sidebar-c-2"
112
- ]]),
113
- tabindex: "0"
114
- }, [
115
- l("span", {
116
- class: g(["z-10 font-medium w-full pl-2 word-break-break-word", {
117
- "editable-sidebar-hover-item": !s(n)
118
- }])
119
- }, Y(k(e.item)), 3),
120
- l("div", Fe, [
121
- l("div", je, [
122
- s(n) ? y("", !0) : (f(), h(S, {
123
- key: 0,
124
- item: e.item,
125
- parentUids: e.parentUids,
126
- resourceTitle: c.value,
127
- onDelete: i[0] || (i[0] = (a) => s(v).show()),
128
- onRename: $
129
- }, null, 8, ["item", "parentUids", "resourceTitle"]))
130
- ]),
131
- l("span", Pe, [
132
- D("   "),
133
- d(s(ze), {
134
- class: "font-bold",
135
- method: me.value
136
- }, null, 8, ["method"])
137
- ])
138
- ])
139
- ], 2)
140
- ]),
141
- content: u(() => [
142
- d(S, {
143
- item: e.item,
144
- parentUids: e.parentUids,
145
- resourceTitle: c.value,
146
- static: "",
147
- onDelete: i[1] || (i[1] = (a) => s(v).show()),
148
- onRename: $
149
- }, null, 8, ["item", "parentUids", "resourceTitle"])
150
- ]),
151
- _: 2
152
- }, 1032, ["disabled"])
153
- ]),
154
- _: 1
155
- }, 8, ["to"])) : !s(n) || e.parentUids.length ? (f(), h(s(_), {
156
- key: 1,
157
- disabled: s(n) || ((R = (m = e.item.spec) == null ? void 0 : m.info) == null ? void 0 : R.title) === "Drafts"
158
- }, {
159
- trigger: u(() => {
160
- var r, a;
161
- return [
162
- l("button", {
163
- class: g(["hover:bg-b-2 group relative flex w-full flex-row justify-start gap-1.5 rounded p-1.5 z-[1]", ie]),
164
- type: "button",
165
- onClick: i[4] || (i[4] = (C) => s(ae)(e.item.uid))
136
+ default: p(() => [
137
+ l.value.link ? (d(), f(i(Te), {
138
+ key: 0,
139
+ class: "no-underline",
140
+ to: l.value.link,
141
+ onClick: t[2] || (t[2] = ce(
142
+ (a) => ue(a, l.value),
143
+ ["prevent"]
144
+ ))
145
+ }, {
146
+ default: p(({ isExactActive: a }) => [
147
+ m(i(H), { disabled: i(o) }, {
148
+ trigger: p(() => [
149
+ s("div", {
150
+ class: v(["group relative flex min-h-8 cursor-pointer flex-row items-start justify-between gap-2 py-1.5 pr-2 rounded editable-sidebar-hover w-full", [
151
+ K,
152
+ a || ne.value ? "bg-sidebar-active-b text-sidebar-active-c transition-none" : "text-sidebar-c-2"
153
+ ]]),
154
+ tabindex: "0"
166
155
  }, [
167
- l("span", Ke, [
168
- ye(e.$slots, "leftIcon", {}, () => [
169
- l("div", {
170
- class: g({
171
- "rotate-90": s(K)[e.item.uid]
172
- })
173
- }, [
174
- d(s(Me), {
175
- class: "text-c-3 text-sm",
176
- icon: "ChevronRight",
177
- size: "sm",
178
- thickness: "2.5"
179
- })
180
- ], 2)
181
- ], !0),
182
- D("   ")
183
- ]),
184
- l("div", Le, [
185
- l("span", {
186
- class: g(["z-10 font-medium text-left w-full word-break-break-word", {
187
- "editable-sidebar-hover-item": !s(n)
188
- }])
189
- }, Y(k(e.item)), 3),
190
- l("div", We, [
191
- !s(n) && ((a = (r = e.item.spec) == null ? void 0 : r.info) == null ? void 0 : a.title) !== "Drafts" ? (f(), h(S, {
156
+ s("span", {
157
+ class: v(["line-clamp-3 z-10 font-medium w-full pl-2 word-break-break-word", {
158
+ "editable-sidebar-hover-item": !i(o)
159
+ }])
160
+ }, L(l.value.title), 3),
161
+ s("div", Ie, [
162
+ s("div", Ee, [
163
+ i(o) ? w("", !0) : (d(), f(D, {
192
164
  key: 0,
193
- item: e.item,
165
+ item: l.value.entity,
194
166
  parentUids: e.parentUids,
195
- resourceTitle: c.value,
196
- onDelete: i[3] || (i[3] = (C) => s(v).show()),
197
- onRename: $
198
- }, null, 8, ["item", "parentUids", "resourceTitle"])) : y("", !0),
199
- Ae
167
+ resourceTitle: l.value.resourceTitle,
168
+ onDelete: t[0] || (t[0] = (u) => i(h).show()),
169
+ onRename: k
170
+ }, null, 8, ["item", "parentUids", "resourceTitle"]))
171
+ ]),
172
+ s("span", Ne, [
173
+ M("   "),
174
+ l.value.method ? (d(), f(i($e), {
175
+ key: 0,
176
+ class: "font-bold",
177
+ method: l.value.method
178
+ }, null, 8, ["method"])) : w("", !0)
200
179
  ])
201
180
  ])
202
- ])
203
- ];
204
- }),
205
- content: u(() => {
206
- var r, a;
207
- return [
208
- !s(n) && ((a = (r = e.item.spec) == null ? void 0 : r.info) == null ? void 0 : a.title) !== "Drafts" ? (f(), h(S, {
209
- key: 0,
210
- item: e.item,
181
+ ], 2)
182
+ ]),
183
+ content: p(() => [
184
+ m(D, {
185
+ item: l.value.entity,
211
186
  parentUids: e.parentUids,
212
- resourceTitle: c.value,
187
+ resourceTitle: l.value.resourceTitle,
213
188
  static: "",
214
- onDelete: i[5] || (i[5] = (C) => s(v).show()),
215
- onRename: $
216
- }, null, 8, ["item", "parentUids", "resourceTitle"])) : y("", !0)
217
- ];
218
- }),
219
- default: u(() => [
220
- D(" > ")
189
+ onDelete: t[1] || (t[1] = (u) => i(h).show()),
190
+ onRename: k
191
+ }, null, 8, ["item", "parentUids", "resourceTitle"])
192
+ ]),
193
+ _: 2
194
+ }, 1032, ["disabled"])
195
+ ]),
196
+ _: 1
197
+ }, 8, ["to"])) : !i(o) || e.parentUids.length ? (d(), f(i(H), {
198
+ key: 1,
199
+ disabled: i(o) || q.value
200
+ }, {
201
+ trigger: p(() => [
202
+ s("button", {
203
+ class: v(["hover:bg-b-2 group relative flex w-full flex-row justify-start gap-1.5 rounded p-1.5 z-[1]", K]),
204
+ type: "button",
205
+ onClick: t[4] || (t[4] = (a) => i(te)(l.value.entity.uid))
206
+ }, [
207
+ s("span", ze, [
208
+ ve(e.$slots, "leftIcon", {}, () => [
209
+ s("div", {
210
+ class: v({
211
+ "rotate-90": i(P)[l.value.entity.uid]
212
+ })
213
+ }, [
214
+ m(i(G), {
215
+ class: "text-c-3 text-sm",
216
+ icon: "ChevronRight",
217
+ size: "sm",
218
+ thickness: "2.5"
219
+ })
220
+ ], 2)
221
+ ], !0),
222
+ M("   ")
223
+ ]),
224
+ s("div", Be, [
225
+ s("span", {
226
+ class: v(["line-clamp-3 z-10 font-medium text-left w-full word-break-break-word", {
227
+ "editable-sidebar-hover-item": !i(o)
228
+ }])
229
+ }, L(l.value.title), 3),
230
+ s("div", Oe, [
231
+ !i(o) && !q.value ? (d(), f(D, {
232
+ key: 0,
233
+ item: l.value.entity,
234
+ parentUids: e.parentUids,
235
+ resourceTitle: l.value.resourceTitle,
236
+ onDelete: t[3] || (t[3] = (a) => i(h).show()),
237
+ onRename: k
238
+ }, null, 8, ["item", "parentUids", "resourceTitle"])) : w("", !0),
239
+ je
240
+ ])
241
+ ])
242
+ ])
243
+ ]),
244
+ content: p(() => [
245
+ !i(o) && !q.value ? (d(), f(D, {
246
+ key: 0,
247
+ item: l.value.entity,
248
+ parentUids: e.parentUids,
249
+ resourceTitle: l.value.resourceTitle,
250
+ static: "",
251
+ onDelete: t[5] || (t[5] = (a) => i(h).show()),
252
+ onRename: k
253
+ }, null, 8, ["item", "parentUids", "resourceTitle"])) : w("", !0)
254
+ ]),
255
+ default: p(() => [
256
+ M(" > ")
257
+ ]),
258
+ _: 3
259
+ }, 8, ["disabled"])) : w("", !0),
260
+ be(s("div", null, [
261
+ (d(!0), A(Y, null, ge(l.value.children, (a) => (d(), f(r, {
262
+ key: a,
263
+ isDraggable: !i($)[a],
264
+ isDroppable: re,
265
+ parentUids: [...e.parentUids, e.uid],
266
+ uid: a,
267
+ onNewTab: t[6] || (t[6] = (u, U) => e.$emit("newTab", u, U)),
268
+ onOnDragEnd: t[7] || (t[7] = (...u) => e.$emit("onDragEnd", ...u))
269
+ }, null, 8, ["isDraggable", "parentUids", "uid"]))), 128)),
270
+ l.value.children.length === 0 ? (d(), f(i(Ue), {
271
+ key: 0,
272
+ class: v(["mb-[.5px] flex gap-1.5 h-8 text-c-1 py-0 justify-start text-xs w-full hover:bg-b-2", e.parentUids.length ? "pl-9" : ""]),
273
+ variant: "ghost",
274
+ onClick: t[8] || (t[8] = (a) => de())
275
+ }, {
276
+ default: p(() => [
277
+ m(i(G), {
278
+ class: "ml-0.5 h-2.5 w-2.5",
279
+ icon: "Add",
280
+ thickness: "3"
281
+ }),
282
+ Pe
221
283
  ]),
222
- _: 3
223
- }, 8, ["disabled"])) : y("", !0),
224
- "childUids" in e.item ? De((f(), I("div", He, [
225
- (f(!0), I(Q, null, ke(W.value ? e.item.childUids.slice(1) : e.item.childUids, (r) => (f(), h(b, {
226
- key: r,
227
- isDraggable: !s(M)[r],
228
- isDroppable: ce,
229
- item: s(le)[r] || s(V)[r] || s(M)[r],
230
- parentUids: [...e.parentUids, e.item.uid],
231
- onNewTab: (a, C) => e.$emit("newTab", a, C),
232
- onOnDragEnd: i[6] || (i[6] = (...a) => e.$emit("onDragEnd", ...a))
233
- }, null, 8, ["isDraggable", "item", "parentUids", "onNewTab"]))), 128))
234
- ], 512)), [
235
- [qe, fe.value]
236
- ]) : y("", !0)
237
- ];
238
- }),
284
+ _: 1
285
+ }, 8, ["class"])) : w("", !0)
286
+ ], 512), [
287
+ [he, ae.value]
288
+ ])
289
+ ]),
239
290
  _: 3
240
291
  }, 8, ["id", "ceiling", "floor", "isDraggable", "isDroppable", "parentIds"])
241
292
  ], 2),
242
- d(s(ee), {
243
- size: "sm",
244
- state: s(v),
245
- title: `Delete ${c.value}`
293
+ m(i(J), {
294
+ size: "xxs",
295
+ state: i(h),
296
+ title: `Delete ${l.value.resourceTitle}`
246
297
  }, {
247
- default: u(() => [
248
- d(Se, {
249
- variableName: be.value,
250
- warningMessage: "Warning: Deleting this will delete all items inside of this",
251
- onClose: i[8] || (i[8] = (m) => s(v).hide()),
252
- onDelete: ve
253
- }, null, 8, ["variableName"])
298
+ default: p(() => [
299
+ m(ye, {
300
+ variableName: l.value.title,
301
+ warningMessage: l.value.warning,
302
+ onClose: t[10] || (t[10] = (a) => i(h).hide()),
303
+ onDelete: oe
304
+ }, null, 8, ["variableName", "warningMessage"])
254
305
  ]),
255
306
  _: 1
256
307
  }, 8, ["state", "title"]),
257
- d(s(ee), {
258
- state: s(q),
259
- title: `Rename ${c.value}`
308
+ m(i(J), {
309
+ size: "xxs",
310
+ state: i(y),
311
+ title: `Rename ${l.value.resourceTitle}`
260
312
  }, {
261
- default: u(() => [
262
- d(s(Te), {
263
- modelValue: p.value,
264
- "onUpdate:modelValue": i[9] || (i[9] = (m) => p.value = m),
265
- label: c.value,
266
- onKeydown: $e(X(G, ["prevent"]), ["enter"])
267
- }, null, 8, ["modelValue", "label", "onKeydown"]),
268
- l("div", Ge, [
269
- d(s(te), {
270
- class: "flex-1",
271
- variant: "outlined",
272
- onClick: i[10] || (i[10] = (m) => s(q).hide())
273
- }, {
274
- default: u(() => [
275
- D(" Cancel ")
276
- ]),
277
- _: 1
278
- }),
279
- d(s(te), {
280
- class: "flex-1",
281
- type: "submit",
282
- onClick: G
283
- }, {
284
- default: u(() => [
285
- D(" Save ")
286
- ]),
287
- _: 1
288
- })
289
- ])
313
+ default: p(() => [
314
+ m(ke, {
315
+ name: l.value.title,
316
+ onClose: t[11] || (t[11] = (a) => i(y).hide()),
317
+ onRename: se
318
+ }, null, 8, ["name"])
290
319
  ]),
291
320
  _: 1
292
321
  }, 8, ["state", "title"])
@@ -295,5 +324,5 @@ const Be = (U) => (Re("data-v-fc61cd81"), U = U(), Ce(), U), Fe = { class: "flex
295
324
  }
296
325
  });
297
326
  export {
298
- lt as default
327
+ _e as default
299
328
  };
@@ -1,9 +1,7 @@
1
- import type { Collection } from '@scalar/oas-utils/entities/workspace/collection';
2
- import type { Folder } from '@scalar/oas-utils/entities/workspace/folder';
3
- import type { Request, RequestExample } from '@scalar/oas-utils/entities/workspace/spec';
1
+ import type { Collection, Request, RequestExample, Tag } from '@scalar/oas-utils/entities/spec';
4
2
  declare const _default: import("vue").DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToOption<{
5
3
  /** Both inidicate the level and provide a way to traverse upwards */
6
- item: Collection | Folder | Request | RequestExample;
4
+ item: Collection | Tag | Request | RequestExample;
7
5
  resourceTitle: string;
8
6
  static?: boolean;
9
7
  }>, {
@@ -13,7 +11,7 @@ declare const _default: import("vue").DefineComponent<__VLS_WithDefaults<__VLS_T
13
11
  rename: () => void;
14
12
  }, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToOption<{
15
13
  /** Both inidicate the level and provide a way to traverse upwards */
16
- item: Collection | Folder | Request | RequestExample;
14
+ item: Collection | Tag | Request | RequestExample;
17
15
  resourceTitle: string;
18
16
  static?: boolean;
19
17
  }>, {
@@ -1 +1 @@
1
- {"version":3,"file":"RequestSidebarItemMenu.vue.d.ts","sourceRoot":"","sources":["../../../src/views/Request/RequestSidebarItemMenu.vue"],"names":[],"mappings":"AAkIA,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;;IAM9C,qEAAqE;UAC/D,UAAU,GAAG,MAAM,GAAG,OAAO,GAAG,cAAc;mBACrC,MAAM;aACZ,OAAO;;;;;;;IAHhB,qEAAqE;UAC/D,UAAU,GAAG,MAAM,GAAG,OAAO,GAAG,cAAc;mBACrC,MAAM;aACZ,OAAO;;;;;;;YAAP,OAAO;;AAoSpB,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":"RequestSidebarItemMenu.vue.d.ts","sourceRoot":"","sources":["../../../src/views/Request/RequestSidebarItemMenu.vue"],"names":[],"mappings":"AAoIA,OAAO,KAAK,EACV,UAAU,EACV,OAAO,EACP,cAAc,EACd,GAAG,EACJ,MAAM,iCAAiC,CAAA;;IAMpC,qEAAqE;UAC/D,UAAU,GAAG,GAAG,GAAG,OAAO,GAAG,cAAc;mBAClC,MAAM;aACZ,OAAO;;;;;;;IAHhB,qEAAqE;UAC/D,UAAU,GAAG,GAAG,GAAG,OAAO,GAAG,cAAc;mBAClC,MAAM;aACZ,OAAO;;;;;;;YAAP,OAAO;;AAsSpB,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 "./RequestSidebarItemMenu.vue2.js";
2
2
  /* empty css */
3
3
  import e from "../../_virtual/_plugin-vue_export-helper.js";
4
- const a = /* @__PURE__ */ e(t, [["__scopeId", "data-v-875d5854"]]);
4
+ const m = /* @__PURE__ */ e(t, [["__scopeId", "data-v-d6fc1c6f"]]);
5
5
  export {
6
- a as default
6
+ m as default
7
7
  };