@scalar/api-client 2.8.1 → 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 +58 -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.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/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 +3 -0
- 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 +3646 -3645
- 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.map +1 -1
- package/dist/layouts/Web/create-api-client-web.js +15 -12
- package/dist/libs/create-client.d.ts +2 -2
- package/dist/libs/create-client.d.ts.map +1 -1
- 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/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/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 +1 -1
- package/dist/store/active-entities.d.ts.map +1 -1
- package/dist/store/active-entities.js +2 -2
- package/dist/store/router-params.d.ts.map +1 -1
- package/dist/style.css +1 -1
- 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 +30 -25
- 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
|
@@ -14,9 +14,6 @@ type __VLS_Props = {
|
|
|
14
14
|
server: ServerObject | undefined;
|
|
15
15
|
/** Server list available for operation/document */
|
|
16
16
|
servers: ServerObject[];
|
|
17
|
-
/** Environment variables used for codemirror variables pill on input */
|
|
18
|
-
environment: Environment;
|
|
19
|
-
envVariables: EnvVariable[];
|
|
20
17
|
/** List of request history */
|
|
21
18
|
history: History[];
|
|
22
19
|
/** Client layout */
|
|
@@ -25,6 +22,9 @@ type __VLS_Props = {
|
|
|
25
22
|
percentage?: number;
|
|
26
23
|
/** Event bus */
|
|
27
24
|
events: ReturnType<typeof createStoreEvents>;
|
|
25
|
+
/** TODO: to be removed once we fully migrate to the new store */
|
|
26
|
+
environment: Environment;
|
|
27
|
+
envVariables: EnvVariable[];
|
|
28
28
|
};
|
|
29
29
|
declare const _default: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {} & {
|
|
30
30
|
addServer: () => any;
|
|
@@ -33,6 +33,7 @@ declare const _default: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {
|
|
|
33
33
|
key: string;
|
|
34
34
|
value: string;
|
|
35
35
|
}) => any;
|
|
36
|
+
execute: () => any;
|
|
36
37
|
"update:selectedServer": (payload: {
|
|
37
38
|
id: string;
|
|
38
39
|
}) => any;
|
|
@@ -42,7 +43,6 @@ declare const _default: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {
|
|
|
42
43
|
"update:path": (payload: {
|
|
43
44
|
path: string;
|
|
44
45
|
}) => any;
|
|
45
|
-
execute: () => any;
|
|
46
46
|
}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{
|
|
47
47
|
onAddServer?: (() => any) | undefined;
|
|
48
48
|
onImportCurl?: ((value: string) => any) | undefined;
|
|
@@ -50,6 +50,7 @@ declare const _default: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {
|
|
|
50
50
|
key: string;
|
|
51
51
|
value: string;
|
|
52
52
|
}) => any) | undefined;
|
|
53
|
+
onExecute?: (() => any) | undefined;
|
|
53
54
|
"onUpdate:selectedServer"?: ((payload: {
|
|
54
55
|
id: string;
|
|
55
56
|
}) => any) | undefined;
|
|
@@ -59,7 +60,6 @@ declare const _default: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {
|
|
|
59
60
|
"onUpdate:path"?: ((payload: {
|
|
60
61
|
path: string;
|
|
61
62
|
}) => any) | undefined;
|
|
62
|
-
onExecute?: (() => any) | undefined;
|
|
63
63
|
}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
64
64
|
export default _default;
|
|
65
65
|
//# sourceMappingURL=AddressBar.vue.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"AddressBar.vue.d.ts","sourceRoot":"","sources":["../../../../../src/v2/blocks/scalar-address-bar-block/components/AddressBar.vue"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"AddressBar.vue.d.ts","sourceRoot":"","sources":["../../../../../src/v2/blocks/scalar-address-bar-block/components/AddressBar.vue"],"names":[],"mappings":"AAuSA,OAAO,KAAK,EAAE,UAAU,IAAI,cAAc,EAAE,MAAM,mCAAmC,CAAA;AACrF,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,wCAAwC,CAAA;AAEzE,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,8DAA8D,CAAA;AAKhG,OAAO,EAAE,KAAK,YAAY,EAAE,MAAM,SAAS,CAAA;AAC3C,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,yBAAyB,CAAA;AAC1D,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,gBAAgB,CAAA;AAGvD,OAA0B,EAAE,KAAK,OAAO,EAAE,MAAM,yBAAyB,CAAA;AAEzE,KAAK,WAAW,GAAG;IACjB,2BAA2B;IAC3B,IAAI,EAAE,MAAM,CAAA;IACZ,6BAA6B;IAC7B,MAAM,EAAE,cAAc,CAAA;IACtB,gCAAgC;IAChC,MAAM,EAAE,YAAY,GAAG,SAAS,CAAA;IAChC,mDAAmD;IACnD,OAAO,EAAE,YAAY,EAAE,CAAA;IACvB,8BAA8B;IAC9B,OAAO,EAAE,OAAO,EAAE,CAAA;IAClB,oBAAoB;IACpB,MAAM,EAAE,YAAY,CAAA;IACpB,iDAAiD;IACjD,UAAU,CAAC,EAAE,MAAM,CAAA;IACnB,gBAAgB;IAChB,MAAM,EAAE,UAAU,CAAC,OAAO,iBAAiB,CAAC,CAAA;IAE5C,iEAAiE;IACjE,WAAW,EAAE,WAAW,CAAA;IACxB,YAAY,EAAE,WAAW,EAAE,CAAA;CAC5B,CAAC;;;;;aAwBuC,MAAM;eAAS,MAAM;;;;YADhB,MAAM;;;gBANV,cAAc;;;cAElB,MAAM;;;;;;aAKH,MAAM;eAAS,MAAM;;;;YADhB,MAAM;;;gBANV,cAAc;;;cAElB,MAAM;;;AA8Y5C,wBAOG"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import o from "./AddressBar.vue2.js";
|
|
2
2
|
/* empty css */
|
|
3
3
|
import r from "../../../../_virtual/_plugin-vue_export-helper.js";
|
|
4
|
-
const
|
|
4
|
+
const a = /* @__PURE__ */ r(o, [["__scopeId", "data-v-3f08f1e1"]]);
|
|
5
5
|
export {
|
|
6
|
-
|
|
6
|
+
a as default
|
|
7
7
|
};
|
|
@@ -15,12 +15,12 @@ const z = ["id"], U = { class: "address-bar-bg-states text-xxs group relative or
|
|
|
15
15
|
method: {},
|
|
16
16
|
server: {},
|
|
17
17
|
servers: {},
|
|
18
|
-
environment: {},
|
|
19
|
-
envVariables: {},
|
|
20
18
|
history: {},
|
|
21
19
|
layout: {},
|
|
22
20
|
percentage: { default: 100 },
|
|
23
|
-
events: {}
|
|
21
|
+
events: {},
|
|
22
|
+
environment: {},
|
|
23
|
+
envVariables: {}
|
|
24
24
|
},
|
|
25
25
|
emits: ["importCurl", "update:method", "update:path", "execute", "update:selectedServer", "update:variable", "addServer"],
|
|
26
26
|
setup(n, { emit: v }) {
|
|
@@ -34,8 +34,7 @@ const E = { class: "min-w-0" }, q = { class: "text-c-1 min-w-0 truncate" }, O =
|
|
|
34
34
|
}),
|
|
35
35
|
c[0] || (c[0] = s("span", { class: "sr-only" }, "Request History", -1))
|
|
36
36
|
]),
|
|
37
|
-
_: 1
|
|
38
|
-
__: [0]
|
|
37
|
+
_: 1
|
|
39
38
|
})) : _("", !0)
|
|
40
39
|
]),
|
|
41
40
|
_: 2
|
|
@@ -73,8 +72,8 @@ const E = { class: "min-w-0" }, q = { class: "text-c-1 min-w-0 truncate" }, O =
|
|
|
73
72
|
_: 2
|
|
74
73
|
}, 1032, ["value", "onClick"]))), 128))
|
|
75
74
|
]),
|
|
76
|
-
_:
|
|
77
|
-
},
|
|
75
|
+
_: 1
|
|
76
|
+
}, 8, ["style"]),
|
|
78
77
|
r(t(I), { class: "-top-(--scalar-address-bar-height) rounded-lg" })
|
|
79
78
|
]),
|
|
80
79
|
key: "0"
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/v2/blocks/scalar-address-bar-block/index.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,OAAO,IAAI,UAAU,EAAE,MAAM,6BAA6B,CAAA"}
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/v2/blocks/scalar-address-bar-block/index.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,OAAO,IAAI,UAAU,EAAE,MAAM,6BAA6B,CAAA;AACnE,YAAY,EAAE,OAAO,EAAE,MAAM,oCAAoC,CAAA"}
|
|
@@ -124,11 +124,11 @@ const te = ["id"], le = { class: "flex flex-1" }, oe = { class: "min-w-0 flex-1
|
|
|
124
124
|
e[4] || (e[4] = i("span", { class: "sr-only" }, "Selected Auth Type:", -1)),
|
|
125
125
|
C(" " + h(s.value[0]?.label), 1)
|
|
126
126
|
], 64)) : s.value.length > 1 ? (r(), v(k, { key: 1 }, [
|
|
127
|
-
e[5] || (e[5] = C(" Multiple ")),
|
|
127
|
+
e[5] || (e[5] = C(" Multiple ", -1)),
|
|
128
128
|
e[6] || (e[6] = i("span", { class: "sr-only" }, "Auth Types Selected", -1))
|
|
129
129
|
], 64)) : (r(), v(k, { key: 2 }, [
|
|
130
130
|
e[7] || (e[7] = i("span", { class: "sr-only" }, "Select", -1)),
|
|
131
|
-
e[8] || (e[8] = C(" Auth Type "))
|
|
131
|
+
e[8] || (e[8] = C(" Auth Type ", -1))
|
|
132
132
|
], 64)),
|
|
133
133
|
m(o(H), {
|
|
134
134
|
class: "size-3 shrink-0 transition-transform duration-100 group-aria-expanded/combobox-button:rotate-180",
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import { defineComponent as m, createBlock as p, openBlock as f, unref as o, withCtx as n, createElementVNode as s, toDisplayString as a, createVNode as r, createTextVNode as i } from "vue";
|
|
2
2
|
import { ScalarModal as h, ScalarButton as c } from "@scalar/components";
|
|
3
|
-
const x = { class: "text-c-2 mb-4 text-sm leading-normal" },
|
|
3
|
+
const x = { class: "text-c-2 mb-4 text-sm leading-normal" }, b = { class: "flex justify-between gap-2" }, C = /* @__PURE__ */ m({
|
|
4
4
|
__name: "DeleteRequestAuthModal",
|
|
5
5
|
props: {
|
|
6
6
|
state: {},
|
|
7
7
|
label: {}
|
|
8
8
|
},
|
|
9
9
|
emits: ["close", "delete"],
|
|
10
|
-
setup(
|
|
10
|
+
setup(_, { emit: u }) {
|
|
11
11
|
const l = u, d = () => {
|
|
12
12
|
l("delete");
|
|
13
13
|
};
|
|
@@ -18,18 +18,17 @@ const x = { class: "text-c-2 mb-4 text-sm leading-normal" }, _ = { class: "flex
|
|
|
18
18
|
}, {
|
|
19
19
|
default: n(() => [
|
|
20
20
|
s("p", x, " This cannot be undone. You're about to delete the " + a(t.label) + " security scheme from the collection. ", 1),
|
|
21
|
-
s("div",
|
|
21
|
+
s("div", b, [
|
|
22
22
|
r(o(c), {
|
|
23
23
|
class: "flex h-8 cursor-pointer items-center gap-1.5 px-3 shadow-none focus:outline-none",
|
|
24
24
|
type: "button",
|
|
25
25
|
variant: "outlined",
|
|
26
26
|
onClick: e[0] || (e[0] = (y) => l("close"))
|
|
27
27
|
}, {
|
|
28
|
-
default: n(() => e[1] || (e[1] = [
|
|
29
|
-
i(" Cancel ")
|
|
30
|
-
])),
|
|
31
|
-
_: 1
|
|
32
|
-
__: [1]
|
|
28
|
+
default: n(() => [...e[1] || (e[1] = [
|
|
29
|
+
i(" Cancel ", -1)
|
|
30
|
+
])]),
|
|
31
|
+
_: 1
|
|
33
32
|
}),
|
|
34
33
|
r(o(c), {
|
|
35
34
|
class: "flex h-8 cursor-pointer items-center gap-1.5 px-3 shadow-none focus:outline-none",
|
|
@@ -50,11 +50,10 @@ const B = { class: "flex h-8 items-center justify-end gap-2 border-t" }, F = { c
|
|
|
50
50
|
type: "password",
|
|
51
51
|
"onUpdate:modelValue": e[0] || (e[0] = (a) => s("update:securityScheme", { token: a }))
|
|
52
52
|
}), {
|
|
53
|
-
default: l(() => e[11] || (e[11] = [
|
|
54
|
-
d(" Access Token ")
|
|
55
|
-
])),
|
|
56
|
-
_: 1
|
|
57
|
-
__: [11]
|
|
53
|
+
default: l(() => [...e[11] || (e[11] = [
|
|
54
|
+
d(" Access Token ", -1)
|
|
55
|
+
])]),
|
|
56
|
+
_: 1
|
|
58
57
|
}, 16, ["modelValue"])
|
|
59
58
|
]),
|
|
60
59
|
_: 1
|
|
@@ -69,11 +68,10 @@ const B = { class: "flex h-8 items-center justify-end gap-2 border-t" }, F = { c
|
|
|
69
68
|
variant: "outlined",
|
|
70
69
|
onClick: e[1] || (e[1] = (a) => s("update:securityScheme", { token: "" }))
|
|
71
70
|
}, {
|
|
72
|
-
default: l(() => e[12] || (e[12] = [
|
|
73
|
-
d(" Clear ")
|
|
74
|
-
])),
|
|
75
|
-
_: 1
|
|
76
|
-
__: [12]
|
|
71
|
+
default: l(() => [...e[12] || (e[12] = [
|
|
72
|
+
d(" Clear ", -1)
|
|
73
|
+
])]),
|
|
74
|
+
_: 1
|
|
77
75
|
}, 8, ["loading"])
|
|
78
76
|
])
|
|
79
77
|
]),
|
|
@@ -88,22 +86,20 @@ const B = { class: "flex h-8 items-center justify-end gap-2 border-t" }, F = { c
|
|
|
88
86
|
placeholder: "https://galaxy.scalar.com/authorize",
|
|
89
87
|
"onUpdate:modelValue": e[2] || (e[2] = (a) => s("update:securityScheme", { authUrl: a }))
|
|
90
88
|
}), {
|
|
91
|
-
default: l(() => e[13] || (e[13] = [
|
|
92
|
-
d(" Auth URL ")
|
|
93
|
-
])),
|
|
94
|
-
_: 1
|
|
95
|
-
__: [13]
|
|
89
|
+
default: l(() => [...e[13] || (e[13] = [
|
|
90
|
+
d(" Auth URL ", -1)
|
|
91
|
+
])]),
|
|
92
|
+
_: 1
|
|
96
93
|
}, 16, ["modelValue"])) : f("", !0),
|
|
97
94
|
"tokenUrl" in t.value ? (u(), y(c, p({ key: 1 }, m, {
|
|
98
95
|
modelValue: t.value.tokenUrl,
|
|
99
96
|
placeholder: "https://galaxy.scalar.com/token",
|
|
100
97
|
"onUpdate:modelValue": e[3] || (e[3] = (a) => s("update:securityScheme", { tokenUrl: a }))
|
|
101
98
|
}), {
|
|
102
|
-
default: l(() => e[14] || (e[14] = [
|
|
103
|
-
d(" Token URL ")
|
|
104
|
-
])),
|
|
105
|
-
_: 1
|
|
106
|
-
__: [14]
|
|
99
|
+
default: l(() => [...e[14] || (e[14] = [
|
|
100
|
+
d(" Token URL ", -1)
|
|
101
|
+
])]),
|
|
102
|
+
_: 1
|
|
107
103
|
}, 16, ["modelValue"])) : f("", !0)
|
|
108
104
|
]),
|
|
109
105
|
_: 1
|
|
@@ -115,11 +111,10 @@ const B = { class: "flex h-8 items-center justify-end gap-2 border-t" }, F = { c
|
|
|
115
111
|
placeholder: "https://galaxy.scalar.com/callback",
|
|
116
112
|
"onUpdate:modelValue": e[4] || (e[4] = (a) => s("update:securityScheme", { redirectUrl: a }))
|
|
117
113
|
}), {
|
|
118
|
-
default: l(() => e[15] || (e[15] = [
|
|
119
|
-
d(" Redirect URL ")
|
|
120
|
-
])),
|
|
121
|
-
_: 1
|
|
122
|
-
__: [15]
|
|
114
|
+
default: l(() => [...e[15] || (e[15] = [
|
|
115
|
+
d(" Redirect URL ", -1)
|
|
116
|
+
])]),
|
|
117
|
+
_: 1
|
|
123
118
|
}, 16, ["modelValue"])
|
|
124
119
|
]),
|
|
125
120
|
_: 1
|
|
@@ -133,11 +128,10 @@ const B = { class: "flex h-8 items-center justify-end gap-2 border-t" }, F = { c
|
|
|
133
128
|
placeholder: "janedoe",
|
|
134
129
|
"onUpdate:modelValue": e[5] || (e[5] = (a) => s("update:securityScheme", { username: a }))
|
|
135
130
|
}), {
|
|
136
|
-
default: l(() => e[16] || (e[16] = [
|
|
137
|
-
d(" Username ")
|
|
138
|
-
])),
|
|
139
|
-
_: 1
|
|
140
|
-
__: [16]
|
|
131
|
+
default: l(() => [...e[16] || (e[16] = [
|
|
132
|
+
d(" Username ", -1)
|
|
133
|
+
])]),
|
|
134
|
+
_: 1
|
|
141
135
|
}, 16, ["modelValue"])
|
|
142
136
|
]),
|
|
143
137
|
_: 1
|
|
@@ -150,11 +144,10 @@ const B = { class: "flex h-8 items-center justify-end gap-2 border-t" }, F = { c
|
|
|
150
144
|
type: "password",
|
|
151
145
|
"onUpdate:modelValue": e[6] || (e[6] = (a) => s("update:securityScheme", { password: a }))
|
|
152
146
|
}), {
|
|
153
|
-
default: l(() => e[17] || (e[17] = [
|
|
154
|
-
d(" Password ")
|
|
155
|
-
])),
|
|
156
|
-
_: 1
|
|
157
|
-
__: [17]
|
|
147
|
+
default: l(() => [...e[17] || (e[17] = [
|
|
148
|
+
d(" Password ", -1)
|
|
149
|
+
])]),
|
|
150
|
+
_: 1
|
|
158
151
|
}, 16, ["modelValue"])
|
|
159
152
|
]),
|
|
160
153
|
_: 1
|
|
@@ -167,11 +160,10 @@ const B = { class: "flex h-8 items-center justify-end gap-2 border-t" }, F = { c
|
|
|
167
160
|
placeholder: "12345",
|
|
168
161
|
"onUpdate:modelValue": e[7] || (e[7] = (a) => s("update:securityScheme", { clientId: a }))
|
|
169
162
|
}), {
|
|
170
|
-
default: l(() => e[18] || (e[18] = [
|
|
171
|
-
d(" Client ID ")
|
|
172
|
-
])),
|
|
173
|
-
_: 1
|
|
174
|
-
__: [18]
|
|
163
|
+
default: l(() => [...e[18] || (e[18] = [
|
|
164
|
+
d(" Client ID ", -1)
|
|
165
|
+
])]),
|
|
166
|
+
_: 1
|
|
175
167
|
}, 16, ["modelValue"])
|
|
176
168
|
]),
|
|
177
169
|
_: 1
|
|
@@ -184,11 +176,10 @@ const B = { class: "flex h-8 items-center justify-end gap-2 border-t" }, F = { c
|
|
|
184
176
|
type: "password",
|
|
185
177
|
"onUpdate:modelValue": e[8] || (e[8] = (a) => s("update:securityScheme", { clientSecret: a }))
|
|
186
178
|
}), {
|
|
187
|
-
default: l(() => e[19] || (e[19] = [
|
|
188
|
-
d(" Client Secret ")
|
|
189
|
-
])),
|
|
190
|
-
_: 1
|
|
191
|
-
__: [19]
|
|
179
|
+
default: l(() => [...e[19] || (e[19] = [
|
|
180
|
+
d(" Client Secret ", -1)
|
|
181
|
+
])]),
|
|
182
|
+
_: 1
|
|
192
183
|
}, 16, ["modelValue"])
|
|
193
184
|
]),
|
|
194
185
|
_: 1
|
|
@@ -203,11 +194,10 @@ const B = { class: "flex h-8 items-center justify-end gap-2 border-t" }, F = { c
|
|
|
203
194
|
usePkce: a
|
|
204
195
|
}))
|
|
205
196
|
}), {
|
|
206
|
-
default: l(() => e[20] || (e[20] = [
|
|
207
|
-
d(" Use PKCE ")
|
|
208
|
-
])),
|
|
209
|
-
_: 1
|
|
210
|
-
__: [20]
|
|
197
|
+
default: l(() => [...e[20] || (e[20] = [
|
|
198
|
+
d(" Use PKCE ", -1)
|
|
199
|
+
])]),
|
|
200
|
+
_: 1
|
|
211
201
|
}, 16, ["enum", "modelValue"])
|
|
212
202
|
]),
|
|
213
203
|
_: 1
|
|
@@ -236,11 +226,10 @@ const B = { class: "flex h-8 items-center justify-end gap-2 border-t" }, F = { c
|
|
|
236
226
|
variant: "outlined",
|
|
237
227
|
onClick: b
|
|
238
228
|
}, {
|
|
239
|
-
default: l(() => e[21] || (e[21] = [
|
|
240
|
-
d(" Authorize ")
|
|
241
|
-
])),
|
|
242
|
-
_: 1
|
|
243
|
-
__: [21]
|
|
229
|
+
default: l(() => [...e[21] || (e[21] = [
|
|
230
|
+
d(" Authorize ", -1)
|
|
231
|
+
])]),
|
|
232
|
+
_: 1
|
|
244
233
|
}, 8, ["loading"])
|
|
245
234
|
])
|
|
246
235
|
]),
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { defineComponent as A, computed as v, createBlock as d, openBlock as n, unref as s, withCtx as o, createElementVNode as a, createVNode as r, normalizeClass as B, toDisplayString as p, createCommentVNode as u, withModifiers as g, createTextVNode as m, createElementBlock as w, Fragment as O, renderList as j } from "vue";
|
|
2
2
|
import { Disclosure as z, DisclosureButton as N, DisclosurePanel as T } from "@headlessui/vue";
|
|
3
3
|
import { ScalarButton as k, ScalarIcon as $ } from "@scalar/components";
|
|
4
|
-
import
|
|
4
|
+
import C from "../../../../components/DataTable/DataTableCell.vue.js";
|
|
5
5
|
import E from "../../../../components/DataTable/DataTableRow.vue.js";
|
|
6
6
|
import I from "../../../../components/DataTable/DataTableCheckbox.vue.js";
|
|
7
7
|
const R = { class: "flex h-fit w-full" }, U = { class: "flex-1" }, F = { class: "flex items-center gap-1.75" }, L = {
|
|
@@ -14,8 +14,8 @@ const R = { class: "flex h-fit w-full" }, U = { class: "flex-1" }, F = { class:
|
|
|
14
14
|
selectedScopes: {}
|
|
15
15
|
},
|
|
16
16
|
emits: ["update:selectedScopes"],
|
|
17
|
-
setup(c, { emit:
|
|
18
|
-
const i =
|
|
17
|
+
setup(c, { emit: b }) {
|
|
18
|
+
const i = b, y = v(
|
|
19
19
|
() => Object.entries(c.flow?.scopes ?? {}).map(([e, t]) => ({
|
|
20
20
|
id: e,
|
|
21
21
|
label: e,
|
|
@@ -33,12 +33,12 @@ const R = { class: "flex h-fit w-full" }, U = { class: "flex-1" }, F = { class:
|
|
|
33
33
|
scopes: c.selectedScopes.filter((l) => l !== e)
|
|
34
34
|
});
|
|
35
35
|
}
|
|
36
|
-
const
|
|
36
|
+
const _ = () => {
|
|
37
37
|
i("update:selectedScopes", { scopes: Object.keys(c.flow?.scopes ?? {}) });
|
|
38
38
|
}, V = () => {
|
|
39
39
|
i("update:selectedScopes", { scopes: [] });
|
|
40
40
|
};
|
|
41
|
-
return (e, t) => (n(), d(s(
|
|
41
|
+
return (e, t) => (n(), d(s(C), { class: "h-auto !max-h-[initial] min-h-8 items-center" }, {
|
|
42
42
|
default: o(() => [
|
|
43
43
|
a("div", R, [
|
|
44
44
|
t[2] || (t[2] = a("div", { class: "text-c-1 h-full items-center" }, null, -1)),
|
|
@@ -63,24 +63,22 @@ const R = { class: "flex h-fit w-full" }, U = { class: "flex-1" }, F = { class:
|
|
|
63
63
|
variant: "ghost",
|
|
64
64
|
onClick: g(V, ["stop"])
|
|
65
65
|
}, {
|
|
66
|
-
default: o(() => t[0] || (t[0] = [
|
|
67
|
-
m(" Deselect All ")
|
|
68
|
-
])),
|
|
69
|
-
_: 1
|
|
70
|
-
__: [0]
|
|
66
|
+
default: o(() => [...t[0] || (t[0] = [
|
|
67
|
+
m(" Deselect All ", -1)
|
|
68
|
+
])]),
|
|
69
|
+
_: 1
|
|
71
70
|
})) : u("", !0),
|
|
72
71
|
f.value ? u("", !0) : (n(), d(s(k), {
|
|
73
72
|
key: 1,
|
|
74
73
|
class: "pr-0.75 pl-1 transition-none",
|
|
75
74
|
size: "sm",
|
|
76
75
|
variant: "ghost",
|
|
77
|
-
onClick: g(
|
|
76
|
+
onClick: g(_, ["stop"])
|
|
78
77
|
}, {
|
|
79
|
-
default: o(() => t[1] || (t[1] = [
|
|
80
|
-
m(" Select All ")
|
|
81
|
-
])),
|
|
82
|
-
_: 1
|
|
83
|
-
__: [1]
|
|
78
|
+
default: o(() => [...t[1] || (t[1] = [
|
|
79
|
+
m(" Select All ", -1)
|
|
80
|
+
])]),
|
|
81
|
+
_: 1
|
|
84
82
|
})),
|
|
85
83
|
r(s($), {
|
|
86
84
|
class: "text-c-3 group-hover/scopes-accordion:text-c-2",
|
|
@@ -94,13 +92,13 @@ const R = { class: "flex h-fit w-full" }, U = { class: "flex-1" }, F = { class:
|
|
|
94
92
|
r(s(T), { as: "template" }, {
|
|
95
93
|
default: o(() => [
|
|
96
94
|
a("table", L, [
|
|
97
|
-
(n(!0), w(O, null, j(
|
|
95
|
+
(n(!0), w(O, null, j(y.value, ({ id: l, label: D, description: h }) => (n(), d(s(E), {
|
|
98
96
|
key: l,
|
|
99
97
|
class: "text-c-2",
|
|
100
98
|
onClick: (x) => S(l, !e.selectedScopes.includes(l))
|
|
101
99
|
}, {
|
|
102
100
|
default: o(() => [
|
|
103
|
-
r(s(
|
|
101
|
+
r(s(C), { class: "hover:text-c-1 box-border !max-h-[initial] w-full cursor-pointer px-3 py-1.5" }, {
|
|
104
102
|
default: o(() => [
|
|
105
103
|
h ? (n(), w("div", M, [
|
|
106
104
|
a("span", P, p(D), 1),
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { defineComponent as R, computed as N, ref as P, createElementBlock as u, openBlock as r, Fragment as i, renderList as
|
|
1
|
+
import { defineComponent as R, computed as N, ref as P, createElementBlock as u, openBlock as r, Fragment as i, renderList as C, createBlock as k, createCommentVNode as b, unref as s, withCtx as o, createVNode as a, createElementVNode as _, toDisplayString as F, mergeProps as v, createTextVNode as x, normalizeClass as j, capitalize as $ } from "vue";
|
|
2
2
|
import { ScalarMarkdownSummary as z } from "@scalar/components";
|
|
3
3
|
import { getResolvedRef as K } from "@scalar/workspace-store/helpers/get-resolved-ref";
|
|
4
4
|
import O from "./OAuth2.vue.js";
|
|
@@ -20,41 +20,41 @@ const L = { class: "bg-b-1 text-c-2 outline-b-3 top-0 z-1 h-full w-full overflow
|
|
|
20
20
|
},
|
|
21
21
|
emits: ["update:securityScheme", "update:selectedScopes"],
|
|
22
22
|
setup(S, { emit: I }) {
|
|
23
|
-
const c = I,
|
|
23
|
+
const c = I, h = N(
|
|
24
24
|
() => Object.entries(S.selectedSecuritySchema).map(([l, e]) => ({
|
|
25
25
|
scheme: K(S.securitySchemes[l]),
|
|
26
26
|
name: l,
|
|
27
27
|
scopes: e
|
|
28
28
|
}))
|
|
29
29
|
), p = P(""), T = (l, e) => {
|
|
30
|
-
const t = e.description ? `: ${e.description}` : "", m = `${
|
|
30
|
+
const t = e.description ? `: ${e.description}` : "", m = `${$(l)}${t || `: ${e.type}`}`;
|
|
31
31
|
if (e.type === "apiKey")
|
|
32
|
-
return `${
|
|
32
|
+
return `${$(l)}${t || `: ${e.in}`}`;
|
|
33
33
|
if (e.type === "oauth2") {
|
|
34
|
-
const
|
|
35
|
-
return `${
|
|
34
|
+
const U = Object.keys(e.flows ?? {})[0];
|
|
35
|
+
return `${$(l)}: ${p.value ? p.value : U}${t}`;
|
|
36
36
|
}
|
|
37
|
-
return e.type === "http" ? `${
|
|
37
|
+
return e.type === "http" ? `${$(l)}: ${e.scheme}${t}` : `${m}${t}`;
|
|
38
38
|
}, y = {
|
|
39
39
|
environment: S.environment,
|
|
40
40
|
envVariables: S.envVariables
|
|
41
41
|
};
|
|
42
|
-
return (l, e) => (r(!0), u(i, null,
|
|
43
|
-
|
|
42
|
+
return (l, e) => (r(!0), u(i, null, C(h.value, ({ scheme: t, name: m, scopes: U }) => (r(), u(i, { key: m }, [
|
|
43
|
+
h.value.length > 1 && t ? (r(), k(s(f), { key: 0 }, {
|
|
44
44
|
default: o(() => [
|
|
45
45
|
a(s(B), {
|
|
46
46
|
"aria-label": T(m, t),
|
|
47
47
|
class: "text-c-2 group/auth flex items-center leading-[22px] whitespace-nowrap outline-none hover:whitespace-normal"
|
|
48
48
|
}, {
|
|
49
49
|
default: o(() => [
|
|
50
|
-
|
|
50
|
+
_("p", L, F(T(m, t)), 1)
|
|
51
51
|
]),
|
|
52
52
|
_: 2
|
|
53
53
|
}, 1032, ["aria-label"])
|
|
54
54
|
]),
|
|
55
55
|
_: 2
|
|
56
56
|
}, 1024)) : b("", !0),
|
|
57
|
-
t?.description &&
|
|
57
|
+
t?.description && h.value.length <= 1 ? (r(), k(s(f), { key: 1 }, {
|
|
58
58
|
default: o(() => [
|
|
59
59
|
a(s(B), {
|
|
60
60
|
"aria-label": t.description,
|
|
@@ -84,12 +84,11 @@ const L = { class: "bg-b-1 text-c-2 outline-b-3 top-0 z-1 h-full w-full overflow
|
|
|
84
84
|
payload: { token: n }
|
|
85
85
|
}))
|
|
86
86
|
}), {
|
|
87
|
-
default: o(() => e[5] || (e[5] = [
|
|
88
|
-
x(" Bearer Token ")
|
|
89
|
-
])),
|
|
90
|
-
_:
|
|
91
|
-
|
|
92
|
-
}, 1040, ["containerClass", "modelValue"])
|
|
87
|
+
default: o(() => [...e[5] || (e[5] = [
|
|
88
|
+
x(" Bearer Token ", -1)
|
|
89
|
+
])]),
|
|
90
|
+
_: 1
|
|
91
|
+
}, 16, ["containerClass", "modelValue"])
|
|
93
92
|
]),
|
|
94
93
|
_: 2
|
|
95
94
|
}, 1024)) : t?.scheme === "basic" ? (r(), u(i, { key: 1 }, [
|
|
@@ -105,12 +104,11 @@ const L = { class: "bg-b-1 text-c-2 outline-b-3 top-0 z-1 h-full w-full overflow
|
|
|
105
104
|
payload: { username: n }
|
|
106
105
|
}))
|
|
107
106
|
}), {
|
|
108
|
-
default: o(() => e[6] || (e[6] = [
|
|
109
|
-
x(" Username ")
|
|
110
|
-
])),
|
|
111
|
-
_:
|
|
112
|
-
|
|
113
|
-
}, 1040, ["modelValue"])
|
|
107
|
+
default: o(() => [...e[6] || (e[6] = [
|
|
108
|
+
x(" Username ", -1)
|
|
109
|
+
])]),
|
|
110
|
+
_: 1
|
|
111
|
+
}, 16, ["modelValue"])
|
|
114
112
|
]),
|
|
115
113
|
_: 2
|
|
116
114
|
}, 1024),
|
|
@@ -125,12 +123,11 @@ const L = { class: "bg-b-1 text-c-2 outline-b-3 top-0 z-1 h-full w-full overflow
|
|
|
125
123
|
payload: { password: n }
|
|
126
124
|
}))
|
|
127
125
|
}), {
|
|
128
|
-
default: o(() => e[7] || (e[7] = [
|
|
129
|
-
x(" Password ")
|
|
130
|
-
])),
|
|
131
|
-
_:
|
|
132
|
-
|
|
133
|
-
}, 1040, ["modelValue"])
|
|
126
|
+
default: o(() => [...e[7] || (e[7] = [
|
|
127
|
+
x(" Password ", -1)
|
|
128
|
+
])]),
|
|
129
|
+
_: 1
|
|
130
|
+
}, 16, ["modelValue"])
|
|
134
131
|
]),
|
|
135
132
|
_: 2
|
|
136
133
|
}, 1024)
|
|
@@ -147,12 +144,11 @@ const L = { class: "bg-b-1 text-c-2 outline-b-3 top-0 z-1 h-full w-full overflow
|
|
|
147
144
|
payload: { name: n }
|
|
148
145
|
}))
|
|
149
146
|
}), {
|
|
150
|
-
default: o(() => e[8] || (e[8] = [
|
|
151
|
-
x(" Name ")
|
|
152
|
-
])),
|
|
153
|
-
_:
|
|
154
|
-
|
|
155
|
-
}, 1040, ["containerClass", "modelValue"])
|
|
147
|
+
default: o(() => [...e[8] || (e[8] = [
|
|
148
|
+
x(" Name ", -1)
|
|
149
|
+
])]),
|
|
150
|
+
_: 1
|
|
151
|
+
}, 16, ["containerClass", "modelValue"])
|
|
156
152
|
]),
|
|
157
153
|
_: 2
|
|
158
154
|
}, 1024),
|
|
@@ -167,12 +163,11 @@ const L = { class: "bg-b-1 text-c-2 outline-b-3 top-0 z-1 h-full w-full overflow
|
|
|
167
163
|
payload: { value: n }
|
|
168
164
|
}))
|
|
169
165
|
}), {
|
|
170
|
-
default: o(() => e[9] || (e[9] = [
|
|
171
|
-
x(" Value ")
|
|
172
|
-
])),
|
|
173
|
-
_:
|
|
174
|
-
|
|
175
|
-
}, 1040, ["modelValue"])
|
|
166
|
+
default: o(() => [...e[9] || (e[9] = [
|
|
167
|
+
x(" Value ", -1)
|
|
168
|
+
])]),
|
|
169
|
+
_: 1
|
|
170
|
+
}, 16, ["modelValue"])
|
|
176
171
|
]),
|
|
177
172
|
_: 2
|
|
178
173
|
}, 1024)
|
|
@@ -180,8 +175,8 @@ const L = { class: "bg-b-1 text-c-2 outline-b-3 top-0 z-1 h-full w-full overflow
|
|
|
180
175
|
a(s(f), null, {
|
|
181
176
|
default: o(() => [
|
|
182
177
|
Object.keys(t.flows).length > 1 ? (r(), u("div", M, [
|
|
183
|
-
|
|
184
|
-
(r(!0), u(i, null,
|
|
178
|
+
_("div", Q, [
|
|
179
|
+
(r(!0), u(i, null, C(t?.flows, (n, d, V) => (r(), u("button", {
|
|
185
180
|
key: d,
|
|
186
181
|
class: j(["floating-bg text-c-3 relative cursor-pointer border-b-[1px] border-transparent py-1 text-base font-medium", {
|
|
187
182
|
"!text-c-1 !rounded-none border-b-[1px] !border-current": l.layout !== "reference" && (p.value === d || V === 0 && !p.value),
|
|
@@ -190,14 +185,14 @@ const L = { class: "bg-b-1 text-c-2 outline-b-3 top-0 z-1 h-full w-full overflow
|
|
|
190
185
|
type: "button",
|
|
191
186
|
onClick: (g) => p.value = d
|
|
192
187
|
}, [
|
|
193
|
-
|
|
188
|
+
_("span", D, F(d), 1)
|
|
194
189
|
], 10, q))), 128))
|
|
195
190
|
])
|
|
196
191
|
])) : b("", !0)
|
|
197
192
|
]),
|
|
198
193
|
_: 2
|
|
199
194
|
}, 1024),
|
|
200
|
-
(r(!0), u(i, null,
|
|
195
|
+
(r(!0), u(i, null, C(t.flows, (n, d, V) => (r(), u(i, { key: d }, [
|
|
201
196
|
p.value === d || V === 0 && !p.value ? (r(), k(O, v({
|
|
202
197
|
key: 0,
|
|
203
198
|
ref_for: !0
|
|
@@ -205,7 +200,7 @@ const L = { class: "bg-b-1 text-c-2 outline-b-3 top-0 z-1 h-full w-full overflow
|
|
|
205
200
|
flows: t.flows,
|
|
206
201
|
proxyUrl: "",
|
|
207
202
|
scheme: t,
|
|
208
|
-
selectedScopes:
|
|
203
|
+
selectedScopes: U,
|
|
209
204
|
server: l.server,
|
|
210
205
|
type: d,
|
|
211
206
|
"onUpdate:securityScheme": (g) => c("update:securityScheme", {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"oauth.d.ts","sourceRoot":"","sources":["../../../../../src/v2/blocks/scalar-auth-selector-block/helpers/oauth.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,gBAAgB,EAAE,YAAY,EAAE,MAAM,8DAA8D,CAAA;AAGlH,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,eAAe,CAAA;AAElD,qDAAqD;AACrD,KAAK,eAAe,GAAG,IAAI,CAAC,gBAAgB,EAAE,UAAU,CAAC,CAAA;AAEzD,KAAK,SAAS,GAAG;IACf,YAAY,EAAE,MAAM,CAAA;IACpB,aAAa,EAAE,MAAM,CAAA;IACrB,mBAAmB,EAAE,MAAM,CAAA;CAC5B,CAAA;AAgBD;;GAEG;AACH,eAAO,MAAM,qBAAqB,GAAU,UAAU,MAAM,EAAE,UAAU,SAAS,GAAG,OAAO,KAAG,OAAO,CAAC,MAAM,CAY3G,CAAA;AAED;;;;GAIG;AACH,eAAO,MAAM,eAAe,GAC1B,OAAO,gBAAgB,EACvB,MAAM,MAAM,gBAAgB,EAC5B,gBAAgB,MAAM,EAAE;AACxB,wEAAwE;AACxE,cAAc,YAAY;AAC1B,kCAAkC;AAClC,WAAW,MAAM,KAChB,OAAO,CAAC,aAAa,CAAC,MAAM,CAAC,
|
|
1
|
+
{"version":3,"file":"oauth.d.ts","sourceRoot":"","sources":["../../../../../src/v2/blocks/scalar-auth-selector-block/helpers/oauth.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,gBAAgB,EAAE,YAAY,EAAE,MAAM,8DAA8D,CAAA;AAGlH,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,eAAe,CAAA;AAElD,qDAAqD;AACrD,KAAK,eAAe,GAAG,IAAI,CAAC,gBAAgB,EAAE,UAAU,CAAC,CAAA;AAEzD,KAAK,SAAS,GAAG;IACf,YAAY,EAAE,MAAM,CAAA;IACpB,aAAa,EAAE,MAAM,CAAA;IACrB,mBAAmB,EAAE,MAAM,CAAA;CAC5B,CAAA;AAgBD;;GAEG;AACH,eAAO,MAAM,qBAAqB,GAAU,UAAU,MAAM,EAAE,UAAU,SAAS,GAAG,OAAO,KAAG,OAAO,CAAC,MAAM,CAY3G,CAAA;AAED;;;;GAIG;AACH,eAAO,MAAM,eAAe,GAC1B,OAAO,gBAAgB,EACvB,MAAM,MAAM,gBAAgB,EAC5B,gBAAgB,MAAM,EAAE;AACxB,wEAAwE;AACxE,cAAc,YAAY;AAC1B,kCAAkC;AAClC,WAAW,MAAM,KAChB,OAAO,CAAC,aAAa,CAAC,MAAM,CAAC,CAkK/B,CAAA;AAED;;;GAGG;AACH,eAAO,MAAM,gBAAgB,GAC3B,OAAO,eAAe,EACtB,MAAM,MAAM,eAAe,EAC3B,QAAQ,MAAM,EACd,4BAIG;IACD,IAAI,CAAC,EAAE,MAAM,CAAA;IACb,IAAI,CAAC,EAAE,SAAS,GAAG,IAAI,CAAA;IACvB,QAAQ,CAAC,EAAE,MAAM,GAAG,SAAS,CAAA;CACzB,KACL,OAAO,CAAC,aAAa,CAAC,MAAM,CAAC,CA8F/B,CAAA"}
|
|
@@ -3,6 +3,7 @@ import type { Environment } from '@scalar/oas-utils/entities/environment';
|
|
|
3
3
|
import type { OpenApiDocument, OperationObject, ServerObject } from '@scalar/workspace-store/schemas/v3.1/strict/openapi-document';
|
|
4
4
|
import type { ClientLayout } from '../../../../hooks/index.js';
|
|
5
5
|
import type { EnvVariable } from '../../../../store/index.js';
|
|
6
|
+
import type { ClientPlugin } from '../../../../v2/plugins';
|
|
6
7
|
type __VLS_Props = {
|
|
7
8
|
/** Operation method */
|
|
8
9
|
method: HttpMethod;
|
|
@@ -24,6 +25,8 @@ type __VLS_Props = {
|
|
|
24
25
|
server?: ServerObject;
|
|
25
26
|
/** Client layout */
|
|
26
27
|
layout: ClientLayout;
|
|
28
|
+
/** Registered app plugins */
|
|
29
|
+
plugins?: ClientPlugin[];
|
|
27
30
|
/** TODO: remove when we migrate */
|
|
28
31
|
environment: Environment;
|
|
29
32
|
envVariables: EnvVariable[];
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"OperationBlock.vue.d.ts","sourceRoot":"","sources":["../../../../../src/v2/blocks/scalar-operation-block/components/OperationBlock.vue"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"OperationBlock.vue.d.ts","sourceRoot":"","sources":["../../../../../src/v2/blocks/scalar-operation-block/components/OperationBlock.vue"],"names":[],"mappings":"AAidA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,mCAAmC,CAAA;AACnE,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,wCAAwC,CAAA;AAGzE,OAAO,KAAK,EACV,eAAe,EACf,eAAe,EAGf,YAAY,EACb,MAAM,8DAA8D,CAAA;AAKrE,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,SAAS,CAAA;AAC3C,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,SAAS,CAAA;AAM1C,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,cAAc,CAAA;AAEhD,KAAK,WAAW,GAAG;IACjB,uBAAuB;IACvB,MAAM,EAAE,UAAU,CAAA;IAClB,qBAAqB;IACrB,IAAI,EAAE,MAAM,CAAA;IACZ,uBAAuB;IACvB,SAAS,EAAE,eAAe,CAAA;IAC1B,+DAA+D;IAC/D,UAAU,EAAE,MAAM,CAAA;IAClB,wEAAwE;IACxE,mBAAmB,CAAC,EAAE,MAAM,CAAA;IAC5B,wCAAwC;IACxC,eAAe,EAAE,WAAW,CAAC,eAAe,CAAC,YAAY,CAAC,CAAC,CAAC,iBAAiB,CAAC,CAAA;IAC9E,4DAA4D;IAC5D,gBAAgB,EAAE,eAAe,CAAC,4BAA4B,CAAC,CAAA;IAC/D,mDAAmD;IACnD,QAAQ,EAAE,eAAe,CAAC,UAAU,CAAC,CAAA;IACrC,6EAA6E;IAC7E,MAAM,CAAC,EAAE,YAAY,CAAA;IACrB,oBAAoB;IACpB,MAAM,EAAE,YAAY,CAAA;IACpB,6BAA6B;IAC7B,OAAO,CAAC,EAAE,YAAY,EAAE,CAAA;IAExB,mCAAmC;IACnC,WAAW,EAAE,WAAW,CAAA;IACxB,YAAY,EAAE,WAAW,EAAE,CAAA;CAC5B,CAAC;;;;;;;;AAkqBF,wBAOG"}
|