@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
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
import { defineComponent as m, createBlock as u, openBlock as f, unref as n, withCtx as o, createElementVNode as a, createVNode as l, createTextVNode as i } from "vue";
|
|
2
|
+
import { ScalarModal as p, ScalarButton as r } from "@scalar/components";
|
|
3
|
+
const x = { class: "flex justify-between" }, k = /* @__PURE__ */ m({
|
|
4
|
+
__name: "EnvironmentDeleteModal",
|
|
5
|
+
props: {
|
|
6
|
+
state: {},
|
|
7
|
+
name: { default: "unknown" }
|
|
8
|
+
},
|
|
9
|
+
emits: ["cancel", "submit"],
|
|
10
|
+
setup(b, { emit: d }) {
|
|
11
|
+
const s = d;
|
|
12
|
+
return (t, e) => (f(), u(n(p), {
|
|
13
|
+
bodyClass: "border-t-0 rounded-t-lg flex flex-col gap-4",
|
|
14
|
+
size: "xxs",
|
|
15
|
+
state: t.state,
|
|
16
|
+
title: `Delete ${t.name}`
|
|
17
|
+
}, {
|
|
18
|
+
default: o(() => [
|
|
19
|
+
e[4] || (e[4] = a("p", { class: "text-c-2 text-sm leading-normal text-pretty" }, " Are you sure you want to delete this environment? This action cannot be undone. ", -1)),
|
|
20
|
+
a("div", x, [
|
|
21
|
+
l(n(r), {
|
|
22
|
+
size: "sm",
|
|
23
|
+
variant: "outlined",
|
|
24
|
+
onClick: e[0] || (e[0] = () => {
|
|
25
|
+
s("cancel"), t.state.hide();
|
|
26
|
+
})
|
|
27
|
+
}, {
|
|
28
|
+
default: o(() => [...e[2] || (e[2] = [
|
|
29
|
+
i(" Cancel ", -1)
|
|
30
|
+
])]),
|
|
31
|
+
_: 1
|
|
32
|
+
}),
|
|
33
|
+
l(n(r), {
|
|
34
|
+
size: "sm",
|
|
35
|
+
variant: "danger",
|
|
36
|
+
onClick: e[1] || (e[1] = () => {
|
|
37
|
+
s("submit"), t.state.hide();
|
|
38
|
+
})
|
|
39
|
+
}, {
|
|
40
|
+
default: o(() => [...e[3] || (e[3] = [
|
|
41
|
+
i(" Delete Environment ", -1)
|
|
42
|
+
])]),
|
|
43
|
+
_: 1
|
|
44
|
+
})
|
|
45
|
+
])
|
|
46
|
+
]),
|
|
47
|
+
_: 1
|
|
48
|
+
}, 8, ["state", "title"]));
|
|
49
|
+
}
|
|
50
|
+
});
|
|
51
|
+
export {
|
|
52
|
+
k as default
|
|
53
|
+
};
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import type { XScalarEnvironment } from '@scalar/workspace-store/schemas/extensions/document/x-scalar-environments';
|
|
2
|
+
type __VLS_Props = {
|
|
3
|
+
query: string;
|
|
4
|
+
environment: XScalarEnvironment;
|
|
5
|
+
dropdownPosition?: {
|
|
6
|
+
left: number;
|
|
7
|
+
top: number;
|
|
8
|
+
};
|
|
9
|
+
};
|
|
10
|
+
declare const _default: import("vue").DefineComponent<__VLS_Props, {
|
|
11
|
+
handleArrowKey: (direction: "up" | "down") => void;
|
|
12
|
+
handleSelect: () => void;
|
|
13
|
+
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {} & {
|
|
14
|
+
select: (variable: string) => any;
|
|
15
|
+
redirect: () => any;
|
|
16
|
+
}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{
|
|
17
|
+
onSelect?: ((variable: string) => any) | undefined;
|
|
18
|
+
onRedirect?: (() => any) | undefined;
|
|
19
|
+
}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
20
|
+
export default _default;
|
|
21
|
+
//# sourceMappingURL=EnvironmentVariablesDropdown.vue.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"EnvironmentVariablesDropdown.vue.d.ts","sourceRoot":"","sources":["../../../../../src/v2/features/environments/components/EnvironmentVariablesDropdown.vue"],"names":[],"mappings":"AAkKA,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,2EAA2E,CAAA;AAKnH,KAAK,WAAW,GAAG;IACjB,KAAK,EAAE,MAAM,CAAA;IACb,WAAW,EAAE,kBAAkB,CAAA;IAC/B,gBAAgB,CAAC,EAAE;QAAE,IAAI,EAAE,MAAM,CAAC;QAAC,GAAG,EAAE,MAAM,CAAA;KAAE,CAAA;CACjD,CAAC;;gCAqDiC,IAAI,GAAG,MAAM;;;;;;;;;AA0OhD,wBAQG"}
|
|
@@ -0,0 +1,109 @@
|
|
|
1
|
+
import { defineComponent as E, ref as u, computed as d, onMounted as N, createBlock as x, createCommentVNode as P, openBlock as r, unref as f, withCtx as y, createElementVNode as s, normalizeStyle as b, createElementBlock as p, Fragment as _, renderList as q, normalizeClass as A, createTextVNode as w, toDisplayString as g, createVNode as T } from "vue";
|
|
2
|
+
import { ScalarTeleport as j, ScalarButton as D } from "@scalar/components";
|
|
3
|
+
import { ScalarIconPlus as F } from "@scalar/icons";
|
|
4
|
+
import { onClickOutside as I } from "@vueuse/core";
|
|
5
|
+
import K from "fuse.js";
|
|
6
|
+
const O = {
|
|
7
|
+
key: 0,
|
|
8
|
+
class: "gap-1/2 flex flex-col"
|
|
9
|
+
}, R = ["onClick"], L = { class: "flex items-center gap-2 whitespace-nowrap" }, M = { class: "w-20 overflow-hidden text-right text-ellipsis whitespace-nowrap" }, Y = /* @__PURE__ */ E({
|
|
10
|
+
__name: "EnvironmentVariablesDropdown",
|
|
11
|
+
props: {
|
|
12
|
+
query: {},
|
|
13
|
+
environment: {},
|
|
14
|
+
dropdownPosition: {}
|
|
15
|
+
},
|
|
16
|
+
emits: ["select", "redirect"],
|
|
17
|
+
setup(n, { expose: k, emit: V }) {
|
|
18
|
+
const m = V, i = u(!0), c = u(null), o = u(0), C = () => {
|
|
19
|
+
m("redirect"), i.value = !1;
|
|
20
|
+
}, v = d(
|
|
21
|
+
() => n.environment.variables.map((e) => ({
|
|
22
|
+
key: e.name,
|
|
23
|
+
value: typeof e.value == "string" ? e.value : e.value.default
|
|
24
|
+
}))
|
|
25
|
+
), S = new K(v.value, {
|
|
26
|
+
keys: ["key", "value"]
|
|
27
|
+
}), a = d(() => {
|
|
28
|
+
if (!n.query)
|
|
29
|
+
return v.value.slice(-4).filter(({ key: t, value: l }) => t !== "" || l !== "");
|
|
30
|
+
const e = S.search(n.query, { limit: 10 });
|
|
31
|
+
return e.length > 0 ? e.map((t) => t.item).filter(({ key: t, value: l }) => t !== "" || l !== "") : [];
|
|
32
|
+
}), h = (e) => {
|
|
33
|
+
m("select", e);
|
|
34
|
+
};
|
|
35
|
+
k({
|
|
36
|
+
handleArrowKey: (e) => {
|
|
37
|
+
const t = e === "up" ? -1 : 1, l = a.value.length;
|
|
38
|
+
l !== 0 && (o.value = (o.value + t + l) % l);
|
|
39
|
+
},
|
|
40
|
+
handleSelect: () => {
|
|
41
|
+
if (o.value >= 0) {
|
|
42
|
+
const e = a.value[o.value];
|
|
43
|
+
e && h(e.key);
|
|
44
|
+
}
|
|
45
|
+
}
|
|
46
|
+
}), N(() => {
|
|
47
|
+
o.value = 0;
|
|
48
|
+
});
|
|
49
|
+
const z = d(() => ({
|
|
50
|
+
left: (n.dropdownPosition?.left ?? 0) + "px",
|
|
51
|
+
// Add a 5px offset from the editor
|
|
52
|
+
top: (n.dropdownPosition?.top ?? 0) + 5 + "px"
|
|
53
|
+
}));
|
|
54
|
+
return I(
|
|
55
|
+
c,
|
|
56
|
+
() => {
|
|
57
|
+
i.value = !1;
|
|
58
|
+
},
|
|
59
|
+
{ ignore: [c] }
|
|
60
|
+
), (e, t) => i.value ? (r(), x(f(j), {
|
|
61
|
+
key: 0,
|
|
62
|
+
class: "scalar-client"
|
|
63
|
+
}, {
|
|
64
|
+
default: y(() => [
|
|
65
|
+
s("div", {
|
|
66
|
+
ref_key: "dropdownRef",
|
|
67
|
+
ref: c,
|
|
68
|
+
class: "custom-scroll fixed top-0 left-0 flex max-h-[60svh] w-56 flex-col rounded border p-0.75",
|
|
69
|
+
style: b(z.value)
|
|
70
|
+
}, [
|
|
71
|
+
a.value.length ? (r(), p("ul", O, [
|
|
72
|
+
(r(!0), p(_, null, q(a.value, (l, B) => (r(), p("li", {
|
|
73
|
+
key: l.key,
|
|
74
|
+
class: A(["font-code text-xxs hover:bg-b-2 flex h-8 cursor-pointer items-center justify-between gap-1.5 rounded p-1.5 transition-colors duration-150", { "bg-b-2": B === o.value }]),
|
|
75
|
+
onClick: (H) => h(l.key)
|
|
76
|
+
}, [
|
|
77
|
+
s("div", L, [
|
|
78
|
+
s("span", {
|
|
79
|
+
class: "h-2.25 w-2.25 min-w-2.25 rounded-full",
|
|
80
|
+
style: b({
|
|
81
|
+
backgroundColor: e.environment.color
|
|
82
|
+
})
|
|
83
|
+
}, null, 4),
|
|
84
|
+
w(" " + g(l.key), 1)
|
|
85
|
+
]),
|
|
86
|
+
s("span", M, g(l.value), 1)
|
|
87
|
+
], 10, R))), 128))
|
|
88
|
+
])) : (r(), x(f(D), {
|
|
89
|
+
key: 1,
|
|
90
|
+
class: "font-code text-xxs bg-b-inherit hover:bg-b-2 flex h-8 w-full justify-start gap-2 px-1.5 transition-colors duration-150",
|
|
91
|
+
variant: "outlined",
|
|
92
|
+
onClick: C
|
|
93
|
+
}, {
|
|
94
|
+
default: y(() => [
|
|
95
|
+
T(f(F), { class: "size-3" }),
|
|
96
|
+
t[0] || (t[0] = w(" Add Variable ", -1))
|
|
97
|
+
]),
|
|
98
|
+
_: 1
|
|
99
|
+
})),
|
|
100
|
+
t[1] || (t[1] = s("div", { class: "bg-b-1 brightness-lifted absolute inset-0 -z-1 rounded shadow-lg" }, null, -1))
|
|
101
|
+
], 4)
|
|
102
|
+
]),
|
|
103
|
+
_: 1
|
|
104
|
+
})) : P("", !0);
|
|
105
|
+
}
|
|
106
|
+
});
|
|
107
|
+
export {
|
|
108
|
+
Y as default
|
|
109
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"EnvironmentVariablesTable.test.d.ts","sourceRoot":"","sources":["../../../../../src/v2/features/environments/components/EnvironmentVariablesTable.test.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import type { CollectionType, WorkspaceEventBus } from '@scalar/workspace-store/events';
|
|
2
|
+
import type { XScalarEnvironment } from '@scalar/workspace-store/schemas/extensions/document/x-scalar-environments';
|
|
3
|
+
type __VLS_Props = {
|
|
4
|
+
environment: XScalarEnvironment;
|
|
5
|
+
environmentName: string;
|
|
6
|
+
eventBus: WorkspaceEventBus;
|
|
7
|
+
} & CollectionType;
|
|
8
|
+
declare const _default: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
9
|
+
export default _default;
|
|
10
|
+
//# sourceMappingURL=EnvironmentVariablesTable.vue.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"EnvironmentVariablesTable.vue.d.ts","sourceRoot":"","sources":["../../../../../src/v2/features/environments/components/EnvironmentVariablesTable.vue"],"names":[],"mappings":"AAgMA,OAAO,KAAK,EACV,cAAc,EACd,iBAAiB,EAClB,MAAM,gCAAgC,CAAA;AACvC,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,2EAA2E,CAAA;AAWnH,KAAK,WAAW,GAAG;IACf,WAAW,EAAE,kBAAkB,CAAA;IAC/B,eAAe,EAAE,MAAM,CAAA;IACvB,QAAQ,EAAE,iBAAiB,CAAA;CAC5B,GAAG,cAAc,CAAC;;AAkVrB,wBAMG"}
|
|
@@ -0,0 +1,136 @@
|
|
|
1
|
+
import { defineComponent as h, computed as y, createBlock as s, openBlock as u, unref as a, withCtx as r, createVNode as i, createElementBlock as T, createTextVNode as v, Fragment as C, renderList as k, createCommentVNode as B } from "vue";
|
|
2
|
+
import { ScalarButton as w } from "@scalar/components";
|
|
3
|
+
import { ScalarIconTrash as I } from "@scalar/icons";
|
|
4
|
+
import R from "../../../components/data-table/DataTable.vue.js";
|
|
5
|
+
import b from "../../../components/data-table/DataTableRow.vue.js";
|
|
6
|
+
import c from "../../../components/data-table/DataTableHeader.vue.js";
|
|
7
|
+
import d from "../../../components/data-table/DataTableCell.vue.js";
|
|
8
|
+
import p from "../../../components/code-input/CodeInput.vue.js";
|
|
9
|
+
const W = /* @__PURE__ */ h({
|
|
10
|
+
__name: "EnvironmentVariablesTable",
|
|
11
|
+
props: {
|
|
12
|
+
environment: {},
|
|
13
|
+
environmentName: {},
|
|
14
|
+
eventBus: {},
|
|
15
|
+
collectionType: {}
|
|
16
|
+
},
|
|
17
|
+
setup(n) {
|
|
18
|
+
const V = ["1fr", "1fr", "36px"], N = y(() => {
|
|
19
|
+
const t = n.environment.variables.map((l) => ({
|
|
20
|
+
name: l.name,
|
|
21
|
+
value: typeof l.value == "string" ? l.value : l.value.default
|
|
22
|
+
})), e = n.environment.variables.at(-1), o = e && (e.name !== "" || e.value !== "");
|
|
23
|
+
return !e || o ? [...t, { name: "", value: "" }] : t;
|
|
24
|
+
}), f = (t, e, o) => {
|
|
25
|
+
const l = o >= n.environment.variables.length;
|
|
26
|
+
if (!(!t && l)) {
|
|
27
|
+
if (o >= n.environment.variables.length) {
|
|
28
|
+
n.eventBus.emit("environment:upsert:environment-variable", {
|
|
29
|
+
environmentName: n.environmentName,
|
|
30
|
+
variable: { name: t, value: e },
|
|
31
|
+
collectionType: n.collectionType
|
|
32
|
+
});
|
|
33
|
+
return;
|
|
34
|
+
}
|
|
35
|
+
n.eventBus.emit("environment:upsert:environment-variable", {
|
|
36
|
+
environmentName: n.environmentName,
|
|
37
|
+
variable: { name: t, value: e },
|
|
38
|
+
index: o,
|
|
39
|
+
collectionType: n.collectionType
|
|
40
|
+
});
|
|
41
|
+
}
|
|
42
|
+
}, g = (t) => n.eventBus.emit("environment:delete:environment-variable", {
|
|
43
|
+
environmentName: n.environmentName,
|
|
44
|
+
index: t,
|
|
45
|
+
collectionType: n.collectionType
|
|
46
|
+
});
|
|
47
|
+
return (t, e) => (u(), s(a(R), {
|
|
48
|
+
class: "group/table data-table h-min flex-1 rounded",
|
|
49
|
+
columns: V
|
|
50
|
+
}, {
|
|
51
|
+
default: r(() => [
|
|
52
|
+
i(a(b), { class: "sr-only !block" }, {
|
|
53
|
+
default: r(() => [
|
|
54
|
+
i(a(c), null, {
|
|
55
|
+
default: r(() => [...e[0] || (e[0] = [
|
|
56
|
+
v("Name", -1)
|
|
57
|
+
])]),
|
|
58
|
+
_: 1
|
|
59
|
+
}),
|
|
60
|
+
i(a(c), null, {
|
|
61
|
+
default: r(() => [...e[1] || (e[1] = [
|
|
62
|
+
v("Value", -1)
|
|
63
|
+
])]),
|
|
64
|
+
_: 1
|
|
65
|
+
}),
|
|
66
|
+
i(a(c), null, {
|
|
67
|
+
default: r(() => [...e[2] || (e[2] = [
|
|
68
|
+
v("Actions", -1)
|
|
69
|
+
])]),
|
|
70
|
+
_: 1
|
|
71
|
+
})
|
|
72
|
+
]),
|
|
73
|
+
_: 1
|
|
74
|
+
}),
|
|
75
|
+
(u(!0), T(C, null, k(N.value, (o, l) => (u(), s(a(b), {
|
|
76
|
+
key: l,
|
|
77
|
+
class: "group/row"
|
|
78
|
+
}, {
|
|
79
|
+
default: r(() => [
|
|
80
|
+
i(a(d), null, {
|
|
81
|
+
default: r(() => [
|
|
82
|
+
i(a(p), {
|
|
83
|
+
"aria-label": "Environment Variable Name",
|
|
84
|
+
disableCloseBrackets: "",
|
|
85
|
+
disableTabIndent: "",
|
|
86
|
+
environment: void 0,
|
|
87
|
+
lineWrapping: "",
|
|
88
|
+
modelValue: o.name,
|
|
89
|
+
placeholder: "Name",
|
|
90
|
+
"onUpdate:modelValue": (m) => f(m, o.value, l)
|
|
91
|
+
}, null, 8, ["modelValue", "onUpdate:modelValue"])
|
|
92
|
+
]),
|
|
93
|
+
_: 2
|
|
94
|
+
}, 1024),
|
|
95
|
+
i(a(d), null, {
|
|
96
|
+
default: r(() => [
|
|
97
|
+
i(a(p), {
|
|
98
|
+
"aria-label": "Environment Variable Value",
|
|
99
|
+
disableTabIndent: "",
|
|
100
|
+
environment: void 0,
|
|
101
|
+
lineWrapping: "",
|
|
102
|
+
modelValue: o.value,
|
|
103
|
+
placeholder: "Value",
|
|
104
|
+
"onUpdate:modelValue": (m) => f(o.name, m, l)
|
|
105
|
+
}, null, 8, ["modelValue", "onUpdate:modelValue"])
|
|
106
|
+
]),
|
|
107
|
+
_: 2
|
|
108
|
+
}, 1024),
|
|
109
|
+
i(a(d), { class: "flex items-center justify-center" }, {
|
|
110
|
+
default: r(() => [
|
|
111
|
+
l < t.environment.variables.length ? (u(), s(a(w), {
|
|
112
|
+
key: 0,
|
|
113
|
+
class: "text-c-2 hover:text-c-1 hover:bg-b-2 hidden h-fit rounded p-1 group-focus-within:flex group-hover/row:flex",
|
|
114
|
+
size: "sm",
|
|
115
|
+
variant: "ghost",
|
|
116
|
+
onClick: (m) => g(l)
|
|
117
|
+
}, {
|
|
118
|
+
default: r(() => [
|
|
119
|
+
i(a(I), { class: "size-3.5" })
|
|
120
|
+
]),
|
|
121
|
+
_: 1
|
|
122
|
+
}, 8, ["onClick"])) : B("", !0)
|
|
123
|
+
]),
|
|
124
|
+
_: 2
|
|
125
|
+
}, 1024)
|
|
126
|
+
]),
|
|
127
|
+
_: 2
|
|
128
|
+
}, 1024))), 128))
|
|
129
|
+
]),
|
|
130
|
+
_: 1
|
|
131
|
+
}));
|
|
132
|
+
}
|
|
133
|
+
});
|
|
134
|
+
export {
|
|
135
|
+
W as default
|
|
136
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/v2/features/environments/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,IAAI,gBAAgB,EAAE,MAAM,wBAAwB,CAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"CookiesTable.test.d.ts","sourceRoot":"","sources":["../../../../../src/v2/features/global-cookies/components/CookiesTable.test.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import type { Environment } from '@scalar/oas-utils/entities/environment';
|
|
2
|
+
import type { EnvVariable } from '../../../../store/index.js';
|
|
3
|
+
type TableRow = {
|
|
4
|
+
name: string;
|
|
5
|
+
value: string;
|
|
6
|
+
domain: string;
|
|
7
|
+
isDisabled?: boolean;
|
|
8
|
+
};
|
|
9
|
+
type __VLS_Props = {
|
|
10
|
+
data: TableRow[];
|
|
11
|
+
/** TODO: remove once we migrate */
|
|
12
|
+
environment: Environment;
|
|
13
|
+
envVariables: EnvVariable[];
|
|
14
|
+
};
|
|
15
|
+
declare const _default: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {} & {
|
|
16
|
+
updateRow: (index: number, payload: Partial<TableRow>) => any;
|
|
17
|
+
addRow: (payload: Partial<TableRow>) => any;
|
|
18
|
+
deleteRow: (index: number) => any;
|
|
19
|
+
}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{
|
|
20
|
+
onUpdateRow?: ((index: number, payload: Partial<TableRow>) => any) | undefined;
|
|
21
|
+
onAddRow?: ((payload: Partial<TableRow>) => any) | undefined;
|
|
22
|
+
onDeleteRow?: ((index: number) => any) | undefined;
|
|
23
|
+
}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
24
|
+
export default _default;
|
|
25
|
+
//# sourceMappingURL=CookiesTable.vue.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"CookiesTable.vue.d.ts","sourceRoot":"","sources":["../../../../../src/v2/features/global-cookies/components/CookiesTable.vue"],"names":[],"mappings":"AAwJA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,wCAAwC,CAAA;AAWzE,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,SAAS,CAAA;AAE1C,KAAK,QAAQ,GAAG;IACd,IAAI,EAAE,MAAM,CAAA;IACZ,KAAK,EAAE,MAAM,CAAA;IACb,MAAM,EAAE,MAAM,CAAA;IACd,UAAU,CAAC,EAAE,OAAO,CAAA;CACrB,CAAA;AAED,KAAK,WAAW,GAAG;IACjB,IAAI,EAAE,QAAQ,EAAE,CAAA;IAEhB,mCAAmC;IACnC,WAAW,EAAE,WAAW,CAAA;IACxB,YAAY,EAAE,WAAW,EAAE,CAAA;CAC5B,CAAC;;;;;;;;;;AA6XF,wBAOG"}
|
|
@@ -0,0 +1,156 @@
|
|
|
1
|
+
import { defineComponent as w, computed as D, createBlock as v, openBlock as f, unref as e, withCtx as o, createVNode as a, createElementBlock as U, createTextVNode as d, Fragment as x, renderList as y } from "vue";
|
|
2
|
+
import { ScalarButton as R } from "@scalar/components";
|
|
3
|
+
import { ScalarIconTrash as T } from "@scalar/icons";
|
|
4
|
+
import B from "../../../../components/DataTable/DataTable.vue.js";
|
|
5
|
+
import c from "../../../../components/DataTable/DataTableRow.vue.js";
|
|
6
|
+
import i from "../../../../components/DataTable/DataTableHeader.vue.js";
|
|
7
|
+
import $ from "../../../../components/DataTable/DataTableCheckbox.vue.js";
|
|
8
|
+
import p from "../../../../components/DataTable/DataTableCell.vue.js";
|
|
9
|
+
import b from "../../../../components/CodeInput/CodeInput.vue.js";
|
|
10
|
+
const j = /* @__PURE__ */ w({
|
|
11
|
+
__name: "CookiesTable",
|
|
12
|
+
props: {
|
|
13
|
+
data: {},
|
|
14
|
+
environment: {},
|
|
15
|
+
envVariables: {}
|
|
16
|
+
},
|
|
17
|
+
emits: ["addRow", "updateRow", "deleteRow"],
|
|
18
|
+
setup(m, { emit: C }) {
|
|
19
|
+
const V = C, g = D(() => {
|
|
20
|
+
const l = m.data.at(-1);
|
|
21
|
+
return !l || l.name !== "" || l.value !== "" || l.domain !== "" ? [...m.data, { name: "", value: "", domain: "", isDisabled: !0 }] : m.data;
|
|
22
|
+
}), u = ({
|
|
23
|
+
index: l,
|
|
24
|
+
payload: n
|
|
25
|
+
}) => {
|
|
26
|
+
if (l >= m.data.length) {
|
|
27
|
+
V("addRow", n);
|
|
28
|
+
return;
|
|
29
|
+
}
|
|
30
|
+
V("updateRow", l, n);
|
|
31
|
+
}, k = ["32px", "1fr", "1fr", "1fr", "36px"];
|
|
32
|
+
return (l, n) => (f(), v(e(B), {
|
|
33
|
+
class: "group/table data-table h-min flex-1 rounded border",
|
|
34
|
+
columns: k
|
|
35
|
+
}, {
|
|
36
|
+
default: o(() => [
|
|
37
|
+
a(e(c), { class: "sr-only !block" }, {
|
|
38
|
+
default: o(() => [
|
|
39
|
+
a(e(i), null, {
|
|
40
|
+
default: o(() => [...n[0] || (n[0] = [
|
|
41
|
+
d("Enabled", -1)
|
|
42
|
+
])]),
|
|
43
|
+
_: 1
|
|
44
|
+
}),
|
|
45
|
+
a(e(i), null, {
|
|
46
|
+
default: o(() => [...n[1] || (n[1] = [
|
|
47
|
+
d("Name", -1)
|
|
48
|
+
])]),
|
|
49
|
+
_: 1
|
|
50
|
+
}),
|
|
51
|
+
a(e(i), null, {
|
|
52
|
+
default: o(() => [...n[2] || (n[2] = [
|
|
53
|
+
d("Value", -1)
|
|
54
|
+
])]),
|
|
55
|
+
_: 1
|
|
56
|
+
}),
|
|
57
|
+
a(e(i), null, {
|
|
58
|
+
default: o(() => [...n[3] || (n[3] = [
|
|
59
|
+
d("Domain", -1)
|
|
60
|
+
])]),
|
|
61
|
+
_: 1
|
|
62
|
+
}),
|
|
63
|
+
a(e(i), null, {
|
|
64
|
+
default: o(() => [...n[4] || (n[4] = [
|
|
65
|
+
d("Actions", -1)
|
|
66
|
+
])]),
|
|
67
|
+
_: 1
|
|
68
|
+
})
|
|
69
|
+
]),
|
|
70
|
+
_: 1
|
|
71
|
+
}),
|
|
72
|
+
(f(!0), U(x, null, y(g.value, (s, r) => (f(), v(e(c), {
|
|
73
|
+
id: r,
|
|
74
|
+
key: r,
|
|
75
|
+
class: "group/row"
|
|
76
|
+
}, {
|
|
77
|
+
default: o(() => [
|
|
78
|
+
a(e($), {
|
|
79
|
+
class: "!border-r",
|
|
80
|
+
modelValue: !s.isDisabled,
|
|
81
|
+
"onUpdate:modelValue": (t) => u({ index: r, payload: { isDisabled: !t } })
|
|
82
|
+
}, null, 8, ["modelValue", "onUpdate:modelValue"]),
|
|
83
|
+
a(e(p), null, {
|
|
84
|
+
default: o(() => [
|
|
85
|
+
a(e(b), {
|
|
86
|
+
"aria-label": "Cookie Name",
|
|
87
|
+
disableCloseBrackets: "",
|
|
88
|
+
disableTabIndent: "",
|
|
89
|
+
envVariables: l.envVariables,
|
|
90
|
+
environment: l.environment,
|
|
91
|
+
lineWrapping: "",
|
|
92
|
+
modelValue: s.name,
|
|
93
|
+
placeholder: "Name",
|
|
94
|
+
"onUpdate:modelValue": (t) => u({ index: r, payload: { name: t } })
|
|
95
|
+
}, null, 8, ["envVariables", "environment", "modelValue", "onUpdate:modelValue"])
|
|
96
|
+
]),
|
|
97
|
+
_: 2
|
|
98
|
+
}, 1024),
|
|
99
|
+
a(e(p), null, {
|
|
100
|
+
default: o(() => [
|
|
101
|
+
a(e(b), {
|
|
102
|
+
"aria-label": "Cookie Value",
|
|
103
|
+
disableTabIndent: "",
|
|
104
|
+
envVariables: l.envVariables,
|
|
105
|
+
environment: l.environment,
|
|
106
|
+
lineWrapping: "",
|
|
107
|
+
modelValue: s.value,
|
|
108
|
+
placeholder: "Value",
|
|
109
|
+
"onUpdate:modelValue": (t) => u({ index: r, payload: { value: t } })
|
|
110
|
+
}, null, 8, ["envVariables", "environment", "modelValue", "onUpdate:modelValue"])
|
|
111
|
+
]),
|
|
112
|
+
_: 2
|
|
113
|
+
}, 1024),
|
|
114
|
+
a(e(p), null, {
|
|
115
|
+
default: o(() => [
|
|
116
|
+
a(e(b), {
|
|
117
|
+
"aria-label": "Cookie Domain",
|
|
118
|
+
disableCloseBrackets: "",
|
|
119
|
+
disableTabIndent: "",
|
|
120
|
+
envVariables: l.envVariables,
|
|
121
|
+
environment: l.environment,
|
|
122
|
+
lineWrapping: "",
|
|
123
|
+
modelValue: s.domain,
|
|
124
|
+
placeholder: "Domain",
|
|
125
|
+
"onUpdate:modelValue": (t) => u({ index: r, payload: { domain: t } })
|
|
126
|
+
}, null, 8, ["envVariables", "environment", "modelValue", "onUpdate:modelValue"])
|
|
127
|
+
]),
|
|
128
|
+
_: 2
|
|
129
|
+
}, 1024),
|
|
130
|
+
a(e(p), { class: "flex items-center justify-center" }, {
|
|
131
|
+
default: o(() => [
|
|
132
|
+
a(e(R), {
|
|
133
|
+
class: "text-c-2 hover:text-c-1 hover:bg-b-2 hidden h-fit rounded p-1 group-hover/row:flex",
|
|
134
|
+
size: "sm",
|
|
135
|
+
variant: "ghost",
|
|
136
|
+
onClick: (t) => l.$emit("deleteRow", r)
|
|
137
|
+
}, {
|
|
138
|
+
default: o(() => [
|
|
139
|
+
a(e(T), { class: "size-3.5" })
|
|
140
|
+
]),
|
|
141
|
+
_: 1
|
|
142
|
+
}, 8, ["onClick"])
|
|
143
|
+
]),
|
|
144
|
+
_: 2
|
|
145
|
+
}, 1024)
|
|
146
|
+
]),
|
|
147
|
+
_: 2
|
|
148
|
+
}, 1032, ["id"]))), 128))
|
|
149
|
+
]),
|
|
150
|
+
_: 1
|
|
151
|
+
}));
|
|
152
|
+
}
|
|
153
|
+
});
|
|
154
|
+
export {
|
|
155
|
+
j as default
|
|
156
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"GlobalCookies.test.d.ts","sourceRoot":"","sources":["../../../../../src/v2/features/global-cookies/components/GlobalCookies.test.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import type { Environment } from '@scalar/oas-utils/entities/environment';
|
|
2
|
+
import type { EnvVariable } from '../../../../store/index.js';
|
|
3
|
+
type Cookie = {
|
|
4
|
+
name: string;
|
|
5
|
+
value: string;
|
|
6
|
+
domain: string;
|
|
7
|
+
isDisabled?: boolean;
|
|
8
|
+
};
|
|
9
|
+
type __VLS_Props = {
|
|
10
|
+
/** Current selected document name or when null it means workspace level cookies */
|
|
11
|
+
documentName: string | null;
|
|
12
|
+
/** List of all cookies for the current document or workspace */
|
|
13
|
+
cookies: Cookie[];
|
|
14
|
+
/** TODO: remove when we migrate to the new store */
|
|
15
|
+
environment: Environment;
|
|
16
|
+
envVariables: EnvVariable[];
|
|
17
|
+
};
|
|
18
|
+
declare const _default: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {} & {
|
|
19
|
+
"navigation:update:selection": (value: string | null) => any;
|
|
20
|
+
"navigation:update:sidebarWidth": (value: number) => any;
|
|
21
|
+
"cookie:add": (payload: Partial<Cookie>) => any;
|
|
22
|
+
"cookie:update": (index: number, payload: Partial<Cookie>) => any;
|
|
23
|
+
"cookie:delete": (index: number) => any;
|
|
24
|
+
}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{
|
|
25
|
+
"onNavigation:update:selection"?: ((value: string | null) => any) | undefined;
|
|
26
|
+
"onNavigation:update:sidebarWidth"?: ((value: number) => any) | undefined;
|
|
27
|
+
"onCookie:add"?: ((payload: Partial<Cookie>) => any) | undefined;
|
|
28
|
+
"onCookie:update"?: ((index: number, payload: Partial<Cookie>) => any) | undefined;
|
|
29
|
+
"onCookie:delete"?: ((index: number) => any) | undefined;
|
|
30
|
+
}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
31
|
+
export default _default;
|
|
32
|
+
//# sourceMappingURL=GlobalCookies.vue.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"GlobalCookies.vue.d.ts","sourceRoot":"","sources":["../../../../../src/v2/features/global-cookies/components/GlobalCookies.vue"],"names":[],"mappings":"AAmGA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,wCAAwC,CAAA;AAKzE,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,SAAS,CAAA;AAG1C,KAAK,MAAM,GAAG;IACZ,IAAI,EAAE,MAAM,CAAA;IACZ,KAAK,EAAE,MAAM,CAAA;IACb,MAAM,EAAE,MAAM,CAAA;IACd,UAAU,CAAC,EAAE,OAAO,CAAA;CACrB,CAAA;AAED,KAAK,WAAW,GAAG;IACjB,mFAAmF;IACnF,YAAY,EAAE,MAAM,GAAG,IAAI,CAAA;IAC3B,gEAAgE;IAChE,OAAO,EAAE,MAAM,EAAE,CAAA;IAEjB,oDAAoD;IACpD,WAAW,EAAE,WAAW,CAAA;IACxB,YAAY,EAAE,WAAW,EAAE,CAAA;CAC5B,CAAC;;;;;;;;;;;;;;AAiKF,wBAOG"}
|