@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,4 +1,4 @@
|
|
|
1
|
-
import { defineComponent as C, resolveComponent as h, openBlock as s, createElementBlock as c, createVNode as d, normalizeClass as
|
|
1
|
+
import { defineComponent as C, resolveComponent as h, openBlock as s, createElementBlock as c, createVNode as d, normalizeClass as B, unref as p, withModifiers as D, withCtx as I, createElementVNode as m, normalizeStyle as M, createCommentVNode as u, createBlock as R, toDisplayString as E } from "vue";
|
|
2
2
|
import N from "./SidebarListElementActions.vue.js";
|
|
3
3
|
import { useActiveEntities as S } from "../../store/active-entities.js";
|
|
4
4
|
import { ScalarIcon as z } from "@scalar/components";
|
|
@@ -37,13 +37,13 @@ const A = { class: "empty-variable-name text-sm line-clamp-1 break-all group-hov
|
|
|
37
37
|
const i = h("router-link");
|
|
38
38
|
return s(), c("li", null, [
|
|
39
39
|
d(i, {
|
|
40
|
-
class:
|
|
40
|
+
class: B(["h-8 text-c-2 hover:bg-b-2 group relative block flex items-center gap-1.5 rounded py-1 pr-1.5 font-medium no-underline", [e.variable.color ? "pl-1" : "pl-1.5"]]),
|
|
41
41
|
exactActiveClass: "active-link",
|
|
42
42
|
role: "button",
|
|
43
43
|
to: e.collectionId ? `/workspace/${(o = p(t)) == null ? void 0 : o.uid}/${e.type}/${e.collectionId}/${e.variable.uid}` : `/workspace/${(l = p(t)) == null ? void 0 : l.uid}/${e.type}/${e.variable.uid}`,
|
|
44
|
-
onClick: a[1] || (a[1] =
|
|
44
|
+
onClick: a[1] || (a[1] = D((n) => f(n, e.variable.uid, e.collectionId), ["prevent"]))
|
|
45
45
|
}, {
|
|
46
|
-
default:
|
|
46
|
+
default: I(() => [
|
|
47
47
|
e.variable.color ? (s(), c("button", {
|
|
48
48
|
key: 0,
|
|
49
49
|
class: "hover:bg-b-3 rounded p-1.5",
|
|
@@ -52,19 +52,19 @@ const A = { class: "empty-variable-name text-sm line-clamp-1 break-all group-hov
|
|
|
52
52
|
}, [
|
|
53
53
|
m("div", {
|
|
54
54
|
class: "h-2.5 w-2.5 rounded-xl",
|
|
55
|
-
style:
|
|
55
|
+
style: M({ backgroundColor: e.variable.color })
|
|
56
56
|
}, null, 4)
|
|
57
57
|
])) : u("", !0),
|
|
58
|
-
e.variable.icon ? (s(),
|
|
58
|
+
e.variable.icon ? (s(), R(p(z), {
|
|
59
59
|
key: 1,
|
|
60
60
|
class: "text-sidebar-c-2 size-3.5 stroke-[2.25]",
|
|
61
61
|
icon: e.variable.icon
|
|
62
62
|
}, null, 8, ["icon"])) : u("", !0),
|
|
63
63
|
m("span", A, E(e.variable.name), 1),
|
|
64
64
|
d(N, {
|
|
65
|
-
isCopyable: e.isCopyable,
|
|
66
|
-
isDeletable: e.isDeletable,
|
|
67
|
-
isRenameable: e.isRenameable,
|
|
65
|
+
isCopyable: !!e.isCopyable,
|
|
66
|
+
isDeletable: !!e.isDeletable,
|
|
67
|
+
isRenameable: !!e.isRenameable,
|
|
68
68
|
variable: { ...e.variable, isDefault: e.variable.isDefault ?? !1 },
|
|
69
69
|
warningMessage: e.warningMessage,
|
|
70
70
|
onDelete: g,
|
|
@@ -4,7 +4,7 @@ type __VLS_Props = {
|
|
|
4
4
|
name: string;
|
|
5
5
|
isDefault: boolean;
|
|
6
6
|
};
|
|
7
|
-
warningMessage
|
|
7
|
+
warningMessage: string | undefined;
|
|
8
8
|
isCopyable?: boolean;
|
|
9
9
|
isDeletable?: boolean;
|
|
10
10
|
isRenameable?: boolean;
|
|
@@ -13,8 +13,8 @@ declare const _default: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {
|
|
|
13
13
|
delete: (id: string) => any;
|
|
14
14
|
rename: (id: string) => any;
|
|
15
15
|
}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{
|
|
16
|
-
onDelete?: (
|
|
17
|
-
onRename?: (
|
|
16
|
+
onDelete?: (id: string) => any;
|
|
17
|
+
onRename?: (id: string) => any;
|
|
18
18
|
}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
19
19
|
export default _default;
|
|
20
20
|
//# sourceMappingURL=SidebarListElementActions.vue.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"SidebarListElementActions.vue.d.ts","sourceRoot":"","sources":["../../../src/components/Sidebar/SidebarListElementActions.vue"],"names":[],"mappings":"AAmGA,KAAK,WAAW,GAAG;IACjB,QAAQ,EAAE;QACR,GAAG,EAAE,MAAM,CAAA;QACX,IAAI,EAAE,MAAM,CAAA;QACZ,SAAS,EAAE,OAAO,CAAA;KACnB,CAAA;IACD,cAAc,
|
|
1
|
+
{"version":3,"file":"SidebarListElementActions.vue.d.ts","sourceRoot":"","sources":["../../../src/components/Sidebar/SidebarListElementActions.vue"],"names":[],"mappings":"AAmGA,KAAK,WAAW,GAAG;IACjB,QAAQ,EAAE;QACR,GAAG,EAAE,MAAM,CAAA;QACX,IAAI,EAAE,MAAM,CAAA;QACZ,SAAS,EAAE,OAAO,CAAA;KACnB,CAAA;IACD,cAAc,EAAE,MAAM,GAAG,SAAS,CAAA;IAClC,UAAU,CAAC,EAAE,OAAO,CAAA;IACpB,WAAW,CAAC,EAAE,OAAO,CAAA;IACrB,YAAY,CAAC,EAAE,OAAO,CAAA;CACvB,CAAC;;;;;;;;AA2MF,wBAOG"}
|
|
@@ -4,7 +4,7 @@ type __VLS_Props = {
|
|
|
4
4
|
declare const _default: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {} & {
|
|
5
5
|
"update:modelValue": (v: boolean) => any;
|
|
6
6
|
}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{
|
|
7
|
-
"onUpdate:modelValue"?: (
|
|
7
|
+
"onUpdate:modelValue"?: (v: boolean) => any;
|
|
8
8
|
}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, HTMLButtonElement>;
|
|
9
9
|
export default _default;
|
|
10
10
|
//# sourceMappingURL=SidebarToggle.vue.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"TopNav.vue.d.ts","sourceRoot":"","sources":["../../../src/components/TopNav/TopNav.vue"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"TopNav.vue.d.ts","sourceRoot":"","sources":["../../../src/components/TopNav/TopNav.vue"],"names":[],"mappings":"AAiQA,KAAK,WAAW,GAAG;IACjB,UAAU,EAAE;QAAE,IAAI,EAAE,MAAM,CAAC;QAAC,GAAG,EAAE,MAAM,CAAA;KAAE,GAAG,IAAI,CAAA;CACjD,CAAC;;AAkbF,wBAOG"}
|
|
@@ -1,49 +1,49 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
import
|
|
3
|
-
import { ROUTES as
|
|
4
|
-
import { useActiveEntities as
|
|
5
|
-
import { ScalarContextMenu as
|
|
6
|
-
import { capitalize as
|
|
7
|
-
import { useClipboard as
|
|
8
|
-
import { useRouter as
|
|
9
|
-
import
|
|
10
|
-
import { useWorkspace as
|
|
11
|
-
const
|
|
1
|
+
import { defineComponent as $, reactive as z, ref as B, computed as E, watch as w, onMounted as V, onBeforeUnmount as j, openBlock as m, createElementBlock as b, createElementVNode as d, createVNode as r, unref as i, withCtx as c, createBlock as x, createCommentVNode as O, toDisplayString as D, createTextVNode as _, Fragment as K, renderList as q } from "vue";
|
|
2
|
+
import F from "../ScalarHotkey.vue.js";
|
|
3
|
+
import { ROUTES as H } from "../../constants.js";
|
|
4
|
+
import { useActiveEntities as W } from "../../store/active-entities.js";
|
|
5
|
+
import { ScalarContextMenu as G, ScalarIcon as h, ScalarFloating as J, ScalarDropdownMenu as P, ScalarDropdownButton as I } from "@scalar/components";
|
|
6
|
+
import { capitalize as Q } from "@scalar/oas-utils/helpers";
|
|
7
|
+
import { useClipboard as X } from "@scalar/use-hooks/useClipboard";
|
|
8
|
+
import { useRouter as Y } from "vue-router";
|
|
9
|
+
import Z from "./TopNavItem.vue.js";
|
|
10
|
+
import { useWorkspace as ee } from "../../store/store.js";
|
|
11
|
+
const te = { class: "flex relative h-10 pl-2 mac:pl-[72px] t-app__top-nav" }, oe = { class: "flex h-10 flex-1 items-center gap-1.5 text-sm font-medium pr-2.5 relative overflow-hidden" }, ae = {
|
|
12
12
|
key: 0,
|
|
13
13
|
class: "h-full w-full overflow-hidden"
|
|
14
|
-
},
|
|
14
|
+
}, de = /* @__PURE__ */ $({
|
|
15
15
|
__name: "TopNav",
|
|
16
16
|
props: {
|
|
17
17
|
openNewTab: {}
|
|
18
18
|
},
|
|
19
|
-
setup(
|
|
20
|
-
const
|
|
19
|
+
setup(S) {
|
|
20
|
+
const L = S, { activeRequest: R } = W(), u = Y(), { events: g } = ee(), { copyToClipboard: U } = X(), o = z([{ label: "", path: "", icon: "Add" }]), a = B(0), T = E(() => a.value);
|
|
21
21
|
function k() {
|
|
22
22
|
var t;
|
|
23
|
-
const e =
|
|
23
|
+
const e = H.find((n) => u.currentRoute.value.name == n.name);
|
|
24
24
|
e && ((e == null ? void 0 : e.name) === "request" ? o[a.value] = {
|
|
25
|
-
label: ((t =
|
|
26
|
-
path:
|
|
25
|
+
label: ((t = R.value) == null ? void 0 : t.summary) || "",
|
|
26
|
+
path: u.currentRoute.value.path,
|
|
27
27
|
icon: e.icon
|
|
28
28
|
} : o[a.value] = {
|
|
29
|
-
label:
|
|
30
|
-
path:
|
|
29
|
+
label: Q(e == null ? void 0 : e.name) || "",
|
|
30
|
+
path: u.currentRoute.value.path,
|
|
31
31
|
icon: e.icon
|
|
32
32
|
});
|
|
33
33
|
}
|
|
34
|
-
function
|
|
34
|
+
function v() {
|
|
35
35
|
var t;
|
|
36
36
|
const e = (t = o[a.value]) == null ? void 0 : t.path;
|
|
37
|
-
e &&
|
|
37
|
+
e && u.push(e);
|
|
38
38
|
}
|
|
39
|
-
function
|
|
39
|
+
function f() {
|
|
40
40
|
o.push({ label: "", path: "", icon: "Add" }), a.value = o.length - 1, k();
|
|
41
41
|
}
|
|
42
|
-
function
|
|
43
|
-
a.value = e,
|
|
42
|
+
function p(e) {
|
|
43
|
+
a.value = e, v();
|
|
44
44
|
}
|
|
45
45
|
w(
|
|
46
|
-
() =>
|
|
46
|
+
() => u.currentRoute.value.path,
|
|
47
47
|
() => {
|
|
48
48
|
k();
|
|
49
49
|
},
|
|
@@ -53,24 +53,24 @@ const ee = { class: "flex relative h-10 pl-2 mac:pl-[72px] t-app__top-nav" }, te
|
|
|
53
53
|
o.splice(e, 1), a.value = Math.min(
|
|
54
54
|
a.value,
|
|
55
55
|
o.length - 1
|
|
56
|
-
),
|
|
56
|
+
), v();
|
|
57
57
|
}
|
|
58
58
|
const y = (e) => {
|
|
59
59
|
var n;
|
|
60
60
|
if (!((n = o[e]) != null && n.path)) return;
|
|
61
61
|
const t = new URL(window.location.href);
|
|
62
|
-
t.pathname = o[e].path,
|
|
63
|
-
},
|
|
64
|
-
o.splice(0, e), o.splice(1), a.value = 0,
|
|
62
|
+
t.pathname = o[e].path, U(t.toString());
|
|
63
|
+
}, A = (e) => {
|
|
64
|
+
o.splice(0, e), o.splice(1), a.value = 0, v();
|
|
65
65
|
}, C = (e) => {
|
|
66
66
|
if (e) {
|
|
67
|
-
if (e.addTopNav &&
|
|
67
|
+
if (e.addTopNav && f(), e.closeTopNav && N(a.value), e.navigateTopNavLeft && p(Math.max(a.value - 1, 0)), e.navigateTopNavRight && p(Math.min(a.value + 1, o.length - 1)), e.jumpToTab) {
|
|
68
68
|
const t = Number(e.jumpToTab.key) - 1;
|
|
69
|
-
t >= 0 && t < o.length &&
|
|
69
|
+
t >= 0 && t < o.length && p(t);
|
|
70
70
|
}
|
|
71
|
-
e.jumpToLastTab &&
|
|
71
|
+
e.jumpToLastTab && p(o.length - 1);
|
|
72
72
|
}
|
|
73
|
-
},
|
|
73
|
+
}, M = (e) => {
|
|
74
74
|
o.push({
|
|
75
75
|
label: e.name,
|
|
76
76
|
path: e.uid,
|
|
@@ -78,61 +78,62 @@ const ee = { class: "flex relative h-10 pl-2 mac:pl-[72px] t-app__top-nav" }, te
|
|
|
78
78
|
});
|
|
79
79
|
};
|
|
80
80
|
return w(
|
|
81
|
-
() =>
|
|
81
|
+
() => L.openNewTab,
|
|
82
82
|
(e) => {
|
|
83
|
-
e &&
|
|
83
|
+
e && M(e);
|
|
84
84
|
},
|
|
85
85
|
{ immediate: !0 }
|
|
86
|
-
),
|
|
87
|
-
t[3] || (t[3] =
|
|
88
|
-
|
|
89
|
-
o.length === 1 ? (m(), b("div",
|
|
90
|
-
|
|
91
|
-
trigger:
|
|
92
|
-
var n,
|
|
86
|
+
), V(() => g.hotKeys.on(C)), j(() => g.hotKeys.off(C)), (e, t) => (m(), b("nav", te, [
|
|
87
|
+
t[3] || (t[3] = d("div", { class: "absolute inset-0 app-drag-region" }, null, -1)),
|
|
88
|
+
d("div", oe, [
|
|
89
|
+
o.length === 1 ? (m(), b("div", ae, [
|
|
90
|
+
r(i(G), { triggerClass: "flex custom-scroll gap-1.5 h-full items-center justify-center w-full whitespace-nowrap" }, {
|
|
91
|
+
trigger: c(() => {
|
|
92
|
+
var n, l, s;
|
|
93
93
|
return [
|
|
94
|
-
|
|
95
|
-
|
|
94
|
+
(n = o[0]) != null && n.icon ? (m(), x(i(h), {
|
|
95
|
+
key: 0,
|
|
96
|
+
icon: (l = o[0]) == null ? void 0 : l.icon,
|
|
96
97
|
size: "xs",
|
|
97
98
|
thickness: "2.5"
|
|
98
|
-
}, null, 8, ["icon"]),
|
|
99
|
-
|
|
99
|
+
}, null, 8, ["icon"])) : O("", !0),
|
|
100
|
+
d("span", null, D((s = o[0]) == null ? void 0 : s.label), 1)
|
|
100
101
|
];
|
|
101
102
|
}),
|
|
102
|
-
content:
|
|
103
|
-
|
|
104
|
-
floating:
|
|
105
|
-
|
|
106
|
-
default:
|
|
107
|
-
|
|
103
|
+
content: c(() => [
|
|
104
|
+
r(i(J), { placement: "right-start" }, {
|
|
105
|
+
floating: c(() => [
|
|
106
|
+
r(i(P), { class: "scalar-app scalar-client" }, {
|
|
107
|
+
default: c(() => [
|
|
108
|
+
r(i(I), {
|
|
108
109
|
class: "flex items-center gap-1.5",
|
|
109
|
-
onClick:
|
|
110
|
+
onClick: f
|
|
110
111
|
}, {
|
|
111
|
-
default:
|
|
112
|
-
|
|
112
|
+
default: c(() => [
|
|
113
|
+
r(i(h), {
|
|
113
114
|
icon: "AddTab",
|
|
114
115
|
size: "sm",
|
|
115
116
|
thickness: "1.5"
|
|
116
117
|
}),
|
|
117
|
-
t[1] || (t[1] =
|
|
118
|
-
|
|
118
|
+
t[1] || (t[1] = _(" New Tab ")),
|
|
119
|
+
r(F, {
|
|
119
120
|
class: "bg-b-2 ml-auto",
|
|
120
121
|
hotkey: "T"
|
|
121
122
|
})
|
|
122
123
|
]),
|
|
123
124
|
_: 1
|
|
124
125
|
}),
|
|
125
|
-
|
|
126
|
+
r(i(I), {
|
|
126
127
|
class: "flex items-center gap-1.5",
|
|
127
128
|
onClick: t[0] || (t[0] = (n) => y(T.value))
|
|
128
129
|
}, {
|
|
129
|
-
default:
|
|
130
|
-
|
|
130
|
+
default: c(() => [
|
|
131
|
+
r(i(h), {
|
|
131
132
|
icon: "Link",
|
|
132
133
|
size: "sm",
|
|
133
134
|
thickness: "1.5"
|
|
134
135
|
}),
|
|
135
|
-
t[2] || (t[2] =
|
|
136
|
+
t[2] || (t[2] = _(" Copy URL "))
|
|
136
137
|
]),
|
|
137
138
|
_: 1
|
|
138
139
|
})
|
|
@@ -145,24 +146,24 @@ const ee = { class: "flex relative h-10 pl-2 mac:pl-[72px] t-app__top-nav" }, te
|
|
|
145
146
|
]),
|
|
146
147
|
_: 1
|
|
147
148
|
})
|
|
148
|
-
])) : (m(!0), b(
|
|
149
|
+
])) : (m(!0), b(K, { key: 1 }, q(o, (n, l) => (m(), x(Z, {
|
|
149
150
|
key: n.path,
|
|
150
|
-
active:
|
|
151
|
-
hotkey: (
|
|
151
|
+
active: l === T.value,
|
|
152
|
+
hotkey: (l + 1).toString(),
|
|
152
153
|
icon: n.icon,
|
|
153
154
|
label: n.label,
|
|
154
|
-
onClick: (
|
|
155
|
-
onClose: (
|
|
156
|
-
onCloseOtherTabs: (
|
|
157
|
-
onCopyUrl: (
|
|
158
|
-
onNewTab:
|
|
155
|
+
onClick: (s) => p(l),
|
|
156
|
+
onClose: (s) => N(l),
|
|
157
|
+
onCloseOtherTabs: (s) => A(l),
|
|
158
|
+
onCopyUrl: (s) => y(l),
|
|
159
|
+
onNewTab: f
|
|
159
160
|
}, null, 8, ["active", "hotkey", "icon", "label", "onClick", "onClose", "onCloseOtherTabs", "onCopyUrl"]))), 128)),
|
|
160
|
-
|
|
161
|
+
d("button", {
|
|
161
162
|
class: "text-c-3 hover:bg-b-3 p-1.5 rounded app-no-drag-region",
|
|
162
163
|
type: "button",
|
|
163
|
-
onClick:
|
|
164
|
+
onClick: f
|
|
164
165
|
}, [
|
|
165
|
-
|
|
166
|
+
r(i(h), {
|
|
166
167
|
icon: "Add",
|
|
167
168
|
size: "xs",
|
|
168
169
|
thickness: "2.5"
|
|
@@ -173,5 +174,5 @@ const ee = { class: "flex relative h-10 pl-2 mac:pl-[72px] t-app__top-nav" }, te
|
|
|
173
174
|
}
|
|
174
175
|
});
|
|
175
176
|
export {
|
|
176
|
-
|
|
177
|
+
de as default
|
|
177
178
|
};
|
|
@@ -12,11 +12,11 @@ declare const _default: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {
|
|
|
12
12
|
copyUrl: () => any;
|
|
13
13
|
closeOtherTabs: () => any;
|
|
14
14
|
}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{
|
|
15
|
-
onClose?: (
|
|
16
|
-
onClick?: (
|
|
17
|
-
onNewTab?: (
|
|
18
|
-
onCopyUrl?: (
|
|
19
|
-
onCloseOtherTabs?: (
|
|
15
|
+
onClose?: () => any;
|
|
16
|
+
onClick?: () => any;
|
|
17
|
+
onNewTab?: () => any;
|
|
18
|
+
onCopyUrl?: () => any;
|
|
19
|
+
onCloseOtherTabs?: () => any;
|
|
20
20
|
}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
21
21
|
export default _default;
|
|
22
22
|
//# sourceMappingURL=TopNavItem.vue.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ViewLayoutCollapse.vue.d.ts","sourceRoot":"","sources":["../../../src/components/ViewLayout/ViewLayoutCollapse.vue"],"names":[],"mappings":"AAsEA,KAAK,WAAW,GAAG;IACjB,WAAW,CAAC,EAAE,OAAO,CAAA;IACrB,SAAS,CAAC,EAAE,MAAM,CAAA;IAClB,MAAM,CAAC,EAAE,QAAQ,GAAG,WAAW,CAAA;CAChC,CAAC;AAaF,iBAAS,cAAc;WAwJT,OAAO,IAA6B;;;;YAVtB,GAAG;;;YACD,GAAG;;;YACH,GAAG;;;;EAahC;AAYD,KAAK,oBAAoB,GAAG,UAAU,CAAC,OAAO,cAAc,CAAC,CAAC;AAC9D,QAAA,MAAM,eAAe,kSAOnB,CAAC;wBACkB,uBAAuB,CAAC,OAAO,eAAe,EAAE,oBAAoB,CAAC,OAAO,CAAC,CAAC;AAAnG,wBAAoG;
|
|
1
|
+
{"version":3,"file":"ViewLayoutCollapse.vue.d.ts","sourceRoot":"","sources":["../../../src/components/ViewLayout/ViewLayoutCollapse.vue"],"names":[],"mappings":"AAsEA,KAAK,WAAW,GAAG;IACjB,WAAW,CAAC,EAAE,OAAO,CAAA;IACrB,SAAS,CAAC,EAAE,MAAM,CAAA;IAClB,MAAM,CAAC,EAAE,QAAQ,GAAG,WAAW,CAAA;CAChC,CAAC;AAaF,iBAAS,cAAc;WAwJT,OAAO,IAA6B;;;;YAVtB,GAAG;;;YACD,GAAG;;;YACH,GAAG;;;;EAahC;AAYD,KAAK,oBAAoB,GAAG,UAAU,CAAC,OAAO,cAAc,CAAC,CAAC;AAC9D,QAAA,MAAM,eAAe,kSAOnB,CAAC;wBACkB,uBAAuB,CAAC,OAAO,eAAe,EAAE,oBAAoB,CAAC,OAAO,CAAC,CAAC;AAAnG,wBAAoG;AAUpG,KAAK,uBAAuB,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG;IACxC,QAAO;QACN,MAAM,EAAE,CAAC,CAAC;KAEV,CAAA;CACD,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ViewLayoutSection.vue.d.ts","sourceRoot":"","sources":["../../../src/components/ViewLayout/ViewLayoutSection.vue"],"names":[],"mappings":"AAmBA,iBAAS,cAAc;
|
|
1
|
+
{"version":3,"file":"ViewLayoutSection.vue.d.ts","sourceRoot":"","sources":["../../../src/components/ViewLayout/ViewLayoutSection.vue"],"names":[],"mappings":"AAmBA,iBAAS,cAAc;WA0DT,OAAO,IAA6B;;uBATvB,GAAG;yBACD,GAAG;;;;EAa/B;AAOD,KAAK,oBAAoB,GAAG,UAAU,CAAC,OAAO,cAAc,CAAC,CAAC;AAC9D,QAAA,MAAM,eAAe,uRAMnB,CAAC;wBACkB,uBAAuB,CAAC,OAAO,eAAe,EAAE,oBAAoB,CAAC,OAAO,CAAC,CAAC;AAAnG,wBAAoG;AAKpG,KAAK,uBAAuB,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG;IACxC,QAAO;QACN,MAAM,EAAE,CAAC,CAAC;KAEV,CAAA;CACD,CAAC"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { openBlock as o, createElementBlock as l, createElementVNode as s, renderSlot as t } from "vue";
|
|
2
2
|
import n from "../../_virtual/_plugin-vue_export-helper.js";
|
|
3
|
-
const c = {}, r = { class: "flex xl:h-full xl:min-w-0 flex-1 flex-col xl:custom-scroll bg-b-1" }, i = { class: "min-h-11 flex items-center px-2.5 text-sm font-medium sticky top-0 bg-b-1 xl:rounded-none z-1" };
|
|
4
|
-
function
|
|
3
|
+
const c = {}, r = { class: "flex xl:h-full xl:min-w-0 flex-1 flex-col xl:custom-scroll bg-b-1" }, i = { class: "border-b min-h-11 -mb-0.25 flex items-center px-2.5 text-sm font-medium sticky top-0 bg-b-1 xl:rounded-none z-1" };
|
|
4
|
+
function m(e, f) {
|
|
5
5
|
return o(), l("section", r, [
|
|
6
6
|
s("div", i, [
|
|
7
7
|
t(e.$slots, "title")
|
|
@@ -9,7 +9,7 @@ function f(e, m) {
|
|
|
9
9
|
t(e.$slots, "default")
|
|
10
10
|
]);
|
|
11
11
|
}
|
|
12
|
-
const a = /* @__PURE__ */ n(c, [["render",
|
|
12
|
+
const a = /* @__PURE__ */ n(c, [["render", m]]);
|
|
13
13
|
export {
|
|
14
14
|
a as default
|
|
15
15
|
};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export * from './AddressBar
|
|
2
|
-
export * from './Sidebar
|
|
3
|
-
export { default as OpenApiClientButton } from './OpenApiClientButton.vue
|
|
1
|
+
export * from './AddressBar';
|
|
2
|
+
export * from './Sidebar';
|
|
3
|
+
export { default as OpenApiClientButton } from './OpenApiClientButton.vue';
|
|
4
4
|
//# sourceMappingURL=index.d.ts.map
|
package/dist/hooks/index.d.ts
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
|
-
export * from './useKeyMap
|
|
2
|
-
export * from './useFileDialog
|
|
3
|
-
export * from './useSidebar
|
|
4
|
-
export * from './useLayout
|
|
1
|
+
export * from './useKeyMap';
|
|
2
|
+
export * from './useFileDialog';
|
|
3
|
+
export * from './useSidebar';
|
|
4
|
+
export * from './useLayout';
|
|
5
|
+
export { useResponseBody } from './useResponseBody';
|
|
5
6
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/hooks/index.ts"],"names":[],"mappings":"AAAA,cAAc,aAAa,CAAA;AAC3B,cAAc,iBAAiB,CAAA;AAC/B,cAAc,cAAc,CAAA;AAC5B,cAAc,aAAa,CAAA"}
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/hooks/index.ts"],"names":[],"mappings":"AAAA,cAAc,aAAa,CAAA;AAC3B,cAAc,iBAAiB,CAAA;AAC/B,cAAc,cAAc,CAAA;AAC5B,cAAc,aAAa,CAAA;AAC3B,OAAO,EAAE,eAAe,EAAE,MAAM,mBAAmB,CAAA"}
|
package/dist/hooks/index.js
CHANGED
|
@@ -1,11 +1,13 @@
|
|
|
1
1
|
import { keyMap as r } from "./useKeyMap.js";
|
|
2
|
-
import { useFileDialog as
|
|
2
|
+
import { useFileDialog as s } from "./useFileDialog.js";
|
|
3
3
|
import { useSidebar as f } from "./useSidebar.js";
|
|
4
4
|
import { LAYOUT_SYMBOL as u, useLayout as x } from "./useLayout.js";
|
|
5
|
+
import { useResponseBody as i } from "./useResponseBody.js";
|
|
5
6
|
export {
|
|
6
7
|
u as LAYOUT_SYMBOL,
|
|
7
8
|
r as keyMap,
|
|
8
|
-
|
|
9
|
+
s as useFileDialog,
|
|
9
10
|
x as useLayout,
|
|
11
|
+
i as useResponseBody,
|
|
10
12
|
f as useSidebar
|
|
11
13
|
};
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import MimeType from 'whatwg-mimetype';
|
|
2
|
+
/**
|
|
3
|
+
* Processes the response body of an HTTP request.
|
|
4
|
+
* Extracts MIME type, attachment filename, and generates a data URL.
|
|
5
|
+
*/
|
|
6
|
+
export declare function useResponseBody(props: {
|
|
7
|
+
data: unknown;
|
|
8
|
+
headers: {
|
|
9
|
+
name: string;
|
|
10
|
+
value: string;
|
|
11
|
+
required: boolean;
|
|
12
|
+
}[];
|
|
13
|
+
}): {
|
|
14
|
+
mimeType: import("vue").ComputedRef<MimeType>;
|
|
15
|
+
attachmentFilename: import("vue").ComputedRef<string>;
|
|
16
|
+
dataUrl: import("vue").ComputedRef<string>;
|
|
17
|
+
};
|
|
18
|
+
//# sourceMappingURL=useResponseBody.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"useResponseBody.d.ts","sourceRoot":"","sources":["../../src/hooks/useResponseBody.ts"],"names":[],"mappings":"AAEA,OAAO,QAAQ,MAAM,iBAAiB,CAAA;AAEtC;;;GAGG;AACH,wBAAgB,eAAe,CAAC,KAAK,EAAE;IACrC,IAAI,EAAE,OAAO,CAAA;IACb,OAAO,EAAE;QAAE,IAAI,EAAE,MAAM,CAAC;QAAC,KAAK,EAAE,MAAM,CAAC;QAAC,QAAQ,EAAE,OAAO,CAAA;KAAE,EAAE,CAAA;CAC9D;;;;EAmCA"}
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import { extractFilename as m } from "../libs/extractAttachmentFilename.js";
|
|
2
|
+
import { computed as o } from "vue";
|
|
3
|
+
import u from "whatwg-mimetype";
|
|
4
|
+
function y(e) {
|
|
5
|
+
const i = (t) => t instanceof Blob, a = o(() => {
|
|
6
|
+
var n;
|
|
7
|
+
const t = ((n = e.headers.find(
|
|
8
|
+
(r) => r.name.toLowerCase() === "content-type"
|
|
9
|
+
)) == null ? void 0 : n.value) ?? "";
|
|
10
|
+
return new u(t);
|
|
11
|
+
}), c = o(() => {
|
|
12
|
+
var n;
|
|
13
|
+
const t = ((n = e.headers.find(
|
|
14
|
+
(r) => r.name.toLowerCase() === "content-disposition"
|
|
15
|
+
)) == null ? void 0 : n.value) ?? "";
|
|
16
|
+
return m(t);
|
|
17
|
+
}), d = o(() => i(e.data) ? URL.createObjectURL(e.data) : typeof e.data == "string" ? URL.createObjectURL(
|
|
18
|
+
new Blob([e.data], { type: a.value.toString() })
|
|
19
|
+
) : e.data instanceof Object && Object.keys(e.data).length ? URL.createObjectURL(
|
|
20
|
+
new Blob([JSON.stringify(e.data)], {
|
|
21
|
+
type: a.value.toString()
|
|
22
|
+
})
|
|
23
|
+
) : "");
|
|
24
|
+
return { mimeType: a, attachmentFilename: c, dataUrl: d };
|
|
25
|
+
}
|
|
26
|
+
export {
|
|
27
|
+
y as useResponseBody
|
|
28
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"useResponseBody.test.d.ts","sourceRoot":"","sources":["../../src/hooks/useResponseBody.test.ts"],"names":[],"mappings":""}
|
package/dist/index.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
export * from './layouts/Modal
|
|
2
|
-
export * from './layouts/App
|
|
3
|
-
export { useWorkspace } from './store/store
|
|
4
|
-
export { createModalRouter, createWebHashRouter, createWebHistoryRouter, } from './router
|
|
1
|
+
export * from './layouts/Modal';
|
|
2
|
+
export * from './layouts/App';
|
|
3
|
+
export { useWorkspace } from './store/store';
|
|
4
|
+
export { createModalRouter, createWebHashRouter, createWebHistoryRouter, } from './router';
|
|
5
5
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -4,10 +4,10 @@ declare const _default: import("vue").DefineComponent<{}, {}, {}, {}, {}, import
|
|
|
4
4
|
uid: string;
|
|
5
5
|
}) => any;
|
|
6
6
|
}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{
|
|
7
|
-
onNewTab?: (
|
|
7
|
+
onNewTab?: (item: {
|
|
8
8
|
name: string;
|
|
9
9
|
uid: string;
|
|
10
|
-
}) => any
|
|
10
|
+
}) => any;
|
|
11
11
|
}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, HTMLDivElement>;
|
|
12
12
|
export default _default;
|
|
13
13
|
//# sourceMappingURL=ApiClientApp.vue.d.ts.map
|