@scalar/api-client 2.18.0 → 2.18.3
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 +85 -0
- package/dist/components/AddressBar/AddressBar.vue2.js +52 -52
- package/dist/components/AddressBar/AddressBarHistory.vue2.js +15 -15
- package/dist/components/AddressBar/httpStatusCodeColors.d.ts +0 -33
- package/dist/components/AddressBar/httpStatusCodeColors.d.ts.map +1 -1
- package/dist/components/AddressBar/httpStatusCodeColors.js +0 -1
- package/dist/components/CodeInput/CodeInput.vue2.js +112 -112
- package/dist/components/CommandPalette/CommandActionForm.vue.js +18 -18
- package/dist/components/CommandPalette/CommandPaletteImportCurl.vue2.js +25 -25
- package/dist/components/CommandPalette/TheCommandPalette.vue.d.ts +2 -2
- package/dist/components/CommandPalette/TheCommandPalette.vue.d.ts.map +1 -1
- package/dist/components/CommandPalette/TheCommandPalette.vue.js +2 -4
- package/dist/components/CommandPalette/TheCommandPalette.vue2.js +0 -1
- package/dist/components/CommandPalette/WatchModeToggle.vue.js +14 -14
- package/dist/components/DataTable/DataTable.vue.js +17 -17
- package/dist/components/DataTable/DataTableCell.vue.js +9 -9
- package/dist/components/DataTable/DataTableCheckbox.vue.js +17 -17
- package/dist/components/DataTable/DataTableInput.vue2.js +48 -48
- package/dist/components/DataTable/DataTableInputSelect.vue.js +35 -35
- package/dist/components/DataTable/DataTableText.vue.js +10 -10
- package/dist/components/Form/Form.vue.js +32 -32
- package/dist/components/Form/LabelInput.vue2.js +15 -15
- package/dist/components/HelpfulLink.vue.js +7 -7
- package/dist/components/HttpMethod/HttpMethod.vue2.js +22 -22
- package/dist/components/IconSelector.vue.js +16 -16
- package/dist/components/ImportCollection/ImportCollectionModal.vue.js +50 -50
- package/dist/components/ImportCollection/ImportNowButton.vue.js +23 -23
- package/dist/components/ImportCollection/PrefetchError.vue.js +8 -8
- package/dist/components/ImportCollection/hooks/useUrlPrefetcher.d.ts +0 -7
- package/dist/components/ImportCollection/hooks/useUrlPrefetcher.d.ts.map +1 -1
- package/dist/components/ScalarAsciiArt.vue2.js +16 -16
- package/dist/components/SectionFilter.vue2.js +21 -21
- package/dist/components/SectionFilterButton.vue.js +7 -7
- package/dist/components/Server/ServerDropdown.vue.js +32 -32
- package/dist/components/Server/ServerDropdownItem.vue2.js +39 -39
- package/dist/components/Server/ServerSelector.vue.js +27 -27
- package/dist/components/Server/ServerVariablesForm.vue.js +26 -26
- package/dist/components/Server/ServerVariablesSelect.vue.js +21 -21
- package/dist/components/Server/ServerVariablesTextbox.vue.js +10 -10
- package/dist/components/Server/types.d.ts +2 -1
- package/dist/components/Server/types.d.ts.map +1 -1
- package/dist/components/SideNav/SideNavLink.vue.js +18 -18
- package/dist/components/SideNav/SideNavRouterLink.vue.js +13 -13
- package/dist/components/Sidebar/Actions/DeleteSidebarListElement.vue.js +11 -11
- package/dist/components/Sidebar/Actions/SidebarListElementForm.vue.js +16 -16
- package/dist/components/Sidebar/Sidebar.vue2.js +28 -28
- package/dist/components/Sidebar/SidebarButton.vue.js +12 -12
- package/dist/components/Sidebar/SidebarListElement.vue2.js +34 -34
- package/dist/components/Sidebar/SidebarListElementActions.vue.js +33 -33
- package/dist/components/TopNav/TopNavItem.vue2.js +41 -41
- package/dist/components/ViewLayout/ViewLayoutCollapse.vue.js +43 -43
- package/dist/data/httpHeaders.d.ts +2 -1
- package/dist/data/httpHeaders.d.ts.map +1 -1
- package/dist/hooks/useClientConfig.js +1 -1
- package/dist/hooks/useLayout.js +1 -1
- package/dist/hooks/useSidebar.js +1 -1
- package/dist/layouts/App/create-api-client-app.d.ts.map +1 -1
- package/dist/layouts/Web/create-api-client-web.d.ts.map +1 -1
- package/dist/libs/create-client.d.ts.map +1 -1
- package/dist/plugins/hooks/usePluginManager.d.ts +1 -1
- package/dist/plugins/hooks/usePluginManager.d.ts.map +1 -1
- package/dist/plugins/hooks/usePluginManager.js +5 -5
- package/dist/plugins/index.d.ts +1 -1
- package/dist/plugins/index.d.ts.map +1 -1
- package/dist/plugins/index.js +5 -5
- package/dist/plugins/plugin-manager.d.ts +0 -2
- package/dist/plugins/plugin-manager.d.ts.map +1 -1
- package/dist/routes.d.ts +0 -10
- package/dist/routes.d.ts.map +1 -1
- package/dist/routes.js +0 -1
- package/dist/store/active-entities.js +1 -1
- package/dist/store/security-schemes.d.ts.map +1 -1
- package/dist/store/store.d.ts.map +1 -1
- package/dist/style.css +1 -1
- package/dist/v2/blocks/operation-block/OperationBlock.vue.d.ts.map +1 -1
- package/dist/v2/blocks/operation-block/OperationBlock.vue.js +44 -44
- package/dist/v2/blocks/operation-block/components/Header.vue2.js +20 -20
- package/dist/v2/blocks/operation-block/helpers/build-request-body.d.ts.map +1 -1
- package/dist/v2/blocks/operation-block/helpers/build-request-body.js +14 -14
- package/dist/v2/blocks/operation-block/helpers/get-delimiter.js +0 -2
- package/dist/v2/blocks/operation-code-sample/components/HttpMethod.vue.js +12 -12
- package/dist/v2/blocks/operation-code-sample/components/OperationCodeSample.vue2.js +65 -65
- package/dist/v2/blocks/operation-code-sample/helpers/generate-code-snippet.d.ts +2 -1
- package/dist/v2/blocks/operation-code-sample/helpers/generate-code-snippet.d.ts.map +1 -1
- package/dist/v2/blocks/operation-code-sample/helpers/get-example-from-schema.js +6 -6
- package/dist/v2/blocks/operation-code-sample/helpers/get-resolved-ref-deep.d.ts +4 -3
- package/dist/v2/blocks/operation-code-sample/helpers/get-resolved-ref-deep.d.ts.map +1 -1
- package/dist/v2/blocks/operation-code-sample/helpers/get-resolved-ref-deep.js +9 -7
- package/dist/v2/blocks/operation-code-sample/helpers/operation-to-har/process-body.d.ts.map +1 -1
- package/dist/v2/blocks/operation-code-sample/helpers/operation-to-har/process-body.js +40 -32
- package/dist/v2/blocks/operation-code-sample/helpers/operation-to-har/process-parameters.d.ts +1 -3
- package/dist/v2/blocks/operation-code-sample/helpers/operation-to-har/process-parameters.d.ts.map +1 -1
- package/dist/v2/blocks/operation-code-sample/helpers/operation-to-har/process-parameters.js +0 -1
- package/dist/v2/blocks/request-block/RequestBlock.vue.d.ts.map +1 -1
- package/dist/v2/blocks/request-block/RequestBlock.vue.js +2 -2
- package/dist/v2/blocks/request-block/RequestBlock.vue2.js +144 -149
- package/dist/v2/blocks/request-block/components/RequestBody.vue.d.ts +25 -45
- package/dist/v2/blocks/request-block/components/RequestBody.vue.d.ts.map +1 -1
- package/dist/v2/blocks/request-block/components/RequestBody.vue.js +2 -2
- package/dist/v2/blocks/request-block/components/RequestBody.vue2.js +90 -139
- package/dist/v2/blocks/request-block/components/RequestBodyForm.vue.d.ts +22 -0
- package/dist/v2/blocks/request-block/components/RequestBodyForm.vue.d.ts.map +1 -0
- package/dist/v2/blocks/request-block/components/RequestBodyForm.vue.js +77 -0
- package/dist/v2/blocks/request-block/components/RequestBodyForm.vue2.js +4 -0
- package/dist/v2/blocks/request-block/components/RequestParams.vue.d.ts +4 -4
- package/dist/v2/blocks/request-block/components/RequestParams.vue.d.ts.map +1 -1
- package/dist/v2/blocks/request-block/components/RequestParams.vue.js +34 -34
- package/dist/v2/blocks/request-block/components/RequestTable.vue.d.ts +6 -6
- package/dist/v2/blocks/request-block/components/RequestTable.vue.d.ts.map +1 -1
- package/dist/v2/blocks/request-block/components/RequestTable.vue.js +3 -3
- package/dist/v2/blocks/request-block/components/RequestTable.vue2.js +30 -32
- package/dist/v2/blocks/request-block/components/RequestTableRow.vue.d.ts +2 -2
- package/dist/v2/blocks/request-block/components/RequestTableRow.vue.d.ts.map +1 -1
- package/dist/v2/blocks/request-block/components/RequestTableRow.vue.js +64 -64
- package/dist/v2/blocks/request-block/components/RequestTableTooltip.vue2.js +29 -29
- package/dist/v2/blocks/request-block/helpers/create-parameter-handlers.d.ts +2 -2
- package/dist/v2/blocks/request-block/helpers/create-parameter-handlers.d.ts.map +1 -1
- package/dist/v2/blocks/request-block/helpers/create-parameter-handlers.js +12 -13
- package/dist/v2/blocks/request-block/helpers/get-form-body-rows.d.ts +8 -0
- package/dist/v2/blocks/request-block/helpers/get-form-body-rows.d.ts.map +1 -0
- package/dist/v2/blocks/request-block/helpers/get-form-body-rows.js +9 -0
- package/dist/v2/blocks/request-block/helpers/get-request-body-example.d.ts +3 -1
- package/dist/v2/blocks/request-block/helpers/get-request-body-example.d.ts.map +1 -1
- package/dist/v2/blocks/request-block/helpers/get-request-body-example.js +9 -8
- package/dist/v2/blocks/response-block/ResponseBlock.vue2.js +67 -67
- package/dist/v2/blocks/response-block/components/Headers.vue.js +35 -35
- package/dist/v2/blocks/response-block/components/ResponseBody.vue2.js +24 -24
- package/dist/v2/blocks/response-block/components/ResponseBodyDownload.vue.js +10 -10
- package/dist/v2/blocks/response-block/components/ResponseBodyPreview.vue2.js +24 -24
- package/dist/v2/blocks/response-block/components/ResponseBodyToggle.vue.js +10 -10
- package/dist/v2/blocks/response-block/components/ResponseCookies.vue.js +11 -11
- package/dist/v2/blocks/response-block/components/ResponseEmpty.vue2.js +14 -14
- package/dist/v2/blocks/response-block/components/ResponseLoadingOverlay.vue2.js +11 -11
- package/dist/v2/blocks/response-block/components/ResponseMetaInformation.vue.js +33 -33
- package/dist/v2/blocks/response-block/helpers/media-types.d.ts +3 -6
- package/dist/v2/blocks/response-block/helpers/media-types.d.ts.map +1 -1
- package/dist/v2/blocks/response-block/helpers/media-types.js +0 -1
- package/dist/v2/blocks/scalar-address-bar-block/components/AddressBar.vue2.js +72 -72
- package/dist/v2/blocks/scalar-address-bar-block/components/AddressBarHistory.vue2.js +9 -9
- package/dist/v2/blocks/scalar-address-bar-block/components/httpStatusCodeColors.d.ts +0 -33
- package/dist/v2/blocks/scalar-address-bar-block/components/httpStatusCodeColors.d.ts.map +1 -1
- package/dist/v2/blocks/scalar-address-bar-block/components/httpStatusCodeColors.js +0 -1
- package/dist/v2/blocks/scalar-auth-selector-block/components/AuthSelector.vue.d.ts.map +1 -1
- package/dist/v2/blocks/scalar-auth-selector-block/components/AuthSelector.vue.js +83 -82
- package/dist/v2/blocks/scalar-auth-selector-block/components/DeleteRequestAuthModal.vue.js +10 -10
- package/dist/v2/blocks/scalar-auth-selector-block/components/OAuth2.vue.js +121 -121
- package/dist/v2/blocks/scalar-auth-selector-block/components/OAuthScopesAddModal.vue2.js +13 -13
- package/dist/v2/blocks/scalar-auth-selector-block/components/OAuthScopesInput.vue.js +33 -33
- package/dist/v2/blocks/scalar-auth-selector-block/components/RequestAuthDataTable.vue.d.ts.map +1 -1
- package/dist/v2/blocks/scalar-auth-selector-block/components/RequestAuthDataTable.vue.js +26 -26
- package/dist/v2/blocks/scalar-auth-selector-block/components/RequestAuthDataTableInput.vue.js +26 -26
- package/dist/v2/blocks/scalar-auth-selector-block/components/RequestAuthTab.vue.d.ts +2 -2
- package/dist/v2/blocks/scalar-auth-selector-block/components/RequestAuthTab.vue.d.ts.map +1 -1
- package/dist/v2/blocks/scalar-auth-selector-block/components/RequestAuthTab.vue.js +130 -122
- package/dist/v2/blocks/scalar-auth-selector-block/helpers/oauth.d.ts +0 -21
- package/dist/v2/blocks/scalar-auth-selector-block/helpers/oauth.d.ts.map +1 -1
- package/dist/v2/blocks/scalar-auth-selector-block/helpers/oauth.js +1 -3
- package/dist/v2/components/code-input/CodeInput.vue2.js +93 -93
- package/dist/v2/components/data-table/DataTable.vue.js +17 -17
- package/dist/v2/components/data-table/DataTableCell.vue.js +9 -9
- package/dist/v2/components/data-table/DataTableCheckbox.vue.js +17 -17
- package/dist/v2/components/data-table/DataTableInput.vue2.js +48 -48
- package/dist/v2/components/data-table/DataTableInputSelect.vue.js +35 -35
- package/dist/v2/components/data-table/DataTableText.vue.js +10 -10
- package/dist/v2/components/forms/ConfirmationForm.vue.js +13 -13
- package/dist/v2/components/layout/CollapsibleSection.vue.js +42 -42
- package/dist/v2/components/modals/DeleteModal.vue.js +13 -13
- package/dist/v2/components/resize/Resize.vue2.js +11 -11
- package/dist/v2/components/server/ServerDropdown.vue.js +30 -30
- package/dist/v2/components/server/ServerDropdownItem.vue2.js +27 -27
- package/dist/v2/components/sidebar/Sidebar.vue.js +32 -32
- package/dist/v2/components/sidebar/SidebarMenu.vue.js +20 -20
- package/dist/v2/features/app/App.vue.js +25 -25
- package/dist/v2/features/app/app-events.d.ts.map +1 -1
- package/dist/v2/features/app/app-events.js +55 -61
- package/dist/v2/features/app/components/AppSidebar.vue2.js +97 -97
- package/dist/v2/features/app/components/CreateWorkspaceModal.vue.js +20 -20
- package/dist/v2/features/app/components/DesktopTab.vue2.js +59 -59
- package/dist/v2/features/app/components/DesktopTabs.vue.js +22 -22
- package/dist/v2/features/app/components/SidebarItemMenu.vue.js +6 -6
- package/dist/v2/features/app/components/WebTopNav.vue.js +9 -9
- package/dist/v2/features/app/helpers/create-api-client-app.d.ts +2 -5
- package/dist/v2/features/app/helpers/create-api-client-app.d.ts.map +1 -1
- package/dist/v2/features/app/helpers/create-api-client-app.js +1 -2
- package/dist/v2/features/app/helpers/routes.d.ts +5 -1
- package/dist/v2/features/app/helpers/routes.d.ts.map +1 -1
- package/dist/v2/features/collection/DocumentCollection.vue.js +31 -31
- package/dist/v2/features/collection/WorkspaceCollection.vue.js +17 -17
- package/dist/v2/features/collection/components/Authentication.vue2.js +18 -18
- package/dist/v2/features/collection/components/Cookies.vue.js +10 -10
- package/dist/v2/features/collection/components/Environment.vue.js +10 -10
- package/dist/v2/features/collection/components/Form.vue.js +21 -21
- package/dist/v2/features/collection/components/Overview.vue2.js +25 -25
- package/dist/v2/features/collection/components/Servers.vue.js +37 -37
- package/dist/v2/features/collection/components/Settings.vue.js +22 -22
- package/dist/v2/features/collection/components/Tabs.vue.js +18 -18
- package/dist/v2/features/command-palette/components/CommandActionForm.vue.js +20 -20
- package/dist/v2/features/command-palette/components/CommandActionInput.vue.js +17 -17
- package/dist/v2/features/command-palette/components/TheCommandPalette.vue2.js +68 -68
- package/dist/v2/features/command-palette/components/WatchModeToggle.vue.js +11 -11
- package/dist/v2/features/command-palette/helpers/get-openapi-document-details.d.ts +2 -1
- package/dist/v2/features/command-palette/helpers/get-openapi-document-details.d.ts.map +1 -1
- package/dist/v2/features/command-palette/helpers/get-postman-document-details.d.ts +2 -1
- package/dist/v2/features/command-palette/helpers/get-postman-document-details.d.ts.map +1 -1
- package/dist/v2/features/command-palette/hooks/use-command-palette-state.d.ts +3 -3
- package/dist/v2/features/command-palette/hooks/use-command-palette-state.d.ts.map +1 -1
- package/dist/v2/features/command-palette/hooks/use-command-palette-state.js +0 -1
- package/dist/v2/features/command-palette/types.d.ts +11 -10
- package/dist/v2/features/command-palette/types.d.ts.map +1 -1
- package/dist/v2/features/environments/EnvironmentsList.vue.js +36 -36
- package/dist/v2/features/environments/components/Environment.vue.js +16 -16
- package/dist/v2/features/environments/components/EnvironmentColors.vue.js +37 -37
- package/dist/v2/features/environments/components/EnvironmentCreateModal.vue.js +19 -19
- package/dist/v2/features/environments/components/EnvironmentDeleteModal.vue.js +14 -14
- package/dist/v2/features/environments/components/EnvironmentVariablesDropdown.vue.js +24 -24
- package/dist/v2/features/environments/components/EnvironmentVariablesTable.vue2.js +58 -58
- package/dist/v2/features/global-cookies/components/CookiesTable.vue2.js +23 -23
- package/dist/v2/features/modal/Modal.vue.d.ts +1 -1
- package/dist/v2/features/modal/Modal.vue.d.ts.map +1 -1
- package/dist/v2/features/modal/Modal.vue.js +1 -1
- package/dist/v2/features/modal/Modal.vue2.js +57 -56
- package/dist/v2/features/modal/helpers/create-api-client-modal.d.ts +5 -4
- package/dist/v2/features/modal/helpers/create-api-client-modal.d.ts.map +1 -1
- package/dist/v2/features/modal/hooks/use-workspace-client-modal-events.d.ts.map +1 -1
- package/dist/v2/features/modal/hooks/use-workspace-client-modal-events.js +17 -21
- package/dist/v2/features/operation/Operation.vue.d.ts +5 -1
- package/dist/v2/features/operation/Operation.vue.d.ts.map +1 -1
- package/dist/v2/features/operation/Operation.vue.js +41 -39
- package/dist/v2/features/search/components/SearchButton.vue.js +40 -40
- package/dist/v2/features/search/components/SearchModal.vue2.js +43 -43
- package/dist/v2/features/search/components/SearchResult.vue.js +34 -34
- package/dist/v2/features/search/types.d.ts +5 -4
- package/dist/v2/features/search/types.d.ts.map +1 -1
- package/dist/v2/features/settings/CollectionSettings.vue.js +51 -51
- package/dist/v2/features/settings/DocumentSettings.vue.js +25 -25
- package/dist/v2/features/settings/components/Appearance.vue.js +27 -27
- package/dist/v2/helpers/handle-hotkeys.d.ts +1 -12
- package/dist/v2/helpers/handle-hotkeys.d.ts.map +1 -1
- package/dist/v2/helpers/handle-hotkeys.js +0 -2
- package/dist/v2/helpers/plugins.d.ts +2 -2
- package/dist/v2/helpers/plugins.d.ts.map +1 -1
- package/dist/views/Collection/CollectionNavigation.vue.js +13 -13
- package/dist/views/Collection/components/EnvironmentForm.vue2.js +114 -114
- package/dist/views/Collection/components/MarkdownInput.vue2.js +31 -31
- package/dist/views/Cookies/CookieModal.vue2.js +26 -26
- package/dist/views/Environment/EnvironmentColorModal.vue.js +10 -10
- package/dist/views/Environment/EnvironmentColors.vue.js +56 -56
- package/dist/views/Environment/EnvironmentModal.vue.js +26 -26
- package/dist/views/Environment/EnvironmentVariableDropdown.vue.js +24 -24
- package/dist/views/Request/Request.vue2.js +55 -55
- package/dist/views/Request/RequestSection/RequestAuth/DeleteRequestAuthModal.vue.js +17 -17
- package/dist/views/Request/RequestSection/RequestAuth/OAuth2.vue.js +102 -102
- package/dist/views/Request/RequestSection/RequestAuth/OAuthScopesInput.vue.js +27 -27
- package/dist/views/Request/RequestSection/RequestAuth/RequestAuth.vue.d.ts.map +1 -1
- package/dist/views/Request/RequestSection/RequestAuth/RequestAuth.vue2.js +91 -91
- package/dist/views/Request/RequestSection/RequestAuth/RequestAuthDataTable.vue.d.ts.map +1 -1
- package/dist/views/Request/RequestSection/RequestAuth/RequestAuthDataTable.vue2.js +36 -36
- package/dist/views/Request/RequestSection/RequestAuth/RequestAuthTab.vue.js +101 -101
- package/dist/views/Request/RequestSection/RequestBody.vue2.js +154 -154
- package/dist/views/Request/RequestSection/RequestCodeExample.vue2.js +35 -35
- package/dist/views/Request/RequestSection/RequestParams.vue.js +81 -81
- package/dist/views/Request/RequestSection/RequestPathParams.vue.js +47 -47
- package/dist/views/Request/RequestSection/RequestSection.vue2.js +90 -90
- package/dist/views/Request/RequestSection/RequestTable.vue2.js +111 -111
- package/dist/views/Request/RequestSection/RequestTableTooltip.vue2.js +29 -29
- package/dist/views/Request/RequestSection/index.d.ts +1 -1
- package/dist/views/Request/RequestSection/index.d.ts.map +1 -1
- package/dist/views/Request/RequestSection/index.js +4 -4
- package/dist/views/Request/RequestSidebarItem.vue2.js +149 -149
- package/dist/views/Request/RequestSidebarItemMenu.vue2.js +79 -79
- package/dist/views/Request/RequestSubpageHeader.vue2.js +30 -30
- package/dist/views/Request/ResponseSection/RequestHeaders.vue.js +29 -29
- package/dist/views/Request/ResponseSection/ResponseBody.vue2.js +37 -37
- package/dist/views/Request/ResponseSection/ResponseBodyDownload.vue.js +10 -10
- package/dist/views/Request/ResponseSection/ResponseBodyPreview.vue2.js +24 -24
- package/dist/views/Request/ResponseSection/ResponseBodyToggle.vue.js +10 -10
- package/dist/views/Request/ResponseSection/ResponseCookies.vue.js +16 -16
- package/dist/views/Request/ResponseSection/ResponseEmpty.vue2.js +21 -21
- package/dist/views/Request/ResponseSection/ResponseHeaders.vue.js +30 -30
- package/dist/views/Request/ResponseSection/ResponseMetaInformation.vue.js +37 -37
- package/dist/views/Request/ResponseSection/ResponseSection.vue2.js +61 -61
- package/package.json +24 -24
- package/dist/components/ImportCollection/OpenAppButton.vue.d.ts +0 -6
- package/dist/components/ImportCollection/OpenAppButton.vue.d.ts.map +0 -1
- package/dist/components/ImportCollection/OperationBadge.vue.d.ts +0 -8
- package/dist/components/ImportCollection/OperationBadge.vue.d.ts.map +0 -1
- package/dist/components/ScreenReader.vue.d.ts +0 -20
- package/dist/components/ScreenReader.vue.d.ts.map +0 -1
- package/dist/components/SideNav/WorkspaceProfileIcon.vue.d.ts +0 -9
- package/dist/components/SideNav/WorkspaceProfileIcon.vue.d.ts.map +0 -1
- package/dist/views/Components/RequestBodies/RequestBodies.vue.d.ts +0 -3
- package/dist/views/Components/RequestBodies/RequestBodies.vue.d.ts.map +0 -1
- package/dist/views/Request/RequestSection/types/post-response.d.ts +0 -7
- package/dist/views/Request/RequestSection/types/post-response.d.ts.map +0 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { defineComponent as z, useId as K, ref as
|
|
1
|
+
import { defineComponent as z, useId as K, ref as x, computed as h, createBlock as V, openBlock as u, withCtx as s, createVNode as m, renderSlot as j, unref as i, createElementVNode as r, createElementBlock as y, Fragment as g, createTextVNode as k, toDisplayString as p, createCommentVNode as D, withModifiers as Y, normalizeClass as F } from "vue";
|
|
2
2
|
import { useModal as H, ScalarComboboxMultiselect as J, ScalarButton as P, ScalarListboxCheckbox as W, ScalarIconButton as G } from "@scalar/components";
|
|
3
3
|
import { safeLocalStorage as Q, CLIENT_LS_KEYS as X } from "@scalar/helpers/object/local-storage";
|
|
4
4
|
import { ScalarIconCaretDown as Z, ScalarIconTrash as _ } from "@scalar/icons";
|
|
@@ -7,7 +7,7 @@ import te from "../../../../components/ViewLayout/ViewLayoutCollapse.vue.js";
|
|
|
7
7
|
import { useWorkspace as oe } from "../../../../store/store.js";
|
|
8
8
|
import le from "./DeleteRequestAuthModal.vue.js";
|
|
9
9
|
import ne from "./RequestAuthDataTable.vue.js";
|
|
10
|
-
import { getSecurityRequirements as
|
|
10
|
+
import { getSecurityRequirements as ie, formatComplexScheme as se, formatScheme as re, getSchemeOptions as ae } from "../../libs/auth.js";
|
|
11
11
|
const ce = ["id"], ue = { class: "flex flex-1" }, me = { class: "min-w-0 flex-1 truncate" }, Ce = /* @__PURE__ */ z({
|
|
12
12
|
__name: "RequestAuth",
|
|
13
13
|
props: {
|
|
@@ -24,102 +24,102 @@ const ce = ["id"], ue = { class: "flex flex-1" }, me = { class: "min-w-0 flex-1
|
|
|
24
24
|
workspace: {}
|
|
25
25
|
},
|
|
26
26
|
emits: ["authorized", "activeSchemes"],
|
|
27
|
-
setup(
|
|
27
|
+
setup(l, { emit: E }) {
|
|
28
28
|
const C = E, {
|
|
29
29
|
securitySchemes: d,
|
|
30
30
|
securitySchemeMutators: $,
|
|
31
31
|
requestMutators: B,
|
|
32
32
|
collectionMutators: I
|
|
33
|
-
} = oe(), A = K(), v =
|
|
33
|
+
} = oe(), A = K(), v = x(null), f = H(), S = x(
|
|
34
34
|
null
|
|
35
|
-
), R =
|
|
36
|
-
const
|
|
37
|
-
return { filteredRequirements:
|
|
38
|
-
}), b =
|
|
39
|
-
const { filteredRequirements:
|
|
35
|
+
), R = x(!1), q = h(() => {
|
|
36
|
+
const o = ie(l.operation, l.collection);
|
|
37
|
+
return { filteredRequirements: o.filter((t) => Object.keys(t).length), requirements: o };
|
|
38
|
+
}), b = h(() => {
|
|
39
|
+
const { filteredRequirements: o, requirements: e } = q.value;
|
|
40
40
|
if (!e.length)
|
|
41
41
|
return null;
|
|
42
|
-
const
|
|
42
|
+
const n = !e.some(
|
|
43
43
|
(N) => Object.keys(N).length > 1
|
|
44
|
-
) &&
|
|
45
|
-
return { icon:
|
|
46
|
-
}), a =
|
|
47
|
-
() =>
|
|
48
|
-
if (Array.isArray(
|
|
49
|
-
return
|
|
50
|
-
const e = d[
|
|
44
|
+
) && o.length < e.length;
|
|
45
|
+
return { icon: n ? "Unlock" : "Lock", text: n ? "Optional" : "Required" };
|
|
46
|
+
}), a = h(
|
|
47
|
+
() => l.selectedSecuritySchemeUids.map((o) => {
|
|
48
|
+
if (Array.isArray(o))
|
|
49
|
+
return se(o, d);
|
|
50
|
+
const e = d[o ?? ""];
|
|
51
51
|
if (e)
|
|
52
|
-
return
|
|
52
|
+
return re(e);
|
|
53
53
|
}).filter(ee)
|
|
54
54
|
);
|
|
55
|
-
function M(
|
|
56
|
-
const e =
|
|
57
|
-
const c =
|
|
58
|
-
return c.length > 1 ? c :
|
|
55
|
+
function M(o) {
|
|
56
|
+
const e = o.find((n) => n.payload), t = o.filter((n) => !n.payload).map(({ id: n }) => {
|
|
57
|
+
const c = n.split(",");
|
|
58
|
+
return c.length > 1 ? c : n;
|
|
59
59
|
});
|
|
60
60
|
if (e?.payload) {
|
|
61
|
-
const
|
|
61
|
+
const n = $.add(
|
|
62
62
|
e.payload,
|
|
63
|
-
|
|
63
|
+
l.collection?.uid
|
|
64
64
|
);
|
|
65
|
-
|
|
65
|
+
n && t.push(n.uid);
|
|
66
66
|
}
|
|
67
|
-
w(
|
|
67
|
+
w(t);
|
|
68
68
|
}
|
|
69
|
-
const w = (
|
|
70
|
-
if (
|
|
71
|
-
if (I.edit(
|
|
69
|
+
const w = (o) => {
|
|
70
|
+
if (l.collection.useCollectionSecurity) {
|
|
71
|
+
if (I.edit(l.collection.uid, "selectedSecuritySchemeUids", o), !l.persistAuth)
|
|
72
72
|
return;
|
|
73
|
-
const e =
|
|
73
|
+
const e = o.map((t) => Array.isArray(t) ? t.map((n) => d[n]?.nameKey) : d[t]?.nameKey);
|
|
74
74
|
Q().setItem(
|
|
75
75
|
X.SELECTED_SECURITY_SCHEMES,
|
|
76
76
|
JSON.stringify(e)
|
|
77
77
|
);
|
|
78
|
-
} else
|
|
78
|
+
} else l.operation?.uid && B.edit(l.operation.uid, "selectedSecuritySchemeUids", o);
|
|
79
79
|
};
|
|
80
|
-
function O({ id:
|
|
81
|
-
S.value = { id:
|
|
80
|
+
function O({ id: o, label: e }) {
|
|
81
|
+
S.value = { id: o, label: e }, f.show();
|
|
82
82
|
}
|
|
83
|
-
const T = (
|
|
84
|
-
if (!
|
|
83
|
+
const T = (o) => {
|
|
84
|
+
if (!o)
|
|
85
85
|
return;
|
|
86
|
-
const e =
|
|
87
|
-
const
|
|
88
|
-
return
|
|
86
|
+
const e = l.selectedSecuritySchemeUids.filter((t) => {
|
|
87
|
+
const n = o.split(",");
|
|
88
|
+
return n.length > 1 && Array.isArray(t) && n.length === t.length ? t.every((c) => !n.includes(c)) : t !== o;
|
|
89
89
|
});
|
|
90
|
-
w(e), v.value?.$el.focus(),
|
|
91
|
-
}, U =
|
|
90
|
+
w(e), v.value?.$el.focus(), f.hide();
|
|
91
|
+
}, U = h(
|
|
92
92
|
() => ae(
|
|
93
93
|
q.value.filteredRequirements,
|
|
94
|
-
|
|
94
|
+
l.collection?.securitySchemes ?? [],
|
|
95
95
|
d,
|
|
96
|
-
|
|
96
|
+
l.isReadOnly
|
|
97
97
|
)
|
|
98
|
-
), L = (
|
|
99
|
-
R.value &&
|
|
98
|
+
), L = (o) => {
|
|
99
|
+
R.value && o.stopPropagation(), v.value?.$el.click();
|
|
100
100
|
};
|
|
101
|
-
return (
|
|
101
|
+
return (o, e) => (u(), V(te, {
|
|
102
102
|
class: "group/params relative",
|
|
103
103
|
itemCount: a.value.length,
|
|
104
|
-
layout:
|
|
105
|
-
"onUpdate:modelValue": e[4] || (e[4] = (
|
|
104
|
+
layout: l.layout,
|
|
105
|
+
"onUpdate:modelValue": e[4] || (e[4] = (t) => R.value = t)
|
|
106
106
|
}, {
|
|
107
|
-
title:
|
|
108
|
-
|
|
109
|
-
id:
|
|
107
|
+
title: s(() => [
|
|
108
|
+
r("div", {
|
|
109
|
+
id: i(A),
|
|
110
110
|
class: "inline-flex items-center gap-0.5 leading-[20px]"
|
|
111
111
|
}, [
|
|
112
|
-
|
|
113
|
-
b.value ? (u(),
|
|
112
|
+
r("span", null, p(l.title), 1),
|
|
113
|
+
b.value ? (u(), y("span", {
|
|
114
114
|
key: 0,
|
|
115
115
|
class: F(["text-c-3 hover:bg-b-3 hover:text-c-1 -mr-1 cursor-pointer rounded px-1 py-0.5 text-xs leading-[normal]", { "text-c-1": b.value.text === "Required" }]),
|
|
116
116
|
onClick: L
|
|
117
|
-
},
|
|
117
|
+
}, p(b.value.text), 3)) : D("", !0)
|
|
118
118
|
], 8, ce)
|
|
119
119
|
]),
|
|
120
|
-
actions:
|
|
121
|
-
|
|
122
|
-
m(
|
|
120
|
+
actions: s(() => [
|
|
121
|
+
r("div", ue, [
|
|
122
|
+
m(i(J), {
|
|
123
123
|
class: "w-72 text-xs",
|
|
124
124
|
modelValue: a.value,
|
|
125
125
|
multiple: "",
|
|
@@ -129,41 +129,41 @@ const ce = ["id"], ue = { class: "flex flex-1" }, me = { class: "min-w-0 flex-1
|
|
|
129
129
|
onDelete: O,
|
|
130
130
|
"onUpdate:modelValue": M
|
|
131
131
|
}, {
|
|
132
|
-
option:
|
|
133
|
-
m(
|
|
132
|
+
option: s(({ option: t, selected: n }) => [
|
|
133
|
+
m(i(W), {
|
|
134
134
|
multiselect: "",
|
|
135
|
-
selected:
|
|
135
|
+
selected: n
|
|
136
136
|
}, null, 8, ["selected"]),
|
|
137
|
-
|
|
138
|
-
|
|
137
|
+
r("div", me, p(t.label), 1),
|
|
138
|
+
t.isDeletable ?? !l.isReadOnly ? (u(), V(i(G), {
|
|
139
139
|
key: 0,
|
|
140
140
|
class: "-m-0.5 shrink-0 p-0.5 opacity-0 group-hover/item:opacity-100",
|
|
141
|
-
icon:
|
|
142
|
-
label: `Delete ${
|
|
141
|
+
icon: i(_),
|
|
142
|
+
label: `Delete ${t.label}`,
|
|
143
143
|
size: "xs",
|
|
144
|
-
onClick: Y((c) => O(
|
|
144
|
+
onClick: Y((c) => O(t), ["stop"])
|
|
145
145
|
}, null, 8, ["icon", "label", "onClick"])) : D("", !0)
|
|
146
146
|
]),
|
|
147
|
-
default:
|
|
148
|
-
m(
|
|
147
|
+
default: s(() => [
|
|
148
|
+
m(i(P), {
|
|
149
149
|
ref_key: "comboboxButtonRef",
|
|
150
150
|
ref: v,
|
|
151
|
-
"aria-describedby":
|
|
151
|
+
"aria-describedby": i(A),
|
|
152
152
|
class: "group/combobox-button hover:text-c-1 text-c-2 flex h-fit w-full items-center gap-1 px-0.75 py-0.25 text-base font-normal transition-transform",
|
|
153
153
|
variant: "ghost"
|
|
154
154
|
}, {
|
|
155
|
-
default:
|
|
156
|
-
a.value.length === 1 ? (u(),
|
|
157
|
-
e[5] || (e[5] =
|
|
158
|
-
k(" " +
|
|
159
|
-
], 64)) : a.value.length > 1 ? (u(),
|
|
155
|
+
default: s(() => [
|
|
156
|
+
a.value.length === 1 ? (u(), y(g, { key: 0 }, [
|
|
157
|
+
e[5] || (e[5] = r("span", { class: "sr-only" }, "Selected Auth Type:", -1)),
|
|
158
|
+
k(" " + p(a.value[0]?.label), 1)
|
|
159
|
+
], 64)) : a.value.length > 1 ? (u(), y(g, { key: 1 }, [
|
|
160
160
|
e[6] || (e[6] = k(" Multiple ", -1)),
|
|
161
|
-
e[7] || (e[7] =
|
|
162
|
-
], 64)) : (u(),
|
|
163
|
-
e[8] || (e[8] =
|
|
161
|
+
e[7] || (e[7] = r("span", { class: "sr-only" }, "Auth Types Selected", -1))
|
|
162
|
+
], 64)) : (u(), y(g, { key: 2 }, [
|
|
163
|
+
e[8] || (e[8] = r("span", { class: "sr-only" }, "Select", -1)),
|
|
164
164
|
e[9] || (e[9] = k(" Auth Type ", -1))
|
|
165
165
|
], 64)),
|
|
166
|
-
m(
|
|
166
|
+
m(i(Z), {
|
|
167
167
|
class: "size-3 shrink-0 transition-transform duration-100 group-aria-expanded/combobox-button:rotate-180",
|
|
168
168
|
weight: "bold"
|
|
169
169
|
})
|
|
@@ -175,29 +175,29 @@ const ce = ["id"], ue = { class: "flex flex-1" }, me = { class: "min-w-0 flex-1
|
|
|
175
175
|
}, 8, ["modelValue", "options"])
|
|
176
176
|
])
|
|
177
177
|
]),
|
|
178
|
-
default:
|
|
178
|
+
default: s(() => [
|
|
179
179
|
m(ne, {
|
|
180
|
-
collection:
|
|
181
|
-
envVariables:
|
|
182
|
-
environment:
|
|
183
|
-
layout:
|
|
184
|
-
persistAuth:
|
|
180
|
+
collection: l.collection,
|
|
181
|
+
envVariables: l.envVariables,
|
|
182
|
+
environment: l.environment,
|
|
183
|
+
layout: l.layout,
|
|
184
|
+
persistAuth: l.persistAuth,
|
|
185
185
|
selectedSchemeOptions: a.value,
|
|
186
|
-
server:
|
|
187
|
-
workspace:
|
|
188
|
-
onActiveSchemes: e[0] || (e[0] = (
|
|
189
|
-
onAuthorized: e[1] || (e[1] = (
|
|
186
|
+
server: l.server,
|
|
187
|
+
workspace: l.workspace,
|
|
188
|
+
onActiveSchemes: e[0] || (e[0] = (t) => C("activeSchemes", t)),
|
|
189
|
+
onAuthorized: e[1] || (e[1] = (t) => C("authorized"))
|
|
190
190
|
}, {
|
|
191
|
-
"oauth-actions":
|
|
192
|
-
j(
|
|
191
|
+
"oauth-actions": s(() => [
|
|
192
|
+
j(o.$slots, "oauth-actions", {}, void 0, !0)
|
|
193
193
|
]),
|
|
194
194
|
_: 3
|
|
195
195
|
}, 8, ["collection", "envVariables", "environment", "layout", "persistAuth", "selectedSchemeOptions", "server", "workspace"]),
|
|
196
196
|
m(le, {
|
|
197
197
|
scheme: S.value,
|
|
198
|
-
state:
|
|
199
|
-
onClose: e[2] || (e[2] = (
|
|
200
|
-
onDelete: e[3] || (e[3] = (
|
|
198
|
+
state: i(f),
|
|
199
|
+
onClose: e[2] || (e[2] = (t) => i(f).hide()),
|
|
200
|
+
onDelete: e[3] || (e[3] = (t) => T(S.value?.id))
|
|
201
201
|
}, null, 8, ["scheme", "state"])
|
|
202
202
|
]),
|
|
203
203
|
_: 3
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"RequestAuthDataTable.vue.d.ts","sourceRoot":"","sources":["../../../../../src/views/Request/RequestSection/RequestAuth/RequestAuthDataTable.vue"],"names":[],"mappings":"AA+PA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,wCAAwC,CAAA;AACzE,OAAO,KAAK,EACV,UAAU,EAEV,MAAM,EACP,MAAM,iCAAiC,CAAA;AACxC,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,sCAAsC,CAAA;AAKrE,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,yBAAyB,CAAA;AAK1D,KAAK,WAAW,GAAG;IACjB,UAAU,EAAE,UAAU,CAAA;IACtB,WAAW,EAAE,WAAW,CAAA;IACxB,YAAY,EAAE,WAAW,EAAE,CAAA;IAC3B,MAAM,EAAE,QAAQ,GAAG,WAAW,CAAA;IAC9B,WAAW,EAAE,OAAO,CAAA;IACpB,qBAAqB,EAAE;QAAE,EAAE,EAAE,MAAM,CAAC;QAAC,KAAK,EAAE,MAAM,CAAA;KAAE,EAAE,CAAA;IACtD,MAAM,EAAE,MAAM,GAAG,SAAS,CAAA;IAC1B,SAAS,EAAE,SAAS,CAAA;CACrB,CAAC;AAkBF,KAAK,WAAW,GAAG;IACjB,eAAe,CAAC,EAAE,MAAM,OAAO,CAAA;CAChC,CAAC;AAwQF,QAAA,MAAM,eAAe;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
|
|
1
|
+
{"version":3,"file":"RequestAuthDataTable.vue.d.ts","sourceRoot":"","sources":["../../../../../src/views/Request/RequestSection/RequestAuth/RequestAuthDataTable.vue"],"names":[],"mappings":"AA+PA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,wCAAwC,CAAA;AACzE,OAAO,KAAK,EACV,UAAU,EAEV,MAAM,EACP,MAAM,iCAAiC,CAAA;AACxC,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,sCAAsC,CAAA;AAKrE,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,yBAAyB,CAAA;AAK1D,KAAK,WAAW,GAAG;IACjB,UAAU,EAAE,UAAU,CAAA;IACtB,WAAW,EAAE,WAAW,CAAA;IACxB,YAAY,EAAE,WAAW,EAAE,CAAA;IAC3B,MAAM,EAAE,QAAQ,GAAG,WAAW,CAAA;IAC9B,WAAW,EAAE,OAAO,CAAA;IACpB,qBAAqB,EAAE;QAAE,EAAE,EAAE,MAAM,CAAC;QAAC,KAAK,EAAE,MAAM,CAAA;KAAE,EAAE,CAAA;IACtD,MAAM,EAAE,MAAM,GAAG,SAAS,CAAA;IAC1B,SAAS,EAAE,SAAS,CAAA;CACrB,CAAC;AAkBF,KAAK,WAAW,GAAG;IACjB,eAAe,CAAC,EAAE,MAAM,OAAO,CAAA;CAChC,CAAC;AAwQF,QAAA,MAAM,eAAe;;;;;;;;;;;;;;;;;;;;;;;;;;;;;oBAsB03B,CAAC;;;;;;;;;yCAAiV,CAAC;wCAA0E,CAAC;6BAA+D,CAAC;;oBAA6D,CAAC;;;;;;;;;;;yCAA0X,CAAC;wCAA0E,CAAC;6BAA+D,CAAC;+CAAiE,CAAC;;6BAAiF,CAAC;;;;;;;;;yCAAuU,CAAC;wCAA0E,CAAC;6BAA+D,CAAC;+CAAiE,CAAC;;6BAAiF,CAAC;;;;;;;;;;;;yCAA+c,CAAC;wCAA0E,CAAC;6BAA+D,CAAC;+CAAiE,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;oBAA17E,CAAC;;;;;;;;;yCAAiV,CAAC;wCAA0E,CAAC;6BAA+D,CAAC;;oBAA6D,CAAC;;;;;;;;;;;yCAA0X,CAAC;wCAA0E,CAAC;6BAA+D,CAAC;+CAAiE,CAAC;;6BAAiF,CAAC;;;;;;;;;yCAAuU,CAAC;wCAA0E,CAAC;6BAA+D,CAAC;+CAAiE,CAAC;;6BAAiF,CAAC;;;;;;;;;;;;yCAA+c,CAAC;wCAA0E,CAAC;6BAA+D,CAAC;+CAAiE,CAAC;;;;;;;;kFAfv0G,CAAC;wBACkB,eAAe,CAAC,OAAO,eAAe,EAAE,WAAW,CAAC;AAAzE,wBAA0E;AAQ1E,KAAK,eAAe,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG;IAChC,QAAO;QACN,MAAM,EAAE,CAAC,CAAC;KAEV,CAAA;CACD,CAAC"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { defineComponent as A, ref as h, computed as
|
|
1
|
+
import { defineComponent as A, ref as h, computed as v, watch as f, createElementBlock as l, openBlock as n, withModifiers as z, createCommentVNode as b, createBlock as C, createVNode as x, normalizeClass as a, Fragment as V, renderList as $, createElementVNode as y, toDisplayString as O, unref as u, withCtx as p, renderSlot as B } from "vue";
|
|
2
2
|
import { useModal as M } from "@scalar/components";
|
|
3
3
|
import { isDefined as N } from "@scalar/helpers/array/is-defined";
|
|
4
4
|
import D from "./DeleteRequestAuthModal.vue.js";
|
|
@@ -21,64 +21,64 @@ const q = ["onClick"], F = { class: "relative z-10 font-medium whitespace-nowrap
|
|
|
21
21
|
workspace: {}
|
|
22
22
|
},
|
|
23
23
|
emits: ["authorized", "activeSchemes"],
|
|
24
|
-
setup(
|
|
25
|
-
const m =
|
|
24
|
+
setup(e, { emit: S }) {
|
|
25
|
+
const m = S, { securitySchemes: k } = j(), d = M(), g = h(
|
|
26
26
|
null
|
|
27
|
-
),
|
|
28
|
-
if (!
|
|
27
|
+
), o = h(0), i = v(() => {
|
|
28
|
+
if (!e.selectedSchemeOptions || e.selectedSchemeOptions.length === 0)
|
|
29
29
|
return [];
|
|
30
|
-
const
|
|
31
|
-
if (!
|
|
30
|
+
const r = e.selectedSchemeOptions[o.value];
|
|
31
|
+
if (!r)
|
|
32
32
|
return [];
|
|
33
|
-
const t =
|
|
34
|
-
return t.length > 1 ? t : [
|
|
33
|
+
const t = r.id.split(",").filter(Boolean);
|
|
34
|
+
return t.length > 1 ? t : [r.id];
|
|
35
35
|
});
|
|
36
|
-
|
|
36
|
+
f(
|
|
37
37
|
i,
|
|
38
|
-
(
|
|
38
|
+
(r) => {
|
|
39
39
|
m(
|
|
40
40
|
"activeSchemes",
|
|
41
|
-
|
|
41
|
+
r.map((t) => k[t]).filter(N)
|
|
42
42
|
);
|
|
43
43
|
},
|
|
44
44
|
{ immediate: !0 }
|
|
45
45
|
);
|
|
46
|
-
const
|
|
47
|
-
return
|
|
48
|
-
() =>
|
|
49
|
-
(
|
|
50
|
-
(!
|
|
46
|
+
const w = v(() => i.value.length > 0);
|
|
47
|
+
return f(
|
|
48
|
+
() => e.selectedSchemeOptions,
|
|
49
|
+
(r) => {
|
|
50
|
+
(!r || !r[o.value]) && (o.value = Math.max(0, o.value - 1));
|
|
51
51
|
}
|
|
52
|
-
), (
|
|
52
|
+
), (r, t) => (n(), l("form", {
|
|
53
53
|
onSubmit: t[2] || (t[2] = z(() => {
|
|
54
54
|
}, ["prevent"]))
|
|
55
55
|
}, [
|
|
56
|
-
e.selectedSchemeOptions.length > 1 ? (
|
|
56
|
+
e.selectedSchemeOptions.length > 1 ? (n(), l("div", {
|
|
57
57
|
key: 0,
|
|
58
58
|
class: a(["box-content flex flex-wrap gap-x-2.5 overflow-hidden border border-b-0 px-3", e.layout === "client" && "border-x-0"])
|
|
59
59
|
}, [
|
|
60
|
-
(
|
|
61
|
-
key:
|
|
62
|
-
class: a(["relative z-1 -mb-[var(--scalar-border-width)] flex h-8 cursor-pointer", [
|
|
60
|
+
(n(!0), l(V, null, $(e.selectedSchemeOptions, (s, c) => (n(), l("div", {
|
|
61
|
+
key: s.id,
|
|
62
|
+
class: a(["relative z-1 -mb-[var(--scalar-border-width)] flex h-8 cursor-pointer", [o.value === c ? "text-c-1" : "text-c-3"]])
|
|
63
63
|
}, [
|
|
64
64
|
y("button", {
|
|
65
65
|
class: "floating-bg relative cursor-pointer border-b-[1px] border-transparent py-1 text-sm font-medium",
|
|
66
66
|
type: "button",
|
|
67
|
-
onClick: (L) =>
|
|
67
|
+
onClick: (L) => o.value = c
|
|
68
68
|
}, [
|
|
69
|
-
y("span", F, O(
|
|
69
|
+
y("span", F, O(s.label), 1)
|
|
70
70
|
], 8, q),
|
|
71
|
-
|
|
71
|
+
o.value === c ? (n(), l("div", I)) : b("", !0)
|
|
72
72
|
], 2))), 128))
|
|
73
|
-
], 2)) :
|
|
74
|
-
|
|
73
|
+
], 2)) : b("", !0),
|
|
74
|
+
w.value ? (n(), C(u(U), {
|
|
75
75
|
key: 1,
|
|
76
76
|
class: a(["flex-1", e.layout === "reference" && "bg-b-1 rounded-b-lg border border-t-0"]),
|
|
77
77
|
columns: [""],
|
|
78
78
|
presentational: ""
|
|
79
79
|
}, {
|
|
80
|
-
default:
|
|
81
|
-
|
|
80
|
+
default: p(() => [
|
|
81
|
+
x(E, {
|
|
82
82
|
collection: e.collection,
|
|
83
83
|
envVariables: e.envVariables,
|
|
84
84
|
environment: e.environment,
|
|
@@ -87,26 +87,26 @@ const q = ["onClick"], F = { class: "relative z-10 font-medium whitespace-nowrap
|
|
|
87
87
|
securitySchemeUids: i.value,
|
|
88
88
|
server: e.server,
|
|
89
89
|
workspace: e.workspace,
|
|
90
|
-
onAuthorized: t[0] || (t[0] = (
|
|
90
|
+
onAuthorized: t[0] || (t[0] = (s) => m("authorized"))
|
|
91
91
|
}, {
|
|
92
|
-
"oauth-actions":
|
|
93
|
-
B(
|
|
92
|
+
"oauth-actions": p(() => [
|
|
93
|
+
B(r.$slots, "oauth-actions", {}, void 0, !0)
|
|
94
94
|
]),
|
|
95
95
|
_: 3
|
|
96
96
|
}, 8, ["collection", "envVariables", "environment", "layout", "persistAuth", "securitySchemeUids", "server", "workspace"])
|
|
97
97
|
]),
|
|
98
98
|
_: 3
|
|
99
|
-
}, 8, ["class"])) : (
|
|
99
|
+
}, 8, ["class"])) : (n(), l("div", {
|
|
100
100
|
key: 2,
|
|
101
101
|
class: a([
|
|
102
102
|
"text-c-3 bg-b-1 flex min-h-16 items-center justify-center border-t px-4 text-sm",
|
|
103
103
|
e.layout === "reference" && "min-h-[calc(4rem+0.5px)] rounded-b-lg border"
|
|
104
104
|
])
|
|
105
105
|
}, " No authentication selected ", 2)),
|
|
106
|
-
|
|
107
|
-
scheme:
|
|
106
|
+
x(D, {
|
|
107
|
+
scheme: g.value,
|
|
108
108
|
state: u(d),
|
|
109
|
-
onClose: t[1] || (t[1] = (
|
|
109
|
+
onClose: t[1] || (t[1] = (s) => u(d).hide())
|
|
110
110
|
}, null, 8, ["scheme", "state"])
|
|
111
111
|
], 32));
|
|
112
112
|
}
|