@scalar/api-client 2.8.1 → 2.9.1
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 +70 -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 +10 -10
- 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/code-input/CodeInput.test.d.ts +2 -0
- package/dist/v2/components/code-input/CodeInput.test.d.ts.map +1 -0
- package/dist/v2/components/code-input/CodeInput.vue.d.ts +140 -0
- package/dist/v2/components/code-input/CodeInput.vue.d.ts.map +1 -0
- package/dist/v2/components/code-input/CodeInput.vue.js +8 -0
- package/dist/v2/components/code-input/CodeInput.vue2.js +202 -0
- package/dist/v2/components/code-input/code-variable-widget.d.ts +21 -0
- package/dist/v2/components/code-input/code-variable-widget.d.ts.map +1 -0
- package/dist/v2/components/code-input/code-variable-widget.js +106 -0
- package/dist/v2/components/code-input/code-variable-widget.test.d.ts +2 -0
- package/dist/v2/components/code-input/code-variable-widget.test.d.ts.map +1 -0
- package/dist/v2/components/code-input/index.d.ts +2 -0
- package/dist/v2/components/code-input/index.d.ts.map +1 -0
- package/dist/v2/components/code-input/index.js +4 -0
- package/dist/v2/components/data-table/DataTable.vue.d.ts +22 -0
- package/dist/v2/components/data-table/DataTable.vue.d.ts.map +1 -0
- package/dist/v2/components/data-table/DataTable.vue.js +38 -0
- package/dist/v2/components/data-table/DataTable.vue2.js +4 -0
- package/dist/v2/components/data-table/DataTableCell.vue.d.ts +19 -0
- package/dist/v2/components/data-table/DataTableCell.vue.d.ts.map +1 -0
- package/dist/v2/components/data-table/DataTableCell.vue.js +26 -0
- package/dist/v2/components/data-table/DataTableCell.vue2.js +4 -0
- package/dist/v2/components/data-table/DataTableCheckbox.vue.d.ts +14 -0
- package/dist/v2/components/data-table/DataTableCheckbox.vue.d.ts.map +1 -0
- package/dist/v2/components/data-table/DataTableCheckbox.vue.js +53 -0
- package/dist/v2/components/data-table/DataTableCheckbox.vue2.js +4 -0
- package/dist/v2/components/data-table/DataTableHeader.vue.d.ts +13 -0
- package/dist/v2/components/data-table/DataTableHeader.vue.d.ts.map +1 -0
- package/dist/v2/components/data-table/DataTableHeader.vue.js +18 -0
- package/dist/v2/components/data-table/DataTableHeader.vue2.js +4 -0
- package/dist/v2/components/data-table/DataTableInput.vue.d.ts +53 -0
- package/dist/v2/components/data-table/DataTableInput.vue.d.ts.map +1 -0
- package/dist/v2/components/data-table/DataTableInput.vue.js +7 -0
- package/dist/v2/components/data-table/DataTableInput.vue2.js +117 -0
- package/dist/v2/components/data-table/DataTableInputSelect.vue.d.ts +16 -0
- package/dist/v2/components/data-table/DataTableInputSelect.vue.d.ts.map +1 -0
- package/dist/v2/components/data-table/DataTableInputSelect.vue.js +146 -0
- package/dist/v2/components/data-table/DataTableInputSelect.vue2.js +4 -0
- package/dist/v2/components/data-table/DataTableRow.vue.d.ts +13 -0
- package/dist/v2/components/data-table/DataTableRow.vue.d.ts.map +1 -0
- package/dist/v2/components/data-table/DataTableRow.vue.js +12 -0
- package/dist/v2/components/data-table/DataTableText.vue.d.ts +16 -0
- package/dist/v2/components/data-table/DataTableText.vue.d.ts.map +1 -0
- package/dist/v2/components/data-table/DataTableText.vue.js +23 -0
- package/dist/v2/components/data-table/DataTableText.vue2.js +4 -0
- package/dist/v2/components/data-table/index.d.ts +9 -0
- package/dist/v2/components/data-table/index.d.ts.map +1 -0
- package/dist/v2/components/data-table/index.js +18 -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.test.d.ts +2 -0
- package/dist/v2/features/app/App.test.d.ts.map +1 -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 +87 -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 +6 -0
- package/dist/v2/features/app/components/DesktopTabs.vue.d.ts.map +1 -0
- package/dist/v2/features/app/components/DesktopTabs.vue.js +15 -0
- package/dist/v2/features/app/components/DesktopTabs.vue2.js +6 -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 +106 -0
- package/dist/v2/features/app/helpers/routes.d.ts.map +1 -0
- package/dist/v2/features/app/helpers/routes.js +109 -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 +95 -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 +40 -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 +15 -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 +29 -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 +15 -0
- package/dist/v2/features/collection/components/Overview.vue.d.ts.map +1 -0
- package/dist/v2/features/collection/components/Overview.vue.js +7 -0
- package/dist/v2/features/collection/components/Overview.vue2.js +89 -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/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 +9 -0
- package/dist/v2/features/environments/EnvironmentsList.vue.d.ts.map +1 -0
- package/dist/v2/features/environments/EnvironmentsList.vue.js +66 -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 +16 -0
- package/dist/v2/features/environments/components/Environment.vue.d.ts.map +1 -0
- package/dist/v2/features/environments/components/Environment.vue.js +53 -0
- package/dist/v2/features/environments/components/Environment.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 +121 -0
- package/dist/v2/features/environments/components/EnvironmentColors.vue2.js +4 -0
- package/dist/v2/features/environments/components/EnvironmentCreateModal.vue.d.ts +12 -0
- package/dist/v2/features/environments/components/EnvironmentCreateModal.vue.d.ts.map +1 -0
- package/dist/v2/features/environments/components/EnvironmentCreateModal.vue.js +85 -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/EnvironmentVariablesDropdown.vue.d.ts +21 -0
- package/dist/v2/features/environments/components/EnvironmentVariablesDropdown.vue.d.ts.map +1 -0
- package/dist/v2/features/environments/components/EnvironmentVariablesDropdown.vue.js +109 -0
- package/dist/v2/features/environments/components/EnvironmentVariablesDropdown.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 +10 -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 +136 -0
- package/dist/v2/features/environments/index.d.ts +2 -0
- package/dist/v2/features/environments/index.d.ts.map +1 -0
- package/dist/v2/features/environments/index.js +4 -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/helpers/test-utils.d.ts +4 -0
- package/dist/v2/helpers/test-utils.d.ts.map +1 -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 +9 -0
- package/dist/v2/hooks/use-workspace-client-events.d.ts.map +1 -0
- package/dist/v2/hooks/use-workspace-client-events.js +27 -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 +31 -26
- 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,5 +1,5 @@
|
|
|
1
1
|
import { defineComponent as u, ref as c, createBlock as d, openBlock as l, Transition as m, withCtx as r, createElementBlock as f, createCommentVNode as p, unref as e, createVNode as i, createTextVNode as g } from "vue";
|
|
2
|
-
import { useLoadingState as v, ScalarLoading as
|
|
2
|
+
import { useLoadingState as v, ScalarLoading as x, ScalarButton as _ } from "@scalar/components";
|
|
3
3
|
import { useWorkspace as k } from "../../../store/store.js";
|
|
4
4
|
const L = {
|
|
5
5
|
key: 0,
|
|
@@ -13,20 +13,19 @@ const L = {
|
|
|
13
13
|
}), (s, o) => (l(), d(m, null, {
|
|
14
14
|
default: r(() => [
|
|
15
15
|
e(t).isLoading ? (l(), f("div", L, [
|
|
16
|
-
i(e(
|
|
16
|
+
i(e(x), {
|
|
17
17
|
class: "text-c-3",
|
|
18
18
|
loadingState: e(t),
|
|
19
19
|
size: "3xl"
|
|
20
20
|
}, null, 8, ["loadingState"]),
|
|
21
|
-
i(e(
|
|
21
|
+
i(e(_), {
|
|
22
22
|
variant: "ghost",
|
|
23
23
|
onClick: o[0] || (o[0] = (C) => e(n).cancelRequest.emit())
|
|
24
24
|
}, {
|
|
25
|
-
default: r(() => o[1] || (o[1] = [
|
|
26
|
-
g(" Cancel ")
|
|
27
|
-
])),
|
|
28
|
-
_: 1
|
|
29
|
-
__: [1]
|
|
25
|
+
default: r(() => [...o[1] || (o[1] = [
|
|
26
|
+
g(" Cancel ", -1)
|
|
27
|
+
])]),
|
|
28
|
+
_: 1
|
|
30
29
|
})
|
|
31
30
|
])) : p("", !0)
|
|
32
31
|
]),
|
|
@@ -8,14 +8,14 @@ import { useWorkspace as H } from "../../../store/store.js";
|
|
|
8
8
|
const J = { class: "flex w-[inherit] items-center text-base" }, K = { class: "m-0 flex items-center gap-1.5 font-bold" }, Q = { class: "line-clamp-1 text-left" }, X = { class: "overflow-hidden text-ellipsis" }, Z = { class: "flex h-4 w-4 items-center justify-center" }, re = /* @__PURE__ */ A({
|
|
9
9
|
__name: "WorkspaceDropdown",
|
|
10
10
|
setup(ee) {
|
|
11
|
-
const { activeWorkspace: c } = G(), { workspaces: r, workspaceMutators: w, events: E } = H(), { push:
|
|
12
|
-
o !== c.value?.uid &&
|
|
11
|
+
const { activeWorkspace: c } = G(), { workspaces: r, workspaceMutators: w, events: E } = H(), { push: x } = F(), T = (o) => {
|
|
12
|
+
o !== c.value?.uid && x({
|
|
13
13
|
name: "workspace",
|
|
14
14
|
params: {
|
|
15
15
|
workspace: o
|
|
16
16
|
}
|
|
17
17
|
});
|
|
18
|
-
},
|
|
18
|
+
}, _ = L(() => Object.keys(r).length === 1), j = () => E.commandPalette.emit({ commandName: "Create Workspace" }), d = W(""), i = W(""), u = S(), p = S(), g = (o) => {
|
|
19
19
|
const t = r[o];
|
|
20
20
|
t && (d.value = t.name, i.value = o, u.show());
|
|
21
21
|
}, B = (o) => {
|
|
@@ -24,11 +24,11 @@ const J = { class: "flex w-[inherit] items-center text-base" }, K = { class: "m-
|
|
|
24
24
|
const t = r[o];
|
|
25
25
|
t && (d.value = t.name, i.value = o, p.show());
|
|
26
26
|
}, R = async () => {
|
|
27
|
-
if (!
|
|
27
|
+
if (!_.value) {
|
|
28
28
|
const o = c.value?.uid === i.value, t = { ...r };
|
|
29
29
|
if (delete t[i.value], w.delete(i.value), o) {
|
|
30
30
|
const a = Object.keys(t)[0];
|
|
31
|
-
await
|
|
31
|
+
await x({
|
|
32
32
|
name: "workspace",
|
|
33
33
|
params: {
|
|
34
34
|
workspace: a
|
|
@@ -71,10 +71,9 @@ const J = { class: "flex w-[inherit] items-center text-base" }, K = { class: "m-
|
|
|
71
71
|
}),
|
|
72
72
|
t[2] || (t[2] = l("span", null, "Rename", -1))
|
|
73
73
|
]),
|
|
74
|
-
_:
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
x.value ? O("", !0) : (f(), D(e(h), {
|
|
74
|
+
_: 1
|
|
75
|
+
}, 8, ["onMousedown", "onTouchend"]),
|
|
76
|
+
_.value ? O("", !0) : (f(), D(e(h), {
|
|
78
77
|
key: 0,
|
|
79
78
|
class: "flex gap-2",
|
|
80
79
|
onMousedown: v((m) => b(a.uid), ["prevent"]),
|
|
@@ -89,9 +88,8 @@ const J = { class: "flex w-[inherit] items-center text-base" }, K = { class: "m-
|
|
|
89
88
|
}),
|
|
90
89
|
t[3] || (t[3] = l("span", null, "Delete", -1))
|
|
91
90
|
]),
|
|
92
|
-
_:
|
|
93
|
-
|
|
94
|
-
}, 1032, ["onMousedown", "onTouchend"]))
|
|
91
|
+
_: 1
|
|
92
|
+
}, 8, ["onMousedown", "onTouchend"]))
|
|
95
93
|
]),
|
|
96
94
|
default: n(() => [
|
|
97
95
|
s(e(N), {
|
|
@@ -128,8 +126,7 @@ const J = { class: "flex w-[inherit] items-center text-base" }, K = { class: "m-
|
|
|
128
126
|
]),
|
|
129
127
|
t[4] || (t[4] = l("span", null, "Create Workspace", -1))
|
|
130
128
|
]),
|
|
131
|
-
_: 1
|
|
132
|
-
__: [4]
|
|
129
|
+
_: 1
|
|
133
130
|
})
|
|
134
131
|
]),
|
|
135
132
|
default: n(() => [
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import type { ErrorResponse } from '../../../libs/errors.js';
|
|
2
1
|
import type { Oauth2Flow, Server } from '@scalar/oas-utils/entities/spec';
|
|
2
|
+
import type { ErrorResponse } from '../../../libs/errors.js';
|
|
3
3
|
/** Oauth2 security schemes which are not implicit */
|
|
4
4
|
type NonImplicitFlow = Exclude<Oauth2Flow, {
|
|
5
5
|
type: 'implicit';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"oauth2.d.ts","sourceRoot":"","sources":["../../../../src/views/Request/libs/oauth2.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,
|
|
1
|
+
{"version":3,"file":"oauth2.d.ts","sourceRoot":"","sources":["../../../../src/views/Request/libs/oauth2.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,EAAE,MAAM,iCAAiC,CAAA;AAIzE,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,eAAe,CAAA;AAElD,qDAAqD;AACrD,KAAK,eAAe,GAAG,OAAO,CAAC,UAAU,EAAE;IAAE,IAAI,EAAE,UAAU,CAAA;CAAE,CAAC,CAAA;AAEhE,KAAK,SAAS,GAAG;IACf,YAAY,EAAE,MAAM,CAAA;IACpB,aAAa,EAAE,MAAM,CAAA;IACrB,mBAAmB,EAAE,MAAM,CAAA;CAC5B,CAAA;AAgBD;;GAEG;AACH,eAAO,MAAM,qBAAqB,GAAU,UAAU,MAAM,EAAE,UAAU,SAAS,GAAG,OAAO,KAAG,OAAO,CAAC,MAAM,CAY3G,CAAA;AAED;;;;GAIG;AACH,eAAO,MAAM,eAAe,GAC1B,MAAM,UAAU;AAChB,wEAAwE;AACxE,cAAc,MAAM;AACpB,kCAAkC;AAClC,WAAW,MAAM,KAChB,OAAO,CAAC,aAAa,CAAC,MAAM,CAAC,CA+J/B,CAAA;AAED;;;GAGG;AACH,eAAO,MAAM,gBAAgB,GAC3B,MAAM,eAAe,EACrB,QAAQ,MAAM,EACd,4BAIG;IACD,IAAI,CAAC,EAAE,MAAM,CAAA;IACb,IAAI,CAAC,EAAE,SAAS,GAAG,IAAI,CAAA;IACvB,QAAQ,CAAC,EAAE,MAAM,GAAG,SAAS,CAAA;CACzB,KACL,OAAO,CAAC,aAAa,CAAC,MAAM,CAAC,CA0F/B,CAAA"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { defineComponent as E, createElementBlock as
|
|
1
|
+
import { defineComponent as E, createElementBlock as w, openBlock as c, createElementVNode as r, createVNode as a, withCtx as l, createBlock as u, createCommentVNode as p, unref as e, normalizeClass as i, createTextVNode as n, toDisplayString as C, Fragment as z, renderList as $, normalizeStyle as _ } from "vue";
|
|
2
2
|
import { cva as L, ScalarButton as x, cx as m, ScalarIcon as b } from "@scalar/components";
|
|
3
3
|
import { themeLabels as j } from "@scalar/themes";
|
|
4
4
|
import N from "../../components/ImportCollection/IntegrationLogo.vue.js";
|
|
@@ -43,31 +43,31 @@ const W = { class: "bg-b-1 h-full w-full overflow-auto" }, F = { class: "mr-auto
|
|
|
43
43
|
}
|
|
44
44
|
}
|
|
45
45
|
}), h = (d) => U.edit(o.value?.uid, "proxyUrl", d);
|
|
46
|
-
return (d, t) => (c(),
|
|
46
|
+
return (d, t) => (c(), w("div", W, [
|
|
47
47
|
r("div", F, [
|
|
48
48
|
r("div", O, [
|
|
49
49
|
t[13] || (t[13] = r("div", null, [
|
|
50
50
|
r("h2", { class: "mt-10 text-xl font-bold" }, "Settings")
|
|
51
51
|
], -1)),
|
|
52
52
|
a(y, null, {
|
|
53
|
-
title: l(() => t[3] || (t[3] = [
|
|
54
|
-
n(" CORS Proxy ")
|
|
55
|
-
])),
|
|
56
|
-
description: l(() => t[4] || (t[4] = [
|
|
57
|
-
n(" Browsers block cross-origin requests for security. We provide a public proxy to "),
|
|
53
|
+
title: l(() => [...t[3] || (t[3] = [
|
|
54
|
+
n(" CORS Proxy ", -1)
|
|
55
|
+
])]),
|
|
56
|
+
description: l(() => [...t[4] || (t[4] = [
|
|
57
|
+
n(" Browsers block cross-origin requests for security. We provide a public proxy to ", -1),
|
|
58
58
|
r("a", {
|
|
59
59
|
class: "hover:text-c-1 underline-offset-2",
|
|
60
60
|
href: "https://en.wikipedia.org/wiki/Cross-origin_resource_sharing",
|
|
61
61
|
target: "_blank"
|
|
62
62
|
}, " bypass CORS issues ", -1),
|
|
63
|
-
n(" . Check the "),
|
|
63
|
+
n(" . Check the ", -1),
|
|
64
64
|
r("a", {
|
|
65
65
|
class: "hover:text-c-1 underline-offset-2",
|
|
66
66
|
href: "https://github.com/scalar/scalar/tree/main/examples/proxy-server",
|
|
67
67
|
target: "_blank"
|
|
68
68
|
}, " source code on GitHub ", -1),
|
|
69
|
-
n(" . ")
|
|
70
|
-
])),
|
|
69
|
+
n(" . ", -1)
|
|
70
|
+
])]),
|
|
71
71
|
default: l(() => [
|
|
72
72
|
r("div", D, [
|
|
73
73
|
a(e(x), {
|
|
@@ -93,10 +93,9 @@ const W = { class: "bg-b-1 h-full w-full overflow-auto" }, F = { class: "mr-auto
|
|
|
93
93
|
thickness: "3.5"
|
|
94
94
|
})) : p("", !0)
|
|
95
95
|
], 2),
|
|
96
|
-
t[5] || (t[5] = n(" Use proxy.scalar.com (default) "))
|
|
96
|
+
t[5] || (t[5] = n(" Use proxy.scalar.com (default) ", -1))
|
|
97
97
|
]),
|
|
98
|
-
_: 1
|
|
99
|
-
__: [5]
|
|
98
|
+
_: 1
|
|
100
99
|
}, 8, ["class"]),
|
|
101
100
|
e(f) && e(f) !== g ? (c(), u(e(x), {
|
|
102
101
|
key: 0,
|
|
@@ -122,7 +121,7 @@ const W = { class: "bg-b-1 h-full w-full overflow-auto" }, F = { class: "mr-auto
|
|
|
122
121
|
thickness: "3.5"
|
|
123
122
|
})) : p("", !0)
|
|
124
123
|
], 2),
|
|
125
|
-
n(" Use custom proxy (" +
|
|
124
|
+
n(" Use custom proxy (" + C(e(f)) + ") ", 1)
|
|
126
125
|
]),
|
|
127
126
|
_: 1
|
|
128
127
|
}, 8, ["class"])) : p("", !0),
|
|
@@ -144,26 +143,25 @@ const W = { class: "bg-b-1 h-full w-full overflow-auto" }, F = { class: "mr-auto
|
|
|
144
143
|
thickness: "3.5"
|
|
145
144
|
}))
|
|
146
145
|
], 2),
|
|
147
|
-
t[6] || (t[6] = n(" Skip the proxy "))
|
|
146
|
+
t[6] || (t[6] = n(" Skip the proxy ", -1))
|
|
148
147
|
]),
|
|
149
|
-
_: 1
|
|
150
|
-
__: [6]
|
|
148
|
+
_: 1
|
|
151
149
|
}, 8, ["class"])
|
|
152
150
|
])
|
|
153
151
|
]),
|
|
154
152
|
_: 1
|
|
155
153
|
}),
|
|
156
154
|
a(y, null, {
|
|
157
|
-
title: l(() => t[7] || (t[7] = [
|
|
158
|
-
n(" Themes ")
|
|
159
|
-
])),
|
|
160
|
-
description: l(() => t[8] || (t[8] = [
|
|
161
|
-
n(" We've got a whole rainbow of themes for you to play with: ")
|
|
162
|
-
])),
|
|
155
|
+
title: l(() => [...t[7] || (t[7] = [
|
|
156
|
+
n(" Themes ", -1)
|
|
157
|
+
])]),
|
|
158
|
+
description: l(() => [...t[8] || (t[8] = [
|
|
159
|
+
n(" We've got a whole rainbow of themes for you to play with: ", -1)
|
|
160
|
+
])]),
|
|
163
161
|
default: l(() => [
|
|
164
162
|
r("div", G, [
|
|
165
163
|
r("div", q, [
|
|
166
|
-
(c(),
|
|
164
|
+
(c(), w(z, null, $(T, (s) => a(e(x), {
|
|
167
165
|
key: s,
|
|
168
166
|
class: i(
|
|
169
167
|
e(m)(
|
|
@@ -188,24 +186,24 @@ const W = { class: "bg-b-1 h-full w-full overflow-auto" }, F = { class: "mr-auto
|
|
|
188
186
|
thickness: "3.5"
|
|
189
187
|
})) : p("", !0)
|
|
190
188
|
], 2),
|
|
191
|
-
n(" " +
|
|
189
|
+
n(" " + C(e(j)[s]), 1)
|
|
192
190
|
]),
|
|
193
191
|
r("div", M, [
|
|
194
192
|
r("span", {
|
|
195
193
|
class: "border-c-3 -mr-3 inline-block h-5 w-5 rounded-full",
|
|
196
|
-
style:
|
|
194
|
+
style: _({
|
|
197
195
|
backgroundColor: v(s).light
|
|
198
196
|
})
|
|
199
197
|
}, null, 4),
|
|
200
198
|
r("span", {
|
|
201
199
|
class: "border-c-3 -mr-3 inline-block h-5 w-5 rounded-full",
|
|
202
|
-
style:
|
|
200
|
+
style: _({
|
|
203
201
|
backgroundColor: v(s).dark
|
|
204
202
|
})
|
|
205
203
|
}, null, 4),
|
|
206
204
|
r("span", {
|
|
207
205
|
class: "border-c-3 inline-block h-5 w-5 rounded-full",
|
|
208
|
-
style:
|
|
206
|
+
style: _({
|
|
209
207
|
backgroundColor: v(s).accent
|
|
210
208
|
})
|
|
211
209
|
}, null, 4)
|
|
@@ -219,15 +217,15 @@ const W = { class: "bg-b-1 h-full w-full overflow-auto" }, F = { class: "mr-auto
|
|
|
219
217
|
_: 1
|
|
220
218
|
}),
|
|
221
219
|
a(y, null, {
|
|
222
|
-
title: l(() => t[9] || (t[9] = [
|
|
223
|
-
n(" Framework Themes ")
|
|
224
|
-
])),
|
|
225
|
-
description: l(() => t[10] || (t[10] = [
|
|
226
|
-
n(" Are you a real fan? Show your support by using your favorite framework's theme! ")
|
|
227
|
-
])),
|
|
220
|
+
title: l(() => [...t[9] || (t[9] = [
|
|
221
|
+
n(" Framework Themes ", -1)
|
|
222
|
+
])]),
|
|
223
|
+
description: l(() => [...t[10] || (t[10] = [
|
|
224
|
+
n(" Are you a real fan? Show your support by using your favorite framework's theme! ", -1)
|
|
225
|
+
])]),
|
|
228
226
|
default: l(() => [
|
|
229
227
|
r("div", X, [
|
|
230
|
-
(c(),
|
|
228
|
+
(c(), w(z, null, $(B, (s) => a(e(x), {
|
|
231
229
|
key: s,
|
|
232
230
|
class: i(
|
|
233
231
|
e(m)(
|
|
@@ -252,7 +250,7 @@ const W = { class: "bg-b-1 h-full w-full overflow-auto" }, F = { class: "mr-auto
|
|
|
252
250
|
thickness: "3.5"
|
|
253
251
|
})) : p("", !0)
|
|
254
252
|
], 2),
|
|
255
|
-
n(" " +
|
|
253
|
+
n(" " + C(e(j)[s]), 1)
|
|
256
254
|
]),
|
|
257
255
|
r("div", J, [
|
|
258
256
|
r("div", K, [
|
|
@@ -267,12 +265,12 @@ const W = { class: "bg-b-1 h-full w-full overflow-auto" }, F = { class: "mr-auto
|
|
|
267
265
|
_: 1
|
|
268
266
|
}),
|
|
269
267
|
a(y, null, {
|
|
270
|
-
title: l(() => t[11] || (t[11] = [
|
|
271
|
-
n(" Appearance ")
|
|
272
|
-
])),
|
|
273
|
-
description: l(() => t[12] || (t[12] = [
|
|
274
|
-
n(" Choose between light, dark, or system-based appearance for your workspace. ")
|
|
275
|
-
])),
|
|
268
|
+
title: l(() => [...t[11] || (t[11] = [
|
|
269
|
+
n(" Appearance ", -1)
|
|
270
|
+
])]),
|
|
271
|
+
description: l(() => [...t[12] || (t[12] = [
|
|
272
|
+
n(" Choose between light, dark, or system-based appearance for your workspace. ", -1)
|
|
273
|
+
])]),
|
|
276
274
|
default: l(() => [
|
|
277
275
|
a(R)
|
|
278
276
|
]),
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { defineComponent as x, createElementBlock as y, openBlock as o, createVNode as l, unref as e, normalizeClass as s, withCtx as c, createElementVNode as i, createTextVNode as d, createBlock as u, createCommentVNode as f } from "vue";
|
|
2
2
|
import { cva as g, ScalarButton as m, cx as p, ScalarIcon as k } from "@scalar/components";
|
|
3
3
|
import { useColorMode as v } from "@scalar/use-hooks/useColorMode";
|
|
4
|
-
const C = { class: "flex flex-col gap-2" },
|
|
4
|
+
const C = { class: "flex flex-col gap-2" }, z = /* @__PURE__ */ x({
|
|
5
5
|
__name: "SettingsAppearance",
|
|
6
6
|
setup(h) {
|
|
7
7
|
const { colorMode: r, setColorMode: n } = v(), a = g({
|
|
@@ -31,10 +31,9 @@ const C = { class: "flex flex-col gap-2" }, j = /* @__PURE__ */ x({
|
|
|
31
31
|
thickness: "3.5"
|
|
32
32
|
})) : f("", !0)
|
|
33
33
|
], 2),
|
|
34
|
-
t[3] || (t[3] = d(" System Preference (default) "))
|
|
34
|
+
t[3] || (t[3] = d(" System Preference (default) ", -1))
|
|
35
35
|
]),
|
|
36
|
-
_: 1
|
|
37
|
-
__: [3]
|
|
36
|
+
_: 1
|
|
38
37
|
}, 8, ["class"]),
|
|
39
38
|
l(e(m), {
|
|
40
39
|
class: s(e(p)(e(a)({ active: e(r) === "light" }))),
|
|
@@ -53,10 +52,9 @@ const C = { class: "flex flex-col gap-2" }, j = /* @__PURE__ */ x({
|
|
|
53
52
|
thickness: "3.5"
|
|
54
53
|
})) : f("", !0)
|
|
55
54
|
], 2),
|
|
56
|
-
t[4] || (t[4] = d(" Light Mode Always "))
|
|
55
|
+
t[4] || (t[4] = d(" Light Mode Always ", -1))
|
|
57
56
|
]),
|
|
58
|
-
_: 1
|
|
59
|
-
__: [4]
|
|
57
|
+
_: 1
|
|
60
58
|
}, 8, ["class"]),
|
|
61
59
|
l(e(m), {
|
|
62
60
|
class: s(e(p)(e(a)({ active: e(r) === "dark" }))),
|
|
@@ -75,14 +73,13 @@ const C = { class: "flex flex-col gap-2" }, j = /* @__PURE__ */ x({
|
|
|
75
73
|
thickness: "3.5"
|
|
76
74
|
})) : f("", !0)
|
|
77
75
|
], 2),
|
|
78
|
-
t[5] || (t[5] = d(" Dark Mode Always "))
|
|
76
|
+
t[5] || (t[5] = d(" Dark Mode Always ", -1))
|
|
79
77
|
]),
|
|
80
|
-
_: 1
|
|
81
|
-
__: [5]
|
|
78
|
+
_: 1
|
|
82
79
|
}, 8, ["class"])
|
|
83
80
|
]));
|
|
84
81
|
}
|
|
85
82
|
});
|
|
86
83
|
export {
|
|
87
|
-
|
|
84
|
+
z as default
|
|
88
85
|
};
|
package/package.json
CHANGED
|
@@ -18,7 +18,7 @@
|
|
|
18
18
|
"rest",
|
|
19
19
|
"testing"
|
|
20
20
|
],
|
|
21
|
-
"version": "2.
|
|
21
|
+
"version": "2.9.1",
|
|
22
22
|
"engines": {
|
|
23
23
|
"node": ">=20"
|
|
24
24
|
},
|
|
@@ -226,44 +226,46 @@
|
|
|
226
226
|
"pretty-ms": "^8.0.0",
|
|
227
227
|
"shell-quote": "^1.8.1",
|
|
228
228
|
"type-fest": "5.0.0",
|
|
229
|
-
"vue": "^3.5.
|
|
230
|
-
"vue-router": "
|
|
229
|
+
"vue": "^3.5.21",
|
|
230
|
+
"vue-router": "4.6.2",
|
|
231
231
|
"whatwg-mimetype": "^4.0.0",
|
|
232
232
|
"yaml": "2.8.0",
|
|
233
233
|
"zod": "4.1.11",
|
|
234
234
|
"@scalar/analytics-client": "1.0.0",
|
|
235
|
-
"@scalar/draggable": "0.
|
|
236
|
-
"@scalar/components": "0.
|
|
237
|
-
"@scalar/
|
|
238
|
-
"@scalar/icons": "0.
|
|
239
|
-
"@scalar/
|
|
240
|
-
"@scalar/
|
|
241
|
-
"@scalar/
|
|
242
|
-
"@scalar/
|
|
243
|
-
"@scalar/openapi-parser": "0.
|
|
244
|
-
"@scalar/
|
|
245
|
-
"@scalar/
|
|
246
|
-
"@scalar/
|
|
247
|
-
"@scalar/
|
|
248
|
-
"@scalar/
|
|
249
|
-
"@scalar/use-
|
|
250
|
-
"@scalar/
|
|
251
|
-
"@scalar/
|
|
252
|
-
"@scalar/use-
|
|
235
|
+
"@scalar/draggable": "0.3.0",
|
|
236
|
+
"@scalar/components": "0.16.1",
|
|
237
|
+
"@scalar/import": "0.4.32",
|
|
238
|
+
"@scalar/icons": "0.5.0",
|
|
239
|
+
"@scalar/helpers": "0.0.13",
|
|
240
|
+
"@scalar/oas-utils": "0.6.1",
|
|
241
|
+
"@scalar/json-magic": "0.7.0",
|
|
242
|
+
"@scalar/object-utils": "1.2.9",
|
|
243
|
+
"@scalar/openapi-parser": "0.23.0",
|
|
244
|
+
"@scalar/postman-to-openapi": "0.3.42",
|
|
245
|
+
"@scalar/sidebar": "0.2.1",
|
|
246
|
+
"@scalar/snippetz": "0.5.2",
|
|
247
|
+
"@scalar/openapi-types": "0.5.1",
|
|
248
|
+
"@scalar/themes": "0.13.23",
|
|
249
|
+
"@scalar/use-codemirror": "0.12.45",
|
|
250
|
+
"@scalar/types": "0.4.0",
|
|
251
|
+
"@scalar/use-hooks": "0.3.0",
|
|
252
|
+
"@scalar/use-toasts": "0.9.0",
|
|
253
|
+
"@scalar/workspace-store": "0.18.1"
|
|
253
254
|
},
|
|
254
255
|
"devDependencies": {
|
|
255
256
|
"@tailwindcss/vite": "^4.1.7",
|
|
256
257
|
"@types/shell-quote": "^1.7.5",
|
|
257
258
|
"@types/whatwg-mimetype": "^3.0.2",
|
|
258
259
|
"@vitejs/plugin-vue": "6.0.1",
|
|
259
|
-
"@vue/test-utils": "
|
|
260
|
+
"@vue/test-utils": "2.4.6",
|
|
261
|
+
"fastify": "^5.3.3",
|
|
260
262
|
"jsdom": "^22.1.0",
|
|
261
263
|
"tailwindcss": "^4.1.7",
|
|
262
|
-
"vite": "7.1.
|
|
263
|
-
"vite-svg-loader": "
|
|
264
|
+
"vite": "7.1.11",
|
|
265
|
+
"vite-svg-loader": "5.1.0",
|
|
264
266
|
"vitest": "3.2.4",
|
|
265
|
-
"@scalar/
|
|
266
|
-
"@scalar/
|
|
267
|
+
"@scalar/galaxy": "0.5.9",
|
|
268
|
+
"@scalar/build-tooling": "0.2.8"
|
|
267
269
|
},
|
|
268
270
|
"scripts": {
|
|
269
271
|
"build": "scalar-build-vite",
|
|
@@ -272,6 +274,9 @@
|
|
|
272
274
|
"lint:fix": "eslint . --fix",
|
|
273
275
|
"playground:app": "vite ./playground/app -c ./vite.config.ts",
|
|
274
276
|
"playground:modal": "vite ./playground/modal -c ./vite.config.ts",
|
|
277
|
+
"playground:v2:app": "vite ./playground/v2/app -c ./vite.config.ts",
|
|
278
|
+
"playground:v2:modal": "vite ./playground/v2/modal -c ./vite.config.ts",
|
|
279
|
+
"playground:v2:web": "vite ./playground/v2/web -c ./vite.config.ts",
|
|
275
280
|
"playground:web": "vite ./playground/web -c ./vite.config.ts",
|
|
276
281
|
"preview": "vite preview",
|
|
277
282
|
"test": "vitest",
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"useKeyMap.d.ts","sourceRoot":"","sources":["../../src/hooks/useKeyMap.ts"],"names":[],"mappings":"AAAA,wBAAgB,MAAM,IAAI,GAAG,CAAC,MAAM,EAAE,MAAM,CAAC,CAK5C"}
|
package/dist/hooks/useKeyMap.js
DELETED
package/dist/router.d.ts
DELETED
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
export { PathId, saveActiveWorkspace } from './routes.js';
|
|
2
|
-
/** Router for the API client app */
|
|
3
|
-
export declare const createWebHistoryRouter: () => import("vue-router").Router;
|
|
4
|
-
/** Router factory for the API client app (but using hash history) */
|
|
5
|
-
export declare const createWebHashRouter: () => import("vue-router").Router;
|
|
6
|
-
/** Router factory for the API Client modal */
|
|
7
|
-
export declare const createModalRouter: () => import("vue-router").Router;
|
|
8
|
-
//# sourceMappingURL=router.d.ts.map
|
package/dist/router.d.ts.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"router.d.ts","sourceRoot":"","sources":["../src/router.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,MAAM,EAAE,mBAAmB,EAAE,MAAM,UAAU,CAAA;AAEtD,oCAAoC;AACpC,eAAO,MAAM,sBAAsB,mCAI/B,CAAA;AAEJ,qEAAqE;AACrE,eAAO,MAAM,mBAAmB,mCAI5B,CAAA;AAEJ,8CAA8C;AAC9C,eAAO,MAAM,iBAAiB,mCAI1B,CAAA"}
|
package/dist/router.js
DELETED
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
import { modalRoutes as r, routes as t } from "./routes.js";
|
|
2
|
-
import { PathId as p, saveActiveWorkspace as R } from "./routes.js";
|
|
3
|
-
import { createRouter as e, createMemoryHistory as o, createWebHashHistory as s, createWebHistory as a } from "vue-router";
|
|
4
|
-
const y = () => e({
|
|
5
|
-
history: a(),
|
|
6
|
-
routes: t
|
|
7
|
-
}), m = () => e({
|
|
8
|
-
history: s(),
|
|
9
|
-
routes: t
|
|
10
|
-
}), u = () => e({
|
|
11
|
-
history: o(),
|
|
12
|
-
routes: r
|
|
13
|
-
});
|
|
14
|
-
export {
|
|
15
|
-
p as PathId,
|
|
16
|
-
u as createModalRouter,
|
|
17
|
-
m as createWebHashRouter,
|
|
18
|
-
y as createWebHistoryRouter,
|
|
19
|
-
R as saveActiveWorkspace
|
|
20
|
-
};
|