@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,337 +1,105 @@
1
- import { defineComponent as Re, ref as z, watch as A, onMounted as Se, onBeforeUnmount as we, openBlock as m, createElementBlock as _, normalizeClass as b, unref as o, createElementVNode as v, createVNode as d, createBlock as x, createCommentVNode as k, withCtx as f, withDirectives as ye, createSlots as _e, isRef as ke, withModifiers as L, Fragment as j, renderList as H, createTextVNode as K, toDisplayString as Ue, vShow as Ce, pushScopeId as qe, popScopeId as De } from "vue";
2
- import Ie from "../../components/AddressBar/AddressBar.vue.js";
3
- import Be from "../../components/EnvironmentSelector/EnvironmentSelector.vue.js";
4
- import Oe from "../../components/HttpMethod/HttpMethod.vue.js";
5
- import { useSearch as Ve } from "../../components/Search/useSearch.js";
6
- import $e from "../../components/Sidebar/SidebarButton.vue.js";
7
- import Ee from "../../components/Sidebar/SidebarToggle.vue.js";
8
- import Me from "../../components/ViewLayout/ViewLayout.vue.js";
9
- import Fe from "../../components/ViewLayout/ViewLayoutContent.vue.js";
10
- import { useWorkspace as Pe } from "../../store/workspace.js";
11
- import Te from "./RequestSection/RequestSection.vue.js";
1
+ import { defineComponent as H, ref as q, computed as L, watch as M, onMounted as A, onBeforeUnmount as I, openBlock as w, createElementBlock as $, normalizeClass as x, unref as s, createVNode as n, withCtx as S, createBlock as D, createCommentVNode as Q } from "vue";
2
+ import W from "../../components/ViewLayout/ViewLayout.vue.js";
3
+ import j from "../../components/ViewLayout/ViewLayoutContent.vue.js";
4
+ import { createRequestOperation as z } from "../../libs/send-request.js";
5
+ import J from "./RequestSection/RequestSection.vue.js";
12
6
  /* empty css */
