@scalar/api-client 2.8.0 → 2.9.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +90 -0
- package/dist/components/AddressBar/AddressBarHistory.vue2.js +9 -10
- package/dist/components/CodeInput/CodeInput.vue2.js +5 -5
- package/dist/components/CommandPalette/CommandActionForm.vue.d.ts.map +1 -1
- package/dist/components/CommandPalette/CommandActionForm.vue.js +2 -2
- package/dist/components/CommandPalette/CommandPaletteCollection.vue.js +3 -3
- package/dist/components/CommandPalette/CommandPaletteExample.vue.js +3 -3
- package/dist/components/CommandPalette/CommandPaletteImport.vue.js +18 -20
- package/dist/components/CommandPalette/CommandPaletteImportCurl.vue.js +2 -2
- package/dist/components/CommandPalette/CommandPaletteImportCurl.vue2.js +1 -1
- package/dist/components/CommandPalette/CommandPaletteServer.vue.js +13 -14
- package/dist/components/CommandPalette/CommandPaletteTag.vue.js +3 -3
- package/dist/components/CommandPalette/CommandPaletteWorkspace.vue.js +3 -3
- package/dist/components/CommandPalette/TheCommandPalette.vue.d.ts +4 -4
- package/dist/components/CommandPalette/TheCommandPalette.vue2.js +22 -24
- package/dist/components/CommandPalette/WatchModeToggle.vue.js +1 -1
- package/dist/components/DataTable/DataTableInput.vue2.js +1 -1
- package/dist/components/DataTable/DataTableInputSelect.vue.js +8 -9
- package/dist/components/EnvironmentSelector/EnvironmentSelector.vue.js +8 -10
- package/dist/components/HttpMethod/HttpMethod.vue.d.ts +2 -2
- package/dist/components/IconSelector.vue.js +1 -1
- package/dist/components/ImportCollection/DropEventListener.vue.js +12 -12
- package/dist/components/ImportCollection/ImportCollectionListener.vue.js +8 -8
- package/dist/components/ImportCollection/ImportCollectionModal.vue.js +1 -1
- package/dist/components/ImportCollection/ImportNowButton.vue.js +14 -16
- package/dist/components/ImportCollection/PasteEventListener.vue.js +1 -1
- package/dist/components/ImportCollection/PrefetchError.vue.js +2 -2
- package/dist/components/ImportCollection/WorkspaceSelector.vue.js +5 -7
- package/dist/components/ImportCollection/hooks/useUrlPrefetcher.d.ts +1 -1
- package/dist/components/ImportCollection/hooks/useUrlPrefetcher.d.ts.map +1 -1
- package/dist/components/ImportCollection/hooks/useUrlPrefetcher.js +3 -3
- package/dist/components/OpenApiClientButton.vue2.js +1 -1
- package/dist/components/Server/ServerSelector.vue.js +1 -2
- package/dist/components/SideNav/SideHelp.vue.js +13 -19
- package/dist/components/SideNav/SideNav.vue.js +4 -5
- package/dist/components/Sidebar/Actions/SidebarListElementForm.vue2.js +4 -5
- package/dist/components/Sidebar/Sidebar.vue.d.ts.map +1 -1
- package/dist/components/Sidebar/Sidebar.vue.js +2 -2
- package/dist/components/Sidebar/Sidebar.vue2.js +1 -1
- package/dist/components/TopNav/TopNav.vue.js +8 -10
- package/dist/components/TopNav/TopNavItem.vue2.js +8 -12
- package/dist/hooks/index.d.ts +0 -1
- package/dist/hooks/index.d.ts.map +1 -1
- package/dist/hooks/index.js +9 -11
- package/dist/hooks/useClientConfig.d.ts +9 -6
- package/dist/hooks/useClientConfig.d.ts.map +1 -1
- package/dist/index.d.ts +1 -2
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +8 -15
- package/dist/layouts/App/create-api-client-app.d.ts +3644 -3643
- package/dist/layouts/App/create-api-client-app.d.ts.map +1 -1
- package/dist/layouts/App/create-api-client-app.js +24 -18
- package/dist/layouts/Modal/create-api-client-modal.d.ts +5 -8089
- package/dist/layouts/Modal/create-api-client-modal.d.ts.map +1 -1
- package/dist/layouts/Modal/create-api-client-modal.js +28 -46
- package/dist/layouts/Modal/index.d.ts +2 -2
- package/dist/layouts/Modal/index.d.ts.map +1 -1
- package/dist/layouts/Modal/index.js +2 -5
- package/dist/layouts/Web/create-api-client-web.d.ts +20 -20
- package/dist/layouts/Web/create-api-client-web.d.ts.map +1 -1
- package/dist/layouts/Web/create-api-client-web.js +15 -12
- package/dist/libs/create-client.d.ts +25 -25
- package/dist/libs/create-client.d.ts.map +1 -1
- package/dist/libs/create-client.js +23 -23
- package/dist/libs/find-request.d.ts +2 -2
- package/dist/libs/postman.d.ts +1 -1
- package/dist/libs/postman.d.ts.map +1 -1
- package/dist/libs/postman.js +12 -12
- package/dist/libs/send-request/create-request-operation.js +8 -8
- package/dist/libs/send-request/create-request-operation.test.d.ts +2 -2
- package/dist/libs/validate-parameters.d.ts +10 -2
- package/dist/libs/validate-parameters.d.ts.map +1 -1
- package/dist/libs/validate-parameters.js +13 -6
- package/dist/plugins/plugin-manager.d.ts +1 -1
- package/dist/routes.d.ts +3 -184
- package/dist/routes.d.ts.map +1 -1
- package/dist/routes.js +6 -6
- package/dist/store/active-entities.d.ts +3 -3
- package/dist/store/active-entities.d.ts.map +1 -1
- package/dist/store/active-entities.js +2 -2
- package/dist/store/requests.d.ts +22 -22
- package/dist/store/router-params.d.ts.map +1 -1
- package/dist/store/store.d.ts +20 -20
- package/dist/style.css +1 -1
- package/dist/v2/blocks/operation-code-sample/components/OperationCodeSample.vue.js +2 -2
- package/dist/v2/blocks/operation-code-sample/components/OperationCodeSample.vue2.js +1 -1
- package/dist/v2/blocks/operation-code-sample/index.d.ts +1 -0
- package/dist/v2/blocks/operation-code-sample/index.d.ts.map +1 -1
- package/dist/v2/blocks/operation-code-sample/index.js +8 -6
- package/dist/v2/blocks/scalar-address-bar-block/components/AddressBar.vue.d.ts +5 -5
- package/dist/v2/blocks/scalar-address-bar-block/components/AddressBar.vue.d.ts.map +1 -1
- package/dist/v2/blocks/scalar-address-bar-block/components/AddressBar.vue.js +2 -2
- package/dist/v2/blocks/scalar-address-bar-block/components/AddressBar.vue2.js +3 -3
- package/dist/v2/blocks/scalar-address-bar-block/components/AddressBarHistory.vue2.js +3 -4
- package/dist/v2/blocks/scalar-address-bar-block/index.d.ts +1 -0
- package/dist/v2/blocks/scalar-address-bar-block/index.d.ts.map +1 -1
- package/dist/v2/blocks/scalar-auth-selector-block/components/AuthSelector.vue2.js +2 -2
- package/dist/v2/blocks/scalar-auth-selector-block/components/DeleteRequestAuthModal.vue.js +7 -8
- package/dist/v2/blocks/scalar-auth-selector-block/components/OAuth2.vue.js +44 -55
- package/dist/v2/blocks/scalar-auth-selector-block/components/OAuthScopesInput.vue.js +16 -18
- package/dist/v2/blocks/scalar-auth-selector-block/components/RequestAuthTab.vue.js +41 -46
- package/dist/v2/blocks/scalar-auth-selector-block/helpers/oauth.d.ts.map +1 -1
- package/dist/v2/blocks/scalar-operation-block/components/OperationBlock.vue.d.ts +3 -0
- package/dist/v2/blocks/scalar-operation-block/components/OperationBlock.vue.d.ts.map +1 -1
- package/dist/v2/blocks/scalar-operation-block/components/OperationBlock.vue.js +2 -2
- package/dist/v2/blocks/scalar-operation-block/components/OperationBlock.vue2.js +201 -187
- package/dist/v2/blocks/scalar-operation-block/components/OperationBody.vue.js +2 -2
- package/dist/v2/blocks/scalar-operation-block/components/OperationBody.vue2.js +8 -10
- package/dist/v2/blocks/scalar-operation-block/components/OperationParams.vue.js +2 -3
- package/dist/v2/blocks/scalar-operation-block/components/OperationTableRow.vue.js +2 -4
- package/dist/v2/blocks/scalar-response-block/components/Headers.vue.js +14 -16
- package/dist/v2/blocks/scalar-response-block/components/ResponseBlock.vue.d.ts +3 -0
- package/dist/v2/blocks/scalar-response-block/components/ResponseBlock.vue.d.ts.map +1 -1
- package/dist/v2/blocks/scalar-response-block/components/ResponseBlock.vue.js +3 -3
- package/dist/v2/blocks/scalar-response-block/components/ResponseBlock.vue2.js +87 -85
- package/dist/v2/blocks/scalar-response-block/components/ResponseBody.vue2.js +10 -11
- package/dist/v2/blocks/scalar-response-block/components/ResponseBodyPreview.vue2.js +4 -5
- package/dist/v2/blocks/scalar-response-block/components/ResponseBodyVirtual.vue.js +1 -1
- package/dist/v2/blocks/scalar-response-block/components/ResponseCookies.vue.js +3 -3
- package/dist/v2/blocks/scalar-response-block/components/ResponseEmpty.vue.js +1 -1
- package/dist/v2/blocks/scalar-response-block/components/ResponseEmpty.vue2.js +5 -5
- package/dist/v2/blocks/scalar-response-block/components/ResponseLoadingOverlay.vue2.js +9 -10
- package/dist/v2/components/TempReplaceMe.vue.d.ts +3 -0
- package/dist/v2/components/TempReplaceMe.vue.d.ts.map +1 -0
- package/dist/v2/components/TempReplaceMe.vue.js +12 -0
- package/dist/v2/components/resize/Resize.vue.d.ts +20 -0
- package/dist/v2/components/resize/Resize.vue.d.ts.map +1 -0
- package/dist/v2/components/resize/Resize.vue.js +8 -0
- package/dist/v2/components/resize/Resize.vue2.js +36 -0
- package/dist/v2/components/resize/index.d.ts +3 -0
- package/dist/v2/components/resize/index.d.ts.map +1 -0
- package/dist/v2/components/resize/index.js +4 -0
- package/dist/v2/components/sidebar/Sidebar.vue.d.ts +39 -0
- package/dist/v2/components/sidebar/Sidebar.vue.d.ts.map +1 -0
- package/dist/v2/components/sidebar/Sidebar.vue.js +95 -0
- package/dist/v2/components/sidebar/Sidebar.vue2.js +4 -0
- package/dist/v2/components/sidebar/SidebarMenu.vue.d.ts +13 -0
- package/dist/v2/components/sidebar/SidebarMenu.vue.d.ts.map +1 -0
- package/dist/v2/components/sidebar/SidebarMenu.vue.js +63 -0
- package/dist/v2/components/sidebar/SidebarMenu.vue2.js +4 -0
- package/dist/v2/components/sidebar/SidebarToggle.vue.d.ts +10 -0
- package/dist/v2/components/sidebar/SidebarToggle.vue.d.ts.map +1 -0
- package/dist/v2/components/sidebar/SidebarToggle.vue.js +52 -0
- package/dist/v2/components/sidebar/SidebarToggle.vue2.js +4 -0
- package/dist/v2/components/sidebar/index.d.ts +4 -0
- package/dist/v2/components/sidebar/index.d.ts.map +1 -0
- package/dist/v2/components/sidebar/index.js +8 -0
- package/dist/v2/features/app/App.vue.d.ts +16 -0
- package/dist/v2/features/app/App.vue.d.ts.map +1 -0
- package/dist/v2/features/app/App.vue.js +72 -0
- package/dist/v2/features/app/App.vue3.js +5 -0
- package/dist/v2/features/app/components/AppSidebar.vue.d.ts +30 -0
- package/dist/v2/features/app/components/AppSidebar.vue.d.ts.map +1 -0
- package/dist/v2/features/app/components/AppSidebar.vue.js +7 -0
- package/dist/v2/features/app/components/AppSidebar.vue2.js +117 -0
- package/dist/v2/features/app/components/DesktopTabs.vue.d.ts +3 -0
- package/dist/v2/features/app/components/DesktopTabs.vue.d.ts.map +1 -0
- package/dist/v2/features/app/components/DesktopTabs.vue.js +14 -0
- package/dist/v2/features/app/components/DownloadAppButton.vue.d.ts +3 -0
- package/dist/v2/features/app/components/DownloadAppButton.vue.d.ts.map +1 -0
- package/dist/v2/features/app/components/DownloadAppButton.vue.js +7 -0
- package/dist/v2/features/app/components/DownloadAppButton.vue2.js +19 -0
- package/dist/v2/features/app/components/WebTopNav.vue.d.ts +16 -0
- package/dist/v2/features/app/components/WebTopNav.vue.d.ts.map +1 -0
- package/dist/v2/features/app/components/WebTopNav.vue.js +28 -0
- package/dist/v2/features/app/components/WebTopNav.vue2.js +4 -0
- package/dist/v2/features/app/components/index.d.ts +2 -0
- package/dist/v2/features/app/components/index.d.ts.map +1 -0
- package/dist/v2/features/app/components/index.js +5 -0
- package/dist/v2/features/app/helpers/create-api-client-app.d.ts +25 -0
- package/dist/v2/features/app/helpers/create-api-client-app.d.ts.map +1 -0
- package/dist/v2/features/app/helpers/create-api-client-app.js +21 -0
- package/dist/v2/features/app/helpers/routes.d.ts +103 -0
- package/dist/v2/features/app/helpers/routes.d.ts.map +1 -0
- package/dist/v2/features/app/helpers/routes.js +115 -0
- package/dist/v2/features/app/index.d.ts +2 -0
- package/dist/v2/features/app/index.d.ts.map +1 -0
- package/dist/v2/features/app/index.js +4 -0
- package/dist/v2/features/collection/DocumentCollection.test.d.ts +2 -0
- package/dist/v2/features/collection/DocumentCollection.test.d.ts.map +1 -0
- package/dist/v2/features/collection/DocumentCollection.vue.d.ts +12 -0
- package/dist/v2/features/collection/DocumentCollection.vue.d.ts.map +1 -0
- package/dist/v2/features/collection/DocumentCollection.vue.js +4 -0
- package/dist/v2/features/collection/DocumentCollection.vue2.js +82 -0
- package/dist/v2/features/collection/WorkspaceCollection.test.d.ts +2 -0
- package/dist/v2/features/collection/WorkspaceCollection.test.d.ts.map +1 -0
- package/dist/v2/features/collection/WorkspaceCollection.vue.d.ts +10 -0
- package/dist/v2/features/collection/WorkspaceCollection.vue.d.ts.map +1 -0
- package/dist/v2/features/collection/WorkspaceCollection.vue.js +4 -0
- package/dist/v2/features/collection/WorkspaceCollection.vue2.js +38 -0
- package/dist/v2/features/collection/components/Authentication.test.d.ts +2 -0
- package/dist/v2/features/collection/components/Authentication.test.d.ts.map +1 -0
- package/dist/v2/features/collection/components/Authentication.vue.d.ts +48 -0
- package/dist/v2/features/collection/components/Authentication.vue.d.ts.map +1 -0
- package/dist/v2/features/collection/components/Authentication.vue.js +7 -0
- package/dist/v2/features/collection/components/Authentication.vue2.js +50 -0
- package/dist/v2/features/collection/components/Cookies.vue.d.ts +3 -0
- package/dist/v2/features/collection/components/Cookies.vue.d.ts.map +1 -0
- package/dist/v2/features/collection/components/Cookies.vue.js +9 -0
- package/dist/v2/features/collection/components/Environment.test.d.ts +2 -0
- package/dist/v2/features/collection/components/Environment.test.d.ts.map +1 -0
- package/dist/v2/features/collection/components/Environment.vue.d.ts +89 -0
- package/dist/v2/features/collection/components/Environment.vue.d.ts.map +1 -0
- package/dist/v2/features/collection/components/Environment.vue.js +4 -0
- package/dist/v2/features/collection/components/Environment.vue2.js +34 -0
- package/dist/v2/features/collection/components/Form.vue.d.ts +29 -0
- package/dist/v2/features/collection/components/Form.vue.d.ts.map +1 -0
- package/dist/v2/features/collection/components/Form.vue.js +83 -0
- package/dist/v2/features/collection/components/Form.vue2.js +4 -0
- package/dist/v2/features/collection/components/LabelInput.test.d.ts +2 -0
- package/dist/v2/features/collection/components/LabelInput.test.d.ts.map +1 -0
- package/dist/v2/features/collection/components/LabelInput.vue.d.ts +10 -0
- package/dist/v2/features/collection/components/LabelInput.vue.d.ts.map +1 -0
- package/dist/v2/features/collection/components/LabelInput.vue.js +7 -0
- package/dist/v2/features/collection/components/LabelInput.vue2.js +29 -0
- package/dist/v2/features/collection/components/Overview.test.d.ts +2 -0
- package/dist/v2/features/collection/components/Overview.test.d.ts.map +1 -0
- package/dist/v2/features/collection/components/Overview.vue.d.ts +14 -0
- package/dist/v2/features/collection/components/Overview.vue.d.ts.map +1 -0
- package/dist/v2/features/collection/components/Overview.vue.js +4 -0
- package/dist/v2/features/collection/components/Overview.vue2.js +91 -0
- package/dist/v2/features/collection/components/Servers.test.d.ts +2 -0
- package/dist/v2/features/collection/components/Servers.test.d.ts.map +1 -0
- package/dist/v2/features/collection/components/Servers.vue.d.ts +33 -0
- package/dist/v2/features/collection/components/Servers.vue.d.ts.map +1 -0
- package/dist/v2/features/collection/components/Servers.vue.js +4 -0
- package/dist/v2/features/collection/components/Servers.vue2.js +120 -0
- package/dist/v2/features/collection/components/Settings.test.d.ts +2 -0
- package/dist/v2/features/collection/components/Settings.test.d.ts.map +1 -0
- package/dist/v2/features/collection/components/Settings.vue.d.ts +17 -0
- package/dist/v2/features/collection/components/Settings.vue.d.ts.map +1 -0
- package/dist/v2/features/collection/components/Settings.vue.js +7 -0
- package/dist/v2/features/collection/components/Settings.vue2.js +100 -0
- package/dist/v2/features/collection/components/Tabs.test.d.ts +2 -0
- package/dist/v2/features/collection/components/Tabs.test.d.ts.map +1 -0
- package/dist/v2/features/collection/components/Tabs.vue.d.ts +6 -0
- package/dist/v2/features/collection/components/Tabs.vue.d.ts.map +1 -0
- package/dist/v2/features/collection/components/Tabs.vue.js +46 -0
- package/dist/v2/features/collection/components/Tabs.vue2.js +4 -0
- package/dist/v2/features/environments/Environments.test.d.ts +2 -0
- package/dist/v2/features/environments/Environments.test.d.ts.map +1 -0
- package/dist/v2/features/environments/Environments.vue.d.ts +31 -0
- package/dist/v2/features/environments/Environments.vue.d.ts.map +1 -0
- package/dist/v2/features/environments/Environments.vue.js +65 -0
- package/dist/v2/features/environments/Environments.vue2.js +4 -0
- package/dist/v2/features/environments/EnvironmentsList.test.d.ts +2 -0
- package/dist/v2/features/environments/EnvironmentsList.test.d.ts.map +1 -0
- package/dist/v2/features/environments/EnvironmentsList.vue.d.ts +98 -0
- package/dist/v2/features/environments/EnvironmentsList.vue.d.ts.map +1 -0
- package/dist/v2/features/environments/EnvironmentsList.vue.js +114 -0
- package/dist/v2/features/environments/EnvironmentsList.vue2.js +4 -0
- package/dist/v2/features/environments/components/Environment.test.d.ts +2 -0
- package/dist/v2/features/environments/components/Environment.test.d.ts.map +1 -0
- package/dist/v2/features/environments/components/Environment.vue.d.ts +70 -0
- package/dist/v2/features/environments/components/Environment.vue.d.ts.map +1 -0
- package/dist/v2/features/environments/components/Environment.vue.js +104 -0
- package/dist/v2/features/environments/components/Environment.vue2.js +4 -0
- package/dist/v2/features/environments/components/EnvironmentColorUpdateModal.vue.d.ts +20 -0
- package/dist/v2/features/environments/components/EnvironmentColorUpdateModal.vue.d.ts.map +1 -0
- package/dist/v2/features/environments/components/EnvironmentColorUpdateModal.vue.js +48 -0
- package/dist/v2/features/environments/components/EnvironmentColorUpdateModal.vue2.js +4 -0
- package/dist/v2/features/environments/components/EnvironmentColors.test.d.ts +2 -0
- package/dist/v2/features/environments/components/EnvironmentColors.test.d.ts.map +1 -0
- package/dist/v2/features/environments/components/EnvironmentColors.vue.d.ts +10 -0
- package/dist/v2/features/environments/components/EnvironmentColors.vue.d.ts.map +1 -0
- package/dist/v2/features/environments/components/EnvironmentColors.vue.js +97 -0
- package/dist/v2/features/environments/components/EnvironmentColors.vue2.js +4 -0
- package/dist/v2/features/environments/components/EnvironmentCreateModal.vue.d.ts +19 -0
- package/dist/v2/features/environments/components/EnvironmentCreateModal.vue.d.ts.map +1 -0
- package/dist/v2/features/environments/components/EnvironmentCreateModal.vue.js +63 -0
- package/dist/v2/features/environments/components/EnvironmentCreateModal.vue2.js +4 -0
- package/dist/v2/features/environments/components/EnvironmentDeleteModal.vue.d.ts +14 -0
- package/dist/v2/features/environments/components/EnvironmentDeleteModal.vue.d.ts.map +1 -0
- package/dist/v2/features/environments/components/EnvironmentDeleteModal.vue.js +53 -0
- package/dist/v2/features/environments/components/EnvironmentDeleteModal.vue2.js +4 -0
- package/dist/v2/features/environments/components/EnvironmentNameUpdateModal.vue.d.ts +18 -0
- package/dist/v2/features/environments/components/EnvironmentNameUpdateModal.vue.d.ts.map +1 -0
- package/dist/v2/features/environments/components/EnvironmentNameUpdateModal.vue.js +35 -0
- package/dist/v2/features/environments/components/EnvironmentNameUpdateModal.vue2.js +4 -0
- package/dist/v2/features/environments/components/EnvironmentVariablesTable.test.d.ts +2 -0
- package/dist/v2/features/environments/components/EnvironmentVariablesTable.test.d.ts.map +1 -0
- package/dist/v2/features/environments/components/EnvironmentVariablesTable.vue.d.ts +23 -0
- package/dist/v2/features/environments/components/EnvironmentVariablesTable.vue.d.ts.map +1 -0
- package/dist/v2/features/environments/components/EnvironmentVariablesTable.vue.js +7 -0
- package/dist/v2/features/environments/components/EnvironmentVariablesTable.vue2.js +122 -0
- package/dist/v2/features/environments/index.d.ts +5 -0
- package/dist/v2/features/environments/index.d.ts.map +1 -0
- package/dist/v2/features/environments/index.js +6 -0
- package/dist/v2/features/global-cookies/components/CookiesTable.test.d.ts +2 -0
- package/dist/v2/features/global-cookies/components/CookiesTable.test.d.ts.map +1 -0
- package/dist/v2/features/global-cookies/components/CookiesTable.vue.d.ts +25 -0
- package/dist/v2/features/global-cookies/components/CookiesTable.vue.d.ts.map +1 -0
- package/dist/v2/features/global-cookies/components/CookiesTable.vue.js +7 -0
- package/dist/v2/features/global-cookies/components/CookiesTable.vue2.js +156 -0
- package/dist/v2/features/global-cookies/components/GlobalCookies.test.d.ts +2 -0
- package/dist/v2/features/global-cookies/components/GlobalCookies.test.d.ts.map +1 -0
- package/dist/v2/features/global-cookies/components/GlobalCookies.vue.d.ts +32 -0
- package/dist/v2/features/global-cookies/components/GlobalCookies.vue.d.ts.map +1 -0
- package/dist/v2/features/global-cookies/components/GlobalCookies.vue.js +7 -0
- package/dist/v2/features/global-cookies/components/GlobalCookies.vue2.js +58 -0
- package/dist/v2/features/global-cookies/index.d.ts +2 -0
- package/dist/v2/features/global-cookies/index.d.ts.map +1 -0
- package/dist/v2/features/global-cookies/index.js +4 -0
- package/dist/v2/features/modal/Modal.vue.d.ts +16 -0
- package/dist/v2/features/modal/Modal.vue.d.ts.map +1 -0
- package/dist/v2/features/modal/Modal.vue.js +7 -0
- package/dist/v2/features/modal/Modal.vue2.js +81 -0
- package/dist/v2/features/modal/helpers/create-api-client-modal.d.ts +53 -0
- package/dist/v2/features/modal/helpers/create-api-client-modal.d.ts.map +1 -0
- package/dist/v2/features/modal/helpers/create-api-client-modal.js +46 -0
- package/dist/v2/features/modal/index.d.ts +2 -0
- package/dist/v2/features/modal/index.d.ts.map +1 -0
- package/dist/v2/features/modal/index.js +4 -0
- package/dist/v2/features/operation/Operation.test.d.ts +2 -0
- package/dist/v2/features/operation/Operation.test.d.ts.map +1 -0
- package/dist/v2/features/operation/Operation.vue.d.ts +79 -0
- package/dist/v2/features/operation/Operation.vue.d.ts.map +1 -0
- package/dist/v2/features/operation/Operation.vue.js +124 -0
- package/dist/v2/features/operation/Operation.vue2.js +4 -0
- package/dist/v2/features/operation/components/Header.test.d.ts +2 -0
- package/dist/v2/features/operation/components/Header.test.d.ts.map +1 -0
- package/dist/v2/features/operation/components/Header.vue.d.ts +85 -0
- package/dist/v2/features/operation/components/Header.vue.d.ts.map +1 -0
- package/dist/v2/features/operation/components/Header.vue.js +7 -0
- package/dist/v2/features/operation/components/Header.vue2.js +97 -0
- package/dist/v2/features/operation/index.d.ts +3 -0
- package/dist/v2/features/operation/index.d.ts.map +1 -0
- package/dist/v2/features/operation/index.js +4 -0
- package/dist/v2/features/settings/Settings.test.d.ts +2 -0
- package/dist/v2/features/settings/Settings.test.d.ts.map +1 -0
- package/dist/v2/features/settings/Settings.vue.d.ts +22 -0
- package/dist/v2/features/settings/Settings.vue.d.ts.map +1 -0
- package/dist/v2/features/settings/Settings.vue.js +268 -0
- package/dist/v2/features/settings/Settings.vue2.js +4 -0
- package/dist/v2/features/settings/components/Appearance.vue.d.ts +10 -0
- package/dist/v2/features/settings/components/Appearance.vue.d.ts.map +1 -0
- package/dist/v2/features/settings/components/Appearance.vue.js +88 -0
- package/dist/v2/features/settings/components/Appearance.vue2.js +4 -0
- package/dist/v2/features/settings/components/Section.vue.d.ts +14 -0
- package/dist/v2/features/settings/components/Section.vue.d.ts.map +1 -0
- package/dist/v2/features/settings/components/Section.vue.js +24 -0
- package/dist/v2/features/settings/components/Section.vue2.js +4 -0
- package/dist/v2/features/settings/helpers/get-theme-colors.d.ts +9 -0
- package/dist/v2/features/settings/helpers/get-theme-colors.d.ts.map +1 -0
- package/dist/v2/features/settings/helpers/get-theme-colors.js +17 -0
- package/dist/v2/features/settings/index.d.ts +2 -0
- package/dist/v2/features/settings/index.d.ts.map +1 -0
- package/dist/v2/features/settings/index.js +4 -0
- package/dist/v2/hooks/use-document-watcher.d.ts +28 -0
- package/dist/v2/hooks/use-document-watcher.d.ts.map +1 -0
- package/dist/v2/hooks/use-document-watcher.test.d.ts +2 -0
- package/dist/v2/hooks/use-document-watcher.test.d.ts.map +1 -0
- package/dist/v2/hooks/use-workspace-client-events.d.ts +8 -0
- package/dist/v2/hooks/use-workspace-client-events.d.ts.map +1 -0
- package/dist/v2/hooks/use-workspace-client-events.js +13 -0
- package/dist/v2/plugins.d.ts +44 -0
- package/dist/v2/plugins.d.ts.map +1 -0
- package/dist/v2/types/layout.d.ts +10 -0
- package/dist/v2/types/layout.d.ts.map +1 -0
- package/dist/views/Collection/Collection.vue2.js +6 -6
- package/dist/views/Collection/CollectionCookies.vue2.js +3 -3
- package/dist/views/Collection/CollectionEnvironment.vue2.js +12 -13
- package/dist/views/Collection/CollectionScripts.vue2.js +3 -3
- package/dist/views/Collection/CollectionServerForm.vue.d.ts.map +1 -1
- package/dist/views/Collection/CollectionServerForm.vue.js +42 -62
- package/dist/views/Collection/CollectionServers.vue.d.ts.map +1 -1
- package/dist/views/Collection/CollectionServers.vue2.js +43 -50
- package/dist/views/Collection/CollectionSettings.vue.js +2 -2
- package/dist/views/Collection/CollectionSettings.vue2.js +5 -6
- package/dist/views/Collection/CollectionSync.vue2.js +3 -3
- package/dist/views/Collection/components/EnvironmentForm.vue2.js +10 -12
- package/dist/views/Collection/components/MarkdownInput.vue2.js +2 -4
- package/dist/views/Cookies/CookieModal.vue2.js +6 -6
- package/dist/views/Cookies/Cookies.vue2.js +6 -6
- package/dist/views/Environment/Environment.vue2.js +5 -6
- package/dist/views/Environment/EnvironmentModal.vue.js +13 -14
- package/dist/views/Environment/EnvironmentVariableDropdown.vue.js +8 -9
- package/dist/views/Request/RequestRoot.vue.d.ts.map +1 -1
- package/dist/views/Request/RequestRoot.vue.js +2 -2
- package/dist/views/Request/RequestRoot.vue2.js +79 -80
- package/dist/views/Request/RequestSection/RequestAuth/DeleteRequestAuthModal.vue.js +10 -11
- package/dist/views/Request/RequestSection/RequestAuth/OAuth2.vue.js +44 -55
- package/dist/views/Request/RequestSection/RequestAuth/OAuthScopesInput.vue.js +10 -12
- package/dist/views/Request/RequestSection/RequestAuth/RequestAuth.vue2.js +2 -2
- package/dist/views/Request/RequestSection/RequestAuth/RequestAuthTab.vue.js +39 -44
- package/dist/views/Request/RequestSection/RequestBody.vue.d.ts.map +1 -1
- package/dist/views/Request/RequestSection/RequestBody.vue.js +2 -2
- package/dist/views/Request/RequestSection/RequestBody.vue2.js +96 -78
- package/dist/views/Request/RequestSection/RequestCodeExample.vue2.js +3 -3
- package/dist/views/Request/RequestSection/RequestParams.vue.js +2 -3
- package/dist/views/Request/RequestSection/RequestSection.vue.js +2 -2
- package/dist/views/Request/RequestSection/RequestSection.vue2.js +55 -55
- package/dist/views/Request/RequestSection/RequestTable.vue2.js +15 -17
- package/dist/views/Request/RequestSidebar.vue2.js +7 -8
- package/dist/views/Request/RequestSidebarItem.vue.js +2 -2
- package/dist/views/Request/RequestSidebarItem.vue2.js +31 -32
- package/dist/views/Request/RequestSidebarItemMenu.vue.js +1 -1
- package/dist/views/Request/RequestSidebarItemMenu.vue2.js +13 -16
- package/dist/views/Request/ResponseSection/RequestHeaders.vue.js +11 -13
- package/dist/views/Request/ResponseSection/ResponseBody.vue2.js +4 -5
- package/dist/views/Request/ResponseSection/ResponseBodyPreview.vue2.js +4 -5
- package/dist/views/Request/ResponseSection/ResponseBodyVirtual.vue.js +1 -1
- package/dist/views/Request/ResponseSection/ResponseCookies.vue.js +3 -3
- package/dist/views/Request/ResponseSection/ResponseEmpty.vue2.js +4 -4
- package/dist/views/Request/ResponseSection/ResponseHeaders.vue.js +11 -13
- package/dist/views/Request/ResponseSection/ResponseLoadingOverlay.vue2.js +7 -8
- package/dist/views/Request/components/WorkspaceDropdown.vue.js +11 -14
- package/dist/views/Request/libs/oauth2.d.ts +1 -1
- package/dist/views/Request/libs/oauth2.d.ts.map +1 -1
- package/dist/views/Settings/SettingsGeneral.vue.js +40 -42
- package/dist/views/Settings/components/SettingsAppearance.vue.js +8 -11
- package/package.json +52 -27
- package/dist/hooks/useKeyMap.d.ts +0 -2
- package/dist/hooks/useKeyMap.d.ts.map +0 -1
- package/dist/hooks/useKeyMap.js +0 -9
- package/dist/router.d.ts +0 -8
- package/dist/router.d.ts.map +0 -1
- package/dist/router.js +0 -20
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { defineComponent as u, ref as c, createBlock as d, openBlock as s, Transition as m, withCtx as l, createElementBlock as f, createCommentVNode as g, unref as o, createVNode as i, createTextVNode as v } from "vue";
|
|
2
|
-
import { useLoadingState as p, ScalarLoading as x, ScalarButton as
|
|
3
|
-
const
|
|
2
|
+
import { useLoadingState as p, ScalarLoading as x, ScalarButton as L } from "@scalar/components";
|
|
3
|
+
const S = {
|
|
4
4
|
key: 0,
|
|
5
5
|
class: "bg-b-1 z-overlay absolute inset-0 flex flex-col items-center justify-center gap-6"
|
|
6
6
|
}, y = /* @__PURE__ */ u({
|
|
@@ -14,21 +14,20 @@ const L = {
|
|
|
14
14
|
n === "start" ? a.value = setTimeout(() => e.startLoading(), 1e3) : (clearTimeout(a.value), a.value = void 0, e.stopLoading());
|
|
15
15
|
}), (n, t) => (s(), d(m, null, {
|
|
16
16
|
default: l(() => [
|
|
17
|
-
o(e).isLoading ? (s(), f("div",
|
|
17
|
+
o(e).isLoading ? (s(), f("div", S, [
|
|
18
18
|
i(o(x), {
|
|
19
19
|
class: "text-c-3",
|
|
20
20
|
loadingState: o(e),
|
|
21
21
|
size: "3xl"
|
|
22
22
|
}, null, 8, ["loadingState"]),
|
|
23
|
-
i(o(
|
|
23
|
+
i(o(L), {
|
|
24
24
|
variant: "ghost",
|
|
25
|
-
onClick: t[0] || (t[0] = (
|
|
25
|
+
onClick: t[0] || (t[0] = (k) => n.events.cancelRequest.emit())
|
|
26
26
|
}, {
|
|
27
|
-
default: l(() => t[1] || (t[1] = [
|
|
28
|
-
v(" Cancel ")
|
|
29
|
-
])),
|
|
30
|
-
_: 1
|
|
31
|
-
__: [1]
|
|
27
|
+
default: l(() => [...t[1] || (t[1] = [
|
|
28
|
+
v(" Cancel ", -1)
|
|
29
|
+
])]),
|
|
30
|
+
_: 1
|
|
32
31
|
})
|
|
33
32
|
])) : g("", !0)
|
|
34
33
|
]),
|
|
@@ -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=TempReplaceMe.vue.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"TempReplaceMe.vue.d.ts","sourceRoot":"","sources":["../../../src/v2/components/TempReplaceMe.vue"],"names":[],"mappings":";AAuCA,wBAKG"}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { createElementBlock as t, openBlock as r, createElementVNode as n } from "vue";
|
|
2
|
+
import o from "../../_virtual/_plugin-vue_export-helper.js";
|
|
3
|
+
const c = {};
|
|
4
|
+
function l(m, e) {
|
|
5
|
+
return r(), t("div", null, [...e[0] || (e[0] = [
|
|
6
|
+
n("h1", null, "This is just a dummy page", -1)
|
|
7
|
+
])]);
|
|
8
|
+
}
|
|
9
|
+
const a = /* @__PURE__ */ o(c, [["render", l]]);
|
|
10
|
+
export {
|
|
11
|
+
a as default
|
|
12
|
+
};
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
type __VLS_Props = {
|
|
2
|
+
/** Provided resizable child width */
|
|
3
|
+
width: number;
|
|
4
|
+
};
|
|
5
|
+
type __VLS_Slots = {
|
|
6
|
+
default?(): unknown;
|
|
7
|
+
};
|
|
8
|
+
declare const __VLS_component: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {} & {
|
|
9
|
+
"update:width": (value: number) => any;
|
|
10
|
+
}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{
|
|
11
|
+
"onUpdate:width"?: ((value: number) => any) | undefined;
|
|
12
|
+
}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
13
|
+
declare const _default: __VLS_WithSlots<typeof __VLS_component, __VLS_Slots>;
|
|
14
|
+
export default _default;
|
|
15
|
+
type __VLS_WithSlots<T, S> = T & {
|
|
16
|
+
new (): {
|
|
17
|
+
$slots: S;
|
|
18
|
+
};
|
|
19
|
+
};
|
|
20
|
+
//# sourceMappingURL=Resize.vue.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Resize.vue.d.ts","sourceRoot":"","sources":["../../../../src/v2/components/resize/Resize.vue"],"names":[],"mappings":"AA2GA,KAAK,WAAW,GAAG;IACjB,qCAAqC;IACrC,KAAK,EAAE,MAAM,CAAA;CACd,CAAC;AAQF,KAAK,WAAW,GAAG;IACjB,OAAO,CAAC,IAAI,OAAO,CAAA;CACpB,CAAC;AA4FF,QAAA,MAAM,eAAe;;;;kFAOnB,CAAC;wBACkB,eAAe,CAAC,OAAO,eAAe,EAAE,WAAW,CAAC;AAAzE,wBAA0E;AAQ1E,KAAK,eAAe,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG;IAChC,QAAO;QACN,MAAM,EAAE,CAAC,CAAC;KAEV,CAAA;CACD,CAAC"}
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
import { defineComponent as f, ref as v, createElementBlock as h, openBlock as g, normalizeStyle as p, renderSlot as w, createElementVNode as E } from "vue";
|
|
2
|
+
const l = "scalar-dragging", D = /* @__PURE__ */ f({
|
|
3
|
+
__name: "Resize",
|
|
4
|
+
props: {
|
|
5
|
+
width: {}
|
|
6
|
+
},
|
|
7
|
+
emits: ["update:width"],
|
|
8
|
+
setup(n, { emit: m }) {
|
|
9
|
+
const s = m, o = v(!1), r = (t) => {
|
|
10
|
+
t.preventDefault();
|
|
11
|
+
const d = t.clientX, c = n.width, a = (u) => {
|
|
12
|
+
o.value = !0, document.body.classList.add(l);
|
|
13
|
+
let e = c + u.clientX - d;
|
|
14
|
+
e > 420 && (e = 420 + (e - 420) * 0.2), e < 240 && (e = 240), s("update:width", e);
|
|
15
|
+
}, i = () => {
|
|
16
|
+
o.value = !1, document.body.classList.remove(l), document.documentElement.removeEventListener("mousemove", a, !1), document.documentElement.removeEventListener("mouseup", i, !1), n.width > 420 ? s("update:width", 360) : n.width < 240 && s("update:width", 240);
|
|
17
|
+
};
|
|
18
|
+
document.documentElement.addEventListener("mousemove", a, !1), document.documentElement.addEventListener("mouseup", i, !1);
|
|
19
|
+
};
|
|
20
|
+
return (t, d) => (g(), h("div", {
|
|
21
|
+
class: "relative",
|
|
22
|
+
style: p({
|
|
23
|
+
width: `${t.width}px`
|
|
24
|
+
})
|
|
25
|
+
}, [
|
|
26
|
+
w(t.$slots, "default", {}, void 0, !0),
|
|
27
|
+
E("div", {
|
|
28
|
+
class: "resizer",
|
|
29
|
+
onMousedown: r
|
|
30
|
+
}, null, 32)
|
|
31
|
+
], 4));
|
|
32
|
+
}
|
|
33
|
+
});
|
|
34
|
+
export {
|
|
35
|
+
D as default
|
|
36
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/v2/components/resize/index.ts"],"names":[],"mappings":"AAAA,4EAA4E;AAC5E,OAAO,EAAE,OAAO,IAAI,MAAM,EAAE,MAAM,cAAc,CAAA"}
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
import type { WorkspaceDocument } from '@scalar/workspace-store/schemas/workspace';
|
|
2
|
+
import type { ClientLayout } from '../../../v2/types/layout';
|
|
3
|
+
type __VLS_Props = {
|
|
4
|
+
/** All documents to display sidebar items for */
|
|
5
|
+
documents: Record<string, WorkspaceDocument>;
|
|
6
|
+
/** Layout for the client */
|
|
7
|
+
layout: ClientLayout;
|
|
8
|
+
};
|
|
9
|
+
type __VLS_Slots = {
|
|
10
|
+
/** Slot to add the workspace button */
|
|
11
|
+
workspaceButton?(): unknown;
|
|
12
|
+
/** Slot to add additional content to the footer */
|
|
13
|
+
footer?(): unknown;
|
|
14
|
+
};
|
|
15
|
+
type __VLS_PublicProps = __VLS_Props & {
|
|
16
|
+
/** Propagate up the workspace model to the parent */
|
|
17
|
+
'workspace'?: string;
|
|
18
|
+
/** Controls the visibility of the sidebar */
|
|
19
|
+
'isSidebarOpen': boolean;
|
|
20
|
+
/** Controls the width of the sidebar */
|
|
21
|
+
'sidebarWidth': number;
|
|
22
|
+
};
|
|
23
|
+
declare const __VLS_component: import("vue").DefineComponent<__VLS_PublicProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
24
|
+
"update:workspace": (value: string) => any;
|
|
25
|
+
"update:isSidebarOpen": (value: boolean) => any;
|
|
26
|
+
"update:sidebarWidth": (value: number) => any;
|
|
27
|
+
}, string, import("vue").PublicProps, Readonly<__VLS_PublicProps> & Readonly<{
|
|
28
|
+
"onUpdate:workspace"?: ((value: string) => any) | undefined;
|
|
29
|
+
"onUpdate:isSidebarOpen"?: ((value: boolean) => any) | undefined;
|
|
30
|
+
"onUpdate:sidebarWidth"?: ((value: number) => any) | undefined;
|
|
31
|
+
}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
32
|
+
declare const _default: __VLS_WithSlots<typeof __VLS_component, __VLS_Slots>;
|
|
33
|
+
export default _default;
|
|
34
|
+
type __VLS_WithSlots<T, S> = T & {
|
|
35
|
+
new (): {
|
|
36
|
+
$slots: S;
|
|
37
|
+
};
|
|
38
|
+
};
|
|
39
|
+
//# sourceMappingURL=Sidebar.vue.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Sidebar.vue.d.ts","sourceRoot":"","sources":["../../../../src/v2/components/sidebar/Sidebar.vue"],"names":[],"mappings":"AA0HA,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,2CAA2C,CAAA;AAIlF,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,mBAAmB,CAAA;AAKrD,KAAK,WAAW,GAAG;IACjB,iDAAiD;IACjD,SAAS,EAAE,MAAM,CAAC,MAAM,EAAE,iBAAiB,CAAC,CAAA;IAC5C,4BAA4B;IAC5B,MAAM,EAAE,YAAY,CAAA;CACrB,CAAC;AAGF,KAAK,WAAW,GAAG;IACjB,uCAAuC;IACvC,eAAe,CAAC,IAAI,OAAO,CAAA;IAC3B,mDAAmD;IACnD,MAAM,CAAC,IAAI,OAAO,CAAA;CACnB,CAAC;AA+CF,KAAK,iBAAiB,GAAG,WAAW,GAAG;IACvC,qDAAqD;IACrD,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,6CAA6C;IAC7C,eAAe,EAAE,OAAO,CAAC;IACzB,wCAAwC;IACxC,cAAc,EAAE,MAAM,CAAC;CACtB,CAAC;AAkLF,QAAA,MAAM,eAAe;;;;;;;;kFAOnB,CAAC;wBACkB,eAAe,CAAC,OAAO,eAAe,EAAE,WAAW,CAAC;AAAzE,wBAA0E;AAQ1E,KAAK,eAAe,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG;IAChC,QAAO;QACN,MAAM,EAAE,CAAC,CAAC;KAEV,CAAA;CACD,CAAC"}
|
|
@@ -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"}
|