@scalar/api-client 2.8.0 → 2.9.0
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 +90 -0
- package/dist/components/AddressBar/AddressBarHistory.vue2.js +9 -10
- package/dist/components/CodeInput/CodeInput.vue2.js +5 -5
- package/dist/components/CommandPalette/CommandActionForm.vue.d.ts.map +1 -1
- package/dist/components/CommandPalette/CommandActionForm.vue.js +2 -2
- package/dist/components/CommandPalette/CommandPaletteCollection.vue.js +3 -3
- package/dist/components/CommandPalette/CommandPaletteExample.vue.js +3 -3
- package/dist/components/CommandPalette/CommandPaletteImport.vue.js +18 -20
- package/dist/components/CommandPalette/CommandPaletteImportCurl.vue.js +2 -2
- package/dist/components/CommandPalette/CommandPaletteImportCurl.vue2.js +1 -1
- package/dist/components/CommandPalette/CommandPaletteServer.vue.js +13 -14
- package/dist/components/CommandPalette/CommandPaletteTag.vue.js +3 -3
- package/dist/components/CommandPalette/CommandPaletteWorkspace.vue.js +3 -3
- package/dist/components/CommandPalette/TheCommandPalette.vue.d.ts +4 -4
- package/dist/components/CommandPalette/TheCommandPalette.vue2.js +22 -24
- package/dist/components/CommandPalette/WatchModeToggle.vue.js +1 -1
- package/dist/components/DataTable/DataTableInput.vue2.js +1 -1
- package/dist/components/DataTable/DataTableInputSelect.vue.js +8 -9
- package/dist/components/EnvironmentSelector/EnvironmentSelector.vue.js +8 -10
- package/dist/components/HttpMethod/HttpMethod.vue.d.ts +2 -2
- package/dist/components/IconSelector.vue.js +1 -1
- package/dist/components/ImportCollection/DropEventListener.vue.js +12 -12
- package/dist/components/ImportCollection/ImportCollectionListener.vue.js +8 -8
- package/dist/components/ImportCollection/ImportCollectionModal.vue.js +1 -1
- package/dist/components/ImportCollection/ImportNowButton.vue.js +14 -16
- package/dist/components/ImportCollection/PasteEventListener.vue.js +1 -1
- package/dist/components/ImportCollection/PrefetchError.vue.js +2 -2
- package/dist/components/ImportCollection/WorkspaceSelector.vue.js +5 -7
- package/dist/components/ImportCollection/hooks/useUrlPrefetcher.d.ts +1 -1
- package/dist/components/ImportCollection/hooks/useUrlPrefetcher.d.ts.map +1 -1
- package/dist/components/ImportCollection/hooks/useUrlPrefetcher.js +3 -3
- package/dist/components/OpenApiClientButton.vue2.js +1 -1
- package/dist/components/Server/ServerSelector.vue.js +1 -2
- package/dist/components/SideNav/SideHelp.vue.js +13 -19
- package/dist/components/SideNav/SideNav.vue.js +4 -5
- package/dist/components/Sidebar/Actions/SidebarListElementForm.vue2.js +4 -5
- package/dist/components/Sidebar/Sidebar.vue.d.ts.map +1 -1
- package/dist/components/Sidebar/Sidebar.vue.js +2 -2
- package/dist/components/Sidebar/Sidebar.vue2.js +1 -1
- package/dist/components/TopNav/TopNav.vue.js +8 -10
- package/dist/components/TopNav/TopNavItem.vue2.js +8 -12
- package/dist/hooks/index.d.ts +0 -1
- package/dist/hooks/index.d.ts.map +1 -1
- package/dist/hooks/index.js +9 -11
- package/dist/hooks/useClientConfig.d.ts +9 -6
- package/dist/hooks/useClientConfig.d.ts.map +1 -1
- package/dist/index.d.ts +1 -2
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +8 -15
- package/dist/layouts/App/create-api-client-app.d.ts +3644 -3643
- package/dist/layouts/App/create-api-client-app.d.ts.map +1 -1
- package/dist/layouts/App/create-api-client-app.js +24 -18
- package/dist/layouts/Modal/create-api-client-modal.d.ts +5 -8089
- package/dist/layouts/Modal/create-api-client-modal.d.ts.map +1 -1
- package/dist/layouts/Modal/create-api-client-modal.js +28 -46
- package/dist/layouts/Modal/index.d.ts +2 -2
- package/dist/layouts/Modal/index.d.ts.map +1 -1
- package/dist/layouts/Modal/index.js +2 -5
- package/dist/layouts/Web/create-api-client-web.d.ts +20 -20
- package/dist/layouts/Web/create-api-client-web.d.ts.map +1 -1
- package/dist/layouts/Web/create-api-client-web.js +15 -12
- package/dist/libs/create-client.d.ts +25 -25
- package/dist/libs/create-client.d.ts.map +1 -1
- package/dist/libs/create-client.js +23 -23
- package/dist/libs/find-request.d.ts +2 -2
- package/dist/libs/postman.d.ts +1 -1
- package/dist/libs/postman.d.ts.map +1 -1
- package/dist/libs/postman.js +12 -12
- package/dist/libs/send-request/create-request-operation.js +8 -8
- package/dist/libs/send-request/create-request-operation.test.d.ts +2 -2
- package/dist/libs/validate-parameters.d.ts +10 -2
- package/dist/libs/validate-parameters.d.ts.map +1 -1
- package/dist/libs/validate-parameters.js +13 -6
- package/dist/plugins/plugin-manager.d.ts +1 -1
- package/dist/routes.d.ts +3 -184
- package/dist/routes.d.ts.map +1 -1
- package/dist/routes.js +6 -6
- package/dist/store/active-entities.d.ts +3 -3
- package/dist/store/active-entities.d.ts.map +1 -1
- package/dist/store/active-entities.js +2 -2
- package/dist/store/requests.d.ts +22 -22
- package/dist/store/router-params.d.ts.map +1 -1
- package/dist/store/store.d.ts +20 -20
- package/dist/style.css +1 -1
- package/dist/v2/blocks/operation-code-sample/components/OperationCodeSample.vue.js +2 -2
- package/dist/v2/blocks/operation-code-sample/components/OperationCodeSample.vue2.js +1 -1
- package/dist/v2/blocks/operation-code-sample/index.d.ts +1 -0
- package/dist/v2/blocks/operation-code-sample/index.d.ts.map +1 -1
- package/dist/v2/blocks/operation-code-sample/index.js +8 -6
- package/dist/v2/blocks/scalar-address-bar-block/components/AddressBar.vue.d.ts +5 -5
- package/dist/v2/blocks/scalar-address-bar-block/components/AddressBar.vue.d.ts.map +1 -1
- package/dist/v2/blocks/scalar-address-bar-block/components/AddressBar.vue.js +2 -2
- package/dist/v2/blocks/scalar-address-bar-block/components/AddressBar.vue2.js +3 -3
- package/dist/v2/blocks/scalar-address-bar-block/components/AddressBarHistory.vue2.js +3 -4
- package/dist/v2/blocks/scalar-address-bar-block/index.d.ts +1 -0
- package/dist/v2/blocks/scalar-address-bar-block/index.d.ts.map +1 -1
- package/dist/v2/blocks/scalar-auth-selector-block/components/AuthSelector.vue2.js +2 -2
- package/dist/v2/blocks/scalar-auth-selector-block/components/DeleteRequestAuthModal.vue.js +7 -8
- package/dist/v2/blocks/scalar-auth-selector-block/components/OAuth2.vue.js +44 -55
- package/dist/v2/blocks/scalar-auth-selector-block/components/OAuthScopesInput.vue.js +16 -18
- package/dist/v2/blocks/scalar-auth-selector-block/components/RequestAuthTab.vue.js +41 -46
- package/dist/v2/blocks/scalar-auth-selector-block/helpers/oauth.d.ts.map +1 -1
- package/dist/v2/blocks/scalar-operation-block/components/OperationBlock.vue.d.ts +3 -0
- package/dist/v2/blocks/scalar-operation-block/components/OperationBlock.vue.d.ts.map +1 -1
- package/dist/v2/blocks/scalar-operation-block/components/OperationBlock.vue.js +2 -2
- package/dist/v2/blocks/scalar-operation-block/components/OperationBlock.vue2.js +201 -187
- package/dist/v2/blocks/scalar-operation-block/components/OperationBody.vue.js +2 -2
- package/dist/v2/blocks/scalar-operation-block/components/OperationBody.vue2.js +8 -10
- package/dist/v2/blocks/scalar-operation-block/components/OperationParams.vue.js +2 -3
- package/dist/v2/blocks/scalar-operation-block/components/OperationTableRow.vue.js +2 -4
- package/dist/v2/blocks/scalar-response-block/components/Headers.vue.js +14 -16
- package/dist/v2/blocks/scalar-response-block/components/ResponseBlock.vue.d.ts +3 -0
- package/dist/v2/blocks/scalar-response-block/components/ResponseBlock.vue.d.ts.map +1 -1
- package/dist/v2/blocks/scalar-response-block/components/ResponseBlock.vue.js +3 -3
- package/dist/v2/blocks/scalar-response-block/components/ResponseBlock.vue2.js +87 -85
- package/dist/v2/blocks/scalar-response-block/components/ResponseBody.vue2.js +10 -11
- package/dist/v2/blocks/scalar-response-block/components/ResponseBodyPreview.vue2.js +4 -5
- package/dist/v2/blocks/scalar-response-block/components/ResponseBodyVirtual.vue.js +1 -1
- package/dist/v2/blocks/scalar-response-block/components/ResponseCookies.vue.js +3 -3
- package/dist/v2/blocks/scalar-response-block/components/ResponseEmpty.vue.js +1 -1
- package/dist/v2/blocks/scalar-response-block/components/ResponseEmpty.vue2.js +5 -5
- package/dist/v2/blocks/scalar-response-block/components/ResponseLoadingOverlay.vue2.js +9 -10
- package/dist/v2/components/TempReplaceMe.vue.d.ts +3 -0
- package/dist/v2/components/TempReplaceMe.vue.d.ts.map +1 -0
- package/dist/v2/components/TempReplaceMe.vue.js +12 -0
- package/dist/v2/components/resize/Resize.vue.d.ts +20 -0
- package/dist/v2/components/resize/Resize.vue.d.ts.map +1 -0
- package/dist/v2/components/resize/Resize.vue.js +8 -0
- package/dist/v2/components/resize/Resize.vue2.js +36 -0
- package/dist/v2/components/resize/index.d.ts +3 -0
- package/dist/v2/components/resize/index.d.ts.map +1 -0
- package/dist/v2/components/resize/index.js +4 -0
- package/dist/v2/components/sidebar/Sidebar.vue.d.ts +39 -0
- package/dist/v2/components/sidebar/Sidebar.vue.d.ts.map +1 -0
- package/dist/v2/components/sidebar/Sidebar.vue.js +95 -0
- package/dist/v2/components/sidebar/Sidebar.vue2.js +4 -0
- package/dist/v2/components/sidebar/SidebarMenu.vue.d.ts +13 -0
- package/dist/v2/components/sidebar/SidebarMenu.vue.d.ts.map +1 -0
- package/dist/v2/components/sidebar/SidebarMenu.vue.js +63 -0
- package/dist/v2/components/sidebar/SidebarMenu.vue2.js +4 -0
- package/dist/v2/components/sidebar/SidebarToggle.vue.d.ts +10 -0
- package/dist/v2/components/sidebar/SidebarToggle.vue.d.ts.map +1 -0
- package/dist/v2/components/sidebar/SidebarToggle.vue.js +52 -0
- package/dist/v2/components/sidebar/SidebarToggle.vue2.js +4 -0
- package/dist/v2/components/sidebar/index.d.ts +4 -0
- package/dist/v2/components/sidebar/index.d.ts.map +1 -0
- package/dist/v2/components/sidebar/index.js +8 -0
- package/dist/v2/features/app/App.vue.d.ts +16 -0
- package/dist/v2/features/app/App.vue.d.ts.map +1 -0
- package/dist/v2/features/app/App.vue.js +72 -0
- package/dist/v2/features/app/App.vue3.js +5 -0
- package/dist/v2/features/app/components/AppSidebar.vue.d.ts +30 -0
- package/dist/v2/features/app/components/AppSidebar.vue.d.ts.map +1 -0
- package/dist/v2/features/app/components/AppSidebar.vue.js +7 -0
- package/dist/v2/features/app/components/AppSidebar.vue2.js +117 -0
- package/dist/v2/features/app/components/DesktopTabs.vue.d.ts +3 -0
- package/dist/v2/features/app/components/DesktopTabs.vue.d.ts.map +1 -0
- package/dist/v2/features/app/components/DesktopTabs.vue.js +14 -0
- package/dist/v2/features/app/components/DownloadAppButton.vue.d.ts +3 -0
- package/dist/v2/features/app/components/DownloadAppButton.vue.d.ts.map +1 -0
- package/dist/v2/features/app/components/DownloadAppButton.vue.js +7 -0
- package/dist/v2/features/app/components/DownloadAppButton.vue2.js +19 -0
- package/dist/v2/features/app/components/WebTopNav.vue.d.ts +16 -0
- package/dist/v2/features/app/components/WebTopNav.vue.d.ts.map +1 -0
- package/dist/v2/features/app/components/WebTopNav.vue.js +28 -0
- package/dist/v2/features/app/components/WebTopNav.vue2.js +4 -0
- package/dist/v2/features/app/components/index.d.ts +2 -0
- package/dist/v2/features/app/components/index.d.ts.map +1 -0
- package/dist/v2/features/app/components/index.js +5 -0
- package/dist/v2/features/app/helpers/create-api-client-app.d.ts +25 -0
- package/dist/v2/features/app/helpers/create-api-client-app.d.ts.map +1 -0
- package/dist/v2/features/app/helpers/create-api-client-app.js +21 -0
- package/dist/v2/features/app/helpers/routes.d.ts +103 -0
- package/dist/v2/features/app/helpers/routes.d.ts.map +1 -0
- package/dist/v2/features/app/helpers/routes.js +115 -0
- package/dist/v2/features/app/index.d.ts +2 -0
- package/dist/v2/features/app/index.d.ts.map +1 -0
- package/dist/v2/features/app/index.js +4 -0
- package/dist/v2/features/collection/DocumentCollection.test.d.ts +2 -0
- package/dist/v2/features/collection/DocumentCollection.test.d.ts.map +1 -0
- package/dist/v2/features/collection/DocumentCollection.vue.d.ts +12 -0
- package/dist/v2/features/collection/DocumentCollection.vue.d.ts.map +1 -0
- package/dist/v2/features/collection/DocumentCollection.vue.js +4 -0
- package/dist/v2/features/collection/DocumentCollection.vue2.js +82 -0
- package/dist/v2/features/collection/WorkspaceCollection.test.d.ts +2 -0
- package/dist/v2/features/collection/WorkspaceCollection.test.d.ts.map +1 -0
- package/dist/v2/features/collection/WorkspaceCollection.vue.d.ts +10 -0
- package/dist/v2/features/collection/WorkspaceCollection.vue.d.ts.map +1 -0
- package/dist/v2/features/collection/WorkspaceCollection.vue.js +4 -0
- package/dist/v2/features/collection/WorkspaceCollection.vue2.js +38 -0
- package/dist/v2/features/collection/components/Authentication.test.d.ts +2 -0
- package/dist/v2/features/collection/components/Authentication.test.d.ts.map +1 -0
- package/dist/v2/features/collection/components/Authentication.vue.d.ts +48 -0
- package/dist/v2/features/collection/components/Authentication.vue.d.ts.map +1 -0
- package/dist/v2/features/collection/components/Authentication.vue.js +7 -0
- package/dist/v2/features/collection/components/Authentication.vue2.js +50 -0
- package/dist/v2/features/collection/components/Cookies.vue.d.ts +3 -0
- package/dist/v2/features/collection/components/Cookies.vue.d.ts.map +1 -0
- package/dist/v2/features/collection/components/Cookies.vue.js +9 -0
- package/dist/v2/features/collection/components/Environment.test.d.ts +2 -0
- package/dist/v2/features/collection/components/Environment.test.d.ts.map +1 -0
- package/dist/v2/features/collection/components/Environment.vue.d.ts +89 -0
- package/dist/v2/features/collection/components/Environment.vue.d.ts.map +1 -0
- package/dist/v2/features/collection/components/Environment.vue.js +4 -0
- package/dist/v2/features/collection/components/Environment.vue2.js +34 -0
- package/dist/v2/features/collection/components/Form.vue.d.ts +29 -0
- package/dist/v2/features/collection/components/Form.vue.d.ts.map +1 -0
- package/dist/v2/features/collection/components/Form.vue.js +83 -0
- package/dist/v2/features/collection/components/Form.vue2.js +4 -0
- package/dist/v2/features/collection/components/LabelInput.test.d.ts +2 -0
- package/dist/v2/features/collection/components/LabelInput.test.d.ts.map +1 -0
- package/dist/v2/features/collection/components/LabelInput.vue.d.ts +10 -0
- package/dist/v2/features/collection/components/LabelInput.vue.d.ts.map +1 -0
- package/dist/v2/features/collection/components/LabelInput.vue.js +7 -0
- package/dist/v2/features/collection/components/LabelInput.vue2.js +29 -0
- package/dist/v2/features/collection/components/Overview.test.d.ts +2 -0
- package/dist/v2/features/collection/components/Overview.test.d.ts.map +1 -0
- package/dist/v2/features/collection/components/Overview.vue.d.ts +14 -0
- package/dist/v2/features/collection/components/Overview.vue.d.ts.map +1 -0
- package/dist/v2/features/collection/components/Overview.vue.js +4 -0
- package/dist/v2/features/collection/components/Overview.vue2.js +91 -0
- package/dist/v2/features/collection/components/Servers.test.d.ts +2 -0
- package/dist/v2/features/collection/components/Servers.test.d.ts.map +1 -0
- package/dist/v2/features/collection/components/Servers.vue.d.ts +33 -0
- package/dist/v2/features/collection/components/Servers.vue.d.ts.map +1 -0
- package/dist/v2/features/collection/components/Servers.vue.js +4 -0
- package/dist/v2/features/collection/components/Servers.vue2.js +120 -0
- package/dist/v2/features/collection/components/Settings.test.d.ts +2 -0
- package/dist/v2/features/collection/components/Settings.test.d.ts.map +1 -0
- package/dist/v2/features/collection/components/Settings.vue.d.ts +17 -0
- package/dist/v2/features/collection/components/Settings.vue.d.ts.map +1 -0
- package/dist/v2/features/collection/components/Settings.vue.js +7 -0
- package/dist/v2/features/collection/components/Settings.vue2.js +100 -0
- package/dist/v2/features/collection/components/Tabs.test.d.ts +2 -0
- package/dist/v2/features/collection/components/Tabs.test.d.ts.map +1 -0
- package/dist/v2/features/collection/components/Tabs.vue.d.ts +6 -0
- package/dist/v2/features/collection/components/Tabs.vue.d.ts.map +1 -0
- package/dist/v2/features/collection/components/Tabs.vue.js +46 -0
- package/dist/v2/features/collection/components/Tabs.vue2.js +4 -0
- package/dist/v2/features/environments/Environments.test.d.ts +2 -0
- package/dist/v2/features/environments/Environments.test.d.ts.map +1 -0
- package/dist/v2/features/environments/Environments.vue.d.ts +31 -0
- package/dist/v2/features/environments/Environments.vue.d.ts.map +1 -0
- package/dist/v2/features/environments/Environments.vue.js +65 -0
- package/dist/v2/features/environments/Environments.vue2.js +4 -0
- package/dist/v2/features/environments/EnvironmentsList.test.d.ts +2 -0
- package/dist/v2/features/environments/EnvironmentsList.test.d.ts.map +1 -0
- package/dist/v2/features/environments/EnvironmentsList.vue.d.ts +98 -0
- package/dist/v2/features/environments/EnvironmentsList.vue.d.ts.map +1 -0
- package/dist/v2/features/environments/EnvironmentsList.vue.js +114 -0
- package/dist/v2/features/environments/EnvironmentsList.vue2.js +4 -0
- package/dist/v2/features/environments/components/Environment.test.d.ts +2 -0
- package/dist/v2/features/environments/components/Environment.test.d.ts.map +1 -0
- package/dist/v2/features/environments/components/Environment.vue.d.ts +70 -0
- package/dist/v2/features/environments/components/Environment.vue.d.ts.map +1 -0
- package/dist/v2/features/environments/components/Environment.vue.js +104 -0
- package/dist/v2/features/environments/components/Environment.vue2.js +4 -0
- package/dist/v2/features/environments/components/EnvironmentColorUpdateModal.vue.d.ts +20 -0
- package/dist/v2/features/environments/components/EnvironmentColorUpdateModal.vue.d.ts.map +1 -0
- package/dist/v2/features/environments/components/EnvironmentColorUpdateModal.vue.js +48 -0
- package/dist/v2/features/environments/components/EnvironmentColorUpdateModal.vue2.js +4 -0
- package/dist/v2/features/environments/components/EnvironmentColors.test.d.ts +2 -0
- package/dist/v2/features/environments/components/EnvironmentColors.test.d.ts.map +1 -0
- package/dist/v2/features/environments/components/EnvironmentColors.vue.d.ts +10 -0
- package/dist/v2/features/environments/components/EnvironmentColors.vue.d.ts.map +1 -0
- package/dist/v2/features/environments/components/EnvironmentColors.vue.js +97 -0
- package/dist/v2/features/environments/components/EnvironmentColors.vue2.js +4 -0
- package/dist/v2/features/environments/components/EnvironmentCreateModal.vue.d.ts +19 -0
- package/dist/v2/features/environments/components/EnvironmentCreateModal.vue.d.ts.map +1 -0
- package/dist/v2/features/environments/components/EnvironmentCreateModal.vue.js +63 -0
- package/dist/v2/features/environments/components/EnvironmentCreateModal.vue2.js +4 -0
- package/dist/v2/features/environments/components/EnvironmentDeleteModal.vue.d.ts +14 -0
- package/dist/v2/features/environments/components/EnvironmentDeleteModal.vue.d.ts.map +1 -0
- package/dist/v2/features/environments/components/EnvironmentDeleteModal.vue.js +53 -0
- package/dist/v2/features/environments/components/EnvironmentDeleteModal.vue2.js +4 -0
- package/dist/v2/features/environments/components/EnvironmentNameUpdateModal.vue.d.ts +18 -0
- package/dist/v2/features/environments/components/EnvironmentNameUpdateModal.vue.d.ts.map +1 -0
- package/dist/v2/features/environments/components/EnvironmentNameUpdateModal.vue.js +35 -0
- package/dist/v2/features/environments/components/EnvironmentNameUpdateModal.vue2.js +4 -0
- package/dist/v2/features/environments/components/EnvironmentVariablesTable.test.d.ts +2 -0
- package/dist/v2/features/environments/components/EnvironmentVariablesTable.test.d.ts.map +1 -0
- package/dist/v2/features/environments/components/EnvironmentVariablesTable.vue.d.ts +23 -0
- package/dist/v2/features/environments/components/EnvironmentVariablesTable.vue.d.ts.map +1 -0
- package/dist/v2/features/environments/components/EnvironmentVariablesTable.vue.js +7 -0
- package/dist/v2/features/environments/components/EnvironmentVariablesTable.vue2.js +122 -0
- package/dist/v2/features/environments/index.d.ts +5 -0
- package/dist/v2/features/environments/index.d.ts.map +1 -0
- package/dist/v2/features/environments/index.js +6 -0
- package/dist/v2/features/global-cookies/components/CookiesTable.test.d.ts +2 -0
- package/dist/v2/features/global-cookies/components/CookiesTable.test.d.ts.map +1 -0
- package/dist/v2/features/global-cookies/components/CookiesTable.vue.d.ts +25 -0
- package/dist/v2/features/global-cookies/components/CookiesTable.vue.d.ts.map +1 -0
- package/dist/v2/features/global-cookies/components/CookiesTable.vue.js +7 -0
- package/dist/v2/features/global-cookies/components/CookiesTable.vue2.js +156 -0
- package/dist/v2/features/global-cookies/components/GlobalCookies.test.d.ts +2 -0
- package/dist/v2/features/global-cookies/components/GlobalCookies.test.d.ts.map +1 -0
- package/dist/v2/features/global-cookies/components/GlobalCookies.vue.d.ts +32 -0
- package/dist/v2/features/global-cookies/components/GlobalCookies.vue.d.ts.map +1 -0
- package/dist/v2/features/global-cookies/components/GlobalCookies.vue.js +7 -0
- package/dist/v2/features/global-cookies/components/GlobalCookies.vue2.js +58 -0
- package/dist/v2/features/global-cookies/index.d.ts +2 -0
- package/dist/v2/features/global-cookies/index.d.ts.map +1 -0
- package/dist/v2/features/global-cookies/index.js +4 -0
- package/dist/v2/features/modal/Modal.vue.d.ts +16 -0
- package/dist/v2/features/modal/Modal.vue.d.ts.map +1 -0
- package/dist/v2/features/modal/Modal.vue.js +7 -0
- package/dist/v2/features/modal/Modal.vue2.js +81 -0
- package/dist/v2/features/modal/helpers/create-api-client-modal.d.ts +53 -0
- package/dist/v2/features/modal/helpers/create-api-client-modal.d.ts.map +1 -0
- package/dist/v2/features/modal/helpers/create-api-client-modal.js +46 -0
- package/dist/v2/features/modal/index.d.ts +2 -0
- package/dist/v2/features/modal/index.d.ts.map +1 -0
- package/dist/v2/features/modal/index.js +4 -0
- package/dist/v2/features/operation/Operation.test.d.ts +2 -0
- package/dist/v2/features/operation/Operation.test.d.ts.map +1 -0
- package/dist/v2/features/operation/Operation.vue.d.ts +79 -0
- package/dist/v2/features/operation/Operation.vue.d.ts.map +1 -0
- package/dist/v2/features/operation/Operation.vue.js +124 -0
- package/dist/v2/features/operation/Operation.vue2.js +4 -0
- package/dist/v2/features/operation/components/Header.test.d.ts +2 -0
- package/dist/v2/features/operation/components/Header.test.d.ts.map +1 -0
- package/dist/v2/features/operation/components/Header.vue.d.ts +85 -0
- package/dist/v2/features/operation/components/Header.vue.d.ts.map +1 -0
- package/dist/v2/features/operation/components/Header.vue.js +7 -0
- package/dist/v2/features/operation/components/Header.vue2.js +97 -0
- package/dist/v2/features/operation/index.d.ts +3 -0
- package/dist/v2/features/operation/index.d.ts.map +1 -0
- package/dist/v2/features/operation/index.js +4 -0
- package/dist/v2/features/settings/Settings.test.d.ts +2 -0
- package/dist/v2/features/settings/Settings.test.d.ts.map +1 -0
- package/dist/v2/features/settings/Settings.vue.d.ts +22 -0
- package/dist/v2/features/settings/Settings.vue.d.ts.map +1 -0
- package/dist/v2/features/settings/Settings.vue.js +268 -0
- package/dist/v2/features/settings/Settings.vue2.js +4 -0
- package/dist/v2/features/settings/components/Appearance.vue.d.ts +10 -0
- package/dist/v2/features/settings/components/Appearance.vue.d.ts.map +1 -0
- package/dist/v2/features/settings/components/Appearance.vue.js +88 -0
- package/dist/v2/features/settings/components/Appearance.vue2.js +4 -0
- package/dist/v2/features/settings/components/Section.vue.d.ts +14 -0
- package/dist/v2/features/settings/components/Section.vue.d.ts.map +1 -0
- package/dist/v2/features/settings/components/Section.vue.js +24 -0
- package/dist/v2/features/settings/components/Section.vue2.js +4 -0
- package/dist/v2/features/settings/helpers/get-theme-colors.d.ts +9 -0
- package/dist/v2/features/settings/helpers/get-theme-colors.d.ts.map +1 -0
- package/dist/v2/features/settings/helpers/get-theme-colors.js +17 -0
- package/dist/v2/features/settings/index.d.ts +2 -0
- package/dist/v2/features/settings/index.d.ts.map +1 -0
- package/dist/v2/features/settings/index.js +4 -0
- package/dist/v2/hooks/use-document-watcher.d.ts +28 -0
- package/dist/v2/hooks/use-document-watcher.d.ts.map +1 -0
- package/dist/v2/hooks/use-document-watcher.test.d.ts +2 -0
- package/dist/v2/hooks/use-document-watcher.test.d.ts.map +1 -0
- package/dist/v2/hooks/use-workspace-client-events.d.ts +8 -0
- package/dist/v2/hooks/use-workspace-client-events.d.ts.map +1 -0
- package/dist/v2/hooks/use-workspace-client-events.js +13 -0
- package/dist/v2/plugins.d.ts +44 -0
- package/dist/v2/plugins.d.ts.map +1 -0
- package/dist/v2/types/layout.d.ts +10 -0
- package/dist/v2/types/layout.d.ts.map +1 -0
- package/dist/views/Collection/Collection.vue2.js +6 -6
- package/dist/views/Collection/CollectionCookies.vue2.js +3 -3
- package/dist/views/Collection/CollectionEnvironment.vue2.js +12 -13
- package/dist/views/Collection/CollectionScripts.vue2.js +3 -3
- package/dist/views/Collection/CollectionServerForm.vue.d.ts.map +1 -1
- package/dist/views/Collection/CollectionServerForm.vue.js +42 -62
- package/dist/views/Collection/CollectionServers.vue.d.ts.map +1 -1
- package/dist/views/Collection/CollectionServers.vue2.js +43 -50
- package/dist/views/Collection/CollectionSettings.vue.js +2 -2
- package/dist/views/Collection/CollectionSettings.vue2.js +5 -6
- package/dist/views/Collection/CollectionSync.vue2.js +3 -3
- package/dist/views/Collection/components/EnvironmentForm.vue2.js +10 -12
- package/dist/views/Collection/components/MarkdownInput.vue2.js +2 -4
- package/dist/views/Cookies/CookieModal.vue2.js +6 -6
- package/dist/views/Cookies/Cookies.vue2.js +6 -6
- package/dist/views/Environment/Environment.vue2.js +5 -6
- package/dist/views/Environment/EnvironmentModal.vue.js +13 -14
- package/dist/views/Environment/EnvironmentVariableDropdown.vue.js +8 -9
- package/dist/views/Request/RequestRoot.vue.d.ts.map +1 -1
- package/dist/views/Request/RequestRoot.vue.js +2 -2
- package/dist/views/Request/RequestRoot.vue2.js +79 -80
- package/dist/views/Request/RequestSection/RequestAuth/DeleteRequestAuthModal.vue.js +10 -11
- package/dist/views/Request/RequestSection/RequestAuth/OAuth2.vue.js +44 -55
- package/dist/views/Request/RequestSection/RequestAuth/OAuthScopesInput.vue.js +10 -12
- package/dist/views/Request/RequestSection/RequestAuth/RequestAuth.vue2.js +2 -2
- package/dist/views/Request/RequestSection/RequestAuth/RequestAuthTab.vue.js +39 -44
- 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 +96 -78
- package/dist/views/Request/RequestSection/RequestCodeExample.vue2.js +3 -3
- package/dist/views/Request/RequestSection/RequestParams.vue.js +2 -3
- package/dist/views/Request/RequestSection/RequestSection.vue.js +2 -2
- package/dist/views/Request/RequestSection/RequestSection.vue2.js +55 -55
- package/dist/views/Request/RequestSection/RequestTable.vue2.js +15 -17
- package/dist/views/Request/RequestSidebar.vue2.js +7 -8
- package/dist/views/Request/RequestSidebarItem.vue.js +2 -2
- package/dist/views/Request/RequestSidebarItem.vue2.js +31 -32
- package/dist/views/Request/RequestSidebarItemMenu.vue.js +1 -1
- package/dist/views/Request/RequestSidebarItemMenu.vue2.js +13 -16
- package/dist/views/Request/ResponseSection/RequestHeaders.vue.js +11 -13
- package/dist/views/Request/ResponseSection/ResponseBody.vue2.js +4 -5
- package/dist/views/Request/ResponseSection/ResponseBodyPreview.vue2.js +4 -5
- package/dist/views/Request/ResponseSection/ResponseBodyVirtual.vue.js +1 -1
- package/dist/views/Request/ResponseSection/ResponseCookies.vue.js +3 -3
- package/dist/views/Request/ResponseSection/ResponseEmpty.vue2.js +4 -4
- package/dist/views/Request/ResponseSection/ResponseHeaders.vue.js +11 -13
- package/dist/views/Request/ResponseSection/ResponseLoadingOverlay.vue2.js +7 -8
- package/dist/views/Request/components/WorkspaceDropdown.vue.js +11 -14
- package/dist/views/Request/libs/oauth2.d.ts +1 -1
- package/dist/views/Request/libs/oauth2.d.ts.map +1 -1
- package/dist/views/Settings/SettingsGeneral.vue.js +40 -42
- package/dist/views/Settings/components/SettingsAppearance.vue.js +8 -11
- package/package.json +52 -27
- package/dist/hooks/useKeyMap.d.ts +0 -2
- package/dist/hooks/useKeyMap.d.ts.map +0 -1
- package/dist/hooks/useKeyMap.js +0 -9
- package/dist/router.d.ts +0 -8
- package/dist/router.d.ts.map +0 -1
- package/dist/router.js +0 -20
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { defineComponent as ee, ref as f, computed as z, watch as te, onMounted as oe, onBeforeUnmount as ne, createBlock as N, openBlock as l, unref as i, withCtx as R, createElementVNode as v, createVNode as k, createElementBlock as c, createTextVNode as U, createCommentVNode as ae, withKeys as A, withModifiers as S, Fragment as T, renderList as V, withDirectives as le, toDisplayString as O, vShow as re, normalizeClass as se, resolveDynamicComponent as me, mergeProps as ie, nextTick as
|
|
1
|
+
import { defineComponent as ee, ref as f, computed as z, watch as te, onMounted as oe, onBeforeUnmount as ne, createBlock as N, openBlock as l, unref as i, withCtx as R, createElementVNode as v, createVNode as k, createElementBlock as c, createTextVNode as U, createCommentVNode as ae, withKeys as A, withModifiers as S, Fragment as T, renderList as V, withDirectives as le, toDisplayString as O, vShow as re, normalizeClass as se, resolveDynamicComponent as me, mergeProps as ie, nextTick as _ } from "vue";
|
|
2
2
|
import { Dialog as ce, DialogPanel as ue, DialogTitle as de } from "@headlessui/vue";
|
|
3
3
|
import { useModal as pe, ScalarIcon as D } from "@scalar/components";
|
|
4
4
|
import { useRouter as fe } from "vue-router";
|
|
@@ -8,9 +8,9 @@ import { PathId as L } from "../../routes.js";
|
|
|
8
8
|
import { useActiveEntities as he } from "../../store/active-entities.js";
|
|
9
9
|
import ke from "./CommandPaletteCollection.vue.js";
|
|
10
10
|
import xe from "./CommandPaletteExample.vue.js";
|
|
11
|
-
import
|
|
12
|
-
import
|
|
13
|
-
import
|
|
11
|
+
import ye from "./CommandPaletteImport.vue.js";
|
|
12
|
+
import ge from "./CommandPaletteImportCurl.vue.js";
|
|
13
|
+
import _e from "./CommandPaletteServer.vue.js";
|
|
14
14
|
import be from "./CommandPaletteTag.vue.js";
|
|
15
15
|
import we from "./CommandPaletteWorkspace.vue.js";
|
|
16
16
|
import { useWorkspace as Pe } from "../../store/store.js";
|
|
@@ -26,14 +26,14 @@ const Ie = {
|
|
|
26
26
|
}, Ee = {
|
|
27
27
|
name: "TheCommandPalette"
|
|
28
28
|
}, We = {
|
|
29
|
-
"Import from OpenAPI/Swagger/Postman/cURL":
|
|
29
|
+
"Import from OpenAPI/Swagger/Postman/cURL": ye,
|
|
30
30
|
"Create Request": "",
|
|
31
31
|
"Create Workspace": we,
|
|
32
32
|
"Add Tag": be,
|
|
33
|
-
"Add Server":
|
|
33
|
+
"Add Server": _e,
|
|
34
34
|
"Create Collection": ke,
|
|
35
35
|
"Add Example": xe,
|
|
36
|
-
"Import from cURL":
|
|
36
|
+
"Import from cURL": ge
|
|
37
37
|
}, Ye = /* @__PURE__ */ ee({
|
|
38
38
|
...Ee,
|
|
39
39
|
setup(qe) {
|
|
@@ -121,7 +121,7 @@ const Ie = {
|
|
|
121
121
|
), d = () => {
|
|
122
122
|
C.hide(), r.value = "", s.value = null, m.value = -1;
|
|
123
123
|
}, j = (e) => {
|
|
124
|
-
r.value !== "" && e?.preventDefault(), s.value = null,
|
|
124
|
+
r.value !== "" && e?.preventDefault(), s.value = null, _(() => y.value?.focus());
|
|
125
125
|
}, q = (e) => {
|
|
126
126
|
if ("path" in e)
|
|
127
127
|
b.push(e.path), d();
|
|
@@ -137,7 +137,7 @@ const Ie = {
|
|
|
137
137
|
workspace: x.value?.uid,
|
|
138
138
|
request: o.uid
|
|
139
139
|
}
|
|
140
|
-
}), d(),
|
|
140
|
+
}), d(), _(() => {
|
|
141
141
|
u.hotKeys.emit({
|
|
142
142
|
focusAddressBar: new KeyboardEvent("keydown", { key: "l" })
|
|
143
143
|
});
|
|
@@ -146,11 +146,11 @@ const Ie = {
|
|
|
146
146
|
d();
|
|
147
147
|
} else
|
|
148
148
|
s.value = e.name;
|
|
149
|
-
},
|
|
149
|
+
}, y = f(), M = ({
|
|
150
150
|
commandName: e,
|
|
151
151
|
metaData: t
|
|
152
152
|
} = {}) => {
|
|
153
|
-
s.value = e ?? null, w.value = t, C.show(),
|
|
153
|
+
s.value = e ?? null, w.value = t, C.show(), _(() => y.value?.focus());
|
|
154
154
|
};
|
|
155
155
|
te(r, (e) => {
|
|
156
156
|
e && h.value.length > 0 && (m.value = 0);
|
|
@@ -159,8 +159,8 @@ const Ie = {
|
|
|
159
159
|
if (!C.open) return;
|
|
160
160
|
t.preventDefault();
|
|
161
161
|
const o = e === "up" ? -1 : 1, n = h.value.length;
|
|
162
|
-
m.value = (m.value + o + n) % n,
|
|
163
|
-
const a =
|
|
162
|
+
m.value = (m.value + o + n) % n, _(() => {
|
|
163
|
+
const a = y.value?.closest(".custom-scroll");
|
|
164
164
|
if (!a) return;
|
|
165
165
|
if (m.value === 0) {
|
|
166
166
|
a.scrollTop = 0;
|
|
@@ -168,8 +168,8 @@ const Ie = {
|
|
|
168
168
|
}
|
|
169
169
|
const p = W.value[m.value];
|
|
170
170
|
if (!p) return;
|
|
171
|
-
const
|
|
172
|
-
I < Y ? a.scrollTop = I -
|
|
171
|
+
const g = (a.querySelector(".sticky")?.clientHeight || 0) + 16, K = 6, I = p.offsetTop, $ = I + p.clientHeight, Y = a.scrollTop + g, Z = a.scrollTop + a.clientHeight - K;
|
|
172
|
+
I < Y ? a.scrollTop = I - g : $ > Z && (a.scrollTop = $ - a.clientHeight + K);
|
|
173
173
|
});
|
|
174
174
|
}, P = z(
|
|
175
175
|
() => h.value[m.value]
|
|
@@ -203,11 +203,10 @@ const Ie = {
|
|
|
203
203
|
k(i(ue), { class: "commandmenu z-overlay flex flex-col" }, {
|
|
204
204
|
default: R(() => [
|
|
205
205
|
k(i(de), { class: "sr-only" }, {
|
|
206
|
-
default: R(() => t[6] || (t[6] = [
|
|
207
|
-
U("API Client Command Menu")
|
|
208
|
-
])),
|
|
209
|
-
_: 1
|
|
210
|
-
__: [6]
|
|
206
|
+
default: R(() => [...t[6] || (t[6] = [
|
|
207
|
+
U("API Client Command Menu", -1)
|
|
208
|
+
])]),
|
|
209
|
+
_: 1
|
|
211
210
|
}),
|
|
212
211
|
s.value ? (l(), c("div", Le, [
|
|
213
212
|
v("button", {
|
|
@@ -238,7 +237,7 @@ const Ie = {
|
|
|
238
237
|
v("input", {
|
|
239
238
|
id: "commandmenu",
|
|
240
239
|
ref_key: "commandInputRef",
|
|
241
|
-
ref:
|
|
240
|
+
ref: y,
|
|
242
241
|
autocomplete: "off",
|
|
243
242
|
autofocus: "",
|
|
244
243
|
class: "w-full rounded border-none bg-none py-1.5 text-sm focus:outline-none",
|
|
@@ -272,7 +271,7 @@ const Ie = {
|
|
|
272
271
|
ref: (a) => {
|
|
273
272
|
if (a) {
|
|
274
273
|
const p = h.value.findIndex(
|
|
275
|
-
(
|
|
274
|
+
(g) => g.name === n.name
|
|
276
275
|
);
|
|
277
276
|
p !== -1 && (W.value[p] = a);
|
|
278
277
|
}
|
|
@@ -297,8 +296,7 @@ const Ie = {
|
|
|
297
296
|
_: 1
|
|
298
297
|
})
|
|
299
298
|
]),
|
|
300
|
-
_: 1
|
|
301
|
-
__: [7]
|
|
299
|
+
_: 1
|
|
302
300
|
}, 8, ["open"]));
|
|
303
301
|
}
|
|
304
302
|
});
|
|
@@ -46,7 +46,7 @@ const T = ["for"], N = { class: "relative flex min-w-0 flex-1" }, P = ["readOnly
|
|
|
46
46
|
onClick: b
|
|
47
47
|
}, [
|
|
48
48
|
p(e.$slots, "default", {}, void 0, !0),
|
|
49
|
-
l[5] || (l[5] = O(": "))
|
|
49
|
+
l[5] || (l[5] = O(": ", -1))
|
|
50
50
|
], 8, T)) : u("", !0),
|
|
51
51
|
I("div", N, [
|
|
52
52
|
n.enum && n.enum.length ? (a(), s(F, {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { defineComponent as T, computed as m, ref as V, watch as
|
|
1
|
+
import { defineComponent as T, computed as m, ref as V, watch as S, nextTick as E, createElementBlock as f, openBlock as o, createBlock as v, withDirectives as K, unref as a, withCtx as s, createVNode as n, createElementVNode as i, toDisplayString as y, withKeys as M, vModelText as R, createCommentVNode as C, Fragment as _, renderList as U, normalizeClass as $ } from "vue";
|
|
2
2
|
import { ScalarComboboxMultiselect as F, ScalarButton as b, ScalarIcon as h, ScalarDropdown as L, ScalarDropdownItem as D, ScalarDropdownDivider as W } from "@scalar/components";
|
|
3
3
|
const q = { class: "group-[.alert]:outline-orange group-[.error]:outline-red w-full pr-10 -outline-offset-1 has-[:focus-visible]:rounded-[4px] has-[:focus-visible]:outline" }, G = { class: "text-c-1 whitespace-nowrap" }, H = { class: "text-c-1 overflow-hidden text-ellipsis" }, J = { class: "overflow-hidden text-ellipsis" }, P = { class: "flex h-4 w-4 items-center justify-center" }, Z = /* @__PURE__ */ T({
|
|
4
4
|
__name: "DataTableInputSelect",
|
|
@@ -12,7 +12,7 @@ const q = { class: "group-[.alert]:outline-orange group-[.error]:outline-red w-f
|
|
|
12
12
|
emits: ["update:modelValue"],
|
|
13
13
|
setup(z, { emit: B }) {
|
|
14
14
|
const u = z, c = B, p = m(() => u.value ?? []), d = V(!1), r = V(""), x = V(null);
|
|
15
|
-
|
|
15
|
+
S(r, (e) => {
|
|
16
16
|
c("update:modelValue", e);
|
|
17
17
|
});
|
|
18
18
|
const g = (e) => {
|
|
@@ -22,7 +22,7 @@ const q = { class: "group-[.alert]:outline-orange group-[.error]:outline-red w-f
|
|
|
22
22
|
}, A = () => {
|
|
23
23
|
r.value.trim() || c("update:modelValue", ""), d.value = !1;
|
|
24
24
|
}, I = (e) => u.modelValue.toString() === e;
|
|
25
|
-
|
|
25
|
+
S(d, (e) => {
|
|
26
26
|
e && E(() => {
|
|
27
27
|
x.value?.focus();
|
|
28
28
|
});
|
|
@@ -79,7 +79,7 @@ const q = { class: "group-[.alert]:outline-orange group-[.error]:outline-red w-f
|
|
|
79
79
|
value: k.value
|
|
80
80
|
}, {
|
|
81
81
|
items: s(() => [
|
|
82
|
-
(o(!0), f(
|
|
82
|
+
(o(!0), f(_, null, U(p.value, (t) => (o(), v(a(D), {
|
|
83
83
|
key: t,
|
|
84
84
|
class: "group/item flex items-center gap-1.5 overflow-hidden text-ellipsis whitespace-nowrap",
|
|
85
85
|
value: t,
|
|
@@ -102,8 +102,8 @@ const q = { class: "group-[.alert]:outline-orange group-[.error]:outline-red w-f
|
|
|
102
102
|
]),
|
|
103
103
|
_: 2
|
|
104
104
|
}, 1032, ["value", "onClick"]))), 128)),
|
|
105
|
-
e.canAddCustomValue ? (o(), f(
|
|
106
|
-
p.value.length ? (o(), v(a(W), { key: 0 })) :
|
|
105
|
+
e.canAddCustomValue ? (o(), f(_, { key: 0 }, [
|
|
106
|
+
p.value.length ? (o(), v(a(W), { key: 0 })) : C("", !0),
|
|
107
107
|
n(a(D), {
|
|
108
108
|
class: "flex items-center gap-1.5",
|
|
109
109
|
onClick: l[1] || (l[1] = (t) => d.value = !0)
|
|
@@ -117,10 +117,9 @@ const q = { class: "group-[.alert]:outline-orange group-[.error]:outline-red w-f
|
|
|
117
117
|
]),
|
|
118
118
|
l[2] || (l[2] = i("span", null, "Add value", -1))
|
|
119
119
|
]),
|
|
120
|
-
_: 1
|
|
121
|
-
__: [2]
|
|
120
|
+
_: 1
|
|
122
121
|
})
|
|
123
|
-
], 64)) :
|
|
122
|
+
], 64)) : C("", !0)
|
|
124
123
|
]),
|
|
125
124
|
default: s(() => [
|
|
126
125
|
n(a(b), {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { defineComponent as B, computed as E, watch as h, onMounted as D, createBlock as v, openBlock as s, unref as n, withCtx as r, createVNode as l, createElementVNode as d, toDisplayString as g, createElementBlock as L, createCommentVNode as M, Fragment as V, renderList as j, withModifiers as w, createTextVNode as
|
|
2
|
-
import { ScalarDropdown as W, ScalarButton as T, ScalarDropdownItem as p, ScalarListboxCheckbox as
|
|
1
|
+
import { defineComponent as B, computed as E, watch as h, onMounted as D, createBlock as v, openBlock as s, unref as n, withCtx as r, createVNode as l, createElementVNode as d, toDisplayString as g, createElementBlock as L, createCommentVNode as M, Fragment as V, renderList as j, withModifiers as w, createTextVNode as k } from "vue";
|
|
2
|
+
import { ScalarDropdown as W, ScalarButton as T, ScalarDropdownItem as p, ScalarListboxCheckbox as _, ScalarDropdownDivider as $, ScalarIcon as z } from "@scalar/components";
|
|
3
3
|
import { useRouter as A } from "vue-router";
|
|
4
4
|
import { PathId as F } from "../../routes.js";
|
|
5
5
|
import { useActiveEntities as O } from "../../store/active-entities.js";
|
|
@@ -56,10 +56,10 @@ const q = { class: "m-0 flex items-center gap-1.5 font-medium whitespace-nowrap"
|
|
|
56
56
|
onClick: w((x) => m(a.uid), ["stop"])
|
|
57
57
|
}, {
|
|
58
58
|
default: r(() => [
|
|
59
|
-
l(n(
|
|
59
|
+
l(n(_), {
|
|
60
60
|
selected: n(o)?.["x-scalar-active-environment"] === a.uid
|
|
61
61
|
}, null, 8, ["selected"]),
|
|
62
|
-
|
|
62
|
+
k(" " + g(a.name), 1)
|
|
63
63
|
]),
|
|
64
64
|
_: 2
|
|
65
65
|
}, 1032, ["onClick"]))), 128)),
|
|
@@ -68,13 +68,12 @@ const q = { class: "m-0 flex items-center gap-1.5 font-medium whitespace-nowrap"
|
|
|
68
68
|
onClick: e[0] || (e[0] = w((a) => m(""), ["stop"]))
|
|
69
69
|
}, {
|
|
70
70
|
default: r(() => [
|
|
71
|
-
l(n(
|
|
71
|
+
l(n(_), {
|
|
72
72
|
selected: n(c)?.uid === "" && n(o)?.["x-scalar-active-environment"] === "" || n(c)?.name === "No Environment"
|
|
73
73
|
}, null, 8, ["selected"]),
|
|
74
|
-
e[1] || (e[1] =
|
|
74
|
+
e[1] || (e[1] = k(" No Environment ", -1))
|
|
75
75
|
]),
|
|
76
|
-
_: 1
|
|
77
|
-
__: [1]
|
|
76
|
+
_: 1
|
|
78
77
|
}),
|
|
79
78
|
l(n($)),
|
|
80
79
|
n(C) !== "modal" ? (s(), v(n(p), {
|
|
@@ -91,8 +90,7 @@ const q = { class: "m-0 flex items-center gap-1.5 font-medium whitespace-nowrap"
|
|
|
91
90
|
]),
|
|
92
91
|
e[2] || (e[2] = d("span", { class: "leading-none" }, "Manage Environments", -1))
|
|
93
92
|
]),
|
|
94
|
-
_: 1
|
|
95
|
-
__: [2]
|
|
93
|
+
_: 1
|
|
96
94
|
})) : M("", !0)
|
|
97
95
|
]),
|
|
98
96
|
default: r(() => [
|
|
@@ -4,9 +4,9 @@ type __VLS_Props = {
|
|
|
4
4
|
isEditable?: boolean;
|
|
5
5
|
};
|
|
6
6
|
declare const _default: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {} & {
|
|
7
|
-
change: (value: "delete" | "get" | "
|
|
7
|
+
change: (value: "delete" | "get" | "head" | "options" | "patch" | "post" | "put" | "trace") => any;
|
|
8
8
|
}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{
|
|
9
|
-
onChange?: ((value: "delete" | "get" | "
|
|
9
|
+
onChange?: ((value: "delete" | "get" | "head" | "options" | "patch" | "post" | "put" | "trace") => any) | undefined;
|
|
10
10
|
}>, {
|
|
11
11
|
isEditable: boolean;
|
|
12
12
|
isSquare: boolean;
|
|
@@ -30,7 +30,7 @@ const G = { class: "flex text-sm" }, L = { class: "bg-b-1 custom-scroll grid w-d
|
|
|
30
30
|
a(e(m), { class: "text-c-2 px-1 py-1" }, {
|
|
31
31
|
default: o(() => [
|
|
32
32
|
u(l.$slots, "title", {}, () => [
|
|
33
|
-
r[1] || (r[1] = p("Select an icon"))
|
|
33
|
+
r[1] || (r[1] = p("Select an icon", -1))
|
|
34
34
|
])
|
|
35
35
|
]),
|
|
36
36
|
_: 3
|
|
@@ -10,30 +10,30 @@ const A = {
|
|
|
10
10
|
const l = v, a = y(!1);
|
|
11
11
|
let o = 0;
|
|
12
12
|
x(() => {
|
|
13
|
-
document.addEventListener("dragenter", m), document.addEventListener("dragleave", f), document.addEventListener("dragover",
|
|
13
|
+
document.addEventListener("dragenter", m), document.addEventListener("dragleave", f), document.addEventListener("dragover", c), document.addEventListener("drop", u);
|
|
14
14
|
}), h(() => {
|
|
15
|
-
document.removeEventListener("dragenter", m), document.removeEventListener("dragover",
|
|
15
|
+
document.removeEventListener("dragenter", m), document.removeEventListener("dragover", c), document.removeEventListener("dragleave", f), document.removeEventListener("drop", u);
|
|
16
16
|
});
|
|
17
17
|
function d(e) {
|
|
18
18
|
return e.dataTransfer?.types.includes("text/html") ?? !1;
|
|
19
19
|
}
|
|
20
|
-
|
|
20
|
+
function u(e) {
|
|
21
21
|
if (e.preventDefault(), a.value = !1, o = 0, !d(e) && e.dataTransfer) {
|
|
22
22
|
const t = e.dataTransfer.getData("text").replace(/^blob:/, "");
|
|
23
23
|
if (t)
|
|
24
24
|
l("input", t, null, "drop");
|
|
25
25
|
else if (e.dataTransfer.files.length > 0) {
|
|
26
|
-
const
|
|
27
|
-
if (!
|
|
26
|
+
const n = e.dataTransfer.files[0];
|
|
27
|
+
if (!n)
|
|
28
28
|
return;
|
|
29
|
-
const
|
|
30
|
-
|
|
29
|
+
const r = new FileReader();
|
|
30
|
+
r.onload = (i) => {
|
|
31
31
|
i.target && typeof i.target.result == "string" && l("input", i.target.result, null, "drop");
|
|
32
|
-
},
|
|
32
|
+
}, r.readAsText(n);
|
|
33
33
|
}
|
|
34
34
|
}
|
|
35
35
|
}
|
|
36
|
-
function
|
|
36
|
+
function c(e) {
|
|
37
37
|
e.preventDefault();
|
|
38
38
|
}
|
|
39
39
|
function f(e) {
|
|
@@ -43,9 +43,9 @@ const A = {
|
|
|
43
43
|
if (e.preventDefault(), o++, !d(e)) {
|
|
44
44
|
if (e.dataTransfer) {
|
|
45
45
|
const t = e.dataTransfer.items;
|
|
46
|
-
for (let
|
|
47
|
-
const
|
|
48
|
-
if (
|
|
46
|
+
for (let n = 0; n < t.length; n++) {
|
|
47
|
+
const r = t[n];
|
|
48
|
+
if (r?.kind === "string" || r?.type?.includes("json") || r?.type?.includes("yml") || r?.type?.includes("yaml")) {
|
|
49
49
|
a.value = !0;
|
|
50
50
|
return;
|
|
51
51
|
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { defineComponent as I, ref as u, createElementBlock as k, openBlock as
|
|
1
|
+
import { defineComponent as I, ref as u, createElementBlock as k, openBlock as w, Fragment as y, createVNode as r, renderSlot as g, nextTick as h } from "vue";
|
|
2
2
|
import { useToasts as C } from "@scalar/use-toasts";
|
|
3
3
|
import { useRouter as T } from "vue-router";
|
|
4
4
|
import { workspaceStoreIsEmpty as $ } from "./utils/workspace-store-is-empty.js";
|
|
@@ -26,7 +26,7 @@ const J = /* @__PURE__ */ I({
|
|
|
26
26
|
n.value = e, s.value = t, i.value = o;
|
|
27
27
|
}
|
|
28
28
|
const f = T(), { activeWorkspace: p } = q(), { toast: l } = C();
|
|
29
|
-
|
|
29
|
+
function d(e) {
|
|
30
30
|
return e ? new Promise((t) => {
|
|
31
31
|
B({
|
|
32
32
|
store: c,
|
|
@@ -36,20 +36,20 @@ const J = /* @__PURE__ */ I({
|
|
|
36
36
|
watchMode: !0,
|
|
37
37
|
onSuccess(o) {
|
|
38
38
|
if (o) {
|
|
39
|
-
|
|
39
|
+
v(o), l("Import successful", "info"), t(!0);
|
|
40
40
|
return;
|
|
41
41
|
}
|
|
42
42
|
l("Import failed: No collection was created", "error"), t(!1);
|
|
43
43
|
},
|
|
44
44
|
onError(o) {
|
|
45
45
|
console.error("[importCollection]", o);
|
|
46
|
-
const
|
|
47
|
-
l(`Import failed: ${
|
|
46
|
+
const _ = o?.message || "Unknown error";
|
|
47
|
+
l(`Import failed: ${_}`, "error"), t(!1);
|
|
48
48
|
}
|
|
49
49
|
});
|
|
50
|
-
}) : !1;
|
|
50
|
+
}) : Promise.resolve(!1);
|
|
51
51
|
}
|
|
52
|
-
function
|
|
52
|
+
function v(e) {
|
|
53
53
|
e && f.push({
|
|
54
54
|
name: "request",
|
|
55
55
|
params: {
|
|
@@ -58,7 +58,7 @@ const J = /* @__PURE__ */ I({
|
|
|
58
58
|
}
|
|
59
59
|
});
|
|
60
60
|
}
|
|
61
|
-
return (e, t) => (
|
|
61
|
+
return (e, t) => (w(), k(y, null, [
|
|
62
62
|
r(F, {
|
|
63
63
|
eventType: i.value,
|
|
64
64
|
integration: s.value,
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import { defineComponent as
|
|
1
|
+
import { defineComponent as C, createElementBlock as h, createCommentVNode as y, openBlock as o, Fragment as v, createBlock as u, unref as a, withCtx as m, createTextVNode as c } from "vue";
|
|
2
2
|
import { ScalarButton as p } from "@scalar/components";
|
|
3
3
|
import { useToasts as b } from "@scalar/use-toasts";
|
|
4
4
|
import { useRouter as g } from "vue-router";
|
|
5
5
|
import { useActiveEntities as x } from "../../store/active-entities.js";
|
|
6
6
|
import { importCollection as B } from "./utils/import-collection.js";
|
|
7
7
|
import { useWorkspace as I } from "../../store/store.js";
|
|
8
|
-
const
|
|
8
|
+
const R = /* @__PURE__ */ C({
|
|
9
9
|
__name: "ImportNowButton",
|
|
10
10
|
props: {
|
|
11
11
|
source: {},
|
|
@@ -15,7 +15,7 @@ const z = /* @__PURE__ */ y({
|
|
|
15
15
|
emits: ["importFinished"],
|
|
16
16
|
setup(r, { emit: l }) {
|
|
17
17
|
const f = l, d = g(), k = I(), { activeWorkspace: n } = x(), { toast: s } = b();
|
|
18
|
-
|
|
18
|
+
function i() {
|
|
19
19
|
B({
|
|
20
20
|
store: k,
|
|
21
21
|
workspace: n.value,
|
|
@@ -40,7 +40,7 @@ const z = /* @__PURE__ */ y({
|
|
|
40
40
|
}
|
|
41
41
|
});
|
|
42
42
|
}
|
|
43
|
-
return (e, t) => e.source ? (o(),
|
|
43
|
+
return (e, t) => e.source ? (o(), h(v, { key: 0 }, [
|
|
44
44
|
e.variant === "button" ? (o(), u(a(p), {
|
|
45
45
|
key: 0,
|
|
46
46
|
class: "mt-3 h-fit w-full rounded-lg px-6 py-2.5 font-bold",
|
|
@@ -48,11 +48,10 @@ const z = /* @__PURE__ */ y({
|
|
|
48
48
|
type: "button",
|
|
49
49
|
onClick: i
|
|
50
50
|
}, {
|
|
51
|
-
default: m(() => t[0] || (t[0] = [
|
|
52
|
-
c(" Import Collection ")
|
|
53
|
-
])),
|
|
54
|
-
_: 1
|
|
55
|
-
__: [0]
|
|
51
|
+
default: m(() => [...t[0] || (t[0] = [
|
|
52
|
+
c(" Import Collection ", -1)
|
|
53
|
+
])]),
|
|
54
|
+
_: 1
|
|
56
55
|
})) : (o(), u(a(p), {
|
|
57
56
|
key: 1,
|
|
58
57
|
class: "h-fit rounded-lg px-6 py-2.5 text-[21px] font-bold",
|
|
@@ -61,15 +60,14 @@ const z = /* @__PURE__ */ y({
|
|
|
61
60
|
variant: "ghost",
|
|
62
61
|
onClick: i
|
|
63
62
|
}, {
|
|
64
|
-
default: m(() => t[1] || (t[1] = [
|
|
65
|
-
c(" Try it in the browser ")
|
|
66
|
-
])),
|
|
67
|
-
_: 1
|
|
68
|
-
__: [1]
|
|
63
|
+
default: m(() => [...t[1] || (t[1] = [
|
|
64
|
+
c(" Try it in the browser ", -1)
|
|
65
|
+
])]),
|
|
66
|
+
_: 1
|
|
69
67
|
}))
|
|
70
|
-
], 64)) :
|
|
68
|
+
], 64)) : y("", !0);
|
|
71
69
|
}
|
|
72
70
|
});
|
|
73
71
|
export {
|
|
74
|
-
|
|
72
|
+
R as default
|
|
75
73
|
};
|
|
@@ -9,7 +9,7 @@ const p = /* @__PURE__ */ r({
|
|
|
9
9
|
}), m(() => {
|
|
10
10
|
document.removeEventListener("paste", n);
|
|
11
11
|
});
|
|
12
|
-
|
|
12
|
+
function n(e) {
|
|
13
13
|
const t = e.target, i = !!document.activeElement?.classList.contains("cm-content");
|
|
14
14
|
if (!(t && (t.tagName === "INPUT" || t.tagName === "TEXTAREA" || t.isContentEditable || i)) && e.clipboardData) {
|
|
15
15
|
const a = e.clipboardData.getData("text");
|
|
@@ -10,7 +10,7 @@ const a = { class: "w-full text-center text-sm font-medium break-words" }, u = [
|
|
|
10
10
|
},
|
|
11
11
|
setup(p) {
|
|
12
12
|
return (t, e) => (o(), n("div", a, [
|
|
13
|
-
e[0] || (e[0] = r(" We couldn't find an OpenAPI document at the provided URL. Please download and import the ")),
|
|
13
|
+
e[0] || (e[0] = r(" We couldn't find an OpenAPI document at the provided URL. Please download and import the ", -1)),
|
|
14
14
|
t.url && d(s)(t.url) ? (o(), n("a", {
|
|
15
15
|
key: 0,
|
|
16
16
|
href: t.url,
|
|
@@ -18,7 +18,7 @@ const a = { class: "w-full text-center text-sm font-medium break-words" }, u = [
|
|
|
18
18
|
target: "_blank",
|
|
19
19
|
textContent: "OpenAPI document manually"
|
|
20
20
|
}, null, 8, u)) : (o(), n("span", m)),
|
|
21
|
-
e[1] || (e[1] = r(". "))
|
|
21
|
+
e[1] || (e[1] = r(". ", -1))
|
|
22
22
|
]));
|
|
23
23
|
}
|
|
24
24
|
});
|
|
@@ -69,8 +69,7 @@ const P = { class: "flex w-[inherit] items-center text-base" }, R = { class: "m-
|
|
|
69
69
|
]),
|
|
70
70
|
a[2] || (a[2] = t("span", null, "New Workspace", -1))
|
|
71
71
|
]),
|
|
72
|
-
_: 1
|
|
73
|
-
__: [2]
|
|
72
|
+
_: 1
|
|
74
73
|
})
|
|
75
74
|
]),
|
|
76
75
|
default: o(() => [
|
|
@@ -118,11 +117,10 @@ const P = { class: "flex w-[inherit] items-center text-base" }, R = { class: "m-
|
|
|
118
117
|
disabled: !r.value.trim(),
|
|
119
118
|
type: "submit"
|
|
120
119
|
}, {
|
|
121
|
-
default: o(() => a[3] || (a[3] = [
|
|
122
|
-
V(" Continue ")
|
|
123
|
-
])),
|
|
124
|
-
_: 1
|
|
125
|
-
__: [3]
|
|
120
|
+
default: o(() => [...a[3] || (a[3] = [
|
|
121
|
+
V(" Continue ", -1)
|
|
122
|
+
])]),
|
|
123
|
+
_: 1
|
|
126
124
|
}, 8, ["disabled"])
|
|
127
125
|
], 32)
|
|
128
126
|
]),
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useUrlPrefetcher.d.ts","sourceRoot":"","sources":["../../../../src/components/ImportCollection/hooks/useUrlPrefetcher.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"useUrlPrefetcher.d.ts","sourceRoot":"","sources":["../../../../src/components/ImportCollection/hooks/useUrlPrefetcher.ts"],"names":[],"mappings":"AAMA,MAAM,MAAM,cAAc,GAAG;IAC3B,KAAK,EAAE,MAAM,GAAG,SAAS,CAAA;IACzB,OAAO,EAAE,MAAM,GAAG,IAAI,CAAA;IACtB,KAAK,EAAE,MAAM,GAAG,IAAI,CAAA;IACpB,GAAG,EAAE,MAAM,GAAG,IAAI,CAAA;IAClB,KAAK,EAAE,MAAM,GAAG,IAAI,CAAA;CACrB,CAAA;AAED;;GAEG;AACH,wBAAgB,gBAAgB;;eAVvB,MAAM,GAAG,SAAS;iBAChB,MAAM,GAAG,IAAI;eACf,MAAM,GAAG,IAAI;aACf,MAAM,GAAG,IAAI;eACX,MAAM,GAAG,IAAI;;yBAsH4B,MAAM,GAAG,IAAI,aAAa,MAAM;;;;;;;;;;;;;;;;;;;;;;;;;;EAmBjF"}
|
|
@@ -2,7 +2,7 @@ import { resolve as i } from "@scalar/import";
|
|
|
2
2
|
import { redirectToProxy as f, fetchWithProxyFallback as d } from "@scalar/oas-utils/helpers";
|
|
3
3
|
import { reactive as h } from "vue";
|
|
4
4
|
import { isUrl as m } from "../../../libs/isUrl.js";
|
|
5
|
-
function
|
|
5
|
+
function v() {
|
|
6
6
|
const n = h({
|
|
7
7
|
state: "idle",
|
|
8
8
|
content: null,
|
|
@@ -10,7 +10,7 @@ function b() {
|
|
|
10
10
|
input: null,
|
|
11
11
|
error: null
|
|
12
12
|
});
|
|
13
|
-
|
|
13
|
+
function u() {
|
|
14
14
|
Object.assign(n, {
|
|
15
15
|
state: "idle",
|
|
16
16
|
content: null,
|
|
@@ -101,5 +101,5 @@ function b() {
|
|
|
101
101
|
};
|
|
102
102
|
}
|
|
103
103
|
export {
|
|
104
|
-
|
|
104
|
+
v as useUrlPrefetcher
|
|
105
105
|
};
|