@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.
- package/CHANGELOG.md +32 -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/dist/components/ApiClient/Request/RequestAuthentication/SecuritySchemeScopes.vue.d.ts
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
declare const _default: import("vue").DefineComponent<
|
|
1
|
+
declare const _default: import("vue").DefineComponent<__VLS_TypePropsToOption<{
|
|
2
2
|
scopes: {
|
|
3
3
|
[scope: string]: string;
|
|
4
4
|
};
|
|
5
5
|
selected: string[];
|
|
6
6
|
}>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
7
7
|
"update:selected": (v: string[]) => void;
|
|
8
|
-
}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<
|
|
8
|
+
}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<__VLS_TypePropsToOption<{
|
|
9
9
|
scopes: {
|
|
10
10
|
[scope: string]: string;
|
|
11
11
|
};
|
|
@@ -15,7 +15,7 @@ declare const _default: import("vue").DefineComponent<__VLS_TypePropsToRuntimePr
|
|
|
15
15
|
}, {}, {}>;
|
|
16
16
|
export default _default;
|
|
17
17
|
type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
18
|
-
type
|
|
18
|
+
type __VLS_TypePropsToOption<T> = {
|
|
19
19
|
[K in keyof T]-?: {} extends Pick<T, K> ? {
|
|
20
20
|
type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
|
|
21
21
|
} : {
|
package/dist/components/ApiClient/Request/RequestAuthentication/SecuritySchemeScopes.vue.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"SecuritySchemeScopes.vue.d.ts","sourceRoot":"","sources":["../../../../../src/components/ApiClient/Request/RequestAuthentication/SecuritySchemeScopes.vue
|
|
1
|
+
{"version":3,"file":"SecuritySchemeScopes.vue.d.ts","sourceRoot":"","sources":["../../../../../src/components/ApiClient/Request/RequestAuthentication/SecuritySchemeScopes.vue"],"names":[],"mappings":";;;;;;;;;;;;;;;AAoZA,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,96 @@
|
|
|
1
|
+
import { defineComponent as C, ref as _, computed as V, openBlock as n, createBlock as p, unref as e, withCtx as s, createElementVNode as t, normalizeClass as h, createVNode as r, createTextVNode as w, toDisplayString as c, Teleport as B, normalizeStyle as L, createElementBlock as I, Fragment as O, renderList as z, pushScopeId as E, popScopeId as F } from "vue";
|
|
2
|
+
import { useFloating as N, autoUpdate as U, offset as j, flip as D, shift as T } from "@floating-ui/vue";
|
|
3
|
+
import { Listbox as M, ListboxButton as R, ListboxOptions as q, ListboxOption as A } from "@headlessui/vue";
|
|
4
|
+
import { ScalarIcon as G } from "@scalar/components";
|
|
5
|
+
import { ResetStyles as H } from "@scalar/themes";
|
|
6
|
+
import J from "./CardFormButton.vue.js";
|
|
7
|
+
const K = (o) => (E("data-v-f74768db"), o = o(), F(), o), P = { class: "scopes-label" }, Q = /* @__PURE__ */ K(() => /* @__PURE__ */ t("em", null, "/", -1)), W = ["checked"], X = { class: "dropdown-item-title" }, Y = { class: "dropdown-item-description" }, le = /* @__PURE__ */ C({
|
|
8
|
+
__name: "SecuritySchemeScopes",
|
|
9
|
+
props: {
|
|
10
|
+
scopes: {},
|
|
11
|
+
selected: {}
|
|
12
|
+
},
|
|
13
|
+
emits: ["update:selected"],
|
|
14
|
+
setup(o, { emit: b }) {
|
|
15
|
+
const g = o, v = b, m = _(), u = _(), { floatingStyles: S } = N(m, u, {
|
|
16
|
+
placement: "bottom-end",
|
|
17
|
+
whileElementsMounted: U,
|
|
18
|
+
middleware: [j(5), D(), T()]
|
|
19
|
+
}), i = V({
|
|
20
|
+
get: () => g.selected,
|
|
21
|
+
set: (l) => v("update:selected", l)
|
|
22
|
+
});
|
|
23
|
+
return (l, f) => (n(), p(e(M), {
|
|
24
|
+
modelValue: i.value,
|
|
25
|
+
"onUpdate:modelValue": f[0] || (f[0] = (d) => i.value = d),
|
|
26
|
+
multiple: ""
|
|
27
|
+
}, {
|
|
28
|
+
default: s(({ open: d }) => [
|
|
29
|
+
t("div", {
|
|
30
|
+
ref_key: "trigger",
|
|
31
|
+
ref: m,
|
|
32
|
+
class: h(["wrapper", { "wrapper-open": d }])
|
|
33
|
+
}, [
|
|
34
|
+
r(e(R), { as: J }, {
|
|
35
|
+
default: s(() => [
|
|
36
|
+
t("div", P, [
|
|
37
|
+
w(" Scopes " + c(i.value.length), 1),
|
|
38
|
+
Q,
|
|
39
|
+
w(c(Object.entries(l.scopes).length) + " ", 1),
|
|
40
|
+
r(e(G), {
|
|
41
|
+
icon: d ? "ChevronUp" : "ChevronDown",
|
|
42
|
+
size: "sm"
|
|
43
|
+
}, null, 8, ["icon"])
|
|
44
|
+
])
|
|
45
|
+
]),
|
|
46
|
+
_: 2
|
|
47
|
+
}, 1024)
|
|
48
|
+
], 2),
|
|
49
|
+
(n(), p(B, { to: "body" }, [
|
|
50
|
+
r(e(H), null, {
|
|
51
|
+
default: s(({ styles: y }) => [
|
|
52
|
+
t("div", {
|
|
53
|
+
ref_key: "dropdown",
|
|
54
|
+
ref: u,
|
|
55
|
+
class: h(["floating", y]),
|
|
56
|
+
style: L(e(S))
|
|
57
|
+
}, [
|
|
58
|
+
r(e(q), {
|
|
59
|
+
as: "dl",
|
|
60
|
+
class: "dropdown"
|
|
61
|
+
}, {
|
|
62
|
+
default: s(() => [
|
|
63
|
+
(n(!0), I(O, null, z(Object.entries(l.scopes), ([a, x]) => (n(), p(e(A), {
|
|
64
|
+
key: a,
|
|
65
|
+
as: "div",
|
|
66
|
+
class: "dropdown-item",
|
|
67
|
+
value: a
|
|
68
|
+
}, {
|
|
69
|
+
default: s(({ selected: k }) => [
|
|
70
|
+
t("input", {
|
|
71
|
+
checked: k,
|
|
72
|
+
class: "dropdown-item-check",
|
|
73
|
+
tabindex: "-1",
|
|
74
|
+
type: "checkbox"
|
|
75
|
+
}, null, 8, W),
|
|
76
|
+
t("dt", X, c(a), 1),
|
|
77
|
+
t("dd", Y, c(x), 1)
|
|
78
|
+
]),
|
|
79
|
+
_: 2
|
|
80
|
+
}, 1032, ["value"]))), 128))
|
|
81
|
+
]),
|
|
82
|
+
_: 1
|
|
83
|
+
})
|
|
84
|
+
], 6)
|
|
85
|
+
]),
|
|
86
|
+
_: 1
|
|
87
|
+
})
|
|
88
|
+
]))
|
|
89
|
+
]),
|
|
90
|
+
_: 1
|
|
91
|
+
}, 8, ["modelValue"]));
|
|
92
|
+
}
|
|
93
|
+
});
|
|
94
|
+
export {
|
|
95
|
+
le as default
|
|
96
|
+
};
|
package/dist/components/ApiClient/Request/RequestAuthentication/SecuritySchemeSelector.vue.d.ts
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import type { OpenAPIV3, OpenAPIV3_1 } from '@scalar/openapi-parser';
|
|
2
|
-
declare const _default: import("vue").DefineComponent<
|
|
2
|
+
declare const _default: import("vue").DefineComponent<__VLS_TypePropsToOption<{
|
|
3
3
|
value?: Record<string, OpenAPIV3_1.ReferenceObject | OpenAPIV3.SecuritySchemeObject> | {
|
|
4
4
|
[key: string]: OpenAPIV3.ReferenceObject | OpenAPIV3.SecuritySchemeObject;
|
|
5
5
|
} | undefined;
|
|
6
6
|
}>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
7
7
|
input: (key: string) => void;
|
|
8
|
-
}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<
|
|
8
|
+
}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<__VLS_TypePropsToOption<{
|
|
9
9
|
value?: Record<string, OpenAPIV3_1.ReferenceObject | OpenAPIV3.SecuritySchemeObject> | {
|
|
10
10
|
[key: string]: OpenAPIV3.ReferenceObject | OpenAPIV3.SecuritySchemeObject;
|
|
11
11
|
} | undefined;
|
|
@@ -14,7 +14,7 @@ declare const _default: import("vue").DefineComponent<__VLS_TypePropsToRuntimePr
|
|
|
14
14
|
}, {}, {}>;
|
|
15
15
|
export default _default;
|
|
16
16
|
type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
17
|
-
type
|
|
17
|
+
type __VLS_TypePropsToOption<T> = {
|
|
18
18
|
[K in keyof T]-?: {} extends Pick<T, K> ? {
|
|
19
19
|
type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
|
|
20
20
|
} : {
|
package/dist/components/ApiClient/Request/RequestAuthentication/SecuritySchemeSelector.vue.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"SecuritySchemeSelector.vue.d.ts","sourceRoot":"","sources":["../../../../../src/components/ApiClient/Request/RequestAuthentication/SecuritySchemeSelector.vue
|
|
1
|
+
{"version":3,"file":"SecuritySchemeSelector.vue.d.ts","sourceRoot":"","sources":["../../../../../src/components/ApiClient/Request/RequestAuthentication/SecuritySchemeSelector.vue"],"names":[],"mappings":"AA0LA,OAAO,KAAK,EAAE,SAAS,EAAE,WAAW,EAAE,MAAM,wBAAwB,CAAA;;;;;;;;;;;;;;AAiMpE,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"}
|
package/dist/components/ApiClient/Request/RequestAuthentication/SecuritySchemeSelector.vue2.js
ADDED
|
@@ -0,0 +1,64 @@
|
|
|
1
|
+
import { defineComponent as N, onMounted as O, onServerPrefetch as k, computed as B, openBlock as a, createElementBlock as i, toDisplayString as d, createElementVNode as y, unref as c, createVNode as j, withModifiers as K, Fragment as P, renderList as V, createCommentVNode as $, pushScopeId as D, popScopeId as E } from "vue";
|
|
2
|
+
import { ScalarIcon as F } from "@scalar/components";
|
|
3
|
+
import { useAuthenticationStore as H } from "../../../../stores/useAuthenticationStore.js";
|
|
4
|
+
const M = (r) => (D("data-v-daca0c64"), r = r(), E(), r), T = {
|
|
5
|
+
key: 0,
|
|
6
|
+
class: "security-scheme-label"
|
|
7
|
+
}, z = {
|
|
8
|
+
key: 1,
|
|
9
|
+
class: "security-scheme-selector"
|
|
10
|
+
}, q = { class: "security-scheme-label" }, G = ["value"], J = /* @__PURE__ */ M(() => /* @__PURE__ */ y("option", { value: "" }, "None", -1)), Q = ["value"], X = /* @__PURE__ */ N({
|
|
11
|
+
__name: "SecuritySchemeSelector",
|
|
12
|
+
props: {
|
|
13
|
+
value: {}
|
|
14
|
+
},
|
|
15
|
+
emits: ["input"],
|
|
16
|
+
setup(r, { emit: v }) {
|
|
17
|
+
const l = r, m = v, { authentication: o, setAuthentication: _ } = H(), A = (e) => {
|
|
18
|
+
p(e.target.value);
|
|
19
|
+
};
|
|
20
|
+
O(() => {
|
|
21
|
+
o.preferredSecurityScheme || p(Object.keys(l.value ?? {})[0] ?? null);
|
|
22
|
+
});
|
|
23
|
+
const p = (e) => {
|
|
24
|
+
_({
|
|
25
|
+
preferredSecurityScheme: e
|
|
26
|
+
}), m("input", e);
|
|
27
|
+
};
|
|
28
|
+
k(
|
|
29
|
+
() => p(Object.keys(l.value ?? {})[0] ?? null)
|
|
30
|
+
);
|
|
31
|
+
const w = (e) => !(e != null && e.type), b = (e) => e.type.toLowerCase() === "apikey", C = (e) => e.type === "http" && e.scheme.toLowerCase() === "basic" || e.type.toLowerCase() === "basic", I = (e) => e.type === "http" && e.scheme.toLowerCase() === "bearer", L = (e) => e.type.toLowerCase() === "oauth2", h = (e, t) => `${g(e)} (${t})`, g = (e) => {
|
|
32
|
+
var t, s;
|
|
33
|
+
return w(e) ? "No Authentication" : b(e) ? "API Key" : C(e) ? "Basic Authentication" : I(e) ? "Bearer Authentication" : L(e) ? (t = e.flows) != null && t.implicit ? "OAuth 2.0 Implicit" : (s = e.flows) != null && s.password ? "OAuth 2.0 Password" : "OAuth 2.0" : `${e.type} (not yet supported)`;
|
|
34
|
+
}, n = B(() => Object.keys(l.value ?? {}));
|
|
35
|
+
return (e, t) => {
|
|
36
|
+
var s, f;
|
|
37
|
+
return n.value.length === 1 ? (a(), i("div", T, d(h((s = e.value) == null ? void 0 : s[n.value[0]], n.value[0])), 1)) : n.value.length > 1 ? (a(), i("div", z, [
|
|
38
|
+
y("span", q, d(c(o).preferredSecurityScheme ? h(
|
|
39
|
+
(f = e.value) == null ? void 0 : f[c(o).preferredSecurityScheme],
|
|
40
|
+
c(o).preferredSecurityScheme
|
|
41
|
+
) : "None"), 1),
|
|
42
|
+
j(c(F), { icon: "ChevronDown" }),
|
|
43
|
+
y("select", {
|
|
44
|
+
value: c(o).preferredSecurityScheme,
|
|
45
|
+
onClick: t[0] || (t[0] = K(() => {
|
|
46
|
+
}, ["prevent"])),
|
|
47
|
+
onInput: A
|
|
48
|
+
}, [
|
|
49
|
+
J,
|
|
50
|
+
(a(!0), i(P, null, V(n.value, (u) => {
|
|
51
|
+
var S;
|
|
52
|
+
return a(), i("option", {
|
|
53
|
+
key: u,
|
|
54
|
+
value: u ?? null
|
|
55
|
+
}, d(h((S = e.value) == null ? void 0 : S[u], u)), 9, Q);
|
|
56
|
+
}), 128))
|
|
57
|
+
], 40, G)
|
|
58
|
+
])) : $("", !0);
|
|
59
|
+
};
|
|
60
|
+
}
|
|
61
|
+
});
|
|
62
|
+
export {
|
|
63
|
+
X as default
|
|
64
|
+
};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { default as RequestAuthentication } from './RequestAuthentication.vue';
|
|
2
|
-
export { default as SecurityScheme } from './SecurityScheme.vue';
|
|
3
|
-
export { default as SecuritySchemeSelector } from './SecuritySchemeSelector.vue';
|
|
1
|
+
export { default as RequestAuthentication } from './RequestAuthentication.vue.js';
|
|
2
|
+
export { default as SecurityScheme } from './SecurityScheme.vue.js';
|
|
3
|
+
export { default as SecuritySchemeSelector } from './SecuritySchemeSelector.vue.js';
|
|
4
4
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
declare const _default: import("vue").DefineComponent<
|
|
1
|
+
declare const _default: import("vue").DefineComponent<__VLS_TypePropsToOption<{
|
|
2
2
|
body?: string | undefined;
|
|
3
3
|
formData?: any[] | undefined;
|
|
4
|
-
}>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<
|
|
4
|
+
}>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<__VLS_TypePropsToOption<{
|
|
5
5
|
body?: string | undefined;
|
|
6
6
|
formData?: any[] | undefined;
|
|
7
7
|
}>>>, {}, {}>;
|
|
8
8
|
export default _default;
|
|
9
9
|
type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
10
|
-
type
|
|
10
|
+
type __VLS_TypePropsToOption<T> = {
|
|
11
11
|
[K in keyof T]-?: {} extends Pick<T, K> ? {
|
|
12
12
|
type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
|
|
13
13
|
} : {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"RequestBody.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/ApiClient/Request/RequestBody.vue
|
|
1
|
+
{"version":3,"file":"RequestBody.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/ApiClient/Request/RequestBody.vue"],"names":[],"mappings":";;;;;;;AA+JA,wBAMG;AAOH,KAAK,sBAAsB,CAAC,CAAC,IAAI,CAAC,SAAS,SAAS,GAAG,KAAK,GAAG,CAAC,CAAC;AAC5D,KAAK,uBAAuB,CAAC,CAAC,IAAI;KAChC,CAAC,IAAI,MAAM,CAAC,CAAC,CAAC,GAAG,EAAE,SAAS,IAAI,CAAC,CAAC,EAAE,CAAC,CAAC,GACpC;QAAE,IAAI,EAAE,OAAO,KAAK,EAAE,QAAQ,CAAC,sBAAsB,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAA;KAAE,GAC9D;QAAE,IAAI,EAAE,OAAO,KAAK,EAAE,QAAQ,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;QAAC,QAAQ,EAAE,IAAI,CAAA;KAAE;CACzD,CAAC"}
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
import { defineComponent as s, openBlock as o, createBlock as n, unref as t, withCtx as i, createElementBlock as f } from "vue";
|
|
2
|
+
import { CodeMirror as d } from "@scalar/use-codemirror";
|
|
3
|
+
import p from "../../CollapsibleSection/CollapsibleSection.vue.js";
|
|
4
|
+
import "../../CollapsibleSection/CollapsibleSection.vue2.js";
|
|
5
|
+
import u from "../../Grid/Grid.vue.js";
|
|
6
|
+
import { useRequestStore as l } from "../../../stores/useRequestStore.js";
|
|
7
|
+
const c = { key: 0 }, q = /* @__PURE__ */ s({
|
|
8
|
+
__name: "RequestBody",
|
|
9
|
+
props: {
|
|
10
|
+
body: {},
|
|
11
|
+
formData: {}
|
|
12
|
+
},
|
|
13
|
+
setup(y) {
|
|
14
|
+
const { activeRequest: r, setActiveRequest: a } = l(), m = (e) => {
|
|
15
|
+
r.body !== e && a({
|
|
16
|
+
...r,
|
|
17
|
+
body: e
|
|
18
|
+
});
|
|
19
|
+
};
|
|
20
|
+
return (e, b) => (o(), n(t(p), { title: "Body" }, {
|
|
21
|
+
default: i(() => [
|
|
22
|
+
e.body && e.body.length === 0 && e.formData && e.formData.length === 0 ? (o(), f("span", c, "No Body")) : e.formData && e.formData.length > 0 ? (o(), n(t(u), {
|
|
23
|
+
key: 1,
|
|
24
|
+
items: e.formData
|
|
25
|
+
}, null, 8, ["items"])) : (o(), n(t(d), {
|
|
26
|
+
key: 2,
|
|
27
|
+
content: t(r).body,
|
|
28
|
+
language: "json",
|
|
29
|
+
lineNumbers: "",
|
|
30
|
+
onChange: m
|
|
31
|
+
}, null, 8, ["content"]))
|
|
32
|
+
]),
|
|
33
|
+
_: 1
|
|
34
|
+
}));
|
|
35
|
+
}
|
|
36
|
+
});
|
|
37
|
+
export {
|
|
38
|
+
q as default
|
|
39
|
+
};
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
import type { GeneratedParameter } from '../../../types';
|
|
2
|
-
declare const _default: import("vue").DefineComponent<
|
|
2
|
+
declare const _default: import("vue").DefineComponent<__VLS_TypePropsToOption<{
|
|
3
3
|
cookies?: any[] | undefined;
|
|
4
4
|
generatedCookies?: GeneratedParameter[] | undefined;
|
|
5
|
-
}>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<
|
|
5
|
+
}>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<__VLS_TypePropsToOption<{
|
|
6
6
|
cookies?: any[] | undefined;
|
|
7
7
|
generatedCookies?: GeneratedParameter[] | undefined;
|
|
8
8
|
}>>>, {}, {}>;
|
|
9
9
|
export default _default;
|
|
10
10
|
type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
11
|
-
type
|
|
11
|
+
type __VLS_TypePropsToOption<T> = {
|
|
12
12
|
[K in keyof T]-?: {} extends Pick<T, K> ? {
|
|
13
13
|
type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
|
|
14
14
|
} : {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"RequestCookies.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/ApiClient/Request/RequestCookies.vue
|
|
1
|
+
{"version":3,"file":"RequestCookies.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/ApiClient/Request/RequestCookies.vue"],"names":[],"mappings":"AAyGA,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,gBAAgB,CAAA;;;;;;;;AA8HxD,wBAMG;AAOH,KAAK,sBAAsB,CAAC,CAAC,IAAI,CAAC,SAAS,SAAS,GAAG,KAAK,GAAG,CAAC,CAAC;AAC5D,KAAK,uBAAuB,CAAC,CAAC,IAAI;KAChC,CAAC,IAAI,MAAM,CAAC,CAAC,CAAC,GAAG,EAAE,SAAS,IAAI,CAAC,CAAC,EAAE,CAAC,CAAC,GACpC;QAAE,IAAI,EAAE,OAAO,KAAK,EAAE,QAAQ,CAAC,sBAAsB,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAA;KAAE,GAC9D;QAAE,IAAI,EAAE,OAAO,KAAK,EAAE,QAAQ,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;QAAC,QAAQ,EAAE,IAAI,CAAA;KAAE;CACzD,CAAC"}
|
|
@@ -0,0 +1,74 @@
|
|
|
1
|
+
import { defineComponent as p, computed as k, openBlock as n, createBlock as l, unref as c, withCtx as m, createElementBlock as f, createElementVNode as s, createTextVNode as h } from "vue";
|
|
2
|
+
import g from "../../CollapsibleSection/CollapsibleSection.vue.js";
|
|
3
|
+
import "../../CollapsibleSection/CollapsibleSection.vue2.js";
|
|
4
|
+
import _ from "../../Grid/Grid.vue.js";
|
|
5
|
+
import { useRequestStore as v } from "../../../stores/useRequestStore.js";
|
|
6
|
+
const w = {
|
|
7
|
+
key: 0,
|
|
8
|
+
class: "scalar-api-client__empty-state"
|
|
9
|
+
}, C = /* @__PURE__ */ s("svg", {
|
|
10
|
+
class: "flow-icon",
|
|
11
|
+
"data-v-aa4fbd2d": "",
|
|
12
|
+
height: "100%",
|
|
13
|
+
viewBox: "0 0 48 48",
|
|
14
|
+
xmlns: "http://www.w3.org/2000/svg"
|
|
15
|
+
}, [
|
|
16
|
+
/* @__PURE__ */ s("path", {
|
|
17
|
+
d: "M24 1.714v44.572M1.714 24h44.572",
|
|
18
|
+
fill: "none",
|
|
19
|
+
stroke: "currentColor",
|
|
20
|
+
"stroke-linecap": "round",
|
|
21
|
+
"stroke-linejoin": "round",
|
|
22
|
+
"stroke-width": "5",
|
|
23
|
+
xmlns: "http://www.w3.org/2000/svg"
|
|
24
|
+
})
|
|
25
|
+
], -1), q = /* @__PURE__ */ p({
|
|
26
|
+
__name: "RequestCookies",
|
|
27
|
+
props: {
|
|
28
|
+
cookies: {},
|
|
29
|
+
generatedCookies: {}
|
|
30
|
+
},
|
|
31
|
+
setup(d) {
|
|
32
|
+
const i = d, { activeRequest: t } = v();
|
|
33
|
+
function u(e) {
|
|
34
|
+
var o;
|
|
35
|
+
(o = t.cookies) == null || o.splice(e, 1);
|
|
36
|
+
}
|
|
37
|
+
function a() {
|
|
38
|
+
var e;
|
|
39
|
+
t.cookies === void 0 && (t.cookies = []), (e = t.cookies) == null || e.push({ name: "", value: "", enabled: !0 });
|
|
40
|
+
}
|
|
41
|
+
const r = k(() => {
|
|
42
|
+
var e, o;
|
|
43
|
+
return !!((e = i.cookies) != null && e.length || (o = i.generatedCookies) != null && o.length);
|
|
44
|
+
});
|
|
45
|
+
return (e, o) => (n(), l(c(g), {
|
|
46
|
+
defaultOpen: r.value,
|
|
47
|
+
title: "Cookies"
|
|
48
|
+
}, {
|
|
49
|
+
default: m(() => [
|
|
50
|
+
r.value ? (n(), l(c(_), {
|
|
51
|
+
key: 1,
|
|
52
|
+
addLabel: "Cookie",
|
|
53
|
+
generatedItems: e.generatedCookies,
|
|
54
|
+
items: e.cookies,
|
|
55
|
+
onAddAnother: a,
|
|
56
|
+
onDeleteIndex: u
|
|
57
|
+
}, null, 8, ["generatedItems", "items"])) : (n(), f("div", w, [
|
|
58
|
+
s("button", {
|
|
59
|
+
class: "scalar-api-client-add",
|
|
60
|
+
type: "button",
|
|
61
|
+
onClick: a
|
|
62
|
+
}, [
|
|
63
|
+
C,
|
|
64
|
+
h(" Cookies ")
|
|
65
|
+
])
|
|
66
|
+
]))
|
|
67
|
+
]),
|
|
68
|
+
_: 1
|
|
69
|
+
}, 8, ["defaultOpen"]));
|
|
70
|
+
}
|
|
71
|
+
});
|
|
72
|
+
export {
|
|
73
|
+
q as default
|
|
74
|
+
};
|
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
import type { BaseParameter } from '@scalar/oas-utils';
|
|
2
2
|
import type { GeneratedParameter } from '../../../types';
|
|
3
|
-
declare const _default: import("vue").DefineComponent<
|
|
3
|
+
declare const _default: import("vue").DefineComponent<__VLS_TypePropsToOption<{
|
|
4
4
|
headers?: BaseParameter[] | undefined;
|
|
5
5
|
generatedHeaders?: GeneratedParameter[] | undefined;
|
|
6
|
-
}>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<
|
|
6
|
+
}>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<__VLS_TypePropsToOption<{
|
|
7
7
|
headers?: BaseParameter[] | undefined;
|
|
8
8
|
generatedHeaders?: GeneratedParameter[] | 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":"RequestHeaders.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/ApiClient/Request/RequestHeaders.vue
|
|
1
|
+
{"version":3,"file":"RequestHeaders.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/ApiClient/Request/RequestHeaders.vue"],"names":[],"mappings":"AAyEA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,mBAAmB,CAAA;AAItD,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,gBAAgB,CAAA;;;;;;;;AA4HxD,wBAMG;AAOH,KAAK,sBAAsB,CAAC,CAAC,IAAI,CAAC,SAAS,SAAS,GAAG,KAAK,GAAG,CAAC,CAAC;AAC5D,KAAK,uBAAuB,CAAC,CAAC,IAAI;KAChC,CAAC,IAAI,MAAM,CAAC,CAAC,CAAC,GAAG,EAAE,SAAS,IAAI,CAAC,CAAC,EAAE,CAAC,CAAC,GACpC;QAAE,IAAI,EAAE,OAAO,KAAK,EAAE,QAAQ,CAAC,sBAAsB,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAA;KAAE,GAC9D;QAAE,IAAI,EAAE,OAAO,KAAK,EAAE,QAAQ,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;QAAC,QAAQ,EAAE,IAAI,CAAA;KAAE;CACzD,CAAC"}
|
|
@@ -0,0 +1,74 @@
|
|
|
1
|
+
import { defineComponent as p, computed as h, openBlock as r, createBlock as l, unref as i, withCtx as m, createElementBlock as f, createElementVNode as n, createTextVNode as g } from "vue";
|
|
2
|
+
import _ from "../../CollapsibleSection/CollapsibleSection.vue.js";
|
|
3
|
+
import "../../CollapsibleSection/CollapsibleSection.vue2.js";
|
|
4
|
+
import v from "../../Grid/Grid.vue.js";
|
|
5
|
+
import { useRequestStore as w } from "../../../stores/useRequestStore.js";
|
|
6
|
+
const k = {
|
|
7
|
+
key: 0,
|
|
8
|
+
class: "scalar-api-client__empty-state"
|
|
9
|
+
}, H = /* @__PURE__ */ n("svg", {
|
|
10
|
+
class: "flow-icon",
|
|
11
|
+
"data-v-aa4fbd2d": "",
|
|
12
|
+
height: "100%",
|
|
13
|
+
viewBox: "0 0 48 48",
|
|
14
|
+
xmlns: "http://www.w3.org/2000/svg"
|
|
15
|
+
}, [
|
|
16
|
+
/* @__PURE__ */ n("path", {
|
|
17
|
+
d: "M24 1.714v44.572M1.714 24h44.572",
|
|
18
|
+
fill: "none",
|
|
19
|
+
stroke: "currentColor",
|
|
20
|
+
"stroke-linecap": "round",
|
|
21
|
+
"stroke-linejoin": "round",
|
|
22
|
+
"stroke-width": "5",
|
|
23
|
+
xmlns: "http://www.w3.org/2000/svg"
|
|
24
|
+
})
|
|
25
|
+
], -1), I = /* @__PURE__ */ p({
|
|
26
|
+
__name: "RequestHeaders",
|
|
27
|
+
props: {
|
|
28
|
+
headers: {},
|
|
29
|
+
generatedHeaders: {}
|
|
30
|
+
},
|
|
31
|
+
setup(c) {
|
|
32
|
+
const s = c, { activeRequest: a } = w();
|
|
33
|
+
function u(e) {
|
|
34
|
+
var t;
|
|
35
|
+
(t = a.headers) == null || t.splice(e, 1);
|
|
36
|
+
}
|
|
37
|
+
function o() {
|
|
38
|
+
var e;
|
|
39
|
+
a.headers === void 0 && (a.headers = []), (e = a.headers) == null || e.push({ name: "", value: "", enabled: !0 });
|
|
40
|
+
}
|
|
41
|
+
const d = h(() => {
|
|
42
|
+
var e, t;
|
|
43
|
+
return !!((e = s.headers) != null && e.length || (t = s.generatedHeaders) != null && t.length);
|
|
44
|
+
});
|
|
45
|
+
return (e, t) => (r(), l(i(_), {
|
|
46
|
+
defaultOpen: d.value,
|
|
47
|
+
title: "Headers"
|
|
48
|
+
}, {
|
|
49
|
+
default: m(() => [
|
|
50
|
+
d.value ? (r(), l(i(v), {
|
|
51
|
+
key: 1,
|
|
52
|
+
addLabel: "Header",
|
|
53
|
+
generatedItems: e.generatedHeaders,
|
|
54
|
+
items: e.headers,
|
|
55
|
+
onAddAnother: o,
|
|
56
|
+
onDeleteIndex: u
|
|
57
|
+
}, null, 8, ["generatedItems", "items"])) : (r(), f("div", k, [
|
|
58
|
+
n("button", {
|
|
59
|
+
class: "scalar-api-client-add",
|
|
60
|
+
type: "button",
|
|
61
|
+
onClick: o
|
|
62
|
+
}, [
|
|
63
|
+
H,
|
|
64
|
+
g(" Headers ")
|
|
65
|
+
])
|
|
66
|
+
]))
|
|
67
|
+
]),
|
|
68
|
+
_: 1
|
|
69
|
+
}, 8, ["defaultOpen"]));
|
|
70
|
+
}
|
|
71
|
+
});
|
|
72
|
+
export {
|
|
73
|
+
I as default
|
|
74
|
+
};
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
import type { GeneratedParameter } from '../../../types';
|
|
2
|
-
declare const _default: import("vue").DefineComponent<
|
|
2
|
+
declare const _default: import("vue").DefineComponent<__VLS_TypePropsToOption<{
|
|
3
3
|
queries?: import("@scalar/oas-utils").BaseParameter[] | undefined;
|
|
4
4
|
generatedQueries?: GeneratedParameter[] | undefined;
|
|
5
|
-
}>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<
|
|
5
|
+
}>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<__VLS_TypePropsToOption<{
|
|
6
6
|
queries?: import("@scalar/oas-utils").BaseParameter[] | undefined;
|
|
7
7
|
generatedQueries?: GeneratedParameter[] | undefined;
|
|
8
8
|
}>>>, {}, {}>;
|
|
9
9
|
export default _default;
|
|
10
10
|
type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
11
|
-
type
|
|
11
|
+
type __VLS_TypePropsToOption<T> = {
|
|
12
12
|
[K in keyof T]-?: {} extends Pick<T, K> ? {
|
|
13
13
|
type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
|
|
14
14
|
} : {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"RequestQuery.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/ApiClient/Request/RequestQuery.vue
|
|
1
|
+
{"version":3,"file":"RequestQuery.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/ApiClient/Request/RequestQuery.vue"],"names":[],"mappings":"AA4EA,OAAO,KAAK,EAAE,kBAAkB,EAAS,MAAM,gBAAgB,CAAA;;;;;;;;AA4H/D,wBAMG;AAOH,KAAK,sBAAsB,CAAC,CAAC,IAAI,CAAC,SAAS,SAAS,GAAG,KAAK,GAAG,CAAC,CAAC;AAC5D,KAAK,uBAAuB,CAAC,CAAC,IAAI;KAChC,CAAC,IAAI,MAAM,CAAC,CAAC,CAAC,GAAG,EAAE,SAAS,IAAI,CAAC,CAAC,EAAE,CAAC,CAAC,GACpC;QAAE,IAAI,EAAE,OAAO,KAAK,EAAE,QAAQ,CAAC,sBAAsB,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAA;KAAE,GAC9D;QAAE,IAAI,EAAE,OAAO,KAAK,EAAE,QAAQ,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;QAAC,QAAQ,EAAE,IAAI,CAAA;KAAE;CACzD,CAAC"}
|