@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,13 +1,13 @@
|
|
|
1
|
-
import { defineComponent as
|
|
1
|
+
import { defineComponent as h, computed as n, onMounted as v, watch as y, createBlock as f, createElementBlock as x, openBlock as c, unref as u, createElementVNode as S } from "vue";
|
|
2
2
|
import { getResolvedRef as l } from "@scalar/workspace-store/helpers/get-resolved-ref";
|
|
3
3
|
import { combineParams as k } from "./helpers/combine-params.js";
|
|
4
4
|
import { getOperationHeader as g } from "./helpers/get-operation-header.js";
|
|
5
|
-
import { getSelectedServer as
|
|
6
|
-
import
|
|
7
|
-
const
|
|
5
|
+
import { getSelectedServer as B } from "./helpers/get-selected-server.js";
|
|
6
|
+
import C from "../../blocks/operation-block/OperationBlock.vue.js";
|
|
7
|
+
const w = {
|
|
8
8
|
key: 1,
|
|
9
9
|
class: "flex h-full w-full items-center justify-center"
|
|
10
|
-
}, N = {},
|
|
10
|
+
}, N = {}, V = /* @__PURE__ */ h({
|
|
11
11
|
...N,
|
|
12
12
|
__name: "Operation",
|
|
13
13
|
props: {
|
|
@@ -22,38 +22,39 @@ const C = {
|
|
|
22
22
|
securitySchemes: {},
|
|
23
23
|
workspaceStore: {},
|
|
24
24
|
activeWorkspace: {},
|
|
25
|
-
plugins: {}
|
|
25
|
+
plugins: {},
|
|
26
|
+
hideClientButton: { type: Boolean }
|
|
26
27
|
},
|
|
27
|
-
setup(
|
|
28
|
-
const o =
|
|
29
|
-
if (!
|
|
28
|
+
setup(e) {
|
|
29
|
+
const o = n(() => {
|
|
30
|
+
if (!e.path || !e.method)
|
|
30
31
|
return null;
|
|
31
|
-
const
|
|
32
|
-
if (!
|
|
32
|
+
const t = l(e.document?.paths?.[e.path]?.[e.method]);
|
|
33
|
+
if (!t)
|
|
33
34
|
return null;
|
|
34
|
-
const a = l(
|
|
35
|
+
const a = l(e.document?.paths?.[e.path]);
|
|
35
36
|
if (!a)
|
|
36
|
-
return
|
|
37
|
-
const
|
|
38
|
-
return { ...
|
|
39
|
-
}),
|
|
40
|
-
...
|
|
41
|
-
...
|
|
42
|
-
]),
|
|
43
|
-
|
|
44
|
-
typeof
|
|
45
|
-
}),
|
|
37
|
+
return t;
|
|
38
|
+
const r = k(a.parameters, t.parameters);
|
|
39
|
+
return { ...t, parameters: r };
|
|
40
|
+
}), i = n(() => [
|
|
41
|
+
...e.workspaceStore.workspace?.["x-scalar-cookies"] ?? [],
|
|
42
|
+
...e.document?.["x-scalar-cookies"] ?? []
|
|
43
|
+
]), m = n(() => B(e.document));
|
|
44
|
+
v(() => {
|
|
45
|
+
typeof e.document?.["x-scalar-selected-server"] > "u" && e.document?.servers?.[0]?.url && e.eventBus.emit("server:update:selected", { url: e.document.servers[0].url });
|
|
46
|
+
}), y(
|
|
46
47
|
o,
|
|
47
|
-
(
|
|
48
|
-
|
|
49
|
-
operation:
|
|
48
|
+
(t) => {
|
|
49
|
+
t && e.path && e.method && !g({
|
|
50
|
+
operation: t,
|
|
50
51
|
name: "Accept",
|
|
51
52
|
type: "header"
|
|
52
|
-
}) &&
|
|
53
|
+
}) && e.eventBus.emit("operation:add:parameter", {
|
|
53
54
|
type: "header",
|
|
54
|
-
meta: { method:
|
|
55
|
+
meta: { method: e.method, path: e.path, exampleKey: e.exampleName ?? "default" },
|
|
55
56
|
payload: {
|
|
56
|
-
|
|
57
|
+
name: "Accept",
|
|
57
58
|
value: "*/*",
|
|
58
59
|
isDisabled: !1
|
|
59
60
|
}
|
|
@@ -61,24 +62,25 @@ const C = {
|
|
|
61
62
|
},
|
|
62
63
|
{ immediate: !0 }
|
|
63
64
|
);
|
|
64
|
-
const
|
|
65
|
+
const s = n(() => e.document?.["x-scalar-set-operation-security"] ? {
|
|
65
66
|
type: "operation",
|
|
66
|
-
path:
|
|
67
|
-
method:
|
|
67
|
+
path: e.path ?? "",
|
|
68
|
+
method: e.method ?? "get"
|
|
68
69
|
} : {
|
|
69
70
|
type: "document"
|
|
70
|
-
}), d = "2.18.
|
|
71
|
-
return (
|
|
71
|
+
}), d = "2.18.3";
|
|
72
|
+
return (t, a) => e.path && e.method && e.exampleName && o.value ? (c(), f(u(C), {
|
|
72
73
|
key: 0,
|
|
73
74
|
appVersion: u(d),
|
|
74
|
-
authMeta:
|
|
75
|
+
authMeta: s.value,
|
|
75
76
|
documentSecurity: e.document?.security ?? [],
|
|
76
77
|
documentSelectedSecurity: e.document?.["x-scalar-selected-security"],
|
|
77
78
|
documentUrl: e.document?.["x-scalar-original-source-url"],
|
|
78
79
|
environment: e.environment,
|
|
79
80
|
eventBus: e.eventBus,
|
|
80
81
|
exampleKey: e.exampleName,
|
|
81
|
-
globalCookies:
|
|
82
|
+
globalCookies: i.value,
|
|
83
|
+
hideClientButton: e.hideClientButton,
|
|
82
84
|
history: [],
|
|
83
85
|
httpClients: e.workspaceStore.config["x-scalar-reference-config"]?.httpClients,
|
|
84
86
|
layout: e.layout,
|
|
@@ -89,16 +91,16 @@ const C = {
|
|
|
89
91
|
proxyUrl: e.workspaceStore.workspace["x-scalar-active-proxy"] ?? "",
|
|
90
92
|
securitySchemes: e.securitySchemes,
|
|
91
93
|
selectedClient: e.workspaceStore.workspace["x-scalar-default-client"],
|
|
92
|
-
server:
|
|
94
|
+
server: m.value,
|
|
93
95
|
servers: e.document?.servers ?? [],
|
|
94
96
|
setOperationSecurity: e.document?.["x-scalar-set-operation-security"] ?? !1,
|
|
95
97
|
totalPerformedRequests: 0,
|
|
96
|
-
"onUpdate:servers": a[0] || (a[0] = (
|
|
97
|
-
}, null, 8, ["appVersion", "authMeta", "documentSecurity", "documentSelectedSecurity", "documentUrl", "environment", "eventBus", "exampleKey", "globalCookies", "httpClients", "layout", "method", "operation", "path", "plugins", "proxyUrl", "securitySchemes", "selectedClient", "server", "servers", "setOperationSecurity"])) : (
|
|
98
|
+
"onUpdate:servers": a[0] || (a[0] = (r) => e.eventBus.emit("ui:route:page", { name: "document.servers" }))
|
|
99
|
+
}, null, 8, ["appVersion", "authMeta", "documentSecurity", "documentSelectedSecurity", "documentUrl", "environment", "eventBus", "exampleKey", "globalCookies", "hideClientButton", "httpClients", "layout", "method", "operation", "path", "plugins", "proxyUrl", "securitySchemes", "selectedClient", "server", "servers", "setOperationSecurity"])) : (c(), x("div", w, [...a[1] || (a[1] = [
|
|
98
100
|
S("span", { class: "text-c-3" }, "Select an operation to view details", -1)
|
|
99
101
|
])]));
|
|
100
102
|
}
|
|
101
103
|
});
|
|
102
104
|
export {
|
|
103
|
-
|
|
105
|
+
V as default
|
|
104
106
|
};
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
import { useModal as b, ScalarIconButton as g, ScalarSidebarSearchButton as
|
|
3
|
-
import { isMacOS as
|
|
4
|
-
import { ScalarIconMagnifyingGlass as
|
|
5
|
-
import
|
|
6
|
-
const
|
|
1
|
+
import { defineComponent as p, ref as k, watch as h, nextTick as S, onMounted as B, onBeforeUnmount as w, createElementBlock as r, openBlock as s, Fragment as d, createBlock as m, createVNode as v, unref as l, normalizeClass as M, withCtx as f, createElementVNode as a, createTextVNode as C, toDisplayString as K } from "vue";
|
|
2
|
+
import { useModal as b, ScalarIconButton as g, ScalarSidebarSearchButton as x } from "@scalar/components";
|
|
3
|
+
import { isMacOS as y } from "@scalar/helpers/general/is-mac-os";
|
|
4
|
+
import { ScalarIconMagnifyingGlass as E } from "@scalar/icons";
|
|
5
|
+
import H from "./SearchModal.vue.js";
|
|
6
|
+
const D = /* @__PURE__ */ p({
|
|
7
7
|
__name: "SearchButton",
|
|
8
8
|
props: {
|
|
9
9
|
forceIcon: { type: Boolean },
|
|
@@ -12,60 +12,60 @@ const O = /* @__PURE__ */ y({
|
|
|
12
12
|
documents: {},
|
|
13
13
|
eventBus: {}
|
|
14
14
|
},
|
|
15
|
-
setup(
|
|
16
|
-
const
|
|
17
|
-
(
|
|
15
|
+
setup(n) {
|
|
16
|
+
const i = k(), o = b(), u = (t) => {
|
|
17
|
+
(y() ? t.metaKey : t.ctrlKey) && t.key === n.searchHotKey && (t.preventDefault(), t.stopPropagation(), o.open ? o.hide() : o.show());
|
|
18
18
|
};
|
|
19
19
|
h(
|
|
20
|
-
() =>
|
|
21
|
-
async (
|
|
22
|
-
!
|
|
20
|
+
() => o.open,
|
|
21
|
+
async (t, e) => {
|
|
22
|
+
!t && e && (await S(), i.value?.$el.focus());
|
|
23
23
|
}
|
|
24
|
-
), B(() => window.addEventListener("keydown",
|
|
25
|
-
function
|
|
26
|
-
|
|
24
|
+
), B(() => window.addEventListener("keydown", u)), w(() => window.removeEventListener("keydown", u));
|
|
25
|
+
function c() {
|
|
26
|
+
o.show();
|
|
27
27
|
}
|
|
28
|
-
return (
|
|
29
|
-
|
|
28
|
+
return (t, e) => (s(), r(d, null, [
|
|
29
|
+
n.forceIcon ? (s(), m(l(g), {
|
|
30
30
|
key: 0,
|
|
31
|
-
icon:
|
|
31
|
+
icon: l(E),
|
|
32
32
|
label: "Search",
|
|
33
|
-
onClick:
|
|
34
|
-
}, null, 8, ["icon"])) : (
|
|
33
|
+
onClick: c
|
|
34
|
+
}, null, 8, ["icon"])) : (s(), m(l(x), {
|
|
35
35
|
key: 1,
|
|
36
36
|
ref_key: "button",
|
|
37
|
-
ref:
|
|
38
|
-
class: M(["w-full",
|
|
39
|
-
onClick:
|
|
37
|
+
ref: i,
|
|
38
|
+
class: M(["w-full", t.$attrs.class]),
|
|
39
|
+
onClick: c
|
|
40
40
|
}, {
|
|
41
|
-
shortcut:
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
], 64)) : (
|
|
46
|
-
|
|
47
|
-
|
|
41
|
+
shortcut: f(() => [
|
|
42
|
+
l(y)() ? (s(), r(d, { key: 0 }, [
|
|
43
|
+
e[0] || (e[0] = a("span", { class: "sr-only" }, "Command", -1)),
|
|
44
|
+
e[1] || (e[1] = a("span", { "aria-hidden": "true" }, "⌘", -1))
|
|
45
|
+
], 64)) : (s(), r(d, { key: 1 }, [
|
|
46
|
+
e[2] || (e[2] = a("span", { class: "sr-only" }, "CTRL", -1)),
|
|
47
|
+
e[3] || (e[3] = a("span", { "aria-hidden": "true" }, "⌃", -1))
|
|
48
48
|
], 64)),
|
|
49
|
-
C(" " + K(
|
|
49
|
+
C(" " + K(n.searchHotKey), 1)
|
|
50
50
|
]),
|
|
51
|
-
default:
|
|
52
|
-
|
|
53
|
-
|
|
51
|
+
default: f(() => [
|
|
52
|
+
e[4] || (e[4] = a("span", { class: "sr-only" }, "Open Search", -1)),
|
|
53
|
+
e[5] || (e[5] = a("span", {
|
|
54
54
|
"aria-hidden": "true",
|
|
55
55
|
class: "sidebar-search-placeholder"
|
|
56
56
|
}, " Search ", -1))
|
|
57
57
|
]),
|
|
58
58
|
_: 1
|
|
59
59
|
}, 8, ["class"])),
|
|
60
|
-
v(
|
|
61
|
-
documents:
|
|
62
|
-
eventBus:
|
|
63
|
-
hideModels:
|
|
64
|
-
modalState:
|
|
60
|
+
v(H, {
|
|
61
|
+
documents: n.documents,
|
|
62
|
+
eventBus: n.eventBus,
|
|
63
|
+
hideModels: n.hideModels,
|
|
64
|
+
modalState: l(o)
|
|
65
65
|
}, null, 8, ["documents", "eventBus", "hideModels", "modalState"])
|
|
66
66
|
], 64));
|
|
67
67
|
}
|
|
68
68
|
});
|
|
69
69
|
export {
|
|
70
|
-
|
|
70
|
+
D as default
|
|
71
71
|
};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { defineComponent as $, ref as g, watch as
|
|
1
|
+
import { defineComponent as $, ref as g, watch as x, computed as I, createBlock as w, openBlock as c, unref as l, withKeys as d, withModifiers as u, withCtx as m, createElementVNode as r, createVNode as b, isRef as k, createElementBlock as B, Fragment as V, renderList as C, createTextVNode as N, toDisplayString as K } from "vue";
|
|
2
2
|
import { ScalarModal as M, ScalarSearchInput as q, ScalarSearchResultList as D } from "@scalar/components";
|
|
3
3
|
import { nanoid as E } from "nanoid";
|
|
4
4
|
import { useSearchIndex as L } from "../hooks/use-search-index.js";
|
|
@@ -13,84 +13,84 @@ const P = {
|
|
|
13
13
|
documents: {},
|
|
14
14
|
eventBus: {}
|
|
15
15
|
},
|
|
16
|
-
setup(
|
|
17
|
-
const v = E(),
|
|
18
|
-
|
|
19
|
-
() =>
|
|
20
|
-
(
|
|
21
|
-
|
|
16
|
+
setup(o) {
|
|
17
|
+
const v = E(), f = `${v}-search-result`, p = `${v}-search-instructions`, { query: i, results: s } = L(() => o.documents), a = g(void 0);
|
|
18
|
+
x(
|
|
19
|
+
() => o.modalState.open,
|
|
20
|
+
(n) => {
|
|
21
|
+
n && (i.value = "");
|
|
22
22
|
}
|
|
23
23
|
);
|
|
24
|
-
const S = (
|
|
25
|
-
const e =
|
|
26
|
-
typeof a.value == "number" ? a.value = (a.value + e +
|
|
24
|
+
const S = (n) => {
|
|
25
|
+
const e = n === "up" ? -1 : 1, t = s.value.length;
|
|
26
|
+
typeof a.value == "number" ? a.value = (a.value + e + t) % t : a.value = e === -1 ? t - 1 : 0;
|
|
27
27
|
};
|
|
28
|
-
function h(
|
|
29
|
-
if (typeof
|
|
28
|
+
function h(n) {
|
|
29
|
+
if (typeof n != "number" || !s.value[n])
|
|
30
30
|
return;
|
|
31
|
-
const e =
|
|
32
|
-
|
|
31
|
+
const e = s.value[n];
|
|
32
|
+
o.modalState.hide(), o.eventBus.emit("scroll-to:nav-item", { id: e.item.id });
|
|
33
33
|
}
|
|
34
|
-
const R =
|
|
35
|
-
const
|
|
36
|
-
return
|
|
34
|
+
const R = I(() => {
|
|
35
|
+
const n = s.value[a.value ?? -1];
|
|
36
|
+
return n ? `search-result-${n.item.id}` : void 0;
|
|
37
37
|
});
|
|
38
|
-
return (
|
|
38
|
+
return (n, e) => (c(), w(l(M), {
|
|
39
39
|
"aria-label": "Reference Search",
|
|
40
|
-
state:
|
|
40
|
+
state: o.modalState,
|
|
41
41
|
variant: "search",
|
|
42
|
-
onKeydown: e[5] || (e[5] = d(
|
|
42
|
+
onKeydown: e[5] || (e[5] = d(u((t) => o.modalState.hide(), ["stop"]), ["esc"]))
|
|
43
43
|
}, {
|
|
44
44
|
default: m(() => [
|
|
45
|
-
|
|
45
|
+
r("div", P, [
|
|
46
46
|
b(l(q), {
|
|
47
|
-
modelValue: l(
|
|
48
|
-
"onUpdate:modelValue": e[0] || (e[0] = (
|
|
47
|
+
modelValue: l(i),
|
|
48
|
+
"onUpdate:modelValue": e[0] || (e[0] = (t) => k(i) ? i.value = t : null),
|
|
49
49
|
"aria-activedescendant": R.value,
|
|
50
50
|
"aria-autocomplete": "list",
|
|
51
|
-
"aria-controls":
|
|
52
|
-
"aria-describedby":
|
|
51
|
+
"aria-controls": f,
|
|
52
|
+
"aria-describedby": p,
|
|
53
53
|
role: "combobox",
|
|
54
|
-
onBlur: e[1] || (e[1] = (
|
|
54
|
+
onBlur: e[1] || (e[1] = (t) => a.value = void 0),
|
|
55
55
|
onKeydown: [
|
|
56
|
-
e[2] || (e[2] = d(
|
|
57
|
-
e[3] || (e[3] = d(
|
|
58
|
-
e[4] || (e[4] = d(
|
|
56
|
+
e[2] || (e[2] = d(u((t) => S("down"), ["stop", "prevent"]), ["down"])),
|
|
57
|
+
e[3] || (e[3] = d(u(() => h(a.value), ["stop", "prevent"]), ["enter"])),
|
|
58
|
+
e[4] || (e[4] = d(u((t) => S("up"), ["stop", "prevent"]), ["up"]))
|
|
59
59
|
]
|
|
60
60
|
}, null, 8, ["modelValue", "aria-activedescendant"])
|
|
61
61
|
]),
|
|
62
62
|
b(l(D), {
|
|
63
|
-
id:
|
|
63
|
+
id: f,
|
|
64
64
|
"aria-label": "Reference Search Results",
|
|
65
65
|
class: "custom-scroll p-1 pt-0",
|
|
66
|
-
noResults: !l(
|
|
66
|
+
noResults: !l(s).length
|
|
67
67
|
}, {
|
|
68
68
|
query: m(() => [
|
|
69
|
-
N(K(l(
|
|
69
|
+
N(K(l(i)), 1)
|
|
70
70
|
]),
|
|
71
71
|
default: m(() => [
|
|
72
|
-
(c(!0), B(V, null, C(l(
|
|
73
|
-
id: `search-result-${
|
|
74
|
-
key:
|
|
72
|
+
(c(!0), B(V, null, C(l(s), (t, y) => (c(), w(F, {
|
|
73
|
+
id: `search-result-${t.item.id}`,
|
|
74
|
+
key: t.refIndex,
|
|
75
75
|
isSelected: a.value === y,
|
|
76
|
-
result:
|
|
77
|
-
onClick:
|
|
76
|
+
result: t,
|
|
77
|
+
onClick: u(() => h(y), ["prevent"])
|
|
78
78
|
}, null, 8, ["id", "isSelected", "result", "onClick"]))), 128))
|
|
79
79
|
]),
|
|
80
80
|
_: 1
|
|
81
81
|
}, 8, ["noResults"]),
|
|
82
|
-
|
|
83
|
-
id:
|
|
82
|
+
r("div", {
|
|
83
|
+
id: p,
|
|
84
84
|
class: "ref-search-meta"
|
|
85
85
|
}, [...e[6] || (e[6] = [
|
|
86
|
-
|
|
86
|
+
r("span", {
|
|
87
87
|
"aria-hidden": "true",
|
|
88
88
|
class: "contents"
|
|
89
89
|
}, [
|
|
90
|
-
|
|
91
|
-
|
|
90
|
+
r("span", null, "↑↓ Navigate"),
|
|
91
|
+
r("span", null, "⏎ Select")
|
|
92
92
|
], -1),
|
|
93
|
-
|
|
93
|
+
r("span", { class: "sr-only" }, " Press up arrow / down arrow to navigate, enter to select, type to filter results ", -1)
|
|
94
94
|
])])
|
|
95
95
|
]),
|
|
96
96
|
_: 1
|
|
@@ -1,48 +1,48 @@
|
|
|
1
|
-
import { defineComponent as
|
|
1
|
+
import { defineComponent as y, createBlock as f, openBlock as s, unref as c, createSlots as g, withCtx as l, createElementVNode as t, createElementBlock as o, createCommentVNode as r, toDisplayString as i, normalizeClass as h, createTextVNode as a, Fragment as m, createVNode as x } from "vue";
|
|
2
2
|
import { ScalarSearchResultItem as S } from "@scalar/components";
|
|
3
|
-
import { ScalarIconTag as
|
|
4
|
-
import { HttpMethod as
|
|
5
|
-
const
|
|
3
|
+
import { ScalarIconTag as p, ScalarIconTerminalWindow as N, ScalarIconTextAlignLeft as T } from "@scalar/icons";
|
|
4
|
+
import { HttpMethod as k } from "@scalar/sidebar";
|
|
5
|
+
const B = { class: "flex min-w-0 flex-col gap-0.5" }, C = {
|
|
6
6
|
key: 0,
|
|
7
7
|
class: "text-c-3 truncate text-xs font-medium"
|
|
8
|
-
},
|
|
8
|
+
}, D = { class: "sr-only" }, E = { class: "inline-flex items-center gap-1" }, I = { class: "sr-only" }, v = /* @__PURE__ */ y({
|
|
9
9
|
__name: "SearchResult",
|
|
10
10
|
props: {
|
|
11
11
|
id: {},
|
|
12
12
|
isSelected: { type: Boolean },
|
|
13
13
|
result: {}
|
|
14
14
|
},
|
|
15
|
-
setup(
|
|
15
|
+
setup(e) {
|
|
16
16
|
const d = {
|
|
17
|
-
heading:
|
|
18
|
-
operation:
|
|
19
|
-
tag:
|
|
17
|
+
heading: T,
|
|
18
|
+
operation: N,
|
|
19
|
+
tag: p
|
|
20
20
|
}, u = {
|
|
21
21
|
heading: "Heading",
|
|
22
22
|
operation: "Operation",
|
|
23
23
|
tag: "Tag"
|
|
24
24
|
};
|
|
25
|
-
return (
|
|
25
|
+
return (R, n) => (s(), f(c(S), {
|
|
26
26
|
id: e.id,
|
|
27
27
|
icon: d[e.result.item.type],
|
|
28
28
|
selected: e.isSelected
|
|
29
|
-
},
|
|
30
|
-
default:
|
|
31
|
-
t("div",
|
|
32
|
-
e.result.item.documentName ? (
|
|
29
|
+
}, g({
|
|
30
|
+
default: l(() => [
|
|
31
|
+
t("div", B, [
|
|
32
|
+
e.result.item.documentName ? (s(), o("span", C, i(e.result.item.documentName), 1)) : r("", !0),
|
|
33
33
|
t("span", {
|
|
34
|
-
class:
|
|
34
|
+
class: h({
|
|
35
35
|
"text-decoration-line": e.result.item.entry.type === "operation" && e.result.item.entry.isDeprecated
|
|
36
36
|
})
|
|
37
37
|
}, [
|
|
38
|
-
t("span",
|
|
39
|
-
|
|
40
|
-
e.result.item.entry.type === "operation" && e.result.item.entry.isDeprecated ? (
|
|
41
|
-
|
|
42
|
-
], 64)) :
|
|
38
|
+
t("span", D, [
|
|
39
|
+
a(i(u[e.result.item.type]) + ": ", 1),
|
|
40
|
+
e.result.item.entry.type === "operation" && e.result.item.entry.isDeprecated ? (s(), o(m, { key: 0 }, [
|
|
41
|
+
a(" (Deprecated) ")
|
|
42
|
+
], 64)) : r("", !0)
|
|
43
43
|
]),
|
|
44
|
-
|
|
45
|
-
|
|
44
|
+
a(" " + i(e.result.item.title) + " ", 1),
|
|
45
|
+
n[0] || (n[0] = t("span", { class: "sr-only" }, ",", -1))
|
|
46
46
|
], 2)
|
|
47
47
|
])
|
|
48
48
|
]),
|
|
@@ -50,25 +50,25 @@ const C = { class: "flex min-w-0 flex-col gap-0.5" }, D = {
|
|
|
50
50
|
}, [
|
|
51
51
|
e.result.item.type === "operation" ? {
|
|
52
52
|
name: "description",
|
|
53
|
-
fn:
|
|
54
|
-
t("span",
|
|
55
|
-
e.result.item.type === "operation" ? (
|
|
56
|
-
|
|
53
|
+
fn: l(() => [
|
|
54
|
+
t("span", E, [
|
|
55
|
+
e.result.item.type === "operation" ? (s(), o(m, { key: 0 }, [
|
|
56
|
+
x(c(k), {
|
|
57
57
|
"aria-hidden": "true",
|
|
58
58
|
method: e.result.item.method ?? "get"
|
|
59
59
|
}, null, 8, ["method"]),
|
|
60
|
-
t("span",
|
|
61
|
-
], 64)) :
|
|
62
|
-
|
|
63
|
-
|
|
60
|
+
t("span", I, " HTTP Method: " + i(e.result.item.method ?? "get"), 1)
|
|
61
|
+
], 64)) : r("", !0),
|
|
62
|
+
n[1] || (n[1] = t("span", { class: "sr-only" }, "Path: ", -1)),
|
|
63
|
+
a(" " + i(e.result.item.path), 1)
|
|
64
64
|
])
|
|
65
65
|
]),
|
|
66
66
|
key: "0"
|
|
67
67
|
} : e.result.item.description ? {
|
|
68
68
|
name: "description",
|
|
69
|
-
fn:
|
|
70
|
-
|
|
71
|
-
|
|
69
|
+
fn: l(() => [
|
|
70
|
+
n[2] || (n[2] = t("span", { class: "sr-only" }, "Description: ", -1)),
|
|
71
|
+
a(" " + i(e.result.item.description), 1)
|
|
72
72
|
]),
|
|
73
73
|
key: "1"
|
|
74
74
|
} : void 0
|
|
@@ -76,5 +76,5 @@ const C = { class: "flex min-w-0 flex-col gap-0.5" }, D = {
|
|
|
76
76
|
}
|
|
77
77
|
});
|
|
78
78
|
export {
|
|
79
|
-
|
|
79
|
+
v as default
|
|
80
80
|
};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type { TraversedEntry } from '@scalar/workspace-store/schemas/navigation';
|
|
2
2
|
export type EntryType = 'operation' | 'heading' | 'tag';
|
|
3
|
-
|
|
3
|
+
type BaseFuse = {
|
|
4
4
|
id: string;
|
|
5
5
|
type: EntryType;
|
|
6
6
|
documentName: string;
|
|
@@ -8,17 +8,18 @@ export type BaseFuse = {
|
|
|
8
8
|
title: string;
|
|
9
9
|
description: string;
|
|
10
10
|
};
|
|
11
|
-
|
|
11
|
+
type OperationFuse = BaseFuse & {
|
|
12
12
|
type: 'operation';
|
|
13
13
|
method: string;
|
|
14
14
|
path: string;
|
|
15
15
|
operationId?: string;
|
|
16
16
|
};
|
|
17
|
-
|
|
17
|
+
type HeadingFuse = BaseFuse & {
|
|
18
18
|
type: 'heading';
|
|
19
19
|
};
|
|
20
|
-
|
|
20
|
+
type TagFuse = BaseFuse & {
|
|
21
21
|
type: 'tag';
|
|
22
22
|
};
|
|
23
23
|
export type FuseData = OperationFuse | HeadingFuse | TagFuse;
|
|
24
|
+
export {};
|
|
24
25
|
//# sourceMappingURL=types.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../src/v2/features/search/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,4CAA4C,CAAA;AAChF,MAAM,MAAM,SAAS,GAAG,WAAW,GAAG,SAAS,GAAG,KAAK,CAAA;AAEvD,
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../src/v2/features/search/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,4CAA4C,CAAA;AAChF,MAAM,MAAM,SAAS,GAAG,WAAW,GAAG,SAAS,GAAG,KAAK,CAAA;AAEvD,KAAK,QAAQ,GAAG;IACd,EAAE,EAAE,MAAM,CAAA;IACV,IAAI,EAAE,SAAS,CAAA;IACf,YAAY,EAAE,MAAM,CAAA;IACpB,KAAK,EAAE,cAAc,CAAA;IACrB,KAAK,EAAE,MAAM,CAAA;IACb,WAAW,EAAE,MAAM,CAAA;CACpB,CAAA;AAED,KAAK,aAAa,GAAG,QAAQ,GAAG;IAC9B,IAAI,EAAE,WAAW,CAAA;IACjB,MAAM,EAAE,MAAM,CAAA;IACd,IAAI,EAAE,MAAM,CAAA;IACZ,WAAW,CAAC,EAAE,MAAM,CAAA;CACrB,CAAA;AAED,KAAK,WAAW,GAAG,QAAQ,GAAG;IAC5B,IAAI,EAAE,SAAS,CAAA;CAChB,CAAA;AAED,KAAK,OAAO,GAAG,QAAQ,GAAG;IACxB,IAAI,EAAE,KAAK,CAAA;CACZ,CAAA;AAED,MAAM,MAAM,QAAQ,GAAG,aAAa,GAAG,WAAW,GAAG,OAAO,CAAA"}
|