@scalar/api-client 1.3.4 → 1.3.5

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 (312) hide show
  1. package/CHANGELOG.md +32 -0
  2. package/dist/_virtual/_plugin-vue_export-helper.js +9 -0
  3. package/dist/assets/computer.ascii.js +34 -0
  4. package/dist/clientBus.js +5 -0
  5. package/dist/components/ApiClient/AddressBar.vue.d.ts +3 -3
  6. package/dist/components/ApiClient/AddressBar.vue.d.ts.map +1 -1
  7. package/dist/components/ApiClient/AddressBar.vue.js +8 -0
  8. package/dist/components/ApiClient/AddressBar.vue2.js +158 -0
  9. package/dist/components/ApiClient/AddressBar.vue3.js +4 -0
  10. package/dist/components/ApiClient/AddressBar.vue4.js +4 -0
  11. package/dist/components/ApiClient/ApiClient.vue.d.ts +11 -11
  12. package/dist/components/ApiClient/ApiClient.vue.d.ts.map +1 -1
  13. package/dist/components/ApiClient/ApiClient.vue.js +124 -0
  14. package/dist/components/ApiClient/ApiClient.vue2.js +4 -0
  15. package/dist/components/ApiClient/ApiClient.vue3.js +5 -0
  16. package/dist/components/ApiClient/Request/Request.vue.d.ts.map +1 -1
  17. package/dist/components/ApiClient/Request/Request.vue.js +79 -0
  18. package/dist/components/ApiClient/Request/Request.vue2.js +4 -0
  19. package/dist/components/ApiClient/Request/Request.vue3.js +5 -0
  20. package/dist/components/ApiClient/Request/RequestAuthentication/CardForm.vue.d.ts.map +1 -1
  21. package/dist/components/ApiClient/Request/RequestAuthentication/CardForm.vue.js +13 -0
  22. package/dist/components/ApiClient/Request/RequestAuthentication/CardForm.vue2.js +4 -0
  23. package/dist/components/ApiClient/Request/RequestAuthentication/CardFormButton.vue.d.ts.map +1 -1
  24. package/dist/components/ApiClient/Request/RequestAuthentication/CardFormButton.vue.js +7 -0
  25. package/dist/components/ApiClient/Request/RequestAuthentication/CardFormButton.vue2.js +18 -0
  26. package/dist/components/ApiClient/Request/RequestAuthentication/CardFormButton.vue3.js +4 -0
  27. package/dist/components/ApiClient/Request/RequestAuthentication/CardFormGroup.vue.d.ts.map +1 -1
  28. package/dist/components/ApiClient/Request/RequestAuthentication/CardFormGroup.vue.js +13 -0
  29. package/dist/components/ApiClient/Request/RequestAuthentication/CardFormGroup.vue2.js +4 -0
  30. package/dist/components/ApiClient/Request/RequestAuthentication/CardFormRows.vue.d.ts.map +1 -1
  31. package/dist/components/ApiClient/Request/RequestAuthentication/CardFormRows.vue.js +13 -0
  32. package/dist/components/ApiClient/Request/RequestAuthentication/CardFormRows.vue2.js +4 -0
  33. package/dist/components/ApiClient/Request/RequestAuthentication/CardFormTextInput.vue.d.ts +8 -8
  34. package/dist/components/ApiClient/Request/RequestAuthentication/CardFormTextInput.vue.d.ts.map +1 -1
  35. package/dist/components/ApiClient/Request/RequestAuthentication/CardFormTextInput.vue.js +7 -0
  36. package/dist/components/ApiClient/Request/RequestAuthentication/CardFormTextInput.vue2.js +37 -0
  37. package/dist/components/ApiClient/Request/RequestAuthentication/CardFormTextInput.vue3.js +4 -0
  38. package/dist/components/ApiClient/Request/RequestAuthentication/RequestAuthentication.vue.d.ts +3 -3
  39. package/dist/components/ApiClient/Request/RequestAuthentication/RequestAuthentication.vue.d.ts.map +1 -1
  40. package/dist/components/ApiClient/Request/RequestAuthentication/RequestAuthentication.vue.js +7 -0
  41. package/dist/components/ApiClient/Request/RequestAuthentication/RequestAuthentication.vue2.js +86 -0
  42. package/dist/components/ApiClient/Request/RequestAuthentication/RequestAuthentication.vue3.js +4 -0
  43. package/dist/components/ApiClient/Request/RequestAuthentication/SecurityScheme.vue.d.ts +3 -3
  44. package/dist/components/ApiClient/Request/RequestAuthentication/SecurityScheme.vue.d.ts.map +1 -1
  45. package/dist/components/ApiClient/Request/RequestAuthentication/SecurityScheme.vue.js +7 -0
  46. package/dist/components/ApiClient/Request/RequestAuthentication/SecurityScheme.vue2.js +357 -0
  47. package/dist/components/ApiClient/Request/RequestAuthentication/SecurityScheme.vue3.js +4 -0
  48. package/dist/components/ApiClient/Request/RequestAuthentication/SecuritySchemeScopes.vue.d.ts +3 -3
  49. package/dist/components/ApiClient/Request/RequestAuthentication/SecuritySchemeScopes.vue.d.ts.map +1 -1
  50. package/dist/components/ApiClient/Request/RequestAuthentication/SecuritySchemeScopes.vue.js +7 -0
  51. package/dist/components/ApiClient/Request/RequestAuthentication/SecuritySchemeScopes.vue2.js +96 -0
  52. package/dist/components/ApiClient/Request/RequestAuthentication/SecuritySchemeScopes.vue3.js +4 -0
  53. package/dist/components/ApiClient/Request/RequestAuthentication/SecuritySchemeSelector.vue.d.ts +3 -3
  54. package/dist/components/ApiClient/Request/RequestAuthentication/SecuritySchemeSelector.vue.d.ts.map +1 -1
  55. package/dist/components/ApiClient/Request/RequestAuthentication/SecuritySchemeSelector.vue.js +7 -0
  56. package/dist/components/ApiClient/Request/RequestAuthentication/SecuritySchemeSelector.vue2.js +64 -0
  57. package/dist/components/ApiClient/Request/RequestAuthentication/SecuritySchemeSelector.vue3.js +4 -0
  58. package/dist/components/ApiClient/Request/RequestAuthentication/index.d.ts +3 -3
  59. package/dist/components/ApiClient/Request/RequestBody.vue.d.ts +3 -3
  60. package/dist/components/ApiClient/Request/RequestBody.vue.d.ts.map +1 -1
  61. package/dist/components/ApiClient/Request/RequestBody.vue.js +39 -0
  62. package/dist/components/ApiClient/Request/RequestBody.vue2.js +4 -0
  63. package/dist/components/ApiClient/Request/RequestCookies.vue.d.ts +3 -3
  64. package/dist/components/ApiClient/Request/RequestCookies.vue.d.ts.map +1 -1
  65. package/dist/components/ApiClient/Request/RequestCookies.vue.js +74 -0
  66. package/dist/components/ApiClient/Request/RequestCookies.vue2.js +4 -0
  67. package/dist/components/ApiClient/Request/RequestCookies.vue3.js +5 -0
  68. package/dist/components/ApiClient/Request/RequestHeaders.vue.d.ts +3 -3
  69. package/dist/components/ApiClient/Request/RequestHeaders.vue.d.ts.map +1 -1
  70. package/dist/components/ApiClient/Request/RequestHeaders.vue.js +74 -0
  71. package/dist/components/ApiClient/Request/RequestHeaders.vue2.js +4 -0
  72. package/dist/components/ApiClient/Request/RequestQuery.vue.d.ts +3 -3
  73. package/dist/components/ApiClient/Request/RequestQuery.vue.d.ts.map +1 -1
  74. package/dist/components/ApiClient/Request/RequestQuery.vue.js +75 -0
  75. package/dist/components/ApiClient/Request/RequestQuery.vue2.js +4 -0
  76. package/dist/components/ApiClient/Request/RequestVariables.vue.d.ts +3 -3
  77. package/dist/components/ApiClient/Request/RequestVariables.vue.d.ts.map +1 -1
  78. package/dist/components/ApiClient/Request/RequestVariables.vue.js +69 -0
  79. package/dist/components/ApiClient/Request/RequestVariables.vue2.js +4 -0
  80. package/dist/components/ApiClient/Request/index.d.ts +1 -1
  81. package/dist/components/ApiClient/RequestHistory.vue.d.ts.map +1 -1
  82. package/dist/components/ApiClient/RequestHistory.vue.js +27 -0
  83. package/dist/components/ApiClient/RequestHistory.vue2.js +4 -0
  84. package/dist/components/ApiClient/RequestHistory.vue3.js +5 -0
  85. package/dist/components/ApiClient/RequestHistoryItem.vue.d.ts +3 -3
  86. package/dist/components/ApiClient/RequestHistoryItem.vue.d.ts.map +1 -1
  87. package/dist/components/ApiClient/RequestHistoryItem.vue.js +7 -0
  88. package/dist/components/ApiClient/RequestHistoryItem.vue2.js +49 -0
  89. package/dist/components/ApiClient/RequestHistoryItem.vue3.js +4 -0
  90. package/dist/components/ApiClient/RequestMethodSelect.vue.d.ts +11 -11
  91. package/dist/components/ApiClient/RequestMethodSelect.vue.d.ts.map +1 -1
  92. package/dist/components/ApiClient/RequestMethodSelect.vue.js +7 -0
  93. package/dist/components/ApiClient/RequestMethodSelect.vue2.js +42 -0
  94. package/dist/components/ApiClient/RequestMethodSelect.vue3.js +4 -0
  95. package/dist/components/ApiClient/Response/Response.vue.d.ts.map +1 -1
  96. package/dist/components/ApiClient/Response/Response.vue.js +65 -0
  97. package/dist/components/ApiClient/Response/Response.vue2.js +4 -0
  98. package/dist/components/ApiClient/Response/Response.vue3.js +5 -0
  99. package/dist/components/ApiClient/Response/ResponseBody.vue.d.ts +3 -3
  100. package/dist/components/ApiClient/Response/ResponseBody.vue.d.ts.map +1 -1
  101. package/dist/components/ApiClient/Response/ResponseBody.vue.js +54 -0
  102. package/dist/components/ApiClient/Response/ResponseBody.vue2.js +4 -0
  103. package/dist/components/ApiClient/Response/ResponseHeaders.vue.d.ts +3 -3
  104. package/dist/components/ApiClient/Response/ResponseHeaders.vue.d.ts.map +1 -1
  105. package/dist/components/ApiClient/Response/ResponseHeaders.vue.js +76 -0
  106. package/dist/components/ApiClient/Response/ResponseHeaders.vue2.js +4 -0
  107. package/dist/components/ApiClient/Response/ResponseMetaInformation.vue.d.ts +3 -3
  108. package/dist/components/ApiClient/Response/ResponseMetaInformation.vue.d.ts.map +1 -1
  109. package/dist/components/ApiClient/Response/ResponseMetaInformation.vue.js +56 -0
  110. package/dist/components/ApiClient/Response/ResponseMetaInformation.vue2.js +4 -0
  111. package/dist/components/ApiClient/Response/index.d.ts +1 -1
  112. package/dist/components/ApiClient/index.d.ts +1 -1
  113. package/dist/components/Badge/Badge.vue.d.ts.map +1 -1
  114. package/dist/components/CollapsibleSection/CollapsibleSection.vue.d.ts +11 -11
  115. package/dist/components/CollapsibleSection/CollapsibleSection.vue.d.ts.map +1 -1
  116. package/dist/components/CollapsibleSection/CollapsibleSection.vue.js +76 -0
  117. package/dist/components/CollapsibleSection/CollapsibleSection.vue2.js +4 -0
  118. package/dist/components/CollapsibleSection/CollapsibleSection.vue3.js +5 -0
  119. package/dist/components/CollapsibleSection/index.d.ts +1 -1
  120. package/dist/components/Grid/Grid.vue.d.ts +3 -3
  121. package/dist/components/Grid/Grid.vue.d.ts.map +1 -1
  122. package/dist/components/Grid/Grid.vue.js +7 -0
  123. package/dist/components/Grid/Grid.vue2.js +77 -0
  124. package/dist/components/Grid/Grid.vue3.js +4 -0
  125. package/dist/components/Grid/GridHeader.vue.d.ts +3 -3
  126. package/dist/components/Grid/GridHeader.vue.d.ts.map +1 -1
  127. package/dist/components/Grid/GridHeader.vue.js +7 -0
  128. package/dist/components/Grid/GridHeader.vue2.js +46 -0
  129. package/dist/components/Grid/GridHeader.vue3.js +4 -0
  130. package/dist/components/Grid/GridRow.vue.d.ts +8 -8
  131. package/dist/components/Grid/GridRow.vue.d.ts.map +1 -1
  132. package/dist/components/Grid/GridRow.vue.js +7 -0
  133. package/dist/components/Grid/GridRow.vue2.js +29 -0
  134. package/dist/components/Grid/GridRow.vue3.js +4 -0
  135. package/dist/components/Grid/GridRowEditable.vue.d.ts +3 -3
  136. package/dist/components/Grid/GridRowEditable.vue.d.ts.map +1 -1
  137. package/dist/components/Grid/GridRowEditable.vue.js +7 -0
  138. package/dist/components/Grid/GridRowEditable.vue2.js +105 -0
  139. package/dist/components/Grid/GridRowEditable.vue3.js +4 -0
  140. package/dist/components/Grid/GridRowGenerated.vue.d.ts +4 -4
  141. package/dist/components/Grid/GridRowGenerated.vue.d.ts.map +1 -1
  142. package/dist/components/Grid/GridRowGenerated.vue.js +7 -0
  143. package/dist/components/Grid/GridRowGenerated.vue2.js +37 -0
  144. package/dist/components/Grid/GridRowGenerated.vue3.js +4 -0
  145. package/dist/components/Grid/SimpleGrid.vue.d.ts +3 -3
  146. package/dist/components/Grid/SimpleGrid.vue.d.ts.map +1 -1
  147. package/dist/components/Grid/SimpleGrid.vue.js +7 -0
  148. package/dist/components/Grid/SimpleGrid.vue2.js +28 -0
  149. package/dist/components/Grid/SimpleGrid.vue3.js +4 -0
  150. package/dist/components/Grid/index.d.ts +2 -2
  151. package/dist/components/HelpfulLink.vue.d.ts +8 -8
  152. package/dist/components/HelpfulLink.vue.d.ts.map +1 -1
  153. package/dist/components/HelpfulLink.vue.js +7 -0
  154. package/dist/components/HelpfulLink.vue2.js +19 -0
  155. package/dist/components/HelpfulLink.vue3.js +4 -0
  156. package/dist/components/HttpMethod.vue.d.ts +9 -8
  157. package/dist/components/HttpMethod.vue.d.ts.map +1 -1
  158. package/dist/components/HttpMethod.vue.js +27 -0
  159. package/dist/components/HttpMethod.vue2.js +4 -0
  160. package/dist/components/ScalarAsciiArt.vue.d.ts +3 -3
  161. package/dist/components/ScalarAsciiArt.vue.d.ts.map +1 -1
  162. package/dist/components/ScalarAsciiArt.vue.js +7 -0
  163. package/dist/components/ScalarAsciiArt.vue2.js +23 -0
  164. package/dist/components/ScalarAsciiArt.vue3.js +4 -0
  165. package/dist/components/SimpleTable/SimpleCell.vue.d.ts +13 -12
  166. package/dist/components/SimpleTable/SimpleCell.vue.d.ts.map +1 -1
  167. package/dist/components/SimpleTable/SimpleCell.vue.js +7 -0
  168. package/dist/components/SimpleTable/SimpleCell.vue2.js +28 -0
  169. package/dist/components/SimpleTable/SimpleCell.vue3.js +4 -0
  170. package/dist/components/SimpleTable/SimpleHeader.vue.d.ts.map +1 -1
  171. package/dist/components/SimpleTable/SimpleHeader.vue.js +7 -0
  172. package/dist/components/SimpleTable/SimpleHeader.vue2.js +19 -0
  173. package/dist/components/SimpleTable/SimpleHeader.vue3.js +4 -0
  174. package/dist/components/SimpleTable/SimpleRow.vue.d.ts.map +1 -1
  175. package/dist/components/SimpleTable/SimpleRow.vue.js +13 -0
  176. package/dist/components/SimpleTable/SimpleRow.vue2.js +4 -0
  177. package/dist/components/SimpleTable/SimpleTable.vue.d.ts.map +1 -1
  178. package/dist/components/SimpleTable/SimpleTable.vue.js +15 -0
  179. package/dist/components/SimpleTable/SimpleTable.vue2.js +4 -0
  180. package/dist/components/SimpleTable/index.d.ts +4 -4
  181. package/dist/fixtures/httpHeaders.js +529 -0
  182. package/dist/fixtures/httpRequestMethods.js +41 -0
  183. package/dist/fixtures/index.d.ts +2 -2
  184. package/dist/helpers/concatenateUrlAndPath.js +9 -0
  185. package/dist/helpers/createPlaceholderRequest.js +14 -0
  186. package/dist/helpers/encodeStringAsBase64.js +6 -0
  187. package/dist/helpers/findVariables.js +7 -0
  188. package/dist/helpers/getRequestFromAuthentication.js +85 -0
  189. package/dist/helpers/getUrlFromServerState.js +12 -0
  190. package/dist/helpers/humanDiff.js +21 -0
  191. package/dist/helpers/index.d.ts +16 -16
  192. package/dist/helpers/mapFromArray.js +9 -0
  193. package/dist/helpers/normalizeHeaders.js +6 -0
  194. package/dist/helpers/normalizePath.js +9 -0
  195. package/dist/helpers/normalizeRequestMethod.d.ts +2 -1
  196. package/dist/helpers/normalizeRequestMethod.d.ts.map +1 -1
  197. package/dist/helpers/normalizeRequestMethod.js +14 -0
  198. package/dist/helpers/normalizeUrl.js +13 -0
  199. package/dist/helpers/prepareClientRequestConfig.d.ts +0 -7
  200. package/dist/helpers/prepareClientRequestConfig.d.ts.map +1 -1
  201. package/dist/helpers/prepareClientRequestConfig.js +41 -0
  202. package/dist/helpers/redirectToProxy.js +7 -0
  203. package/dist/helpers/replaceVariables.js +10 -0
  204. package/dist/helpers/sendRequest.js +111 -0
  205. package/dist/index.d.ts +1 -1
  206. package/dist/index.js +83 -33496
  207. package/dist/stores/index.d.ts +5 -5
  208. package/dist/stores/useApiClientStore.js +32 -0
  209. package/dist/stores/useAuthenticationStore.d.ts +1 -1
  210. package/dist/stores/useAuthenticationStore.d.ts.map +1 -1
  211. package/dist/stores/useAuthenticationStore.js +36 -0
  212. package/dist/stores/useOpenApiStore.d.ts +1 -1
  213. package/dist/stores/useOpenApiStore.js +24 -0
  214. package/dist/stores/useRequestStore.js +29 -0
  215. package/dist/stores/useServerStore.js +18 -0
  216. package/dist/style.css +1 -2567
  217. package/package.json +19 -18
  218. package/dist/Add-yNxGpRcH-B1LyqGlJ.js +0 -21
  219. package/dist/ArrowLeft-D7tW1xQo-BY1SMb43.js +0 -20
  220. package/dist/ArrowRight-DmO-sdb2-DYqgcTpu.js +0 -20
  221. package/dist/Background-CU9VIbfN-DvxzmwCx.js +0 -17
  222. package/dist/Brackets-CI207-BL-BBaUg7lM.js +0 -21
  223. package/dist/Branch-CXwj8YuG-IxKqRWkx.js +0 -34
  224. package/dist/CallToAction-XLYRSI1h-DkdGfSAS.js +0 -20
  225. package/dist/Checkmark-DhbrPM0P-Bnd3e6-4.js +0 -21
  226. package/dist/ChevronDown-Co7EAKAv-DHNwXUbS.js +0 -21
  227. package/dist/ChevronLeft-DYt0idAu-DAzCtmws.js +0 -21
  228. package/dist/ChevronRight-ylxToVWl-CDFDuBE1.js +0 -21
  229. package/dist/ChevronUp-xAnukIfj-CuKFLVD3.js +0 -21
  230. package/dist/Clipboard-CU_KxGEv-DWrQtWVi.js +0 -16
  231. package/dist/Close-xHiYwS8Q-CWI8mlaM.js +0 -21
  232. package/dist/CodeFolder-Cv_igzJE-CoWfaY0Z.js +0 -27
  233. package/dist/Cookie-CEHvXpqB-D960ImBy.js +0 -37
  234. package/dist/DarkMode-BMR457PH-CVcoMGeO.js +0 -16
  235. package/dist/Delete-BCZmxrDD-BHoCf_u4.js +0 -21
  236. package/dist/Discord-BHYOFBB2-NYBGYy-_.js +0 -16
  237. package/dist/DocsPage-Dwx7ZMU9-D3s0nKun.js +0 -27
  238. package/dist/Duplicate-DRWEv4R_-5xIOj7QF.js +0 -17
  239. package/dist/Edit-Br04RNYb-BhCyac4t.js +0 -19
  240. package/dist/Ellipses-Bo_X36Hx-CsJmKvlE.js +0 -16
  241. package/dist/Error-C5LiISnw-BIMzByff.js +0 -16
  242. package/dist/ExternalLink-DK8L-EH7-ANJEzoHO.js +0 -21
  243. package/dist/FilterList-CS8Il7NE-CagRN2wd.js +0 -21
  244. package/dist/Folder-CTvnVSEo-B2z_4abD.js +0 -16
  245. package/dist/GitHub-NdE6Zs9k-BAGzgXH_.js +0 -16
  246. package/dist/Hide-BgcCtErz-CAC_2jsk.js +0 -27
  247. package/dist/History-D9nmhNIn-BU9mR55a.js +0 -27
  248. package/dist/JsonObject-hGdHUQ4M-Cm1hXgAn.js +0 -21
  249. package/dist/Key-CWXJqX28-DdNUhB11.js +0 -21
  250. package/dist/Leave-K1J3uwoG-WgTmlwgs.js +0 -21
  251. package/dist/LightDarkModeToggle-De3vO47x-D3WCuqcH.js +0 -16
  252. package/dist/LightMode-BeoMphBY-CDedz2JM.js +0 -16
  253. package/dist/Link-Bzuc__Nc-Bvtx0HZG.js +0 -21
  254. package/dist/Lock-xhiH1mKz-Rrlr3fGv.js +0 -21
  255. package/dist/Logo-DwEDtgj--pmO6SPQX.js +0 -19
  256. package/dist/LogoAPI-CohCfL3L-CzbaXJLs.js +0 -19
  257. package/dist/LogoClient-Bq5O2QL2-Bw2epmD5.js +0 -16
  258. package/dist/LogoMarket-DwlApcab-_INRDSLs.js +0 -16
  259. package/dist/LogoSwagger-CH60H5qW-DFEpFXIU.js +0 -16
  260. package/dist/Magic-Dsi9_bEc-BYN42_eH.js +0 -21
  261. package/dist/Menu-CFK5cOsm-CqE9Tsgr.js +0 -21
  262. package/dist/Page-DA7CO5gc-DfccxJJv.js +0 -17
  263. package/dist/PaperAirplane-BC-4mGEB-BrV5fX8s.js +0 -21
  264. package/dist/Payment-hzcXP1Xb-B2G1p4-i.js +0 -21
  265. package/dist/Play-Cd4-o7Ji-xTTrC7nd.js +0 -16
  266. package/dist/Refresh-BHRzzQ8P-DMGXg62S.js +0 -27
  267. package/dist/Response-DsTlT4S--CGVlb2Cj.js +0 -20
  268. package/dist/Search-DqtlswRG-D-hprEk0.js +0 -19
  269. package/dist/Show-CbiiMLUa-G7jnye-t.js +0 -27
  270. package/dist/SideBarClosed-K53-CtXh-DmurFyoL.js +0 -17
  271. package/dist/SideBarOpen-C7UgT82P-BG6NE13Z.js +0 -21
  272. package/dist/Sort-CaVMT7jM-CseseOA9.js +0 -16
  273. package/dist/Terminal-DJ7x2McL-BUB3Qs0m.js +0 -27
  274. package/dist/ThumbsDown-BMgnsASL-B2YFxB8i.js +0 -21
  275. package/dist/ThumbsUp-C1j6zY2j-DKqh3z1D.js +0 -21
  276. package/dist/Trash-BpA3zWPD-BAjuQdys.js +0 -21
  277. package/dist/Unlock-HVYHMLxl-D89vmw_N.js +0 -16
  278. package/dist/Upload-D_pwqBDY-Bg4YHBfw.js +0 -16
  279. package/dist/User-BLGkPc5I-XzPjc0Gv.js +0 -16
  280. package/dist/prism-autoloader-Dlh8Vzlw-BR-Zk31i.js +0 -370
  281. package/dist/programming-framework-angular-DD4Vjgbk-Bzc9D9am.js +0 -16
  282. package/dist/programming-framework-astro-CLfrRt19-CfPlyy6T.js +0 -16
  283. package/dist/programming-framework-laravel-kAy2wVLy-Cty_4oXq.js +0 -21
  284. package/dist/programming-framework-nextdotjs-BKdd_DY_-DUTv-t1Q.js +0 -16
  285. package/dist/programming-framework-react-PDgmtZuN-DdUogL85.js +0 -16
  286. package/dist/programming-framework-vuedotjs-Cim7D5tw-COH3lflr.js +0 -17
  287. package/dist/programming-language-c-hPGu2Zvg-QG1pSdJG.js +0 -16
  288. package/dist/programming-language-clojure-uqYXn7U6-UAUP9oZz.js +0 -16
  289. package/dist/programming-language-csharp-CGxYkVA6-DkAhKOzF.js +0 -16
  290. package/dist/programming-language-css3-Dpp4Cr6b-Bf5XF7-p.js +0 -16
  291. package/dist/programming-language-go-CuKo8iD9-Dkewryvm.js +0 -16
  292. package/dist/programming-language-html5-DlqJK4EL-Bl9dTA-D.js +0 -16
  293. package/dist/programming-language-http-f3NXC-Ae-BY_awyxD.js +0 -16
  294. package/dist/programming-language-java-BBodetdf-BHELDLTj.js +0 -18
  295. package/dist/programming-language-javascript-VxLvi1QG-DFjYF_MP.js +0 -16
  296. package/dist/programming-language-json-Dq_K-q5f-BlovheYp.js +0 -17
  297. package/dist/programming-language-kotlin-eTASnmL3-D8AoUcB1.js +0 -16
  298. package/dist/programming-language-node-oucaVOgY-CzP8mlvs.js +0 -17
  299. package/dist/programming-language-objc-CPgQxmNi-DjsFgTok.js +0 -17
  300. package/dist/programming-language-ocaml-Q1-Jv5Q5-D2vDLKwp.js +0 -16
  301. package/dist/programming-language-php-GY38f8r4-DQ_8EMFH.js +0 -16
  302. package/dist/programming-language-powershell-xLOxAYP_-DAvJS1A9.js +0 -20
  303. package/dist/programming-language-python-Ct-_kNjo-BCrlyfv0.js +0 -16
  304. package/dist/programming-language-r-Ch3T1qiC-I_IE4uwz.js +0 -20
  305. package/dist/programming-language-ruby-DhdM4d7g-Dd3La6Kn.js +0 -16
  306. package/dist/programming-language-scala-BVg0dToJ-Bz_n-CNw.js +0 -16
  307. package/dist/programming-language-shell-uj1zoCVW-Bg0d3E28.js +0 -16
  308. package/dist/programming-language-swift-Dn72xPjg-BUvu5_SV.js +0 -16
  309. package/dist/programming-language-typescript-CdF-HuRi-CaDO02MW.js +0 -16
  310. package/dist/programming-script-code-CUHv6qR8-CzD7HjI2.js +0 -21
  311. package/dist/programming-tool-git-C-BMJCAo-BFJIU2--.js +0 -16
  312. package/dist/programming-tool-tailwindcss-xjXi0E6g-ky2wbsII.js +0 -16
