@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,95 @@
|
|
|
1
|
+
import { defineComponent as v, mergeModels as w, computed as y, useModel as u, ref as g, createBlock as a, openBlock as r, unref as l, withCtx as s, createVNode as h, renderSlot as b, createElementVNode as S, createCommentVNode as c } from "vue";
|
|
2
|
+
import { ScalarIconButton as x, ScalarSidebarSearchInput as O } from "@scalar/components";
|
|
3
|
+
import { ScalarIconMagnifyingGlass as M } from "@scalar/icons";
|
|
4
|
+
import { createSidebarState as V, ScalarSidebar as B } from "@scalar/sidebar";
|
|
5
|
+
import E from "./SidebarMenu.vue.js";
|
|
6
|
+
import W from "./SidebarToggle.vue.js";
|
|
7
|
+
import $ from "../resize/Resize.vue.js";
|
|
8
|
+
const C = { class: "bg-sidebar-b-1 sticky top-0 z-1 flex flex-col gap-3 px-3 pt-3" }, G = { class: "flex items-center justify-between" }, R = /* @__PURE__ */ v({
|
|
9
|
+
__name: "Sidebar",
|
|
10
|
+
props: /* @__PURE__ */ w({
|
|
11
|
+
documents: {},
|
|
12
|
+
layout: {}
|
|
13
|
+
}, {
|
|
14
|
+
workspace: {
|
|
15
|
+
default: "default"
|
|
16
|
+
},
|
|
17
|
+
workspaceModifiers: {},
|
|
18
|
+
isSidebarOpen: { type: Boolean, required: !0 },
|
|
19
|
+
isSidebarOpenModifiers: {},
|
|
20
|
+
sidebarWidth: {
|
|
21
|
+
required: !0,
|
|
22
|
+
default: 288
|
|
23
|
+
},
|
|
24
|
+
sidebarWidthModifiers: {}
|
|
25
|
+
}),
|
|
26
|
+
emits: ["update:workspace", "update:isSidebarOpen", "update:sidebarWidth"],
|
|
27
|
+
setup(i) {
|
|
28
|
+
const d = y(() => {
|
|
29
|
+
const t = Object.entries(i.documents).map(
|
|
30
|
+
([e, o]) => ({
|
|
31
|
+
id: e,
|
|
32
|
+
type: "document",
|
|
33
|
+
title: o.info.title ?? e,
|
|
34
|
+
children: o["x-scalar-navigation"]?.children ?? []
|
|
35
|
+
})
|
|
36
|
+
);
|
|
37
|
+
return V(t);
|
|
38
|
+
}), k = (t, ...e) => {
|
|
39
|
+
console.log("[LOG] event name: ", t), console.log("[LOG]", ...e);
|
|
40
|
+
}, p = u(i, "workspace"), m = u(i, "isSidebarOpen"), n = g(!1), f = u(i, "sidebarWidth");
|
|
41
|
+
return (t, e) => (r(), a(l($), {
|
|
42
|
+
width: f.value,
|
|
43
|
+
"onUpdate:width": e[4] || (e[4] = (o) => f.value = o),
|
|
44
|
+
class: "flex flex-col"
|
|
45
|
+
}, {
|
|
46
|
+
default: s(() => [
|
|
47
|
+
h(l(B), {
|
|
48
|
+
class: "flex w-auto flex-1",
|
|
49
|
+
isExpanded: d.value.isExpanded,
|
|
50
|
+
isSelected: d.value.isSelected,
|
|
51
|
+
items: d.value.items.value,
|
|
52
|
+
layout: "client",
|
|
53
|
+
onReorder: e[3] || (e[3] = (...o) => k("reorder", ...o))
|
|
54
|
+
}, {
|
|
55
|
+
search: s(() => [
|
|
56
|
+
S("div", C, [
|
|
57
|
+
S("div", G, [
|
|
58
|
+
t.layout === "desktop" ? (r(), a(E, {
|
|
59
|
+
key: 0,
|
|
60
|
+
workspace: p.value,
|
|
61
|
+
"onUpdate:workspace": e[0] || (e[0] = (o) => p.value = o)
|
|
62
|
+
}, null, 8, ["workspace"])) : t.layout === "modal" ? (r(), a(W, {
|
|
63
|
+
key: 1,
|
|
64
|
+
modelValue: m.value,
|
|
65
|
+
"onUpdate:modelValue": e[1] || (e[1] = (o) => m.value = o)
|
|
66
|
+
}, null, 8, ["modelValue"])) : c("", !0),
|
|
67
|
+
t.layout !== "web" ? (r(), a(l(x), {
|
|
68
|
+
key: 2,
|
|
69
|
+
icon: l(M),
|
|
70
|
+
label: "Search",
|
|
71
|
+
onClick: e[2] || (e[2] = (o) => n.value = !n.value)
|
|
72
|
+
}, null, 8, ["icon"])) : c("", !0)
|
|
73
|
+
]),
|
|
74
|
+
n.value || t.layout === "web" ? (r(), a(l(O), {
|
|
75
|
+
key: 0,
|
|
76
|
+
autofocus: t.layout !== "web"
|
|
77
|
+
}, null, 8, ["autofocus"])) : c("", !0)
|
|
78
|
+
])
|
|
79
|
+
]),
|
|
80
|
+
before: s(() => [
|
|
81
|
+
b(t.$slots, "workspaceButton")
|
|
82
|
+
]),
|
|
83
|
+
footer: s(() => [
|
|
84
|
+
b(t.$slots, "footer")
|
|
85
|
+
]),
|
|
86
|
+
_: 3
|
|
87
|
+
}, 8, ["isExpanded", "isSelected", "items"])
|
|
88
|
+
]),
|
|
89
|
+
_: 3
|
|
90
|
+
}, 8, ["width"]));
|
|
91
|
+
}
|
|
92
|
+
});
|
|
93
|
+
export {
|
|
94
|
+
R as default
|
|
95
|
+
};
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
type __VLS_PublicProps = {
|
|
2
|
+
'workspace': string;
|
|
3
|
+
};
|
|
4
|
+
declare const _default: import("vue").DefineComponent<__VLS_PublicProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
5
|
+
"update:workspace": (value: string) => any;
|
|
6
|
+
} & {
|
|
7
|
+
createWorkspace: () => any;
|
|
8
|
+
}, string, import("vue").PublicProps, Readonly<__VLS_PublicProps> & Readonly<{
|
|
9
|
+
onCreateWorkspace?: (() => any) | undefined;
|
|
10
|
+
"onUpdate:workspace"?: ((value: string) => any) | undefined;
|
|
11
|
+
}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
12
|
+
export default _default;
|
|
13
|
+
//# sourceMappingURL=SidebarMenu.vue.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"SidebarMenu.vue.d.ts","sourceRoot":"","sources":["../../../../src/v2/components/sidebar/SidebarMenu.vue"],"names":[],"mappings":"AAoHA,KAAK,iBAAiB,GAAG;IACzB,WAAW,EAAE,MAAM,CAAC;CACnB,CAAC;;;;;;;;;AA6HF,wBAOG"}
|
|
@@ -0,0 +1,63 @@
|
|
|
1
|
+
import { defineComponent as d, mergeModels as k, computed as m, useModel as f, createBlock as M, openBlock as S, unref as o, withCtx as r, createVNode as t, createTextVNode as n } from "vue";
|
|
2
|
+
import { ScalarMenu as w, ScalarMenuSection as W, ScalarMenuWorkspacePicker as C, ScalarMenuLink as V, ScalarMenuResources as v, ScalarMenuSupport as x } from "@scalar/components";
|
|
3
|
+
import { ScalarIconGear as b } from "@scalar/icons";
|
|
4
|
+
import { RouterLink as g } from "vue-router";
|
|
5
|
+
const T = /* @__PURE__ */ d({
|
|
6
|
+
__name: "SidebarMenu",
|
|
7
|
+
props: {
|
|
8
|
+
workspace: {
|
|
9
|
+
required: !0,
|
|
10
|
+
default: "default"
|
|
11
|
+
},
|
|
12
|
+
workspaceModifiers: {}
|
|
13
|
+
},
|
|
14
|
+
emits: /* @__PURE__ */ k(["createWorkspace"], ["update:workspace"]),
|
|
15
|
+
setup(s, { emit: u }) {
|
|
16
|
+
const i = u, p = m(() => [
|
|
17
|
+
{
|
|
18
|
+
id: "default",
|
|
19
|
+
label: "Default Workspace"
|
|
20
|
+
},
|
|
21
|
+
{
|
|
22
|
+
id: "fake",
|
|
23
|
+
label: "Fake Workspace"
|
|
24
|
+
}
|
|
25
|
+
]), a = f(s, "workspace");
|
|
26
|
+
return (O, e) => (S(), M(o(w), null, {
|
|
27
|
+
products: r(() => [...e[2] || (e[2] = [])]),
|
|
28
|
+
sections: r(({ close: c }) => [
|
|
29
|
+
t(o(W), null, {
|
|
30
|
+
title: r(() => [...e[3] || (e[3] = [
|
|
31
|
+
n("Team", -1)
|
|
32
|
+
])]),
|
|
33
|
+
default: r(() => [
|
|
34
|
+
t(o(C), {
|
|
35
|
+
modelValue: a.value,
|
|
36
|
+
"onUpdate:modelValue": e[0] || (e[0] = (l) => a.value = l),
|
|
37
|
+
workspaceOptions: p.value,
|
|
38
|
+
onCreateWorkspace: e[1] || (e[1] = (l) => i("createWorkspace"))
|
|
39
|
+
}, null, 8, ["modelValue", "workspaceOptions"]),
|
|
40
|
+
t(o(V), {
|
|
41
|
+
is: o(g),
|
|
42
|
+
icon: o(b),
|
|
43
|
+
to: "/settings",
|
|
44
|
+
onClick: c
|
|
45
|
+
}, {
|
|
46
|
+
default: r(() => [...e[4] || (e[4] = [
|
|
47
|
+
n(" Settings ", -1)
|
|
48
|
+
])]),
|
|
49
|
+
_: 1
|
|
50
|
+
}, 8, ["is", "icon", "onClick"])
|
|
51
|
+
]),
|
|
52
|
+
_: 2
|
|
53
|
+
}, 1024),
|
|
54
|
+
t(o(v)),
|
|
55
|
+
t(o(x))
|
|
56
|
+
]),
|
|
57
|
+
_: 1
|
|
58
|
+
}));
|
|
59
|
+
}
|
|
60
|
+
});
|
|
61
|
+
export {
|
|
62
|
+
T as default
|
|
63
|
+
};
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
type __VLS_PublicProps = {
|
|
2
|
+
modelValue: boolean;
|
|
3
|
+
};
|
|
4
|
+
declare const _default: import("vue").DefineComponent<__VLS_PublicProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
5
|
+
"update:modelValue": (value: boolean) => any;
|
|
6
|
+
}, string, import("vue").PublicProps, Readonly<__VLS_PublicProps> & Readonly<{
|
|
7
|
+
"onUpdate:modelValue"?: ((value: boolean) => any) | undefined;
|
|
8
|
+
}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
9
|
+
export default _default;
|
|
10
|
+
//# sourceMappingURL=SidebarToggle.vue.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"SidebarToggle.vue.d.ts","sourceRoot":"","sources":["../../../../src/v2/components/sidebar/SidebarToggle.vue"],"names":[],"mappings":"AAkDA,KAAK,iBAAiB,GAAG;IACzB,UAAU,EAAE,OAAO,CAAC;CACnB,CAAC;;;;;;AAoFF,wBAOG"}
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
import { defineComponent as n, useModel as a, createElementBlock as l, openBlock as s, createElementVNode as e, toDisplayString as i, normalizeClass as d } from "vue";
|
|
2
|
+
const u = ["aria-pressed"], p = { class: "sr-only" }, c = {
|
|
3
|
+
class: "size-4",
|
|
4
|
+
fill: "none",
|
|
5
|
+
viewBox: "0 0 24 24",
|
|
6
|
+
xmlns: "http://www.w3.org/2000/svg"
|
|
7
|
+
}, m = { "clip-path": "url(#mask)" }, f = /* @__PURE__ */ n({
|
|
8
|
+
__name: "SidebarToggle",
|
|
9
|
+
props: {
|
|
10
|
+
modelValue: { type: Boolean, required: !0 },
|
|
11
|
+
modelModifiers: {}
|
|
12
|
+
},
|
|
13
|
+
emits: ["update:modelValue"],
|
|
14
|
+
setup(r) {
|
|
15
|
+
const o = a(r, "modelValue");
|
|
16
|
+
return (v, t) => (s(), l("button", {
|
|
17
|
+
"aria-pressed": o.value,
|
|
18
|
+
class: "scalar-sidebar-toggle text-c-3 hover:bg-b-2 active:text-c-1 rounded-lg p-2",
|
|
19
|
+
type: "button",
|
|
20
|
+
onClick: t[0] || (t[0] = (g) => o.value = !o.value)
|
|
21
|
+
}, [
|
|
22
|
+
e("span", p, i(o.value ? "Hide" : "Show") + " sidebar", 1),
|
|
23
|
+
(s(), l("svg", c, [
|
|
24
|
+
t[1] || (t[1] = e("defs", null, [
|
|
25
|
+
e("clipPath", { id: "mask" }, [
|
|
26
|
+
e("path", {
|
|
27
|
+
"clip-rule": "evenodd",
|
|
28
|
+
d: "M9 3.2H4c-1.7 0-3 1.3-3 3v11.5c0 1.7 1.3 3 3 3h5V3.2z"
|
|
29
|
+
})
|
|
30
|
+
])
|
|
31
|
+
], -1)),
|
|
32
|
+
e("g", m, [
|
|
33
|
+
e("path", {
|
|
34
|
+
class: d(["transition-transform duration-300", o.value ? "translate-x-0" : "-translate-x-1/2"]),
|
|
35
|
+
d: "M1 3.2h8v17.5H1z",
|
|
36
|
+
fill: "currentColor"
|
|
37
|
+
}, null, 2)
|
|
38
|
+
]),
|
|
39
|
+
t[2] || (t[2] = e("path", {
|
|
40
|
+
d: "M20 20.8H4c-1.7 0-3-1.3-3-3V6.2c0-1.7 1.3-3 3-3h16c1.7 0 3 1.3 3 3v11.5c0 1.7-1.3 3-3 3zM9 3.2v17.5",
|
|
41
|
+
stroke: "currentColor",
|
|
42
|
+
"stroke-linecap": "round",
|
|
43
|
+
"stroke-linejoin": "round",
|
|
44
|
+
"stroke-width": "2"
|
|
45
|
+
}, null, -1))
|
|
46
|
+
]))
|
|
47
|
+
], 8, u));
|
|
48
|
+
}
|
|
49
|
+
});
|
|
50
|
+
export {
|
|
51
|
+
f as default
|
|
52
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/v2/components/sidebar/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,IAAI,OAAO,EAAE,MAAM,eAAe,CAAA;AAClD,OAAO,EAAE,OAAO,IAAI,WAAW,EAAE,MAAM,mBAAmB,CAAA;AAC1D,OAAO,EAAE,OAAO,IAAI,aAAa,EAAE,MAAM,qBAAqB,CAAA"}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import type { WorkspaceStore } from '@scalar/workspace-store/client';
|
|
2
|
+
import type { ClientLayout } from '../../../v2/types/layout';
|
|
3
|
+
/**
|
|
4
|
+
* Main entry point for the API client for electron and web
|
|
5
|
+
*
|
|
6
|
+
* This will be the brains of the client, should handle all events and store business logic
|
|
7
|
+
*/
|
|
8
|
+
declare const _default: import("vue").DefineComponent<{
|
|
9
|
+
layout: Exclude<ClientLayout, "modal">;
|
|
10
|
+
workspaceStore: WorkspaceStore;
|
|
11
|
+
}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{
|
|
12
|
+
layout: Exclude<ClientLayout, "modal">;
|
|
13
|
+
workspaceStore: WorkspaceStore;
|
|
14
|
+
}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
15
|
+
export default _default;
|
|
16
|
+
//# sourceMappingURL=App.vue.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"App.vue.d.ts","sourceRoot":"","sources":["../../../../src/v2/features/app/App.vue"],"names":[],"mappings":"AAwIA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,gCAAgC,CAAA;AAMpE,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,mBAAmB,CAAA;AAOrD;;;;GAIG;;YAGO,OAAO,CAAC,YAAY,EAAE,OAAO,CAAC;oBACtB,cAAc;;YADtB,OAAO,CAAC,YAAY,EAAE,OAAO,CAAC;oBACtB,cAAc;;AAHhC,wBA8MC"}
|
|
@@ -0,0 +1,72 @@
|
|
|
1
|
+
import { defineComponent as S, computed as c, ref as f, createElementBlock as y, openBlock as r, Fragment as b, createElementVNode as u, createVNode as i, unref as p, withCtx as w, createBlock as s, withDirectives as h, vShow as B, KeepAlive as T, resolveDynamicComponent as V } from "vue";
|
|
2
|
+
import { ScalarTeleportRoot as W } from "@scalar/components";
|
|
3
|
+
import { getThemeStyles as g } from "@scalar/themes";
|
|
4
|
+
import { useColorMode as x } from "@scalar/use-hooks/useColorMode";
|
|
5
|
+
import { createWorkspaceEventBus as C } from "@scalar/workspace-store/events";
|
|
6
|
+
import { useRoute as D, RouterView as E } from "vue-router";
|
|
7
|
+
import { useWorkspaceClientEvents as M } from "../../hooks/use-workspace-client-events.js";
|
|
8
|
+
import O from "./components/AppSidebar.vue.js";
|
|
9
|
+
import U from "./components/DesktopTabs.vue.js";
|
|
10
|
+
import A from "./components/WebTopNav.vue.js";
|
|
11
|
+
const R = ["innerHTML"], H = { class: "flex min-h-0 flex-1 flex-row items-stretch" }, L = { class: "bg-b-1 flex min-h-0 min-w-0 flex-1 flex-col" }, N = {}, P = /* @__PURE__ */ S({
|
|
12
|
+
...N,
|
|
13
|
+
__name: "App",
|
|
14
|
+
props: {
|
|
15
|
+
layout: {},
|
|
16
|
+
workspaceStore: {}
|
|
17
|
+
},
|
|
18
|
+
setup(l) {
|
|
19
|
+
x(), typeof window < "u" && (window.dataDumpWorkspace = () => l.workspaceStore);
|
|
20
|
+
const k = c(() => {
|
|
21
|
+
const e = l.workspaceStore.workspace["x-scalar-theme"];
|
|
22
|
+
return e ? `<style>${g(e)}</style>` : "";
|
|
23
|
+
}), a = f("default"), n = f(!0), d = C(), v = D(), m = c(
|
|
24
|
+
() => l.workspaceStore.workspace.documents[v.params.documentSlug] ?? null
|
|
25
|
+
);
|
|
26
|
+
return M(d, m), (e, t) => (r(), y(b, null, [
|
|
27
|
+
u("div", { innerHTML: k.value }, null, 8, R),
|
|
28
|
+
i(p(W), null, {
|
|
29
|
+
default: w(() => [
|
|
30
|
+
e.layout === "desktop" ? (r(), s(U, { key: 0 })) : (r(), s(A, {
|
|
31
|
+
key: 1,
|
|
32
|
+
modelValue: a.value,
|
|
33
|
+
"onUpdate:modelValue": t[0] || (t[0] = (o) => a.value = o)
|
|
34
|
+
}, null, 8, ["modelValue"])),
|
|
35
|
+
u("main", H, [
|
|
36
|
+
h(i(O, {
|
|
37
|
+
isSidebarOpen: n.value,
|
|
38
|
+
"onUpdate:isSidebarOpen": t[1] || (t[1] = (o) => n.value = o),
|
|
39
|
+
workspace: a.value,
|
|
40
|
+
"onUpdate:workspace": t[2] || (t[2] = (o) => a.value = o),
|
|
41
|
+
documents: e.workspaceStore.workspace.documents,
|
|
42
|
+
layout: e.layout,
|
|
43
|
+
sidebarWidth: e.workspaceStore.workspace["x-scalar-sidebar-width"] ?? 288,
|
|
44
|
+
"onUpdate:sidebarWidth": t[3] || (t[3] = (o) => e.workspaceStore.update("x-scalar-sidebar-width", o))
|
|
45
|
+
}, null, 8, ["isSidebarOpen", "workspace", "documents", "layout", "sidebarWidth"]), [
|
|
46
|
+
[B, n.value]
|
|
47
|
+
]),
|
|
48
|
+
u("div", L, [
|
|
49
|
+
i(p(E), null, {
|
|
50
|
+
default: w(({ Component: o }) => [
|
|
51
|
+
(r(), s(T, null, [
|
|
52
|
+
(r(), s(V(o), {
|
|
53
|
+
document: m.value,
|
|
54
|
+
eventBus: p(d),
|
|
55
|
+
layout: e.layout,
|
|
56
|
+
workspaceStore: e.workspaceStore
|
|
57
|
+
}, null, 8, ["document", "eventBus", "layout", "workspaceStore"]))
|
|
58
|
+
], 1024))
|
|
59
|
+
]),
|
|
60
|
+
_: 1
|
|
61
|
+
})
|
|
62
|
+
])
|
|
63
|
+
])
|
|
64
|
+
]),
|
|
65
|
+
_: 1
|
|
66
|
+
})
|
|
67
|
+
], 64));
|
|
68
|
+
}
|
|
69
|
+
});
|
|
70
|
+
export {
|
|
71
|
+
P as default
|
|
72
|
+
};
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import type { WorkspaceDocument } from '@scalar/workspace-store/schemas/workspace';
|
|
2
|
+
import type { ClientLayout } from '../../../../v2/types/layout';
|
|
3
|
+
type __VLS_Props = {
|
|
4
|
+
layout: ClientLayout;
|
|
5
|
+
documents: Record<string, WorkspaceDocument>;
|
|
6
|
+
};
|
|
7
|
+
type __VLS_PublicProps = __VLS_Props & {
|
|
8
|
+
/** Propogate up the workspace model to the parent */
|
|
9
|
+
'workspace': string;
|
|
10
|
+
/** Controls the visibility of the sidebar */
|
|
11
|
+
'isSidebarOpen': boolean;
|
|
12
|
+
/** Controls the width of the sidebar */
|
|
13
|
+
'sidebarWidth': number;
|
|
14
|
+
};
|
|
15
|
+
declare const _default: import("vue").DefineComponent<__VLS_PublicProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
16
|
+
"update:workspace": (value: string) => any;
|
|
17
|
+
"update:isSidebarOpen": (value: boolean) => any;
|
|
18
|
+
"update:sidebarWidth": (value: number) => any;
|
|
19
|
+
} & {
|
|
20
|
+
"open:commandPalette": (action?: "import" | undefined) => any;
|
|
21
|
+
"click:workspace": () => any;
|
|
22
|
+
}, string, import("vue").PublicProps, Readonly<__VLS_PublicProps> & Readonly<{
|
|
23
|
+
"onUpdate:workspace"?: ((value: string) => any) | undefined;
|
|
24
|
+
"onUpdate:isSidebarOpen"?: ((value: boolean) => any) | undefined;
|
|
25
|
+
"onUpdate:sidebarWidth"?: ((value: number) => any) | undefined;
|
|
26
|
+
"onOpen:commandPalette"?: ((action?: "import" | undefined) => any) | undefined;
|
|
27
|
+
"onClick:workspace"?: (() => any) | undefined;
|
|
28
|
+
}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
29
|
+
export default _default;
|
|
30
|
+
//# sourceMappingURL=AppSidebar.vue.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"AppSidebar.vue.d.ts","sourceRoot":"","sources":["../../../../../src/v2/features/app/components/AppSidebar.vue"],"names":[],"mappings":"AAoLA,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,2CAA2C,CAAA;AAOlF,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,mBAAmB,CAAA;AAErD,KAAK,WAAW,GAAG;IACjB,MAAM,EAAE,YAAY,CAAA;IACpB,SAAS,EAAE,MAAM,CAAC,MAAM,EAAE,iBAAiB,CAAC,CAAA;CAC7C,CAAC;AAwCF,KAAK,iBAAiB,GAAG,WAAW,GAAG;IACvC,qDAAqD;IACrD,WAAW,EAAE,MAAM,CAAC;IACpB,6CAA6C;IAC7C,eAAe,EAAE,OAAO,CAAC;IACzB,wCAAwC;IACxC,cAAc,EAAE,MAAM,CAAC;CACtB,CAAC;;;;;;;;;;;;;;;AA8OF,wBAOG"}
|
|
@@ -0,0 +1,117 @@
|
|
|
1
|
+
import { defineComponent as x, mergeModels as k, useModel as p, computed as v, capitalize as B, createBlock as w, openBlock as u, unref as o, createSlots as M, withCtx as i, createVNode as r, createTextVNode as c, toDisplayString as g, createElementVNode as a, normalizeClass as A, createElementBlock as I, createCommentVNode as S } from "vue";
|
|
2
|
+
import { ScalarSidebarItem as P, ScalarButton as y } from "@scalar/components";
|
|
3
|
+
import { ScalarIconGlobe as q } from "@scalar/icons";
|
|
4
|
+
import z from "../../../../assets/rabbit.ascii.js";
|
|
5
|
+
import N from "../../../../assets/rabbitjump.ascii.js";
|
|
6
|
+
import C from "../../../../components/ScalarAsciiArt.vue.js";
|
|
7
|
+
import V from "../../../components/sidebar/Sidebar.vue.js";
|
|
8
|
+
const $ = {
|
|
9
|
+
key: 0,
|
|
10
|
+
class: "empty-sidebar-item-content overflow-hidden px-2.5 py-2.5"
|
|
11
|
+
}, G = { class: "rabbit-ascii relative m-auto mt-2 h-[68px] w-[60px]" }, U = { class: "gap-1.5 p-2" }, T = /* @__PURE__ */ x({
|
|
12
|
+
__name: "AppSidebar",
|
|
13
|
+
props: /* @__PURE__ */ k({
|
|
14
|
+
layout: {},
|
|
15
|
+
documents: {}
|
|
16
|
+
}, {
|
|
17
|
+
workspace: {
|
|
18
|
+
required: !0,
|
|
19
|
+
default: "default"
|
|
20
|
+
},
|
|
21
|
+
workspaceModifiers: {},
|
|
22
|
+
isSidebarOpen: { type: Boolean, required: !0 },
|
|
23
|
+
isSidebarOpenModifiers: {},
|
|
24
|
+
sidebarWidth: {
|
|
25
|
+
required: !0,
|
|
26
|
+
default: 288
|
|
27
|
+
},
|
|
28
|
+
sidebarWidthModifiers: {}
|
|
29
|
+
}),
|
|
30
|
+
emits: /* @__PURE__ */ k(["open:commandPalette", "click:workspace"], ["update:workspace", "update:isSidebarOpen", "update:sidebarWidth"]),
|
|
31
|
+
setup(s, { emit: O }) {
|
|
32
|
+
const d = O, l = p(s, "workspace"), W = v(
|
|
33
|
+
() => B(l.value) + " Workspace"
|
|
34
|
+
), b = p(s, "isSidebarOpen"), f = p(s, "sidebarWidth"), n = v(() => !0);
|
|
35
|
+
return (m, e) => (u(), w(o(V), {
|
|
36
|
+
isSidebarOpen: b.value,
|
|
37
|
+
"onUpdate:isSidebarOpen": e[3] || (e[3] = (t) => b.value = t),
|
|
38
|
+
sidebarWidth: f.value,
|
|
39
|
+
"onUpdate:sidebarWidth": e[4] || (e[4] = (t) => f.value = t),
|
|
40
|
+
workspace: l.value,
|
|
41
|
+
"onUpdate:workspace": e[5] || (e[5] = (t) => l.value = t),
|
|
42
|
+
documents: m.documents,
|
|
43
|
+
layout: m.layout
|
|
44
|
+
}, M({
|
|
45
|
+
workspaceButton: i(() => [
|
|
46
|
+
r(o(P), {
|
|
47
|
+
is: "button",
|
|
48
|
+
icon: o(q),
|
|
49
|
+
onClick: e[0] || (e[0] = (t) => d("click:workspace"))
|
|
50
|
+
}, {
|
|
51
|
+
default: i(() => [
|
|
52
|
+
c(g(W.value), 1)
|
|
53
|
+
]),
|
|
54
|
+
_: 1
|
|
55
|
+
}, 8, ["icon"])
|
|
56
|
+
]),
|
|
57
|
+
_: 2
|
|
58
|
+
}, [
|
|
59
|
+
m.layout !== "modal" ? {
|
|
60
|
+
name: "footer",
|
|
61
|
+
fn: i(() => [
|
|
62
|
+
a("div", {
|
|
63
|
+
class: A({
|
|
64
|
+
"empty-sidebar-item border-t": n.value
|
|
65
|
+
})
|
|
66
|
+
}, [
|
|
67
|
+
n.value ? (u(), I("div", $, [
|
|
68
|
+
a("div", G, [
|
|
69
|
+
r(C, {
|
|
70
|
+
art: o(z),
|
|
71
|
+
class: "rabbitsit font-bold"
|
|
72
|
+
}, null, 8, ["art"]),
|
|
73
|
+
r(C, {
|
|
74
|
+
art: o(N),
|
|
75
|
+
class: "rabbitjump absolute top-0 left-0 font-bold"
|
|
76
|
+
}, null, 8, ["art"])
|
|
77
|
+
]),
|
|
78
|
+
e[6] || (e[6] = a("div", { class: "mt-2 mb-2 text-center text-sm text-balance" }, [
|
|
79
|
+
a("b", { class: "font-medium" }, "Let's Get Started"),
|
|
80
|
+
a("p", { class: "mt-2 leading-3" }, " Create request, folder, collection or import from OpenAPI/Postman ")
|
|
81
|
+
], -1))
|
|
82
|
+
])) : S("", !0),
|
|
83
|
+
a("div", U, [
|
|
84
|
+
n.value ? (u(), w(o(y), {
|
|
85
|
+
key: 0,
|
|
86
|
+
class: "w-full",
|
|
87
|
+
size: "sm",
|
|
88
|
+
onClick: e[1] || (e[1] = (t) => d("open:commandPalette", "import"))
|
|
89
|
+
}, {
|
|
90
|
+
default: i(() => [...e[7] || (e[7] = [
|
|
91
|
+
c(" Import Collection ", -1)
|
|
92
|
+
])]),
|
|
93
|
+
_: 1
|
|
94
|
+
})) : S("", !0),
|
|
95
|
+
r(o(y), {
|
|
96
|
+
class: "w-full",
|
|
97
|
+
hotkey: "K",
|
|
98
|
+
size: "sm",
|
|
99
|
+
variant: "outlined",
|
|
100
|
+
onClick: e[2] || (e[2] = (t) => d("open:commandPalette"))
|
|
101
|
+
}, {
|
|
102
|
+
default: i(() => [...e[8] || (e[8] = [
|
|
103
|
+
c(" Add Item ", -1)
|
|
104
|
+
])]),
|
|
105
|
+
_: 1
|
|
106
|
+
})
|
|
107
|
+
])
|
|
108
|
+
], 2)
|
|
109
|
+
]),
|
|
110
|
+
key: "0"
|
|
111
|
+
} : void 0
|
|
112
|
+
]), 1032, ["isSidebarOpen", "sidebarWidth", "workspace", "documents", "layout"]));
|
|
113
|
+
}
|
|
114
|
+
});
|
|
115
|
+
export {
|
|
116
|
+
T as default
|
|
117
|
+
};
|
|
@@ -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=DesktopTabs.vue.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"DesktopTabs.vue.d.ts","sourceRoot":"","sources":["../../../../../src/v2/features/app/components/DesktopTabs.vue"],"names":[],"mappings":";AAiDA,wBAKG"}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { createElementBlock as n, openBlock as r, createElementVNode as e } from "vue";
|
|
2
|
+
import o from "../../../../_virtual/_plugin-vue_export-helper.js";
|
|
3
|
+
const s = {}, l = { class: "bg-red flex h-10 items-center gap-2" };
|
|
4
|
+
function c(a, t) {
|
|
5
|
+
return r(), n("nav", l, [...t[0] || (t[0] = [
|
|
6
|
+
e("div", null, "Insert", -1),
|
|
7
|
+
e("div", null, "Tabs", -1),
|
|
8
|
+
e("div", null, "Here", -1)
|
|
9
|
+
])]);
|
|
10
|
+
}
|
|
11
|
+
const f = /* @__PURE__ */ o(s, [["render", c]]);
|
|
12
|
+
export {
|
|
13
|
+
f as default
|
|
14
|
+
};
|
|
@@ -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=DownloadAppButton.vue.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"DownloadAppButton.vue.d.ts","sourceRoot":"","sources":["../../../../../src/v2/features/app/components/DownloadAppButton.vue"],"names":[],"mappings":";AAuGA,wBAKG"}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { defineComponent as t, createElementBlock as e, openBlock as n, createVNode as a, createElementVNode as p, unref as m } from "vue";
|
|
2
|
+
import { ScalarIconDownloadSimple as r } from "@scalar/icons";
|
|
3
|
+
const l = {
|
|
4
|
+
class: "download-app-button flex flex-row gap-2 rounded !px-3 !py-1.5 sm:px-3",
|
|
5
|
+
href: "https://scalar.com/download?utm_source=web_client&utm_medium=download_button&utm_campaign=topnav",
|
|
6
|
+
target: "_blank",
|
|
7
|
+
type: "button"
|
|
8
|
+
}, _ = /* @__PURE__ */ t({
|
|
9
|
+
__name: "DownloadAppButton",
|
|
10
|
+
setup(s) {
|
|
11
|
+
return (d, o) => (n(), e("a", l, [
|
|
12
|
+
a(m(r), { size: "sm" }),
|
|
13
|
+
o[0] || (o[0] = p("span", { class: "sr-only text-sm font-medium sm:not-sr-only" }, " Download App ", -1))
|
|
14
|
+
]));
|
|
15
|
+
}
|
|
16
|
+
});
|
|
17
|
+
export {
|
|
18
|
+
_ as default
|
|
19
|
+
};
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* The top nav on the web
|
|
3
|
+
*
|
|
4
|
+
* This no longer contains the links to cookies and environment but just holds the menu and download buttons
|
|
5
|
+
*/
|
|
6
|
+
declare const _default: import("vue").DefineComponent<{
|
|
7
|
+
modelValue: string;
|
|
8
|
+
}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
9
|
+
"update:modelValue": (value: string) => any;
|
|
10
|
+
}, string, import("vue").PublicProps, Readonly<{
|
|
11
|
+
modelValue: string;
|
|
12
|
+
}> & Readonly<{
|
|
13
|
+
"onUpdate:modelValue"?: ((value: string) => any) | undefined;
|
|
14
|
+
}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
15
|
+
export default _default;
|
|
16
|
+
//# sourceMappingURL=WebTopNav.vue.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"WebTopNav.vue.d.ts","sourceRoot":"","sources":["../../../../../src/v2/features/app/components/WebTopNav.vue"],"names":[],"mappings":"AAiCA;;;;GAIG;;gBAaS,MAAM;;;;gBAAN,MAAM;;;;AAZlB,wBA+EC"}
|