@scalar/api-client 1.3.3 → 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.
- package/CHANGELOG.md +40 -0
- package/dist/_virtual/_plugin-vue_export-helper.js +9 -0
- package/dist/assets/computer.ascii.js +34 -0
- package/dist/clientBus.js +5 -0
- package/dist/components/ApiClient/AddressBar.vue.d.ts +3 -3
- package/dist/components/ApiClient/AddressBar.vue.d.ts.map +1 -1
- package/dist/components/ApiClient/AddressBar.vue.js +8 -0
- package/dist/components/ApiClient/AddressBar.vue2.js +158 -0
- package/dist/components/ApiClient/AddressBar.vue3.js +4 -0
- package/dist/components/ApiClient/AddressBar.vue4.js +4 -0
- package/dist/components/ApiClient/ApiClient.vue.d.ts +11 -11
- package/dist/components/ApiClient/ApiClient.vue.d.ts.map +1 -1
- package/dist/components/ApiClient/ApiClient.vue.js +124 -0
- package/dist/components/ApiClient/ApiClient.vue2.js +4 -0
- package/dist/components/ApiClient/ApiClient.vue3.js +5 -0
- package/dist/components/ApiClient/Request/Request.vue.d.ts.map +1 -1
- package/dist/components/ApiClient/Request/Request.vue.js +79 -0
- package/dist/components/ApiClient/Request/Request.vue2.js +4 -0
- package/dist/components/ApiClient/Request/Request.vue3.js +5 -0
- package/dist/components/ApiClient/Request/RequestAuthentication/CardForm.vue.d.ts.map +1 -1
- package/dist/components/ApiClient/Request/RequestAuthentication/CardForm.vue.js +13 -0
- package/dist/components/ApiClient/Request/RequestAuthentication/CardForm.vue2.js +4 -0
- package/dist/components/ApiClient/Request/RequestAuthentication/CardFormButton.vue.d.ts.map +1 -1
- package/dist/components/ApiClient/Request/RequestAuthentication/CardFormButton.vue.js +7 -0
- package/dist/components/ApiClient/Request/RequestAuthentication/CardFormButton.vue2.js +18 -0
- package/dist/components/ApiClient/Request/RequestAuthentication/CardFormButton.vue3.js +4 -0
- package/dist/components/ApiClient/Request/RequestAuthentication/CardFormGroup.vue.d.ts.map +1 -1
- package/dist/components/ApiClient/Request/RequestAuthentication/CardFormGroup.vue.js +13 -0
- package/dist/components/ApiClient/Request/RequestAuthentication/CardFormGroup.vue2.js +4 -0
- package/dist/components/ApiClient/Request/RequestAuthentication/CardFormRows.vue.d.ts.map +1 -1
- package/dist/components/ApiClient/Request/RequestAuthentication/CardFormRows.vue.js +13 -0
- package/dist/components/ApiClient/Request/RequestAuthentication/CardFormRows.vue2.js +4 -0
- package/dist/components/ApiClient/Request/RequestAuthentication/CardFormTextInput.vue.d.ts +8 -8
- package/dist/components/ApiClient/Request/RequestAuthentication/CardFormTextInput.vue.d.ts.map +1 -1
- package/dist/components/ApiClient/Request/RequestAuthentication/CardFormTextInput.vue.js +7 -0
- package/dist/components/ApiClient/Request/RequestAuthentication/CardFormTextInput.vue2.js +37 -0
- package/dist/components/ApiClient/Request/RequestAuthentication/CardFormTextInput.vue3.js +4 -0
- package/dist/components/ApiClient/Request/RequestAuthentication/RequestAuthentication.vue.d.ts +3 -3
- package/dist/components/ApiClient/Request/RequestAuthentication/RequestAuthentication.vue.d.ts.map +1 -1
- package/dist/components/ApiClient/Request/RequestAuthentication/RequestAuthentication.vue.js +7 -0
- package/dist/components/ApiClient/Request/RequestAuthentication/RequestAuthentication.vue2.js +86 -0
- package/dist/components/ApiClient/Request/RequestAuthentication/RequestAuthentication.vue3.js +4 -0
- package/dist/components/ApiClient/Request/RequestAuthentication/SecurityScheme.vue.d.ts +3 -3
- package/dist/components/ApiClient/Request/RequestAuthentication/SecurityScheme.vue.d.ts.map +1 -1
- package/dist/components/ApiClient/Request/RequestAuthentication/SecurityScheme.vue.js +7 -0
- package/dist/components/ApiClient/Request/RequestAuthentication/SecurityScheme.vue2.js +357 -0
- package/dist/components/ApiClient/Request/RequestAuthentication/SecurityScheme.vue3.js +4 -0
- package/dist/components/ApiClient/Request/RequestAuthentication/SecuritySchemeScopes.vue.d.ts +3 -3
- package/dist/components/ApiClient/Request/RequestAuthentication/SecuritySchemeScopes.vue.d.ts.map +1 -1
- package/dist/components/ApiClient/Request/RequestAuthentication/SecuritySchemeScopes.vue.js +7 -0
- package/dist/components/ApiClient/Request/RequestAuthentication/SecuritySchemeScopes.vue2.js +96 -0
- package/dist/components/ApiClient/Request/RequestAuthentication/SecuritySchemeScopes.vue3.js +4 -0
- package/dist/components/ApiClient/Request/RequestAuthentication/SecuritySchemeSelector.vue.d.ts +3 -3
- package/dist/components/ApiClient/Request/RequestAuthentication/SecuritySchemeSelector.vue.d.ts.map +1 -1
- package/dist/components/ApiClient/Request/RequestAuthentication/SecuritySchemeSelector.vue.js +7 -0
- package/dist/components/ApiClient/Request/RequestAuthentication/SecuritySchemeSelector.vue2.js +64 -0
- package/dist/components/ApiClient/Request/RequestAuthentication/SecuritySchemeSelector.vue3.js +4 -0
- package/dist/components/ApiClient/Request/RequestAuthentication/index.d.ts +3 -3
- package/dist/components/ApiClient/Request/RequestBody.vue.d.ts +3 -3
- package/dist/components/ApiClient/Request/RequestBody.vue.d.ts.map +1 -1
- package/dist/components/ApiClient/Request/RequestBody.vue.js +39 -0
- package/dist/components/ApiClient/Request/RequestBody.vue2.js +4 -0
- package/dist/components/ApiClient/Request/RequestCookies.vue.d.ts +3 -3
- package/dist/components/ApiClient/Request/RequestCookies.vue.d.ts.map +1 -1
- package/dist/components/ApiClient/Request/RequestCookies.vue.js +74 -0
- package/dist/components/ApiClient/Request/RequestCookies.vue2.js +4 -0
- package/dist/components/ApiClient/Request/RequestCookies.vue3.js +5 -0
- package/dist/components/ApiClient/Request/RequestHeaders.vue.d.ts +3 -3
- package/dist/components/ApiClient/Request/RequestHeaders.vue.d.ts.map +1 -1
- package/dist/components/ApiClient/Request/RequestHeaders.vue.js +74 -0
- package/dist/components/ApiClient/Request/RequestHeaders.vue2.js +4 -0
- package/dist/components/ApiClient/Request/RequestQuery.vue.d.ts +3 -3
- package/dist/components/ApiClient/Request/RequestQuery.vue.d.ts.map +1 -1
- package/dist/components/ApiClient/Request/RequestQuery.vue.js +75 -0
- package/dist/components/ApiClient/Request/RequestQuery.vue2.js +4 -0
- package/dist/components/ApiClient/Request/RequestVariables.vue.d.ts +3 -3
- package/dist/components/ApiClient/Request/RequestVariables.vue.d.ts.map +1 -1
- package/dist/components/ApiClient/Request/RequestVariables.vue.js +69 -0
- package/dist/components/ApiClient/Request/RequestVariables.vue2.js +4 -0
- package/dist/components/ApiClient/Request/index.d.ts +1 -1
- package/dist/components/ApiClient/RequestHistory.vue.d.ts.map +1 -1
- package/dist/components/ApiClient/RequestHistory.vue.js +27 -0
- package/dist/components/ApiClient/RequestHistory.vue2.js +4 -0
- package/dist/components/ApiClient/RequestHistory.vue3.js +5 -0
- package/dist/components/ApiClient/RequestHistoryItem.vue.d.ts +3 -3
- package/dist/components/ApiClient/RequestHistoryItem.vue.d.ts.map +1 -1
- package/dist/components/ApiClient/RequestHistoryItem.vue.js +7 -0
- package/dist/components/ApiClient/RequestHistoryItem.vue2.js +49 -0
- package/dist/components/ApiClient/RequestHistoryItem.vue3.js +4 -0
- package/dist/components/ApiClient/RequestMethodSelect.vue.d.ts +11 -11
- package/dist/components/ApiClient/RequestMethodSelect.vue.d.ts.map +1 -1
- package/dist/components/ApiClient/RequestMethodSelect.vue.js +7 -0
- package/dist/components/ApiClient/RequestMethodSelect.vue2.js +42 -0
- package/dist/components/ApiClient/RequestMethodSelect.vue3.js +4 -0
- package/dist/components/ApiClient/Response/Response.vue.d.ts.map +1 -1
- package/dist/components/ApiClient/Response/Response.vue.js +65 -0
- package/dist/components/ApiClient/Response/Response.vue2.js +4 -0
- package/dist/components/ApiClient/Response/Response.vue3.js +5 -0
- package/dist/components/ApiClient/Response/ResponseBody.vue.d.ts +3 -3
- package/dist/components/ApiClient/Response/ResponseBody.vue.d.ts.map +1 -1
- package/dist/components/ApiClient/Response/ResponseBody.vue.js +54 -0
- package/dist/components/ApiClient/Response/ResponseBody.vue2.js +4 -0
- package/dist/components/ApiClient/Response/ResponseHeaders.vue.d.ts +3 -3
- package/dist/components/ApiClient/Response/ResponseHeaders.vue.d.ts.map +1 -1
- package/dist/components/ApiClient/Response/ResponseHeaders.vue.js +76 -0
- package/dist/components/ApiClient/Response/ResponseHeaders.vue2.js +4 -0
- package/dist/components/ApiClient/Response/ResponseMetaInformation.vue.d.ts +3 -3
- package/dist/components/ApiClient/Response/ResponseMetaInformation.vue.d.ts.map +1 -1
- package/dist/components/ApiClient/Response/ResponseMetaInformation.vue.js +56 -0
- package/dist/components/ApiClient/Response/ResponseMetaInformation.vue2.js +4 -0
- package/dist/components/ApiClient/Response/index.d.ts +1 -1
- package/dist/components/ApiClient/index.d.ts +1 -1
- package/dist/components/Badge/Badge.vue.d.ts.map +1 -1
- package/dist/components/CollapsibleSection/CollapsibleSection.vue.d.ts +11 -11
- package/dist/components/CollapsibleSection/CollapsibleSection.vue.d.ts.map +1 -1
- package/dist/components/CollapsibleSection/CollapsibleSection.vue.js +76 -0
- package/dist/components/CollapsibleSection/CollapsibleSection.vue2.js +4 -0
- package/dist/components/CollapsibleSection/CollapsibleSection.vue3.js +5 -0
- package/dist/components/CollapsibleSection/index.d.ts +1 -1
- package/dist/components/Grid/Grid.vue.d.ts +3 -3
- package/dist/components/Grid/Grid.vue.d.ts.map +1 -1
- package/dist/components/Grid/Grid.vue.js +7 -0
- package/dist/components/Grid/Grid.vue2.js +77 -0
- package/dist/components/Grid/Grid.vue3.js +4 -0
- package/dist/components/Grid/GridHeader.vue.d.ts +3 -3
- package/dist/components/Grid/GridHeader.vue.d.ts.map +1 -1
- package/dist/components/Grid/GridHeader.vue.js +7 -0
- package/dist/components/Grid/GridHeader.vue2.js +46 -0
- package/dist/components/Grid/GridHeader.vue3.js +4 -0
- package/dist/components/Grid/GridRow.vue.d.ts +8 -8
- package/dist/components/Grid/GridRow.vue.d.ts.map +1 -1
- package/dist/components/Grid/GridRow.vue.js +7 -0
- package/dist/components/Grid/GridRow.vue2.js +29 -0
- package/dist/components/Grid/GridRow.vue3.js +4 -0
- package/dist/components/Grid/GridRowEditable.vue.d.ts +3 -3
- package/dist/components/Grid/GridRowEditable.vue.d.ts.map +1 -1
- package/dist/components/Grid/GridRowEditable.vue.js +7 -0
- package/dist/components/Grid/GridRowEditable.vue2.js +105 -0
- package/dist/components/Grid/GridRowEditable.vue3.js +4 -0
- package/dist/components/Grid/GridRowGenerated.vue.d.ts +4 -4
- package/dist/components/Grid/GridRowGenerated.vue.d.ts.map +1 -1
- package/dist/components/Grid/GridRowGenerated.vue.js +7 -0
- package/dist/components/Grid/GridRowGenerated.vue2.js +37 -0
- package/dist/components/Grid/GridRowGenerated.vue3.js +4 -0
- package/dist/components/Grid/SimpleGrid.vue.d.ts +3 -3
- package/dist/components/Grid/SimpleGrid.vue.d.ts.map +1 -1
- package/dist/components/Grid/SimpleGrid.vue.js +7 -0
- package/dist/components/Grid/SimpleGrid.vue2.js +28 -0
- package/dist/components/Grid/SimpleGrid.vue3.js +4 -0
- package/dist/components/Grid/index.d.ts +2 -2
- package/dist/components/HelpfulLink.vue.d.ts +8 -8
- package/dist/components/HelpfulLink.vue.d.ts.map +1 -1
- package/dist/components/HelpfulLink.vue.js +7 -0
- package/dist/components/HelpfulLink.vue2.js +19 -0
- package/dist/components/HelpfulLink.vue3.js +4 -0
- package/dist/components/HttpMethod.vue.d.ts +9 -8
- package/dist/components/HttpMethod.vue.d.ts.map +1 -1
- package/dist/components/HttpMethod.vue.js +27 -0
- package/dist/components/HttpMethod.vue2.js +4 -0
- package/dist/components/ScalarAsciiArt.vue.d.ts +3 -3
- package/dist/components/ScalarAsciiArt.vue.d.ts.map +1 -1
- package/dist/components/ScalarAsciiArt.vue.js +7 -0
- package/dist/components/ScalarAsciiArt.vue2.js +23 -0
- package/dist/components/ScalarAsciiArt.vue3.js +4 -0
- package/dist/components/SimpleTable/SimpleCell.vue.d.ts +13 -12
- package/dist/components/SimpleTable/SimpleCell.vue.d.ts.map +1 -1
- package/dist/components/SimpleTable/SimpleCell.vue.js +7 -0
- package/dist/components/SimpleTable/SimpleCell.vue2.js +28 -0
- package/dist/components/SimpleTable/SimpleCell.vue3.js +4 -0
- package/dist/components/SimpleTable/SimpleHeader.vue.d.ts.map +1 -1
- package/dist/components/SimpleTable/SimpleHeader.vue.js +7 -0
- package/dist/components/SimpleTable/SimpleHeader.vue2.js +19 -0
- package/dist/components/SimpleTable/SimpleHeader.vue3.js +4 -0
- package/dist/components/SimpleTable/SimpleRow.vue.d.ts.map +1 -1
- package/dist/components/SimpleTable/SimpleRow.vue.js +13 -0
- package/dist/components/SimpleTable/SimpleRow.vue2.js +4 -0
- package/dist/components/SimpleTable/SimpleTable.vue.d.ts.map +1 -1
- package/dist/components/SimpleTable/SimpleTable.vue.js +15 -0
- package/dist/components/SimpleTable/SimpleTable.vue2.js +4 -0
- package/dist/components/SimpleTable/index.d.ts +4 -4
- package/dist/fixtures/httpHeaders.js +529 -0
- package/dist/fixtures/httpRequestMethods.js +41 -0
- package/dist/fixtures/index.d.ts +2 -2
- package/dist/helpers/concatenateUrlAndPath.js +9 -0
- package/dist/helpers/createPlaceholderRequest.js +14 -0
- package/dist/helpers/encodeStringAsBase64.js +6 -0
- package/dist/helpers/findVariables.js +7 -0
- package/dist/helpers/getRequestFromAuthentication.js +85 -0
- package/dist/helpers/getUrlFromServerState.js +12 -0
- package/dist/helpers/humanDiff.js +21 -0
- package/dist/helpers/index.d.ts +16 -16
- package/dist/helpers/mapFromArray.js +9 -0
- package/dist/helpers/normalizeHeaders.js +6 -0
- package/dist/helpers/normalizePath.js +9 -0
- package/dist/helpers/normalizeRequestMethod.d.ts +2 -1
- package/dist/helpers/normalizeRequestMethod.d.ts.map +1 -1
- package/dist/helpers/normalizeRequestMethod.js +14 -0
- package/dist/helpers/normalizeUrl.js +13 -0
- package/dist/helpers/prepareClientRequestConfig.d.ts +0 -7
- package/dist/helpers/prepareClientRequestConfig.d.ts.map +1 -1
- package/dist/helpers/prepareClientRequestConfig.js +41 -0
- package/dist/helpers/redirectToProxy.js +7 -0
- package/dist/helpers/replaceVariables.js +10 -0
- package/dist/helpers/sendRequest.js +111 -0
- package/dist/index.d.ts +1 -1
- package/dist/index.js +83 -33496
- package/dist/stores/index.d.ts +5 -5
- package/dist/stores/useApiClientStore.js +32 -0
- package/dist/stores/useAuthenticationStore.d.ts +1 -1
- package/dist/stores/useAuthenticationStore.d.ts.map +1 -1
- package/dist/stores/useAuthenticationStore.js +36 -0
- package/dist/stores/useOpenApiStore.d.ts +1 -1
- package/dist/stores/useOpenApiStore.js +24 -0
- package/dist/stores/useRequestStore.js +29 -0
- package/dist/stores/useServerStore.js +18 -0
- package/dist/style.css +1 -2567
- package/package.json +19 -18
- package/dist/Add-yNxGpRcH-B1LyqGlJ.js +0 -21
- package/dist/ArrowLeft-D7tW1xQo-BY1SMb43.js +0 -20
- package/dist/ArrowRight-DmO-sdb2-DYqgcTpu.js +0 -20
- package/dist/Background-CU9VIbfN-DvxzmwCx.js +0 -17
- package/dist/Brackets-CI207-BL-BBaUg7lM.js +0 -21
- package/dist/Branch-CXwj8YuG-IxKqRWkx.js +0 -34
- package/dist/CallToAction-XLYRSI1h-DkdGfSAS.js +0 -20
- package/dist/Checkmark-DhbrPM0P-Bnd3e6-4.js +0 -21
- package/dist/ChevronDown-Co7EAKAv-DHNwXUbS.js +0 -21
- package/dist/ChevronLeft-DYt0idAu-DAzCtmws.js +0 -21
- package/dist/ChevronRight-ylxToVWl-CDFDuBE1.js +0 -21
- package/dist/ChevronUp-xAnukIfj-CuKFLVD3.js +0 -21
- package/dist/Clipboard-CU_KxGEv-DWrQtWVi.js +0 -16
- package/dist/Close-xHiYwS8Q-CWI8mlaM.js +0 -21
- package/dist/CodeFolder-Cv_igzJE-CoWfaY0Z.js +0 -27
- package/dist/Cookie-CEHvXpqB-D960ImBy.js +0 -37
- package/dist/DarkMode-BMR457PH-CVcoMGeO.js +0 -16
- package/dist/Delete-BCZmxrDD-BHoCf_u4.js +0 -21
- package/dist/Discord-BHYOFBB2-NYBGYy-_.js +0 -16
- package/dist/DocsPage-Dwx7ZMU9-D3s0nKun.js +0 -27
- package/dist/Duplicate-DRWEv4R_-5xIOj7QF.js +0 -17
- package/dist/Edit-Br04RNYb-BhCyac4t.js +0 -19
- package/dist/Ellipses-Bo_X36Hx-CsJmKvlE.js +0 -16
- package/dist/Error-C5LiISnw-BIMzByff.js +0 -16
- package/dist/ExternalLink-DK8L-EH7-ANJEzoHO.js +0 -21
- package/dist/FilterList-CS8Il7NE-CagRN2wd.js +0 -21
- package/dist/Folder-CTvnVSEo-B2z_4abD.js +0 -16
- package/dist/GitHub-NdE6Zs9k-BAGzgXH_.js +0 -16
- package/dist/Hide-BgcCtErz-CAC_2jsk.js +0 -27
- package/dist/History-D9nmhNIn-BU9mR55a.js +0 -27
- package/dist/JsonObject-hGdHUQ4M-Cm1hXgAn.js +0 -21
- package/dist/Key-CWXJqX28-DdNUhB11.js +0 -21
- package/dist/Leave-K1J3uwoG-WgTmlwgs.js +0 -21
- package/dist/LightDarkModeToggle-De3vO47x-D3WCuqcH.js +0 -16
- package/dist/LightMode-BeoMphBY-CDedz2JM.js +0 -16
- package/dist/Link-Bzuc__Nc-Bvtx0HZG.js +0 -21
- package/dist/Lock-xhiH1mKz-Rrlr3fGv.js +0 -21
- package/dist/Logo-DwEDtgj--pmO6SPQX.js +0 -19
- package/dist/LogoAPI-CohCfL3L-CzbaXJLs.js +0 -19
- package/dist/LogoClient-Bq5O2QL2-Bw2epmD5.js +0 -16
- package/dist/LogoMarket-DwlApcab-_INRDSLs.js +0 -16
- package/dist/LogoSwagger-CH60H5qW-DFEpFXIU.js +0 -16
- package/dist/Magic-Dsi9_bEc-BYN42_eH.js +0 -21
- package/dist/Menu-CFK5cOsm-CqE9Tsgr.js +0 -21
- package/dist/Page-DA7CO5gc-DfccxJJv.js +0 -17
- package/dist/PaperAirplane-BC-4mGEB-BrV5fX8s.js +0 -21
- package/dist/Payment-hzcXP1Xb-B2G1p4-i.js +0 -21
- package/dist/Play-Cd4-o7Ji-xTTrC7nd.js +0 -16
- package/dist/Refresh-BHRzzQ8P-DMGXg62S.js +0 -27
- package/dist/Response-DsTlT4S--CGVlb2Cj.js +0 -20
- package/dist/Search-DqtlswRG-D-hprEk0.js +0 -19
- package/dist/Show-CbiiMLUa-G7jnye-t.js +0 -27
- package/dist/SideBarClosed-K53-CtXh-DmurFyoL.js +0 -17
- package/dist/SideBarOpen-C7UgT82P-BG6NE13Z.js +0 -21
- package/dist/Sort-CaVMT7jM-CseseOA9.js +0 -16
- package/dist/Terminal-DJ7x2McL-BUB3Qs0m.js +0 -27
- package/dist/ThumbsDown-BMgnsASL-B2YFxB8i.js +0 -21
- package/dist/ThumbsUp-C1j6zY2j-DKqh3z1D.js +0 -21
- package/dist/Trash-BpA3zWPD-BAjuQdys.js +0 -21
- package/dist/Unlock-HVYHMLxl-D89vmw_N.js +0 -16
- package/dist/Upload-D_pwqBDY-Bg4YHBfw.js +0 -16
- package/dist/User-BLGkPc5I-XzPjc0Gv.js +0 -16
- package/dist/prism-autoloader-Dlh8Vzlw-BR-Zk31i.js +0 -370
- package/dist/programming-framework-angular-DD4Vjgbk-Bzc9D9am.js +0 -16
- package/dist/programming-framework-astro-CLfrRt19-CfPlyy6T.js +0 -16
- package/dist/programming-framework-laravel-kAy2wVLy-Cty_4oXq.js +0 -21
- package/dist/programming-framework-nextdotjs-BKdd_DY_-DUTv-t1Q.js +0 -16
- package/dist/programming-framework-react-PDgmtZuN-DdUogL85.js +0 -16
- package/dist/programming-framework-vuedotjs-Cim7D5tw-COH3lflr.js +0 -17
- package/dist/programming-language-c-hPGu2Zvg-QG1pSdJG.js +0 -16
- package/dist/programming-language-clojure-uqYXn7U6-UAUP9oZz.js +0 -16
- package/dist/programming-language-csharp-CGxYkVA6-DkAhKOzF.js +0 -16
- package/dist/programming-language-css3-Dpp4Cr6b-Bf5XF7-p.js +0 -16
- package/dist/programming-language-go-CuKo8iD9-Dkewryvm.js +0 -16
- package/dist/programming-language-html5-DlqJK4EL-Bl9dTA-D.js +0 -16
- package/dist/programming-language-http-f3NXC-Ae-BY_awyxD.js +0 -16
- package/dist/programming-language-java-BBodetdf-BHELDLTj.js +0 -18
- package/dist/programming-language-javascript-VxLvi1QG-DFjYF_MP.js +0 -16
- package/dist/programming-language-json-Dq_K-q5f-BlovheYp.js +0 -17
- package/dist/programming-language-kotlin-eTASnmL3-D8AoUcB1.js +0 -16
- package/dist/programming-language-node-oucaVOgY-CzP8mlvs.js +0 -17
- package/dist/programming-language-objc-CPgQxmNi-DjsFgTok.js +0 -17
- package/dist/programming-language-ocaml-Q1-Jv5Q5-D2vDLKwp.js +0 -16
- package/dist/programming-language-php-GY38f8r4-DQ_8EMFH.js +0 -16
- package/dist/programming-language-powershell-xLOxAYP_-DAvJS1A9.js +0 -20
- package/dist/programming-language-python-Ct-_kNjo-BCrlyfv0.js +0 -16
- package/dist/programming-language-r-Ch3T1qiC-I_IE4uwz.js +0 -20
- package/dist/programming-language-ruby-DhdM4d7g-Dd3La6Kn.js +0 -16
- package/dist/programming-language-scala-BVg0dToJ-Bz_n-CNw.js +0 -16
- package/dist/programming-language-shell-uj1zoCVW-Bg0d3E28.js +0 -16
- package/dist/programming-language-swift-Dn72xPjg-BUvu5_SV.js +0 -16
- package/dist/programming-language-typescript-CdF-HuRi-CaDO02MW.js +0 -16
- package/dist/programming-script-code-CUHv6qR8-CzD7HjI2.js +0 -21
- package/dist/programming-tool-git-C-BMJCAo-BFJIU2--.js +0 -16
- package/dist/programming-tool-tailwindcss-xjXi0E6g-ky2wbsII.js +0 -16
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,45 @@
|
|
|
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
|
+
|
|
35
|
+
## 1.3.4
|
|
36
|
+
|
|
37
|
+
### Patch Changes
|
|
38
|
+
|
|
39
|
+
- Updated dependencies [55e01dd]
|
|
40
|
+
- @scalar/themes@0.8.2
|
|
41
|
+
- @scalar/components@0.10.1
|
|
42
|
+
|
|
3
43
|
## 1.3.3
|
|
4
44
|
|
|
5
45
|
### Patch Changes
|
|
@@ -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
|
+
};
|
|
@@ -1,15 +1,15 @@
|
|
|
1
|
-
declare const _default: import("vue").DefineComponent<
|
|
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<
|
|
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
|
|
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
|
|
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
|
+
};
|
|
@@ -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<
|
|
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<
|
|
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
|
|
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
|
+
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Request.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/ApiClient/Request/Request.vue
|
|
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
|
+
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"CardForm.vue.d.ts","sourceRoot":"","sources":["../../../../../src/components/ApiClient/Request/RequestAuthentication/CardForm.vue
|
|
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
|
+
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"CardFormButton.vue.d.ts","sourceRoot":"","sources":["../../../../../src/components/ApiClient/Request/RequestAuthentication/CardFormButton.vue
|
|
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"}
|