@scalar/api-client 2.5.18 → 2.5.20
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 +60 -0
- package/dist/components/AddressBar/AddressBar.vue.d.ts +2 -2
- package/dist/components/AddressBar/AddressBar.vue.js +1 -1
- package/dist/components/AddressBar/AddressBar.vue3.js +4 -0
- package/dist/components/AddressBar/AddressBarHistory.vue.js +1 -1
- package/dist/components/AddressBar/AddressBarHistory.vue3.js +4 -0
- package/dist/components/AddressBar/index.d.ts +1 -1
- package/dist/components/CodeInput/CodeInput.vue.d.ts +5 -5
- package/dist/components/CodeInput/CodeInput.vue.d.ts.map +1 -1
- package/dist/components/CodeInput/CodeInput.vue.js +2 -2
- package/dist/components/CodeInput/CodeInput.vue3.js +4 -0
- package/dist/components/CodeInput/CodeInput.vue4.js +4 -0
- package/dist/components/CodeInput/codeVariableWidget.d.ts +1 -1
- package/dist/components/CodeInput/index.d.ts +1 -1
- package/dist/components/CommandPalette/CommandActionForm.vue.d.ts +3 -3
- package/dist/components/CommandPalette/CommandActionForm.vue.d.ts.map +1 -1
- package/dist/components/CommandPalette/CommandActionInput.vue.d.ts +2 -2
- package/dist/components/CommandPalette/CommandPaletteCollection.vue.d.ts +2 -2
- package/dist/components/CommandPalette/CommandPaletteExample.vue.d.ts +2 -2
- package/dist/components/CommandPalette/CommandPaletteImport.vue.d.ts +2 -2
- package/dist/components/CommandPalette/CommandPaletteImportCurl.vue.d.ts +2 -2
- package/dist/components/CommandPalette/CommandPaletteImportCurl.vue.js +1 -1
- package/dist/components/CommandPalette/CommandPaletteImportCurl.vue3.js +4 -0
- package/dist/components/CommandPalette/CommandPaletteServer.vue.d.ts +2 -2
- package/dist/components/CommandPalette/CommandPaletteTag.vue.d.ts +2 -2
- package/dist/components/CommandPalette/CommandPaletteWorkspace.vue.d.ts +2 -2
- package/dist/components/CommandPalette/TheCommandPalette.vue.d.ts +22 -22
- package/dist/components/CommandPalette/TheCommandPalette.vue.d.ts.map +1 -1
- package/dist/components/CommandPalette/TheCommandPalette.vue.js +1 -1
- package/dist/components/CommandPalette/TheCommandPalette.vue3.js +4 -0
- package/dist/components/CommandPalette/WatchModeToggle.vue.d.ts +1 -1
- package/dist/components/CommandPalette/index.d.ts +1 -1
- package/dist/components/DataTable/DataTable.vue.d.ts.map +1 -1
- package/dist/components/DataTable/DataTableCell.vue.d.ts.map +1 -1
- package/dist/components/DataTable/DataTableCheckbox.vue.d.ts +1 -1
- package/dist/components/DataTable/DataTableInput.vue.d.ts +40 -40
- package/dist/components/DataTable/DataTableInput.vue.d.ts.map +1 -1
- package/dist/components/DataTable/DataTableInput.vue.js +1 -1
- package/dist/components/DataTable/DataTableInput.vue3.js +4 -0
- package/dist/components/DataTable/DataTableInputSelect.vue.d.ts +1 -1
- package/dist/components/DataTable/DataTableText.vue.d.ts.map +1 -1
- package/dist/components/DataTable/index.d.ts +8 -8
- package/dist/components/EmptyState.vue.js +1 -1
- package/dist/components/EmptyState.vue3.js +4 -0
- package/dist/components/Form/Form.vue.d.ts.map +1 -1
- package/dist/components/Form/LabelInput.vue.d.ts +2 -2
- package/dist/components/Form/LabelInput.vue.js +1 -1
- package/dist/components/Form/LabelInput.vue3.js +4 -0
- package/dist/components/HelpfulLink.vue.d.ts.map +1 -1
- package/dist/components/HttpMethod/HttpMethod.vue.d.ts +1 -1
- package/dist/components/HttpMethod/HttpMethod.vue.js +1 -1
- package/dist/components/HttpMethod/HttpMethod.vue3.js +4 -0
- package/dist/components/HttpMethod/index.d.ts +1 -1
- package/dist/components/IconSelector.vue.d.ts +1 -1
- package/dist/components/IconSelector.vue.d.ts.map +1 -1
- package/dist/components/ImportCollection/DropEventListener.vue.d.ts +1 -1
- package/dist/components/ImportCollection/ImportCollectionListener.vue.js +1 -1
- package/dist/components/ImportCollection/ImportCollectionModal.vue.d.ts +1 -1
- package/dist/components/ImportCollection/ImportCollectionModal.vue2.js +4 -0
- package/dist/components/ImportCollection/ImportCollectionModal.vue3.js +1 -1
- package/dist/components/ImportCollection/ImportNowButton.vue.d.ts +1 -1
- package/dist/components/ImportCollection/PasteEventListener.vue.d.ts +1 -1
- package/dist/components/ImportCollection/UrlQueryParameterChecker.vue.d.ts +1 -1
- package/dist/components/ImportCollection/hooks/useUrlPrefetcher.d.ts +2 -2
- package/dist/components/ImportCollection/index.d.ts +1 -1
- package/dist/components/ImportCollection/utils/import-collection.d.ts +1 -1
- package/dist/components/ImportCollection/utils/workspace-store-is-empty.d.ts +1 -1
- package/dist/components/OpenApiClientButton.vue.d.ts.map +1 -1
- package/dist/components/OpenApiClientButton.vue.js +3 -3
- package/dist/components/OpenApiClientButton.vue2.js +11 -8
- package/dist/components/OpenApiClientButton.vue3.js +4 -0
- package/dist/components/ScalarAsciiArt.vue.js +1 -1
- package/dist/components/ScalarAsciiArt.vue3.js +4 -0
- package/dist/components/ScreenReader.vue.d.ts.map +1 -1
- package/dist/components/SectionFilter.vue.d.ts +1 -1
- package/dist/components/SectionFilter.vue.d.ts.map +1 -1
- package/dist/components/SectionFilter.vue.js +3 -3
- package/dist/components/SectionFilter.vue2.js +8 -8
- package/dist/components/SectionFilter.vue3.js +4 -0
- package/dist/components/SectionFilterButton.vue.d.ts.map +1 -1
- package/dist/components/Server/ServerDropdownItem.vue.d.ts +1 -1
- package/dist/components/Server/ServerDropdownItem.vue.js +1 -1
- package/dist/components/Server/ServerDropdownItem.vue3.js +4 -0
- package/dist/components/Server/ServerSelector.vue.d.ts +1 -1
- package/dist/components/Server/ServerSelector.vue.d.ts.map +1 -1
- package/dist/components/Server/ServerSelector.vue.js +28 -27
- package/dist/components/Server/ServerVariablesForm.vue.d.ts +1 -1
- package/dist/components/Server/ServerVariablesForm.vue.d.ts.map +1 -1
- package/dist/components/Server/ServerVariablesForm.vue.js +5 -2
- package/dist/components/Server/ServerVariablesSelect.vue.d.ts +1 -1
- package/dist/components/Server/ServerVariablesSelect.vue.d.ts.map +1 -1
- package/dist/components/Server/ServerVariablesSelect.vue.js +18 -18
- package/dist/components/Server/ServerVariablesTextbox.vue.d.ts +1 -1
- package/dist/components/Server/index.d.ts +3 -3
- package/dist/components/SideNav/DownloadAppButton.vue.js +1 -1
- package/dist/components/SideNav/DownloadAppButton.vue3.js +4 -0
- package/dist/components/SideNav/SideNavLink.vue.d.ts.map +1 -1
- package/dist/components/SideNav/SideNavRouterLink.vue.d.ts.map +1 -1
- package/dist/components/Sidebar/Actions/DeleteSidebarListElement.vue.d.ts +2 -2
- package/dist/components/Sidebar/Actions/EditSidebarListCollection.vue.d.ts +2 -2
- package/dist/components/Sidebar/Actions/EditSidebarListElement.vue.d.ts +2 -2
- package/dist/components/Sidebar/Actions/SidebarListElementForm.vue.d.ts +2 -2
- package/dist/components/Sidebar/Actions/SidebarListElementForm.vue.d.ts.map +1 -1
- package/dist/components/Sidebar/Actions/SidebarListElementForm.vue.js +1 -1
- package/dist/components/Sidebar/Actions/SidebarListElementForm.vue3.js +4 -0
- package/dist/components/Sidebar/Sidebar.vue.d.ts.map +1 -1
- package/dist/components/Sidebar/Sidebar.vue.js +1 -1
- package/dist/components/Sidebar/Sidebar.vue3.js +4 -0
- package/dist/components/Sidebar/SidebarButton.vue.d.ts.map +1 -1
- package/dist/components/Sidebar/SidebarListElement.vue.d.ts +4 -4
- package/dist/components/Sidebar/SidebarListElement.vue.js +2 -2
- package/dist/components/Sidebar/SidebarListElement.vue3.js +4 -0
- package/dist/components/Sidebar/SidebarListElement.vue4.js +4 -0
- package/dist/components/Sidebar/SidebarListElementActions.vue.d.ts +2 -2
- package/dist/components/Sidebar/index.d.ts +1 -1
- package/dist/components/TopNav/TopNavItem.vue.d.ts +5 -5
- package/dist/components/TopNav/TopNavItem.vue.js +1 -1
- package/dist/components/TopNav/TopNavItem.vue3.js +4 -0
- package/dist/components/ViewLayout/ViewLayoutCollapse.vue.d.ts +1 -1
- package/dist/components/ViewLayout/ViewLayoutCollapse.vue.d.ts.map +1 -1
- package/dist/components/ViewLayout/ViewLayoutCollapse.vue.js +14 -14
- package/dist/components/ViewLayout/index.d.ts +1 -1
- package/dist/components/index.d.ts +3 -3
- package/dist/hooks/index.d.ts +5 -5
- package/dist/hooks/useSidebar.d.ts +1 -1
- package/dist/index.d.ts +5 -5
- package/dist/index.js +2 -2
- package/dist/layouts/App/ApiClientApp.vue.d.ts +2 -2
- package/dist/layouts/App/ApiClientApp.vue2.js +4 -0
- package/dist/layouts/App/ApiClientApp.vue3.js +1 -1
- package/dist/layouts/App/create-api-client-app.d.ts +131 -101
- package/dist/layouts/App/create-api-client-app.d.ts.map +1 -1
- package/dist/layouts/App/create-api-client-app.js +1 -1
- package/dist/layouts/App/index.d.ts +2 -2
- package/dist/layouts/App/index.js +1 -1
- package/dist/layouts/Modal/ApiClientModal.vue.js +1 -1
- package/dist/layouts/Modal/ApiClientModal.vue3.js +4 -0
- package/dist/layouts/Modal/create-api-client-modal.d.ts +263 -203
- package/dist/layouts/Modal/create-api-client-modal.d.ts.map +1 -1
- package/dist/layouts/Modal/index.d.ts +2 -2
- package/dist/layouts/Web/ApiClientWeb.vue2.js +4 -0
- package/dist/layouts/Web/ApiClientWeb.vue3.js +1 -1
- package/dist/layouts/Web/create-api-client-web.d.ts +131 -101
- package/dist/layouts/Web/create-api-client-web.d.ts.map +1 -1
- package/dist/layouts/Web/create-api-client-web.js +1 -1
- package/dist/layouts/Web/index.d.ts +2 -2
- package/dist/layouts/Web/index.js +1 -1
- package/dist/libs/create-client.d.ts +131 -101
- package/dist/libs/create-client.d.ts.map +1 -1
- package/dist/libs/environment-parser.d.ts +1 -1
- package/dist/libs/find-request.d.ts +2 -2
- package/dist/libs/find-request.d.ts.map +1 -1
- package/dist/libs/get-request-uid-by-path-method.d.ts +1 -1
- package/dist/libs/hot-keys.d.ts +1 -1
- package/dist/libs/importers/index.d.ts +1 -1
- package/dist/libs/index.d.ts +16 -16
- package/dist/libs/local-storage.d.ts +1 -1
- package/dist/libs/send-request/create-request-operation.d.ts +3 -3
- package/dist/libs/send-request/create-request-operation.test.d.ts +9 -9
- package/dist/libs/send-request/create-request-operation.test.d.ts.map +1 -1
- package/dist/libs/send-request/index.d.ts +3 -3
- package/dist/plugins/hooks/usePluginManager.d.ts +1 -1
- package/dist/plugins/index.d.ts +2 -2
- package/dist/router.d.ts +1 -1
- package/dist/routes.d.ts +38 -38
- package/dist/store/active-entities.d.ts +9 -9
- package/dist/store/active-entities.d.ts.map +1 -1
- package/dist/store/events.d.ts +8 -8
- package/dist/store/import-spec.d.ts +1 -1
- package/dist/store/index.d.ts +2 -2
- package/dist/store/request-example.d.ts +70 -70
- package/dist/store/request-example.d.ts.map +1 -1
- package/dist/store/requests.d.ts +23 -23
- package/dist/store/requests.d.ts.map +1 -1
- package/dist/store/security-schemes.d.ts +32 -2
- package/dist/store/security-schemes.d.ts.map +1 -1
- package/dist/store/store.d.ts +129 -99
- package/dist/store/store.d.ts.map +1 -1
- package/dist/style.css +1 -1
- package/dist/style.css.js +4 -0
- package/dist/views/Collection/CollectionAuthentication.vue.js +1 -1
- package/dist/views/Collection/CollectionAuthentication.vue3.js +4 -0
- package/dist/views/Collection/CollectionEnvironment.vue.js +1 -1
- package/dist/views/Collection/CollectionEnvironment.vue3.js +4 -0
- package/dist/views/Collection/CollectionInfoForm.vue.js +1 -1
- package/dist/views/Collection/CollectionInfoForm.vue3.js +4 -0
- package/dist/views/Collection/CollectionSettings.vue.js +1 -1
- package/dist/views/Collection/CollectionSettings.vue3.js +4 -0
- package/dist/views/Collection/components/EnvironmentForm.vue.d.ts +1 -1
- package/dist/views/Collection/components/EnvironmentForm.vue.js +1 -1
- package/dist/views/Collection/components/EnvironmentForm.vue3.js +4 -0
- package/dist/views/Collection/components/MarkdownInput.vue.d.ts +2 -2
- package/dist/views/Collection/components/MarkdownInput.vue.js +1 -1
- package/dist/views/Collection/components/MarkdownInput.vue3.js +4 -0
- package/dist/views/Components/CodeSnippet/CodeSnippet.vue.d.ts +1 -1
- package/dist/views/Components/CodeSnippet/helpers/get-har-request.d.ts +1 -1
- package/dist/views/Components/CodeSnippet/helpers/get-snippet.d.ts +1 -1
- package/dist/views/Components/CodeSnippet/index.d.ts +4 -4
- package/dist/views/Cookies/CookieModal.vue.d.ts +3 -3
- package/dist/views/Cookies/CookieModal.vue.js +1 -1
- package/dist/views/Cookies/CookieModal.vue3.js +4 -0
- package/dist/views/Environment/EnvironmentColorModal.vue.d.ts +2 -2
- package/dist/views/Environment/EnvironmentColors.vue.d.ts +1 -1
- package/dist/views/Environment/EnvironmentModal.vue.d.ts +3 -3
- package/dist/views/Environment/EnvironmentVariableDropdown.vue.d.ts +2 -2
- package/dist/views/Environment/handle-drag.d.ts +1 -1
- package/dist/views/Request/Request.vue.d.ts +3 -3
- package/dist/views/Request/Request.vue.d.ts.map +1 -1
- package/dist/views/Request/Request.vue.js +3 -3
- package/dist/views/Request/Request.vue2.js +22 -22
- package/dist/views/Request/Request.vue3.js +4 -0
- package/dist/views/Request/RequestRoot.vue.d.ts +2 -2
- package/dist/views/Request/RequestRoot.vue.js +1 -1
- package/dist/views/Request/RequestRoot.vue3.js +4 -0
- package/dist/views/Request/RequestSection/RequestAuth/DeleteRequestAuthModal.vue.d.ts +2 -2
- package/dist/views/Request/RequestSection/RequestAuth/OAuth2.vue.d.ts +1 -1
- package/dist/views/Request/RequestSection/RequestAuth/OAuthScopesInput.vue.d.ts +1 -1
- package/dist/views/Request/RequestSection/RequestAuth/RequestAuth.vue.d.ts +1 -1
- package/dist/views/Request/RequestSection/RequestAuth/RequestAuth.vue.d.ts.map +1 -1
- package/dist/views/Request/RequestSection/RequestAuth/RequestAuth.vue.js +2 -2
- package/dist/views/Request/RequestSection/RequestAuth/RequestAuth.vue2.js +57 -59
- package/dist/views/Request/RequestSection/RequestAuth/RequestAuth.vue3.js +4 -0
- package/dist/views/Request/RequestSection/RequestAuth/RequestAuthDataTable.vue.d.ts +1 -1
- package/dist/views/Request/RequestSection/RequestAuth/RequestAuthDataTable.vue.d.ts.map +1 -1
- package/dist/views/Request/RequestSection/RequestAuth/RequestAuthDataTable.vue.js +4 -4
- package/dist/views/Request/RequestSection/RequestAuth/RequestAuthDataTable.vue2.js +35 -33
- package/dist/views/Request/RequestSection/RequestAuth/RequestAuthDataTable.vue3.js +4 -0
- package/dist/views/Request/RequestSection/RequestAuth/RequestAuthDataTableInput.vue.d.ts +5 -5
- package/dist/views/Request/RequestSection/RequestAuth/RequestAuthDataTableInput.vue.d.ts.map +1 -1
- package/dist/views/Request/RequestSection/RequestAuth/RequestAuthTab.vue.d.ts +1 -1
- package/dist/views/Request/RequestSection/RequestAuth/RequestAuthTab.vue.d.ts.map +1 -1
- package/dist/views/Request/RequestSection/RequestAuth/RequestAuthTab.vue.js +239 -5
- package/dist/views/Request/RequestSection/RequestAuth/RequestAuthTab.vue2.js +2 -244
- package/dist/views/Request/RequestSection/RequestAuth/index.d.ts +2 -2
- package/dist/views/Request/RequestSection/RequestBody.vue.d.ts +1 -1
- package/dist/views/Request/RequestSection/RequestBody.vue.js +1 -1
- package/dist/views/Request/RequestSection/RequestBody.vue3.js +4 -0
- package/dist/views/Request/RequestSection/RequestCodeExample.vue.d.ts +1 -1
- package/dist/views/Request/RequestSection/RequestCodeExample.vue.js +1 -1
- package/dist/views/Request/RequestSection/RequestCodeExample.vue3.js +4 -0
- package/dist/views/Request/RequestSection/RequestParams.vue.d.ts +1 -1
- package/dist/views/Request/RequestSection/RequestPathParams.vue.d.ts +1 -1
- package/dist/views/Request/RequestSection/RequestSection.vue.d.ts +1 -1
- package/dist/views/Request/RequestSection/RequestSection.vue.js +1 -1
- package/dist/views/Request/RequestSection/RequestSection.vue3.js +4 -0
- package/dist/views/Request/RequestSection/RequestTable.vue.d.ts +9 -9
- package/dist/views/Request/RequestSection/RequestTable.vue.js +1 -1
- package/dist/views/Request/RequestSection/RequestTable.vue3.js +4 -0
- package/dist/views/Request/RequestSection/RequestTableTooltip.vue.js +1 -1
- package/dist/views/Request/RequestSection/RequestTableTooltip.vue3.js +4 -0
- package/dist/views/Request/RequestSection/helpers/filter-security-requirements.js +10 -10
- package/dist/views/Request/RequestSection/helpers/update-scheme.d.ts +1 -1
- package/dist/views/Request/RequestSection/index.d.ts +2 -2
- package/dist/views/Request/RequestSidebar.vue.d.ts +3 -3
- package/dist/views/Request/RequestSidebar.vue.js +1 -1
- package/dist/views/Request/RequestSidebar.vue3.js +4 -0
- package/dist/views/Request/RequestSidebarItem.vue.d.ts +14 -14
- package/dist/views/Request/RequestSidebarItem.vue.d.ts.map +1 -1
- package/dist/views/Request/RequestSidebarItem.vue.js +2 -2
- package/dist/views/Request/RequestSidebarItem.vue3.js +4 -0
- package/dist/views/Request/RequestSidebarItem.vue4.js +4 -0
- package/dist/views/Request/RequestSidebarItemMenu.vue.d.ts +5 -5
- package/dist/views/Request/RequestSidebarItemMenu.vue.js +1 -1
- package/dist/views/Request/RequestSidebarItemMenu.vue3.js +4 -0
- package/dist/views/Request/RequestSubpageHeader.vue.d.ts +3 -3
- package/dist/views/Request/RequestSubpageHeader.vue.js +1 -1
- package/dist/views/Request/RequestSubpageHeader.vue3.js +4 -0
- package/dist/views/Request/ResponseSection/ResponseBody.vue.js +1 -1
- package/dist/views/Request/ResponseSection/ResponseBody.vue3.js +4 -0
- package/dist/views/Request/ResponseSection/ResponseBodyDownload.vue.js +1 -1
- package/dist/views/Request/ResponseSection/ResponseBodyPreview.vue.d.ts +1 -1
- package/dist/views/Request/ResponseSection/ResponseBodyPreview.vue.js +1 -1
- package/dist/views/Request/ResponseSection/ResponseBodyPreview.vue3.js +4 -0
- package/dist/views/Request/ResponseSection/ResponseBodyRaw.vue.d.ts.map +1 -1
- package/dist/views/Request/ResponseSection/ResponseBodyRaw.vue.js +4 -4
- package/dist/views/Request/ResponseSection/ResponseBodyRaw.vue2.js +4 -4
- package/dist/views/Request/ResponseSection/ResponseBodyRaw.vue3.js +4 -0
- package/dist/views/Request/ResponseSection/ResponseBodyToggle.vue.d.ts +1 -1
- package/dist/views/Request/ResponseSection/ResponseBodyVirtual.vue2.js +4 -0
- package/dist/views/Request/ResponseSection/ResponseBodyVirtual.vue3.js +1 -1
- package/dist/views/Request/ResponseSection/ResponseEmpty.vue.js +1 -1
- package/dist/views/Request/ResponseSection/ResponseEmpty.vue2.js +1 -1
- package/dist/views/Request/ResponseSection/ResponseEmpty.vue3.js +4 -0
- package/dist/views/Request/ResponseSection/ResponseLoadingOverlay.vue.js +1 -1
- package/dist/views/Request/ResponseSection/ResponseLoadingOverlay.vue3.js +4 -0
- package/dist/views/Request/ResponseSection/ResponseSection.vue.d.ts +1 -1
- package/dist/views/Request/ResponseSection/ResponseSection.vue.js +1 -1
- package/dist/views/Request/ResponseSection/ResponseSection.vue2.js +1 -1
- package/dist/views/Request/ResponseSection/ResponseSection.vue3.js +4 -0
- package/dist/views/Request/ResponseSection/index.d.ts +2 -2
- package/dist/views/Request/components/index.d.ts +1 -1
- package/dist/views/Request/consts/index.d.ts +3 -3
- package/dist/views/Request/handle-drag.d.ts +2 -2
- package/dist/views/Request/libs/auth.d.ts +1 -1
- package/dist/views/Request/libs/index.d.ts +3 -3
- package/dist/views/Request/libs/oauth2.d.ts +1 -1
- package/dist/views/Request/libs/oauth2.d.ts.map +1 -1
- package/dist/views/Request/libs/oauth2.js +51 -51
- package/dist/views/Request/libs/watch-mode.d.ts +2 -2
- package/dist/vitest.setup.d.ts +21 -7
- package/dist/vitest.setup.d.ts.map +1 -1
- package/package.json +21 -21
|
@@ -1,7 +1,241 @@
|
|
|
1
|
-
import
|
|
2
|
-
|
|
3
|
-
import
|
|
4
|
-
|
|
1
|
+
import { defineComponent as z, computed as F, ref as P, onMounted as R, createElementBlock as i, openBlock as l, Fragment as s, renderList as U, createBlock as m, createCommentVNode as v, unref as d, withCtx as n, createVNode as u, createElementVNode as $, toDisplayString as A, mergeProps as V, createTextVNode as w, normalizeClass as I, capitalize as x } from "vue";
|
|
2
|
+
import { ScalarMarkdown as D } from "@scalar/components";
|
|
3
|
+
import { safeLocalStorage as N, CLIENT_LS_KEYS as j } from "@scalar/helpers/object/local-storage";
|
|
4
|
+
import { isDefined as B } from "@scalar/oas-utils/helpers";
|
|
5
|
+
import { useWorkspace as H } from "../../../../store/store.js";
|
|
6
|
+
import { updateScheme as Q } from "../helpers/update-scheme.js";
|
|
7
|
+
import q from "./OAuth2.vue.js";
|
|
8
|
+
import k from "./RequestAuthDataTableInput.vue.js";
|
|
9
|
+
import f from "../../../../components/DataTable/DataTableRow.vue.js";
|
|
10
|
+
import L from "../../../../components/DataTable/DataTableCell.vue.js";
|
|
11
|
+
const J = { class: "bg-b-1 text-c-2 outline-b-3 top-0 z-1 h-full w-full overflow-hidden px-3 py-1.25 text-ellipsis group-hover/auth:absolute group-hover/auth:h-auto group-hover/auth:border-b *:first:line-clamp-1 *:first:text-ellipsis group-hover/auth:*:first:line-clamp-none" }, Y = {
|
|
12
|
+
key: 0,
|
|
13
|
+
class: "flex min-h-8 border-t text-base"
|
|
14
|
+
}, W = { class: "flex h-8 max-w-full gap-2.5 overflow-x-auto px-3" }, G = ["onClick"], X = { class: "relative z-10" }, ie = /* @__PURE__ */ z({
|
|
15
|
+
__name: "RequestAuthTab",
|
|
16
|
+
props: {
|
|
17
|
+
collection: {},
|
|
18
|
+
environment: {},
|
|
19
|
+
envVariables: {},
|
|
20
|
+
layout: {},
|
|
21
|
+
persistAuth: { type: Boolean, default: !1 },
|
|
22
|
+
securitySchemeUids: {},
|
|
23
|
+
server: {},
|
|
24
|
+
workspace: {}
|
|
25
|
+
},
|
|
26
|
+
setup(c) {
|
|
27
|
+
const C = H(), { collectionMutators: M, securitySchemes: _, securitySchemeMutators: O } = C, S = F(
|
|
28
|
+
() => c.securitySchemeUids.map((t) => ({
|
|
29
|
+
scheme: _[t]
|
|
30
|
+
}))
|
|
31
|
+
), p = P(""), T = (t) => {
|
|
32
|
+
const r = t.description ? `: ${t.description}` : "", e = `${x(t.nameKey)}${r || `: ${t.type}`}`;
|
|
33
|
+
if (t.type === "apiKey")
|
|
34
|
+
return `${x(t.nameKey)}${r || `: ${t.in}`}`;
|
|
35
|
+
if (t.type === "oauth2") {
|
|
36
|
+
const o = Object.values(t.flows ?? {})[0];
|
|
37
|
+
return `${x(t.nameKey)}: ${p.value ? p.value : (o == null ? void 0 : o.type) ?? ""}${r}`;
|
|
38
|
+
}
|
|
39
|
+
return t.type === "http" ? `${x(t.nameKey)}: ${t.scheme}${r}` : `${e}${r}`;
|
|
40
|
+
}, g = (t, r, e) => {
|
|
41
|
+
Q(t, r, e, C, c.persistAuth);
|
|
42
|
+
};
|
|
43
|
+
R(() => {
|
|
44
|
+
if (!c.persistAuth)
|
|
45
|
+
return;
|
|
46
|
+
const t = JSON.parse(
|
|
47
|
+
N().getItem(j.AUTH) ?? "{}"
|
|
48
|
+
), r = Object.keys(_).reduce(
|
|
49
|
+
(e, o) => {
|
|
50
|
+
const a = _[o];
|
|
51
|
+
return a && (e[a.nameKey] = a.uid), e;
|
|
52
|
+
},
|
|
53
|
+
{}
|
|
54
|
+
);
|
|
55
|
+
Object.entries(t).forEach(([e, o]) => {
|
|
56
|
+
const a = r[e];
|
|
57
|
+
a && Object.entries(o).forEach(([E, K]) => {
|
|
58
|
+
O.edit(a, E, K);
|
|
59
|
+
});
|
|
60
|
+
});
|
|
61
|
+
try {
|
|
62
|
+
const o = JSON.parse(
|
|
63
|
+
N().getItem(j.SELECTED_SECURITY_SCHEMES) ?? ""
|
|
64
|
+
).map((a) => Array.isArray(a) ? a.map((b) => r[b]).filter(B) : r[a]).filter(B);
|
|
65
|
+
M.edit(c.collection.uid, "selectedSecuritySchemeUids", o);
|
|
66
|
+
} catch {
|
|
67
|
+
}
|
|
68
|
+
});
|
|
69
|
+
const y = {
|
|
70
|
+
environment: c.environment,
|
|
71
|
+
envVariables: c.envVariables,
|
|
72
|
+
workspace: c.workspace
|
|
73
|
+
};
|
|
74
|
+
return (t, r) => (l(!0), i(s, null, U(S.value, ({ scheme: e }) => (l(), i(s, {
|
|
75
|
+
key: e == null ? void 0 : e.uid
|
|
76
|
+
}, [
|
|
77
|
+
S.value.length > 1 && e ? (l(), m(d(f), { key: 0 }, {
|
|
78
|
+
default: n(() => [
|
|
79
|
+
u(d(L), {
|
|
80
|
+
"aria-label": T(e),
|
|
81
|
+
class: "text-c-2 group/auth flex items-center leading-[22px] whitespace-nowrap outline-none hover:whitespace-normal"
|
|
82
|
+
}, {
|
|
83
|
+
default: n(() => [
|
|
84
|
+
$("p", J, A(T(e)), 1)
|
|
85
|
+
]),
|
|
86
|
+
_: 2
|
|
87
|
+
}, 1032, ["aria-label"])
|
|
88
|
+
]),
|
|
89
|
+
_: 2
|
|
90
|
+
}, 1024)) : v("", !0),
|
|
91
|
+
e != null && e.description && S.value.length <= 1 ? (l(), m(d(f), { key: 1 }, {
|
|
92
|
+
default: n(() => [
|
|
93
|
+
u(d(L), {
|
|
94
|
+
"aria-label": e.description,
|
|
95
|
+
class: "text-c-2 group/auth auth-description-container flex items-center whitespace-nowrap outline-none hover:whitespace-normal"
|
|
96
|
+
}, {
|
|
97
|
+
default: n(() => [
|
|
98
|
+
u(d(D), {
|
|
99
|
+
class: "auth-description bg-b-1 text-c-2 outline-b-3 top-0 z-1 h-full w-full px-3 py-1.25 group-hover/auth:absolute group-hover/auth:h-auto group-hover/auth:border-b *:first:line-clamp-1 *:first:text-ellipsis group-hover/auth:*:first:line-clamp-none",
|
|
100
|
+
value: e.description
|
|
101
|
+
}, null, 8, ["value"])
|
|
102
|
+
]),
|
|
103
|
+
_: 2
|
|
104
|
+
}, 1032, ["aria-label"])
|
|
105
|
+
]),
|
|
106
|
+
_: 2
|
|
107
|
+
}, 1024)) : v("", !0),
|
|
108
|
+
(e == null ? void 0 : e.type) === "http" ? (l(), i(s, { key: 2 }, [
|
|
109
|
+
e.scheme === "bearer" ? (l(), m(d(f), { key: 0 }, {
|
|
110
|
+
default: n(() => [
|
|
111
|
+
u(k, V({ ref_for: !0 }, y, {
|
|
112
|
+
containerClass: t.layout === "reference" && "border-t",
|
|
113
|
+
modelValue: e.token,
|
|
114
|
+
placeholder: "Token",
|
|
115
|
+
type: "password",
|
|
116
|
+
"onUpdate:modelValue": (o) => g(e.uid, "token", o)
|
|
117
|
+
}), {
|
|
118
|
+
default: n(() => r[0] || (r[0] = [
|
|
119
|
+
w(" Bearer Token ")
|
|
120
|
+
])),
|
|
121
|
+
_: 2,
|
|
122
|
+
__: [0]
|
|
123
|
+
}, 1040, ["containerClass", "modelValue", "onUpdate:modelValue"])
|
|
124
|
+
]),
|
|
125
|
+
_: 2
|
|
126
|
+
}, 1024)) : (e == null ? void 0 : e.scheme) === "basic" ? (l(), i(s, { key: 1 }, [
|
|
127
|
+
u(d(f), null, {
|
|
128
|
+
default: n(() => [
|
|
129
|
+
u(k, V({ ref_for: !0 }, y, {
|
|
130
|
+
class: "text-c-2",
|
|
131
|
+
modelValue: e.username,
|
|
132
|
+
placeholder: "janedoe",
|
|
133
|
+
required: "",
|
|
134
|
+
"onUpdate:modelValue": (o) => g(e.uid, "username", o)
|
|
135
|
+
}), {
|
|
136
|
+
default: n(() => r[1] || (r[1] = [
|
|
137
|
+
w(" Username ")
|
|
138
|
+
])),
|
|
139
|
+
_: 2,
|
|
140
|
+
__: [1]
|
|
141
|
+
}, 1040, ["modelValue", "onUpdate:modelValue"])
|
|
142
|
+
]),
|
|
143
|
+
_: 2
|
|
144
|
+
}, 1024),
|
|
145
|
+
u(d(f), null, {
|
|
146
|
+
default: n(() => [
|
|
147
|
+
u(k, V({ ref_for: !0 }, y, {
|
|
148
|
+
modelValue: e.password,
|
|
149
|
+
placeholder: "********",
|
|
150
|
+
type: "password",
|
|
151
|
+
"onUpdate:modelValue": (o) => g(e.uid, "password", o)
|
|
152
|
+
}), {
|
|
153
|
+
default: n(() => r[2] || (r[2] = [
|
|
154
|
+
w(" Password ")
|
|
155
|
+
])),
|
|
156
|
+
_: 2,
|
|
157
|
+
__: [2]
|
|
158
|
+
}, 1040, ["modelValue", "onUpdate:modelValue"])
|
|
159
|
+
]),
|
|
160
|
+
_: 2
|
|
161
|
+
}, 1024)
|
|
162
|
+
], 64)) : v("", !0)
|
|
163
|
+
], 64)) : (e == null ? void 0 : e.type) === "apiKey" ? (l(), i(s, { key: 3 }, [
|
|
164
|
+
u(d(f), null, {
|
|
165
|
+
default: n(() => [
|
|
166
|
+
u(k, V({ ref_for: !0 }, y, {
|
|
167
|
+
containerClass: t.layout === "reference" && "border-t",
|
|
168
|
+
modelValue: e.name,
|
|
169
|
+
placeholder: "api-key",
|
|
170
|
+
"onUpdate:modelValue": (o) => g(e.uid, "name", o)
|
|
171
|
+
}), {
|
|
172
|
+
default: n(() => r[3] || (r[3] = [
|
|
173
|
+
w(" Name ")
|
|
174
|
+
])),
|
|
175
|
+
_: 2,
|
|
176
|
+
__: [3]
|
|
177
|
+
}, 1040, ["containerClass", "modelValue", "onUpdate:modelValue"])
|
|
178
|
+
]),
|
|
179
|
+
_: 2
|
|
180
|
+
}, 1024),
|
|
181
|
+
u(d(f), null, {
|
|
182
|
+
default: n(() => [
|
|
183
|
+
u(k, V({ ref_for: !0 }, y, {
|
|
184
|
+
modelValue: e.value,
|
|
185
|
+
placeholder: "QUxMIFlPVVIgQkFTRSBBUkUgQkVMT05HIFRPIFVT",
|
|
186
|
+
type: "password",
|
|
187
|
+
"onUpdate:modelValue": (o) => g(e.uid, "value", o)
|
|
188
|
+
}), {
|
|
189
|
+
default: n(() => r[4] || (r[4] = [
|
|
190
|
+
w(" Value ")
|
|
191
|
+
])),
|
|
192
|
+
_: 2,
|
|
193
|
+
__: [4]
|
|
194
|
+
}, 1040, ["modelValue", "onUpdate:modelValue"])
|
|
195
|
+
]),
|
|
196
|
+
_: 2
|
|
197
|
+
}, 1024)
|
|
198
|
+
], 64)) : (e == null ? void 0 : e.type) === "oauth2" ? (l(), i(s, { key: 4 }, [
|
|
199
|
+
u(d(f), null, {
|
|
200
|
+
default: n(() => [
|
|
201
|
+
Object.keys(e.flows).length > 1 ? (l(), i("div", Y, [
|
|
202
|
+
$("div", W, [
|
|
203
|
+
(l(!0), i(s, null, U(e == null ? void 0 : e.flows, (o, a, b) => (l(), i("button", {
|
|
204
|
+
key: a,
|
|
205
|
+
class: I(["floating-bg text-c-3 relative cursor-pointer border-b-[1px] border-transparent py-1 text-base font-medium", {
|
|
206
|
+
"!text-c-1 !rounded-none border-b-[1px] !border-current": t.layout !== "reference" && (p.value === a || b === 0 && !p.value),
|
|
207
|
+
"!text-c-1 !rounded-none border-b-[1px] !border-current opacity-100": t.layout === "reference" && (p.value === a || b === 0 && !p.value)
|
|
208
|
+
}]),
|
|
209
|
+
type: "button",
|
|
210
|
+
onClick: (E) => p.value = a
|
|
211
|
+
}, [
|
|
212
|
+
$("span", X, A(a), 1)
|
|
213
|
+
], 10, G))), 128))
|
|
214
|
+
])
|
|
215
|
+
])) : v("", !0)
|
|
216
|
+
]),
|
|
217
|
+
_: 2
|
|
218
|
+
}, 1024),
|
|
219
|
+
(l(!0), i(s, null, U(e == null ? void 0 : e.flows, (o, a, b) => (l(), i(s, { key: a }, [
|
|
220
|
+
p.value === a || b === 0 && !p.value ? (l(), m(q, V({
|
|
221
|
+
key: 0,
|
|
222
|
+
ref_for: !0
|
|
223
|
+
}, y, {
|
|
224
|
+
collection: t.collection,
|
|
225
|
+
flow: o,
|
|
226
|
+
persistAuth: t.persistAuth,
|
|
227
|
+
scheme: e,
|
|
228
|
+
server: t.server,
|
|
229
|
+
workspace: t.workspace
|
|
230
|
+
}), null, 16, ["collection", "flow", "persistAuth", "scheme", "server", "workspace"])) : v("", !0)
|
|
231
|
+
], 64))), 128))
|
|
232
|
+
], 64)) : (e == null ? void 0 : e.type) === "openIdConnect" ? (l(), i("div", {
|
|
233
|
+
key: 5,
|
|
234
|
+
class: I(["text-c-3 bg-b-1 flex min-h-[calc(4rem+1px)] items-center justify-center border-t border-b-0 px-4 text-base", { "rounded-b-lg": t.layout === "reference" }])
|
|
235
|
+
}, " Coming soon ", 2)) : v("", !0)
|
|
236
|
+
], 64))), 128));
|
|
237
|
+
}
|
|
238
|
+
});
|
|
5
239
|
export {
|
|
6
|
-
|
|
240
|
+
ie as default
|
|
7
241
|
};
|
|
@@ -1,246 +1,4 @@
|
|
|
1
|
-
import
|
|
2
|
-
import { ScalarMarkdown as z } from "@scalar/components";
|
|
3
|
-
import { safeLocalStorage as I, CLIENT_LS_KEYS as N } from "@scalar/helpers/object/local-storage";
|
|
4
|
-
import { isDefined as j } from "@scalar/oas-utils/helpers";
|
|
5
|
-
import { useWorkspace as D } from "../../../../store/store.js";
|
|
6
|
-
import { updateScheme as H } from "../helpers/update-scheme.js";
|
|
7
|
-
import Q from "./OAuth2.vue.js";
|
|
8
|
-
import w from "./RequestAuthDataTableInput.vue.js";
|
|
9
|
-
import f from "../../../../components/DataTable/DataTableRow.vue.js";
|
|
10
|
-
import B from "../../../../components/DataTable/DataTableCell.vue.js";
|
|
11
|
-
const J = {
|
|
12
|
-
key: 0,
|
|
13
|
-
class: "flex min-h-8 border-t text-base"
|
|
14
|
-
}, Y = { class: "flex h-8 max-w-full gap-2.5 overflow-x-auto px-3" }, W = ["onClick"], G = { class: "relative z-10" }, ue = /* @__PURE__ */ F({
|
|
15
|
-
__name: "RequestAuthTab",
|
|
16
|
-
props: {
|
|
17
|
-
collection: {},
|
|
18
|
-
environment: {},
|
|
19
|
-
envVariables: {},
|
|
20
|
-
layout: {},
|
|
21
|
-
persistAuth: { type: Boolean, default: !1 },
|
|
22
|
-
securitySchemeUids: {},
|
|
23
|
-
server: {},
|
|
24
|
-
workspace: {}
|
|
25
|
-
},
|
|
26
|
-
setup(c) {
|
|
27
|
-
const C = D(), { collectionMutators: L, securitySchemes: U, securitySchemeMutators: M } = C, x = P(
|
|
28
|
-
() => c.securitySchemeUids.map((t) => ({
|
|
29
|
-
scheme: U[t]
|
|
30
|
-
}))
|
|
31
|
-
), s = R(""), O = (t) => {
|
|
32
|
-
const r = t.description ? `: ${t.description}` : "", e = `${g(t.nameKey)}${r || `: ${t.type}`}`;
|
|
33
|
-
if (t.type === "apiKey")
|
|
34
|
-
return `${g(t.nameKey)}${r || `: ${t.in}`}`;
|
|
35
|
-
if (t.type === "oauth2") {
|
|
36
|
-
const o = Object.values(t.flows ?? {})[0];
|
|
37
|
-
return `${g(t.nameKey)}: ${s.value ? s.value : (o == null ? void 0 : o.type) ?? ""}${r}`;
|
|
38
|
-
}
|
|
39
|
-
return t.type === "http" ? `${g(t.nameKey)}: ${t.scheme}${r}` : `${e}${r}`;
|
|
40
|
-
}, m = (t, r, e) => {
|
|
41
|
-
H(t, r, e, C, c.persistAuth);
|
|
42
|
-
};
|
|
43
|
-
q(() => {
|
|
44
|
-
if (!c.persistAuth)
|
|
45
|
-
return;
|
|
46
|
-
const t = JSON.parse(
|
|
47
|
-
I().getItem(N.AUTH) ?? "{}"
|
|
48
|
-
), r = Object.keys(U).reduce(
|
|
49
|
-
(e, o) => {
|
|
50
|
-
const a = U[o];
|
|
51
|
-
return a && (e[a.nameKey] = a.uid), e;
|
|
52
|
-
},
|
|
53
|
-
{}
|
|
54
|
-
);
|
|
55
|
-
Object.entries(t).forEach(([e, o]) => {
|
|
56
|
-
const a = r[e];
|
|
57
|
-
a && Object.entries(o).forEach(([T, K]) => {
|
|
58
|
-
M.edit(a, T, K);
|
|
59
|
-
});
|
|
60
|
-
});
|
|
61
|
-
try {
|
|
62
|
-
const o = JSON.parse(
|
|
63
|
-
I().getItem(N.SELECTED_SECURITY_SCHEMES) ?? ""
|
|
64
|
-
).map((a) => Array.isArray(a) ? a.map((y) => r[y]).filter(j) : r[a]).filter(j);
|
|
65
|
-
L.edit(c.collection.uid, "selectedSecuritySchemeUids", o);
|
|
66
|
-
} catch {
|
|
67
|
-
}
|
|
68
|
-
});
|
|
69
|
-
const b = {
|
|
70
|
-
environment: c.environment,
|
|
71
|
-
envVariables: c.envVariables,
|
|
72
|
-
workspace: c.workspace
|
|
73
|
-
};
|
|
74
|
-
return (t, r) => (l(!0), i(p, null, $(x.value, ({ scheme: e }) => (l(), i(p, {
|
|
75
|
-
key: e == null ? void 0 : e.uid
|
|
76
|
-
}, [
|
|
77
|
-
x.value.length > 1 ? (l(), S(d(f), {
|
|
78
|
-
key: 0,
|
|
79
|
-
class: _({
|
|
80
|
-
"request-example-references-header": t.layout === "reference"
|
|
81
|
-
})
|
|
82
|
-
}, {
|
|
83
|
-
default: n(() => [
|
|
84
|
-
u(d(B), {
|
|
85
|
-
class: _(["text-c-2 flex items-center pl-3", t.layout === "reference" && "border-b"])
|
|
86
|
-
}, {
|
|
87
|
-
default: n(() => [
|
|
88
|
-
V(E(O(e)), 1)
|
|
89
|
-
]),
|
|
90
|
-
_: 2
|
|
91
|
-
}, 1032, ["class"])
|
|
92
|
-
]),
|
|
93
|
-
_: 2
|
|
94
|
-
}, 1032, ["class"])) : v("", !0),
|
|
95
|
-
e != null && e.description && x.value.length <= 1 ? (l(), S(d(f), { key: 1 }, {
|
|
96
|
-
default: n(() => [
|
|
97
|
-
u(d(B), {
|
|
98
|
-
"aria-label": e.description,
|
|
99
|
-
class: "text-c-2 auth-description-container group/auth -mb-0.25 flex items-center whitespace-nowrap outline-none hover:whitespace-normal"
|
|
100
|
-
}, {
|
|
101
|
-
default: n(() => [
|
|
102
|
-
u(d(z), {
|
|
103
|
-
class: "auth-description bg-b-1 text-c-2 outline-b-3 top-0 z-1 line-clamp-1 h-full w-full px-3 py-1.5 group-hover/auth:line-clamp-none",
|
|
104
|
-
value: e.description
|
|
105
|
-
}, null, 8, ["value"])
|
|
106
|
-
]),
|
|
107
|
-
_: 2
|
|
108
|
-
}, 1032, ["aria-label"])
|
|
109
|
-
]),
|
|
110
|
-
_: 2
|
|
111
|
-
}, 1024)) : v("", !0),
|
|
112
|
-
(e == null ? void 0 : e.type) === "http" ? (l(), i(p, { key: 2 }, [
|
|
113
|
-
e.scheme === "bearer" ? (l(), S(d(f), { key: 0 }, {
|
|
114
|
-
default: n(() => [
|
|
115
|
-
u(w, k({ ref_for: !0 }, b, {
|
|
116
|
-
containerClass: t.layout === "reference" && "border-t",
|
|
117
|
-
modelValue: e.token,
|
|
118
|
-
placeholder: "Token",
|
|
119
|
-
type: "password",
|
|
120
|
-
"onUpdate:modelValue": (o) => m(e.uid, "token", o)
|
|
121
|
-
}), {
|
|
122
|
-
default: n(() => r[0] || (r[0] = [
|
|
123
|
-
V(" Bearer Token ")
|
|
124
|
-
])),
|
|
125
|
-
_: 2,
|
|
126
|
-
__: [0]
|
|
127
|
-
}, 1040, ["containerClass", "modelValue", "onUpdate:modelValue"])
|
|
128
|
-
]),
|
|
129
|
-
_: 2
|
|
130
|
-
}, 1024)) : (e == null ? void 0 : e.scheme) === "basic" ? (l(), i(p, { key: 1 }, [
|
|
131
|
-
u(d(f), null, {
|
|
132
|
-
default: n(() => [
|
|
133
|
-
u(w, k({ ref_for: !0 }, b, {
|
|
134
|
-
class: "text-c-2",
|
|
135
|
-
containerClass: t.layout === "reference" && "auth-blend-required border-t",
|
|
136
|
-
modelValue: e.username,
|
|
137
|
-
placeholder: "janedoe",
|
|
138
|
-
required: "",
|
|
139
|
-
"onUpdate:modelValue": (o) => m(e.uid, "username", o)
|
|
140
|
-
}), {
|
|
141
|
-
default: n(() => r[1] || (r[1] = [
|
|
142
|
-
V(" Username ")
|
|
143
|
-
])),
|
|
144
|
-
_: 2,
|
|
145
|
-
__: [1]
|
|
146
|
-
}, 1040, ["containerClass", "modelValue", "onUpdate:modelValue"])
|
|
147
|
-
]),
|
|
148
|
-
_: 2
|
|
149
|
-
}, 1024),
|
|
150
|
-
u(d(f), null, {
|
|
151
|
-
default: n(() => [
|
|
152
|
-
u(w, k({ ref_for: !0 }, b, {
|
|
153
|
-
modelValue: e.password,
|
|
154
|
-
placeholder: "********",
|
|
155
|
-
type: "password",
|
|
156
|
-
"onUpdate:modelValue": (o) => m(e.uid, "password", o)
|
|
157
|
-
}), {
|
|
158
|
-
default: n(() => r[2] || (r[2] = [
|
|
159
|
-
V(" Password ")
|
|
160
|
-
])),
|
|
161
|
-
_: 2,
|
|
162
|
-
__: [2]
|
|
163
|
-
}, 1040, ["modelValue", "onUpdate:modelValue"])
|
|
164
|
-
]),
|
|
165
|
-
_: 2
|
|
166
|
-
}, 1024)
|
|
167
|
-
], 64)) : v("", !0)
|
|
168
|
-
], 64)) : (e == null ? void 0 : e.type) === "apiKey" ? (l(), i(p, { key: 3 }, [
|
|
169
|
-
u(d(f), null, {
|
|
170
|
-
default: n(() => [
|
|
171
|
-
u(w, k({ ref_for: !0 }, b, {
|
|
172
|
-
containerClass: t.layout === "reference" && "border-t",
|
|
173
|
-
modelValue: e.name,
|
|
174
|
-
placeholder: "api-key",
|
|
175
|
-
"onUpdate:modelValue": (o) => m(e.uid, "name", o)
|
|
176
|
-
}), {
|
|
177
|
-
default: n(() => r[3] || (r[3] = [
|
|
178
|
-
V(" Name ")
|
|
179
|
-
])),
|
|
180
|
-
_: 2,
|
|
181
|
-
__: [3]
|
|
182
|
-
}, 1040, ["containerClass", "modelValue", "onUpdate:modelValue"])
|
|
183
|
-
]),
|
|
184
|
-
_: 2
|
|
185
|
-
}, 1024),
|
|
186
|
-
u(d(f), null, {
|
|
187
|
-
default: n(() => [
|
|
188
|
-
u(w, k({ ref_for: !0 }, b, {
|
|
189
|
-
modelValue: e.value,
|
|
190
|
-
placeholder: "QUxMIFlPVVIgQkFTRSBBUkUgQkVMT05HIFRPIFVT",
|
|
191
|
-
type: "password",
|
|
192
|
-
"onUpdate:modelValue": (o) => m(e.uid, "value", o)
|
|
193
|
-
}), {
|
|
194
|
-
default: n(() => r[4] || (r[4] = [
|
|
195
|
-
V(" Value ")
|
|
196
|
-
])),
|
|
197
|
-
_: 2,
|
|
198
|
-
__: [4]
|
|
199
|
-
}, 1040, ["modelValue", "onUpdate:modelValue"])
|
|
200
|
-
]),
|
|
201
|
-
_: 2
|
|
202
|
-
}, 1024)
|
|
203
|
-
], 64)) : (e == null ? void 0 : e.type) === "oauth2" ? (l(), i(p, { key: 4 }, [
|
|
204
|
-
u(d(f), null, {
|
|
205
|
-
default: n(() => [
|
|
206
|
-
Object.keys(e.flows).length > 1 ? (l(), i("div", J, [
|
|
207
|
-
A("div", Y, [
|
|
208
|
-
(l(!0), i(p, null, $(e == null ? void 0 : e.flows, (o, a, y) => (l(), i("button", {
|
|
209
|
-
key: a,
|
|
210
|
-
class: _(["floating-bg text-c-3 relative cursor-pointer border-b-[1px] border-transparent py-1 text-base font-medium", {
|
|
211
|
-
"!text-c-1 !rounded-none border-b-[1px] !border-current": t.layout !== "reference" && (s.value === a || y === 0 && !s.value),
|
|
212
|
-
"!text-c-1 !rounded-none border-b-[1px] !border-current opacity-100": t.layout === "reference" && (s.value === a || y === 0 && !s.value)
|
|
213
|
-
}]),
|
|
214
|
-
type: "button",
|
|
215
|
-
onClick: (T) => s.value = a
|
|
216
|
-
}, [
|
|
217
|
-
A("span", G, E(a), 1)
|
|
218
|
-
], 10, W))), 128))
|
|
219
|
-
])
|
|
220
|
-
])) : v("", !0)
|
|
221
|
-
]),
|
|
222
|
-
_: 2
|
|
223
|
-
}, 1024),
|
|
224
|
-
(l(!0), i(p, null, $(e == null ? void 0 : e.flows, (o, a, y) => (l(), i(p, { key: a }, [
|
|
225
|
-
s.value === a || y === 0 && !s.value ? (l(), S(Q, k({
|
|
226
|
-
key: 0,
|
|
227
|
-
ref_for: !0
|
|
228
|
-
}, b, {
|
|
229
|
-
collection: t.collection,
|
|
230
|
-
flow: o,
|
|
231
|
-
persistAuth: t.persistAuth,
|
|
232
|
-
scheme: e,
|
|
233
|
-
server: t.server,
|
|
234
|
-
workspace: t.workspace
|
|
235
|
-
}), null, 16, ["collection", "flow", "persistAuth", "scheme", "server", "workspace"])) : v("", !0)
|
|
236
|
-
], 64))), 128))
|
|
237
|
-
], 64)) : (e == null ? void 0 : e.type) === "openIdConnect" ? (l(), i("div", {
|
|
238
|
-
key: 5,
|
|
239
|
-
class: _(["text-c-3 bg-b-1 flex min-h-[calc(4rem+1px)] items-center justify-center border-t border-b-0 px-4 text-base", { "rounded-b-lg": t.layout === "reference" }])
|
|
240
|
-
}, " Coming soon ", 2)) : v("", !0)
|
|
241
|
-
], 64))), 128));
|
|
242
|
-
}
|
|
243
|
-
});
|
|
1
|
+
import f from "./RequestAuthTab.vue.js";
|
|
244
2
|
export {
|
|
245
|
-
|
|
3
|
+
f as default
|
|
246
4
|
};
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
export { default as RequestAuthDataTable } from './RequestAuthDataTable.vue';
|
|
2
|
-
export { default as RequestAuth } from './RequestAuth.vue';
|
|
1
|
+
export { default as RequestAuthDataTable } from './RequestAuthDataTable.vue.js';
|
|
2
|
+
export { default as RequestAuth } from './RequestAuth.vue.js';
|
|
3
3
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import type { Environment } from '@scalar/oas-utils/entities/environment';
|
|
2
2
|
import { type Operation, type RequestExample } from '@scalar/oas-utils/entities/spec';
|
|
3
3
|
import type { Workspace } from '@scalar/oas-utils/entities/workspace';
|
|
4
|
-
import type { EnvVariable } from '../../../store/active-entities';
|
|
4
|
+
import type { EnvVariable } from '../../../store/active-entities.js';
|
|
5
5
|
type __VLS_Props = {
|
|
6
6
|
example: RequestExample;
|
|
7
7
|
operation: Operation;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type { Collection, Operation, RequestExample, Server } from '@scalar/oas-utils/entities/spec';
|
|
2
2
|
import type { Workspace } from '@scalar/oas-utils/entities/workspace';
|
|
3
|
-
import type { EnvVariables } from '../../../libs/env-helpers';
|
|
3
|
+
import type { EnvVariables } from '../../../libs/env-helpers.js';
|
|
4
4
|
type __VLS_Props = {
|
|
5
5
|
collection: Collection;
|
|
6
6
|
example: RequestExample;
|
|
@@ -2,7 +2,7 @@ import type { Environment } from '@scalar/oas-utils/entities/environment';
|
|
|
2
2
|
import { type RequestExample } from '@scalar/oas-utils/entities/spec';
|
|
3
3
|
import type { Workspace } from '@scalar/oas-utils/entities/workspace';
|
|
4
4
|
import type { RouteLocationRaw } from 'vue-router';
|
|
5
|
-
import type { EnvVariable } from '../../../store/active-entities';
|
|
5
|
+
import type { EnvVariable } from '../../../store/active-entities.js';
|
|
6
6
|
type __VLS_Props = {
|
|
7
7
|
example: RequestExample;
|
|
8
8
|
environment: Environment;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import type { Environment } from '@scalar/oas-utils/entities/environment';
|
|
2
2
|
import type { Operation, RequestExample } from '@scalar/oas-utils/entities/spec';
|
|
3
3
|
import type { Workspace } from '@scalar/oas-utils/entities/workspace';
|
|
4
|
-
import type { EnvVariable } from '../../../store/active-entities';
|
|
4
|
+
import type { EnvVariable } from '../../../store/active-entities.js';
|
|
5
5
|
type __VLS_Props = {
|
|
6
6
|
example: RequestExample;
|
|
7
7
|
operation: Operation;
|
|
@@ -2,7 +2,7 @@ import type { Environment } from '@scalar/oas-utils/entities/environment';
|
|
|
2
2
|
import type { SelectedSecuritySchemeUids } from '@scalar/oas-utils/entities/shared';
|
|
3
3
|
import type { Collection, Operation, RequestExample, Server } from '@scalar/oas-utils/entities/spec';
|
|
4
4
|
import type { Workspace } from '@scalar/oas-utils/entities/workspace';
|
|
5
|
-
import type { EnvVariable } from '../../../store/active-entities';
|
|
5
|
+
import type { EnvVariable } from '../../../store/active-entities.js';
|
|
6
6
|
type __VLS_Props = {
|
|
7
7
|
collection: Collection;
|
|
8
8
|
environment: Environment;
|
|
@@ -2,7 +2,7 @@ import type { Environment } from '@scalar/oas-utils/entities/environment';
|
|
|
2
2
|
import type { RequestExampleParameter } from '@scalar/oas-utils/entities/spec';
|
|
3
3
|
import type { Workspace } from '@scalar/oas-utils/entities/workspace';
|
|
4
4
|
import { type RouteLocationRaw } from 'vue-router';
|
|
5
|
-
import type { EnvVariable } from '../../../store/active-entities';
|
|
5
|
+
import type { EnvVariable } from '../../../store/active-entities.js';
|
|
6
6
|
type __VLS_Props = {
|
|
7
7
|
items?: (RequestExampleParameter & {
|
|
8
8
|
route?: RouteLocationRaw;
|
|
@@ -28,14 +28,14 @@ declare const _default: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {
|
|
|
28
28
|
uploadFile: (idx: number) => any;
|
|
29
29
|
removeFile: (idx: number) => any;
|
|
30
30
|
}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{
|
|
31
|
-
onUpdateRow?: (idx: number, field: "value" | "key", value: string) => any;
|
|
32
|
-
onToggleRow?: (idx: number, enabled: boolean) => any;
|
|
33
|
-
onAddRow?: () => any;
|
|
34
|
-
onDeleteRow?: (idx: number) => any;
|
|
35
|
-
onInputFocus?: () => any;
|
|
36
|
-
onInputBlur?: () => any;
|
|
37
|
-
onUploadFile?: (idx: number) => any;
|
|
38
|
-
onRemoveFile?: (idx: number) => any;
|
|
31
|
+
onUpdateRow?: ((idx: number, field: "value" | "key", value: string) => any) | undefined;
|
|
32
|
+
onToggleRow?: ((idx: number, enabled: boolean) => any) | undefined;
|
|
33
|
+
onAddRow?: (() => any) | undefined;
|
|
34
|
+
onDeleteRow?: ((idx: number) => any) | undefined;
|
|
35
|
+
onInputFocus?: (() => any) | undefined;
|
|
36
|
+
onInputBlur?: (() => any) | undefined;
|
|
37
|
+
onUploadFile?: ((idx: number) => any) | undefined;
|
|
38
|
+
onRemoveFile?: ((idx: number) => any) | undefined;
|
|
39
39
|
}>, {
|
|
40
40
|
hasCheckboxDisabled: boolean;
|
|
41
41
|
showUploadButton: boolean;
|