@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,36 +1,3 @@
|
|
|
1
|
-
export declare const STATUS_CODES_COLORS: {
|
|
2
|
-
readonly 100: {
|
|
3
|
-
readonly color: "text-yellow";
|
|
4
|
-
};
|
|
5
|
-
readonly 200: {
|
|
6
|
-
readonly color: "text-green";
|
|
7
|
-
};
|
|
8
|
-
readonly 202: {
|
|
9
|
-
readonly color: "text-green";
|
|
10
|
-
};
|
|
11
|
-
readonly 300: {
|
|
12
|
-
readonly color: "text-blue";
|
|
13
|
-
};
|
|
14
|
-
readonly 304: {
|
|
15
|
-
readonly color: "text-blue";
|
|
16
|
-
};
|
|
17
|
-
readonly 400: {
|
|
18
|
-
readonly color: "text-red";
|
|
19
|
-
};
|
|
20
|
-
readonly 401: {
|
|
21
|
-
readonly color: "text-orange";
|
|
22
|
-
};
|
|
23
|
-
readonly 422: {
|
|
24
|
-
readonly color: "text-yellow";
|
|
25
|
-
};
|
|
26
|
-
readonly 423: {
|
|
27
|
-
readonly color: "text-purple";
|
|
28
|
-
};
|
|
29
|
-
readonly 505: {
|
|
30
|
-
readonly color: "text-orange";
|
|
31
|
-
};
|
|
32
|
-
};
|
|
33
|
-
export type StatusCode = keyof typeof STATUS_CODES_COLORS;
|
|
34
1
|
export declare const getStatusCodeColor: (statusCode: number) => {
|
|
35
2
|
readonly color: "text-yellow";
|
|
36
3
|
} | {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"httpStatusCodeColors.d.ts","sourceRoot":"","sources":["../../../../../src/v2/blocks/scalar-address-bar-block/components/httpStatusCodeColors.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"httpStatusCodeColors.d.ts","sourceRoot":"","sources":["../../../../../src/v2/blocks/scalar-address-bar-block/components/httpStatusCodeColors.ts"],"names":[],"mappings":"AAmCA,eAAO,MAAM,kBAAkB,GAAI,YAAY,MAAM;;;;;;;;;;;;;;;;;;;;CAQpD,CAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"AuthSelector.vue.d.ts","sourceRoot":"","sources":["../../../../../src/v2/blocks/scalar-auth-selector-block/components/AuthSelector.vue"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"AuthSelector.vue.d.ts","sourceRoot":"","sources":["../../../../../src/v2/blocks/scalar-auth-selector-block/components/AuthSelector.vue"],"names":[],"mappings":"AAkTA,OAAO,EAML,KAAK,IAAI,EAEV,MAAM,oBAAoB,CAAA;AAE3B,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,gCAAgC,CAAA;AAGvE,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,kCAAkC,CAAA;AAChE,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,2EAA2E,CAAA;AACnH,OAAO,KAAK,EACV,eAAe,EAEf,YAAY,EACb,MAAM,8DAA8D,CAAA;AAKrE,OAAO,EAIL,KAAK,oBAAoB,EAC1B,MAAM,gEAAgE,CAAA;AAKvE,KAAK,WAAW,GAAG;IACjB,WAAW,EAAE,kBAAkB,CAAA;IAC/B,QAAQ,EAAE,iBAAiB,CAAA;IAC3B,gDAAgD;IAChD,UAAU,CAAC,EAAE,OAAO,CAAA;IACpB,2DAA2D;IAC3D,QAAQ,CAAC,EAAE,OAAO,CAAA;IAClB,IAAI,EAAE,QAAQ,CAAA;IACd,QAAQ,EAAE,MAAM,CAAA;IAChB,oBAAoB,EAAE,eAAe,CAAC,UAAU,CAAC,CAAA;IACjD,eAAe,EAAE,WAAW,CAAC,eAAe,CAAC,YAAY,CAAC,CAAC,CAAC,iBAAiB,CAAC,CAAA;IAC9E,gBAAgB,EAAE,eAAe,CAAC,4BAA4B,CAAC,CAAA;IAC/D,MAAM,EAAE,YAAY,GAAG,IAAI,CAAA;IAC3B,KAAK,EAAE,MAAM,CAAA;CACd,CAAC;;;cA+BqC,IAAI;cAAQ,MAAM;;;;;AA6bzD,wBAOG"}
|
|
@@ -1,13 +1,14 @@
|
|
|
1
|
-
import { defineComponent as U, useId as $, ref as
|
|
2
|
-
import { useModal as N, ScalarComboboxMultiselect as T, ScalarButton as
|
|
3
|
-
import { ScalarIconCaretDown as L, ScalarIconTrash as
|
|
4
|
-
import { getResolvedRef as
|
|
5
|
-
import G from "
|
|
6
|
-
import
|
|
7
|
-
import {
|
|
8
|
-
import W from "
|
|
9
|
-
import X from "
|
|
10
|
-
|
|
1
|
+
import { defineComponent as U, useId as $, ref as x, computed as p, createBlock as S, openBlock as c, unref as s, withCtx as r, createVNode as m, createCommentVNode as b, createElementBlock as y, Fragment as g, createElementVNode as u, createTextVNode as k, toDisplayString as v, withModifiers as q, normalizeClass as M } from "vue";
|
|
2
|
+
import { useModal as N, ScalarComboboxMultiselect as T, ScalarButton as j, ScalarListboxCheckbox as z, ScalarIconButton as E } from "@scalar/components";
|
|
3
|
+
import { ScalarIconCaretDown as L, ScalarIconTrash as P } from "@scalar/icons";
|
|
4
|
+
import { getResolvedRef as F } from "@scalar/workspace-store/helpers/get-resolved-ref";
|
|
5
|
+
import { unpackProxyObject as G } from "@scalar/workspace-store/helpers/unpack-proxy";
|
|
6
|
+
import H from "./DeleteRequestAuthModal.vue.js";
|
|
7
|
+
import { isAuthOptional as J } from "../helpers/is-auth-optional.js";
|
|
8
|
+
import { getSecuritySchemeOptions as K, formatComplexScheme as Q, formatScheme as W } from "../helpers/security-scheme.js";
|
|
9
|
+
import X from "./RequestAuthDataTable.vue.js";
|
|
10
|
+
import Y from "../../../components/layout/CollapsibleSection.vue.js";
|
|
11
|
+
const Z = ["id"], _ = { class: "min-w-0 flex-1 truncate" }, ue = /* @__PURE__ */ U({
|
|
11
12
|
__name: "AuthSelector",
|
|
12
13
|
props: {
|
|
13
14
|
environment: {},
|
|
@@ -22,84 +23,84 @@ const Y = ["id"], Z = { class: "min-w-0 flex-1 truncate" }, re = /* @__PURE__ */
|
|
|
22
23
|
server: {},
|
|
23
24
|
title: {}
|
|
24
25
|
},
|
|
25
|
-
setup(
|
|
26
|
-
const
|
|
27
|
-
if (!
|
|
26
|
+
setup(e, { expose: I }) {
|
|
27
|
+
const O = $(), C = x(null), B = x(!1), d = N(), o = x(null), h = p(() => {
|
|
28
|
+
if (!e.securityRequirements?.length)
|
|
28
29
|
return null;
|
|
29
|
-
const
|
|
30
|
+
const l = J(e.securityRequirements);
|
|
30
31
|
return {
|
|
31
|
-
icon:
|
|
32
|
-
text:
|
|
32
|
+
icon: l ? "Unlock" : "Lock",
|
|
33
|
+
text: l ? "Optional" : "Required"
|
|
33
34
|
};
|
|
34
|
-
}), R =
|
|
35
|
-
() =>
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
35
|
+
}), R = p(
|
|
36
|
+
() => K(
|
|
37
|
+
e.securityRequirements ?? [],
|
|
38
|
+
e.securitySchemes ?? {},
|
|
39
|
+
e.isReadOnly
|
|
39
40
|
)
|
|
40
|
-
), i =
|
|
41
|
-
const
|
|
42
|
-
return
|
|
43
|
-
const
|
|
44
|
-
if (
|
|
41
|
+
), i = p(() => {
|
|
42
|
+
const l = e.selectedSecurity?.selectedSchemes;
|
|
43
|
+
return l?.length ? l.flatMap((t) => {
|
|
44
|
+
const n = Object.keys(t);
|
|
45
|
+
if (n.length === 0)
|
|
45
46
|
return [];
|
|
46
|
-
if (
|
|
47
|
-
return
|
|
48
|
-
const
|
|
49
|
-
if (!
|
|
47
|
+
if (n.length > 1)
|
|
48
|
+
return Q(t);
|
|
49
|
+
const a = n[0];
|
|
50
|
+
if (!a)
|
|
50
51
|
return [];
|
|
51
|
-
const
|
|
52
|
-
return
|
|
53
|
-
name:
|
|
54
|
-
type:
|
|
52
|
+
const f = F(e.securitySchemes?.[a]);
|
|
53
|
+
return f ? W({
|
|
54
|
+
name: a,
|
|
55
|
+
type: f.type,
|
|
55
56
|
value: t
|
|
56
57
|
}) : [];
|
|
57
58
|
}) : [];
|
|
58
|
-
}), w = (
|
|
59
|
-
B.value &&
|
|
60
|
-
}, A = (
|
|
61
|
-
const t =
|
|
62
|
-
name:
|
|
63
|
-
scheme:
|
|
59
|
+
}), w = (l) => {
|
|
60
|
+
B.value && l.stopPropagation(), C.value?.$el.click();
|
|
61
|
+
}, A = (l) => {
|
|
62
|
+
const t = l.filter((a) => a.payload === void 0).map((a) => G(a.value, { depth: 2 })), n = l.filter((a) => a.payload !== void 0).map((a) => ({
|
|
63
|
+
name: a.label,
|
|
64
|
+
scheme: a.payload
|
|
64
65
|
}));
|
|
65
|
-
|
|
66
|
+
e.eventBus.emit("auth:update:selected-security-schemes", {
|
|
66
67
|
selectedRequirements: t,
|
|
67
|
-
newSchemes:
|
|
68
|
-
meta:
|
|
68
|
+
newSchemes: n,
|
|
69
|
+
meta: e.meta
|
|
69
70
|
});
|
|
70
|
-
}, D = (
|
|
71
|
-
o.value = { label:
|
|
71
|
+
}, D = (l) => {
|
|
72
|
+
o.value = { label: l.label, payload: l.value }, d.show();
|
|
72
73
|
}, V = () => {
|
|
73
|
-
o.value && (
|
|
74
|
+
o.value && (e.eventBus.emit("auth:delete:security-scheme", {
|
|
74
75
|
names: Object.keys(o.value.payload)
|
|
75
76
|
}), o.value = null, d.hide());
|
|
76
77
|
};
|
|
77
78
|
return I({
|
|
78
|
-
authIndicator:
|
|
79
|
+
authIndicator: h,
|
|
79
80
|
selectedSchemeOptions: i,
|
|
80
81
|
schemeOptions: R
|
|
81
|
-
}), (
|
|
82
|
+
}), (l, t) => (c(), S(s(Y), {
|
|
82
83
|
class: "group/params relative",
|
|
83
84
|
isStatic: e.isStatic,
|
|
84
85
|
itemCount: i.value.length,
|
|
85
|
-
"onUpdate:modelValue": t[1] || (t[1] = (
|
|
86
|
+
"onUpdate:modelValue": t[1] || (t[1] = (n) => B.value = n)
|
|
86
87
|
}, {
|
|
87
|
-
title:
|
|
88
|
+
title: r(() => [
|
|
88
89
|
u("div", {
|
|
89
|
-
id:
|
|
90
|
+
id: s(O),
|
|
90
91
|
class: "inline-flex items-center gap-0.5 leading-[20px]"
|
|
91
92
|
}, [
|
|
92
93
|
u("span", null, v(e.title), 1),
|
|
93
|
-
|
|
94
|
+
h.value ? (c(), y("span", {
|
|
94
95
|
key: 0,
|
|
95
|
-
class: M(["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":
|
|
96
|
+
class: M(["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": h.value.text === "Required" }]),
|
|
96
97
|
"data-testid": "auth-indicator",
|
|
97
98
|
onClick: w
|
|
98
|
-
}, v(
|
|
99
|
-
], 8,
|
|
99
|
+
}, v(h.value.text), 3)) : b("", !0)
|
|
100
|
+
], 8, Z)
|
|
100
101
|
]),
|
|
101
|
-
actions:
|
|
102
|
-
m(
|
|
102
|
+
actions: r(() => [
|
|
103
|
+
m(s(T), {
|
|
103
104
|
class: "w-72 text-xs",
|
|
104
105
|
modelValue: i.value,
|
|
105
106
|
multiple: "",
|
|
@@ -109,41 +110,41 @@ const Y = ["id"], Z = { class: "min-w-0 flex-1 truncate" }, re = /* @__PURE__ */
|
|
|
109
110
|
onDelete: D,
|
|
110
111
|
"onUpdate:modelValue": A
|
|
111
112
|
}, {
|
|
112
|
-
option:
|
|
113
|
-
m(
|
|
113
|
+
option: r(({ option: n, selected: a }) => [
|
|
114
|
+
m(s(z), {
|
|
114
115
|
multiselect: "",
|
|
115
|
-
selected:
|
|
116
|
+
selected: a
|
|
116
117
|
}, null, 8, ["selected"]),
|
|
117
|
-
u("div",
|
|
118
|
-
|
|
118
|
+
u("div", _, v(n.label), 1),
|
|
119
|
+
n.isDeletable ?? !e.isReadOnly ? (c(), S(s(E), {
|
|
119
120
|
key: 0,
|
|
120
121
|
class: "-m-0.5 shrink-0 p-0.5 opacity-0 group-hover/item:opacity-100",
|
|
121
|
-
icon:
|
|
122
|
-
label: `Delete ${
|
|
122
|
+
icon: s(P),
|
|
123
|
+
label: `Delete ${n.label}`,
|
|
123
124
|
size: "xs",
|
|
124
|
-
onClick: q((
|
|
125
|
-
}, null, 8, ["icon", "label", "onClick"])) :
|
|
125
|
+
onClick: q((f) => D(n), ["stop"])
|
|
126
|
+
}, null, 8, ["icon", "label", "onClick"])) : b("", !0)
|
|
126
127
|
]),
|
|
127
|
-
default:
|
|
128
|
-
m(
|
|
128
|
+
default: r(() => [
|
|
129
|
+
m(s(j), {
|
|
129
130
|
ref_key: "comboboxButtonRef",
|
|
130
|
-
ref:
|
|
131
|
-
"aria-describedby":
|
|
131
|
+
ref: C,
|
|
132
|
+
"aria-describedby": s(O),
|
|
132
133
|
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",
|
|
133
134
|
variant: "ghost"
|
|
134
135
|
}, {
|
|
135
|
-
default:
|
|
136
|
-
i.value.length === 1 ? (
|
|
136
|
+
default: r(() => [
|
|
137
|
+
i.value.length === 1 ? (c(), y(g, { key: 0 }, [
|
|
137
138
|
t[2] || (t[2] = u("span", { class: "sr-only" }, "Selected Auth Type:", -1)),
|
|
138
139
|
k(" " + v(i.value[0]?.label), 1)
|
|
139
|
-
], 64)) : i.value.length > 1 ? (
|
|
140
|
+
], 64)) : i.value.length > 1 ? (c(), y(g, { key: 1 }, [
|
|
140
141
|
t[3] || (t[3] = k(" Multiple ", -1)),
|
|
141
142
|
t[4] || (t[4] = u("span", { class: "sr-only" }, "Auth Types Selected", -1))
|
|
142
|
-
], 64)) : (
|
|
143
|
+
], 64)) : (c(), y(g, { key: 2 }, [
|
|
143
144
|
t[5] || (t[5] = u("span", { class: "sr-only" }, "Select", -1)),
|
|
144
145
|
t[6] || (t[6] = k(" Auth Type ", -1))
|
|
145
146
|
], 64)),
|
|
146
|
-
m(
|
|
147
|
+
m(s(L), {
|
|
147
148
|
class: "size-3 shrink-0 transition-transform duration-100 group-aria-expanded/combobox-button:rotate-180",
|
|
148
149
|
weight: "bold"
|
|
149
150
|
})
|
|
@@ -154,8 +155,8 @@ const Y = ["id"], Z = { class: "min-w-0 flex-1 truncate" }, re = /* @__PURE__ */
|
|
|
154
155
|
_: 1
|
|
155
156
|
}, 8, ["modelValue", "options"])
|
|
156
157
|
]),
|
|
157
|
-
default:
|
|
158
|
-
m(
|
|
158
|
+
default: r(() => [
|
|
159
|
+
m(X, {
|
|
159
160
|
activeAuthIndex: e.selectedSecurity?.selectedIndex ?? 0,
|
|
160
161
|
environment: e.environment,
|
|
161
162
|
eventBus: e.eventBus,
|
|
@@ -166,19 +167,19 @@ const Y = ["id"], Z = { class: "min-w-0 flex-1 truncate" }, re = /* @__PURE__ */
|
|
|
166
167
|
selectedSchemeOptions: i.value,
|
|
167
168
|
server: e.server
|
|
168
169
|
}, null, 8, ["activeAuthIndex", "environment", "eventBus", "isStatic", "meta", "proxyUrl", "securitySchemes", "selectedSchemeOptions", "server"]),
|
|
169
|
-
o.value ? (
|
|
170
|
+
o.value ? (c(), S(H, {
|
|
170
171
|
key: 0,
|
|
171
172
|
label: o.value.label,
|
|
172
173
|
scheme: o.value,
|
|
173
|
-
state:
|
|
174
|
-
onClose: t[0] || (t[0] = (
|
|
174
|
+
state: s(d),
|
|
175
|
+
onClose: t[0] || (t[0] = (n) => s(d).hide()),
|
|
175
176
|
onDelete: V
|
|
176
|
-
}, null, 8, ["label", "scheme", "state"])) :
|
|
177
|
+
}, null, 8, ["label", "scheme", "state"])) : b("", !0)
|
|
177
178
|
]),
|
|
178
179
|
_: 1
|
|
179
180
|
}, 8, ["isStatic", "itemCount"]));
|
|
180
181
|
}
|
|
181
182
|
});
|
|
182
183
|
export {
|
|
183
|
-
|
|
184
|
+
ue as default
|
|
184
185
|
};
|
|
@@ -1,36 +1,36 @@
|
|
|
1
|
-
import { defineComponent as m, createBlock as
|
|
2
|
-
import { ScalarModal as
|
|
3
|
-
const
|
|
1
|
+
import { defineComponent as m, createBlock as f, openBlock as p, unref as o, withCtx as n, createElementVNode as s, toDisplayString as a, createVNode as c, createTextVNode as i } from "vue";
|
|
2
|
+
import { ScalarModal as x, ScalarButton as r } from "@scalar/components";
|
|
3
|
+
const h = { class: "text-c-2 mb-4 text-sm leading-normal" }, b = { class: "flex justify-between gap-2" }, _ = /* @__PURE__ */ m({
|
|
4
4
|
__name: "DeleteRequestAuthModal",
|
|
5
5
|
props: {
|
|
6
6
|
state: {},
|
|
7
7
|
label: {}
|
|
8
8
|
},
|
|
9
9
|
emits: ["close", "delete"],
|
|
10
|
-
setup(
|
|
10
|
+
setup(t, { emit: u }) {
|
|
11
11
|
const l = u, d = () => {
|
|
12
12
|
l("delete");
|
|
13
13
|
};
|
|
14
|
-
return (
|
|
14
|
+
return (y, e) => (p(), f(o(x), {
|
|
15
15
|
size: "xxs",
|
|
16
16
|
state: t.state,
|
|
17
17
|
title: "Delete Security Scheme"
|
|
18
18
|
}, {
|
|
19
19
|
default: n(() => [
|
|
20
|
-
s("p",
|
|
20
|
+
s("p", h, " This cannot be undone. You're about to delete the " + a(t.label) + " security scheme from the collection. ", 1),
|
|
21
21
|
s("div", b, [
|
|
22
|
-
|
|
22
|
+
c(o(r), {
|
|
23
23
|
class: "flex h-8 cursor-pointer items-center gap-1.5 px-3 shadow-none focus:outline-none",
|
|
24
24
|
type: "button",
|
|
25
25
|
variant: "outlined",
|
|
26
|
-
onClick: e[0] || (e[0] = (
|
|
26
|
+
onClick: e[0] || (e[0] = (S) => l("close"))
|
|
27
27
|
}, {
|
|
28
28
|
default: n(() => [...e[1] || (e[1] = [
|
|
29
29
|
i(" Cancel ", -1)
|
|
30
30
|
])]),
|
|
31
31
|
_: 1
|
|
32
32
|
}),
|
|
33
|
-
|
|
33
|
+
c(o(r), {
|
|
34
34
|
class: "flex h-8 cursor-pointer items-center gap-1.5 px-3 shadow-none focus:outline-none",
|
|
35
35
|
type: "submit",
|
|
36
36
|
onClick: d
|
|
@@ -47,5 +47,5 @@ const x = { class: "text-c-2 mb-4 text-sm leading-normal" }, b = { class: "flex
|
|
|
47
47
|
}
|
|
48
48
|
});
|
|
49
49
|
export {
|
|
50
|
-
|
|
50
|
+
_ as default
|
|
51
51
|
};
|