package/CHANGELOG.md CHANGED
@@ -1,5 +1,37 @@
1
1
  # @scalar/api-client
2
2
 
3
+ ## 2.0.0
4
+
5
+ ### Minor Changes
6
+
7
+ - 7f8ef74: chore: remove aliasing
8
+
9
+ ### Patch Changes
10
+
11
+ - 1de697b: fix: URL is not encoded when sent to the proxy
12
+ - 689677a: fix: auto importing css backup
13
+ - 326dcfb: chore: remove @scalar/use-modal package
14
+ - 8494349: Migrate to highlightjs based syntax highlighting
15
+ - b38c7ed: Update build configs to a standardized format
16
+ - 6fbb57e: feat: release all the packages
17
+ - e63b12d: feat: better error output for failed requests
18
+ - Updated dependencies [190bcb6]
19
+ - Updated dependencies [7f8ef74]
20
+ - Updated dependencies [f82a767]
21
+ - Updated dependencies [326dcfb]
22
+ - Updated dependencies [96347a1]
23
+ - Updated dependencies [8494349]
24
+ - Updated dependencies [b38c7ed]
25
+ - Updated dependencies [6fbb57e]
26
+ - Updated dependencies [94084bf]
27
+ - Updated dependencies [c5760b9]
28
+ - @scalar/components@0.11.0
29
+ - @scalar/use-codemirror@0.11.0
30
+ - @scalar/use-tooltip@0.7.0
31
+ - @scalar/use-toasts@0.7.0
32
+ - @scalar/oas-utils@0.2.0
33
+ - @scalar/themes@0.9.0
34
+
3
35
  ## 1.3.4
