@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
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import { defineComponent as l, useModel as n, createElementBlock as s, openBlock as u, createVNode as t, unref as d } from "vue";
|
|
2
|
+
import p from "./DownloadAppButton.vue.js";
|
|
3
|
+
import m from "../../../components/sidebar/SidebarMenu.vue.js";
|
|
4
|
+
const c = { class: "flex h-12 items-center justify-between border-b p-2" }, f = {}, b = /* @__PURE__ */ l({
|
|
5
|
+
...f,
|
|
6
|
+
__name: "WebTopNav",
|
|
7
|
+
props: {
|
|
8
|
+
modelValue: {
|
|
9
|
+
required: !0,
|
|
10
|
+
default: "default"
|
|
11
|
+
},
|
|
12
|
+
modelModifiers: {}
|
|
13
|
+
},
|
|
14
|
+
emits: ["update:modelValue"],
|
|
15
|
+
setup(r) {
|
|
16
|
+
const e = n(r, "modelValue");
|
|
17
|
+
return (i, o) => (u(), s("nav", c, [
|
|
18
|
+
t(d(m), {
|
|
19
|
+
workspace: e.value,
|
|
20
|
+
"onUpdate:workspace": o[0] || (o[0] = (a) => e.value = a)
|
|
21
|
+
}, null, 8, ["workspace"]),
|
|
22
|
+
t(p)
|
|
23
|
+
]));
|
|
24
|
+
}
|
|
25
|
+
});
|
|
26
|
+
export {
|
|
27
|
+
b as default
|
|
28
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/v2/features/app/components/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,IAAI,GAAG,EAAE,MAAM,YAAY,CAAA"}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import type { WorkspaceStore } from '@scalar/workspace-store/client';
|
|
2
|
+
import type { ClientPlugin } from '../../../../v2/plugins';
|
|
3
|
+
import type { ClientLayout } from '../../../../v2/types/layout';
|
|
4
|
+
export type CreateApiClientOptions = {
|
|
5
|
+
/**
|
|
6
|
+
* The layout of the client, limited to web or desktop in app
|
|
7
|
+
* @see {@link ClientLayout}
|
|
8
|
+
*
|
|
9
|
+
* @default 'desktop'
|
|
10
|
+
*/
|
|
11
|
+
layout: Exclude<ClientLayout, 'modal'>;
|
|
12
|
+
/**
|
|
13
|
+
* Api client plugins to include in the app
|
|
14
|
+
*/
|
|
15
|
+
plugins?: ClientPlugin[];
|
|
16
|
+
};
|
|
17
|
+
/**
|
|
18
|
+
* Creates the appropriate router with the appropriate routes based on the layout
|
|
19
|
+
*/
|
|
20
|
+
export declare const createAppRouter: (layout: CreateApiClientOptions["layout"]) => import("vue-router").Router;
|
|
21
|
+
/**
|
|
22
|
+
* Create the API Client with router and passes in the workspace store as a prop
|
|
23
|
+
*/
|
|
24
|
+
export declare const createApiClientApp: (el: HTMLElement | null, workspaceStore: WorkspaceStore, { layout }: CreateApiClientOptions) => void;
|
|
25
|
+
//# sourceMappingURL=create-api-client-app.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"create-api-client-app.d.ts","sourceRoot":"","sources":["../../../../../src/v2/features/app/helpers/create-api-client-app.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,gCAAgC,CAAA;AAMpE,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,cAAc,CAAA;AAChD,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,mBAAmB,CAAA;AAErD,MAAM,MAAM,sBAAsB,GAAG;IACnC;;;;;OAKG;IACH,MAAM,EAAE,OAAO,CAAC,YAAY,EAAE,OAAO,CAAC,CAAA;IACtC;;OAEG;IACH,OAAO,CAAC,EAAE,YAAY,EAAE,CAAA;CACzB,CAAA;AAED;;GAEG;AACH,eAAO,MAAM,eAAe,GAAI,QAAQ,sBAAsB,CAAC,QAAQ,CAAC,gCAQvE,CAAA;AAED;;GAEG;AACH,eAAO,MAAM,kBAAkB,GAC7B,IAAI,WAAW,GAAG,IAAI,EACtB,gBAAgB,cAAc,EAC9B,YAAwB,sBAAsB,SAmB/C,CAAA"}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { createApp as p } from "vue";
|
|
2
|
+
import { createRouter as o, createWebHistory as c, createWebHashHistory as s } from "vue-router";
|
|
3
|
+
import n from "../App.vue.js";
|
|
4
|
+
/* empty css */
|
|
5
|
+
import { ROUTES as a } from "./routes.js";
|
|
6
|
+
const m = (e) => e === "web" ? o({ history: c(), routes: a }) : o({ history: s(), routes: a }), A = (e, i, { layout: r = "desktop" }) => {
|
|
7
|
+
const t = p(n, { workspaceStore: i, layout: r });
|
|
8
|
+
if (t.use(m(r)), !e) {
|
|
9
|
+
console.error(
|
|
10
|
+
"[@scalar/api-client-modal] Could not create the API client.",
|
|
11
|
+
"Invalid HTML element provided.",
|
|
12
|
+
"Read more: https://github.com/scalar/scalar/tree/main/packages/api-client"
|
|
13
|
+
);
|
|
14
|
+
return;
|
|
15
|
+
}
|
|
16
|
+
t.mount(e);
|
|
17
|
+
};
|
|
18
|
+
export {
|
|
19
|
+
A as createApiClientApp,
|
|
20
|
+
m as createAppRouter
|
|
21
|
+
};
|
|
@@ -0,0 +1,103 @@
|
|
|
1
|
+
import type { WorkspaceEventBus } from '@scalar/workspace-store/events';
|
|
2
|
+
import type { WorkspaceDocument } from '@scalar/workspace-store/schemas/workspace';
|
|
3
|
+
import type { ClientLayout } from '../../../../v2/types/layout';
|
|
4
|
+
/** These props are provided at the route level */
|
|
5
|
+
export type RouteProps = {
|
|
6
|
+
document: WorkspaceDocument | null;
|
|
7
|
+
eventBus: WorkspaceEventBus;
|
|
8
|
+
layout: ClientLayout;
|
|
9
|
+
};
|
|
10
|
+
/** Routes for the API client app and web, the same as modal + workspace routes */
|
|
11
|
+
export declare const ROUTES: ({
|
|
12
|
+
name: string;
|
|
13
|
+
path: string;
|
|
14
|
+
component: () => Promise<typeof import("../../../../v2/components/TempReplaceMe.vue.js")>;
|
|
15
|
+
children?: undefined;
|
|
16
|
+
redirect?: undefined;
|
|
17
|
+
} | {
|
|
18
|
+
path: string;
|
|
19
|
+
children: ({
|
|
20
|
+
path: string;
|
|
21
|
+
children: ({
|
|
22
|
+
name: string;
|
|
23
|
+
path: string;
|
|
24
|
+
component: () => Promise<typeof import("../../../../v2/components/TempReplaceMe.vue.js")>;
|
|
25
|
+
children?: undefined;
|
|
26
|
+
} | {
|
|
27
|
+
name: string;
|
|
28
|
+
path: string;
|
|
29
|
+
component: () => Promise<typeof import("../../../../v2/features/collection/DocumentCollection.vue.js")>;
|
|
30
|
+
children: ({
|
|
31
|
+
name: string;
|
|
32
|
+
path: string;
|
|
33
|
+
redirect: {
|
|
34
|
+
name: string;
|
|
35
|
+
};
|
|
36
|
+
component?: undefined;
|
|
37
|
+
} | {
|
|
38
|
+
name: string;
|
|
39
|
+
path: string;
|
|
40
|
+
component: () => Promise<typeof import("../../../../v2/features/collection/components/Overview.vue.js")>;
|
|
41
|
+
redirect?: undefined;
|
|
42
|
+
} | {
|
|
43
|
+
name: string;
|
|
44
|
+
path: string;
|
|
45
|
+
component: () => Promise<typeof import("../../../../v2/features/collection/components/Servers.vue.js")>;
|
|
46
|
+
redirect?: undefined;
|
|
47
|
+
} | {
|
|
48
|
+
name: string;
|
|
49
|
+
path: string;
|
|
50
|
+
component: () => Promise<typeof import("../../../../v2/features/collection/components/Environment.vue.js")>;
|
|
51
|
+
redirect?: undefined;
|
|
52
|
+
} | {
|
|
53
|
+
name: string;
|
|
54
|
+
path: string;
|
|
55
|
+
component: () => Promise<typeof import("../../../../v2/features/collection/components/Authentication.vue.js")>;
|
|
56
|
+
redirect?: undefined;
|
|
57
|
+
} | {
|
|
58
|
+
name: string;
|
|
59
|
+
path: string;
|
|
60
|
+
component: () => Promise<typeof import("../../../../v2/features/collection/components/Cookies.vue.js")>;
|
|
61
|
+
redirect?: undefined;
|
|
62
|
+
} | {
|
|
63
|
+
name: string;
|
|
64
|
+
path: string;
|
|
65
|
+
component: () => Promise<typeof import("../../../../v2/features/collection/components/Settings.vue.js")>;
|
|
66
|
+
redirect?: undefined;
|
|
67
|
+
})[];
|
|
68
|
+
})[];
|
|
69
|
+
name?: undefined;
|
|
70
|
+
component?: undefined;
|
|
71
|
+
} | {
|
|
72
|
+
name: string;
|
|
73
|
+
path: string;
|
|
74
|
+
component: () => Promise<typeof import("../../../../v2/features/collection/WorkspaceCollection.vue.js")>;
|
|
75
|
+
children: ({
|
|
76
|
+
name: string;
|
|
77
|
+
path: string;
|
|
78
|
+
component: () => Promise<typeof import("../../../../v2/features/collection/WorkspaceCollection.vue.js")>;
|
|
79
|
+
} | {
|
|
80
|
+
name: string;
|
|
81
|
+
path: string;
|
|
82
|
+
component: () => Promise<typeof import("../../../../v2/features/collection/components/Environment.vue.js")>;
|
|
83
|
+
} | {
|
|
84
|
+
name: string;
|
|
85
|
+
path: string;
|
|
86
|
+
component: () => Promise<typeof import("../../../../v2/features/collection/components/Cookies.vue.js")>;
|
|
87
|
+
} | {
|
|
88
|
+
name: string;
|
|
89
|
+
path: string;
|
|
90
|
+
component: () => Promise<typeof import("../../../../v2/features/collection/components/Settings.vue.js")>;
|
|
91
|
+
})[];
|
|
92
|
+
})[];
|
|
93
|
+
name?: undefined;
|
|
94
|
+
component?: undefined;
|
|
95
|
+
redirect?: undefined;
|
|
96
|
+
} | {
|
|
97
|
+
path: string;
|
|
98
|
+
redirect: string;
|
|
99
|
+
name?: undefined;
|
|
100
|
+
component?: undefined;
|
|
101
|
+
children?: undefined;
|
|
102
|
+
})[];
|
|
103
|
+
//# sourceMappingURL=routes.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"routes.d.ts","sourceRoot":"","sources":["../../../../../src/v2/features/app/helpers/routes.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,gCAAgC,CAAA;AACvE,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,2CAA2C,CAAA;AAGlF,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,mBAAmB,CAAA;AAErD,kDAAkD;AAClD,MAAM,MAAM,UAAU,GAAG;IACvB,QAAQ,EAAE,iBAAiB,GAAG,IAAI,CAAA;IAClC,QAAQ,EAAE,iBAAiB,CAAA;IAC3B,MAAM,EAAE,YAAY,CAAA;CAOrB,CAAA;AAED,kFAAkF;AAClF,eAAO,MAAM,MAAM;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;IA+GS,CAAA"}
|
|
@@ -0,0 +1,115 @@
|
|
|
1
|
+
const e = [
|
|
2
|
+
// Global settings
|
|
3
|
+
{
|
|
4
|
+
name: "settings",
|
|
5
|
+
path: "/settings",
|
|
6
|
+
component: () => import("../../../components/TempReplaceMe.vue.js")
|
|
7
|
+
},
|
|
8
|
+
{
|
|
9
|
+
path: "/workspace/:workspaceSlug",
|
|
10
|
+
children: [
|
|
11
|
+
{
|
|
12
|
+
path: "document/:documentSlug",
|
|
13
|
+
children: [
|
|
14
|
+
// Example page
|
|
15
|
+
{
|
|
16
|
+
name: "example",
|
|
17
|
+
path: "path/:pathEncoded/method/:method/example/:exampleName",
|
|
18
|
+
component: () => import("../../../components/TempReplaceMe.vue.js")
|
|
19
|
+
},
|
|
20
|
+
// Document Page
|
|
21
|
+
{
|
|
22
|
+
name: "document",
|
|
23
|
+
path: "",
|
|
24
|
+
component: () => import("../../collection/DocumentCollection.vue.js"),
|
|
25
|
+
children: [
|
|
26
|
+
// Redirect to overview
|
|
27
|
+
{
|
|
28
|
+
name: "document.redirect",
|
|
29
|
+
path: "",
|
|
30
|
+
redirect: {
|
|
31
|
+
name: "document.overview"
|
|
32
|
+
}
|
|
33
|
+
},
|
|
34
|
+
// Document overview
|
|
35
|
+
{
|
|
36
|
+
name: "document.overview",
|
|
37
|
+
path: "overview",
|
|
38
|
+
component: () => import("../../collection/components/Overview.vue.js")
|
|
39
|
+
},
|
|
40
|
+
// Document servers
|
|
41
|
+
{
|
|
42
|
+
name: "document.servers",
|
|
43
|
+
path: "servers",
|
|
44
|
+
component: () => import("../../collection/components/Servers.vue.js")
|
|
45
|
+
},
|
|
46
|
+
// Document environment
|
|
47
|
+
{
|
|
48
|
+
name: "document.environment",
|
|
49
|
+
path: "environment",
|
|
50
|
+
component: () => import("../../collection/components/Environment.vue.js")
|
|
51
|
+
},
|
|
52
|
+
// Document authentication
|
|
53
|
+
{
|
|
54
|
+
name: "document.authentication",
|
|
55
|
+
path: "authentication",
|
|
56
|
+
component: () => import("../../collection/components/Authentication.vue.js")
|
|
57
|
+
},
|
|
58
|
+
// Document cookies
|
|
59
|
+
{
|
|
60
|
+
name: "document.cookies",
|
|
61
|
+
path: "cookies",
|
|
62
|
+
component: () => import("../../collection/components/Cookies.vue.js")
|
|
63
|
+
},
|
|
64
|
+
// Document settings
|
|
65
|
+
{
|
|
66
|
+
name: "document.settings",
|
|
67
|
+
path: "settings",
|
|
68
|
+
component: () => import("../../collection/components/Settings.vue.js")
|
|
69
|
+
}
|
|
70
|
+
]
|
|
71
|
+
}
|
|
72
|
+
]
|
|
73
|
+
},
|
|
74
|
+
// Workspace page
|
|
75
|
+
{
|
|
76
|
+
name: "workspace",
|
|
77
|
+
path: "",
|
|
78
|
+
component: () => import("../../collection/WorkspaceCollection.vue.js"),
|
|
79
|
+
children: [
|
|
80
|
+
// Workspace overview
|
|
81
|
+
{
|
|
82
|
+
name: "workspace.overview",
|
|
83
|
+
path: "overview",
|
|
84
|
+
component: () => import("../../collection/WorkspaceCollection.vue.js")
|
|
85
|
+
},
|
|
86
|
+
// Workspace environment
|
|
87
|
+
{
|
|
88
|
+
name: "workspace.environment",
|
|
89
|
+
path: "environment",
|
|
90
|
+
component: () => import("../../collection/components/Environment.vue.js")
|
|
91
|
+
},
|
|
92
|
+
// Workspace cookies
|
|
93
|
+
{
|
|
94
|
+
name: "workspace.cookies",
|
|
95
|
+
path: "cookies",
|
|
96
|
+
component: () => import("../../collection/components/Cookies.vue.js")
|
|
97
|
+
},
|
|
98
|
+
// Workspace settings
|
|
99
|
+
{
|
|
100
|
+
name: "workspace.settings",
|
|
101
|
+
path: "settings",
|
|
102
|
+
component: () => import("../../collection/components/Settings.vue.js")
|
|
103
|
+
}
|
|
104
|
+
]
|
|
105
|
+
}
|
|
106
|
+
]
|
|
107
|
+
},
|
|
108
|
+
{
|
|
109
|
+
path: "/:pathMatch(.*)*",
|
|
110
|
+
redirect: "/workspace/default/document/default/overview"
|
|
111
|
+
}
|
|
112
|
+
];
|
|
113
|
+
export {
|
|
114
|
+
e as ROUTES
|
|
115
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/v2/features/app/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,kBAAkB,EAAE,MAAM,iCAAiC,CAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"DocumentCollection.test.d.ts","sourceRoot":"","sources":["../../../../src/v2/features/collection/DocumentCollection.test.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import type { RouteProps } from '../../../v2/features/app/helpers/routes.js';
|
|
2
|
+
/**
|
|
3
|
+
* Document Collection Page
|
|
4
|
+
*
|
|
5
|
+
* Displays primary document editing and viewing interface, enabling users to:
|
|
6
|
+
* - Choose a document icon
|
|
7
|
+
* - Edit the document title
|
|
8
|
+
* - Navigate among Overview, Servers, Authentication, Environment, Cookies, and Settings tabs
|
|
9
|
+
*/
|
|
10
|
+
declare const _default: import("vue").DefineComponent<RouteProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<RouteProps> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
11
|
+
export default _default;
|
|
12
|
+
//# sourceMappingURL=DocumentCollection.vue.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"DocumentCollection.vue.d.ts","sourceRoot":"","sources":["../../../../src/v2/features/collection/DocumentCollection.vue"],"names":[],"mappings":"AAwGA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,kCAAkC,CAAA;AAMlE;;;;;;;GAOG;;AACH,wBAwOC"}
|
|
@@ -0,0 +1,82 @@
|
|
|
1
|
+
import { defineComponent as f, computed as i, createElementBlock as m, openBlock as d, createElementVNode as e, createVNode as o, withCtx as c, unref as a } from "vue";
|
|
2
|
+
import { ScalarButton as p } from "@scalar/components";
|
|
3
|
+
import { LibraryIcon as x } from "@scalar/icons/library";
|
|
4
|
+
import { RouterView as v } from "vue-router";
|
|
5
|
+
import _ from "../../../components/IconSelector.vue.js";
|
|
6
|
+
import b from "./components/LabelInput.vue.js";
|
|
7
|
+
import h from "./components/Tabs.vue.js";
|
|
8
|
+
const y = {
|
|
9
|
+
key: 0,
|
|
10
|
+
class: "w-full md:mx-auto md:max-w-[720px]"
|
|
11
|
+
}, w = ["aria-label"], g = { class: "flex flex-row items-center gap-2" }, B = { class: "group relative ml-1.25" }, V = { class: "flex h-full w-full flex-col gap-12 px-1.5 pt-8" }, k = {
|
|
12
|
+
key: 1,
|
|
13
|
+
class: "flex w-full flex-1 items-center justify-center"
|
|
14
|
+
}, C = {}, L = /* @__PURE__ */ f({
|
|
15
|
+
...C,
|
|
16
|
+
__name: "DocumentCollection",
|
|
17
|
+
props: {
|
|
18
|
+
document: {},
|
|
19
|
+
eventBus: {},
|
|
20
|
+
layout: {}
|
|
21
|
+
},
|
|
22
|
+
setup(s) {
|
|
23
|
+
const u = i(() => s.document?.info?.title || "Untitled Document"), r = i(
|
|
24
|
+
() => s.document?.["x-scalar-client-config-icon"] || "interface-content-folder"
|
|
25
|
+
);
|
|
26
|
+
return (l, t) => l.document ? (d(), m("div", y, [
|
|
27
|
+
e("div", {
|
|
28
|
+
"aria-label": `title: ${u.value}`,
|
|
29
|
+
class: "mx-auto flex h-fit w-full flex-col gap-2 pt-6 pb-3 md:mx-auto md:max-w-[720px]"
|
|
30
|
+
}, [
|
|
31
|
+
e("div", g, [
|
|
32
|
+
o(_, {
|
|
33
|
+
modelValue: r.value,
|
|
34
|
+
placement: "bottom-start",
|
|
35
|
+
"onUpdate:modelValue": t[0] || (t[0] = (n) => l.eventBus.emit("update:document-icon", n))
|
|
36
|
+
}, {
|
|
37
|
+
default: c(() => [
|
|
38
|
+
o(a(p), {
|
|
39
|
+
class: "hover:bg-b-2 aspect-square h-7 w-7 cursor-pointer rounded border border-transparent p-0 hover:border-inherit",
|
|
40
|
+
variant: "ghost"
|
|
41
|
+
}, {
|
|
42
|
+
default: c(() => [
|
|
43
|
+
o(a(x), {
|
|
44
|
+
class: "text-c-2 size-5",
|
|
45
|
+
src: r.value,
|
|
46
|
+
"stroke-width": "2"
|
|
47
|
+
}, null, 8, ["src"])
|
|
48
|
+
]),
|
|
49
|
+
_: 1
|
|
50
|
+
})
|
|
51
|
+
]),
|
|
52
|
+
_: 1
|
|
53
|
+
}, 8, ["modelValue"])
|
|
54
|
+
]),
|
|
55
|
+
e("div", B, [
|
|
56
|
+
o(b, {
|
|
57
|
+
class: "text-xl font-bold",
|
|
58
|
+
inputId: "documentName",
|
|
59
|
+
modelValue: u.value,
|
|
60
|
+
"onUpdate:modelValue": t[1] || (t[1] = (n) => l.eventBus.emit("update:document-info", { title: n }))
|
|
61
|
+
}, null, 8, ["modelValue"])
|
|
62
|
+
])
|
|
63
|
+
], 8, w),
|
|
64
|
+
o(h, { type: "document" }),
|
|
65
|
+
e("div", V, [
|
|
66
|
+
o(a(v), {
|
|
67
|
+
eventBus: l.eventBus,
|
|
68
|
+
layout: l.layout,
|
|
69
|
+
type: "document"
|
|
70
|
+
}, null, 8, ["eventBus", "layout"])
|
|
71
|
+
])
|
|
72
|
+
])) : (d(), m("div", k, [...t[2] || (t[2] = [
|
|
73
|
+
e("div", { class: "flex h-full flex-col items-center justify-center" }, [
|
|
74
|
+
e("h1", { class: "text-2xl font-bold" }, "Document not found"),
|
|
75
|
+
e("p", { class: "text-gray-500" }, " The document you are looking for does not exist. ")
|
|
76
|
+
], -1)
|
|
77
|
+
])]));
|
|
78
|
+
}
|
|
79
|
+
});
|
|
80
|
+
export {
|
|
81
|
+
L as default
|
|
82
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"WorkspaceCollection.test.d.ts","sourceRoot":"","sources":["../../../../src/v2/features/collection/WorkspaceCollection.test.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import type { RouteProps } from '../../../v2/features/app/helpers/routes.js';
|
|
2
|
+
/**
|
|
3
|
+
* Document Collection Page
|
|
4
|
+
*
|
|
5
|
+
* Displays primary document editing and viewing interface, enabling users navigate among
|
|
6
|
+
* Overview, Servers, Authentication, Environment, Cookies, and Settings tabs
|
|
7
|
+
*/
|
|
8
|
+
declare const _default: import("vue").DefineComponent<RouteProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<RouteProps> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
9
|
+
export default _default;
|
|
10
|
+
//# sourceMappingURL=WorkspaceCollection.vue.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"WorkspaceCollection.vue.d.ts","sourceRoot":"","sources":["../../../../src/v2/features/collection/WorkspaceCollection.vue"],"names":[],"mappings":"AAuDA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,kCAAkC,CAAA;AAKlE;;;;;GAKG;;AACH,wBAyHC"}
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
import { defineComponent as s, createElementBlock as c, openBlock as r, createElementVNode as e, createVNode as t, unref as a, toDisplayString as p } from "vue";
|
|
2
|
+
import { ScalarIconGlobe as n } from "@scalar/icons";
|
|
3
|
+
import { RouterView as i } from "vue-router";
|
|
4
|
+
import m from "./components/Tabs.vue.js";
|
|
5
|
+
const u = { class: "w-full md:mx-auto md:max-w-[720px]" }, f = ["aria-label"], _ = { class: "flex h-full w-full flex-col gap-12 px-1.5 pt-8" }, d = {}, B = /* @__PURE__ */ s({
|
|
6
|
+
...d,
|
|
7
|
+
__name: "WorkspaceCollection",
|
|
8
|
+
props: {
|
|
9
|
+
document: {},
|
|
10
|
+
eventBus: {},
|
|
11
|
+
layout: {}
|
|
12
|
+
},
|
|
13
|
+
setup(x) {
|
|
14
|
+
const o = "Workspace Title [replace with name]";
|
|
15
|
+
return (l, w) => (r(), c("div", u, [
|
|
16
|
+
e("div", {
|
|
17
|
+
"aria-label": `title: ${o}`,
|
|
18
|
+
class: "mx-auto flex h-fit w-full flex-col gap-2 pt-6 pb-3 md:mx-auto md:max-w-[720px]"
|
|
19
|
+
}, [
|
|
20
|
+
t(a(n), { class: "text-c-2 size-6" }),
|
|
21
|
+
e("div", { class: "group relative ml-1.25" }, [
|
|
22
|
+
e("span", { class: "text-c-1 flex h-8 items-center" }, p(o))
|
|
23
|
+
])
|
|
24
|
+
], 8, f),
|
|
25
|
+
t(m, { type: "workspace" }),
|
|
26
|
+
e("div", _, [
|
|
27
|
+
t(a(i), {
|
|
28
|
+
eventBus: l.eventBus,
|
|
29
|
+
layout: l.layout,
|
|
30
|
+
type: "workspace"
|
|
31
|
+
}, null, 8, ["eventBus", "layout"])
|
|
32
|
+
])
|
|
33
|
+
]));
|
|
34
|
+
}
|
|
35
|
+
});
|
|
36
|
+
export {
|
|
37
|
+
B as default
|
|
38
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Authentication.test.d.ts","sourceRoot":"","sources":["../../../../../src/v2/features/collection/components/Authentication.test.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
import type { Environment } from '@scalar/oas-utils/entities/environment';
|
|
2
|
+
import type { OpenApiDocument, SecuritySchemeObject, ServerObject } from '@scalar/workspace-store/schemas/v3.1/strict/openapi-document';
|
|
3
|
+
import type { EnvVariable } from '../../../../store/index.js';
|
|
4
|
+
import type { UpdateSecuritySchemeEvent } from '../../../../v2/blocks/scalar-auth-selector-block/event-types';
|
|
5
|
+
type __VLS_Props = {
|
|
6
|
+
/** Should use document security */
|
|
7
|
+
useDocumentSecurity: boolean;
|
|
8
|
+
/** Security requirements for the document */
|
|
9
|
+
security: OpenApiDocument['security'];
|
|
10
|
+
/** Currently selected security requirements */
|
|
11
|
+
selectedSecurity: OpenApiDocument['security'];
|
|
12
|
+
/** Security schemes available in the document */
|
|
13
|
+
securitySchemes: NonNullable<OpenApiDocument['components']>['securitySchemes'];
|
|
14
|
+
/** Currently selected server */
|
|
15
|
+
server: ServerObject | undefined;
|
|
16
|
+
/** TODO: remove when we migrate */
|
|
17
|
+
environment: Environment;
|
|
18
|
+
envVariables: EnvVariable[];
|
|
19
|
+
};
|
|
20
|
+
declare const _default: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {} & {
|
|
21
|
+
"update:selectedScopes": (payload: {
|
|
22
|
+
id: string[];
|
|
23
|
+
name: string;
|
|
24
|
+
scopes: string[];
|
|
25
|
+
}) => any;
|
|
26
|
+
"update:securityScheme": (payload: UpdateSecuritySchemeEvent) => any;
|
|
27
|
+
deleteOperationAuth: (names: string[]) => any;
|
|
28
|
+
"update:selectedSecurity": (payload: {
|
|
29
|
+
value: NonNullable<OpenApiDocument["x-scalar-selected-security"]>;
|
|
30
|
+
create: SecuritySchemeObject[];
|
|
31
|
+
}) => any;
|
|
32
|
+
"update:useDocumentSecurity": (value: boolean) => any;
|
|
33
|
+
}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{
|
|
34
|
+
"onUpdate:selectedScopes"?: ((payload: {
|
|
35
|
+
id: string[];
|
|
36
|
+
name: string;
|
|
37
|
+
scopes: string[];
|
|
38
|
+
}) => any) | undefined;
|
|
39
|
+
"onUpdate:securityScheme"?: ((payload: UpdateSecuritySchemeEvent) => any) | undefined;
|
|
40
|
+
onDeleteOperationAuth?: ((names: string[]) => any) | undefined;
|
|
41
|
+
"onUpdate:selectedSecurity"?: ((payload: {
|
|
42
|
+
value: NonNullable<OpenApiDocument["x-scalar-selected-security"]>;
|
|
43
|
+
create: SecuritySchemeObject[];
|
|
44
|
+
}) => any) | undefined;
|
|
45
|
+
"onUpdate:useDocumentSecurity"?: ((value: boolean) => any) | undefined;
|
|
46
|
+
}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
47
|
+
export default _default;
|
|
48
|
+
//# sourceMappingURL=Authentication.vue.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Authentication.vue.d.ts","sourceRoot":"","sources":["../../../../../src/v2/features/collection/components/Authentication.vue"],"names":[],"mappings":"AAoGA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,wCAAwC,CAAA;AACzE,OAAO,KAAK,EACV,eAAe,EACf,oBAAoB,EACpB,YAAY,EACb,MAAM,8DAA8D,CAAA;AAErE,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,SAAS,CAAA;AAE1C,OAAO,KAAK,EAAE,yBAAyB,EAAE,MAAM,oDAAoD,CAAA;AAEnG,KAAK,WAAW,GAAG;IACjB,mCAAmC;IACnC,mBAAmB,EAAE,OAAO,CAAA;IAE5B,6CAA6C;IAC7C,QAAQ,EAAE,eAAe,CAAC,UAAU,CAAC,CAAA;IACrC,+CAA+C;IAC/C,gBAAgB,EAAE,eAAe,CAAC,UAAU,CAAC,CAAA;IAC7C,iDAAiD;IACjD,eAAe,EAAE,WAAW,CAAC,eAAe,CAAC,YAAY,CAAC,CAAC,CAAC,iBAAiB,CAAC,CAAA;IAC9E,gCAAgC;IAChC,MAAM,EAAE,YAAY,GAAG,SAAS,CAAA;IAEhC,mCAAmC;IACnC,WAAW,EAAE,WAAW,CAAA;IACxB,YAAY,EAAE,WAAW,EAAE,CAAA;CAC5B,CAAC;;;YAWiB,MAAM,EAAE;cAAQ,MAAM;gBAAU,MAAM,EAAE;;;;;eAK9C,WAAW,CAAC,eAAe,CAAC,4BAA4B,CAAC,CAAC;gBACzD,oBAAoB,EAAE;;;;;YANjB,MAAM,EAAE;cAAQ,MAAM;gBAAU,MAAM,EAAE;;;;;eAK9C,WAAW,CAAC,eAAe,CAAC,4BAA4B,CAAC,CAAC;gBACzD,oBAAoB,EAAE;;;;AA+IpC,wBAOG"}
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
import { defineComponent as u, createElementBlock as c, openBlock as a, createElementVNode as i, createVNode as o, unref as n } from "vue";
|
|
2
|
+
import { ScalarToggle as d } from "@scalar/components";
|
|
3
|
+
import p from "../../../blocks/scalar-auth-selector-block/components/AuthSelector.vue.js";
|
|
4
|
+
const m = { class: "flex flex-col gap-4" }, y = { class: "flex flex-col gap-2" }, S = { class: "flex h-8 items-center justify-between" }, A = /* @__PURE__ */ u({
|
|
5
|
+
__name: "Authentication",
|
|
6
|
+
props: {
|
|
7
|
+
useDocumentSecurity: { type: Boolean },
|
|
8
|
+
security: {},
|
|
9
|
+
selectedSecurity: {},
|
|
10
|
+
securitySchemes: {},
|
|
11
|
+
server: {},
|
|
12
|
+
environment: {},
|
|
13
|
+
envVariables: {}
|
|
14
|
+
},
|
|
15
|
+
emits: ["update:useDocumentSecurity", "deleteOperationAuth", "update:securityScheme", "update:selectedScopes", "update:selectedSecurity"],
|
|
16
|
+
setup(v, { emit: l }) {
|
|
17
|
+
const r = l;
|
|
18
|
+
return (s, e) => (a(), c("div", m, [
|
|
19
|
+
i("div", y, [
|
|
20
|
+
i("div", S, [
|
|
21
|
+
e[5] || (e[5] = i("h3", { class: "font-bold" }, "Authentication", -1)),
|
|
22
|
+
o(n(d), {
|
|
23
|
+
class: "w-4",
|
|
24
|
+
modelValue: s.useDocumentSecurity,
|
|
25
|
+
"onUpdate:modelValue": e[0] || (e[0] = (t) => r("update:useDocumentSecurity", t))
|
|
26
|
+
}, null, 8, ["modelValue"])
|
|
27
|
+
]),
|
|
28
|
+
e[6] || (e[6] = i("p", { class: "pr-6 text-sm" }, " Added authentication will apply to all requests under this collection. You can override this by specifying another one in the request. ", -1))
|
|
29
|
+
]),
|
|
30
|
+
o(n(p), {
|
|
31
|
+
class: "scalar-collection-auth",
|
|
32
|
+
envVariables: s.envVariables,
|
|
33
|
+
environment: s.environment,
|
|
34
|
+
layout: "client",
|
|
35
|
+
security: s.security,
|
|
36
|
+
securitySchemes: s.securitySchemes,
|
|
37
|
+
selectedSecurity: s.selectedSecurity,
|
|
38
|
+
server: s.server,
|
|
39
|
+
title: "Authentication",
|
|
40
|
+
onDeleteOperationAuth: e[1] || (e[1] = (t) => r("deleteOperationAuth", t)),
|
|
41
|
+
"onUpdate:securityScheme": e[2] || (e[2] = (t) => r("update:securityScheme", t)),
|
|
42
|
+
"onUpdate:selectedScopes": e[3] || (e[3] = (t) => r("update:selectedScopes", t)),
|
|
43
|
+
"onUpdate:selectedSecurity": e[4] || (e[4] = (t) => r("update:selectedSecurity", t))
|
|
44
|
+
}, null, 8, ["envVariables", "environment", "security", "securitySchemes", "selectedSecurity", "server"])
|
|
45
|
+
]));
|
|
46
|
+
}
|
|
47
|
+
});
|
|
48
|
+
export {
|
|
49
|
+
A as default
|
|
50
|
+
};
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
declare const _default: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
2
|
+
export default _default;
|
|
3
|
+
//# sourceMappingURL=Cookies.vue.d.ts.map
|