@scalar/api-client 2.2.45 → 2.2.47
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 +51 -0
- package/dist/components/AddressBar/AddressBar.vue.d.ts +1 -1
- package/dist/components/AddressBar/AddressBar.vue.js +2 -2
- package/dist/components/AddressBar/AddressBar.vue2.js +1 -2
- package/dist/components/AddressBar/AddressBarHistory.vue.d.ts.map +1 -1
- package/dist/components/AddressBar/AddressBarHistory.vue.js +2 -2
- package/dist/components/AddressBar/AddressBarHistory.vue2.js +35 -30
- package/dist/components/AddressBar/index.d.ts +1 -1
- package/dist/components/CodeInput/CodeInput.vue.d.ts +5 -5
- package/dist/components/CodeInput/CodeInput.vue.d.ts.map +1 -1
- package/dist/components/CodeInput/CodeInput.vue.js +2 -2
- package/dist/components/CodeInput/CodeInput.vue2.js +66 -60
- package/dist/components/CodeInput/codeVariableWidget.d.ts +5 -5
- package/dist/components/CodeInput/codeVariableWidget.d.ts.map +1 -1
- package/dist/components/CodeInput/codeVariableWidget.js +2 -3
- package/dist/components/CommandPalette/CommandActionForm.vue.d.ts +4 -4
- package/dist/components/CommandPalette/CommandActionForm.vue.d.ts.map +1 -1
- package/dist/components/CommandPalette/CommandActionForm.vue.js +10 -10
- package/dist/components/CommandPalette/CommandActionInput.vue.d.ts +2 -2
- package/dist/components/CommandPalette/CommandActionInput.vue.js +1 -1
- package/dist/components/CommandPalette/CommandPaletteCollection.vue.d.ts +2 -2
- package/dist/components/CommandPalette/CommandPaletteExample.vue.d.ts +2 -2
- package/dist/components/CommandPalette/CommandPaletteExample.vue.d.ts.map +1 -1
- package/dist/components/CommandPalette/CommandPaletteExample.vue.js +46 -40
- package/dist/components/CommandPalette/CommandPaletteImport.vue.d.ts +2 -2
- package/dist/components/CommandPalette/CommandPaletteRequest.vue.d.ts +2 -2
- package/dist/components/CommandPalette/CommandPaletteServer.vue.d.ts +2 -2
- package/dist/components/CommandPalette/CommandPaletteTag.vue.d.ts +2 -2
- package/dist/components/CommandPalette/CommandPaletteWorkspace.vue.d.ts +2 -2
- package/dist/components/CommandPalette/TheCommandPalette.vue.d.ts +14 -14
- package/dist/components/CommandPalette/WatchModeToggle.vue.d.ts +1 -1
- package/dist/components/CommandPalette/WatchModeToggle.vue.js +1 -1
- package/dist/components/CommandPalette/index.d.ts +1 -1
- package/dist/components/ContextBar.vue.d.ts +1 -1
- package/dist/components/DataTable/DataTable.vue.d.ts.map +1 -1
- package/dist/components/DataTable/DataTableCell.vue.d.ts.map +1 -1
- package/dist/components/DataTable/DataTableCheckbox.vue.d.ts +1 -1
- package/dist/components/DataTable/DataTableCheckbox.vue.js +6 -6
- package/dist/components/DataTable/DataTableInput.vue.d.ts +6 -6
- package/dist/components/DataTable/DataTableInput.vue.d.ts.map +1 -1
- package/dist/components/DataTable/DataTableInput.vue.js +4 -4
- package/dist/components/DataTable/DataTableInput.vue2.js +22 -23
- package/dist/components/DataTable/DataTableInputSelect.vue.d.ts +3 -3
- package/dist/components/DataTable/DataTableInputSelect.vue.d.ts.map +1 -1
- package/dist/components/DataTable/DataTableInputSelect.vue.js +39 -39
- package/dist/components/DataTable/DataTableText.vue.d.ts.map +1 -1
- package/dist/components/DataTable/index.d.ts +8 -8
- package/dist/components/EmptyState.vue.d.ts.map +1 -1
- package/dist/components/EmptyState.vue.js +2 -2
- package/dist/components/EmptyState.vue2.js +13 -13
- package/dist/components/Form/Form.vue.d.ts.map +1 -1
- package/dist/components/HelpfulLink.vue.d.ts.map +1 -1
- package/dist/components/HttpMethod/HttpMethod.vue.d.ts +1 -1
- package/dist/components/HttpMethod/index.d.ts +1 -1
- package/dist/components/IconSelector.vue.d.ts +1 -1
- package/dist/components/IconSelector.vue.d.ts.map +1 -1
- package/dist/components/ImportCollection/DropEventListener.vue.d.ts +1 -1
- package/dist/components/ImportCollection/ImportCollectionModal.vue.d.ts +1 -1
- package/dist/components/ImportCollection/ImportNowButton.vue.d.ts +1 -1
- package/dist/components/ImportCollection/PasteEventListener.vue.d.ts +1 -1
- package/dist/components/ImportCollection/UrlQueryParameterChecker.vue.d.ts +1 -1
- package/dist/components/ImportCollection/hooks/useUrlPrefetcher.d.ts +2 -2
- package/dist/components/ImportCollection/index.d.ts +1 -1
- package/dist/components/ImportCurl/ImportCurlModal.vue.d.ts +3 -3
- package/dist/components/ScreenReader.vue.d.ts.map +1 -1
- package/dist/components/Search/useSearch.d.ts +4 -2
- package/dist/components/Search/useSearch.d.ts.map +1 -1
- package/dist/components/Search/useSearch.js +63 -56
- package/dist/components/Search/useSearch.test.d.ts +2 -0
- package/dist/components/Search/useSearch.test.d.ts.map +1 -0
- package/dist/components/Server/ServerDropdown.test.d.ts +2 -0
- package/dist/components/Server/ServerDropdown.test.d.ts.map +1 -0
- package/dist/components/Server/ServerDropdownItem.vue.d.ts +1 -1
- package/dist/components/Server/ServerDropdownItem.vue.d.ts.map +1 -1
- package/dist/components/Server/ServerDropdownItem.vue.js +1 -1
- package/dist/components/Server/ServerDropdownItem.vue2.js +27 -28
- package/dist/components/Server/ServerVariablesForm.vue.d.ts +2 -2
- package/dist/components/Server/ServerVariablesForm.vue.d.ts.map +1 -1
- package/dist/components/Server/ServerVariablesSelect.vue.d.ts +2 -2
- package/dist/components/Server/ServerVariablesSelect.vue.d.ts.map +1 -1
- package/dist/components/Server/ServerVariablesTextbox.vue.d.ts +2 -2
- package/dist/components/Server/ServerVariablesTextbox.vue.d.ts.map +1 -1
- package/dist/components/Server/ServerVariablesTextbox.vue.js +9 -9
- package/dist/components/Server/index.d.ts +2 -2
- package/dist/components/SideNav/SideNav.vue.d.ts.map +1 -1
- package/dist/components/SideNav/SideNav.vue.js +19 -19
- package/dist/components/SideNav/SideNavLink.vue.d.ts.map +1 -1
- package/dist/components/SideNav/SideNavLink.vue.js +11 -11
- package/dist/components/SideNav/SideNavRouterLink.vue.d.ts +1 -1
- package/dist/components/SideNav/SideNavRouterLink.vue.d.ts.map +1 -1
- package/dist/components/SideNav/SideNavRouterLink.vue.js +19 -13
- package/dist/components/Sidebar/Actions/DeleteSidebarListElement.vue.d.ts +3 -3
- package/dist/components/Sidebar/Actions/DeleteSidebarListElement.vue.d.ts.map +1 -1
- package/dist/components/Sidebar/Actions/EditSidebarListCollection.vue.d.ts +2 -2
- package/dist/components/Sidebar/Actions/EditSidebarListElement.vue.d.ts +2 -2
- package/dist/components/Sidebar/Actions/SidebarListElementForm.vue.d.ts +2 -2
- package/dist/components/Sidebar/Actions/SidebarListElementForm.vue.d.ts.map +1 -1
- package/dist/components/Sidebar/Sidebar.vue.d.ts.map +1 -1
- package/dist/components/Sidebar/Sidebar.vue.js +1 -1
- package/dist/components/Sidebar/Sidebar.vue2.js +5 -5
- package/dist/components/Sidebar/SidebarButton.vue.d.ts.map +1 -1
- package/dist/components/Sidebar/SidebarListElement.vue.d.ts +3 -3
- package/dist/components/Sidebar/SidebarListElement.vue.js +1 -1
- package/dist/components/Sidebar/SidebarListElement.vue2.js +9 -9
- package/dist/components/Sidebar/SidebarListElementActions.vue.d.ts +3 -3
- package/dist/components/Sidebar/SidebarListElementActions.vue.d.ts.map +1 -1
- package/dist/components/Sidebar/SidebarToggle.vue.d.ts +1 -1
- package/dist/components/Sidebar/index.d.ts +1 -1
- package/dist/components/TopNav/TopNav.vue.d.ts.map +1 -1
- package/dist/components/TopNav/TopNav.vue.js +74 -73
- package/dist/components/TopNav/TopNavItem.vue.d.ts +5 -5
- package/dist/components/ViewLayout/ViewLayoutCollapse.vue.d.ts.map +1 -1
- package/dist/components/ViewLayout/ViewLayoutSection.vue.d.ts.map +1 -1
- package/dist/components/ViewLayout/ViewLayoutSection.vue.js +3 -3
- package/dist/components/index.d.ts +3 -3
- package/dist/hooks/index.d.ts +5 -4
- package/dist/hooks/index.d.ts.map +1 -1
- package/dist/hooks/index.js +4 -2
- package/dist/hooks/useResponseBody.d.ts +18 -0
- package/dist/hooks/useResponseBody.d.ts.map +1 -0
- package/dist/hooks/useResponseBody.js +28 -0
- package/dist/hooks/useResponseBody.test.d.ts +2 -0
- package/dist/hooks/useResponseBody.test.d.ts.map +1 -0
- package/dist/index.d.ts +4 -4
- package/dist/layouts/App/ApiClientApp.vue.d.ts +2 -2
- package/dist/layouts/App/create-api-client-app.d.ts +106 -66
- package/dist/layouts/App/create-api-client-app.d.ts.map +1 -1
- package/dist/layouts/App/create-api-client-app.test.d.ts +2 -0
- package/dist/layouts/App/create-api-client-app.test.d.ts.map +1 -0
- package/dist/layouts/App/index.d.ts +2 -2
- package/dist/layouts/Modal/create-api-client-modal.d.ts +215 -135
- package/dist/layouts/Modal/create-api-client-modal.d.ts.map +1 -1
- package/dist/layouts/Modal/create-api-client-modal.test.d.ts +2 -0
- package/dist/layouts/Modal/create-api-client-modal.test.d.ts.map +1 -0
- package/dist/layouts/Modal/index.d.ts +2 -2
- package/dist/layouts/Web/create-api-client-web.d.ts +106 -66
- package/dist/layouts/Web/create-api-client-web.d.ts.map +1 -1
- package/dist/layouts/Web/create-api-client-web.test.d.ts +2 -0
- package/dist/layouts/Web/create-api-client-web.test.d.ts.map +1 -0
- package/dist/layouts/Web/index.d.ts +2 -2
- package/dist/libs/create-client.d.ts +106 -66
- package/dist/libs/create-client.d.ts.map +1 -1
- package/dist/libs/create-client.js +56 -57
- package/dist/libs/env-helpers.test.d.ts +2 -0
- package/dist/libs/env-helpers.test.d.ts.map +1 -0
- package/dist/libs/environment-parser.d.ts +1 -1
- package/dist/libs/event-bus.test.d.ts +2 -0
- package/dist/libs/event-bus.test.d.ts.map +1 -0
- package/dist/libs/extractAttachmentFilename.test.d.ts +2 -0
- package/dist/libs/extractAttachmentFilename.test.d.ts.map +1 -0
- package/dist/libs/find-request.test.d.ts +2 -0
- package/dist/libs/find-request.test.d.ts.map +1 -0
- package/dist/libs/getOpenApiDocumentDetails.d.ts +1 -1
- package/dist/libs/getOpenApiDocumentDetails.d.ts.map +1 -1
- package/dist/libs/hot-keys.d.ts +1 -1
- package/dist/libs/importers/curl.js +1 -1
- package/dist/libs/importers/curl.test.d.ts +2 -0
- package/dist/libs/importers/curl.test.d.ts.map +1 -0
- package/dist/libs/importers/index.d.ts +1 -1
- package/dist/libs/index.d.ts +16 -16
- package/dist/libs/local-storage.d.ts +1 -1
- package/dist/libs/normalize-headers.test.d.ts +2 -0
- package/dist/libs/normalize-headers.test.d.ts.map +1 -0
- package/dist/libs/parse-curl.test.d.ts +2 -0
- package/dist/libs/parse-curl.test.d.ts.map +1 -0
- package/dist/libs/send-request/build-request-security.d.ts.map +1 -1
- package/dist/libs/send-request/build-request-security.js +13 -12
- package/dist/libs/send-request/build-request-security.test.d.ts +2 -0
- package/dist/libs/send-request/build-request-security.test.d.ts.map +1 -0
- package/dist/libs/send-request/create-fetch-auth.test.d.ts +2 -0
- package/dist/libs/send-request/create-fetch-auth.test.d.ts.map +1 -0
- package/dist/libs/send-request/create-fetch-body.test.d.ts +2 -0
- package/dist/libs/send-request/create-fetch-body.test.d.ts.map +1 -0
- package/dist/libs/send-request/create-fetch-headers.test.d.ts +2 -0
- package/dist/libs/send-request/create-fetch-headers.test.d.ts.map +1 -0
- package/dist/libs/send-request/create-fetch-query-params.test.d.ts +2 -0
- package/dist/libs/send-request/create-fetch-query-params.test.d.ts.map +1 -0
- package/dist/libs/send-request/create-request-operation.d.ts +4 -4
- package/dist/libs/send-request/create-request-operation.d.ts.map +1 -1
- package/dist/libs/send-request/create-request-operation.js +55 -51
- package/dist/libs/send-request/create-request-operation.test.d.ts +171 -0
- package/dist/libs/send-request/create-request-operation.test.d.ts.map +1 -0
- package/dist/libs/send-request/decode-buffer.test.d.ts +2 -0
- package/dist/libs/send-request/decode-buffer.test.d.ts.map +1 -0
- package/dist/libs/send-request/index.d.ts +2 -2
- package/dist/libs/send-request/set-request-cookies.d.ts +1 -1
- package/dist/libs/send-request/set-request-cookies.d.ts.map +1 -1
- package/dist/libs/send-request/set-request-cookies.test.d.ts +2 -0
- package/dist/libs/send-request/set-request-cookies.test.d.ts.map +1 -0
- package/dist/libs/string-template.test.d.ts +2 -0
- package/dist/libs/string-template.test.d.ts.map +1 -0
- package/dist/router.d.ts +1 -1
- package/dist/routes.d.ts +27 -27
- package/dist/routes.js +4 -4
- package/dist/routes.test.d.ts +2 -0
- package/dist/routes.test.d.ts.map +1 -0
- package/dist/store/active-entities.d.ts +10 -6
- package/dist/store/active-entities.d.ts.map +1 -1
- package/dist/store/collections.d.ts +1 -1
- package/dist/store/collections.d.ts.map +1 -1
- package/dist/store/collections.js +17 -14
- package/dist/store/collections.test.d.ts +2 -0
- package/dist/store/collections.test.d.ts.map +1 -0
- package/dist/store/events.d.ts +7 -7
- package/dist/store/import-spec.d.ts +1 -1
- package/dist/store/index.d.ts +2 -2
- package/dist/store/request-example.d.ts +52 -52
- package/dist/store/request-example.d.ts.map +1 -1
- package/dist/store/request.test.d.ts +2 -0
- package/dist/store/request.test.d.ts.map +1 -0
- package/dist/store/requests.d.ts +1 -1
- package/dist/store/router-params.d.ts +1 -1
- package/dist/store/store.d.ts +103 -63
- package/dist/store/store.d.ts.map +1 -1
- package/dist/store/store.js +1 -1
- package/dist/store/workspace.d.ts +44 -4
- package/dist/store/workspace.d.ts.map +1 -1
- package/dist/style.css +1 -1
- package/dist/views/Components/CodeSnippet/CodeSnippet.test.d.ts +2 -0
- package/dist/views/Components/CodeSnippet/CodeSnippet.test.d.ts.map +1 -0
- package/dist/views/Components/CodeSnippet/CodeSnippet.vue.d.ts +13 -0
- package/dist/views/Components/CodeSnippet/CodeSnippet.vue.d.ts.map +1 -0
- package/dist/views/Components/CodeSnippet/CodeSnippet.vue.js +46 -0
- package/dist/views/Components/CodeSnippet/CodeSnippet.vue2.js +4 -0
- package/dist/views/Components/CodeSnippet/helpers/convert-to-har-request.d.ts +28 -0
- package/dist/views/Components/CodeSnippet/helpers/convert-to-har-request.d.ts.map +1 -0
- package/dist/views/Components/CodeSnippet/helpers/convert-to-har-request.js +64 -0
- package/dist/views/Components/CodeSnippet/helpers/convert-to-har-request.test.d.ts +2 -0
- package/dist/views/Components/CodeSnippet/helpers/convert-to-har-request.test.d.ts.map +1 -0
- package/dist/views/Components/CodeSnippet/helpers/get-har-request.d.ts +12 -0
- package/dist/views/Components/CodeSnippet/helpers/get-har-request.d.ts.map +1 -0
- package/dist/views/Components/CodeSnippet/helpers/get-har-request.js +47 -0
- package/dist/views/Components/CodeSnippet/helpers/get-har-request.test.d.ts +2 -0
- package/dist/views/Components/CodeSnippet/helpers/get-har-request.test.d.ts.map +1 -0
- package/dist/views/Components/CodeSnippet/helpers/get-snippet.d.ts +13 -0
- package/dist/views/Components/CodeSnippet/helpers/get-snippet.d.ts.map +1 -0
- package/dist/views/Components/CodeSnippet/helpers/get-snippet.js +47 -0
- package/dist/views/Components/CodeSnippet/helpers/get-snippet.test.d.ts +2 -0
- package/dist/views/Components/CodeSnippet/helpers/get-snippet.test.d.ts.map +1 -0
- package/dist/views/Components/CodeSnippet/index.d.ts +5 -0
- package/dist/views/Components/CodeSnippet/index.d.ts.map +1 -0
- package/dist/views/Components/CodeSnippet/index.js +10 -0
- package/dist/views/Cookies/CookieModal.vue.d.ts +3 -3
- package/dist/views/Cookies/Cookies.vue.d.ts.map +1 -1
- package/dist/views/Cookies/Cookies.vue2.js +77 -70
- package/dist/views/Environment/Environment.vue.d.ts.map +1 -1
- package/dist/views/Environment/Environment.vue2.js +127 -113
- package/dist/views/Environment/EnvironmentColorModal.vue.d.ts +2 -2
- package/dist/views/Environment/EnvironmentColors.vue.d.ts +1 -1
- package/dist/views/Environment/EnvironmentModal.vue.d.ts +6 -6
- package/dist/views/Environment/EnvironmentModal.vue.d.ts.map +1 -1
- package/dist/views/Environment/EnvironmentModal.vue.js +1 -1
- package/dist/views/Environment/EnvironmentVariableDropdown.vue.d.ts +2 -2
- package/dist/views/Request/Request.vue.d.ts +2 -2
- package/dist/views/Request/Request.vue.d.ts.map +1 -1
- package/dist/views/Request/Request.vue.js +2 -2
- package/dist/views/Request/Request.vue2.js +92 -86
- package/dist/views/Request/RequestSection/RequestAuth/DeleteRequestAuthModal.vue.d.ts +2 -2
- package/dist/views/Request/RequestSection/RequestAuth/OAuthScopesInput.vue.d.ts +1 -1
- package/dist/views/Request/RequestSection/RequestAuth/RequestAuth.test.d.ts +2 -0
- package/dist/views/Request/RequestSection/RequestAuth/RequestAuth.test.d.ts.map +1 -0
- package/dist/views/Request/RequestSection/RequestAuth/RequestAuth.vue.d.ts +1 -1
- package/dist/views/Request/RequestSection/RequestAuth/RequestAuth.vue.d.ts.map +1 -1
- package/dist/views/Request/RequestSection/RequestAuth/RequestAuth.vue.js +2 -2
- package/dist/views/Request/RequestSection/RequestAuth/RequestAuthDataTableInput.vue.d.ts +4 -4
- package/dist/views/Request/RequestSection/RequestAuth/RequestAuthDataTableInput.vue.d.ts.map +1 -1
- package/dist/views/Request/RequestSection/RequestAuth/index.d.ts +2 -2
- package/dist/views/Request/RequestSection/RequestBody.test.d.ts +2 -0
- package/dist/views/Request/RequestSection/RequestBody.test.d.ts.map +1 -0
- package/dist/views/Request/RequestSection/RequestBody.vue.d.ts.map +1 -1
- package/dist/views/Request/RequestSection/RequestBody.vue.js +2 -2
- package/dist/views/Request/RequestSection/RequestBody.vue2.js +20 -20
- package/dist/views/Request/RequestSection/RequestCodeExample.vue.d.ts +3 -0
- package/dist/views/Request/RequestSection/RequestCodeExample.vue.d.ts.map +1 -0
- package/dist/views/Request/RequestSection/RequestCodeExample.vue.js +7 -0
- package/dist/views/Request/RequestSection/RequestCodeExample.vue2.js +141 -0
- package/dist/views/Request/RequestSection/RequestParams.vue.d.ts.map +1 -1
- package/dist/views/Request/RequestSection/RequestParams.vue.js +53 -59
- package/dist/views/Request/RequestSection/RequestSection.vue.d.ts.map +1 -1
- package/dist/views/Request/RequestSection/RequestSection.vue.js +1 -1
- package/dist/views/Request/RequestSection/RequestSection.vue2.js +71 -62
- package/dist/views/Request/RequestSection/RequestTable.vue.d.ts +8 -8
- package/dist/views/Request/RequestSection/RequestTable.vue.js +2 -2
- package/dist/views/Request/RequestSection/RequestTable.vue2.js +59 -59
- package/dist/views/Request/RequestSection/helpers/filter-security-requirements.d.ts +6 -0
- package/dist/views/Request/RequestSection/helpers/filter-security-requirements.d.ts.map +1 -0
- package/dist/views/Request/RequestSection/helpers/filter-security-requirements.js +20 -0
- package/dist/views/Request/RequestSection/helpers/filter-security-requirements.test.d.ts +2 -0
- package/dist/views/Request/RequestSection/helpers/filter-security-requirements.test.d.ts.map +1 -0
- package/dist/views/Request/RequestSection/helpers/getting-started.d.ts +6 -0
- package/dist/views/Request/RequestSection/helpers/getting-started.d.ts.map +1 -0
- package/dist/views/Request/RequestSection/helpers/getting-started.js +17 -0
- package/dist/views/Request/RequestSection/helpers/getting-started.test.d.ts +2 -0
- package/dist/views/Request/RequestSection/helpers/getting-started.test.d.ts.map +1 -0
- package/dist/views/Request/RequestSection/index.d.ts +2 -1
- package/dist/views/Request/RequestSection/index.d.ts.map +1 -1
- package/dist/views/Request/RequestSection/index.js +4 -2
- package/dist/views/Request/RequestSidebar.vue.d.ts +5 -5
- package/dist/views/Request/RequestSidebar.vue.d.ts.map +1 -1
- package/dist/views/Request/RequestSidebar.vue.js +2 -2
- package/dist/views/Request/RequestSidebar.vue2.js +211 -193
- package/dist/views/Request/RequestSidebarItem.vue.d.ts +18 -31
- package/dist/views/Request/RequestSidebarItem.vue.d.ts.map +1 -1
- package/dist/views/Request/RequestSidebarItem.vue.js +1 -1
- package/dist/views/Request/RequestSidebarItem.vue2.js +113 -113
- package/dist/views/Request/RequestSidebarItemMenu.vue.d.ts +5 -5
- package/dist/views/Request/RequestSidebarItemMenu.vue.d.ts.map +1 -1
- package/dist/views/Request/RequestSidebarItemMenu.vue.js +1 -1
- package/dist/views/Request/RequestSidebarItemMenu.vue2.js +120 -101
- package/dist/views/Request/RequestSubpageHeader.test.d.ts +2 -0
- package/dist/views/Request/RequestSubpageHeader.test.d.ts.map +1 -0
- package/dist/views/Request/RequestSubpageHeader.vue.d.ts +3 -3
- package/dist/views/Request/RequestSubpageHeader.vue.js +1 -1
- package/dist/views/Request/RequestSubpageHeader.vue2.js +1 -1
- package/dist/views/Request/ResponseSection/ResponseBody.vue.d.ts.map +1 -1
- package/dist/views/Request/ResponseSection/ResponseBody.vue.js +2 -2
- package/dist/views/Request/ResponseSection/ResponseBody.vue2.js +50 -64
- package/dist/views/Request/ResponseSection/ResponseBodyPreview.vue.d.ts +3 -3
- package/dist/views/Request/ResponseSection/ResponseBodyPreview.vue.d.ts.map +1 -1
- package/dist/views/Request/ResponseSection/ResponseBodyPreview.vue.js +1 -1
- package/dist/views/Request/ResponseSection/ResponseBodyPreview.vue2.js +27 -27
- package/dist/views/Request/ResponseSection/ResponseBodyRaw.vue.d.ts +1 -1
- package/dist/views/Request/ResponseSection/ResponseBodyRaw.vue.d.ts.map +1 -1
- package/dist/views/Request/ResponseSection/ResponseBodyRaw.vue.js +2 -2
- package/dist/views/Request/ResponseSection/ResponseBodyToggle.vue.d.ts +1 -1
- package/dist/views/Request/ResponseSection/ResponseBodyVirtual.test.d.ts +2 -0
- package/dist/views/Request/ResponseSection/ResponseBodyVirtual.test.d.ts.map +1 -0
- package/dist/views/Request/ResponseSection/ResponseBodyVirtual.vue.d.ts +6 -0
- package/dist/views/Request/ResponseSection/ResponseBodyVirtual.vue.d.ts.map +1 -1
- package/dist/views/Request/ResponseSection/ResponseBodyVirtual.vue.js +38 -19
- package/dist/views/Request/ResponseSection/ResponseEmpty.vue2.js +1 -1
- package/dist/views/Request/ResponseSection/ResponseSection.vue.d.ts.map +1 -1
- package/dist/views/Request/ResponseSection/ResponseSection.vue.js +1 -1
- package/dist/views/Request/ResponseSection/ResponseSection.vue2.js +30 -28
- package/dist/views/Request/ResponseSection/index.d.ts +1 -1
- package/dist/views/Request/components/index.d.ts +1 -1
- package/dist/views/Request/consts/index.d.ts +3 -3
- package/dist/views/Request/handle-drag.d.ts +2 -2
- package/dist/views/Request/libs/auth.d.ts +1 -1
- package/dist/views/Request/libs/auth.test.d.ts +2 -0
- package/dist/views/Request/libs/auth.test.d.ts.map +1 -0
- package/dist/views/Request/libs/index.d.ts +2 -2
- package/dist/views/Request/libs/oauth2.d.ts +2 -2
- package/dist/views/Request/libs/oauth2.d.ts.map +1 -1
- package/dist/views/Request/libs/oauth2.js +7 -7
- package/dist/views/Request/libs/oauth2.test.d.ts +2 -0
- package/dist/views/Request/libs/oauth2.test.d.ts.map +1 -0
- package/dist/views/Request/libs/request.test.d.ts +2 -0
- package/dist/views/Request/libs/request.test.d.ts.map +1 -0
- package/dist/views/Request/libs/watch-mode.d.ts +2 -2
- package/dist/views/Request/libs/watch-mode.test.d.ts +2 -0
- package/dist/views/Request/libs/watch-mode.test.d.ts.map +1 -0
- package/dist/views/Request/types/sidebar-item.d.ts +2 -2
- package/dist/views/Request/types/sidebar-item.d.ts.map +1 -1
- package/dist/views/Servers/Servers.vue.d.ts.map +1 -1
- package/dist/views/Servers/Servers.vue2.js +73 -63
- package/dist/views/Servers/index.d.ts +1 -1
- package/dist/views/Settings/components/SettingsAppearance.vue.js +6 -6
- package/package.json +21 -15
|
@@ -1,256 +1,274 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
import
|
|
3
|
-
import
|
|
4
|
-
import
|
|
5
|
-
import
|
|
6
|
-
import
|
|
7
|
-
import { useSearch as
|
|
8
|
-
import
|
|
9
|
-
import
|
|
10
|
-
import {
|
|
11
|
-
import {
|
|
12
|
-
import
|
|
13
|
-
import
|
|
14
|
-
import {
|
|
15
|
-
import {
|
|
16
|
-
import {
|
|
17
|
-
import {
|
|
18
|
-
import
|
|
19
|
-
import
|
|
20
|
-
import
|
|
21
|
-
import
|
|
22
|
-
import
|
|
23
|
-
import {
|
|
24
|
-
|
|
1
|
+
import { defineComponent as be, useId as ve, reactive as he, ref as Se, watch as K, onMounted as ge, onBeforeUnmount as ke, computed as N, openBlock as r, createElementBlock as g, Fragment as q, withDirectives as L, createVNode as c, unref as o, normalizeClass as p, createSlots as Re, withCtx as m, createElementVNode as n, createBlock as d, createCommentVNode as f, isRef as ye, withKeys as D, withModifiers as b, vShow as U, renderList as H, createTextVNode as O, toDisplayString as we, nextTick as xe } from "vue";
|
|
2
|
+
import Ie from "../../assets/rabbit.ascii.js";
|
|
3
|
+
import Ce from "../../assets/rabbitjump.ascii.js";
|
|
4
|
+
import qe from "../../components/EnvironmentSelector/EnvironmentSelector.vue.js";
|
|
5
|
+
import De from "../../components/HttpMethod/HttpMethod.vue.js";
|
|
6
|
+
import G from "../../components/ScalarAsciiArt.vue.js";
|
|
7
|
+
import { useSearch as Oe } from "../../components/Search/useSearch.js";
|
|
8
|
+
import $e from "../../components/Sidebar/SidebarButton.vue.js";
|
|
9
|
+
import Me from "../../components/Sidebar/SidebarToggle.vue.js";
|
|
10
|
+
import { PathId as j } from "../../routes.js";
|
|
11
|
+
import { useActiveEntities as Ve } from "../../store/active-entities.js";
|
|
12
|
+
import { createInitialRequest as Pe } from "../../store/requests.js";
|
|
13
|
+
import Te from "./RequestSidebarItemMenu.vue.js";
|
|
14
|
+
import { dragHandlerFactory as Ee } from "./handle-drag.js";
|
|
15
|
+
import { ScalarIcon as $, ScalarSearchInput as We, ScalarSearchResultList as ze, ScalarSearchResultItem as Ae, ScalarButton as Be } from "@scalar/components";
|
|
16
|
+
import { LibraryIcon as Fe } from "@scalar/icons";
|
|
17
|
+
import { useToasts as Ke } from "@scalar/use-toasts";
|
|
18
|
+
import { useRouter as Ne } from "vue-router";
|
|
19
|
+
import { isGettingStarted as Le } from "./RequestSection/helpers/getting-started.js";
|
|
20
|
+
import Ue from "./RequestSidebarItem.vue.js";
|
|
21
|
+
import He from "../../components/Sidebar/Sidebar.vue.js";
|
|
22
|
+
import Ge from "./components/WorkspaceDropdown.vue.js";
|
|
23
|
+
import { useLayout as je } from "../../hooks/useLayout.js";
|
|
24
|
+
import { useWorkspace as Je } from "../../store/store.js";
|
|
25
|
+
import { useSidebar as Qe } from "../../hooks/useSidebar.js";
|
|
26
|
+
const Xe = { class: "flex items-center h-12 px-3 top-0 bg-b-1 sticky z-20" }, Ye = {
|
|
25
27
|
key: 1,
|
|
26
28
|
class: "text-c-3"
|
|
27
|
-
},
|
|
29
|
+
}, Ze = {
|
|
28
30
|
class: "search-button-fade sticky px-3 py-2.5 z-10 pt-0 top-12 focus-within:z-20",
|
|
29
31
|
role: "search"
|
|
30
|
-
},
|
|
32
|
+
}, _e = {
|
|
31
33
|
key: 1,
|
|
32
34
|
class: "contents"
|
|
33
|
-
},
|
|
35
|
+
}, et = { class: "empty-sidebar-item-content px-2.5 py-2.5" }, tt = { class: "w-[60px] h-[68px] m-auto rabbit-ascii mt-2 relative" }, qt = /* @__PURE__ */ be({
|
|
34
36
|
__name: "RequestSidebar",
|
|
35
37
|
props: {
|
|
36
38
|
isSidebarOpen: { type: Boolean }
|
|
37
39
|
},
|
|
38
40
|
emits: ["update:modelValue", "update:isSidebarOpen", "newTab", "clearDrafts"],
|
|
39
|
-
setup(
|
|
40
|
-
const
|
|
41
|
-
activeWorkspaceCollections:
|
|
42
|
-
activeRequest:
|
|
43
|
-
activeWorkspaceRequests:
|
|
44
|
-
activeWorkspace:
|
|
45
|
-
} =
|
|
46
|
-
|
|
41
|
+
setup(J, { emit: Q }) {
|
|
42
|
+
const X = J, M = Q, { layout: l } = je(), V = Je(), {
|
|
43
|
+
activeWorkspaceCollections: u,
|
|
44
|
+
activeRequest: Y,
|
|
45
|
+
activeWorkspaceRequests: P,
|
|
46
|
+
activeWorkspace: Z
|
|
47
|
+
} = Ve(), { findRequestParents: _, events: k, requestMutators: T, requests: y } = V, { handleDragEnd: ee, isDroppable: te } = Ee(
|
|
48
|
+
Z,
|
|
47
49
|
V
|
|
48
|
-
), { collapsedSidebarFolders:
|
|
49
|
-
|
|
50
|
+
), { collapsedSidebarFolders: oe, setCollapsedSidebarFolder: se } = Qe(), { replace: E } = Ne(), ae = () => {
|
|
51
|
+
k.commandPalette.emit({
|
|
50
52
|
commandName: "Import from OpenAPI/Swagger/Postman"
|
|
51
53
|
});
|
|
52
|
-
}, W =
|
|
54
|
+
}, W = ve(), { toast: re } = Ke(), v = he({ open: !1 }), h = Se(!1);
|
|
53
55
|
K(
|
|
54
|
-
|
|
55
|
-
(
|
|
56
|
-
|
|
57
|
-
(e) =>
|
|
56
|
+
Y,
|
|
57
|
+
(s) => {
|
|
58
|
+
s && _(s).forEach(
|
|
59
|
+
(e) => se(e, !0)
|
|
58
60
|
);
|
|
59
61
|
},
|
|
60
62
|
{ immediate: !0 }
|
|
61
63
|
);
|
|
62
64
|
const {
|
|
63
|
-
searchText:
|
|
64
|
-
searchResultsWithPlaceholderResults:
|
|
65
|
-
selectedSearchResult:
|
|
66
|
-
onSearchResultClick:
|
|
67
|
-
fuseSearch:
|
|
68
|
-
searchInputRef:
|
|
69
|
-
searchResultRefs:
|
|
65
|
+
searchText: S,
|
|
66
|
+
searchResultsWithPlaceholderResults: w,
|
|
67
|
+
selectedSearchResult: x,
|
|
68
|
+
onSearchResultClick: ie,
|
|
69
|
+
fuseSearch: ne,
|
|
70
|
+
searchInputRef: I,
|
|
71
|
+
searchResultRefs: le,
|
|
70
72
|
navigateSearchResults: z,
|
|
71
|
-
selectSearchResult:
|
|
72
|
-
} =
|
|
73
|
+
selectSearchResult: de
|
|
74
|
+
} = Oe(), A = (s) => {
|
|
73
75
|
var e;
|
|
74
|
-
|
|
76
|
+
s && (s.toggleSidebar && M("update:isSidebarOpen", X.isSidebarOpen), s.focusRequestSearch && ((e = I.value) == null || e.focus()));
|
|
75
77
|
};
|
|
76
|
-
|
|
77
|
-
|
|
78
|
+
ge(() => k.hotKeys.on(A)), ke(() => {
|
|
79
|
+
k.hotKeys.off(A);
|
|
78
80
|
});
|
|
79
|
-
const
|
|
80
|
-
if (
|
|
81
|
-
|
|
82
|
-
const e =
|
|
83
|
-
(
|
|
81
|
+
const ue = (s) => {
|
|
82
|
+
if (s != null && s.documentUrl) {
|
|
83
|
+
s.watchMode = !s.watchMode;
|
|
84
|
+
const e = u.value.find(
|
|
85
|
+
(t) => t.uid === s.entity.uid
|
|
84
86
|
);
|
|
85
|
-
e && (e.watchMode =
|
|
87
|
+
e && (e.watchMode = s.watchMode);
|
|
86
88
|
}
|
|
87
89
|
};
|
|
88
90
|
K(
|
|
89
|
-
() =>
|
|
90
|
-
(
|
|
91
|
+
() => u.value.map(
|
|
92
|
+
(s) => s.watchMode
|
|
91
93
|
),
|
|
92
|
-
(
|
|
93
|
-
|
|
94
|
-
var
|
|
95
|
-
if (l !== "modal" &&
|
|
96
|
-
const F =
|
|
94
|
+
(s, e) => {
|
|
95
|
+
s.forEach((t, a) => {
|
|
96
|
+
var i, R, B;
|
|
97
|
+
if (l !== "modal" && t !== e[a] && ((R = (i = u.value[a]) == null ? void 0 : i.info) == null ? void 0 : R.title) !== "Drafts" && u.value[a]) {
|
|
98
|
+
const F = u.value[a];
|
|
97
99
|
if (!F) return;
|
|
98
|
-
const
|
|
99
|
-
|
|
100
|
+
const fe = `${(B = F.info) == null ? void 0 : B.title}: Watch Mode ${t ? "enabled" : "disabled"}`;
|
|
101
|
+
re(fe, "info");
|
|
100
102
|
}
|
|
101
103
|
});
|
|
102
104
|
}
|
|
103
105
|
);
|
|
104
|
-
const
|
|
106
|
+
const me = N(() => {
|
|
105
107
|
var e;
|
|
106
|
-
const
|
|
107
|
-
return (e =
|
|
108
|
-
}),
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
return ((d = a.info) == null ? void 0 : d.title) === "Drafts";
|
|
108
|
+
const s = w.value[x.value];
|
|
109
|
+
return (e = s == null ? void 0 : s.item) != null && e.id ? `#search-input-${s.item.id}` : void 0;
|
|
110
|
+
}), ce = () => {
|
|
111
|
+
const s = u.value.find(
|
|
112
|
+
(t) => {
|
|
113
|
+
var a;
|
|
114
|
+
return ((a = t.info) == null ? void 0 : a.title) === "Drafts";
|
|
114
115
|
}
|
|
115
116
|
);
|
|
116
|
-
if (
|
|
117
|
-
|
|
118
|
-
}),
|
|
119
|
-
const
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
117
|
+
if (s && s.requests.forEach((t) => {
|
|
118
|
+
y[t] && T.delete(y[t], s.uid);
|
|
119
|
+
}), P.value.length) {
|
|
120
|
+
const t = u.value[0], a = t == null ? void 0 : t.requests[0];
|
|
121
|
+
a && E({
|
|
122
|
+
name: "request",
|
|
123
|
+
params: {
|
|
124
|
+
[j.Request]: a
|
|
125
|
+
}
|
|
126
|
+
});
|
|
123
127
|
} else {
|
|
124
|
-
const { request:
|
|
125
|
-
|
|
128
|
+
const { request: t } = Pe();
|
|
129
|
+
s && (T.add(t, s.uid), E({
|
|
130
|
+
name: "request",
|
|
131
|
+
params: {
|
|
132
|
+
[j.Request]: t.uid
|
|
133
|
+
}
|
|
134
|
+
}));
|
|
126
135
|
}
|
|
127
|
-
},
|
|
128
|
-
|
|
129
|
-
var
|
|
130
|
-
(
|
|
131
|
-
}),
|
|
132
|
-
}
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
136
|
+
}, pe = () => {
|
|
137
|
+
h.value || (S.value = ""), h.value && xe(() => {
|
|
138
|
+
var s;
|
|
139
|
+
(s = I.value) == null || s.focus();
|
|
140
|
+
}), h.value = !h.value;
|
|
141
|
+
}, C = N(() => Le(
|
|
142
|
+
u.value,
|
|
143
|
+
P.value,
|
|
144
|
+
y
|
|
145
|
+
));
|
|
146
|
+
return (s, e) => (r(), g(q, null, [
|
|
147
|
+
L(c(o(He), {
|
|
148
|
+
class: p([s.isSidebarOpen ? "sidebar-active-width" : ""]),
|
|
149
|
+
isSidebarOpen: s.isSidebarOpen,
|
|
150
|
+
"onUpdate:isSidebarOpen": e[9] || (e[9] = (t) => s.$emit("update:isSidebarOpen", t))
|
|
151
|
+
}, Re({
|
|
152
|
+
content: m(() => [
|
|
153
|
+
n("div", Xe, [
|
|
154
|
+
c(Me, {
|
|
155
|
+
class: p(["xl:hidden", [{ "!flex": o(l) === "modal" }]]),
|
|
156
|
+
modelValue: s.isSidebarOpen,
|
|
157
|
+
"onUpdate:modelValue": e[0] || (e[0] = (t) => s.$emit("update:isSidebarOpen", t))
|
|
145
158
|
}, null, 8, ["class", "modelValue"]),
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
159
|
+
o(l) !== "modal" ? (r(), d(o(Ge), { key: 0 })) : f("", !0),
|
|
160
|
+
o(l) !== "modal" ? (r(), g("span", Ye, " / ")) : f("", !0),
|
|
161
|
+
o(l) !== "modal" ? (r(), d(qe, { key: 2 })) : f("", !0),
|
|
149
162
|
n("button", {
|
|
150
163
|
class: "ml-auto",
|
|
151
164
|
type: "button",
|
|
152
|
-
onClick:
|
|
165
|
+
onClick: pe
|
|
153
166
|
}, [
|
|
154
|
-
|
|
167
|
+
c(o($), {
|
|
155
168
|
class: "text-c-3 text-sm hover:bg-b-2 p-1.75 rounded-lg max-w-8 max-h-8",
|
|
156
169
|
icon: "Search"
|
|
157
170
|
})
|
|
158
171
|
])
|
|
159
172
|
]),
|
|
160
|
-
|
|
161
|
-
|
|
173
|
+
L(n("div", Ze, [
|
|
174
|
+
c(o(We), {
|
|
162
175
|
ref_key: "searchInputRef",
|
|
163
|
-
ref:
|
|
164
|
-
modelValue:
|
|
165
|
-
"onUpdate:modelValue": e[1] || (e[1] = (
|
|
166
|
-
"aria-activedescendant":
|
|
167
|
-
"aria-controls":
|
|
176
|
+
ref: I,
|
|
177
|
+
modelValue: o(S),
|
|
178
|
+
"onUpdate:modelValue": e[1] || (e[1] = (t) => ye(S) ? S.value = t : null),
|
|
179
|
+
"aria-activedescendant": me.value,
|
|
180
|
+
"aria-controls": o(W),
|
|
168
181
|
sidebar: "",
|
|
169
|
-
onInput:
|
|
182
|
+
onInput: o(ne),
|
|
170
183
|
onKeydown: [
|
|
171
|
-
e[2] || (e[2] = D(
|
|
172
|
-
e[3] || (e[3] = D(
|
|
173
|
-
e[4] || (e[4] = D(
|
|
184
|
+
e[2] || (e[2] = D(b((t) => o(z)("down"), ["stop"]), ["down"])),
|
|
185
|
+
e[3] || (e[3] = D(b((t) => o(de)(), ["stop"]), ["enter"])),
|
|
186
|
+
e[4] || (e[4] = D(b((t) => o(z)("up"), ["stop"]), ["up"]))
|
|
174
187
|
]
|
|
175
188
|
}, null, 8, ["modelValue", "aria-activedescendant", "aria-controls", "onInput"])
|
|
176
189
|
], 512), [
|
|
177
|
-
[
|
|
190
|
+
[U, h.value]
|
|
178
191
|
]),
|
|
179
192
|
n("div", {
|
|
180
|
-
class:
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
193
|
+
class: p(["gap-1/2 flex flex-1 flex-col overflow-visible overflow-y-auto px-3 pb-3 pt-0", [
|
|
194
|
+
{
|
|
195
|
+
"pb-14": o(l) !== "modal"
|
|
196
|
+
},
|
|
197
|
+
{
|
|
198
|
+
"h-[calc(100%-273.5px)]": C.value
|
|
199
|
+
}
|
|
200
|
+
]]),
|
|
201
|
+
onDragenter: e[7] || (e[7] = b(() => {
|
|
184
202
|
}, ["prevent"])),
|
|
185
|
-
onDragover: e[8] || (e[8] =
|
|
203
|
+
onDragover: e[8] || (e[8] = b(() => {
|
|
186
204
|
}, ["prevent"]))
|
|
187
205
|
}, [
|
|
188
|
-
|
|
206
|
+
o(S) ? (r(), d(o(ze), {
|
|
189
207
|
key: 0,
|
|
190
|
-
id:
|
|
208
|
+
id: o(W),
|
|
191
209
|
"aria-label": "Search Results",
|
|
192
210
|
class: "gap-px",
|
|
193
|
-
noResults: !
|
|
211
|
+
noResults: !o(w).length
|
|
194
212
|
}, {
|
|
195
|
-
default:
|
|
196
|
-
(r(!0),
|
|
197
|
-
id: `#search-input-${
|
|
198
|
-
key:
|
|
213
|
+
default: m(() => [
|
|
214
|
+
(r(!0), g(q, null, H(o(w), (t, a) => (r(), d(o(Ae), {
|
|
215
|
+
id: `#search-input-${t.item.id}`,
|
|
216
|
+
key: t.refIndex,
|
|
199
217
|
ref_for: !0,
|
|
200
|
-
ref: (
|
|
201
|
-
active:
|
|
218
|
+
ref: (i) => o(le)[a] = i,
|
|
219
|
+
active: o(x) === a,
|
|
202
220
|
class: "px-2",
|
|
203
|
-
href:
|
|
204
|
-
onClick:
|
|
205
|
-
onFocus: (
|
|
221
|
+
href: t.item.link,
|
|
222
|
+
onClick: b((i) => o(ie)(t), ["prevent"]),
|
|
223
|
+
onFocus: (i) => x.value = a
|
|
206
224
|
}, {
|
|
207
|
-
addon:
|
|
225
|
+
addon: m(() => [
|
|
208
226
|
e[11] || (e[11] = n("span", { class: "sr-only" }, "HTTP Method:", -1)),
|
|
209
|
-
|
|
227
|
+
c(De, {
|
|
210
228
|
class: "font-bold",
|
|
211
|
-
method:
|
|
229
|
+
method: t.item.httpVerb ?? "get"
|
|
212
230
|
}, null, 8, ["method"])
|
|
213
231
|
]),
|
|
214
|
-
default:
|
|
215
|
-
O(
|
|
232
|
+
default: m(() => [
|
|
233
|
+
O(we(t.item.title) + " ", 1)
|
|
216
234
|
]),
|
|
217
235
|
_: 2
|
|
218
236
|
}, 1032, ["id", "active", "href", "onClick", "onFocus"]))), 128))
|
|
219
237
|
]),
|
|
220
238
|
_: 1
|
|
221
|
-
}, 8, ["id", "noResults"])) : (r(),
|
|
222
|
-
(r(!0),
|
|
223
|
-
var
|
|
224
|
-
return r(),
|
|
225
|
-
key:
|
|
226
|
-
isDraggable:
|
|
227
|
-
isDroppable:
|
|
228
|
-
menuItem:
|
|
239
|
+
}, 8, ["id", "noResults"])) : (r(), g("nav", _e, [
|
|
240
|
+
(r(!0), g(q, null, H(o(u), (t) => {
|
|
241
|
+
var a;
|
|
242
|
+
return r(), d(Ue, {
|
|
243
|
+
key: t.uid,
|
|
244
|
+
isDraggable: o(l) !== "modal" && ((a = t.info) == null ? void 0 : a.title) !== "Drafts",
|
|
245
|
+
isDroppable: o(te),
|
|
246
|
+
menuItem: v,
|
|
229
247
|
parentUids: [],
|
|
230
|
-
uid:
|
|
231
|
-
onNewTab: e[5] || (e[5] = (
|
|
232
|
-
onOnDragEnd:
|
|
233
|
-
onOpenMenu: e[6] || (e[6] = (
|
|
248
|
+
uid: t.uid,
|
|
249
|
+
onNewTab: e[5] || (e[5] = (i, R) => M("newTab", { name: i, uid: R })),
|
|
250
|
+
onOnDragEnd: o(ee),
|
|
251
|
+
onOpenMenu: e[6] || (e[6] = (i) => Object.assign(v, i))
|
|
234
252
|
}, {
|
|
235
|
-
leftIcon:
|
|
236
|
-
var
|
|
253
|
+
leftIcon: m(() => {
|
|
254
|
+
var i;
|
|
237
255
|
return [
|
|
238
|
-
((
|
|
256
|
+
((i = t.info) == null ? void 0 : i.title) === "Drafts" ? (r(), d(o($), {
|
|
239
257
|
key: 0,
|
|
240
258
|
class: "text-sidebar-c-2 group-hover:hidden",
|
|
241
259
|
icon: "Scribble",
|
|
242
260
|
thickness: "2.25"
|
|
243
|
-
})) : (r(),
|
|
261
|
+
})) : (r(), d(o(Fe), {
|
|
244
262
|
key: 1,
|
|
245
263
|
class: "min-w-3.5 text-sidebar-c-2 size-3.5 stroke-2 group-hover:hidden",
|
|
246
|
-
src:
|
|
264
|
+
src: t["x-scalar-icon"] || "interface-content-folder"
|
|
247
265
|
}, null, 8, ["src"])),
|
|
248
266
|
n("div", {
|
|
249
|
-
class:
|
|
250
|
-
"rotate-90":
|
|
267
|
+
class: p({
|
|
268
|
+
"rotate-90": o(oe)[t.uid]
|
|
251
269
|
})
|
|
252
270
|
}, [
|
|
253
|
-
|
|
271
|
+
c(o($), {
|
|
254
272
|
class: "text-c-3 hidden text-sm group-hover:block",
|
|
255
273
|
icon: "ChevronRight",
|
|
256
274
|
size: "md"
|
|
@@ -264,20 +282,20 @@ const Ge = { class: "flex items-center h-12 px-3 top-0 bg-b-1 sticky z-20" }, Je
|
|
|
264
282
|
]))
|
|
265
283
|
], 34)
|
|
266
284
|
]),
|
|
267
|
-
button:
|
|
285
|
+
button: m(() => [
|
|
268
286
|
n("div", {
|
|
269
|
-
class:
|
|
270
|
-
"empty-sidebar-item":
|
|
287
|
+
class: p({
|
|
288
|
+
"empty-sidebar-item": C.value
|
|
271
289
|
})
|
|
272
290
|
}, [
|
|
273
|
-
n("div",
|
|
274
|
-
n("div",
|
|
275
|
-
|
|
276
|
-
art:
|
|
291
|
+
n("div", et, [
|
|
292
|
+
n("div", tt, [
|
|
293
|
+
c(G, {
|
|
294
|
+
art: o(Ie),
|
|
277
295
|
class: "font-bold rabbitsit"
|
|
278
296
|
}, null, 8, ["art"]),
|
|
279
|
-
|
|
280
|
-
art:
|
|
297
|
+
c(G, {
|
|
298
|
+
art: o(Ce),
|
|
281
299
|
class: "font-bold absolute top-0 left-0 rabbitjump"
|
|
282
300
|
}, null, 8, ["art"])
|
|
283
301
|
]),
|
|
@@ -286,50 +304,50 @@ const Ge = { class: "flex items-center h-12 px-3 top-0 bg-b-1 sticky z-20" }, Je
|
|
|
286
304
|
n("p", { class: "mt-2" }, " Create request, folder, collection or import from OpenAPI/Postman ")
|
|
287
305
|
], -1))
|
|
288
306
|
]),
|
|
289
|
-
|
|
307
|
+
o(l) !== "modal" ? (r(), d(o(Be), {
|
|
290
308
|
key: 0,
|
|
291
|
-
class:
|
|
292
|
-
"flex opacity-100":
|
|
309
|
+
class: p(["mb-1.5 w-full h-fit hidden opacity-0 p-1.5", {
|
|
310
|
+
"flex opacity-100": C.value
|
|
293
311
|
}]),
|
|
294
|
-
onClick:
|
|
312
|
+
onClick: ae
|
|
295
313
|
}, {
|
|
296
|
-
default:
|
|
314
|
+
default: m(() => e[13] || (e[13] = [
|
|
297
315
|
O(" Import Collection ")
|
|
298
316
|
])),
|
|
299
317
|
_: 1
|
|
300
|
-
}, 8, ["class"])) :
|
|
301
|
-
|
|
318
|
+
}, 8, ["class"])) : f("", !0),
|
|
319
|
+
o(l) !== "modal" ? (r(), d($e, {
|
|
302
320
|
key: 1,
|
|
303
|
-
click:
|
|
321
|
+
click: o(k).commandPalette.emit,
|
|
304
322
|
hotkey: "K"
|
|
305
323
|
}, {
|
|
306
|
-
title:
|
|
324
|
+
title: m(() => e[14] || (e[14] = [
|
|
307
325
|
O("Add Item")
|
|
308
326
|
])),
|
|
309
327
|
_: 1
|
|
310
|
-
}, 8, ["click"])) :
|
|
328
|
+
}, 8, ["click"])) : f("", !0)
|
|
311
329
|
], 2)
|
|
312
330
|
]),
|
|
313
331
|
_: 2
|
|
314
332
|
}, [
|
|
315
|
-
|
|
333
|
+
o(l) !== "modal" ? {
|
|
316
334
|
name: "header",
|
|
317
|
-
fn:
|
|
335
|
+
fn: m(() => []),
|
|
318
336
|
key: "0"
|
|
319
337
|
} : void 0
|
|
320
338
|
]), 1032, ["class", "isSidebarOpen"]), [
|
|
321
|
-
[
|
|
339
|
+
[U, s.isSidebarOpen]
|
|
322
340
|
]),
|
|
323
|
-
|
|
341
|
+
o(l) !== "modal" && v ? (r(), d(Te, {
|
|
324
342
|
key: 0,
|
|
325
|
-
menuItem:
|
|
326
|
-
onClearDrafts:
|
|
327
|
-
onCloseMenu: e[10] || (e[10] = (
|
|
328
|
-
onToggleWatchMode:
|
|
329
|
-
}, null, 8, ["menuItem"])) :
|
|
343
|
+
menuItem: v,
|
|
344
|
+
onClearDrafts: ce,
|
|
345
|
+
onCloseMenu: e[10] || (e[10] = (t) => v.open = !1),
|
|
346
|
+
onToggleWatchMode: ue
|
|
347
|
+
}, null, 8, ["menuItem"])) : f("", !0)
|
|
330
348
|
], 64));
|
|
331
349
|
}
|
|
332
350
|
});
|
|
333
351
|
export {
|
|
334
|
-
|
|
352
|
+
qt as default
|
|
335
353
|
};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { SidebarMenuItem } from '../../views/Request/types
|
|
1
|
+
import type { SidebarMenuItem } from '../../views/Request/types';
|
|
2
2
|
import { type DraggableProps, type DraggingItem, type HoveredItem } from '@scalar/draggable';
|
|
3
3
|
type __VLS_Props = {
|
|
4
4
|
/**
|
|
@@ -32,14 +32,14 @@ declare function __VLS_template(): {
|
|
|
32
32
|
$: import("vue").ComponentInternalInstance;
|
|
33
33
|
$data: {};
|
|
34
34
|
$props: {
|
|
35
|
-
readonly ceiling?: number
|
|
36
|
-
readonly floor?: number
|
|
37
|
-
readonly isDraggable?: boolean
|
|
38
|
-
readonly isDroppable?:
|
|
35
|
+
readonly ceiling?: number;
|
|
36
|
+
readonly floor?: number;
|
|
37
|
+
readonly isDraggable?: boolean;
|
|
38
|
+
readonly isDroppable?: boolean | ((draggingItem: DraggingItem, hoveredItem: HoveredItem) => boolean);
|
|
39
39
|
readonly parentIds: string[];
|
|
40
40
|
readonly id: string;
|
|
41
|
-
readonly onOnDragEnd?: (
|
|
42
|
-
readonly onOnDragStart?: (
|
|
41
|
+
readonly onOnDragEnd?: (draggingItem: DraggingItem, hoveredItem: HoveredItem) => any;
|
|
42
|
+
readonly onOnDragStart?: (draggingItem: DraggingItem) => any;
|
|
43
43
|
} & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps;
|
|
44
44
|
$attrs: {
|
|
45
45
|
[x: string]: unknown;
|
|
@@ -56,8 +56,8 @@ declare function __VLS_template(): {
|
|
|
56
56
|
$emit: ((event: "onDragEnd", draggingItem: DraggingItem, hoveredItem: HoveredItem) => void) & ((event: "onDragStart", draggingItem: DraggingItem) => void);
|
|
57
57
|
$el: HTMLDivElement;
|
|
58
58
|
$options: import("vue").ComponentOptionsBase<Readonly<DraggableProps> & Readonly<{
|
|
59
|
-
onOnDragEnd?: (
|
|
60
|
-
onOnDragStart?: (
|
|
59
|
+
onOnDragEnd?: (draggingItem: DraggingItem, hoveredItem: HoveredItem) => any;
|
|
60
|
+
onOnDragStart?: (draggingItem: DraggingItem) => any;
|
|
61
61
|
}>, {
|
|
62
62
|
draggingItem: import("vue").Ref<{
|
|
63
63
|
id: string;
|
|
@@ -78,12 +78,7 @@ declare function __VLS_template(): {
|
|
|
78
78
|
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
79
79
|
onDragEnd: (draggingItem: DraggingItem, hoveredItem: HoveredItem) => any;
|
|
80
80
|
onDragStart: (draggingItem: DraggingItem) => any;
|
|
81
|
-
}, string, {
|
|
82
|
-
ceiling: number;
|
|
83
|
-
floor: number;
|
|
84
|
-
isDraggable: boolean;
|
|
85
|
-
isDroppable: boolean | ((draggingItem: DraggingItem, hoveredItem: HoveredItem) => boolean);
|
|
86
|
-
}, {}, string, {}, import("vue").GlobalComponents, import("vue").GlobalDirectives, string, import("vue").ComponentProvideOptions> & {
|
|
81
|
+
}, string, {}, {}, string, {}, import("vue").GlobalComponents, import("vue").GlobalDirectives, string, import("vue").ComponentProvideOptions> & {
|
|
87
82
|
beforeCreate?: (() => void) | (() => void)[];
|
|
88
83
|
created?: (() => void) | (() => void)[];
|
|
89
84
|
beforeMount?: (() => void) | (() => void)[];
|
|
@@ -103,15 +98,10 @@ declare function __VLS_template(): {
|
|
|
103
98
|
$forceUpdate: () => void;
|
|
104
99
|
$nextTick: typeof import("vue").nextTick;
|
|
105
100
|
$watch<T extends string | ((...args: any) => any)>(source: T, cb: T extends (...args: any) => infer R ? (...args: [R, R, import("@vue/reactivity").OnCleanup]) => any : (...args: [any, any, import("@vue/reactivity").OnCleanup]) => any, options?: import("vue").WatchOptions): import("vue").WatchStopHandle;
|
|
106
|
-
} & Readonly<{
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
isDroppable: boolean | ((draggingItem: DraggingItem, hoveredItem: HoveredItem) => boolean);
|
|
111
|
-
}> & Omit<Readonly<DraggableProps> & Readonly<{
|
|
112
|
-
onOnDragEnd?: ((draggingItem: DraggingItem, hoveredItem: HoveredItem) => any) | undefined;
|
|
113
|
-
onOnDragStart?: ((draggingItem: DraggingItem) => any) | undefined;
|
|
114
|
-
}>, "isDroppable" | "isDraggable" | "draggingItem" | "hoveredItem" | "ceiling" | "floor"> & import("vue").ShallowUnwrapRef<{
|
|
101
|
+
} & Readonly<{}> & Omit<Readonly<DraggableProps> & Readonly<{
|
|
102
|
+
onOnDragEnd?: (draggingItem: DraggingItem, hoveredItem: HoveredItem) => any;
|
|
103
|
+
onOnDragStart?: (draggingItem: DraggingItem) => any;
|
|
104
|
+
}>, "draggingItem" | "hoveredItem"> & import("vue").ShallowUnwrapRef<{
|
|
115
105
|
draggingItem: import("vue").Ref<{
|
|
116
106
|
id: string;
|
|
117
107
|
parentId: string | null;
|
|
@@ -142,13 +132,10 @@ declare const __VLS_component: import("vue").DefineComponent<__VLS_Props, {}, {}
|
|
|
142
132
|
newTab: (name: string, uid: string) => any;
|
|
143
133
|
openMenu: (menuItem: SidebarMenuItem) => any;
|
|
144
134
|
}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{
|
|
145
|
-
onOnDragEnd?: (
|
|
146
|
-
onNewTab?: (
|
|
147
|
-
onOpenMenu?: (
|
|
148
|
-
}>, {
|
|
149
|
-
isDroppable: boolean | ((draggingItem: DraggingItem, hoveredItem: HoveredItem) => boolean);
|
|
150
|
-
isDraggable: boolean;
|
|
151
|
-
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
135
|
+
onOnDragEnd?: (draggingItem: DraggingItem, hoveredItem: HoveredItem) => any;
|
|
136
|
+
onNewTab?: (name: string, uid: string) => any;
|
|
137
|
+
onOpenMenu?: (menuItem: SidebarMenuItem) => any;
|
|
138
|
+
}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
152
139
|
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
|
|
153
140
|
export default _default;
|
|
154
141
|
type __VLS_WithTemplateSlots<T, S> = T & {
|