4
36
 
5
37
  ### Patch Changes
@@ -0,0 +1,9 @@
1
+ const s = (t, e) => {
2
+ const o = t.__vccOpts || t;
3
+ for (const [r, c] of e)
4
+ o[r] = c;
5
+ return o;
6
+ };
7
+ export {
8
+ s as default
9
+ };
@@ -0,0 +1,34 @@
1
+ const B = ` .,,uod8B8bou,,.
2
+ ..,uod8BBBBBBBBBBBBBBBBRPFT?l!i:.
3
+ ||||||||||||||!?TFPRBBBBBBBBBBBBBBB8m=,
4
+ |||| '""^^!!||||||||||TFPRBBBVT!:...!
5
+ |||| '""^^!!|||||?!:.......!
6
+ |||| ||||.........!
7
+ |||| ||||.........!
8
+ |||| ||||.........!
9
+ |||| ||||.........!
10
+ |||| ||||.........!
11
+ |||| ||||.........!
12
+ ||||, ||||.........\`
13
+ |||||!!-._ ||||.......;.
14
+ ':!|||||||||!!-._ ||||.....bBBBBWdou,.
15
+ bBBBBB86foi!|||||||!!-..:|||!..bBBBBBBBBBBBBBBY!
16
+ ::!?TFPRBBBBBB86foi!||||||||!!bBBBBBBBBBBBBBBY..!
17
+ :::::::::!?TFPRBBBBBB86ftiaabBBBBBBBBBBBBBBY....!
18
+ :::;\`"^!:;::::::!?TFPRBBBBBBBBBBBBBBBBBBBY......!
19
+ ;::::::...''^::::::::::!?TFPRBBBBBBBBBBY........!
20
+ .ob86foi;::::::::::::::::::::::::!?TFPRBY..........\`
21
+ .b888888888886foi;:::::::::::::::::::::::..........\`
22
+ .b888888888888888888886foi;::::::::::::::::..........
23
+ .b888888888888888888888888888886foi;:::::::::......\`
24
+ !Tf998888888888888888888888888888888886foi;:::....\`
25
+ '"^!|Tf9988888888888888888888888888888888!::..\`
26
+ '"^!|Tf998888888888888888888888889!! '\`
27
+ '"^!|Tf9988888888888888888!!\` iBBbo.
28
+ '"^!|Tf998888888889!\` WBBBBbo.
29
+ '"^!|Tf9989!\` YBBBP^'
30
+ '"^!\` \`
31
+ `;
32
+ export {
33
+ B as default
34
+ };
@@ -0,0 +1,5 @@
1
+ import { useEventBus as e } from "@vueuse/core";
2
+ const t = e(Symbol());
3
+ export {
4
+ t as clickGeneratedParameter
5
+ };
@@ -1,15 +1,15 @@
1
- declare const _default: import("vue").DefineComponent<__VLS_TypePropsToRuntimeProps<{
1
+ declare const _default: import("vue").DefineComponent<__VLS_TypePropsToOption<{
2
2
  proxyUrl?: string | undefined;
3
3
  }>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
4
4
  onSend: () => void;
5
- }, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<__VLS_TypePropsToRuntimeProps<{
5
+ }, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<__VLS_TypePropsToOption<{
6
6
  proxyUrl?: string | undefined;
7
7
  }>>> & {
8
8
  onOnSend?: (() => any) | undefined;
9
9
  }, {}, {}>;
