@scalar/api-client 2.8.0 → 2.9.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +90 -0
- package/dist/components/AddressBar/AddressBarHistory.vue2.js +9 -10
- package/dist/components/CodeInput/CodeInput.vue2.js +5 -5
- package/dist/components/CommandPalette/CommandActionForm.vue.d.ts.map +1 -1
- package/dist/components/CommandPalette/CommandActionForm.vue.js +2 -2
- package/dist/components/CommandPalette/CommandPaletteCollection.vue.js +3 -3
- package/dist/components/CommandPalette/CommandPaletteExample.vue.js +3 -3
- package/dist/components/CommandPalette/CommandPaletteImport.vue.js +18 -20
- package/dist/components/CommandPalette/CommandPaletteImportCurl.vue.js +2 -2
- package/dist/components/CommandPalette/CommandPaletteImportCurl.vue2.js +1 -1
- package/dist/components/CommandPalette/CommandPaletteServer.vue.js +13 -14
- package/dist/components/CommandPalette/CommandPaletteTag.vue.js +3 -3
- package/dist/components/CommandPalette/CommandPaletteWorkspace.vue.js +3 -3
- package/dist/components/CommandPalette/TheCommandPalette.vue.d.ts +4 -4
- package/dist/components/CommandPalette/TheCommandPalette.vue2.js +22 -24
- package/dist/components/CommandPalette/WatchModeToggle.vue.js +1 -1
- package/dist/components/DataTable/DataTableInput.vue2.js +1 -1
- package/dist/components/DataTable/DataTableInputSelect.vue.js +8 -9
- package/dist/components/EnvironmentSelector/EnvironmentSelector.vue.js +8 -10
- package/dist/components/HttpMethod/HttpMethod.vue.d.ts +2 -2
- package/dist/components/IconSelector.vue.js +1 -1
- package/dist/components/ImportCollection/DropEventListener.vue.js +12 -12
- package/dist/components/ImportCollection/ImportCollectionListener.vue.js +8 -8
- package/dist/components/ImportCollection/ImportCollectionModal.vue.js +1 -1
- package/dist/components/ImportCollection/ImportNowButton.vue.js +14 -16
- package/dist/components/ImportCollection/PasteEventListener.vue.js +1 -1
- package/dist/components/ImportCollection/PrefetchError.vue.js +2 -2
- package/dist/components/ImportCollection/WorkspaceSelector.vue.js +5 -7
- package/dist/components/ImportCollection/hooks/useUrlPrefetcher.d.ts +1 -1
- package/dist/components/ImportCollection/hooks/useUrlPrefetcher.d.ts.map +1 -1
- package/dist/components/ImportCollection/hooks/useUrlPrefetcher.js +3 -3
- package/dist/components/OpenApiClientButton.vue2.js +1 -1
- package/dist/components/Server/ServerSelector.vue.js +1 -2
- package/dist/components/SideNav/SideHelp.vue.js +13 -19
- package/dist/components/SideNav/SideNav.vue.js +4 -5
- package/dist/components/Sidebar/Actions/SidebarListElementForm.vue2.js +4 -5
- package/dist/components/Sidebar/Sidebar.vue.d.ts.map +1 -1
- package/dist/components/Sidebar/Sidebar.vue.js +2 -2
- package/dist/components/Sidebar/Sidebar.vue2.js +1 -1
- package/dist/components/TopNav/TopNav.vue.js +8 -10
- package/dist/components/TopNav/TopNavItem.vue2.js +8 -12
- package/dist/hooks/index.d.ts +0 -1
- package/dist/hooks/index.d.ts.map +1 -1
- package/dist/hooks/index.js +9 -11
- package/dist/hooks/useClientConfig.d.ts +9 -6
- package/dist/hooks/useClientConfig.d.ts.map +1 -1
- package/dist/index.d.ts +1 -2
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +8 -15
- package/dist/layouts/App/create-api-client-app.d.ts +3644 -3643
- package/dist/layouts/App/create-api-client-app.d.ts.map +1 -1
- package/dist/layouts/App/create-api-client-app.js +24 -18
- package/dist/layouts/Modal/create-api-client-modal.d.ts +5 -8089
- package/dist/layouts/Modal/create-api-client-modal.d.ts.map +1 -1
- package/dist/layouts/Modal/create-api-client-modal.js +28 -46
- package/dist/layouts/Modal/index.d.ts +2 -2
- package/dist/layouts/Modal/index.d.ts.map +1 -1
- package/dist/layouts/Modal/index.js +2 -5
- package/dist/layouts/Web/create-api-client-web.d.ts +20 -20
- package/dist/layouts/Web/create-api-client-web.d.ts.map +1 -1
- package/dist/layouts/Web/create-api-client-web.js +15 -12
- package/dist/libs/create-client.d.ts +25 -25
- package/dist/libs/create-client.d.ts.map +1 -1
- package/dist/libs/create-client.js +23 -23
- package/dist/libs/find-request.d.ts +2 -2
- package/dist/libs/postman.d.ts +1 -1
- package/dist/libs/postman.d.ts.map +1 -1
- package/dist/libs/postman.js +12 -12
- package/dist/libs/send-request/create-request-operation.js +8 -8
- package/dist/libs/send-request/create-request-operation.test.d.ts +2 -2
- package/dist/libs/validate-parameters.d.ts +10 -2
- package/dist/libs/validate-parameters.d.ts.map +1 -1
- package/dist/libs/validate-parameters.js +13 -6
- package/dist/plugins/plugin-manager.d.ts +1 -1
- package/dist/routes.d.ts +3 -184
- package/dist/routes.d.ts.map +1 -1
- package/dist/routes.js +6 -6
- package/dist/store/active-entities.d.ts +3 -3
- package/dist/store/active-entities.d.ts.map +1 -1
- package/dist/store/active-entities.js +2 -2
- package/dist/store/requests.d.ts +22 -22
- package/dist/store/router-params.d.ts.map +1 -1
- package/dist/store/store.d.ts +20 -20
- package/dist/style.css +1 -1
- package/dist/v2/blocks/operation-code-sample/components/OperationCodeSample.vue.js +2 -2
- package/dist/v2/blocks/operation-code-sample/components/OperationCodeSample.vue2.js +1 -1
- package/dist/v2/blocks/operation-code-sample/index.d.ts +1 -0
- package/dist/v2/blocks/operation-code-sample/index.d.ts.map +1 -1
- package/dist/v2/blocks/operation-code-sample/index.js +8 -6
- package/dist/v2/blocks/scalar-address-bar-block/components/AddressBar.vue.d.ts +5 -5
- package/dist/v2/blocks/scalar-address-bar-block/components/AddressBar.vue.d.ts.map +1 -1
- package/dist/v2/blocks/scalar-address-bar-block/components/AddressBar.vue.js +2 -2
- package/dist/v2/blocks/scalar-address-bar-block/components/AddressBar.vue2.js +3 -3
- package/dist/v2/blocks/scalar-address-bar-block/components/AddressBarHistory.vue2.js +3 -4
- package/dist/v2/blocks/scalar-address-bar-block/index.d.ts +1 -0
- package/dist/v2/blocks/scalar-address-bar-block/index.d.ts.map +1 -1
- package/dist/v2/blocks/scalar-auth-selector-block/components/AuthSelector.vue2.js +2 -2
- package/dist/v2/blocks/scalar-auth-selector-block/components/DeleteRequestAuthModal.vue.js +7 -8
- package/dist/v2/blocks/scalar-auth-selector-block/components/OAuth2.vue.js +44 -55
- package/dist/v2/blocks/scalar-auth-selector-block/components/OAuthScopesInput.vue.js +16 -18
- package/dist/v2/blocks/scalar-auth-selector-block/components/RequestAuthTab.vue.js +41 -46
- package/dist/v2/blocks/scalar-auth-selector-block/helpers/oauth.d.ts.map +1 -1
- package/dist/v2/blocks/scalar-operation-block/components/OperationBlock.vue.d.ts +3 -0
- package/dist/v2/blocks/scalar-operation-block/components/OperationBlock.vue.d.ts.map +1 -1
- package/dist/v2/blocks/scalar-operation-block/components/OperationBlock.vue.js +2 -2
- package/dist/v2/blocks/scalar-operation-block/components/OperationBlock.vue2.js +201 -187
- package/dist/v2/blocks/scalar-operation-block/components/OperationBody.vue.js +2 -2
- package/dist/v2/blocks/scalar-operation-block/components/OperationBody.vue2.js +8 -10
- package/dist/v2/blocks/scalar-operation-block/components/OperationParams.vue.js +2 -3
- package/dist/v2/blocks/scalar-operation-block/components/OperationTableRow.vue.js +2 -4
- package/dist/v2/blocks/scalar-response-block/components/Headers.vue.js +14 -16
- package/dist/v2/blocks/scalar-response-block/components/ResponseBlock.vue.d.ts +3 -0
- package/dist/v2/blocks/scalar-response-block/components/ResponseBlock.vue.d.ts.map +1 -1
- package/dist/v2/blocks/scalar-response-block/components/ResponseBlock.vue.js +3 -3
- package/dist/v2/blocks/scalar-response-block/components/ResponseBlock.vue2.js +87 -85
- package/dist/v2/blocks/scalar-response-block/components/ResponseBody.vue2.js +10 -11
- package/dist/v2/blocks/scalar-response-block/components/ResponseBodyPreview.vue2.js +4 -5
- package/dist/v2/blocks/scalar-response-block/components/ResponseBodyVirtual.vue.js +1 -1
- package/dist/v2/blocks/scalar-response-block/components/ResponseCookies.vue.js +3 -3
- package/dist/v2/blocks/scalar-response-block/components/ResponseEmpty.vue.js +1 -1
- package/dist/v2/blocks/scalar-response-block/components/ResponseEmpty.vue2.js +5 -5
- package/dist/v2/blocks/scalar-response-block/components/ResponseLoadingOverlay.vue2.js +9 -10
- package/dist/v2/components/TempReplaceMe.vue.d.ts +3 -0
- package/dist/v2/components/TempReplaceMe.vue.d.ts.map +1 -0
- package/dist/v2/components/TempReplaceMe.vue.js +12 -0
- package/dist/v2/components/resize/Resize.vue.d.ts +20 -0
- package/dist/v2/components/resize/Resize.vue.d.ts.map +1 -0
- package/dist/v2/components/resize/Resize.vue.js +8 -0
- package/dist/v2/components/resize/Resize.vue2.js +36 -0
- package/dist/v2/components/resize/index.d.ts +3 -0
- package/dist/v2/components/resize/index.d.ts.map +1 -0
- package/dist/v2/components/resize/index.js +4 -0
- package/dist/v2/components/sidebar/Sidebar.vue.d.ts +39 -0
- package/dist/v2/components/sidebar/Sidebar.vue.d.ts.map +1 -0
- package/dist/v2/components/sidebar/Sidebar.vue.js +95 -0
- package/dist/v2/components/sidebar/Sidebar.vue2.js +4 -0
- package/dist/v2/components/sidebar/SidebarMenu.vue.d.ts +13 -0
- package/dist/v2/components/sidebar/SidebarMenu.vue.d.ts.map +1 -0
- package/dist/v2/components/sidebar/SidebarMenu.vue.js +63 -0
- package/dist/v2/components/sidebar/SidebarMenu.vue2.js +4 -0
- package/dist/v2/components/sidebar/SidebarToggle.vue.d.ts +10 -0
- package/dist/v2/components/sidebar/SidebarToggle.vue.d.ts.map +1 -0
- package/dist/v2/components/sidebar/SidebarToggle.vue.js +52 -0
- package/dist/v2/components/sidebar/SidebarToggle.vue2.js +4 -0
- package/dist/v2/components/sidebar/index.d.ts +4 -0
- package/dist/v2/components/sidebar/index.d.ts.map +1 -0
- package/dist/v2/components/sidebar/index.js +8 -0
- package/dist/v2/features/app/App.vue.d.ts +16 -0
- package/dist/v2/features/app/App.vue.d.ts.map +1 -0
- package/dist/v2/features/app/App.vue.js +72 -0
- package/dist/v2/features/app/App.vue3.js +5 -0
- package/dist/v2/features/app/components/AppSidebar.vue.d.ts +30 -0
- package/dist/v2/features/app/components/AppSidebar.vue.d.ts.map +1 -0
- package/dist/v2/features/app/components/AppSidebar.vue.js +7 -0
- package/dist/v2/features/app/components/AppSidebar.vue2.js +117 -0
- package/dist/v2/features/app/components/DesktopTabs.vue.d.ts +3 -0
- package/dist/v2/features/app/components/DesktopTabs.vue.d.ts.map +1 -0
- package/dist/v2/features/app/components/DesktopTabs.vue.js +14 -0
- package/dist/v2/features/app/components/DownloadAppButton.vue.d.ts +3 -0
- package/dist/v2/features/app/components/DownloadAppButton.vue.d.ts.map +1 -0
- package/dist/v2/features/app/components/DownloadAppButton.vue.js +7 -0
- package/dist/v2/features/app/components/DownloadAppButton.vue2.js +19 -0
- package/dist/v2/features/app/components/WebTopNav.vue.d.ts +16 -0
- package/dist/v2/features/app/components/WebTopNav.vue.d.ts.map +1 -0
- package/dist/v2/features/app/components/WebTopNav.vue.js +28 -0
- package/dist/v2/features/app/components/WebTopNav.vue2.js +4 -0
- package/dist/v2/features/app/components/index.d.ts +2 -0
- package/dist/v2/features/app/components/index.d.ts.map +1 -0
- package/dist/v2/features/app/components/index.js +5 -0
- package/dist/v2/features/app/helpers/create-api-client-app.d.ts +25 -0
- package/dist/v2/features/app/helpers/create-api-client-app.d.ts.map +1 -0
- package/dist/v2/features/app/helpers/create-api-client-app.js +21 -0
- package/dist/v2/features/app/helpers/routes.d.ts +103 -0
- package/dist/v2/features/app/helpers/routes.d.ts.map +1 -0
- package/dist/v2/features/app/helpers/routes.js +115 -0
- package/dist/v2/features/app/index.d.ts +2 -0
- package/dist/v2/features/app/index.d.ts.map +1 -0
- package/dist/v2/features/app/index.js +4 -0
- package/dist/v2/features/collection/DocumentCollection.test.d.ts +2 -0
- package/dist/v2/features/collection/DocumentCollection.test.d.ts.map +1 -0
- package/dist/v2/features/collection/DocumentCollection.vue.d.ts +12 -0
- package/dist/v2/features/collection/DocumentCollection.vue.d.ts.map +1 -0
- package/dist/v2/features/collection/DocumentCollection.vue.js +4 -0
- package/dist/v2/features/collection/DocumentCollection.vue2.js +82 -0
- package/dist/v2/features/collection/WorkspaceCollection.test.d.ts +2 -0
- package/dist/v2/features/collection/WorkspaceCollection.test.d.ts.map +1 -0
- package/dist/v2/features/collection/WorkspaceCollection.vue.d.ts +10 -0
- package/dist/v2/features/collection/WorkspaceCollection.vue.d.ts.map +1 -0
- package/dist/v2/features/collection/WorkspaceCollection.vue.js +4 -0
- package/dist/v2/features/collection/WorkspaceCollection.vue2.js +38 -0
- package/dist/v2/features/collection/components/Authentication.test.d.ts +2 -0
- package/dist/v2/features/collection/components/Authentication.test.d.ts.map +1 -0
- package/dist/v2/features/collection/components/Authentication.vue.d.ts +48 -0
- package/dist/v2/features/collection/components/Authentication.vue.d.ts.map +1 -0
- package/dist/v2/features/collection/components/Authentication.vue.js +7 -0
- package/dist/v2/features/collection/components/Authentication.vue2.js +50 -0
- package/dist/v2/features/collection/components/Cookies.vue.d.ts +3 -0
- package/dist/v2/features/collection/components/Cookies.vue.d.ts.map +1 -0
- package/dist/v2/features/collection/components/Cookies.vue.js +9 -0
- package/dist/v2/features/collection/components/Environment.test.d.ts +2 -0
- package/dist/v2/features/collection/components/Environment.test.d.ts.map +1 -0
- package/dist/v2/features/collection/components/Environment.vue.d.ts +89 -0
- package/dist/v2/features/collection/components/Environment.vue.d.ts.map +1 -0
- package/dist/v2/features/collection/components/Environment.vue.js +4 -0
- package/dist/v2/features/collection/components/Environment.vue2.js +34 -0
- package/dist/v2/features/collection/components/Form.vue.d.ts +29 -0
- package/dist/v2/features/collection/components/Form.vue.d.ts.map +1 -0
- package/dist/v2/features/collection/components/Form.vue.js +83 -0
- package/dist/v2/features/collection/components/Form.vue2.js +4 -0
- package/dist/v2/features/collection/components/LabelInput.test.d.ts +2 -0
- package/dist/v2/features/collection/components/LabelInput.test.d.ts.map +1 -0
- package/dist/v2/features/collection/components/LabelInput.vue.d.ts +10 -0
- package/dist/v2/features/collection/components/LabelInput.vue.d.ts.map +1 -0
- package/dist/v2/features/collection/components/LabelInput.vue.js +7 -0
- package/dist/v2/features/collection/components/LabelInput.vue2.js +29 -0
- package/dist/v2/features/collection/components/Overview.test.d.ts +2 -0
- package/dist/v2/features/collection/components/Overview.test.d.ts.map +1 -0
- package/dist/v2/features/collection/components/Overview.vue.d.ts +14 -0
- package/dist/v2/features/collection/components/Overview.vue.d.ts.map +1 -0
- package/dist/v2/features/collection/components/Overview.vue.js +4 -0
- package/dist/v2/features/collection/components/Overview.vue2.js +91 -0
- package/dist/v2/features/collection/components/Servers.test.d.ts +2 -0
- package/dist/v2/features/collection/components/Servers.test.d.ts.map +1 -0
- package/dist/v2/features/collection/components/Servers.vue.d.ts +33 -0
- package/dist/v2/features/collection/components/Servers.vue.d.ts.map +1 -0
- package/dist/v2/features/collection/components/Servers.vue.js +4 -0
- package/dist/v2/features/collection/components/Servers.vue2.js +120 -0
- package/dist/v2/features/collection/components/Settings.test.d.ts +2 -0
- package/dist/v2/features/collection/components/Settings.test.d.ts.map +1 -0
- package/dist/v2/features/collection/components/Settings.vue.d.ts +17 -0
- package/dist/v2/features/collection/components/Settings.vue.d.ts.map +1 -0
- package/dist/v2/features/collection/components/Settings.vue.js +7 -0
- package/dist/v2/features/collection/components/Settings.vue2.js +100 -0
- package/dist/v2/features/collection/components/Tabs.test.d.ts +2 -0
- package/dist/v2/features/collection/components/Tabs.test.d.ts.map +1 -0
- package/dist/v2/features/collection/components/Tabs.vue.d.ts +6 -0
- package/dist/v2/features/collection/components/Tabs.vue.d.ts.map +1 -0
- package/dist/v2/features/collection/components/Tabs.vue.js +46 -0
- package/dist/v2/features/collection/components/Tabs.vue2.js +4 -0
- package/dist/v2/features/environments/Environments.test.d.ts +2 -0
- package/dist/v2/features/environments/Environments.test.d.ts.map +1 -0
- package/dist/v2/features/environments/Environments.vue.d.ts +31 -0
- package/dist/v2/features/environments/Environments.vue.d.ts.map +1 -0
- package/dist/v2/features/environments/Environments.vue.js +65 -0
- package/dist/v2/features/environments/Environments.vue2.js +4 -0
- package/dist/v2/features/environments/EnvironmentsList.test.d.ts +2 -0
- package/dist/v2/features/environments/EnvironmentsList.test.d.ts.map +1 -0
- package/dist/v2/features/environments/EnvironmentsList.vue.d.ts +98 -0
- package/dist/v2/features/environments/EnvironmentsList.vue.d.ts.map +1 -0
- package/dist/v2/features/environments/EnvironmentsList.vue.js +114 -0
- package/dist/v2/features/environments/EnvironmentsList.vue2.js +4 -0
- package/dist/v2/features/environments/components/Environment.test.d.ts +2 -0
- package/dist/v2/features/environments/components/Environment.test.d.ts.map +1 -0
- package/dist/v2/features/environments/components/Environment.vue.d.ts +70 -0
- package/dist/v2/features/environments/components/Environment.vue.d.ts.map +1 -0
- package/dist/v2/features/environments/components/Environment.vue.js +104 -0
- package/dist/v2/features/environments/components/Environment.vue2.js +4 -0
- package/dist/v2/features/environments/components/EnvironmentColorUpdateModal.vue.d.ts +20 -0
- package/dist/v2/features/environments/components/EnvironmentColorUpdateModal.vue.d.ts.map +1 -0
- package/dist/v2/features/environments/components/EnvironmentColorUpdateModal.vue.js +48 -0
- package/dist/v2/features/environments/components/EnvironmentColorUpdateModal.vue2.js +4 -0
- package/dist/v2/features/environments/components/EnvironmentColors.test.d.ts +2 -0
- package/dist/v2/features/environments/components/EnvironmentColors.test.d.ts.map +1 -0
- package/dist/v2/features/environments/components/EnvironmentColors.vue.d.ts +10 -0
- package/dist/v2/features/environments/components/EnvironmentColors.vue.d.ts.map +1 -0
- package/dist/v2/features/environments/components/EnvironmentColors.vue.js +97 -0
- package/dist/v2/features/environments/components/EnvironmentColors.vue2.js +4 -0
- package/dist/v2/features/environments/components/EnvironmentCreateModal.vue.d.ts +19 -0
- package/dist/v2/features/environments/components/EnvironmentCreateModal.vue.d.ts.map +1 -0
- package/dist/v2/features/environments/components/EnvironmentCreateModal.vue.js +63 -0
- package/dist/v2/features/environments/components/EnvironmentCreateModal.vue2.js +4 -0
- package/dist/v2/features/environments/components/EnvironmentDeleteModal.vue.d.ts +14 -0
- package/dist/v2/features/environments/components/EnvironmentDeleteModal.vue.d.ts.map +1 -0
- package/dist/v2/features/environments/components/EnvironmentDeleteModal.vue.js +53 -0
- package/dist/v2/features/environments/components/EnvironmentDeleteModal.vue2.js +4 -0
- package/dist/v2/features/environments/components/EnvironmentNameUpdateModal.vue.d.ts +18 -0
- package/dist/v2/features/environments/components/EnvironmentNameUpdateModal.vue.d.ts.map +1 -0
- package/dist/v2/features/environments/components/EnvironmentNameUpdateModal.vue.js +35 -0
- package/dist/v2/features/environments/components/EnvironmentNameUpdateModal.vue2.js +4 -0
- package/dist/v2/features/environments/components/EnvironmentVariablesTable.test.d.ts +2 -0
- package/dist/v2/features/environments/components/EnvironmentVariablesTable.test.d.ts.map +1 -0
- package/dist/v2/features/environments/components/EnvironmentVariablesTable.vue.d.ts +23 -0
- package/dist/v2/features/environments/components/EnvironmentVariablesTable.vue.d.ts.map +1 -0
- package/dist/v2/features/environments/components/EnvironmentVariablesTable.vue.js +7 -0
- package/dist/v2/features/environments/components/EnvironmentVariablesTable.vue2.js +122 -0
- package/dist/v2/features/environments/index.d.ts +5 -0
- package/dist/v2/features/environments/index.d.ts.map +1 -0
- package/dist/v2/features/environments/index.js +6 -0
- package/dist/v2/features/global-cookies/components/CookiesTable.test.d.ts +2 -0
- package/dist/v2/features/global-cookies/components/CookiesTable.test.d.ts.map +1 -0
- package/dist/v2/features/global-cookies/components/CookiesTable.vue.d.ts +25 -0
- package/dist/v2/features/global-cookies/components/CookiesTable.vue.d.ts.map +1 -0
- package/dist/v2/features/global-cookies/components/CookiesTable.vue.js +7 -0
- package/dist/v2/features/global-cookies/components/CookiesTable.vue2.js +156 -0
- package/dist/v2/features/global-cookies/components/GlobalCookies.test.d.ts +2 -0
- package/dist/v2/features/global-cookies/components/GlobalCookies.test.d.ts.map +1 -0
- package/dist/v2/features/global-cookies/components/GlobalCookies.vue.d.ts +32 -0
- package/dist/v2/features/global-cookies/components/GlobalCookies.vue.d.ts.map +1 -0
- package/dist/v2/features/global-cookies/components/GlobalCookies.vue.js +7 -0
- package/dist/v2/features/global-cookies/components/GlobalCookies.vue2.js +58 -0
- package/dist/v2/features/global-cookies/index.d.ts +2 -0
- package/dist/v2/features/global-cookies/index.d.ts.map +1 -0
- package/dist/v2/features/global-cookies/index.js +4 -0
- package/dist/v2/features/modal/Modal.vue.d.ts +16 -0
- package/dist/v2/features/modal/Modal.vue.d.ts.map +1 -0
- package/dist/v2/features/modal/Modal.vue.js +7 -0
- package/dist/v2/features/modal/Modal.vue2.js +81 -0
- package/dist/v2/features/modal/helpers/create-api-client-modal.d.ts +53 -0
- package/dist/v2/features/modal/helpers/create-api-client-modal.d.ts.map +1 -0
- package/dist/v2/features/modal/helpers/create-api-client-modal.js +46 -0
- package/dist/v2/features/modal/index.d.ts +2 -0
- package/dist/v2/features/modal/index.d.ts.map +1 -0
- package/dist/v2/features/modal/index.js +4 -0
- package/dist/v2/features/operation/Operation.test.d.ts +2 -0
- package/dist/v2/features/operation/Operation.test.d.ts.map +1 -0
- package/dist/v2/features/operation/Operation.vue.d.ts +79 -0
- package/dist/v2/features/operation/Operation.vue.d.ts.map +1 -0
- package/dist/v2/features/operation/Operation.vue.js +124 -0
- package/dist/v2/features/operation/Operation.vue2.js +4 -0
- package/dist/v2/features/operation/components/Header.test.d.ts +2 -0
- package/dist/v2/features/operation/components/Header.test.d.ts.map +1 -0
- package/dist/v2/features/operation/components/Header.vue.d.ts +85 -0
- package/dist/v2/features/operation/components/Header.vue.d.ts.map +1 -0
- package/dist/v2/features/operation/components/Header.vue.js +7 -0
- package/dist/v2/features/operation/components/Header.vue2.js +97 -0
- package/dist/v2/features/operation/index.d.ts +3 -0
- package/dist/v2/features/operation/index.d.ts.map +1 -0
- package/dist/v2/features/operation/index.js +4 -0
- package/dist/v2/features/settings/Settings.test.d.ts +2 -0
- package/dist/v2/features/settings/Settings.test.d.ts.map +1 -0
- package/dist/v2/features/settings/Settings.vue.d.ts +22 -0
- package/dist/v2/features/settings/Settings.vue.d.ts.map +1 -0
- package/dist/v2/features/settings/Settings.vue.js +268 -0
- package/dist/v2/features/settings/Settings.vue2.js +4 -0
- package/dist/v2/features/settings/components/Appearance.vue.d.ts +10 -0
- package/dist/v2/features/settings/components/Appearance.vue.d.ts.map +1 -0
- package/dist/v2/features/settings/components/Appearance.vue.js +88 -0
- package/dist/v2/features/settings/components/Appearance.vue2.js +4 -0
- package/dist/v2/features/settings/components/Section.vue.d.ts +14 -0
- package/dist/v2/features/settings/components/Section.vue.d.ts.map +1 -0
- package/dist/v2/features/settings/components/Section.vue.js +24 -0
- package/dist/v2/features/settings/components/Section.vue2.js +4 -0
- package/dist/v2/features/settings/helpers/get-theme-colors.d.ts +9 -0
- package/dist/v2/features/settings/helpers/get-theme-colors.d.ts.map +1 -0
- package/dist/v2/features/settings/helpers/get-theme-colors.js +17 -0
- package/dist/v2/features/settings/index.d.ts +2 -0
- package/dist/v2/features/settings/index.d.ts.map +1 -0
- package/dist/v2/features/settings/index.js +4 -0
- package/dist/v2/hooks/use-document-watcher.d.ts +28 -0
- package/dist/v2/hooks/use-document-watcher.d.ts.map +1 -0
- package/dist/v2/hooks/use-document-watcher.test.d.ts +2 -0
- package/dist/v2/hooks/use-document-watcher.test.d.ts.map +1 -0
- package/dist/v2/hooks/use-workspace-client-events.d.ts +8 -0
- package/dist/v2/hooks/use-workspace-client-events.d.ts.map +1 -0
- package/dist/v2/hooks/use-workspace-client-events.js +13 -0
- package/dist/v2/plugins.d.ts +44 -0
- package/dist/v2/plugins.d.ts.map +1 -0
- package/dist/v2/types/layout.d.ts +10 -0
- package/dist/v2/types/layout.d.ts.map +1 -0
- package/dist/views/Collection/Collection.vue2.js +6 -6
- package/dist/views/Collection/CollectionCookies.vue2.js +3 -3
- package/dist/views/Collection/CollectionEnvironment.vue2.js +12 -13
- package/dist/views/Collection/CollectionScripts.vue2.js +3 -3
- package/dist/views/Collection/CollectionServerForm.vue.d.ts.map +1 -1
- package/dist/views/Collection/CollectionServerForm.vue.js +42 -62
- package/dist/views/Collection/CollectionServers.vue.d.ts.map +1 -1
- package/dist/views/Collection/CollectionServers.vue2.js +43 -50
- package/dist/views/Collection/CollectionSettings.vue.js +2 -2
- package/dist/views/Collection/CollectionSettings.vue2.js +5 -6
- package/dist/views/Collection/CollectionSync.vue2.js +3 -3
- package/dist/views/Collection/components/EnvironmentForm.vue2.js +10 -12
- package/dist/views/Collection/components/MarkdownInput.vue2.js +2 -4
- package/dist/views/Cookies/CookieModal.vue2.js +6 -6
- package/dist/views/Cookies/Cookies.vue2.js +6 -6
- package/dist/views/Environment/Environment.vue2.js +5 -6
- package/dist/views/Environment/EnvironmentModal.vue.js +13 -14
- package/dist/views/Environment/EnvironmentVariableDropdown.vue.js +8 -9
- package/dist/views/Request/RequestRoot.vue.d.ts.map +1 -1
- package/dist/views/Request/RequestRoot.vue.js +2 -2
- package/dist/views/Request/RequestRoot.vue2.js +79 -80
- package/dist/views/Request/RequestSection/RequestAuth/DeleteRequestAuthModal.vue.js +10 -11
- package/dist/views/Request/RequestSection/RequestAuth/OAuth2.vue.js +44 -55
- package/dist/views/Request/RequestSection/RequestAuth/OAuthScopesInput.vue.js +10 -12
- package/dist/views/Request/RequestSection/RequestAuth/RequestAuth.vue2.js +2 -2
- package/dist/views/Request/RequestSection/RequestAuth/RequestAuthTab.vue.js +39 -44
- package/dist/views/Request/RequestSection/RequestBody.vue.d.ts.map +1 -1
- package/dist/views/Request/RequestSection/RequestBody.vue.js +2 -2
- package/dist/views/Request/RequestSection/RequestBody.vue2.js +96 -78
- package/dist/views/Request/RequestSection/RequestCodeExample.vue2.js +3 -3
- package/dist/views/Request/RequestSection/RequestParams.vue.js +2 -3
- package/dist/views/Request/RequestSection/RequestSection.vue.js +2 -2
- package/dist/views/Request/RequestSection/RequestSection.vue2.js +55 -55
- package/dist/views/Request/RequestSection/RequestTable.vue2.js +15 -17
- package/dist/views/Request/RequestSidebar.vue2.js +7 -8
- package/dist/views/Request/RequestSidebarItem.vue.js +2 -2
- package/dist/views/Request/RequestSidebarItem.vue2.js +31 -32
- package/dist/views/Request/RequestSidebarItemMenu.vue.js +1 -1
- package/dist/views/Request/RequestSidebarItemMenu.vue2.js +13 -16
- package/dist/views/Request/ResponseSection/RequestHeaders.vue.js +11 -13
- package/dist/views/Request/ResponseSection/ResponseBody.vue2.js +4 -5
- package/dist/views/Request/ResponseSection/ResponseBodyPreview.vue2.js +4 -5
- package/dist/views/Request/ResponseSection/ResponseBodyVirtual.vue.js +1 -1
- package/dist/views/Request/ResponseSection/ResponseCookies.vue.js +3 -3
- package/dist/views/Request/ResponseSection/ResponseEmpty.vue2.js +4 -4
- package/dist/views/Request/ResponseSection/ResponseHeaders.vue.js +11 -13
- package/dist/views/Request/ResponseSection/ResponseLoadingOverlay.vue2.js +7 -8
- package/dist/views/Request/components/WorkspaceDropdown.vue.js +11 -14
- package/dist/views/Request/libs/oauth2.d.ts +1 -1
- package/dist/views/Request/libs/oauth2.d.ts.map +1 -1
- package/dist/views/Settings/SettingsGeneral.vue.js +40 -42
- package/dist/views/Settings/components/SettingsAppearance.vue.js +8 -11
- package/package.json +52 -27
- package/dist/hooks/useKeyMap.d.ts +0 -2
- package/dist/hooks/useKeyMap.d.ts.map +0 -1
- package/dist/hooks/useKeyMap.js +0 -9
- package/dist/router.d.ts +0 -8
- package/dist/router.d.ts.map +0 -1
- package/dist/router.js +0 -20
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { defineComponent as R, computed as N, ref as P, createElementBlock as u, openBlock as r, Fragment as i, renderList as
|
|
1
|
+
import { defineComponent as R, computed as N, ref as P, createElementBlock as u, openBlock as r, Fragment as i, renderList as C, createBlock as k, createCommentVNode as b, unref as s, withCtx as o, createVNode as a, createElementVNode as _, toDisplayString as F, mergeProps as v, createTextVNode as x, normalizeClass as j, capitalize as $ } from "vue";
|
|
2
2
|
import { ScalarMarkdownSummary as z } from "@scalar/components";
|
|
3
3
|
import { getResolvedRef as K } from "@scalar/workspace-store/helpers/get-resolved-ref";
|
|
4
4
|
import O from "./OAuth2.vue.js";
|
|
@@ -20,41 +20,41 @@ const L = { class: "bg-b-1 text-c-2 outline-b-3 top-0 z-1 h-full w-full overflow
|
|
|
20
20
|
},
|
|
21
21
|
emits: ["update:securityScheme", "update:selectedScopes"],
|
|
22
22
|
setup(S, { emit: I }) {
|
|
23
|
-
const c = I,
|
|
23
|
+
const c = I, h = N(
|
|
24
24
|
() => Object.entries(S.selectedSecuritySchema).map(([l, e]) => ({
|
|
25
25
|
scheme: K(S.securitySchemes[l]),
|
|
26
26
|
name: l,
|
|
27
27
|
scopes: e
|
|
28
28
|
}))
|
|
29
29
|
), p = P(""), T = (l, e) => {
|
|
30
|
-
const t = e.description ? `: ${e.description}` : "", m = `${
|
|
30
|
+
const t = e.description ? `: ${e.description}` : "", m = `${$(l)}${t || `: ${e.type}`}`;
|
|
31
31
|
if (e.type === "apiKey")
|
|
32
|
-
return `${
|
|
32
|
+
return `${$(l)}${t || `: ${e.in}`}`;
|
|
33
33
|
if (e.type === "oauth2") {
|
|
34
|
-
const
|
|
35
|
-
return `${
|
|
34
|
+
const U = Object.keys(e.flows ?? {})[0];
|
|
35
|
+
return `${$(l)}: ${p.value ? p.value : U}${t}`;
|
|
36
36
|
}
|
|
37
|
-
return e.type === "http" ? `${
|
|
37
|
+
return e.type === "http" ? `${$(l)}: ${e.scheme}${t}` : `${m}${t}`;
|
|
38
38
|
}, y = {
|
|
39
39
|
environment: S.environment,
|
|
40
40
|
envVariables: S.envVariables
|
|
41
41
|
};
|
|
42
|
-
return (l, e) => (r(!0), u(i, null,
|
|
43
|
-
|
|
42
|
+
return (l, e) => (r(!0), u(i, null, C(h.value, ({ scheme: t, name: m, scopes: U }) => (r(), u(i, { key: m }, [
|
|
43
|
+
h.value.length > 1 && t ? (r(), k(s(f), { key: 0 }, {
|
|
44
44
|
default: o(() => [
|
|
45
45
|
a(s(B), {
|
|
46
46
|
"aria-label": T(m, t),
|
|
47
47
|
class: "text-c-2 group/auth flex items-center leading-[22px] whitespace-nowrap outline-none hover:whitespace-normal"
|
|
48
48
|
}, {
|
|
49
49
|
default: o(() => [
|
|
50
|
-
|
|
50
|
+
_("p", L, F(T(m, t)), 1)
|
|
51
51
|
]),
|
|
52
52
|
_: 2
|
|
53
53
|
}, 1032, ["aria-label"])
|
|
54
54
|
]),
|
|
55
55
|
_: 2
|
|
56
56
|
}, 1024)) : b("", !0),
|
|
57
|
-
t?.description &&
|
|
57
|
+
t?.description && h.value.length <= 1 ? (r(), k(s(f), { key: 1 }, {
|
|
58
58
|
default: o(() => [
|
|
59
59
|
a(s(B), {
|
|
60
60
|
"aria-label": t.description,
|
|
@@ -84,12 +84,11 @@ const L = { class: "bg-b-1 text-c-2 outline-b-3 top-0 z-1 h-full w-full overflow
|
|
|
84
84
|
payload: { token: n }
|
|
85
85
|
}))
|
|
86
86
|
}), {
|
|
87
|
-
default: o(() => e[5] || (e[5] = [
|
|
88
|
-
x(" Bearer Token ")
|
|
89
|
-
])),
|
|
90
|
-
_:
|
|
91
|
-
|
|
92
|
-
}, 1040, ["containerClass", "modelValue"])
|
|
87
|
+
default: o(() => [...e[5] || (e[5] = [
|
|
88
|
+
x(" Bearer Token ", -1)
|
|
89
|
+
])]),
|
|
90
|
+
_: 1
|
|
91
|
+
}, 16, ["containerClass", "modelValue"])
|
|
93
92
|
]),
|
|
94
93
|
_: 2
|
|
95
94
|
}, 1024)) : t?.scheme === "basic" ? (r(), u(i, { key: 1 }, [
|
|
@@ -105,12 +104,11 @@ const L = { class: "bg-b-1 text-c-2 outline-b-3 top-0 z-1 h-full w-full overflow
|
|
|
105
104
|
payload: { username: n }
|
|
106
105
|
}))
|
|
107
106
|
}), {
|
|
108
|
-
default: o(() => e[6] || (e[6] = [
|
|
109
|
-
x(" Username ")
|
|
110
|
-
])),
|
|
111
|
-
_:
|
|
112
|
-
|
|
113
|
-
}, 1040, ["modelValue"])
|
|
107
|
+
default: o(() => [...e[6] || (e[6] = [
|
|
108
|
+
x(" Username ", -1)
|
|
109
|
+
])]),
|
|
110
|
+
_: 1
|
|
111
|
+
}, 16, ["modelValue"])
|
|
114
112
|
]),
|
|
115
113
|
_: 2
|
|
116
114
|
}, 1024),
|
|
@@ -125,12 +123,11 @@ const L = { class: "bg-b-1 text-c-2 outline-b-3 top-0 z-1 h-full w-full overflow
|
|
|
125
123
|
payload: { password: n }
|
|
126
124
|
}))
|
|
127
125
|
}), {
|
|
128
|
-
default: o(() => e[7] || (e[7] = [
|
|
129
|
-
x(" Password ")
|
|
130
|
-
])),
|
|
131
|
-
_:
|
|
132
|
-
|
|
133
|
-
}, 1040, ["modelValue"])
|
|
126
|
+
default: o(() => [...e[7] || (e[7] = [
|
|
127
|
+
x(" Password ", -1)
|
|
128
|
+
])]),
|
|
129
|
+
_: 1
|
|
130
|
+
}, 16, ["modelValue"])
|
|
134
131
|
]),
|
|
135
132
|
_: 2
|
|
136
133
|
}, 1024)
|
|
@@ -147,12 +144,11 @@ const L = { class: "bg-b-1 text-c-2 outline-b-3 top-0 z-1 h-full w-full overflow
|
|
|
147
144
|
payload: { name: n }
|
|
148
145
|
}))
|
|
149
146
|
}), {
|
|
150
|
-
default: o(() => e[8] || (e[8] = [
|
|
151
|
-
x(" Name ")
|
|
152
|
-
])),
|
|
153
|
-
_:
|
|
154
|
-
|
|
155
|
-
}, 1040, ["containerClass", "modelValue"])
|
|
147
|
+
default: o(() => [...e[8] || (e[8] = [
|
|
148
|
+
x(" Name ", -1)
|
|
149
|
+
])]),
|
|
150
|
+
_: 1
|
|
151
|
+
}, 16, ["containerClass", "modelValue"])
|
|
156
152
|
]),
|
|
157
153
|
_: 2
|
|
158
154
|
}, 1024),
|
|
@@ -167,12 +163,11 @@ const L = { class: "bg-b-1 text-c-2 outline-b-3 top-0 z-1 h-full w-full overflow
|
|
|
167
163
|
payload: { value: n }
|
|
168
164
|
}))
|
|
169
165
|
}), {
|
|
170
|
-
default: o(() => e[9] || (e[9] = [
|
|
171
|
-
x(" Value ")
|
|
172
|
-
])),
|
|
173
|
-
_:
|
|
174
|
-
|
|
175
|
-
}, 1040, ["modelValue"])
|
|
166
|
+
default: o(() => [...e[9] || (e[9] = [
|
|
167
|
+
x(" Value ", -1)
|
|
168
|
+
])]),
|
|
169
|
+
_: 1
|
|
170
|
+
}, 16, ["modelValue"])
|
|
176
171
|
]),
|
|
177
172
|
_: 2
|
|
178
173
|
}, 1024)
|
|
@@ -180,8 +175,8 @@ const L = { class: "bg-b-1 text-c-2 outline-b-3 top-0 z-1 h-full w-full overflow
|
|
|
180
175
|
a(s(f), null, {
|
|
181
176
|
default: o(() => [
|
|
182
177
|
Object.keys(t.flows).length > 1 ? (r(), u("div", M, [
|
|
183
|
-
|
|
184
|
-
(r(!0), u(i, null,
|
|
178
|
+
_("div", Q, [
|
|
179
|
+
(r(!0), u(i, null, C(t?.flows, (n, d, V) => (r(), u("button", {
|
|
185
180
|
key: d,
|
|
186
181
|
class: j(["floating-bg text-c-3 relative cursor-pointer border-b-[1px] border-transparent py-1 text-base font-medium", {
|
|
187
182
|
"!text-c-1 !rounded-none border-b-[1px] !border-current": l.layout !== "reference" && (p.value === d || V === 0 && !p.value),
|
|
@@ -190,14 +185,14 @@ const L = { class: "bg-b-1 text-c-2 outline-b-3 top-0 z-1 h-full w-full overflow
|
|
|
190
185
|
type: "button",
|
|
191
186
|
onClick: (g) => p.value = d
|
|
192
187
|
}, [
|
|
193
|
-
|
|
188
|
+
_("span", D, F(d), 1)
|
|
194
189
|
], 10, q))), 128))
|
|
195
190
|
])
|
|
196
191
|
])) : b("", !0)
|
|
197
192
|
]),
|
|
198
193
|
_: 2
|
|
199
194
|
}, 1024),
|
|
200
|
-
(r(!0), u(i, null,
|
|
195
|
+
(r(!0), u(i, null, C(t.flows, (n, d, V) => (r(), u(i, { key: d }, [
|
|
201
196
|
p.value === d || V === 0 && !p.value ? (r(), k(O, v({
|
|
202
197
|
key: 0,
|
|
203
198
|
ref_for: !0
|
|
@@ -205,7 +200,7 @@ const L = { class: "bg-b-1 text-c-2 outline-b-3 top-0 z-1 h-full w-full overflow
|
|
|
205
200
|
flows: t.flows,
|
|
206
201
|
proxyUrl: "",
|
|
207
202
|
scheme: t,
|
|
208
|
-
selectedScopes:
|
|
203
|
+
selectedScopes: U,
|
|
209
204
|
server: l.server,
|
|
210
205
|
type: d,
|
|
211
206
|
"onUpdate:securityScheme": (g) => c("update:securityScheme", {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"oauth.d.ts","sourceRoot":"","sources":["../../../../../src/v2/blocks/scalar-auth-selector-block/helpers/oauth.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,gBAAgB,EAAE,YAAY,EAAE,MAAM,8DAA8D,CAAA;AAGlH,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,eAAe,CAAA;AAElD,qDAAqD;AACrD,KAAK,eAAe,GAAG,IAAI,CAAC,gBAAgB,EAAE,UAAU,CAAC,CAAA;AAEzD,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,OAAO,gBAAgB,EACvB,MAAM,MAAM,gBAAgB,EAC5B,gBAAgB,MAAM,EAAE;AACxB,wEAAwE;AACxE,cAAc,YAAY;AAC1B,kCAAkC;AAClC,WAAW,MAAM,KAChB,OAAO,CAAC,aAAa,CAAC,MAAM,CAAC,
|
|
1
|
+
{"version":3,"file":"oauth.d.ts","sourceRoot":"","sources":["../../../../../src/v2/blocks/scalar-auth-selector-block/helpers/oauth.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,gBAAgB,EAAE,YAAY,EAAE,MAAM,8DAA8D,CAAA;AAGlH,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,eAAe,CAAA;AAElD,qDAAqD;AACrD,KAAK,eAAe,GAAG,IAAI,CAAC,gBAAgB,EAAE,UAAU,CAAC,CAAA;AAEzD,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,OAAO,gBAAgB,EACvB,MAAM,MAAM,gBAAgB,EAC5B,gBAAgB,MAAM,EAAE;AACxB,wEAAwE;AACxE,cAAc,YAAY;AAC1B,kCAAkC;AAClC,WAAW,MAAM,KAChB,OAAO,CAAC,aAAa,CAAC,MAAM,CAAC,CAkK/B,CAAA;AAED;;;GAGG;AACH,eAAO,MAAM,gBAAgB,GAC3B,OAAO,eAAe,EACtB,MAAM,MAAM,eAAe,EAC3B,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,CA8F/B,CAAA"}
|
|
@@ -3,6 +3,7 @@ import type { Environment } from '@scalar/oas-utils/entities/environment';
|
|
|
3
3
|
import type { OpenApiDocument, OperationObject, ServerObject } from '@scalar/workspace-store/schemas/v3.1/strict/openapi-document';
|
|
4
4
|
import type { ClientLayout } from '../../../../hooks/index.js';
|
|
5
5
|
import type { EnvVariable } from '../../../../store/index.js';
|
|
6
|
+
import type { ClientPlugin } from '../../../../v2/plugins';
|
|
6
7
|
type __VLS_Props = {
|
|
7
8
|
/** Operation method */
|
|
8
9
|
method: HttpMethod;
|
|
@@ -24,6 +25,8 @@ type __VLS_Props = {
|
|
|
24
25
|
server?: ServerObject;
|
|
25
26
|
/** Client layout */
|
|
26
27
|
layout: ClientLayout;
|
|
28
|
+
/** Registered app plugins */
|
|
29
|
+
plugins?: ClientPlugin[];
|
|
27
30
|
/** TODO: remove when we migrate */
|
|
28
31
|
environment: Environment;
|
|
29
32
|
envVariables: EnvVariable[];
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"OperationBlock.vue.d.ts","sourceRoot":"","sources":["../../../../../src/v2/blocks/scalar-operation-block/components/OperationBlock.vue"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"OperationBlock.vue.d.ts","sourceRoot":"","sources":["../../../../../src/v2/blocks/scalar-operation-block/components/OperationBlock.vue"],"names":[],"mappings":"AAidA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,mCAAmC,CAAA;AACnE,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,wCAAwC,CAAA;AAGzE,OAAO,KAAK,EACV,eAAe,EACf,eAAe,EAGf,YAAY,EACb,MAAM,8DAA8D,CAAA;AAKrE,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,SAAS,CAAA;AAC3C,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,SAAS,CAAA;AAM1C,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,cAAc,CAAA;AAEhD,KAAK,WAAW,GAAG;IACjB,uBAAuB;IACvB,MAAM,EAAE,UAAU,CAAA;IAClB,qBAAqB;IACrB,IAAI,EAAE,MAAM,CAAA;IACZ,uBAAuB;IACvB,SAAS,EAAE,eAAe,CAAA;IAC1B,+DAA+D;IAC/D,UAAU,EAAE,MAAM,CAAA;IAClB,wEAAwE;IACxE,mBAAmB,CAAC,EAAE,MAAM,CAAA;IAC5B,wCAAwC;IACxC,eAAe,EAAE,WAAW,CAAC,eAAe,CAAC,YAAY,CAAC,CAAC,CAAC,iBAAiB,CAAC,CAAA;IAC9E,4DAA4D;IAC5D,gBAAgB,EAAE,eAAe,CAAC,4BAA4B,CAAC,CAAA;IAC/D,mDAAmD;IACnD,QAAQ,EAAE,eAAe,CAAC,UAAU,CAAC,CAAA;IACrC,6EAA6E;IAC7E,MAAM,CAAC,EAAE,YAAY,CAAA;IACrB,oBAAoB;IACpB,MAAM,EAAE,YAAY,CAAA;IACpB,6BAA6B;IAC7B,OAAO,CAAC,EAAE,YAAY,EAAE,CAAA;IAExB,mCAAmC;IACnC,WAAW,EAAE,WAAW,CAAA;IACxB,YAAY,EAAE,WAAW,EAAE,CAAA;CAC5B,CAAC;;;;;;;;AAkqBF,wBAOG"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import o from "./OperationBlock.vue2.js";
|
|
2
2
|
/* empty css */
|
|
3
3
|
import t from "../../../../_virtual/_plugin-vue_export-helper.js";
|
|
4
|
-
const
|
|
4
|
+
const f = /* @__PURE__ */ t(o, [["__scopeId", "data-v-a58f7b6a"]]);
|
|
5
5
|
export {
|
|
6
|
-
|
|
6
|
+
f as default
|
|
7
7
|
};
|
|
@@ -1,16 +1,16 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
import { canMethodHaveBody as
|
|
3
|
-
import { getResolvedRef as
|
|
4
|
-
import
|
|
5
|
-
import
|
|
6
|
-
import
|
|
7
|
-
import
|
|
8
|
-
import { groupBy as
|
|
9
|
-
import
|
|
10
|
-
const
|
|
1
|
+
import { defineComponent as E, ref as T, computed as b, useId as K, watch as N, resolveComponent as H, createBlock as V, openBlock as s, withCtx as S, withDirectives as m, createElementBlock as v, createVNode as i, unref as l, vShow as y, Fragment as I, renderList as P, createCommentVNode as R, resolveDynamicComponent as Q, createElementVNode as F, toDisplayString as L } from "vue";
|
|
2
|
+
import { canMethodHaveBody as A, REGEX as C } from "@scalar/oas-utils/helpers";
|
|
3
|
+
import { getResolvedRef as h } from "@scalar/workspace-store/helpers/get-resolved-ref";
|
|
4
|
+
import $ from "../../../../components/SectionFilter.vue.js";
|
|
5
|
+
import j from "../../../../components/ViewLayout/ViewLayoutSection.vue.js";
|
|
6
|
+
import z from "./OperationBody.vue.js";
|
|
7
|
+
import f from "./OperationParams.vue.js";
|
|
8
|
+
import { groupBy as G } from "../helpers/group-by.js";
|
|
9
|
+
import M from "../../scalar-auth-selector-block/components/AuthSelector.vue.js";
|
|
10
|
+
const X = { class: "group pointer-events-none flex flex-1 items-center gap-1 lg:pr-24" }, J = ["for"], W = ["id", "placeholder", "value"], Y = {
|
|
11
11
|
key: 2,
|
|
12
12
|
class: "text-c-1 flex h-8 items-center"
|
|
13
|
-
},
|
|
13
|
+
}, le = /* @__PURE__ */ E({
|
|
14
14
|
__name: "OperationBlock",
|
|
15
15
|
props: {
|
|
16
16
|
method: {},
|
|
@@ -23,13 +23,14 @@ const j = { class: "group pointer-events-none flex flex-1 items-center gap-1 lg:
|
|
|
23
23
|
security: {},
|
|
24
24
|
server: {},
|
|
25
25
|
layout: {},
|
|
26
|
+
plugins: {},
|
|
26
27
|
environment: {},
|
|
27
28
|
envVariables: {}
|
|
28
29
|
},
|
|
29
30
|
emits: ["operation:update:requestName", "auth:delete", "auth:update:securityScheme", "auth:update:selectedScopes", "auth:update:selectedSecurity", "parameters:add", "parameters:update", "parameters:delete", "parameters:deleteAll", "requestBody:update:contentType", "requestBody:update:value", "requestBody:add:formRow", "requestBody:update:formRow"],
|
|
30
|
-
setup(
|
|
31
|
-
const a =
|
|
32
|
-
|
|
31
|
+
setup(o, { emit: g }) {
|
|
32
|
+
const a = g, d = G(
|
|
33
|
+
o.operation.parameters?.map((r) => h(r)) ?? [],
|
|
33
34
|
"in"
|
|
34
35
|
), w = [
|
|
35
36
|
"Auth",
|
|
@@ -38,189 +39,202 @@ const j = { class: "group pointer-events-none flex flex-1 items-center gap-1 lg:
|
|
|
38
39
|
"Headers",
|
|
39
40
|
"Query",
|
|
40
41
|
"Body"
|
|
41
|
-
],
|
|
42
|
+
], u = T("All"), B = b(() => {
|
|
42
43
|
const r = /* @__PURE__ */ new Set(["All", ...w]);
|
|
43
|
-
return
|
|
44
|
-
}), n =
|
|
44
|
+
return d.path?.length || r.delete("Variables"), A(o.method) || r.delete("Body"), q.value && r.delete("Auth"), [...r];
|
|
45
|
+
}), n = b(
|
|
45
46
|
() => Object.fromEntries(
|
|
46
|
-
|
|
47
|
+
B.value.map((r) => [r, K()])
|
|
47
48
|
)
|
|
48
49
|
);
|
|
49
|
-
|
|
50
|
-
() =>
|
|
50
|
+
N(
|
|
51
|
+
() => o.method,
|
|
51
52
|
(r) => {
|
|
52
|
-
|
|
53
|
+
u.value === "Body" && !A(r) && (u.value = "All");
|
|
53
54
|
}
|
|
54
55
|
);
|
|
55
|
-
const
|
|
56
|
-
() =>
|
|
57
|
-
),
|
|
58
|
-
return (r, e) =>
|
|
59
|
-
"
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
p(s(o($), {
|
|
88
|
-
id: n.value.Auth,
|
|
89
|
-
envVariables: r.envVariables,
|
|
90
|
-
environment: r.environment,
|
|
91
|
-
layout: "client",
|
|
92
|
-
security: r.security,
|
|
93
|
-
securitySchemes: r.securitySchemes,
|
|
94
|
-
selectedSecurity: r.selectedSecurity,
|
|
95
|
-
server: r.server,
|
|
96
|
-
title: "Authorization",
|
|
97
|
-
onDeleteOperationAuth: e[2] || (e[2] = (t) => a("auth:delete", t)),
|
|
98
|
-
"onUpdate:securityScheme": e[3] || (e[3] = (t) => a("auth:update:securityScheme", t)),
|
|
99
|
-
"onUpdate:selectedScopes": e[4] || (e[4] = (t) => a("auth:update:selectedScopes", t)),
|
|
100
|
-
"onUpdate:selectedSecurity": e[5] || (e[5] = (t) => a("auth:update:selectedSecurity", t))
|
|
101
|
-
}, null, 8, ["id", "envVariables", "environment", "security", "securitySchemes", "selectedSecurity", "server"]), [
|
|
102
|
-
[m, u("Auth") && !S.value]
|
|
103
|
-
]),
|
|
104
|
-
p(s(v, {
|
|
105
|
-
id: n.value.Variables,
|
|
106
|
-
envVariables: r.envVariables,
|
|
107
|
-
environment: r.environment,
|
|
108
|
-
exampleKey: r.exampleKey,
|
|
109
|
-
parameters: o(i).path ?? [],
|
|
110
|
-
title: "Variables",
|
|
111
|
-
onAdd: e[6] || (e[6] = (t) => a("parameters:add", {
|
|
112
|
-
type: "path",
|
|
113
|
-
payload: t
|
|
114
|
-
})),
|
|
115
|
-
onDelete: e[7] || (e[7] = (t) => a("parameters:delete", {
|
|
116
|
-
type: "path",
|
|
117
|
-
...t
|
|
118
|
-
})),
|
|
119
|
-
onDeleteAll: e[8] || (e[8] = () => a("parameters:deleteAll", {
|
|
120
|
-
type: "path"
|
|
121
|
-
})),
|
|
122
|
-
onUpdate: e[9] || (e[9] = (t) => a("parameters:update", {
|
|
123
|
-
type: "path",
|
|
124
|
-
...t
|
|
125
|
-
}))
|
|
126
|
-
}, null, 8, ["id", "envVariables", "environment", "exampleKey", "parameters"]), [
|
|
127
|
-
[m, u("Variables") && o(i).path?.length]
|
|
128
|
-
]),
|
|
129
|
-
p(s(v, {
|
|
130
|
-
id: n.value.Cookies,
|
|
131
|
-
envVariables: r.envVariables,
|
|
132
|
-
environment: r.environment,
|
|
133
|
-
exampleKey: r.exampleKey,
|
|
134
|
-
parameters: o(i).cookie ?? [],
|
|
135
|
-
title: "Cookies",
|
|
136
|
-
onAdd: e[10] || (e[10] = (t) => a("parameters:add", {
|
|
137
|
-
type: "cookie",
|
|
138
|
-
payload: t
|
|
139
|
-
})),
|
|
140
|
-
onDelete: e[11] || (e[11] = (t) => a("parameters:delete", {
|
|
141
|
-
type: "cookie",
|
|
142
|
-
...t
|
|
143
|
-
})),
|
|
144
|
-
onDeleteAll: e[12] || (e[12] = () => a("parameters:deleteAll", {
|
|
145
|
-
type: "cookie"
|
|
146
|
-
})),
|
|
147
|
-
onUpdate: e[13] || (e[13] = (t) => a("parameters:update", {
|
|
148
|
-
type: "cookie",
|
|
149
|
-
...t
|
|
150
|
-
}))
|
|
151
|
-
}, null, 8, ["id", "envVariables", "environment", "exampleKey", "parameters"]), [
|
|
152
|
-
[m, u("Cookies")]
|
|
153
|
-
]),
|
|
154
|
-
p(s(v, {
|
|
155
|
-
id: n.value.Headers,
|
|
156
|
-
envVariables: r.envVariables,
|
|
157
|
-
environment: r.environment,
|
|
158
|
-
exampleKey: r.exampleKey,
|
|
159
|
-
parameters: o(i).header ?? [],
|
|
160
|
-
title: "Headers",
|
|
161
|
-
onAdd: e[14] || (e[14] = (t) => a("parameters:add", {
|
|
162
|
-
type: "header",
|
|
163
|
-
payload: t
|
|
164
|
-
})),
|
|
165
|
-
onDelete: e[15] || (e[15] = (t) => a("parameters:delete", {
|
|
166
|
-
type: "header",
|
|
167
|
-
...t
|
|
168
|
-
})),
|
|
169
|
-
onDeleteAll: e[16] || (e[16] = () => a("parameters:deleteAll", {
|
|
170
|
-
type: "header"
|
|
171
|
-
})),
|
|
172
|
-
onUpdate: e[17] || (e[17] = (t) => a("parameters:update", {
|
|
173
|
-
type: "header",
|
|
174
|
-
...t
|
|
175
|
-
}))
|
|
176
|
-
}, null, 8, ["id", "envVariables", "environment", "exampleKey", "parameters"]), [
|
|
177
|
-
[m, u("Headers")]
|
|
56
|
+
const q = b(
|
|
57
|
+
() => o.layout === "modal" && !o.operation.security && !Object.keys(o.securitySchemes ?? {}).length
|
|
58
|
+
), D = () => o.operation.summary ? o.operation.summary : o.path.replace(C.PROTOCOL, "") ? o.path.replace(C.PROTOCOL, "") : "Request Name", p = (r) => u.value === "All" || u.value === r, k = K();
|
|
59
|
+
return (r, e) => {
|
|
60
|
+
const O = H("ScalarErrorBoundary");
|
|
61
|
+
return s(), V(j, {
|
|
62
|
+
"aria-label": `Request: ${r.operation.summary}`
|
|
63
|
+
}, {
|
|
64
|
+
title: S(() => [
|
|
65
|
+
F("div", X, [
|
|
66
|
+
r.layout !== "modal" ? (s(), v("label", {
|
|
67
|
+
key: 0,
|
|
68
|
+
class: "pointer-events-auto absolute top-0 left-0 h-full w-full cursor-text opacity-0",
|
|
69
|
+
for: l(k)
|
|
70
|
+
}, null, 8, J)) : R("", !0),
|
|
71
|
+
r.layout !== "modal" ? (s(), v("input", {
|
|
72
|
+
key: 1,
|
|
73
|
+
id: l(k),
|
|
74
|
+
class: "text-c-1 group-hover-input pointer-events-auto relative z-10 -ml-0.5 h-8 w-full rounded pl-1.25 has-[:focus-visible]:outline md:-ml-1.25",
|
|
75
|
+
placeholder: D(),
|
|
76
|
+
value: r.operation.summary,
|
|
77
|
+
onInput: e[0] || (e[0] = (t) => a("operation:update:requestName", {
|
|
78
|
+
name: t.target.value
|
|
79
|
+
}))
|
|
80
|
+
}, null, 40, W)) : (s(), v("span", Y, L(r.operation.summary), 1))
|
|
81
|
+
]),
|
|
82
|
+
i($, {
|
|
83
|
+
modelValue: u.value,
|
|
84
|
+
"onUpdate:modelValue": e[1] || (e[1] = (t) => u.value = t),
|
|
85
|
+
filterIds: n.value,
|
|
86
|
+
filters: B.value
|
|
87
|
+
}, null, 8, ["modelValue", "filterIds", "filters"])
|
|
178
88
|
]),
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
89
|
+
default: S(() => [
|
|
90
|
+
m(i(l(M), {
|
|
91
|
+
id: n.value.Auth,
|
|
92
|
+
envVariables: r.envVariables,
|
|
93
|
+
environment: r.environment,
|
|
94
|
+
layout: "client",
|
|
95
|
+
security: r.security,
|
|
96
|
+
securitySchemes: r.securitySchemes,
|
|
97
|
+
selectedSecurity: r.selectedSecurity,
|
|
98
|
+
server: r.server,
|
|
99
|
+
title: "Authorization",
|
|
100
|
+
onDeleteOperationAuth: e[2] || (e[2] = (t) => a("auth:delete", t)),
|
|
101
|
+
"onUpdate:securityScheme": e[3] || (e[3] = (t) => a("auth:update:securityScheme", t)),
|
|
102
|
+
"onUpdate:selectedScopes": e[4] || (e[4] = (t) => a("auth:update:selectedScopes", t)),
|
|
103
|
+
"onUpdate:selectedSecurity": e[5] || (e[5] = (t) => a("auth:update:selectedSecurity", t))
|
|
104
|
+
}, null, 8, ["id", "envVariables", "environment", "security", "securitySchemes", "selectedSecurity", "server"]), [
|
|
105
|
+
[y, p("Auth") && !q.value]
|
|
106
|
+
]),
|
|
107
|
+
m(i(f, {
|
|
108
|
+
id: n.value.Variables,
|
|
109
|
+
envVariables: r.envVariables,
|
|
110
|
+
environment: r.environment,
|
|
111
|
+
exampleKey: r.exampleKey,
|
|
112
|
+
parameters: l(d).path ?? [],
|
|
113
|
+
title: "Variables",
|
|
114
|
+
onAdd: e[6] || (e[6] = (t) => a("parameters:add", {
|
|
115
|
+
type: "path",
|
|
116
|
+
payload: t
|
|
117
|
+
})),
|
|
118
|
+
onDelete: e[7] || (e[7] = (t) => a("parameters:delete", {
|
|
119
|
+
type: "path",
|
|
120
|
+
...t
|
|
121
|
+
})),
|
|
122
|
+
onDeleteAll: e[8] || (e[8] = () => a("parameters:deleteAll", {
|
|
123
|
+
type: "path"
|
|
124
|
+
})),
|
|
125
|
+
onUpdate: e[9] || (e[9] = (t) => a("parameters:update", {
|
|
126
|
+
type: "path",
|
|
127
|
+
...t
|
|
128
|
+
}))
|
|
129
|
+
}, null, 8, ["id", "envVariables", "environment", "exampleKey", "parameters"]), [
|
|
130
|
+
[y, p("Variables") && l(d).path?.length]
|
|
131
|
+
]),
|
|
132
|
+
m(i(f, {
|
|
133
|
+
id: n.value.Cookies,
|
|
134
|
+
envVariables: r.envVariables,
|
|
135
|
+
environment: r.environment,
|
|
136
|
+
exampleKey: r.exampleKey,
|
|
137
|
+
parameters: l(d).cookie ?? [],
|
|
138
|
+
title: "Cookies",
|
|
139
|
+
onAdd: e[10] || (e[10] = (t) => a("parameters:add", {
|
|
140
|
+
type: "cookie",
|
|
141
|
+
payload: t
|
|
142
|
+
})),
|
|
143
|
+
onDelete: e[11] || (e[11] = (t) => a("parameters:delete", {
|
|
144
|
+
type: "cookie",
|
|
145
|
+
...t
|
|
146
|
+
})),
|
|
147
|
+
onDeleteAll: e[12] || (e[12] = () => a("parameters:deleteAll", {
|
|
148
|
+
type: "cookie"
|
|
149
|
+
})),
|
|
150
|
+
onUpdate: e[13] || (e[13] = (t) => a("parameters:update", {
|
|
151
|
+
type: "cookie",
|
|
152
|
+
...t
|
|
153
|
+
}))
|
|
154
|
+
}, null, 8, ["id", "envVariables", "environment", "exampleKey", "parameters"]), [
|
|
155
|
+
[y, p("Cookies")]
|
|
156
|
+
]),
|
|
157
|
+
m(i(f, {
|
|
158
|
+
id: n.value.Headers,
|
|
159
|
+
envVariables: r.envVariables,
|
|
160
|
+
environment: r.environment,
|
|
161
|
+
exampleKey: r.exampleKey,
|
|
162
|
+
parameters: l(d).header ?? [],
|
|
163
|
+
title: "Headers",
|
|
164
|
+
onAdd: e[14] || (e[14] = (t) => a("parameters:add", {
|
|
165
|
+
type: "header",
|
|
166
|
+
payload: t
|
|
167
|
+
})),
|
|
168
|
+
onDelete: e[15] || (e[15] = (t) => a("parameters:delete", {
|
|
169
|
+
type: "header",
|
|
170
|
+
...t
|
|
171
|
+
})),
|
|
172
|
+
onDeleteAll: e[16] || (e[16] = () => a("parameters:deleteAll", {
|
|
173
|
+
type: "header"
|
|
174
|
+
})),
|
|
175
|
+
onUpdate: e[17] || (e[17] = (t) => a("parameters:update", {
|
|
176
|
+
type: "header",
|
|
177
|
+
...t
|
|
178
|
+
}))
|
|
179
|
+
}, null, 8, ["id", "envVariables", "environment", "exampleKey", "parameters"]), [
|
|
180
|
+
[y, p("Headers")]
|
|
181
|
+
]),
|
|
182
|
+
m(i(f, {
|
|
183
|
+
id: n.value.Query,
|
|
184
|
+
envVariables: r.envVariables,
|
|
185
|
+
environment: r.environment,
|
|
186
|
+
exampleKey: r.exampleKey,
|
|
187
|
+
parameters: l(d).query ?? [],
|
|
188
|
+
title: "Query Parameters",
|
|
189
|
+
onAdd: e[18] || (e[18] = (t) => a("parameters:add", {
|
|
190
|
+
type: "query",
|
|
191
|
+
payload: t
|
|
192
|
+
})),
|
|
193
|
+
onDelete: e[19] || (e[19] = (t) => a("parameters:delete", {
|
|
194
|
+
type: "query",
|
|
195
|
+
...t
|
|
196
|
+
})),
|
|
197
|
+
onDeleteAll: e[20] || (e[20] = () => a("parameters:deleteAll", {
|
|
198
|
+
type: "query"
|
|
199
|
+
})),
|
|
200
|
+
onUpdate: e[21] || (e[21] = (t) => a("parameters:update", {
|
|
201
|
+
type: "query",
|
|
202
|
+
...t
|
|
203
|
+
}))
|
|
204
|
+
}, null, 8, ["id", "envVariables", "environment", "exampleKey", "parameters"]), [
|
|
205
|
+
[y, p("Query")]
|
|
206
|
+
]),
|
|
207
|
+
m(i(z, {
|
|
208
|
+
id: n.value.Body,
|
|
209
|
+
envVariables: r.envVariables,
|
|
210
|
+
environment: r.environment,
|
|
211
|
+
exampleKey: r.exampleKey,
|
|
212
|
+
requestBody: l(h)(r.operation.requestBody),
|
|
213
|
+
selectedContentType: r.selectedContentType ?? "other",
|
|
214
|
+
title: "Request Body",
|
|
215
|
+
"onAdd:formRow": e[22] || (e[22] = (t) => a("requestBody:add:formRow", t)),
|
|
216
|
+
"onUpdate:contentType": e[23] || (e[23] = (t) => a("requestBody:update:contentType", t)),
|
|
217
|
+
"onUpdate:formRow": e[24] || (e[24] = (t) => a("requestBody:update:formRow", t)),
|
|
218
|
+
"onUpdate:value": e[25] || (e[25] = (t) => a("requestBody:update:value", t))
|
|
219
|
+
}, null, 8, ["id", "envVariables", "environment", "exampleKey", "requestBody", "selectedContentType"]), [
|
|
220
|
+
[y, p("Body") && l(A)(r.method)]
|
|
221
|
+
]),
|
|
222
|
+
(s(!0), v(I, null, P(r.plugins, (t, U) => (s(), V(O, { key: U }, {
|
|
223
|
+
default: S(() => [
|
|
224
|
+
t?.components?.request ? (s(), V(Q(t.components.request), {
|
|
225
|
+
key: 0,
|
|
226
|
+
operation: r.operation,
|
|
227
|
+
selectedExample: r.exampleKey
|
|
228
|
+
}, null, 8, ["operation", "selectedExample"])) : R("", !0)
|
|
229
|
+
]),
|
|
230
|
+
_: 2
|
|
231
|
+
}, 1024))), 128))
|
|
203
232
|
]),
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
environment: r.environment,
|
|
208
|
-
exampleKey: r.exampleKey,
|
|
209
|
-
requestBody: o(R)(r.operation.requestBody),
|
|
210
|
-
selectedContentType: r.selectedContentType ?? "other",
|
|
211
|
-
title: "Request Body",
|
|
212
|
-
"onAdd:formRow": e[22] || (e[22] = (t) => a("requestBody:add:formRow", t)),
|
|
213
|
-
"onUpdate:contentType": e[23] || (e[23] = (t) => a("requestBody:update:contentType", t)),
|
|
214
|
-
"onUpdate:formRow": e[24] || (e[24] = (t) => a("requestBody:update:formRow", t)),
|
|
215
|
-
"onUpdate:value": e[25] || (e[25] = (t) => a("requestBody:update:value", t))
|
|
216
|
-
}, null, 8, ["id", "envVariables", "environment", "exampleKey", "requestBody", "selectedContentType"]), [
|
|
217
|
-
[m, u("Body") && o(V)(r.method)]
|
|
218
|
-
])
|
|
219
|
-
]),
|
|
220
|
-
_: 1
|
|
221
|
-
}, 8, ["aria-label"]));
|
|
233
|
+
_: 1
|
|
234
|
+
}, 8, ["aria-label"]);
|
|
235
|
+
};
|
|
222
236
|
}
|
|
223
237
|
});
|
|
224
238
|
export {
|
|
225
|
-
|
|
239
|
+
le as default
|
|
226
240
|
};
|