13
- import Ne from "./ResponseSection/ResponseSection.vue.js";
14
- import { ScalarIcon as D, ScalarSearchInput as We, ScalarSearchResultList as ze, ScalarSearchResultItem as Ae } from "@scalar/components";
15
- import { useToasts as Le } from "@scalar/use-toasts";
16
- import { useMediaQuery as je } from "@vueuse/core";
17
- import He from "./RequestSidebarItem.vue.js";
18
- import Ke from "../../components/Sidebar/Sidebar.vue.js";
19
- /* empty css */
20
- import Je from "./components/WorkspaceDropdown.vue.js";
21
- import { useSidebar as Qe } from "../../hooks/useSidebar.js";
22
- import { sendRequest as Ge } from "../../libs/sendRequest.js";
23
- import { executeRequestBus as J } from "../../libs/event-busses/execute-request-bus.js";
24
- import { cancelRequestBus as Xe } from "../../libs/event-busses/cancel-request-bus.js";
25
- import { hotKeyBus as Q } from "../../libs/event-busses/hot-keys-bus.js";
26
- import { commandPaletteBus as G } from "../../libs/event-busses/command-palette-bus.js";
27
- import { requestStatusBus as U } from "../../libs/event-busses/request-status-bus.js";
28
- const Ye = (S) => (qe("data-v-fa353420"), S = S(), De(), S), Ze = { class: "lg:min-h-header flex items-center w-full justify-center p-1 flex-wrap t-app__top-container border-b-1/2" }, et = { class: "flex flex-row items-center gap-1 lg:px-1 lg:mb-0 mb-0.5 lg:flex-1 w-6/12" }, tt = /* @__PURE__ */ Ye(() => /* @__PURE__ */ v("a", {
29
- class: "text-c-2 text-sm font-medium gitbook-show ml-.5 hover:text-c-1 border p-1 rounded hover:bg-b-3",
30
- href: "https://scalar.com/",
31
- target: "_blank"
32
- }, " Powered by Scalar.com ", -1)), ot = { class: "flex flex-row items-center gap-1 lg:px-1 lg:mb-0 mb-0.5 lg:flex-1 justify-end w-6/12" }, st = { class: "search-button-fade sticky px-3 py-2.5 top-0 z-50" }, Bt = /* @__PURE__ */ Re({
7
+ import F from "./RequestSubpageHeader.vue.js";
8
+ import G from "./ResponseSection/ResponseSection.vue.js";
9
+ import { safeJSON as K } from "@scalar/object-utils/parse";
10
+ import { useToasts as P } from "@scalar/use-toasts";
11
+ import { useMediaQuery as X } from "@vueuse/core";
12
+ import Y from "./RequestSidebar.vue.js";
13
+ import { ERRORS as Z } from "../../libs/errors.js";
14
+ import { useWorkspace as ee } from "../../store/store.js";
15
+ import { executeRequestBus as E } from "../../libs/event-busses/execute-request-bus.js";
16
+ import { cancelRequestBus as oe } from "../../libs/event-busses/cancel-request-bus.js";
17
+ const qe = /* @__PURE__ */ H({
33
18
  __name: "Request",
34
19
  emits: ["newTab"],
35
- setup(S, { emit: X }) {
36
- var W;
37
- const Y = X, {
38
- activeExample: w,
39
- activeRequest: h,
40
- activeSecuritySchemes: Z,
41
- activeWorkspace: c,
42
- activeWorkspaceCollections: ee,
43
- activeWorkspaceServers: te,
44
- activeWorkspaceRequests: oe,
45
- collectionMutators: I,
46
- collections: p,
47
- cookies: se,
48
- environments: re,
49
- findRequestFolders: ae,
50
- folders: g,
51
- folderMutators: B,
52
- modalState: ie,
53
- requestMutators: le,
54
- workspaceMutators: O
55
- } = Pe(), { collapsedSidebarFolders: ne, setCollapsedSidebarFolder: ce } = Qe(), { toast: V } = Le(), {
56
- searchText: y,
57
- searchResultsWithPlaceholderResults: $,
58
- selectedSearchResult: E,
59
- onSearchResultClick: de,
60
- fuseSearch: ue,
61
- searchInputRef: M,
62
- searchResultRefs: me,
63
- navigateSearchResults: F,
64
- selectSearchResult: fe
65
- } = Ve(), pe = je("(max-width: 780px)"), u = z(!((W = c.value) != null && W.isReadOnly)), C = z();
66
- A(pe, (e) => u.value = !e), A(
67
- h,
68
- (e) => {
69
- e && ae(e.uid).forEach(
70
- (s) => ce(s, !0)
71
- );
72
- },
73
- { immediate: !0 }
74
- );
75
- const P = async () => {
76
- var r, a;
77
- if (!h.value || !w.value) {
78
- console.warn(
79
- "There is no request active at the moment. Please select one then try again."
80
- );
20
+ setup(re) {
21
+ var f;
22
+ const k = ee(), { toast: u } = P(), {
23
+ activeCollection: i,
24
+ activeExample: l,
25
+ activeEnvironment: O,
26
+ activeRequest: m,
27
+ activeWorkspace: t,
28
+ activeServer: C,
29
+ cookies: N,
30
+ modalState: V,
31
+ requestHistory: d,
32
+ securitySchemes: h
33
+ } = k, a = q(!((f = t.value) != null && f.isReadOnly)), c = q(), B = L(
34
+ () => d.findLast((e) => {
35
+ var o;
36
+ return e.request.uid === ((o = l.value) == null ? void 0 : o.uid);
37
+ })
38
+ ), T = X("(max-width: 780px)");
39
+ M(T, (e) => a.value = !e);
40
+ const p = async () => {
41
+ var b;
42
+ if (!m.value || !l.value || !i.value)
43
+ return;
44
+ const e = K.parse(((b = O.value) == null ? void 0 : b.value) || "{}");
45
+ e.error && console.error("INVALID ENVIRONMENT!");
46
+ const o = e.error || typeof e.data != "object" ? {} : e.data ?? {}, r = t.value.cookies.map((U) => N[U]), [v, R] = z({
47
+ auth: i.value.auth,
48
+ request: m.value,
49
+ example: l.value,
50
+ proxy: t.value.proxyUrl ?? "",
51
+ environment: o,
52
+ globalCookies: r,
53
+ securitySchemes: h,
54
+ server: C.value
55
+ });
56
+ if (v) {
57
+ u(v.message, "error");
81
58
  return;
82
59
  }
83
- let e = w.value.url;
84
- const s = Object.values(re).reduce(
85
- (l, n) => {
86
- try {
87
- return { ...l, ...JSON.parse(n.raw) };
88
- } catch {
89
- return l;
90
- }
91
- },
92
- {}
93
- ), t = /\{\{(.*?)\}\}/g;
94
- e = e.replace(t, (l, n) => (te.value.forEach((i) => {
95
- if (i.url === n)
96
- return n;
97
- }), s[n] || n)), U.emit("start");
98
- try {
99
- C.value = new AbortController();
100
- const { request: l, response: n, error: i } = await Ge(
101
- h.value,
102
- w.value,
103
- e,
104
- Z.value,
105
- (r = c.value) == null ? void 0 : r.proxyUrl,
106
- se,
107
- (a = C.value) == null ? void 0 : a.signal
108
- );
109
- l && n ? (le.edit(h.value.uid, "history", [
110
- ...h.value.history,
111
- {
112
- request: l,
113
- response: n,
114
- timestamp: Date.now()
115
- }
116
- ]), U.emit("stop")) : (i instanceof DOMException && i.name == "AbortError" || V((i == null ? void 0 : i.message) ?? "Send Request Failed", "error"), U.emit("abort"));
117
- } catch (l) {
118
- console.error(l), V(`Oops!
119
- ${l}`, "error"), U.emit("abort");
120
- }
121
- }, T = (e) => {
122
- var s;
123
- e.toggleSidebar && (u.value = !u.value), e.openCommandPalette && (e.openCommandPalette.preventDefault(), G.emit()), e.focusRequestSearch && ((s = M.value) == null || s.focus()), e.navigateSearchResultsUp && F("up"), e.navigateSearchResultsDown && F("down"), e.selectSearchResult && fe();
124
- }, he = async () => {
60
+ c.value = R.controller;
61
+ const [y, g] = await R.sendRequest();
62
+ y ? u(y.message, "error") : d.push(g);
63
+ }, _ = async () => {
125
64
  var e;
126
- return (e = C.value) == null ? void 0 : e.abort();
65
+ return (e = c.value) == null ? void 0 : e.abort(Z.REQUEST_ABORTED);
127
66
  };
128
- Se(() => {
129
- J.on(P), Xe.on(he), Q.on(T);
130
- }), we(() => {
131
- J.off(P), Q.off(T);
132
- });
133
- const N = (e, s) => {
134
- p[e] ? I.edit(e, "childUids", s) : g[e] && B.edit(e, "childUids", s);
135
- }, ve = (e, s) => {
136
- if (!e || !s) return;
137
- const { id: t, parentId: r } = e, { id: a, parentId: l, offset: n } = s;
138
- if (r ? p[r] ? I.edit(
139
- r,
140
- "childUids",
141
- p[r].childUids.filter(
142
- (i) => i !== t
143
- )
144
- ) : g[r] && B.edit(
145
- r,
146
- "childUids",
147
- g[r].childUids.filter((i) => i !== t)
148
- ) : O.edit(
149
- c.value.uid,
150
- "collectionUids",
151
- c.value.collectionUids.filter((i) => i !== t)
152
- ), n === 2) {
153
- const i = p[a] || g[a];
154
- N(a, [...i.childUids, t]);
155
- } else if (l) {
156
- const R = [...(p[l] || g[l]).childUids], q = R.findIndex((ge) => a === ge) ?? 0;
157
- R.splice(q + n, 0, t), N(l, R);
158
- } else {
159
- const i = [...c.value.collectionUids], R = i.findIndex((q) => a === q) ?? 0;
160
- i.splice(R + n, 0, t), O.edit(
161
- c.value.uid,
162
- "collectionUids",
163
- i
164
- );
165
- }
166
- }, be = (e, s) => {
167
- var t, r, a;
168
- return !(c.value.isReadOnly || !p[e.id] && s.offset !== 2 || p[e.id] && ((a = (r = (t = p[s.id]) == null ? void 0 : t.spec) == null ? void 0 : r.info) == null ? void 0 : a.title) === "Drafts");
169
- }, xe = (e, s) => {
170
- Y("newTab", { name: e, uid: s });
171
- };
172
- return (e, s) => (m(), _("div", {
173
- class: b(["flex flex-1 flex-col rounded pt-0 h-full bg-b-1 relative border-1/2 rounded mr-1.5 mb-1.5 overflow-hidden", {
174
- "!mr-0 !mb-0 !border-0": o(c).isReadOnly
67
+ return A(() => {
68
+ E.on(p), oe.on(_);
69
+ }), I(() => E.off(p)), (e, o) => (w(), $("div", {
70
+ class: x(["flex flex-1 flex-col rounded pt-0 h-full bg-b-1 relative border-1/2 rounded mr-1.5 mb-1.5 overflow-hidden", {
71
+ "!mr-0 !mb-0 !border-0": s(t).isReadOnly
175
72
  }])
176
73
  }, [
177
- v("div", Ze, [
178
- v("div", et, [
179
- d(Ee, {
180
- modelValue: u.value,
181
- "onUpdate:modelValue": s[0] || (s[0] = (t) => u.value = t),
182
- class: "gitbook-hidden"
183
- }, null, 8, ["modelValue"]),
184
- tt
185
- ]),
186
- d(Ie),
187
- v("div", ot, [
188
- o(c).isReadOnly ? k("", !0) : (m(), x(Be, { key: 0 })),
189
- o(c).isReadOnly ? (m(), _("button", {
190
- key: 1,
191
- class: "text-c-3 hover:bg-b-2 active:text-c-1 p-2 rounded",
192
- type: "button",
193
- onClick: s[1] || (s[1] = (t) => o(ie).hide())
194
- }, [
195
- d(o(D), {
196
- icon: "Close",
197
- size: "lg",
198
- thickness: "1.75"
199
- })
200
- ])) : k("", !0)
201
- ])
202
- ]),
203
- d(Me, null, {
204
- default: f(() => [
205
- ye(d(o(Ke), {
206
- class: b([u.value ? "sidebar-active-width" : ""]),
207
- showSideBar: u.value,
208
- "onUpdate:showSideBar": s[5] || (s[5] = (t) => u.value = t)
209
- }, _e({
210
- content: f(() => [
211
- v("div", st, [
212
- d(o(We), {
213
- ref_key: "searchInputRef",
214
- ref: M,
215
- modelValue: o(y),
216
- "onUpdate:modelValue": s[2] || (s[2] = (t) => ke(y) ? y.value = t : null),
217
- sidebar: "",
218
- onInput: o(ue)
219
- }, null, 8, ["modelValue", "onInput"])
220
- ]),
221
- v("div", {
222
- class: b(["custom-scroll flex flex-1 flex-col overflow-visible px-3 pb-3 pt-0", {
223
- "pb-14": !o(c).isReadOnly
224
- }]),
225
- onDragenter: s[3] || (s[3] = L(() => {
226
- }, ["prevent"])),
227
- onDragover: s[4] || (s[4] = L(() => {
228
- }, ["prevent"]))
229
- }, [
230
- o(y) ? (m(), x(o(ze), {
231
- key: 0,
232
- class: "gap-px custom-scroll",
233
- noResults: !o($).length
234
- }, {
235
- default: f(() => [
236
- (m(!0), _(j, null, H(o($), (t, r) => (m(), x(o(Ae), {
237
- id: `#search-input-${t.item.id}`,
238
- key: t.refIndex,
239
- ref_for: !0,
240
- ref: (a) => o(me)[r] = a,
241
- active: o(E) === r,
242
- class: "px-2",
243
- onClick: (a) => o(de)(t),
244
- onFocus: (a) => E.value = r
245
- }, {
246
- addon: f(() => [
247
- d(Oe, {
248
- class: "font-bold",
249
- method: t.item.httpVerb ?? "get"
250
- }, null, 8, ["method"])
251
- ]),
252
- default: f(() => [
253
- K(Ue(t.item.title) + " ", 1)
254
- ]),
255
- _: 2
256
- }, 1032, ["id", "active", "onClick", "onFocus"]))), 128))
257
- ]),
258
- _: 1
259
- }, 8, ["noResults"])) : (m(!0), _(j, { key: 1 }, H(o(ee), (t) => {
260
- var r, a;
261
- return m(), x(He, {
262
- key: t.uid,
263
- isDraggable: !o(c).isReadOnly && ((a = (r = t.spec) == null ? void 0 : r.info) == null ? void 0 : a.title) !== "Drafts",
264
- isDroppable: be,
265
- item: t,
266
- parentUids: [],
267
- onNewTab: xe,
268
- onOnDragEnd: ve
269
- }, {
270
- leftIcon: f(() => [
271
- d(o(D), {
272
- class: "text-sidebar-c-2 text-sm group-hover:hidden",
273
- icon: "CodeFolder",
274
- size: "sm",
275
- thickness: "2"
276
- }),
277
- v("div", {
278
- class: b({
279
- "rotate-90": o(ne)[t.uid]
280
- })
281
- }, [
282
- d(o(D), {
283
- class: "text-c-3 hidden text-sm group-hover:block",
284
- icon: "ChevronRight",
285
- size: "sm"
286
- })
287
- ], 2)
288
- ]),
289
- _: 2
290
- }, 1032, ["isDraggable", "item"]);
291
- }), 128))
292
- ], 34)
293
- ]),
294
- button: f(() => [
295
- o(c).isReadOnly ? k("", !0) : (m(), x($e, {
296
- key: 0,
297
- class: b({
298
- "empty-sidebar-item": o(oe).length === 1
299
- }),
300
- click: o(G).emit
301
- }, {
302
- title: f(() => [
303
- K("Add Item")
304
- ]),
305
- _: 1
306
- }, 8, ["class", "click"]))
307
- ]),
308
- _: 2
309
- }, [
310
- o(c).isReadOnly ? void 0 : {
311
- name: "header",
312
- fn: f(() => [
313
- d(o(Je))
314
- ]),
315
- key: "0"
316
- }
317
- ]), 1032, ["class", "showSideBar"]), [
318
- [Ce, u.value]
319
- ]),
320
- o(w) ? (m(), x(Fe, {
74
+ n(F, {
75
+ modelValue: a.value,
76
+ "onUpdate:modelValue": o[0] || (o[0] = (r) => a.value = r),
77
+ isReadonly: s(t).isReadOnly,
78
+ onHideModel: o[1] || (o[1] = () => s(V).hide())
79
+ }, null, 8, ["modelValue", "isReadonly"]),
80
+ n(W, null, {
81
+ default: S(() => [
82
+ n(Y, {
83
+ isReadonly: s(t).isReadOnly,
84
+ showSidebar: a.value,
85
+ onNewTab: o[2] || (o[2] = (r) => e.$emit("newTab", r)),
86
+ "onUpdate:showSidebar": o[3] || (o[3] = (r) => a.value = r)
87
+ }, null, 8, ["isReadonly", "showSidebar"]),
88
+ s(l) ? (w(), D(j, {
321
89
  key: 0,
322
- class: b(["flex-1", [u.value ? "sidebar-active-hide-layout" : ""]])
90
+ class: x(["flex-1", [a.value ? "sidebar-active-hide-layout" : ""]])
323
91
  }, {
324
- default: f(() => {
325
- var t, r, a, l, n;
92
+ default: S(() => {
93
+ var r;
326
94
  return [
327
- d(Te),
328
- d(Ne, {
329
- response: (n = (l = (t = o(h)) == null ? void 0 : t.history) == null ? void 0 : l[((a = (r = o(h)) == null ? void 0 : r.history) == null ? void 0 : a.length) - 1]) == null ? void 0 : n.response
95
+ n(J),
96
+ n(G, {
97
+ response: (r = B.value) == null ? void 0 : r.response
330
98
  }, null, 8, ["response"])
331
99
  ];
332
100
  }),
333
101
  _: 1
334
- }, 8, ["class"])) : k("", !0)
102
+ }, 8, ["class"])) : Q("", !0)
335
103
  ]),
336
104
  _: 1
337
105
  })
@@ -339,5 +107,5 @@ ${l}`, "error"), U.emit("abort");
339
107
  }
340
108
  });
341
109
  export {
342
- Bt as default
110
+ qe as default
343
111
  };
@@ -0,0 +1,36 @@
1
+ declare const _default: import("vue").DefineComponent<__VLS_TypePropsToOption<{
2
+ state: {
3
+ open: boolean;
4
+ show: () => void;
5
+ hide: () => void;
6
+ };
7
+ scheme: {
8
+ id: string;
9
+ label: string;
10
+ } | undefined;
11
+ }>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
12
+ close: () => void;
13
+ }, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<__VLS_TypePropsToOption<{
14
+ state: {
15
+ open: boolean;
16
+ show: () => void;
17
+ hide: () => void;
18
+ };
19
+ scheme: {
20
+ id: string;
21
+ label: string;
22
+ } | undefined;
23
+ }>>> & {
24
+ onClose?: (() => any) | undefined;
25
+ }, {}, {}>;
26
+ export default _default;
27
+ type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
28
+ type __VLS_TypePropsToOption<T> = {
29
+ [K in keyof T]-?: {} extends Pick<T, K> ? {
30
+ type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
31
+ } : {
32
+ type: import('vue').PropType<T[K]>;
33
+ required: true;
34
+ };
35
+ };
36
+ //# sourceMappingURL=DeleteRequestAuthModal.vue.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"DeleteRequestAuthModal.vue.d.ts","sourceRoot":"","sources":["../../../../../src/views/Request/RequestSection/RequestAuth/DeleteRequestAuthModal.vue"],"names":[],"mappings":";WAwDS;QAAE,IAAI,EAAE,OAAO,CAAC;QAAC,IAAI,EAAE,MAAM,IAAI,CAAC;QAAC,IAAI,EAAE,MAAM,IAAI,CAAA;KAAE;YACpD;QAAE,EAAE,EAAE,MAAM,CAAC;QAAC,KAAK,EAAE,MAAM,CAAA;KAAE,GAAG,SAAS;;;;WAD1C;QAAE,IAAI,EAAE,OAAO,CAAC;QAAC,IAAI,EAAE,MAAM,IAAI,CAAC;QAAC,IAAI,EAAE,MAAM,IAAI,CAAA;KAAE;YACpD;QAAE,EAAE,EAAE,MAAM,CAAC;QAAC,KAAK,EAAE,MAAM,CAAA;KAAE,GAAG,SAAS;;;;AAiKnD,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"}
@@ -0,0 +1,59 @@
1
+ import { defineComponent as y, openBlock as S, createBlock as _, unref as o, withCtx as s, createElementVNode as r, toDisplayString as i, createVNode as m, createTextVNode as u } from "vue";
2
+ import { ScalarModal as g, ScalarButton as d } from "@scalar/components";
3
+ import { useWorkspace as k } from "../../../../store/store.js";
4
+ const C = { class: "mb-4 leading-normal text-c-2 text-sm" }, w = { class: "flex justify-between gap-2" }, M = /* @__PURE__ */ y({
5
+ __name: "DeleteRequestAuthModal",
6
+ props: {
7
+ state: {},
8
+ scheme: {}
9
+ },
10
+ emits: ["close"],
11
+ setup(p, { emit: h }) {
12
+ const n = p, c = h, { securitySchemes: f, securitySchemeMutators: x } = k(), b = () => {
13
+ var e;
14
+ (e = n.scheme) != null && e.id && x.delete(f[n.scheme.id]), c("close");
15
+ };
16
+ return (e, l) => (S(), _(o(g), {
17
+ size: "xxs",
18
+ state: e.state,
19
+ title: "Delete Security Scheme"
20
+ }, {
21
+ default: s(() => {
22
+ var a;
23
+ return [
24
+ r("p", C, " This cannot be undone. You’re about to delete the " + i((a = e.scheme) == null ? void 0 : a.label) + " security scheme from the collection. ", 1),
25
+ r("div", w, [
26
+ m(o(d), {
27
+ class: "gap-1.5 px-3 h-8 shadow-none focus:outline-none flex items-center cursor-pointer",
28
+ type: "button",
29
+ variant: "outlined",
30
+ onClick: l[0] || (l[0] = (t) => c("close"))
31
+ }, {
32
+ default: s(() => [
33
+ u(" Cancel ")
34
+ ]),
35
+ _: 1
36
+ }),
37
+ m(o(d), {
38
+ class: "gap-1.5 px-3 h-8 shadow-none focus:outline-none flex items-center cursor-pointer",
39
+ type: "submit",
40
+ onClick: b
41
+ }, {
42
+ default: s(() => {
43
+ var t;
44
+ return [
45
+ u(" Delete " + i((t = e.scheme) == null ? void 0 : t.label), 1)
46
+ ];
47
+ }),
48
+ _: 1
49
+ })
50
+ ])
51
+ ];
52
+ }),
53
+ _: 1
54
+ }, 8, ["state"]));
55
+ }
56
+ });
57
+ export {
58
+ M as default
59
+ };
@@ -0,0 +1,4 @@
1
+ import f from "./DeleteRequestAuthModal.vue.js";
2
+ export {
3
+ f as default
4
+ };
@@ -1,7 +1,9 @@
1
- import type { SecuritySchemeOauth2 } from '@scalar/oas-utils/entities/workspace/security';
1
+ import type { SecuritySchemeOauth2, SecuritySchemeOauth2ExampleValue } from '@scalar/oas-utils/entities/spec';
2
2
  declare const _default: import("vue").DefineComponent<__VLS_TypePropsToOption<{
3
+ example: SecuritySchemeOauth2ExampleValue;
3
4
  scheme: SecuritySchemeOauth2;
4
5
  }>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<__VLS_TypePropsToOption<{
6
+ example: SecuritySchemeOauth2ExampleValue;
5
7
  scheme: SecuritySchemeOauth2;
6
8
  }>>>, {}, {}>;
7
9
  export default _default;
@@ -0,0 +1 @@
1
+ {"version":3,"file":"OAuth2.vue.d.ts","sourceRoot":"","sources":["../../../../../src/views/Request/RequestSection/RequestAuth/OAuth2.vue"],"names":[],"mappings":"AAmNA,OAAO,KAAK,EACV,oBAAoB,EACpB,gCAAgC,EACjC,MAAM,iCAAiC,CAAA;;aAO7B,gCAAgC;YACjC,oBAAoB;;aADnB,gCAAgC;YACjC,oBAAoB;;AAohB9B,wBAMG;AAOH,KAAK,sBAAsB,CAAC,CAAC,IAAI,CAAC,SAAS,SAAS,GAAG,KAAK,GAAG,CAAC,CAAC;AAC5D,KAAK,uBAAuB,CAAC,CAAC,IAAI;KAChC,CAAC,IAAI,MAAM,CAAC,CAAC,CAAC,GAAG,EAAE,SAAS,IAAI,CAAC,CAAC,EAAE,CAAC,CAAC,GACpC;QAAE,IAAI,EAAE,OAAO,KAAK,EAAE,QAAQ,CAAC,sBAAsB,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAA;KAAE,GAC9D;QAAE,IAAI,EAAE,OAAO,KAAK,EAAE,QAAQ,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;QAAC,QAAQ,EAAE,IAAI,CAAA;KAAE;CACzD,CAAC"}