@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,16 +1,16 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
import { ScalarMarkdownSummary as
|
|
3
|
-
import { useWorkspace as
|
|
4
|
-
import { updateScheme as
|
|
5
|
-
import { restoreAuthFromLocalStorage as
|
|
6
|
-
import
|
|
7
|
-
import
|
|
8
|
-
import
|
|
9
|
-
import
|
|
10
|
-
const
|
|
1
|
+
import { defineComponent as N, computed as P, ref as j, onMounted as L, createElementBlock as i, openBlock as a, Fragment as p, renderList as C, createBlock as k, createCommentVNode as b, unref as d, withCtx as l, createVNode as u, createElementVNode as h, toDisplayString as A, mergeProps as y, createTextVNode as x, normalizeClass as T, renderSlot as M, capitalize as g } from "vue";
|
|
2
|
+
import { ScalarMarkdownSummary as R } from "@scalar/components";
|
|
3
|
+
import { useWorkspace as Q } from "../../../../store/store.js";
|
|
4
|
+
import { updateScheme as q } from "../helpers/update-scheme.js";
|
|
5
|
+
import { restoreAuthFromLocalStorage as D } from "./helpers/restore-auth-from-local-storage.js";
|
|
6
|
+
import E from "./OAuth2.vue.js";
|
|
7
|
+
import V from "./RequestAuthDataTableInput.vue.js";
|
|
8
|
+
import c from "../../../../components/DataTable/DataTableRow.vue.js";
|
|
9
|
+
import F from "../../../../components/DataTable/DataTableCell.vue.js";
|
|
10
|
+
const O = { 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" }, _ = {
|
|
11
11
|
key: 0,
|
|
12
12
|
class: "flex min-h-8 border-t text-base"
|
|
13
|
-
}, H = { class: "flex h-8 max-w-full gap-2.5 overflow-x-auto px-3" }, W = ["onClick"], G = { class: "relative z-10" }, le = /* @__PURE__ */
|
|
13
|
+
}, H = { class: "flex h-8 max-w-full gap-2.5 overflow-x-auto px-3" }, W = ["onClick"], G = { class: "relative z-10" }, le = /* @__PURE__ */ N({
|
|
14
14
|
__name: "RequestAuthTab",
|
|
15
15
|
props: {
|
|
16
16
|
collection: {},
|
|
@@ -23,56 +23,56 @@ const E = { class: "bg-b-1 text-c-2 outline-b-3 top-0 z-1 h-full w-full overflow
|
|
|
23
23
|
workspace: {}
|
|
24
24
|
},
|
|
25
25
|
emits: ["authorized"],
|
|
26
|
-
setup(
|
|
27
|
-
const
|
|
28
|
-
() =>
|
|
29
|
-
scheme:
|
|
26
|
+
setup(r, { emit: z }) {
|
|
27
|
+
const B = z, $ = Q(), { securitySchemes: I } = $, U = P(
|
|
28
|
+
() => r.securitySchemeUids.map((o) => ({
|
|
29
|
+
scheme: I[o]
|
|
30
30
|
}))
|
|
31
|
-
),
|
|
32
|
-
const
|
|
33
|
-
if (
|
|
34
|
-
return `${g(
|
|
35
|
-
if (
|
|
36
|
-
const
|
|
37
|
-
return `${g(
|
|
31
|
+
), s = j(""), S = (o) => {
|
|
32
|
+
const t = o.description ? `: ${o.description}` : "", e = `${g(o.nameKey)}${t || `: ${o.type}`}`;
|
|
33
|
+
if (o.type === "apiKey")
|
|
34
|
+
return `${g(o.nameKey)}${t || `: ${o.in}`}`;
|
|
35
|
+
if (o.type === "oauth2") {
|
|
36
|
+
const n = Object.values(o.flows ?? {})[0];
|
|
37
|
+
return `${g(o.nameKey)}: ${s.value ? s.value : n?.type ?? ""}${t}`;
|
|
38
38
|
}
|
|
39
|
-
return
|
|
40
|
-
}, v = (
|
|
41
|
-
|
|
39
|
+
return o.type === "http" ? `${g(o.nameKey)}: ${o.scheme}${t}` : `${e}${t}`;
|
|
40
|
+
}, v = (o, t, e) => {
|
|
41
|
+
q(o, t, e, $, r.persistAuth);
|
|
42
42
|
};
|
|
43
|
-
|
|
44
|
-
|
|
43
|
+
L(() => {
|
|
44
|
+
r.persistAuth && D($, r.collection.uid);
|
|
45
45
|
});
|
|
46
|
-
const
|
|
47
|
-
environment:
|
|
48
|
-
envVariables:
|
|
49
|
-
workspace:
|
|
46
|
+
const m = {
|
|
47
|
+
environment: r.environment,
|
|
48
|
+
envVariables: r.envVariables,
|
|
49
|
+
workspace: r.workspace
|
|
50
50
|
};
|
|
51
|
-
return (
|
|
51
|
+
return (o, t) => (a(!0), i(p, null, C(U.value, ({ scheme: e }) => (a(), i(p, {
|
|
52
52
|
key: e?.uid
|
|
53
53
|
}, [
|
|
54
|
-
U.value.length > 1 && e ? (
|
|
55
|
-
default:
|
|
56
|
-
|
|
54
|
+
U.value.length > 1 && e ? (a(), k(d(c), { key: 0 }, {
|
|
55
|
+
default: l(() => [
|
|
56
|
+
u(d(F), {
|
|
57
57
|
"aria-label": S(e),
|
|
58
58
|
class: "text-c-2 group/auth flex items-center leading-[22px] whitespace-nowrap outline-none hover:whitespace-normal"
|
|
59
59
|
}, {
|
|
60
|
-
default:
|
|
61
|
-
h("p",
|
|
60
|
+
default: l(() => [
|
|
61
|
+
h("p", O, A(S(e)), 1)
|
|
62
62
|
]),
|
|
63
63
|
_: 2
|
|
64
64
|
}, 1032, ["aria-label"])
|
|
65
65
|
]),
|
|
66
66
|
_: 2
|
|
67
67
|
}, 1024)) : b("", !0),
|
|
68
|
-
e?.description && U.value.length <= 1 ? (
|
|
69
|
-
default:
|
|
70
|
-
|
|
68
|
+
e?.description && U.value.length <= 1 ? (a(), k(d(c), { key: 1 }, {
|
|
69
|
+
default: l(() => [
|
|
70
|
+
u(d(F), {
|
|
71
71
|
"aria-label": e.description,
|
|
72
72
|
class: "max-h-[auto]"
|
|
73
73
|
}, {
|
|
74
|
-
default:
|
|
75
|
-
|
|
74
|
+
default: l(() => [
|
|
75
|
+
u(d(R), {
|
|
76
76
|
class: "auth-description bg-b-1 text-c-2 min-w-0 flex-1 px-3 py-1.25",
|
|
77
77
|
value: e.description
|
|
78
78
|
}, null, 8, ["value"])
|
|
@@ -82,51 +82,51 @@ const E = { class: "bg-b-1 text-c-2 outline-b-3 top-0 z-1 h-full w-full overflow
|
|
|
82
82
|
]),
|
|
83
83
|
_: 2
|
|
84
84
|
}, 1024)) : b("", !0),
|
|
85
|
-
e?.type === "http" ? (
|
|
86
|
-
e.scheme === "bearer" ? (
|
|
87
|
-
default:
|
|
88
|
-
|
|
89
|
-
containerClass:
|
|
85
|
+
e?.type === "http" ? (a(), i(p, { key: 2 }, [
|
|
86
|
+
e.scheme === "bearer" ? (a(), k(d(c), { key: 0 }, {
|
|
87
|
+
default: l(() => [
|
|
88
|
+
u(V, y({ ref_for: !0 }, m, {
|
|
89
|
+
containerClass: r.layout === "reference" && "border-t",
|
|
90
90
|
modelValue: e.token,
|
|
91
91
|
placeholder: "Token",
|
|
92
92
|
type: "password",
|
|
93
|
-
"onUpdate:modelValue": (
|
|
93
|
+
"onUpdate:modelValue": (n) => v(e.uid, "token", n)
|
|
94
94
|
}), {
|
|
95
|
-
default:
|
|
96
|
-
|
|
95
|
+
default: l(() => [...t[1] || (t[1] = [
|
|
96
|
+
x(" Bearer Token ", -1)
|
|
97
97
|
])]),
|
|
98
98
|
_: 1
|
|
99
99
|
}, 16, ["containerClass", "modelValue", "onUpdate:modelValue"])
|
|
100
100
|
]),
|
|
101
101
|
_: 2
|
|
102
|
-
}, 1024)) : e?.scheme === "basic" ? (
|
|
103
|
-
|
|
104
|
-
default:
|
|
105
|
-
|
|
102
|
+
}, 1024)) : e?.scheme === "basic" ? (a(), i(p, { key: 1 }, [
|
|
103
|
+
u(d(c), null, {
|
|
104
|
+
default: l(() => [
|
|
105
|
+
u(V, y({ ref_for: !0 }, m, {
|
|
106
106
|
class: "text-c-2",
|
|
107
107
|
modelValue: e.username,
|
|
108
108
|
placeholder: "janedoe",
|
|
109
109
|
required: "",
|
|
110
|
-
"onUpdate:modelValue": (
|
|
110
|
+
"onUpdate:modelValue": (n) => v(e.uid, "username", n)
|
|
111
111
|
}), {
|
|
112
|
-
default:
|
|
113
|
-
|
|
112
|
+
default: l(() => [...t[2] || (t[2] = [
|
|
113
|
+
x(" Username ", -1)
|
|
114
114
|
])]),
|
|
115
115
|
_: 1
|
|
116
116
|
}, 16, ["modelValue", "onUpdate:modelValue"])
|
|
117
117
|
]),
|
|
118
118
|
_: 2
|
|
119
119
|
}, 1024),
|
|
120
|
-
|
|
121
|
-
default:
|
|
122
|
-
|
|
120
|
+
u(d(c), null, {
|
|
121
|
+
default: l(() => [
|
|
122
|
+
u(V, y({ ref_for: !0 }, m, {
|
|
123
123
|
modelValue: e.password,
|
|
124
124
|
placeholder: "********",
|
|
125
125
|
type: "password",
|
|
126
|
-
"onUpdate:modelValue": (
|
|
126
|
+
"onUpdate:modelValue": (n) => v(e.uid, "password", n)
|
|
127
127
|
}), {
|
|
128
|
-
default:
|
|
129
|
-
|
|
128
|
+
default: l(() => [...t[3] || (t[3] = [
|
|
129
|
+
x(" Password ", -1)
|
|
130
130
|
])]),
|
|
131
131
|
_: 1
|
|
132
132
|
}, 16, ["modelValue", "onUpdate:modelValue"])
|
|
@@ -134,82 +134,82 @@ const E = { class: "bg-b-1 text-c-2 outline-b-3 top-0 z-1 h-full w-full overflow
|
|
|
134
134
|
_: 2
|
|
135
135
|
}, 1024)
|
|
136
136
|
], 64)) : b("", !0)
|
|
137
|
-
], 64)) : e?.type === "apiKey" ? (
|
|
138
|
-
|
|
139
|
-
default:
|
|
140
|
-
|
|
141
|
-
containerClass:
|
|
137
|
+
], 64)) : e?.type === "apiKey" ? (a(), i(p, { key: 3 }, [
|
|
138
|
+
u(d(c), null, {
|
|
139
|
+
default: l(() => [
|
|
140
|
+
u(V, y({ ref_for: !0 }, m, {
|
|
141
|
+
containerClass: r.layout === "reference" && "border-t",
|
|
142
142
|
modelValue: e.name,
|
|
143
143
|
placeholder: "api-key",
|
|
144
|
-
"onUpdate:modelValue": (
|
|
144
|
+
"onUpdate:modelValue": (n) => v(e.uid, "name", n)
|
|
145
145
|
}), {
|
|
146
|
-
default:
|
|
147
|
-
|
|
146
|
+
default: l(() => [...t[4] || (t[4] = [
|
|
147
|
+
x(" Name ", -1)
|
|
148
148
|
])]),
|
|
149
149
|
_: 1
|
|
150
150
|
}, 16, ["containerClass", "modelValue", "onUpdate:modelValue"])
|
|
151
151
|
]),
|
|
152
152
|
_: 2
|
|
153
153
|
}, 1024),
|
|
154
|
-
|
|
155
|
-
default:
|
|
156
|
-
|
|
154
|
+
u(d(c), null, {
|
|
155
|
+
default: l(() => [
|
|
156
|
+
u(V, y({ ref_for: !0 }, m, {
|
|
157
157
|
modelValue: e.value,
|
|
158
158
|
placeholder: "QUxMIFlPVVIgQkFTRSBBUkUgQkVMT05HIFRPIFVT",
|
|
159
159
|
type: "password",
|
|
160
|
-
"onUpdate:modelValue": (
|
|
160
|
+
"onUpdate:modelValue": (n) => v(e.uid, "value", n)
|
|
161
161
|
}), {
|
|
162
|
-
default:
|
|
163
|
-
|
|
162
|
+
default: l(() => [...t[5] || (t[5] = [
|
|
163
|
+
x(" Value ", -1)
|
|
164
164
|
])]),
|
|
165
165
|
_: 1
|
|
166
166
|
}, 16, ["modelValue", "onUpdate:modelValue"])
|
|
167
167
|
]),
|
|
168
168
|
_: 2
|
|
169
169
|
}, 1024)
|
|
170
|
-
], 64)) : e?.type === "oauth2" ? (
|
|
171
|
-
|
|
172
|
-
default:
|
|
173
|
-
Object.keys(e.flows).length > 1 ? (
|
|
170
|
+
], 64)) : e?.type === "oauth2" ? (a(), i(p, { key: 4 }, [
|
|
171
|
+
u(d(c), null, {
|
|
172
|
+
default: l(() => [
|
|
173
|
+
Object.keys(e.flows).length > 1 ? (a(), i("div", _, [
|
|
174
174
|
h("div", H, [
|
|
175
|
-
(
|
|
176
|
-
key:
|
|
177
|
-
class:
|
|
178
|
-
"!text-c-1 !rounded-none border-b-[1px] !border-current":
|
|
179
|
-
"!text-c-1 !rounded-none border-b-[1px] !border-current opacity-100":
|
|
175
|
+
(a(!0), i(p, null, C(e?.flows, (n, f, w) => (a(), i("button", {
|
|
176
|
+
key: f,
|
|
177
|
+
class: T(["floating-bg text-c-3 relative cursor-pointer border-b-[1px] border-transparent py-1 text-base font-medium", {
|
|
178
|
+
"!text-c-1 !rounded-none border-b-[1px] !border-current": r.layout !== "reference" && (s.value === f || w === 0 && !s.value),
|
|
179
|
+
"!text-c-1 !rounded-none border-b-[1px] !border-current opacity-100": r.layout === "reference" && (s.value === f || w === 0 && !s.value)
|
|
180
180
|
}]),
|
|
181
181
|
type: "button",
|
|
182
|
-
onClick: (
|
|
182
|
+
onClick: (K) => s.value = f
|
|
183
183
|
}, [
|
|
184
|
-
h("span", G,
|
|
184
|
+
h("span", G, A(f), 1)
|
|
185
185
|
], 10, W))), 128))
|
|
186
186
|
])
|
|
187
187
|
])) : b("", !0)
|
|
188
188
|
]),
|
|
189
189
|
_: 2
|
|
190
190
|
}, 1024),
|
|
191
|
-
(
|
|
192
|
-
|
|
191
|
+
(a(!0), i(p, null, C(e?.flows, (n, f, w) => (a(), i(p, { key: f }, [
|
|
192
|
+
s.value === f || w === 0 && !s.value ? (a(), k(E, y({
|
|
193
193
|
key: 0,
|
|
194
194
|
ref_for: !0
|
|
195
|
-
},
|
|
196
|
-
collection:
|
|
197
|
-
flow:
|
|
198
|
-
persistAuth:
|
|
195
|
+
}, m, {
|
|
196
|
+
collection: r.collection,
|
|
197
|
+
flow: n,
|
|
198
|
+
persistAuth: r.persistAuth,
|
|
199
199
|
scheme: e,
|
|
200
|
-
server:
|
|
201
|
-
workspace:
|
|
202
|
-
onAuthorized:
|
|
200
|
+
server: r.server,
|
|
201
|
+
workspace: r.workspace,
|
|
202
|
+
onAuthorized: t[0] || (t[0] = (K) => B("authorized"))
|
|
203
203
|
}), {
|
|
204
|
-
"oauth-actions":
|
|
205
|
-
|
|
204
|
+
"oauth-actions": l(() => [
|
|
205
|
+
M(o.$slots, "oauth-actions")
|
|
206
206
|
]),
|
|
207
207
|
_: 3
|
|
208
208
|
}, 16, ["collection", "flow", "persistAuth", "scheme", "server", "workspace"])) : b("", !0)
|
|
209
209
|
], 64))), 128))
|
|
210
|
-
], 64)) : e?.type === "openIdConnect" ? (
|
|
210
|
+
], 64)) : e?.type === "openIdConnect" ? (a(), i("div", {
|
|
211
211
|
key: 5,
|
|
212
|
-
class:
|
|
212
|
+
class: T(["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": r.layout === "reference" }])
|
|
213
213
|
}, " Coming soon ", 2)) : b("", !0)
|
|
214
214
|
], 64))), 128));
|
|
215
215
|
}
|