@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
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,90 @@
|
|
|
1
1
|
# @scalar/api-client
|
|
2
2
|
|
|
3
|
+
## 2.18.3
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
#### Updated Dependencies
|
|
8
|
+
|
|
9
|
+
- **@scalar/workspace-store@0.24.9**
|
|
10
|
+
- [#7751](https://github.com/scalar/scalar/pull/7751): fix: auth persistence
|
|
11
|
+
|
|
12
|
+
- **@scalar/helpers@0.2.8**
|
|
13
|
+
- [#7751](https://github.com/scalar/scalar/pull/7751): fix: auth persistence
|
|
14
|
+
|
|
15
|
+
- **@scalar/oas-utils@0.6.19**
|
|
16
|
+
|
|
17
|
+
- **@scalar/sidebar@0.7.12**
|
|
18
|
+
|
|
19
|
+
- **@scalar/components@0.16.22**
|
|
20
|
+
|
|
21
|
+
- **@scalar/import@0.4.45**
|
|
22
|
+
|
|
23
|
+
- **@scalar/json-magic@0.9.1**
|
|
24
|
+
|
|
25
|
+
- **@scalar/object-utils@1.2.22**
|
|
26
|
+
|
|
27
|
+
- **@scalar/postman-to-openapi@0.3.60**
|
|
28
|
+
|
|
29
|
+
- **@scalar/types@0.5.8**
|
|
30
|
+
|
|
31
|
+
- **@scalar/use-codemirror@0.13.16**
|
|
32
|
+
|
|
33
|
+
- **@scalar/openapi-parser@0.24.1**
|
|
34
|
+
|
|
35
|
+
- **@scalar/snippetz@0.6.5**
|
|
36
|
+
|
|
37
|
+
## 2.18.2
|
|
38
|
+
|
|
39
|
+
### Patch Changes
|
|
40
|
+
|
|
41
|
+
- [#7765](https://github.com/scalar/scalar/pull/7765): fix: remove unneeded export from internal types and values
|
|
42
|
+
- [#7728](https://github.com/scalar/scalar/pull/7728): fix: formBody handling in api client
|
|
43
|
+
- [#7765](https://github.com/scalar/scalar/pull/7765): fix: remove unused files
|
|
44
|
+
|
|
45
|
+
#### Updated Dependencies
|
|
46
|
+
|
|
47
|
+
- **@scalar/workspace-store@0.24.8**
|
|
48
|
+
- [#7728](https://github.com/scalar/scalar/pull/7728): fix: formBody handling in api client
|
|
49
|
+
|
|
50
|
+
- **@scalar/postman-to-openapi@0.3.59**
|
|
51
|
+
- [#7626](https://github.com/scalar/scalar/pull/7626): fix: remove `@scalar/oas-utils` unused dependency
|
|
52
|
+
|
|
53
|
+
- **@scalar/openapi-parser@0.24.0**
|
|
54
|
+
- [#7171](https://github.com/scalar/scalar/pull/7171): refactor: new validator class
|
|
55
|
+
|
|
56
|
+
- **@scalar/oas-utils@0.6.18**
|
|
57
|
+
|
|
58
|
+
- **@scalar/sidebar@0.7.11**
|
|
59
|
+
|
|
60
|
+
- **@scalar/components@0.16.21**
|
|
61
|
+
|
|
62
|
+
- **@scalar/use-codemirror@0.13.15**
|
|
63
|
+
|
|
64
|
+
## 2.18.1
|
|
65
|
+
|
|
66
|
+
### Patch Changes
|
|
67
|
+
|
|
68
|
+
- [#7744](https://github.com/scalar/scalar/pull/7744): fix: pass hideClientButton config into client modal
|
|
69
|
+
- [#7743](https://github.com/scalar/scalar/pull/7743): fix: complex auth
|
|
70
|
+
- [#7740](https://github.com/scalar/scalar/pull/7740): fix: filter out readonly properties from requestBody
|
|
71
|
+
- [#7742](https://github.com/scalar/scalar/pull/7742): feat: export auth component + proxy fix
|
|
72
|
+
|
|
73
|
+
#### Updated Dependencies
|
|
74
|
+
|
|
75
|
+
- **@scalar/workspace-store@0.24.7**
|
|
76
|
+
- [#7745](https://github.com/scalar/scalar/pull/7745): fix: add nested array support to references
|
|
77
|
+
|
|
78
|
+
- **@scalar/oas-utils@0.6.17**
|
|
79
|
+
|
|
80
|
+
- **@scalar/sidebar@0.7.10**
|
|
81
|
+
|
|
82
|
+
- **@scalar/components@0.16.20**
|
|
83
|
+
|
|
84
|
+
- **@scalar/postman-to-openapi@0.3.58**
|
|
85
|
+
|
|
86
|
+
- **@scalar/use-codemirror@0.13.14**
|
|
87
|
+
|
|
3
88
|
## 2.18.0
|
|
4
89
|
|
|
5
90
|
### Minor Changes
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { defineComponent as E, useId as I, ref as
|
|
1
|
+
import { defineComponent as E, useId as I, ref as s, watch as z, createElementBlock as L, openBlock as b, unref as n, createElementVNode as l, createVNode as u, normalizeStyle as U, createBlock as $, createCommentVNode as A, withCtx as M, toDisplayString as p } from "vue";
|
|
2
2
|
import { ScalarButton as H } from "@scalar/components";
|
|
3
3
|
import { REQUEST_METHODS as N } from "@scalar/helpers/http/http-info";
|
|
4
4
|
import { ScalarIconPlay as T } from "@scalar/icons";
|
|
@@ -22,62 +22,62 @@ const j = ["id"], F = { class: "address-bar-bg-states text-xxs group relative or
|
|
|
22
22
|
workspace: {}
|
|
23
23
|
},
|
|
24
24
|
emits: ["importCurl"],
|
|
25
|
-
setup(
|
|
26
|
-
const
|
|
27
|
-
|
|
25
|
+
setup(e) {
|
|
26
|
+
const c = I(), { requestMutators: f, events: d } = Q(), { layout: m } = W(), v = s(null), x = s(null), w = (t) => {
|
|
27
|
+
e.operation.path !== t && f.edit(e.operation.uid, "path", t);
|
|
28
28
|
};
|
|
29
29
|
z(
|
|
30
|
-
() =>
|
|
31
|
-
(
|
|
32
|
-
|
|
30
|
+
() => e.operation.path,
|
|
31
|
+
(t) => {
|
|
32
|
+
t && w(t);
|
|
33
33
|
}
|
|
34
34
|
);
|
|
35
|
-
const o =
|
|
35
|
+
const o = s(100), g = s(0), a = s(!1), i = s();
|
|
36
36
|
function k() {
|
|
37
|
-
|
|
37
|
+
a.value ? o.value -= (o.value - 15) / 60 : o.value -= g.value / 20, o.value <= 0 && (clearInterval(i.value), i.value = void 0, o.value = 100, a.value = !1);
|
|
38
38
|
}
|
|
39
39
|
function B() {
|
|
40
|
-
|
|
40
|
+
i.value || (a.value = !0, i.value = setInterval(k, 20));
|
|
41
41
|
}
|
|
42
42
|
function y() {
|
|
43
|
-
|
|
43
|
+
g.value = o.value, a.value = !1;
|
|
44
44
|
}
|
|
45
45
|
function C() {
|
|
46
|
-
clearInterval(
|
|
46
|
+
clearInterval(i.value), i.value = void 0, o.value = 100, a.value = !1;
|
|
47
47
|
}
|
|
48
|
-
d.requestStatus.on((
|
|
49
|
-
if (
|
|
48
|
+
d.requestStatus.on((t) => {
|
|
49
|
+
if (t === "start")
|
|
50
50
|
return B();
|
|
51
|
-
if (
|
|
51
|
+
if (t === "stop")
|
|
52
52
|
return y();
|
|
53
|
-
if (
|
|
53
|
+
if (t === "abort")
|
|
54
54
|
return C();
|
|
55
55
|
}), d.focusAddressBar.on(() => {
|
|
56
|
-
|
|
56
|
+
m === "modal" ? x.value?.$el?.focus() : v.value?.focus();
|
|
57
57
|
});
|
|
58
|
-
function R(
|
|
59
|
-
|
|
58
|
+
function R(t) {
|
|
59
|
+
f.edit(e.operation.uid, "method", t);
|
|
60
60
|
}
|
|
61
61
|
function q() {
|
|
62
|
-
const { method:
|
|
63
|
-
return N[
|
|
62
|
+
const { method: t } = e.operation;
|
|
63
|
+
return N[t].colorVar;
|
|
64
64
|
}
|
|
65
|
-
function
|
|
66
|
-
|
|
65
|
+
function h() {
|
|
66
|
+
a.value || (a.value = !0, d.executeRequest.emit({ requestUid: e.operation.uid }));
|
|
67
67
|
}
|
|
68
|
-
d.hotKeys.on((
|
|
69
|
-
|
|
68
|
+
d.hotKeys.on((t) => {
|
|
69
|
+
t?.focusAddressBar && v.value?.focus(), t?.executeRequest && h();
|
|
70
70
|
});
|
|
71
|
-
function S(
|
|
72
|
-
|
|
71
|
+
function S(t) {
|
|
72
|
+
f.edit(e.operation.uid, "path", t);
|
|
73
73
|
}
|
|
74
|
-
return (
|
|
75
|
-
id:
|
|
74
|
+
return (t, r) => (b(), L("div", {
|
|
75
|
+
id: n(c),
|
|
76
76
|
class: "scalar-address-bar order-last flex h-(--scalar-address-bar-height) w-full [--scalar-address-bar-height:32px] lg:order-none lg:w-auto"
|
|
77
77
|
}, [
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
78
|
+
l("div", F, [
|
|
79
|
+
l("div", G, [
|
|
80
|
+
l("div", {
|
|
81
81
|
class: "absolute top-0 left-0 z-[1002] h-full w-full",
|
|
82
82
|
style: U({
|
|
83
83
|
backgroundColor: `color-mix(in srgb, transparent 90%, ${q()})`,
|
|
@@ -85,32 +85,32 @@ const j = ["id"], F = { class: "address-bar-bg-states text-xxs group relative or
|
|
|
85
85
|
})
|
|
86
86
|
}, null, 4)
|
|
87
87
|
]),
|
|
88
|
-
|
|
88
|
+
l("div", J, [
|
|
89
89
|
u(O, {
|
|
90
|
-
isEditable:
|
|
90
|
+
isEditable: n(m) !== "modal",
|
|
91
91
|
isSquare: "",
|
|
92
92
|
method: e.operation.method,
|
|
93
93
|
teleport: "",
|
|
94
94
|
onChange: R
|
|
95
95
|
}, null, 8, ["isEditable", "method"])
|
|
96
96
|
]),
|
|
97
|
-
|
|
98
|
-
e.collection.servers.length ? (
|
|
97
|
+
l("div", X, [
|
|
98
|
+
e.collection.servers.length ? (b(), $(n(K), {
|
|
99
99
|
key: 0,
|
|
100
100
|
collection: e.collection,
|
|
101
101
|
layout: "client",
|
|
102
102
|
operation: e.operation,
|
|
103
103
|
server: e.server,
|
|
104
|
-
target:
|
|
104
|
+
target: n(c)
|
|
105
105
|
}, null, 8, ["collection", "operation", "server", "target"])) : A("", !0),
|
|
106
|
-
r[1] || (r[1] =
|
|
106
|
+
r[1] || (r[1] = l("div", { class: "fade-left" }, null, -1)),
|
|
107
107
|
u(D, {
|
|
108
108
|
ref_key: "addressBarRef",
|
|
109
|
-
ref:
|
|
109
|
+
ref: v,
|
|
110
110
|
"aria-label": "Path",
|
|
111
111
|
class: "min-w-fit outline-none",
|
|
112
112
|
disableCloseBrackets: "",
|
|
113
|
-
disabled:
|
|
113
|
+
disabled: n(m) === "modal",
|
|
114
114
|
disableEnter: "",
|
|
115
115
|
disableTabIndent: "",
|
|
116
116
|
emitOnBlur: !1,
|
|
@@ -121,33 +121,33 @@ const j = ["id"], F = { class: "address-bar-bg-states text-xxs group relative or
|
|
|
121
121
|
placeholder: e.server?.uid && e.collection.servers.includes(e.server.uid) ? "" : "Enter a URL or cURL command",
|
|
122
122
|
server: "",
|
|
123
123
|
workspace: e.workspace,
|
|
124
|
-
onCurl: r[0] || (r[0] = (V) =>
|
|
125
|
-
onSubmit:
|
|
124
|
+
onCurl: r[0] || (r[0] = (V) => t.$emit("importCurl", V)),
|
|
125
|
+
onSubmit: h,
|
|
126
126
|
"onUpdate:modelValue": S
|
|
127
127
|
}, null, 8, ["disabled", "envVariables", "environment", "modelValue", "placeholder", "workspace"]),
|
|
128
|
-
r[2] || (r[2] =
|
|
128
|
+
r[2] || (r[2] = l("div", { class: "fade-right" }, null, -1))
|
|
129
129
|
]),
|
|
130
130
|
u(P, {
|
|
131
131
|
operation: e.operation,
|
|
132
|
-
target:
|
|
132
|
+
target: n(c)
|
|
133
133
|
}, null, 8, ["operation", "target"]),
|
|
134
|
-
u(
|
|
134
|
+
u(n(H), {
|
|
135
135
|
ref_key: "sendButtonRef",
|
|
136
|
-
ref:
|
|
136
|
+
ref: x,
|
|
137
137
|
class: "z-context-plus relative h-auto shrink-0 overflow-hidden py-1 pr-2.5 pl-2 font-bold",
|
|
138
|
-
disabled:
|
|
139
|
-
onClick:
|
|
138
|
+
disabled: a.value,
|
|
139
|
+
onClick: h
|
|
140
140
|
}, {
|
|
141
141
|
default: M(() => [
|
|
142
|
-
|
|
143
|
-
u(
|
|
142
|
+
l("span", Y, [
|
|
143
|
+
u(n(T), {
|
|
144
144
|
class: "relative shrink-0",
|
|
145
145
|
size: "xs",
|
|
146
146
|
weight: "fill"
|
|
147
147
|
}),
|
|
148
|
-
r[3] || (r[3] =
|
|
148
|
+
r[3] || (r[3] = l("span", { class: "text-xxs hidden lg:flex" }, "Send", -1))
|
|
149
149
|
]),
|
|
150
|
-
|
|
150
|
+
l("span", Z, " Send " + p(e.operation.method) + " request to " + p(e.server?.url ?? "") + p(e.operation.path), 1)
|
|
151
151
|
]),
|
|
152
152
|
_: 1
|
|
153
153
|
}, 8, ["disabled"])
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { defineComponent as
|
|
1
|
+
import { defineComponent as x, computed as k, createBlock as n, openBlock as r, unref as e, withCtx as o, createVNode as i, createSlots as _, createCommentVNode as m, createElementVNode as s, normalizeStyle as y, createElementBlock as C, Fragment as S, renderList as b, toDisplayString as l, normalizeClass as H } from "vue";
|
|
2
2
|
import { Menu as q, MenuButton as B, MenuItems as M, MenuItem as w } from "@headlessui/vue";
|
|
3
3
|
import { ScalarFloating as z, ScalarIcon as I, ScalarFloatingBackdrop as F } from "@scalar/components";
|
|
4
4
|
import { httpStatusCodes as N } from "@scalar/oas-utils/helpers";
|
|
@@ -6,31 +6,31 @@ import { formatMs as R } from "../../libs/formatters.js";
|
|
|
6
6
|
import V from "../HttpMethod/HttpMethod.vue.js";
|
|
7
7
|
import { getStatusCodeColor as E } from "./httpStatusCodeColors.js";
|
|
8
8
|
import { useWorkspace as A } from "../../store/store.js";
|
|
9
|
-
const D = { class: "min-w-0" }, L = { class: "text-c-1 min-w-0 truncate" }, Q = /* @__PURE__ */
|
|
9
|
+
const D = { class: "min-w-0" }, L = { class: "text-c-1 min-w-0 truncate" }, Q = /* @__PURE__ */ x({
|
|
10
10
|
__name: "AddressBarHistory",
|
|
11
11
|
props: {
|
|
12
12
|
operation: {},
|
|
13
13
|
target: {}
|
|
14
14
|
},
|
|
15
|
-
setup(
|
|
16
|
-
const { requestHistory: p } = A(),
|
|
17
|
-
() => p.filter((
|
|
15
|
+
setup(u) {
|
|
16
|
+
const { requestHistory: p } = A(), c = k(
|
|
17
|
+
() => p.filter((a) => a.request.requestUid === u.operation.uid).slice().reverse()
|
|
18
18
|
);
|
|
19
|
-
function f(
|
|
19
|
+
function f(a) {
|
|
20
20
|
console.warn(
|
|
21
21
|
"Restoring from the request history doesn't work yet. Request History Item:",
|
|
22
|
-
|
|
22
|
+
a
|
|
23
23
|
);
|
|
24
24
|
}
|
|
25
|
-
return (
|
|
25
|
+
return (a, d) => (r(), n(e(q), { as: "div" }, {
|
|
26
26
|
default: o(({ open: h }) => [
|
|
27
27
|
i(e(z), {
|
|
28
28
|
offset: 0,
|
|
29
29
|
resize: "",
|
|
30
|
-
target:
|
|
30
|
+
target: u.target
|
|
31
31
|
}, _({
|
|
32
32
|
default: o(() => [
|
|
33
|
-
|
|
33
|
+
c.value?.length ? (r(), n(e(B), {
|
|
34
34
|
key: 0,
|
|
35
35
|
class: "address-bar-history-button z-context-plus text-c-3 focus:text-c-1 relative mr-1 rounded-lg p-1.5"
|
|
36
36
|
}, {
|
|
@@ -40,10 +40,10 @@ const D = { class: "min-w-0" }, L = { class: "text-c-1 min-w-0 truncate" }, Q =
|
|
|
40
40
|
size: "sm",
|
|
41
41
|
thickness: "2.25"
|
|
42
42
|
}),
|
|
43
|
-
|
|
43
|
+
d[0] || (d[0] = s("span", { class: "sr-only" }, "Request History", -1))
|
|
44
44
|
]),
|
|
45
45
|
_: 1
|
|
46
|
-
})) :
|
|
46
|
+
})) : m("", !0)
|
|
47
47
|
]),
|
|
48
48
|
_: 2
|
|
49
49
|
}, [
|
|
@@ -56,7 +56,7 @@ const D = { class: "min-w-0" }, L = { class: "text-c-1 min-w-0 truncate" }, Q =
|
|
|
56
56
|
style: y({ width: g })
|
|
57
57
|
}, {
|
|
58
58
|
default: o(() => [
|
|
59
|
-
(
|
|
59
|
+
(r(!0), C(S, null, b(c.value, (t, v) => (r(), n(e(w), {
|
|
60
60
|
key: t.timestamp,
|
|
61
61
|
as: "button",
|
|
62
62
|
class: "font-code ui-active:*:bg-b-2 text-c-2 contents text-sm font-medium *:flex *:h-8 *:cursor-pointer *:items-center *:rounded-none *:px-1.5 *:first:rounded-l *:last:rounded-r",
|
|
@@ -64,11 +64,11 @@ const D = { class: "min-w-0" }, L = { class: "text-c-1 min-w-0 truncate" }, Q =
|
|
|
64
64
|
onClick: (U) => f(t)
|
|
65
65
|
}, {
|
|
66
66
|
default: o(() => [
|
|
67
|
-
t.response.method ? (
|
|
67
|
+
t.response.method ? (r(), n(V, {
|
|
68
68
|
key: 0,
|
|
69
69
|
class: "text-[11px]",
|
|
70
70
|
method: t.response.method
|
|
71
|
-
}, null, 8, ["method"])) :
|
|
71
|
+
}, null, 8, ["method"])) : m("", !0),
|
|
72
72
|
s("div", D, [
|
|
73
73
|
s("div", L, l(t.response.path), 1)
|
|
74
74
|
]),
|
|
@@ -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/components/AddressBar/httpStatusCodeColors.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"httpStatusCodeColors.d.ts","sourceRoot":"","sources":["../../../src/components/AddressBar/httpStatusCodeColors.ts"],"names":[],"mappings":"AAmCA,eAAO,MAAM,kBAAkB,GAAI,YAAY,MAAM;;;;;;;;;;;;;;;;;;;;CAQpD,CAAA"}
|