10
10
  export default _default;
11
11
  type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
12
- type __VLS_TypePropsToRuntimeProps<T> = {
12
+ type __VLS_TypePropsToOption<T> = {
13
13
  [K in keyof T]-?: {} extends Pick<T, K> ? {
14
14
  type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
15
15
  } : {
@@ -1 +1 @@
1
- {"version":3,"file":"AddressBar.vue.d.ts","sourceRoot":"","sources":["../../../src/components/ApiClient/AddressBar.vue.ts"],"names":[],"mappings":";;;;;;;;;AAkdA,wBASG;AACH,KAAK,sBAAsB,CAAC,CAAC,IAAI,CAAC,SAAS,SAAS,GAAG,KAAK,GAAG,CAAC,CAAC;AACjE,KAAK,6BAA6B,CAAC,CAAC,IAAI;KAAG,CAAC,IAAI,MAAM,CAAC,CAAC,CAAC,GAAG,EAAE,SAAS,IAAI,CAAC,CAAC,EAAE,CAAC,CAAC,GAAG;QAAE,IAAI,EAAE,OAAO,KAAK,EAAE,QAAQ,CAAC,sBAAsB,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAA;KAAE,GAAG;QAAE,IAAI,EAAE,OAAO,KAAK,EAAE,QAAQ,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;QAAC,QAAQ,EAAE,IAAI,CAAA;KAAE;CAAE,CAAC"}
1
+ {"version":3,"file":"AddressBar.vue.d.ts","sourceRoot":"","sources":["../../../src/components/ApiClient/AddressBar.vue"],"names":[],"mappings":";;;;;;;;;AA6vBA,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,8 @@
1
+ import o from "./AddressBar.vue2.js";
2
+ import "./AddressBar.vue3.js";
3
+ import "./AddressBar.vue4.js";
4
+ import r from "../../_virtual/_plugin-vue_export-helper.js";
5
+ const a = /* @__PURE__ */ r(o, [["__scopeId", "data-v-c2ef499b"]]);
6
+ export {
7
+ a as default
8
+ };
@@ -0,0 +1,158 @@
1
+ import { defineComponent as O, ref as y, computed as d, openBlock as p, createElementBlock as m, Fragment as $, createCommentVNode as g, createElementVNode as e, normalizeClass as B, createVNode as a, unref as r, withCtx as T, pushScopeId as U, popScopeId as E } from "vue";
2
+ import { useModal as I, ScalarModal as N } from "@scalar/components";
3
+ import { CodeMirror as Z } from "@scalar/use-codemirror";
4
+ import { isMacOS as A } from "@scalar/use-tooltip";
5
+ import { useMagicKeys as z, whenever as F } from "@vueuse/core";
6
+ import K from "./RequestHistory.vue.js";
7
+ import "./RequestHistory.vue2.js";
8
+ import P from "./RequestMethodSelect.vue.js";
9
+ import { prepareClientRequestConfig as j } from "../../helpers/prepareClientRequestConfig.js";
10
+ import { sendRequest as D } from "../../helpers/sendRequest.js";
11
+ import { useRequestStore as G } from "../../stores/useRequestStore.js";
12
+ const i = (l) => (U("data-v-c2ef499b"), l = l(), E(), l), J = {
13
+ key: 0,
14
+ class: "loader"
15
+ }, Q = { class: "url-form" }, W = { class: "url-form-field" }, X = { class: "url-form-input-wrapper cm-scroller" }, Y = /* @__PURE__ */ i(() => /* @__PURE__ */ e("div", { class: "url-form-input-fade__left" }, null, -1)), ee = /* @__PURE__ */ i(() => /* @__PURE__ */ e("div", { class: "url-form-input-fade__right" }, null, -1)), te = {
16
+ key: 0,
17
+ class: "history"
18
+ }, oe = /* @__PURE__ */ i(() => /* @__PURE__ */ e("svg", {
19
+ fill: "none",
20
+ height: "48",
21
+ viewBox: "0 0 14 14",
22
+ width: "48",
23
+ xmlns: "http://www.w3.org/2000/svg"
24
+ }, [
25
+ /* @__PURE__ */ e("g", { id: "rewind-clock--back-return-clock-timer-countdown" }, [
26
+ /* @__PURE__ */ e("path", {
27
+ id: "Vector 1561 (Stroke)",
28
+ "clip-rule": "evenodd",
29
+ d: "M6.99999 2.75C7.4142 2.75 7.74999 3.08579 7.74999 3.5V7.5C7.74999 7.76345 7.61177 8.00758 7.38586 8.14312L4.88586 9.64312C4.53068 9.85623 4.06998 9.74106 3.85687 9.38587C3.64376 9.03069 3.75893 8.56999 4.11412 8.35688L6.24999 7.07536V3.5C6.24999 3.08579 6.58578 2.75 6.99999 2.75Z",
30
+ fill: "currentColor",
31
+ "fill-rule": "evenodd"
32
+ }),
33
+ /* @__PURE__ */ e("path", {
34
+ id: "Union",
35
+ "clip-rule": "evenodd",
36
+ d: "M12.5 7C12.5 3.96243 10.0376 1.5 7 1.5C5.24916 1.5 3.68853 2.31796 2.68066 3.59456L3.64645 4.56034C3.96143 4.87533 3.73835 5.4139 3.29289 5.4139H0.5C0.223857 5.4139 0 5.19004 0 4.9139V2.121C0 1.67555 0.53857 1.45247 0.853553 1.76745L1.61439 2.52829C2.89781 0.984301 4.83356 0 7 0C10.866 0 14 3.13401 14 7C14 10.866 10.866 14 7 14C3.68902 14 0.916591 11.702 0.187329 8.61473C0.0921059 8.21161 0.341704 7.80762 0.744824 7.7124C1.14794 7.61717 1.55193 7.86677 1.64715 8.26989C2.22013 10.6955 4.40025 12.5 7 12.5C10.0376 12.5 12.5 10.0376 12.5 7Z",
37
+ fill: "currentColor",
38
+ "fill-rule": "evenodd"
39
+ })
40
+ ])
41
+ ], -1)), se = [
42
+ oe
43
+ ], re = ["disabled"], le = /* @__PURE__ */ i(() => /* @__PURE__ */ e("svg", {
44
+ fill: "none",
45
+ height: "48",
46
+ viewBox: "0 0 14 14",
47
+ width: "48",
48
+ xmlns: "http://www.w3.org/2000/svg"
49
+ }, [
50
+ /* @__PURE__ */ e("g", { id: "send-email--mail-send-email-paper-airplane" }, [
51
+ /* @__PURE__ */ e("path", {
52
+ id: "Subtract",
53
+ "clip-rule": "evenodd",
54
+ d: "M11.8215 0.0977331C12.1097 -0.0075178 12.422 -0.0287134 12.7219 0.0367172C13.0248 0.102803 13.3024 0.254481 13.5216 0.473719C13.7409 0.692957 13.8926 0.970537 13.9586 1.27346C14.0241 1.57338 14.0029 1.88566 13.8976 2.17389L10.3236 12.8859L10.3234 12.8866C10.2363 13.15 10.083 13.3867 9.87813 13.5739C9.67383 13.7606 9.42512 13.8917 9.15575 13.9549C8.88633 14.0206 8.60444 14.015 8.33777 13.9388C8.07134 13.8627 7.82929 13.7187 7.63532 13.5209L5.71798 11.6123L3.70392 12.6538C3.54687 12.735 3.3586 12.7272 3.20877 12.6333C3.05895 12.5395 2.96984 12.3734 2.97443 12.1967L3.057 9.01294L10.102 3.89553C10.3812 3.69267 10.4432 3.30182 10.2403 3.02255C10.0375 2.74327 9.64662 2.68133 9.36734 2.88419L2.20286 8.0884L0.473156 6.35869L0.473098 6.35864L0.472971 6.35851C0.285648 6.17132 0.147746 5.94054 0.0716498 5.68688C-0.00390565 5.43503 -0.016181 5.16847 0.0358684 4.91079C0.087985 4.62928 0.213827 4.36658 0.400607 4.14951C0.588668 3.93095 0.831681 3.76658 1.10453 3.67339L1.1079 3.67224L1.1079 3.67225L11.8215 0.0977331Z",
55
+ fill: "currentColor",
56
+ "fill-rule": "evenodd"
57
+ })
58
+ ])
59
+ ], -1)), ne = /* @__PURE__ */ i(() => /* @__PURE__ */ e("span", null, "Send", -1)), ie = [
60
+ le,
61
+ ne
62
+ ], de = { class: "address-bar-content" }, ye = /* @__PURE__ */ O({
63
+ __name: "AddressBar",
64
+ props: {
65
+ proxyUrl: {}
66
+ },
67
+ emits: ["onSend"],
68
+ setup(l, { emit: L }) {
69
+ const q = l, b = L, C = z();
70
+ F(A() ? C.meta_enter : C.ctrl_enter, _);
71
+ const n = y(!1), u = y(!1), {
72
+ activeRequest: o,
73
+ addRequestToHistory: k,
74
+ requestHistoryOrder: M,
75
+ readOnly: c,
76
+ setActiveRequest: h
77
+ } = G(), f = I(), S = d(() => o.url), R = d(() => o.type), x = d(() => o.path), v = d(() => `${S.value}${x.value}`);
78
+ async function _() {
79
+ const s = j({
80
+ request: { ...o }
81
+ });
82
+ u.value = !0, b("onSend");
83
+ const t = await D(s, q.proxyUrl);
84
+ t && k(t), u.value = !1;
85
+ }
86
+ const V = (s) => {
87
+ c.value || o.url + o.path !== s && h({ ...o, url: s, path: "" });
88
+ }, H = (s) => {
89
+ s && h({
90
+ ...o,
91
+ type: s.toLocaleLowerCase()
92
+ });
93
+ };
94
+ return (s, t) => (p(), m($, null, [
95
+ u.value ? (p(), m("div", J)) : g("", !0),
96
+ e("div", {
97
+ class: B(["address-bar", { "address-bar--with-history": n.value }])
98
+ }, [
99
+ e("div", Q, [
100
+ e("div", W, [
101
+ a(P, {
102
+ readOnly: r(c),
103
+ requestMethod: R.value,
104
+ onChange: H
105
+ }, null, 8, ["readOnly", "requestMethod"]),
106
+ e("div", X, [
107
+ Y,
108
+ a(r(Z), {
109
+ class: "url-form-input",
110
+ content: v.value,
111
+ disableEnter: "",
112
+ readOnly: r(c),
113
+ withoutTheme: "",
114
+ withVariables: "",
115
+ onChange: V
116
+ }, null, 8, ["content", "readOnly"]),
117
+ ee
118
+ ]),
119
+ r(M).length ? (p(), m("div", te, [
120
+ e("div", {
121
+ class: "history-toggle",
122
+ onClick: t[0] || (t[0] = (w) => r(f).show())
123
+ }, se)
124
+ ])) : g("", !0),
125
+ e("button", {
126
+ class: "send-button",
127
+ disabled: !v.value.trim().length,
128
+ type: "submit",
129
+ onClick: _
130
+ }, ie, 8, re)
131
+ ])
132
+ ]),
133
+ e("div", {
134
+ class: "address-bar-close",
135
+ onClick: t[1] || (t[1] = (w) => n.value = !1)
136
+ }),
137
+ e("div", de, [
138
+ a(r(N), {
139
+ state: r(f),
140
+ title: "Request History",
141
+ variant: "history"
142
+ }, {
143
+ default: T(() => [
144
+ a(K, {
145
+ showHistory: n.value,
146
+ onToggle: t[2] || (t[2] = (w) => n.value = !n.value)
147
+ }, null, 8, ["showHistory"])
148
+ ]),
149
+ _: 1
150
+ }, 8, ["state"])
151
+ ])
152
+ ], 2)
153
+ ], 64));
154
+ }
155
+ });
156
+ export {
157
+ ye as default
158
+ };
@@ -0,0 +1,4 @@
1
+ const e = "";
2
+ export {
3
+ e as default
4
+ };
@@ -0,0 +1,4 @@
1
+ const e = "";
2
+ export {
3
+ e as default
4
+ };
@@ -1,7 +1,7 @@
1
1
  import '@scalar/components/style.css';
2
2
  import { type ThemeId } from '@scalar/themes';
3
3
  import '@scalar/themes/style.css';
4
- declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
4
+ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToOption<{
5
5
  proxyUrl?: string | undefined;
6
6
  readOnly?: boolean | undefined;
7
7
  theme?: ThemeId | undefined;
@@ -14,7 +14,7 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
14
14
  }>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
15
15
  escapeKeyPress: () => void;
16
16
  toggleSidebar: () => void;
17
- }, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
17
+ }, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToOption<{
18
18
  proxyUrl?: string | undefined;
19
19
  readOnly?: boolean | undefined;
20
20
  theme?: ThemeId | undefined;
@@ -36,15 +36,6 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
36
36
  sidebar?(_: {}): any;
37
37
  }>;
38
38
  export default _default;
39
- type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
40
- type __VLS_TypePropsToRuntimeProps<T> = {
41
- [K in keyof T]-?: {} extends Pick<T, K> ? {
42
- type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
43
- } : {
44
- type: import('vue').PropType<T[K]>;
45
- required: true;
46
- };
47
- };
48
39
  type __VLS_WithDefaults<P, D> = {
49
40
  [K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_Prettify<P[K] & {
50
41
  default: D[K];
@@ -58,4 +49,13 @@ type __VLS_WithTemplateSlots<T, S> = T & {
58
49
  $slots: S;
59
50
  };
60
51
  };
52
+ type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
53
+ type __VLS_TypePropsToOption<T> = {
54
+ [K in keyof T]-?: {} extends Pick<T, K> ? {
55
+ type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
56
+ } : {
57
+ type: import('vue').PropType<T[K]>;
58
+ required: true;
59
+ };
60
+ };
61
61
  //# sourceMappingURL=ApiClient.vue.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"ApiClient.vue.d.ts","sourceRoot":"","sources":["../../../src/components/ApiClient/ApiClient.vue.ts"],"names":[],"mappings":"AAGA,OAAO,8BAA8B,CAAA;AACrC,OAAO,EAAE,KAAK,OAAO,EAAe,MAAM,gBAAgB,CAAA;AAC1D,OAAO,0BAA0B,CAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AA4ZjC,wBAAwG;AACxG,KAAK,sBAAsB,CAAC,CAAC,IAAI,CAAC,SAAS,SAAS,GAAG,KAAK,GAAG,CAAC,CAAC;AACjE,KAAK,6BAA6B,CAAC,CAAC,IAAI;KAAG,CAAC,IAAI,MAAM,CAAC,CAAC,CAAC,GAAG,EAAE,SAAS,IAAI,CAAC,CAAC,EAAE,CAAC,CAAC,GAAG;QAAE,IAAI,EAAE,OAAO,KAAK,EAAE,QAAQ,CAAC,sBAAsB,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAA;KAAE,GAAG;QAAE,IAAI,EAAE,OAAO,KAAK,EAAE,QAAQ,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;QAAC,QAAQ,EAAE,IAAI,CAAA;KAAE;CAAE,CAAC;AAC9M,KAAK,kBAAkB,CAAC,CAAC,EAAE,CAAC,IAAI;KAE1B,CAAC,IAAI,MAAM,IAAI,CAAC,CAAC,EAAE,MAAM,CAAC,CAAC,GAAG,CAAC,SAAS,MAAM,CAAC,GAAG,cAAc,CAAC,CAAC,CAAC,CAAC,CAAC,GAAG;QACxE,OAAO,EAAE,CAAC,CAAC,CAAC,CAAC,CAAA;KACb,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;CACT,CAAC;AACN,KAAK,cAAc,CAAC,CAAC,IAAI;KAAG,CAAC,IAAI,MAAM,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;CAAG,GAAG,EAAE,CAAC;AACxD,KAAK,uBAAuB,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG;IAAE,QAAO;QAClD,MAAM,EAAE,CAAC,CAAC;KACT,CAAA;CAAE,CAAC"}
1
+ {"version":3,"file":"ApiClient.vue.d.ts","sourceRoot":"","sources":["../../../src/components/ApiClient/ApiClient.vue"],"names":[],"mappings":"AA8TA,OAAO,8BAA8B,CAAA;AACrC,OAAO,EAAE,KAAK,OAAO,EAAe,MAAM,gBAAgB,CAAA;AAC1D,OAAO,0BAA0B,CAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AA+VjC,wBAAwG;AAOxG,KAAK,kBAAkB,CAAC,CAAC,EAAE,CAAC,IAAI;KAC1B,CAAC,IAAI,MAAM,IAAI,CAAC,CAAC,EAAE,MAAM,CAAC,CAAC,GAAG,CAAC,SAAS,MAAM,CAAC,GAC7C,cAAc,CAAC,CAAC,CAAC,CAAC,CAAC,GAAG;QAAE,OAAO,EAAE,CAAC,CAAC,CAAC,CAAC,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,uBAAuB,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG;IACpC,QAAO;QACN,MAAM,EAAE,CAAC,CAAC;KAEV,CAAA;CACD,CAAC;AAEN,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,124 @@
1
+ import { defineComponent as C, ref as K, watch as O, openBlock as i, createElementBlock as u, Fragment as f, createVNode as a, unref as e, withKeys as x, withCtx as s, createElementVNode as n, renderSlot as _, createCommentVNode as F, createBlock as P, normalizeClass as y } from "vue";
2
+ import { TabGroup as q, TabList as D, Tab as b, TabPanels as U, TabPanel as g } from "@headlessui/vue";
3
+ import "@scalar/components/style.css";
4
+ import { ThemeStyles as N } from "@scalar/themes";
5
+ import "@scalar/themes/style.css";
6
+ import { useMagicKeys as V, whenever as h, useMediaQuery as A } from "@vueuse/core";
7
+ import E from "../HttpMethod.vue.js";
8
+ import I from "./AddressBar.vue.js";
9
+ import v from "./Request/Request.vue.js";
10
+ import "./Request/Request.vue2.js";
11
+ import w from "./Response/Response.vue.js";
12
+ import "./Response/Response.vue2.js";
13
+ import { useRequestStore as M } from "../../stores/useRequestStore.js";
14
+ const z = { class: "scalar-api-client__main" }, se = /* @__PURE__ */ C({
15
+ __name: "ApiClient",
16
+ props: {
17
+ proxyUrl: {},
18
+ readOnly: { type: Boolean, default: !1 },
19
+ theme: {},
20
+ withDefaultFonts: { type: Boolean, default: !0 },
21
+ showSideBar: { type: Boolean, default: !1 }
22
+ },
23
+ emits: ["escapeKeyPress", "toggleSidebar"],
24
+ setup(S, { emit: B }) {
25
+ const m = S, r = B, p = V();
26
+ h(p.escape, () => r("escapeKeyPress")), h(p.meta_b, () => r("toggleSidebar"));
27
+ const { activeRequest: T, readOnly: R } = M(), k = A("(max-width: 820px)"), c = K(0), $ = {
28
+ Request: 0,
29
+ Response: 1
30
+ };
31
+ function d(t) {
32
+ c.value = t;
33
+ }
34
+ return O(
35
+ () => m.readOnly,
36
+ () => {
37
+ R.value = m.readOnly;
38
+ },
39
+ { immediate: !0 }
40
+ ), (t, o) => (i(), u(f, null, [
41
+ a(e(N), {
42
+ id: t.theme,
43
+ withDefaultFonts: t.withDefaultFonts
44
+ }, null, 8, ["id", "withDefaultFonts"]),
45
+ a(E, {
46
+ class: "scalar-api-client",
47
+ method: e(T).type ?? "get",
48
+ property: "--scalar-api-client-color",
49
+ onKeydown: o[1] || (o[1] = x((l) => r("escapeKeyPress"), ["esc"]))
50
+ }, {
51
+ default: s(() => [
52
+ n("div", null, [
53
+ _(t.$slots, "address-bar-controls"),
54
+ a(I, {
55
+ proxyUrl: t.proxyUrl,
56
+ onOnSend: o[0] || (o[0] = (l) => d($.Response))
57
+ }, null, 8, ["proxyUrl"])
58
+ ]),
59
+ n("div", z, [
60
+ t.showSideBar ? _(t.$slots, "sidebar", { key: 0 }) : F("", !0),
61
+ e(k) ? (i(), P(e(q), {
62
+ key: 2,
63
+ selectedIndex: c.value,
64
+ onChange: d
65
+ }, {
66
+ default: s(() => [
67
+ a(e(D), { class: "scalar-api-client__mobile-navigation" }, {
68
+ default: s(() => [
69
+ a(e(b), { class: "scalar-api-client__mobile-navigation__toggle" }, {
70
+ default: s(({ selected: l }) => [
71
+ n("span", {
72
+ class: y({
73
+ "scalar-api-client__mobile-navigation--active": l
74
+ })
75
+ }, " Request ", 2)
76
+ ]),
77
+ _: 1
78
+ }),
79
+ a(e(b), { class: "scalar-api-client__mobile-navigation__toggle" }, {
80
+ default: s(({ selected: l }) => [
81
+ n("span", {
82
+ class: y({
83
+ "scalar-api-client__mobile-navigation--active": l
84
+ })
85
+ }, " Response ", 2)
86
+ ]),
87
+ _: 1
88
+ })
89
+ ]),
90
+ _: 1
91
+ }),
92
+ a(e(U), { as: "template" }, {
93
+ default: s(() => [
94
+ a(e(g), { as: "template" }, {
95
+ default: s(() => [
96
+ a(e(v))
97
+ ]),
98
+ _: 1
99
+ }),
100
+ a(e(g), { as: "template" }, {
101
+ default: s(() => [
102
+ a(e(w))
103
+ ]),
104
+ _: 1
105
+ })
106
+ ]),
107
+ _: 1
108
+ })
109
+ ]),
110
+ _: 1
111
+ }, 8, ["selectedIndex"])) : (i(), u(f, { key: 1 }, [
112
+ a(e(v)),
113
+ a(e(w))
114
+ ], 64))
115
+ ])
116
+ ]),
117
+ _: 3
118
+ }, 8, ["method"])
119
+ ], 64));
120
+ }
121
+ });
122
+ export {
123
+ se as default
124
+ };
@@ -0,0 +1,4 @@
1
+ const e = "";
2
+ export {
3
+ e as default
4
+ };
@@ -0,0 +1,5 @@
1
+ import o from "./ApiClient.vue.js";
2
+ import "./ApiClient.vue2.js";
3
+ export {
4
+ o as default
5
+ };
@@ -1 +1 @@
1
- {"version":3,"file":"Request.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/ApiClient/Request/Request.vue.ts"],"names":[],"mappings":";AA4PA,wBAKG"}
1
+ {"version":3,"file":"Request.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/ApiClient/Request/Request.vue"],"names":[],"mappings":";AA2jBA,wBAKG"}
@@ -0,0 +1,79 @@
1
+ import { defineComponent as p, computed as c, openBlock as l, createElementBlock as f, createElementVNode as s, withDirectives as h, unref as t, vModelText as q, createVNode as a, createBlock as v, createCommentVNode as y } from "vue";
2
+ import b from "./RequestBody.vue.js";
3
+ import k from "./RequestCookies.vue.js";
4
+ import "./RequestCookies.vue2.js";
5
+ import g from "./RequestHeaders.vue.js";
6
+ import R from "./RequestQuery.vue.js";
7
+ import B from "./RequestVariables.vue.js";
8
+ import { getRequestFromAuthentication as A } from "../../../helpers/getRequestFromAuthentication.js";
9
+ import C from "./RequestAuthentication/RequestAuthentication.vue.js";
10
+ import { useRequestStore as S } from "../../../stores/useRequestStore.js";
11
+ import { useAuthenticationStore as $ } from "../../../stores/useAuthenticationStore.js";
12
+ import { useOpenApiStore as x } from "../../../stores/useOpenApiStore.js";
13
+ const D = { class: "scalar-api-client__main__left custom-scroll" }, N = { class: "scalar-api-client__main__content" }, V = { class: "scalar-api-client__main__content__header" }, w = /* @__PURE__ */ s("label", null, "Request", -1), E = { class: "meta" }, H = { class: "meta-item meta-item__input" }, O = { class: "scalar-api-client__main__content__body" }, Q = /* @__PURE__ */ s("div", { class: "scalar-api-client__main__scroll-container" }, null, -1), T = !0, Y = /* @__PURE__ */ p({
14
+ __name: "Request",
15
+ setup(F) {
16
+ const { activeRequest: e } = S(), { authentication: _ } = $(), {
17
+ openApi: { operation: i, globalSecurity: m }
18
+ } = x(), n = c(
19
+ () => {
20
+ var o;
21
+ return A(
22
+ _,
23
+ ((o = i == null ? void 0 : i.information) == null ? void 0 : o.security) ?? m
24
+ );
25
+ }
26
+ ), u = c(() => {
27
+ const o = e.type.toLowerCase();
28
+ return o === "put" || o === "post" || o === "patch" || o === "delete";
29
+ });
30
+ return (o, r) => (l(), f("div", D, [
31
+ s("div", N, [
32
+ s("div", V, [
33
+ w,
34
+ s("div", E, [
35
+ s("div", H, [
36
+ h(s("input", {
37
+ "onUpdate:modelValue": r[0] || (r[0] = (d) => t(e).name = d),
38
+ class: "scalar-api-client__request-name",
39
+ disabled: T,
40
+ placeholder: "Request Name",
41
+ type: "text"
42
+ }, null, 512), [
43
+ [q, t(e).name]
44
+ ])
45
+ ])
46
+ ])
47
+ ]),
48
+ s("div", O, [
49
+ a(t(C)),
50
+ a(B, {
51
+ variables: t(e).variables
52
+ }, null, 8, ["variables"]),
53
+ a(k, {
54
+ cookies: t(e).cookies,
55
+ generatedCookies: n.value.cookies
56
+ }, null, 8, ["cookies", "generatedCookies"]),
57
+ a(g, {
58
+ generatedHeaders: n.value.headers,
59
+ headers: t(e).headers
60
+ }, null, 8, ["generatedHeaders", "headers"]),
61
+ a(R, {
62
+ generatedQueries: n.value.queryString,
63
+ queries: t(e).query
64
+ }, null, 8, ["generatedQueries", "queries"]),
65
+ u.value ? (l(), v(b, {
66
+ key: 0,
67
+ body: t(e).body,
68
+ formData: t(e).formData,
69
+ requestBody: t(e).body
70
+ }, null, 8, ["body", "formData", "requestBody"])) : y("", !0),
71
+ Q
72
+ ])
73
+ ])
74
+ ]));
75
+ }
76
+ });
77
+ export {
78
+ Y as default
79
+ };
@@ -0,0 +1,4 @@
1
+ const e = "";
2
+ export {
3
+ e as default
4
+ };
@@ -0,0 +1,5 @@
1
+ import o from "./Request.vue.js";
2
+ import "./Request.vue2.js";
3
+ export {
4
+ o as default
5
+ };
@@ -1 +1 @@
1
- {"version":3,"file":"CardForm.vue.d.ts","sourceRoot":"","sources":["../../../../../src/components/ApiClient/Request/RequestAuthentication/CardForm.vue.ts"],"names":[],"mappings":";;;AA6DA,wBAAwG;AACxG,KAAK,uBAAuB,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG;IAAE,QAAO;QAClD,MAAM,EAAE,CAAC,CAAC;KACT,CAAA;CAAE,CAAC"}
1
+ {"version":3,"file":"CardForm.vue.d.ts","sourceRoot":"","sources":["../../../../../src/components/ApiClient/Request/RequestAuthentication/CardForm.vue"],"names":[],"mappings":";;;AA6DA,wBAAwG;AAOxG,KAAK,uBAAuB,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG;IACpC,QAAO;QACN,MAAM,EAAE,CAAC,CAAC;KAEV,CAAA;CACD,CAAC"}
@@ -0,0 +1,13 @@
1
+ import { openBlock as r, createElementBlock as o, renderSlot as t } from "vue";
2
+ import "./CardForm.vue2.js";
3
+ import c from "../../../../_virtual/_plugin-vue_export-helper.js";
4
+ const n = {}, s = { class: "card-form" };
5
+ function a(e, d) {
6
+ return r(), o("form", s, [
7
+ t(e.$slots, "default", {}, void 0, !0)
8
+ ]);
9
+ }
10
+ const l = /* @__PURE__ */ c(n, [["render", a], ["__scopeId", "data-v-bc8cea71"]]);
11
+ export {
12
+ l as default
13
+ };
@@ -0,0 +1,4 @@
1
+ const e = "";
2
+ export {
3
+ e as default
4
+ };
@@ -1 +1 @@
1
- {"version":3,"file":"CardFormButton.vue.d.ts","sourceRoot":"","sources":["../../../../../src/components/ApiClient/Request/RequestAuthentication/CardFormButton.vue.ts"],"names":[],"mappings":";;;;;AA2EA,wBAAwG;AACxG,KAAK,uBAAuB,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG;IAAE,QAAO;QAClD,MAAM,EAAE,CAAC,CAAC;KACT,CAAA;CAAE,CAAC"}
1
+ {"version":3,"file":"CardFormButton.vue.d.ts","sourceRoot":"","sources":["../../../../../src/components/ApiClient/Request/RequestAuthentication/CardFormButton.vue"],"names":[],"mappings":";;;;;AAgGA,wBAAwG;AAOxG,KAAK,uBAAuB,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG;IACpC,QAAO;QACN,MAAM,EAAE,CAAC,CAAC;KAEV,CAAA;CACD,CAAC"}
@@ -0,0 +1,7 @@
1
+ import o from "./CardFormButton.vue2.js";
2
+ import "./CardFormButton.vue3.js";
3
+ import t from "../../../../_virtual/_plugin-vue_export-helper.js";
4
+ const e = /* @__PURE__ */ t(o, [["__scopeId", "data-v-6ae053e9"]]);
5
+ export {
6
+ e as default
7
+ };
@@ -0,0 +1,18 @@
1
+ import { defineComponent as r, ref as n, openBlock as s, createElementBlock as a, renderSlot as c } from "vue";
2
+ const p = /* @__PURE__ */ r({
3
+ __name: "CardFormButton",
4
+ setup(l, { expose: t }) {
5
+ const e = n();
6
+ return t({ el: e }), (o, u) => (s(), a("button", {
7
+ ref_key: "el",
8
+ ref: e,
9
+ class: "card-form-button",
10
+ type: "button"
11
+ }, [
12
+ c(o.$slots, "default", {}, void 0, !0)
13
+ ], 512));
14
+ }
15
+ });
16
+ export {
17
+ p as default
18
+ };
@@ -0,0 +1,4 @@
1
+ const e = "";
2
+ export {
3
+ e as default
4
+ };