@scalar/api-client 2.11.0 → 2.13.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 +86 -0
- package/dist/components/AddressBar/AddressBar.vue.d.ts.map +1 -1
- package/dist/components/AddressBar/AddressBar.vue.js +1 -1
- package/dist/components/AddressBar/AddressBar.vue2.js +35 -29
- package/dist/components/CodeInput/CodeInput.vue.d.ts +1 -1
- package/dist/components/CodeInput/CodeInput.vue.d.ts.map +1 -1
- package/dist/components/CommandPalette/CommandActionForm.vue.d.ts +2 -2
- package/dist/components/CommandPalette/CommandActionForm.vue.d.ts.map +1 -1
- package/dist/components/CommandPalette/CommandActionForm.vue.js +14 -14
- package/dist/components/CommandPalette/CommandPaletteImport.vue.js +38 -38
- package/dist/components/CommandPalette/TheCommandPalette.vue.d.ts +2 -2
- package/dist/components/EmptyState.vue.d.ts.map +1 -1
- package/dist/components/EmptyState.vue.js +2 -2
- package/dist/components/EmptyState.vue2.js +27 -16
- package/dist/components/TopNav/TopNav.vue.js +33 -33
- package/dist/hooks/useClientConfig.d.ts +3 -0
- package/dist/hooks/useClientConfig.d.ts.map +1 -1
- package/dist/layouts/App/create-api-client-app.d.ts +45 -45
- package/dist/layouts/App/create-api-client-app.d.ts.map +1 -1
- package/dist/layouts/Web/create-api-client-web.d.ts +45 -45
- package/dist/layouts/Web/create-api-client-web.d.ts.map +1 -1
- package/dist/libs/create-client.d.ts +46 -46
- package/dist/libs/create-client.d.ts.map +1 -1
- package/dist/libs/errors.d.ts +1 -0
- package/dist/libs/errors.d.ts.map +1 -1
- package/dist/libs/errors.js +2 -1
- package/dist/libs/find-request.d.ts +1 -1
- package/dist/libs/hot-keys.d.ts +2 -2
- package/dist/libs/send-request/create-fetch-body.d.ts +2 -2
- package/dist/libs/send-request/create-request-operation.d.ts +4 -4
- package/dist/libs/send-request/create-request-operation.d.ts.map +1 -1
- package/dist/libs/send-request/create-request-operation.js +60 -51
- package/dist/store/active-entities.d.ts +3 -3
- package/dist/store/active-entities.d.ts.map +1 -1
- package/dist/store/collections.d.ts +4 -4
- package/dist/store/collections.d.ts.map +1 -1
- package/dist/store/index.d.ts +1 -1
- package/dist/store/index.d.ts.map +1 -1
- package/dist/store/index.js +8 -8
- package/dist/store/request-example.d.ts +12 -12
- package/dist/store/requests.d.ts +11 -11
- package/dist/store/security-schemes.d.ts.map +1 -1
- package/dist/store/store.d.ts +38 -38
- package/dist/store/store.d.ts.map +1 -1
- package/dist/store/workspace.d.ts +12 -12
- package/dist/style.css +1 -1
- package/dist/v2/blocks/operation-block/OperationBlock.vue.d.ts +79 -22
- package/dist/v2/blocks/operation-block/OperationBlock.vue.d.ts.map +1 -1
- package/dist/v2/blocks/operation-block/OperationBlock.vue.js +52 -48
- package/dist/v2/blocks/operation-block/components/Header.vue.d.ts +4 -4
- package/dist/v2/blocks/operation-block/components/Header.vue.d.ts.map +1 -1
- package/dist/v2/blocks/operation-block/components/Header.vue.js +2 -2
- package/dist/v2/blocks/operation-block/components/Header.vue2.js +32 -33
- package/dist/v2/blocks/operation-code-sample/index.d.ts.map +1 -1
- package/dist/v2/blocks/{scalar-operation-block/components/OperationBlock.vue.d.ts → request-block/RequestBlock.vue.d.ts} +3 -3
- package/dist/v2/blocks/request-block/RequestBlock.vue.d.ts.map +1 -0
- package/dist/v2/blocks/request-block/RequestBlock.vue.js +7 -0
- package/dist/v2/blocks/request-block/RequestBlock.vue2.js +223 -0
- package/dist/v2/blocks/{scalar-operation-block/components/OperationBody.vue.d.ts → request-block/components/RequestBody.vue.d.ts} +1 -1
- package/dist/v2/blocks/request-block/components/RequestBody.vue.d.ts.map +1 -0
- package/dist/v2/blocks/request-block/components/RequestBody.vue.js +7 -0
- package/dist/v2/blocks/{scalar-operation-block/components/OperationBody.vue2.js → request-block/components/RequestBody.vue2.js} +15 -15
- package/dist/v2/blocks/{scalar-operation-block/components/OperationParams.vue.d.ts → request-block/components/RequestParams.vue.d.ts} +1 -1
- package/dist/v2/blocks/request-block/components/RequestParams.vue.d.ts.map +1 -0
- package/dist/v2/blocks/{scalar-operation-block/components/OperationParams.vue.js → request-block/components/RequestParams.vue.js} +24 -24
- package/dist/v2/blocks/request-block/components/RequestParams.vue2.js +4 -0
- package/dist/v2/blocks/{scalar-operation-block/components/OperationTable.vue.d.ts → request-block/components/RequestTable.vue.d.ts} +2 -2
- package/dist/v2/blocks/request-block/components/RequestTable.vue.d.ts.map +1 -0
- package/dist/v2/blocks/request-block/components/RequestTable.vue.js +7 -0
- package/dist/v2/blocks/{scalar-operation-block/components/OperationTable.vue2.js → request-block/components/RequestTable.vue2.js} +8 -8
- package/dist/v2/blocks/{scalar-operation-block/components/OperationTableRow.vue.d.ts → request-block/components/RequestTableRow.vue.d.ts} +1 -1
- package/dist/v2/blocks/request-block/components/RequestTableRow.vue.d.ts.map +1 -0
- package/dist/v2/blocks/{scalar-operation-block/components/OperationTableRow.vue.js → request-block/components/RequestTableRow.vue.js} +52 -53
- package/dist/v2/blocks/request-block/components/RequestTableRow.vue2.js +4 -0
- package/dist/v2/blocks/{scalar-operation-block/components/OperationTableTooltip.vue.d.ts → request-block/components/RequestTableTooltip.vue.d.ts} +1 -1
- package/dist/v2/blocks/request-block/components/RequestTableTooltip.vue.d.ts.map +1 -0
- package/dist/v2/blocks/request-block/components/RequestTableTooltip.vue.js +7 -0
- package/dist/v2/blocks/{scalar-operation-block/components/OperationTableTooltip.vue2.js → request-block/components/RequestTableTooltip.vue2.js} +7 -7
- package/dist/v2/blocks/request-block/helpers/create-parameter-handlers.d.ts +24 -0
- package/dist/v2/blocks/request-block/helpers/create-parameter-handlers.d.ts.map +1 -0
- package/dist/v2/blocks/request-block/helpers/create-parameter-handlers.js +29 -0
- package/dist/v2/blocks/request-block/helpers/files.d.ts.map +1 -0
- package/dist/v2/blocks/request-block/helpers/get-parameter-content.d.ts.map +1 -0
- package/dist/v2/blocks/request-block/helpers/get-parameter-example.d.ts.map +1 -0
- package/dist/v2/blocks/request-block/helpers/get-parameter-schema.d.ts.map +1 -0
- package/dist/v2/blocks/request-block/helpers/get-request-body-example.d.ts.map +1 -0
- package/dist/v2/blocks/request-block/helpers/group-by.d.ts.map +1 -0
- package/dist/v2/blocks/request-block/helpers/validate-parameter.d.ts.map +1 -0
- package/dist/v2/blocks/request-block/index.d.ts +2 -0
- package/dist/v2/blocks/request-block/index.d.ts.map +1 -0
- package/dist/v2/blocks/request-block/index.js +4 -0
- package/dist/v2/blocks/{scalar-response-block/components → response-block}/ResponseBlock.vue.d.ts +3 -3
- package/dist/v2/blocks/response-block/ResponseBlock.vue.d.ts.map +1 -0
- package/dist/v2/blocks/response-block/ResponseBlock.vue.js +7 -0
- package/dist/v2/blocks/{scalar-response-block/components → response-block}/ResponseBlock.vue2.js +37 -34
- package/dist/v2/blocks/response-block/components/Headers.vue.d.ts.map +1 -0
- package/dist/v2/blocks/response-block/components/ResponseBody.vue.d.ts.map +1 -0
- package/dist/v2/blocks/{scalar-response-block → response-block}/components/ResponseBody.vue.js +2 -2
- package/dist/v2/blocks/{scalar-response-block → response-block}/components/ResponseBody.vue2.js +4 -4
- package/dist/v2/blocks/response-block/components/ResponseBodyDownload.vue.d.ts.map +1 -0
- package/dist/v2/blocks/response-block/components/ResponseBodyInfo.vue.d.ts.map +1 -0
- package/dist/v2/blocks/response-block/components/ResponseBodyPreview.vue.d.ts.map +1 -0
- package/dist/v2/blocks/{scalar-response-block → response-block}/components/ResponseBodyPreview.vue.js +1 -1
- package/dist/v2/blocks/response-block/components/ResponseBodyRaw.vue.d.ts.map +1 -0
- package/dist/v2/blocks/{scalar-response-block → response-block}/components/ResponseBodyRaw.vue.js +1 -1
- package/dist/v2/blocks/response-block/components/ResponseBodyStreaming.vue.d.ts.map +1 -0
- package/dist/v2/blocks/response-block/components/ResponseBodyStreaming.vue.js +74 -0
- package/dist/v2/blocks/response-block/components/ResponseBodyToggle.vue.d.ts.map +1 -0
- package/dist/v2/blocks/response-block/components/ResponseBodyVirtual.vue.d.ts.map +1 -0
- package/dist/v2/blocks/response-block/components/ResponseCookies.vue.d.ts.map +1 -0
- package/dist/v2/blocks/{scalar-response-block → response-block}/components/ResponseEmpty.vue.d.ts +2 -2
- package/dist/v2/blocks/response-block/components/ResponseEmpty.vue.d.ts.map +1 -0
- package/dist/v2/blocks/{scalar-response-block → response-block}/components/ResponseEmpty.vue.js +1 -1
- package/dist/v2/blocks/{scalar-response-block → response-block}/components/ResponseEmpty.vue2.js +18 -15
- package/dist/v2/blocks/response-block/components/ResponseLoadingOverlay.vue.d.ts.map +1 -0
- package/dist/v2/blocks/response-block/components/ResponseLoadingOverlay.vue.js +7 -0
- package/dist/v2/blocks/response-block/components/ResponseLoadingOverlay.vue2.js +40 -0
- package/dist/v2/blocks/{scalar-response-block → response-block}/components/ResponseMetaInformation.vue.d.ts +0 -1
- package/dist/v2/blocks/response-block/components/ResponseMetaInformation.vue.d.ts.map +1 -0
- package/dist/v2/blocks/response-block/helpers/extract-filename.d.ts.map +1 -0
- package/dist/v2/blocks/response-block/helpers/get-content-length.d.ts.map +1 -0
- package/dist/v2/blocks/response-block/helpers/media-types.d.ts.map +1 -0
- package/dist/v2/blocks/response-block/helpers/process-response-body.d.ts.map +1 -0
- package/dist/v2/blocks/response-block/index.d.ts +2 -0
- package/dist/v2/blocks/response-block/index.d.ts.map +1 -0
- package/dist/v2/blocks/response-block/index.js +4 -0
- package/dist/v2/blocks/scalar-address-bar-block/components/AddressBar.vue.d.ts +4 -3
- 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 +72 -67
- package/dist/v2/blocks/scalar-address-bar-block/index.d.ts.map +1 -1
- package/dist/v2/blocks/scalar-auth-selector-block/components/OAuth2.vue.d.ts +205 -0
- package/dist/v2/blocks/scalar-auth-selector-block/components/OAuth2.vue.d.ts.map +1 -0
- package/dist/v2/blocks/scalar-auth-selector-block/components/OAuth2.vue.js +52 -52
- package/dist/v2/blocks/scalar-auth-selector-block/components/OAuthScopesInput.vue.d.ts +1 -1
- package/dist/v2/blocks/scalar-auth-selector-block/components/OAuthScopesInput.vue.d.ts.map +1 -1
- package/dist/v2/blocks/scalar-auth-selector-block/components/RequestAuthTab.vue.d.ts +205 -0
- package/dist/v2/blocks/scalar-auth-selector-block/components/RequestAuthTab.vue.d.ts.map +1 -0
- package/dist/v2/blocks/scalar-auth-selector-block/index.d.ts.map +1 -1
- package/dist/v2/components/code-input/CodeInput.vue.d.ts +1 -0
- package/dist/v2/components/code-input/CodeInput.vue.d.ts.map +1 -1
- package/dist/v2/components/code-input/CodeInput.vue.js +1 -1
- package/dist/v2/components/code-input/CodeInput.vue2.js +29 -28
- package/dist/v2/components/resize/Resize.vue.d.ts.map +1 -1
- package/dist/v2/components/resize/Resize.vue.js +2 -2
- package/dist/v2/components/server/ServerDropdown.vue.d.ts +5 -5
- package/dist/v2/components/server/ServerDropdown.vue.d.ts.map +1 -1
- package/dist/v2/components/server/ServerDropdown.vue.js +38 -43
- package/dist/v2/components/server/ServerDropdownItem.vue.d.ts +1 -1
- package/dist/v2/components/server/ServerDropdownItem.vue.d.ts.map +1 -1
- package/dist/v2/components/server/ServerDropdownItem.vue.js +2 -2
- package/dist/v2/components/server/ServerDropdownItem.vue2.js +27 -29
- package/dist/v2/components/sidebar/Sidebar.vue.d.ts +24 -5
- package/dist/v2/components/sidebar/Sidebar.vue.d.ts.map +1 -1
- package/dist/v2/components/sidebar/Sidebar.vue.js +54 -49
- package/dist/v2/components/sidebar/SidebarMenu.vue.d.ts +18 -9
- package/dist/v2/components/sidebar/SidebarMenu.vue.d.ts.map +1 -1
- package/dist/v2/components/sidebar/SidebarMenu.vue.js +36 -43
- package/dist/v2/features/app/App.vue.d.ts +0 -3
- package/dist/v2/features/app/App.vue.d.ts.map +1 -1
- package/dist/v2/features/app/App.vue.js +150 -90
- package/dist/v2/features/app/components/AppSidebar.vue.d.ts +36 -6
- package/dist/v2/features/app/components/AppSidebar.vue.d.ts.map +1 -1
- package/dist/v2/features/app/components/AppSidebar.vue.js +1 -1
- package/dist/v2/features/app/components/AppSidebar.vue2.js +73 -61
- package/dist/v2/features/app/components/CreateWorkspaceModal.vue.d.ts +15 -0
- package/dist/v2/features/app/components/CreateWorkspaceModal.vue.d.ts.map +1 -0
- package/dist/v2/features/app/components/CreateWorkspaceModal.vue.js +56 -0
- package/dist/v2/features/app/components/CreateWorkspaceModal.vue2.js +4 -0
- package/dist/v2/features/app/components/DesktopTab.vue.d.ts +26 -0
- package/dist/v2/features/app/components/DesktopTab.vue.d.ts.map +1 -0
- package/dist/v2/features/app/components/DesktopTab.vue.js +7 -0
- package/dist/v2/features/app/components/DesktopTab.vue2.js +134 -0
- package/dist/v2/features/app/components/DesktopTabs.vue.d.ts +9 -4
- package/dist/v2/features/app/components/DesktopTabs.vue.d.ts.map +1 -1
- package/dist/v2/features/app/components/DesktopTabs.vue.js +47 -13
- package/dist/v2/features/app/components/DesktopTabs.vue2.js +2 -4
- package/dist/v2/{components/TempReplaceMe.vue.d.ts → features/app/components/SplashScreen.vue.d.ts} +1 -1
- package/dist/v2/features/app/components/SplashScreen.vue.d.ts.map +1 -0
- package/dist/v2/features/app/components/SplashScreen.vue.js +7 -0
- package/dist/v2/features/app/components/SplashScreen.vue2.js +18 -0
- package/dist/v2/features/app/components/WebTopNav.vue.d.ts +26 -5
- package/dist/v2/features/app/components/WebTopNav.vue.d.ts.map +1 -1
- package/dist/v2/features/app/components/WebTopNav.vue.js +18 -19
- package/dist/v2/features/app/helpers/create-api-client-app.d.ts +1 -2
- package/dist/v2/features/app/helpers/create-api-client-app.d.ts.map +1 -1
- package/dist/v2/features/app/helpers/create-api-client-app.js +8 -8
- package/dist/v2/features/app/helpers/routes.d.ts +6 -31
- package/dist/v2/features/app/helpers/routes.d.ts.map +1 -1
- package/dist/v2/features/app/helpers/routes.js +4 -9
- package/dist/v2/features/collection/DocumentCollection.vue.d.ts.map +1 -1
- package/dist/v2/features/collection/DocumentCollection.vue2.js +44 -51
- package/dist/v2/features/collection/WorkspaceCollection.vue.d.ts.map +1 -1
- package/dist/v2/features/collection/WorkspaceCollection.vue2.js +25 -25
- package/dist/v2/features/collection/components/Authentication.vue.js +1 -1
- package/dist/v2/features/collection/components/Authentication.vue2.js +9 -7
- package/dist/v2/features/collection/components/Cookies.vue.d.ts +13 -1
- package/dist/v2/features/collection/components/Cookies.vue.d.ts.map +1 -1
- package/dist/v2/features/collection/components/Cookies.vue.js +2 -7
- package/dist/v2/features/collection/components/Cookies.vue2.js +32 -0
- package/dist/v2/features/collection/components/Environment.vue2.js +2 -0
- package/dist/v2/features/collection/components/Overview.vue2.js +10 -8
- package/dist/v2/features/collection/components/Servers.vue2.js +26 -24
- package/dist/v2/features/collection/components/Settings.vue.d.ts +13 -15
- package/dist/v2/features/collection/components/Settings.vue.d.ts.map +1 -1
- package/dist/v2/features/collection/components/Settings.vue.js +2 -5
- package/dist/v2/features/collection/components/Settings.vue2.js +51 -92
- package/dist/v2/features/command-palette/components/CommandActionForm.vue.d.ts +61 -0
- package/dist/v2/features/command-palette/components/CommandActionForm.vue.d.ts.map +1 -0
- package/dist/v2/features/command-palette/components/CommandActionForm.vue.js +48 -0
- package/dist/v2/features/command-palette/components/CommandActionForm.vue2.js +4 -0
- package/dist/v2/features/command-palette/components/CommandActionInput.vue.d.ts +39 -0
- package/dist/v2/features/command-palette/components/CommandActionInput.vue.d.ts.map +1 -0
- package/dist/v2/features/command-palette/components/CommandActionInput.vue.js +52 -0
- package/dist/v2/features/command-palette/components/CommandActionInput.vue2.js +4 -0
- package/dist/v2/features/command-palette/components/CommandPaletteDocument.vue.d.ts +36 -0
- package/dist/v2/features/command-palette/components/CommandPaletteDocument.vue.d.ts.map +1 -0
- package/dist/v2/features/command-palette/components/CommandPaletteDocument.vue.js +78 -0
- package/dist/v2/features/command-palette/components/CommandPaletteDocument.vue2.js +4 -0
- package/dist/v2/features/command-palette/components/CommandPaletteExample.vue.d.ts +30 -0
- package/dist/v2/features/command-palette/components/CommandPaletteExample.vue.d.ts.map +1 -0
- package/dist/v2/features/command-palette/components/CommandPaletteExample.vue.js +169 -0
- package/dist/v2/features/command-palette/components/CommandPaletteExample.vue2.js +4 -0
- package/dist/v2/features/command-palette/components/CommandPaletteImport.vue.d.ts +34 -0
- package/dist/v2/features/command-palette/components/CommandPaletteImport.vue.d.ts.map +1 -0
- package/dist/v2/features/command-palette/components/CommandPaletteImport.vue.js +175 -0
- package/dist/v2/features/command-palette/components/CommandPaletteImport.vue2.js +4 -0
- package/dist/v2/features/command-palette/components/CommandPaletteImportCurl.vue.d.ts +43 -0
- package/dist/v2/features/command-palette/components/CommandPaletteImportCurl.vue.d.ts.map +1 -0
- package/dist/v2/features/command-palette/components/CommandPaletteImportCurl.vue.js +7 -0
- package/dist/v2/features/command-palette/components/CommandPaletteImportCurl.vue2.js +115 -0
- package/dist/v2/features/command-palette/components/CommandPaletteRequest.vue.d.ts +39 -0
- package/dist/v2/features/command-palette/components/CommandPaletteRequest.vue.d.ts.map +1 -0
- package/dist/v2/features/command-palette/components/CommandPaletteRequest.vue.js +213 -0
- package/dist/v2/features/command-palette/components/CommandPaletteRequest.vue2.js +4 -0
- package/dist/v2/features/command-palette/components/CommandPaletteTag.vue.d.ts +38 -0
- package/dist/v2/features/command-palette/components/CommandPaletteTag.vue.d.ts.map +1 -0
- package/dist/v2/features/command-palette/components/CommandPaletteTag.vue.js +89 -0
- package/dist/v2/features/command-palette/components/CommandPaletteTag.vue2.js +4 -0
- package/dist/v2/features/command-palette/components/TheCommandPalette.vue.d.ts +41 -0
- package/dist/v2/features/command-palette/components/TheCommandPalette.vue.d.ts.map +1 -0
- package/dist/v2/features/command-palette/components/TheCommandPalette.vue.js +7 -0
- package/dist/v2/features/command-palette/components/TheCommandPalette.vue2.js +172 -0
- package/dist/v2/features/command-palette/components/WatchModeToggle.vue.d.ts +33 -0
- package/dist/v2/features/command-palette/components/WatchModeToggle.vue.d.ts.map +1 -0
- package/dist/v2/features/command-palette/components/WatchModeToggle.vue.js +40 -0
- package/dist/v2/features/command-palette/components/WatchModeToggle.vue2.js +4 -0
- package/dist/v2/features/command-palette/components/index.d.ts +2 -0
- package/dist/v2/features/command-palette/components/index.d.ts.map +1 -0
- package/dist/v2/features/command-palette/components/index.js +4 -0
- package/dist/v2/features/command-palette/helpers/get-openapi-document-details.d.ts +23 -0
- package/dist/v2/features/command-palette/helpers/get-openapi-document-details.d.ts.map +1 -0
- package/dist/v2/features/command-palette/helpers/get-openapi-document-details.js +31 -0
- package/dist/v2/features/command-palette/helpers/get-openapi-from-postman.d.ts +13 -0
- package/dist/v2/features/command-palette/helpers/get-openapi-from-postman.d.ts.map +1 -0
- package/dist/v2/features/command-palette/helpers/get-openapi-from-postman.js +12 -0
- package/dist/v2/features/command-palette/helpers/get-operation-from-curl.d.ts +26 -0
- package/dist/v2/features/command-palette/helpers/get-operation-from-curl.d.ts.map +1 -0
- package/dist/v2/features/command-palette/helpers/get-operation-from-curl.js +70 -0
- package/dist/v2/features/command-palette/helpers/get-postman-document-details.d.ts +23 -0
- package/dist/v2/features/command-palette/helpers/get-postman-document-details.d.ts.map +1 -0
- package/dist/v2/features/command-palette/helpers/get-postman-document-details.js +18 -0
- package/dist/v2/features/command-palette/helpers/is-postman-collection.d.ts +11 -0
- package/dist/v2/features/command-palette/helpers/is-postman-collection.d.ts.map +1 -0
- package/dist/v2/features/command-palette/helpers/is-postman-collection.js +11 -0
- package/dist/v2/features/command-palette/hooks/use-command-palette-state.d.ts +202 -0
- package/dist/v2/features/command-palette/hooks/use-command-palette-state.d.ts.map +1 -0
- package/dist/v2/features/command-palette/hooks/use-command-palette-state.js +109 -0
- package/dist/v2/features/command-palette/types.d.ts +82 -0
- package/dist/v2/features/command-palette/types.d.ts.map +1 -0
- package/dist/v2/features/global-cookies/components/CookiesTable.vue.d.ts +6 -22
- package/dist/v2/features/global-cookies/components/CookiesTable.vue.d.ts.map +1 -1
- package/dist/v2/features/global-cookies/components/CookiesTable.vue.js +3 -3
- package/dist/v2/features/global-cookies/components/CookiesTable.vue2.js +121 -88
- package/dist/v2/features/global-cookies/index.d.ts +1 -1
- package/dist/v2/features/global-cookies/index.d.ts.map +1 -1
- package/dist/v2/features/global-cookies/index.js +2 -2
- package/dist/v2/features/modal/Modal.vue.d.ts +0 -2
- package/dist/v2/features/modal/Modal.vue.d.ts.map +1 -1
- package/dist/v2/features/modal/Modal.vue.js +3 -3
- package/dist/v2/features/modal/Modal.vue2.js +28 -61
- package/dist/v2/features/modal/helpers/create-api-client-modal.d.ts.map +1 -1
- package/dist/v2/features/modal/helpers/create-api-client-modal.js +8 -9
- package/dist/v2/features/operation/Operation.vue.d.ts.map +1 -1
- package/dist/v2/features/operation/Operation.vue.js +36 -25
- package/dist/v2/features/operation/helpers/get-security-requirements.d.ts +12 -0
- package/dist/v2/features/operation/helpers/get-security-requirements.d.ts.map +1 -0
- package/dist/v2/features/operation/helpers/get-security-requirements.js +4 -0
- package/dist/v2/features/search/components/SearchButton.vue.d.ts +12 -0
- package/dist/v2/features/search/components/SearchButton.vue.d.ts.map +1 -0
- package/dist/v2/features/search/components/SearchButton.vue.js +71 -0
- package/dist/v2/features/search/components/SearchButton.vue2.js +4 -0
- package/dist/v2/features/search/components/SearchModal.vue.d.ts +11 -0
- package/dist/v2/features/search/components/SearchModal.vue.d.ts.map +1 -0
- package/dist/v2/features/search/components/SearchModal.vue.js +7 -0
- package/dist/v2/features/search/components/SearchModal.vue2.js +101 -0
- package/dist/v2/features/search/components/SearchResult.vue.d.ts +10 -0
- package/dist/v2/features/search/components/SearchResult.vue.d.ts.map +1 -0
- package/dist/v2/features/search/components/SearchResult.vue.js +80 -0
- package/dist/v2/features/search/components/SearchResult.vue2.js +4 -0
- package/dist/v2/features/search/helpers/create-fuse-instance.d.ts +9 -0
- package/dist/v2/features/search/helpers/create-fuse-instance.d.ts.map +1 -0
- package/dist/v2/features/search/helpers/create-fuse-instance.js +43 -0
- package/dist/v2/features/search/helpers/create-search-index.d.ts +7 -0
- package/dist/v2/features/search/helpers/create-search-index.d.ts.map +1 -0
- package/dist/v2/features/search/helpers/create-search-index.js +63 -0
- package/dist/v2/features/search/hooks/use-search-index.d.ts +14 -0
- package/dist/v2/features/search/hooks/use-search-index.d.ts.map +1 -0
- package/dist/v2/features/search/hooks/use-search-index.js +24 -0
- package/dist/v2/features/search/index.d.ts +3 -0
- package/dist/v2/features/search/index.d.ts.map +1 -0
- package/dist/v2/features/search/index.js +6 -0
- package/dist/v2/features/search/types.d.ts +24 -0
- package/dist/v2/features/search/types.d.ts.map +1 -0
- package/dist/v2/features/settings/{Settings.vue.d.ts → CollectionSettings.vue.d.ts} +2 -2
- package/dist/v2/features/settings/CollectionSettings.vue.d.ts.map +1 -0
- package/dist/v2/features/settings/CollectionSettings.vue.js +266 -0
- package/dist/v2/features/settings/CollectionSettings.vue2.js +4 -0
- package/dist/v2/features/settings/DocumentSettings.vue.d.ts +19 -0
- package/dist/v2/features/settings/DocumentSettings.vue.d.ts.map +1 -0
- package/dist/v2/features/settings/DocumentSettings.vue.js +7 -0
- package/dist/v2/features/settings/DocumentSettings.vue2.js +106 -0
- package/dist/v2/features/settings/index.d.ts +2 -1
- package/dist/v2/features/settings/index.d.ts.map +1 -1
- package/dist/v2/features/settings/index.js +4 -2
- package/dist/v2/helpers/drag-handle-factory.d.ts +16 -0
- package/dist/v2/helpers/drag-handle-factory.d.ts.map +1 -0
- package/dist/v2/helpers/drag-handle-factory.js +119 -0
- package/dist/v2/helpers/get-tab-details.d.ts +43 -0
- package/dist/v2/helpers/get-tab-details.d.ts.map +1 -0
- package/dist/v2/helpers/get-tab-details.js +34 -0
- package/dist/v2/helpers/handle-hotkeys.d.ts +23 -0
- package/dist/v2/helpers/handle-hotkeys.d.ts.map +1 -0
- package/dist/v2/helpers/handle-hotkeys.js +56 -0
- package/dist/v2/helpers/is-url.d.ts +2 -0
- package/dist/v2/helpers/is-url.d.ts.map +1 -0
- package/dist/v2/helpers/is-url.js +5 -0
- package/dist/v2/helpers/remove-circular.d.ts +15 -0
- package/dist/v2/helpers/remove-circular.d.ts.map +1 -0
- package/dist/v2/helpers/remove-circular.js +18 -0
- package/dist/v2/helpers/slugify.d.ts +9 -0
- package/dist/v2/helpers/slugify.d.ts.map +1 -0
- package/dist/v2/helpers/slugify.js +4 -0
- package/dist/v2/helpers/storage.d.ts +23 -0
- package/dist/v2/helpers/storage.d.ts.map +1 -0
- package/dist/v2/helpers/storage.js +16 -0
- package/dist/v2/hooks/use-color-mode.d.ts +20 -0
- package/dist/v2/hooks/use-color-mode.d.ts.map +1 -0
- package/dist/v2/hooks/use-color-mode.js +24 -0
- package/dist/v2/hooks/use-document-watcher.d.ts +9 -7
- package/dist/v2/hooks/use-document-watcher.d.ts.map +1 -1
- package/dist/v2/hooks/use-document-watcher.js +66 -0
- package/dist/v2/hooks/use-global-hot-keys.d.ts +10 -0
- package/dist/v2/hooks/use-global-hot-keys.d.ts.map +1 -0
- package/dist/v2/hooks/use-global-hot-keys.js +9 -0
- package/dist/v2/hooks/use-sidebar-state.d.ts +15 -21
- package/dist/v2/hooks/use-sidebar-state.d.ts.map +1 -1
- package/dist/v2/hooks/use-sidebar-state.js +48 -30
- package/dist/v2/hooks/use-sync-path.d.ts +11 -0
- package/dist/v2/hooks/use-sync-path.d.ts.map +1 -0
- package/dist/v2/hooks/use-sync-path.js +51 -0
- package/dist/v2/hooks/use-tabs.d.ts +31 -0
- package/dist/v2/hooks/use-tabs.d.ts.map +1 -0
- package/dist/v2/hooks/use-tabs.js +44 -0
- package/dist/v2/hooks/use-workspace-client-events.d.ts +11 -2
- package/dist/v2/hooks/use-workspace-client-events.d.ts.map +1 -1
- package/dist/v2/hooks/use-workspace-client-events.js +105 -101
- package/dist/v2/hooks/use-workspace-selector.d.ts +28 -0
- package/dist/v2/hooks/use-workspace-selector.d.ts.map +1 -0
- package/dist/v2/hooks/use-workspace-selector.js +81 -0
- 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 +86 -77
- package/dist/views/Request/RequestSection/RequestAuth/OAuth2.vue.d.ts.map +1 -1
- package/dist/views/Request/RequestSection/RequestAuth/OAuth2.vue.js +78 -78
- package/dist/views/Request/RequestSection/RequestAuth/RequestAuth.vue.d.ts.map +1 -1
- package/dist/views/Request/RequestSection/RequestAuth/RequestAuthDataTable.vue.d.ts.map +1 -1
- 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 +29 -24
- package/dist/views/Request/ResponseSection/ResponseBodyStreaming.vue.js +29 -29
- package/dist/views/Request/ResponseSection/ResponseEmpty.vue2.js +1 -1
- package/dist/views/Request/ResponseSection/ResponseLoadingOverlay.vue.js +2 -2
- package/dist/views/Request/ResponseSection/ResponseLoadingOverlay.vue2.js +19 -19
- package/package.json +139 -48
- package/dist/v2/blocks/scalar-operation-block/components/OperationBlock.vue.d.ts.map +0 -1
- package/dist/v2/blocks/scalar-operation-block/components/OperationBlock.vue.js +0 -7
- package/dist/v2/blocks/scalar-operation-block/components/OperationBlock.vue2.js +0 -262
- package/dist/v2/blocks/scalar-operation-block/components/OperationBody.vue.d.ts.map +0 -1
- package/dist/v2/blocks/scalar-operation-block/components/OperationBody.vue.js +0 -7
- package/dist/v2/blocks/scalar-operation-block/components/OperationParams.vue.d.ts.map +0 -1
- package/dist/v2/blocks/scalar-operation-block/components/OperationParams.vue2.js +0 -4
- package/dist/v2/blocks/scalar-operation-block/components/OperationTable.vue.d.ts.map +0 -1
- package/dist/v2/blocks/scalar-operation-block/components/OperationTable.vue.js +0 -7
- package/dist/v2/blocks/scalar-operation-block/components/OperationTableRow.vue.d.ts.map +0 -1
- package/dist/v2/blocks/scalar-operation-block/components/OperationTableRow.vue2.js +0 -4
- package/dist/v2/blocks/scalar-operation-block/components/OperationTableTooltip.vue.d.ts.map +0 -1
- package/dist/v2/blocks/scalar-operation-block/components/OperationTableTooltip.vue.js +0 -7
- package/dist/v2/blocks/scalar-operation-block/helpers/files.d.ts.map +0 -1
- package/dist/v2/blocks/scalar-operation-block/helpers/get-parameter-content.d.ts.map +0 -1
- package/dist/v2/blocks/scalar-operation-block/helpers/get-parameter-example.d.ts.map +0 -1
- package/dist/v2/blocks/scalar-operation-block/helpers/get-parameter-schema.d.ts.map +0 -1
- package/dist/v2/blocks/scalar-operation-block/helpers/get-request-body-example.d.ts.map +0 -1
- package/dist/v2/blocks/scalar-operation-block/helpers/group-by.d.ts.map +0 -1
- package/dist/v2/blocks/scalar-operation-block/helpers/validate-parameter.d.ts.map +0 -1
- package/dist/v2/blocks/scalar-operation-block/index.d.ts +0 -2
- package/dist/v2/blocks/scalar-operation-block/index.d.ts.map +0 -1
- package/dist/v2/blocks/scalar-operation-block/index.js +0 -4
- package/dist/v2/blocks/scalar-response-block/components/Headers.vue.d.ts.map +0 -1
- package/dist/v2/blocks/scalar-response-block/components/ResponseBlock.vue.d.ts.map +0 -1
- package/dist/v2/blocks/scalar-response-block/components/ResponseBlock.vue.js +0 -7
- package/dist/v2/blocks/scalar-response-block/components/ResponseBody.vue.d.ts.map +0 -1
- package/dist/v2/blocks/scalar-response-block/components/ResponseBodyDownload.vue.d.ts.map +0 -1
- package/dist/v2/blocks/scalar-response-block/components/ResponseBodyInfo.vue.d.ts.map +0 -1
- package/dist/v2/blocks/scalar-response-block/components/ResponseBodyPreview.vue.d.ts.map +0 -1
- package/dist/v2/blocks/scalar-response-block/components/ResponseBodyRaw.vue.d.ts.map +0 -1
- package/dist/v2/blocks/scalar-response-block/components/ResponseBodyStreaming.vue.d.ts.map +0 -1
- package/dist/v2/blocks/scalar-response-block/components/ResponseBodyStreaming.vue.js +0 -74
- package/dist/v2/blocks/scalar-response-block/components/ResponseBodyToggle.vue.d.ts.map +0 -1
- package/dist/v2/blocks/scalar-response-block/components/ResponseBodyVirtual.vue.d.ts.map +0 -1
- package/dist/v2/blocks/scalar-response-block/components/ResponseCookies.vue.d.ts.map +0 -1
- package/dist/v2/blocks/scalar-response-block/components/ResponseEmpty.vue.d.ts.map +0 -1
- package/dist/v2/blocks/scalar-response-block/components/ResponseLoadingOverlay.vue.d.ts.map +0 -1
- package/dist/v2/blocks/scalar-response-block/components/ResponseLoadingOverlay.vue.js +0 -7
- package/dist/v2/blocks/scalar-response-block/components/ResponseLoadingOverlay.vue2.js +0 -40
- package/dist/v2/blocks/scalar-response-block/components/ResponseMetaInformation.vue.d.ts.map +0 -1
- package/dist/v2/blocks/scalar-response-block/helpers/extract-filename.d.ts.map +0 -1
- package/dist/v2/blocks/scalar-response-block/helpers/get-content-length.d.ts.map +0 -1
- package/dist/v2/blocks/scalar-response-block/helpers/media-types.d.ts.map +0 -1
- package/dist/v2/blocks/scalar-response-block/helpers/process-response-body.d.ts.map +0 -1
- package/dist/v2/blocks/scalar-response-block/index.d.ts +0 -2
- package/dist/v2/blocks/scalar-response-block/index.d.ts.map +0 -1
- package/dist/v2/blocks/scalar-response-block/index.js +0 -4
- package/dist/v2/components/TempReplaceMe.vue.d.ts.map +0 -1
- package/dist/v2/components/TempReplaceMe.vue.js +0 -12
- package/dist/v2/features/global-cookies/components/GlobalCookies.vue.d.ts +0 -32
- package/dist/v2/features/global-cookies/components/GlobalCookies.vue.d.ts.map +0 -1
- package/dist/v2/features/global-cookies/components/GlobalCookies.vue.js +0 -7
- package/dist/v2/features/global-cookies/components/GlobalCookies.vue2.js +0 -58
- package/dist/v2/features/settings/Settings.vue.d.ts.map +0 -1
- package/dist/v2/features/settings/Settings.vue.js +0 -268
- package/dist/v2/features/settings/Settings.vue2.js +0 -4
- /package/dist/v2/blocks/{scalar-operation-block → request-block}/helpers/files.d.ts +0 -0
- /package/dist/v2/blocks/{scalar-operation-block → request-block}/helpers/files.js +0 -0
- /package/dist/v2/blocks/{scalar-operation-block → request-block}/helpers/get-parameter-content.d.ts +0 -0
- /package/dist/v2/blocks/{scalar-operation-block → request-block}/helpers/get-parameter-content.js +0 -0
- /package/dist/v2/blocks/{scalar-operation-block → request-block}/helpers/get-parameter-example.d.ts +0 -0
- /package/dist/v2/blocks/{scalar-operation-block → request-block}/helpers/get-parameter-example.js +0 -0
- /package/dist/v2/blocks/{scalar-operation-block → request-block}/helpers/get-parameter-schema.d.ts +0 -0
- /package/dist/v2/blocks/{scalar-operation-block → request-block}/helpers/get-parameter-schema.js +0 -0
- /package/dist/v2/blocks/{scalar-operation-block → request-block}/helpers/get-request-body-example.d.ts +0 -0
- /package/dist/v2/blocks/{scalar-operation-block → request-block}/helpers/get-request-body-example.js +0 -0
- /package/dist/v2/blocks/{scalar-operation-block → request-block}/helpers/group-by.d.ts +0 -0
- /package/dist/v2/blocks/{scalar-operation-block → request-block}/helpers/group-by.js +0 -0
- /package/dist/v2/blocks/{scalar-operation-block → request-block}/helpers/validate-parameter.d.ts +0 -0
- /package/dist/v2/blocks/{scalar-operation-block → request-block}/helpers/validate-parameter.js +0 -0
- /package/dist/v2/blocks/{scalar-response-block → response-block}/components/Headers.vue.d.ts +0 -0
- /package/dist/v2/blocks/{scalar-response-block → response-block}/components/Headers.vue.js +0 -0
- /package/dist/v2/blocks/{scalar-response-block → response-block}/components/Headers.vue2.js +0 -0
- /package/dist/v2/blocks/{scalar-response-block → response-block}/components/ResponseBody.vue.d.ts +0 -0
- /package/dist/v2/blocks/{scalar-response-block → response-block}/components/ResponseBodyDownload.vue.d.ts +0 -0
- /package/dist/v2/blocks/{scalar-response-block → response-block}/components/ResponseBodyDownload.vue.js +0 -0
- /package/dist/v2/blocks/{scalar-response-block → response-block}/components/ResponseBodyDownload.vue2.js +0 -0
- /package/dist/v2/blocks/{scalar-response-block → response-block}/components/ResponseBodyInfo.vue.d.ts +0 -0
- /package/dist/v2/blocks/{scalar-response-block → response-block}/components/ResponseBodyInfo.vue.js +0 -0
- /package/dist/v2/blocks/{scalar-response-block → response-block}/components/ResponseBodyPreview.vue.d.ts +0 -0
- /package/dist/v2/blocks/{scalar-response-block → response-block}/components/ResponseBodyPreview.vue2.js +0 -0
- /package/dist/v2/blocks/{scalar-response-block → response-block}/components/ResponseBodyRaw.vue.d.ts +0 -0
- /package/dist/v2/blocks/{scalar-response-block → response-block}/components/ResponseBodyRaw.vue2.js +0 -0
- /package/dist/v2/blocks/{scalar-response-block → response-block}/components/ResponseBodyStreaming.vue.d.ts +0 -0
- /package/dist/v2/blocks/{scalar-response-block → response-block}/components/ResponseBodyStreaming.vue2.js +0 -0
- /package/dist/v2/blocks/{scalar-response-block → response-block}/components/ResponseBodyToggle.vue.d.ts +0 -0
- /package/dist/v2/blocks/{scalar-response-block → response-block}/components/ResponseBodyToggle.vue.js +0 -0
- /package/dist/v2/blocks/{scalar-response-block → response-block}/components/ResponseBodyToggle.vue2.js +0 -0
- /package/dist/v2/blocks/{scalar-response-block → response-block}/components/ResponseBodyVirtual.vue.d.ts +0 -0
- /package/dist/v2/blocks/{scalar-response-block → response-block}/components/ResponseBodyVirtual.vue.js +0 -0
- /package/dist/v2/blocks/{scalar-response-block → response-block}/components/ResponseBodyVirtual.vue3.js +0 -0
- /package/dist/v2/blocks/{scalar-response-block → response-block}/components/ResponseCookies.vue.d.ts +0 -0
- /package/dist/v2/blocks/{scalar-response-block → response-block}/components/ResponseCookies.vue.js +0 -0
- /package/dist/v2/blocks/{scalar-response-block → response-block}/components/ResponseCookies.vue2.js +0 -0
- /package/dist/v2/blocks/{scalar-response-block → response-block}/components/ResponseLoadingOverlay.vue.d.ts +0 -0
- /package/dist/v2/blocks/{scalar-response-block → response-block}/components/ResponseMetaInformation.vue.js +0 -0
- /package/dist/v2/blocks/{scalar-response-block → response-block}/components/ResponseMetaInformation.vue2.js +0 -0
- /package/dist/v2/blocks/{scalar-response-block → response-block}/helpers/extract-filename.d.ts +0 -0
- /package/dist/v2/blocks/{scalar-response-block → response-block}/helpers/extract-filename.js +0 -0
- /package/dist/v2/blocks/{scalar-response-block → response-block}/helpers/get-content-length.d.ts +0 -0
- /package/dist/v2/blocks/{scalar-response-block → response-block}/helpers/get-content-length.js +0 -0
- /package/dist/v2/blocks/{scalar-response-block → response-block}/helpers/media-types.d.ts +0 -0
- /package/dist/v2/blocks/{scalar-response-block → response-block}/helpers/media-types.js +0 -0
- /package/dist/v2/blocks/{scalar-response-block → response-block}/helpers/process-response-body.d.ts +0 -0
- /package/dist/v2/blocks/{scalar-response-block → response-block}/helpers/process-response-body.js +0 -0
|
@@ -0,0 +1,205 @@
|
|
|
1
|
+
import type { XScalarEnvironment } from '@scalar/workspace-store/schemas/extensions/document/x-scalar-environments';
|
|
2
|
+
import type { ApiKeyObject, ComponentsObject, HttpObject, SecurityRequirementObject, ServerObject } from '@scalar/workspace-store/schemas/v3.1/strict/openapi-document';
|
|
3
|
+
type __VLS_Props = {
|
|
4
|
+
environment: XScalarEnvironment;
|
|
5
|
+
/** Controls the display of certain borders which are used when we are non-collapsible */
|
|
6
|
+
isStatic: boolean;
|
|
7
|
+
selectedSecuritySchemas: SecurityRequirementObject;
|
|
8
|
+
securitySchemes: NonNullable<ComponentsObject['securitySchemes']>;
|
|
9
|
+
server: ServerObject | undefined;
|
|
10
|
+
};
|
|
11
|
+
declare const _default: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {} & {
|
|
12
|
+
"update:selectedScopes": (payload: Omit<{
|
|
13
|
+
id: string[];
|
|
14
|
+
name: string;
|
|
15
|
+
scopes: string[];
|
|
16
|
+
meta: import("@scalar/workspace-store/mutators").AuthMeta;
|
|
17
|
+
}, "meta">) => any;
|
|
18
|
+
"update:securityScheme": (payload: ({
|
|
19
|
+
type: "http";
|
|
20
|
+
} & Partial<Omit<HttpObject, "type">>) | ({
|
|
21
|
+
type: "apiKey";
|
|
22
|
+
} & Partial<Omit<ApiKeyObject, "type">>) | ({
|
|
23
|
+
type: "oauth2";
|
|
24
|
+
} & {
|
|
25
|
+
description?: string | undefined;
|
|
26
|
+
'x-default-scopes'?: string[] | undefined;
|
|
27
|
+
flows?: {
|
|
28
|
+
implicit?: {
|
|
29
|
+
refreshUrl?: string | undefined;
|
|
30
|
+
scopes?: {
|
|
31
|
+
[x: string]: string | undefined;
|
|
32
|
+
} | undefined;
|
|
33
|
+
'x-scalar-secret-client-id'?: string | undefined;
|
|
34
|
+
'x-scalar-secret-token'?: string | undefined;
|
|
35
|
+
'x-scalar-security-query'?: {
|
|
36
|
+
[x: string]: string | undefined;
|
|
37
|
+
} | undefined;
|
|
38
|
+
'x-scalar-security-body'?: {
|
|
39
|
+
[x: string]: string | undefined;
|
|
40
|
+
} | undefined;
|
|
41
|
+
'x-tokenName'?: string | undefined;
|
|
42
|
+
'x-scalar-credentials-location'?: "header" | "body" | undefined;
|
|
43
|
+
authorizationUrl?: string | undefined;
|
|
44
|
+
'x-scalar-secret-redirect-uri'?: string | undefined;
|
|
45
|
+
} | undefined;
|
|
46
|
+
password?: {
|
|
47
|
+
refreshUrl?: string | undefined;
|
|
48
|
+
scopes?: {
|
|
49
|
+
[x: string]: string | undefined;
|
|
50
|
+
} | undefined;
|
|
51
|
+
'x-scalar-secret-client-id'?: string | undefined;
|
|
52
|
+
'x-scalar-secret-token'?: string | undefined;
|
|
53
|
+
'x-scalar-security-query'?: {
|
|
54
|
+
[x: string]: string | undefined;
|
|
55
|
+
} | undefined;
|
|
56
|
+
'x-scalar-security-body'?: {
|
|
57
|
+
[x: string]: string | undefined;
|
|
58
|
+
} | undefined;
|
|
59
|
+
'x-tokenName'?: string | undefined;
|
|
60
|
+
'x-scalar-credentials-location'?: "header" | "body" | undefined;
|
|
61
|
+
tokenUrl?: string | undefined;
|
|
62
|
+
'x-scalar-secret-username'?: string | undefined;
|
|
63
|
+
'x-scalar-secret-password'?: string | undefined;
|
|
64
|
+
'x-scalar-secret-client-secret'?: string | undefined;
|
|
65
|
+
} | undefined;
|
|
66
|
+
clientCredentials?: {
|
|
67
|
+
refreshUrl?: string | undefined;
|
|
68
|
+
scopes?: {
|
|
69
|
+
[x: string]: string | undefined;
|
|
70
|
+
} | undefined;
|
|
71
|
+
'x-scalar-secret-client-id'?: string | undefined;
|
|
72
|
+
'x-scalar-secret-token'?: string | undefined;
|
|
73
|
+
'x-scalar-security-query'?: {
|
|
74
|
+
[x: string]: string | undefined;
|
|
75
|
+
} | undefined;
|
|
76
|
+
'x-scalar-security-body'?: {
|
|
77
|
+
[x: string]: string | undefined;
|
|
78
|
+
} | undefined;
|
|
79
|
+
'x-tokenName'?: string | undefined;
|
|
80
|
+
'x-scalar-credentials-location'?: "header" | "body" | undefined;
|
|
81
|
+
tokenUrl?: string | undefined;
|
|
82
|
+
'x-scalar-secret-client-secret'?: string | undefined;
|
|
83
|
+
} | undefined;
|
|
84
|
+
authorizationCode?: {
|
|
85
|
+
refreshUrl?: string | undefined;
|
|
86
|
+
scopes?: {
|
|
87
|
+
[x: string]: string | undefined;
|
|
88
|
+
} | undefined;
|
|
89
|
+
'x-scalar-secret-client-id'?: string | undefined;
|
|
90
|
+
'x-scalar-secret-token'?: string | undefined;
|
|
91
|
+
'x-scalar-security-query'?: {
|
|
92
|
+
[x: string]: string | undefined;
|
|
93
|
+
} | undefined;
|
|
94
|
+
'x-scalar-security-body'?: {
|
|
95
|
+
[x: string]: string | undefined;
|
|
96
|
+
} | undefined;
|
|
97
|
+
'x-tokenName'?: string | undefined;
|
|
98
|
+
'x-scalar-credentials-location'?: "header" | "body" | undefined;
|
|
99
|
+
authorizationUrl?: string | undefined;
|
|
100
|
+
tokenUrl?: string | undefined;
|
|
101
|
+
'x-scalar-secret-client-secret'?: string | undefined;
|
|
102
|
+
'x-scalar-secret-redirect-uri'?: string | undefined;
|
|
103
|
+
'x-usePkce'?: "SHA-256" | "plain" | "no" | undefined;
|
|
104
|
+
} | undefined;
|
|
105
|
+
} | undefined;
|
|
106
|
+
})) => any;
|
|
107
|
+
}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{
|
|
108
|
+
"onUpdate:selectedScopes"?: ((payload: Omit<{
|
|
109
|
+
id: string[];
|
|
110
|
+
name: string;
|
|
111
|
+
scopes: string[];
|
|
112
|
+
meta: import("@scalar/workspace-store/mutators").AuthMeta;
|
|
113
|
+
}, "meta">) => any) | undefined;
|
|
114
|
+
"onUpdate:securityScheme"?: ((payload: ({
|
|
115
|
+
type: "http";
|
|
116
|
+
} & Partial<Omit<HttpObject, "type">>) | ({
|
|
117
|
+
type: "apiKey";
|
|
118
|
+
} & Partial<Omit<ApiKeyObject, "type">>) | ({
|
|
119
|
+
type: "oauth2";
|
|
120
|
+
} & {
|
|
121
|
+
description?: string | undefined;
|
|
122
|
+
'x-default-scopes'?: string[] | undefined;
|
|
123
|
+
flows?: {
|
|
124
|
+
implicit?: {
|
|
125
|
+
refreshUrl?: string | undefined;
|
|
126
|
+
scopes?: {
|
|
127
|
+
[x: string]: string | undefined;
|
|
128
|
+
} | undefined;
|
|
129
|
+
'x-scalar-secret-client-id'?: string | undefined;
|
|
130
|
+
'x-scalar-secret-token'?: string | undefined;
|
|
131
|
+
'x-scalar-security-query'?: {
|
|
132
|
+
[x: string]: string | undefined;
|
|
133
|
+
} | undefined;
|
|
134
|
+
'x-scalar-security-body'?: {
|
|
135
|
+
[x: string]: string | undefined;
|
|
136
|
+
} | undefined;
|
|
137
|
+
'x-tokenName'?: string | undefined;
|
|
138
|
+
'x-scalar-credentials-location'?: "header" | "body" | undefined;
|
|
139
|
+
authorizationUrl?: string | undefined;
|
|
140
|
+
'x-scalar-secret-redirect-uri'?: string | undefined;
|
|
141
|
+
} | undefined;
|
|
142
|
+
password?: {
|
|
143
|
+
refreshUrl?: string | undefined;
|
|
144
|
+
scopes?: {
|
|
145
|
+
[x: string]: string | undefined;
|
|
146
|
+
} | undefined;
|
|
147
|
+
'x-scalar-secret-client-id'?: string | undefined;
|
|
148
|
+
'x-scalar-secret-token'?: string | undefined;
|
|
149
|
+
'x-scalar-security-query'?: {
|
|
150
|
+
[x: string]: string | undefined;
|
|
151
|
+
} | undefined;
|
|
152
|
+
'x-scalar-security-body'?: {
|
|
153
|
+
[x: string]: string | undefined;
|
|
154
|
+
} | undefined;
|
|
155
|
+
'x-tokenName'?: string | undefined;
|
|
156
|
+
'x-scalar-credentials-location'?: "header" | "body" | undefined;
|
|
157
|
+
tokenUrl?: string | undefined;
|
|
158
|
+
'x-scalar-secret-username'?: string | undefined;
|
|
159
|
+
'x-scalar-secret-password'?: string | undefined;
|
|
160
|
+
'x-scalar-secret-client-secret'?: string | undefined;
|
|
161
|
+
} | undefined;
|
|
162
|
+
clientCredentials?: {
|
|
163
|
+
refreshUrl?: string | undefined;
|
|
164
|
+
scopes?: {
|
|
165
|
+
[x: string]: string | undefined;
|
|
166
|
+
} | undefined;
|
|
167
|
+
'x-scalar-secret-client-id'?: string | undefined;
|
|
168
|
+
'x-scalar-secret-token'?: string | undefined;
|
|
169
|
+
'x-scalar-security-query'?: {
|
|
170
|
+
[x: string]: string | undefined;
|
|
171
|
+
} | undefined;
|
|
172
|
+
'x-scalar-security-body'?: {
|
|
173
|
+
[x: string]: string | undefined;
|
|
174
|
+
} | undefined;
|
|
175
|
+
'x-tokenName'?: string | undefined;
|
|
176
|
+
'x-scalar-credentials-location'?: "header" | "body" | undefined;
|
|
177
|
+
tokenUrl?: string | undefined;
|
|
178
|
+
'x-scalar-secret-client-secret'?: string | undefined;
|
|
179
|
+
} | undefined;
|
|
180
|
+
authorizationCode?: {
|
|
181
|
+
refreshUrl?: string | undefined;
|
|
182
|
+
scopes?: {
|
|
183
|
+
[x: string]: string | undefined;
|
|
184
|
+
} | undefined;
|
|
185
|
+
'x-scalar-secret-client-id'?: string | undefined;
|
|
186
|
+
'x-scalar-secret-token'?: string | undefined;
|
|
187
|
+
'x-scalar-security-query'?: {
|
|
188
|
+
[x: string]: string | undefined;
|
|
189
|
+
} | undefined;
|
|
190
|
+
'x-scalar-security-body'?: {
|
|
191
|
+
[x: string]: string | undefined;
|
|
192
|
+
} | undefined;
|
|
193
|
+
'x-tokenName'?: string | undefined;
|
|
194
|
+
'x-scalar-credentials-location'?: "header" | "body" | undefined;
|
|
195
|
+
authorizationUrl?: string | undefined;
|
|
196
|
+
tokenUrl?: string | undefined;
|
|
197
|
+
'x-scalar-secret-client-secret'?: string | undefined;
|
|
198
|
+
'x-scalar-secret-redirect-uri'?: string | undefined;
|
|
199
|
+
'x-usePkce'?: "SHA-256" | "plain" | "no" | undefined;
|
|
200
|
+
} | undefined;
|
|
201
|
+
} | undefined;
|
|
202
|
+
})) => any) | undefined;
|
|
203
|
+
}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
204
|
+
export default _default;
|
|
205
|
+
//# sourceMappingURL=RequestAuthTab.vue.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"RequestAuthTab.vue.d.ts","sourceRoot":"","sources":["../../../../../src/v2/blocks/scalar-auth-selector-block/components/RequestAuthTab.vue"],"names":[],"mappings":"AAiTA,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,2EAA2E,CAAA;AACnH,OAAO,KAAK,EACV,YAAY,EACZ,gBAAgB,EAChB,UAAU,EACV,yBAAyB,EAEzB,YAAY,EACb,MAAM,8DAA8D,CAAA;AAcrE,KAAK,WAAW,GAAG;IACjB,WAAW,EAAE,kBAAkB,CAAA;IAC/B,yFAAyF;IACzF,QAAQ,EAAE,OAAO,CAAA;IACjB,uBAAuB,EAAE,yBAAyB,CAAA;IAClD,eAAe,EAAE,WAAW,CAAC,gBAAgB,CAAC,iBAAiB,CAAC,CAAC,CAAA;IACjE,MAAM,EAAE,YAAY,GAAG,SAAS,CAAA;CACjC,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAkiBF,wBAOG"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/v2/blocks/scalar-auth-selector-block/index.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/v2/blocks/scalar-auth-selector-block/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,IAAI,YAAY,EAAE,MAAM,+BAA+B,CAAA"}
|
|
@@ -56,6 +56,7 @@ declare const _default: __VLS_WithSlots<import("vue").DefineComponent<{
|
|
|
56
56
|
handleFieldSubmit?: (value: string) => void;
|
|
57
57
|
}, {
|
|
58
58
|
focus: () => void | undefined;
|
|
59
|
+
isFocused: Ref<boolean, boolean>;
|
|
59
60
|
handleChange: (value: string) => void;
|
|
60
61
|
handleSubmit: (value: string) => void;
|
|
61
62
|
handleBlur: (value: string) => void;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"CodeInput.vue.d.ts","sourceRoot":"","sources":["../../../../src/v2/components/code-input/CodeInput.vue"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"CodeInput.vue.d.ts","sourceRoot":"","sources":["../../../../src/v2/components/code-input/CodeInput.vue"],"names":[],"mappings":"AAwmBA,OAAO,EAIL,KAAK,kBAAkB,EACvB,KAAK,SAAS,EACf,MAAM,wBAAwB,CAAA;AAC/B,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,2EAA2E,CAAA;AAEnH,OAAO,EAAyC,KAAK,GAAG,EAAE,MAAM,KAAK,CAAA;AAIrE,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,mBAAmB,CAAA;;gBAcvC,MAAM,GAAG,MAAM;IAC3B,6FAA6F;iBAChF,kBAAkB,GAAG,SAAS;IAC3C,mEAAmE;WAC5D,MAAM,GAAG,MAAM,EAAE;IACxB,sCAAsC;eAC3B,OAAO;IAClB,yBAAyB;YACjB,OAAO;IACf,kDAAkD;aACzC,YAAY;IACrB,mDAAmD;WAC5C,MAAM,EAAE;IACf,2CAA2C;eAChC,MAAM,EAAE;IACnB,2CAA2C;cACjC,MAAM,GAAG,MAAM;IACzB,2CAA2C;eAChC,OAAO;IAClB,uCAAuC;kBACzB,MAAM;IACpB,8BAA8B;eACnB,OAAO;IAClB,oCAAoC;kBACtB,OAAO;IACrB,kCAAkC;kBACpB,OAAO;IACrB,qBAAqB;WACd,OAAO;IACd,2BAA2B;mBACZ,OAAO;IACtB,+BAA+B;eACpB,kBAAkB;IAC7B,uCAAuC;iBAC1B,SAAS,EAAE;IACxB,sCAAsC;uBACnB,OAAO;IAC1B,wBAAwB;mBACT,OAAO;IACtB,wCAAwC;2BACjB,OAAO;IAC9B,gCAAgC;iBACnB,OAAO;IACpB,wCAAwC;oBACxB,OAAO;IACvB,oCAAoC;iBACvB,OAAO;IACpB,mDAAmD;wBAC/B,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI;IAC3C,mDAAmD;wBAC/B,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI;;;;0BAyFhB,MAAM,KAAG,IAAI;0BAiCb,MAAM,KAAG,IAAI;wBAWf,MAAM,KAAG,IAAI;;;;;;;;;;;gBAvL1B,MAAM,GAAG,MAAM;IAC3B,6FAA6F;iBAChF,kBAAkB,GAAG,SAAS;IAC3C,mEAAmE;WAC5D,MAAM,GAAG,MAAM,EAAE;IACxB,sCAAsC;eAC3B,OAAO;IAClB,yBAAyB;YACjB,OAAO;IACf,kDAAkD;aACzC,YAAY;IACrB,mDAAmD;WAC5C,MAAM,EAAE;IACf,2CAA2C;eAChC,MAAM,EAAE;IACnB,2CAA2C;cACjC,MAAM,GAAG,MAAM;IACzB,2CAA2C;eAChC,OAAO;IAClB,uCAAuC;kBACzB,MAAM;IACpB,8BAA8B;eACnB,OAAO;IAClB,oCAAoC;kBACtB,OAAO;IACrB,kCAAkC;kBACpB,OAAO;IACrB,qBAAqB;WACd,OAAO;IACd,2BAA2B;mBACZ,OAAO;IACtB,+BAA+B;eACpB,kBAAkB;IAC7B,uCAAuC;iBAC1B,SAAS,EAAE;IACxB,sCAAsC;uBACnB,OAAO;IAC1B,wBAAwB;mBACT,OAAO;IACtB,wCAAwC;2BACjB,OAAO;IAC9B,gCAAgC;iBACnB,OAAO;IACpB,wCAAwC;oBACxB,OAAO;IACvB,oCAAoC;iBACvB,OAAO;IACpB,mDAAmD;wBAC/B,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI;IAC3C,mDAAmD;wBAC/B,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI;;;;;;;;cA8kB/B,CAAC,KAAK,IAAiB,KAAK,GAAG;;WAClC,CAAC,KAAK,IAAiB,KAAK,GAAG;;AAzoB1C,wBA6rBC;AAOD,KAAK,eAAe,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG;IAChC,QAAO;QACN,MAAM,EAAE,CAAC,CAAC;KAEV,CAAA;CACD,CAAC"}
|
|
@@ -2,7 +2,7 @@ import o from "./CodeInput.vue2.js";
|
|
|
2
2
|
/* empty css */
|
|
3
3
|
/* empty css */
|
|
4
4
|
import t from "../../../_virtual/_plugin-vue_export-helper.js";
|
|
5
|
-
const a = /* @__PURE__ */ t(o, [["__scopeId", "data-v-
|
|
5
|
+
const a = /* @__PURE__ */ t(o, [["__scopeId", "data-v-fb7ca3f4"]]);
|
|
6
6
|
export {
|
|
7
7
|
a as default
|
|
8
8
|
};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { defineComponent as W, useAttrs as j, ref as d, computed as s, toRef as r, watch as H, createElementBlock as i, openBlock as n, Fragment as Q, createBlock as c, createCommentVNode as f, normalizeClass as G, createElementVNode as
|
|
1
|
+
import { defineComponent as W, useAttrs as j, ref as d, computed as s, toRef as r, watch as H, createElementBlock as i, openBlock as n, Fragment as Q, createBlock as c, createCommentVNode as f, normalizeClass as G, createElementVNode as w, toDisplayString as J, mergeProps as X, unref as T, withKeys as b, withModifiers as D, createTextVNode as V, renderSlot as $ } from "vue";
|
|
2
2
|
import { useCodeMirror as Y, useDropdown as Z, colorPicker as _ } from "@scalar/use-codemirror";
|
|
3
3
|
import { nanoid as ee } from "nanoid";
|
|
4
|
-
import
|
|
4
|
+
import B from "../data-table/DataTableInputSelect.vue.js";
|
|
5
5
|
import te from "../../features/environments/components/EnvironmentVariablesDropdown.vue.js";
|
|
6
6
|
import { pillPlugin as le, backspaceCommand as ne } from "./code-variable-widget.js";
|
|
7
7
|
const oe = { class: "whitespace-nowrap" }, ae = ["id"], re = {
|
|
@@ -52,7 +52,7 @@ const oe = { class: "whitespace-nowrap" }, ae = ["id"], re = {
|
|
|
52
52
|
},
|
|
53
53
|
emits: ["update:modelValue", "submit", "blur", "curl", "redirectToEnvironment"],
|
|
54
54
|
setup(t, { expose: M, emit: R }) {
|
|
55
|
-
const u = R,
|
|
55
|
+
const u = R, k = j(), q = k.id || `id-${ee()}`, p = d(!1), A = s(() => t.enum?.length ? !1 : t.type === "boolean" || Array.isArray(t.type) && t.type.includes("boolean")), x = s(() => t.nullable ? ["true", "false", "null"] : ["true", "false"]), I = s(() => Array.isArray(t.type) ? t.type.find((e) => e !== "null") ?? "string" : t.type), C = (e) => {
|
|
56
56
|
if (e !== t.modelValue) {
|
|
57
57
|
if (t.importCurl && e.trim().toLowerCase().startsWith("curl")) {
|
|
58
58
|
u("curl", e), o.value && o.value.dispatch({
|
|
@@ -66,11 +66,11 @@ const oe = { class: "whitespace-nowrap" }, ae = ["id"], re = {
|
|
|
66
66
|
}
|
|
67
67
|
t.handleFieldChange ? t.handleFieldChange(e) : u("update:modelValue", e);
|
|
68
68
|
}
|
|
69
|
-
},
|
|
69
|
+
}, y = (e) => {
|
|
70
70
|
t.handleFieldSubmit ? t.handleFieldSubmit(e) : u("submit", e);
|
|
71
71
|
}, S = (e) => {
|
|
72
|
-
|
|
73
|
-
},
|
|
72
|
+
p.value = !1, t.emitOnBlur && t.modelValue && y(e), u("blur", e);
|
|
73
|
+
}, g = (e) => {
|
|
74
74
|
u("update:modelValue", e);
|
|
75
75
|
}, N = () => {
|
|
76
76
|
const e = [...t.extensions];
|
|
@@ -90,7 +90,7 @@ const oe = { class: "whitespace-nowrap" }, ae = ["id"], re = {
|
|
|
90
90
|
C(e), L();
|
|
91
91
|
},
|
|
92
92
|
onFocus: () => {
|
|
93
|
-
|
|
93
|
+
p.value = !0;
|
|
94
94
|
},
|
|
95
95
|
onBlur: S,
|
|
96
96
|
codeMirrorRef: E,
|
|
@@ -104,24 +104,25 @@ const oe = { class: "whitespace-nowrap" }, ae = ["id"], re = {
|
|
|
104
104
|
placeholder: r(() => t.placeholder)
|
|
105
105
|
});
|
|
106
106
|
H(o, () => {
|
|
107
|
-
o.value && Object.hasOwn(
|
|
107
|
+
o.value && Object.hasOwn(k, "autofocus") && o.value.focus();
|
|
108
108
|
});
|
|
109
|
-
const
|
|
109
|
+
const h = d(!1), F = d(""), P = d({ left: 0, top: 0 }), v = d(null), { handleDropdownSelect: K, updateDropdownVisibility: L } = Z({
|
|
110
110
|
codeMirror: o,
|
|
111
111
|
query: F,
|
|
112
|
-
showDropdown:
|
|
112
|
+
showDropdown: h,
|
|
113
113
|
dropdownPosition: P
|
|
114
|
-
}), U = s(() =>
|
|
115
|
-
if (
|
|
116
|
-
e === "down" || e === "up" ? (l.preventDefault(),
|
|
114
|
+
}), U = s(() => h.value && t.withVariables && t.layout !== "modal" && !!t.environment), m = (e, l) => {
|
|
115
|
+
if (h.value) {
|
|
116
|
+
e === "down" || e === "up" ? (l.preventDefault(), v.value?.handleArrowKey(e)) : e === "enter" && (l.preventDefault(), v.value?.handleSelect());
|
|
117
117
|
return;
|
|
118
118
|
}
|
|
119
|
-
e === "escape" && !t.disableTabIndent && l.stopPropagation(), e === "enter" && l.target instanceof HTMLDivElement &&
|
|
119
|
+
e === "escape" && !t.disableTabIndent && l.stopPropagation(), e === "enter" && l.target instanceof HTMLDivElement && y(l.target.textContent ?? "");
|
|
120
120
|
};
|
|
121
121
|
return M({
|
|
122
122
|
focus: () => o.value?.focus(),
|
|
123
|
+
isFocused: p,
|
|
123
124
|
handleChange: C,
|
|
124
|
-
handleSubmit:
|
|
125
|
+
handleSubmit: y,
|
|
125
126
|
handleBlur: S,
|
|
126
127
|
booleanOptions: x,
|
|
127
128
|
codeMirror: o,
|
|
@@ -132,26 +133,26 @@ const oe = { class: "whitespace-nowrap" }, ae = ["id"], re = {
|
|
|
132
133
|
class: G(["text-c-2 flex cursor-default items-center justify-center", e.layout === "modal" ? "font-code pr-2 pl-1 text-base" : "px-2"]),
|
|
133
134
|
"data-testid": "code-input-disabled"
|
|
134
135
|
}, [
|
|
135
|
-
|
|
136
|
-
], 2)) : t.enum?.length ? (n(), c(
|
|
136
|
+
w("span", oe, J(e.modelValue), 1)
|
|
137
|
+
], 2)) : t.enum?.length ? (n(), c(B, {
|
|
137
138
|
key: 1,
|
|
138
139
|
default: t.default,
|
|
139
140
|
modelValue: e.modelValue,
|
|
140
141
|
type: I.value,
|
|
141
142
|
value: t.enum,
|
|
142
|
-
"onUpdate:modelValue":
|
|
143
|
-
}, null, 8, ["default", "modelValue", "type", "value"])) : A.value ? (n(), c(
|
|
143
|
+
"onUpdate:modelValue": g
|
|
144
|
+
}, null, 8, ["default", "modelValue", "type", "value"])) : A.value ? (n(), c(B, {
|
|
144
145
|
key: 2,
|
|
145
146
|
default: t.default,
|
|
146
147
|
modelValue: e.modelValue,
|
|
147
148
|
value: x.value,
|
|
148
|
-
"onUpdate:modelValue":
|
|
149
|
-
}, null, 8, ["default", "modelValue", "value"])) : e.examples?.length ? (n(), c(
|
|
149
|
+
"onUpdate:modelValue": g
|
|
150
|
+
}, null, 8, ["default", "modelValue", "value"])) : e.examples?.length ? (n(), c(B, {
|
|
150
151
|
key: 3,
|
|
151
152
|
default: t.default,
|
|
152
153
|
modelValue: e.modelValue,
|
|
153
154
|
value: e.examples,
|
|
154
|
-
"onUpdate:modelValue":
|
|
155
|
+
"onUpdate:modelValue": g
|
|
155
156
|
}, null, 8, ["default", "modelValue", "value"])) : (n(), i("div", X({
|
|
156
157
|
key: 4,
|
|
157
158
|
id: T(q)
|
|
@@ -170,11 +171,11 @@ const oe = { class: "whitespace-nowrap" }, ae = ["id"], re = {
|
|
|
170
171
|
]
|
|
171
172
|
}), [
|
|
172
173
|
e.disableTabIndent ? f("", !0) : (n(), i("div", re, [...l[5] || (l[5] = [
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
174
|
+
V(" Press ", -1),
|
|
175
|
+
w("kbd", { class: "-mx-0.25 rounded border px-0.5 font-mono" }, "Esc", -1),
|
|
176
|
+
V(" then ", -1),
|
|
177
|
+
w("kbd", { class: "-mx-0.25 rounded border px-0.5 font-mono" }, "Tab", -1),
|
|
178
|
+
V(" to exit ", -1)
|
|
178
179
|
])]))
|
|
179
180
|
], 16, ae)),
|
|
180
181
|
e.$slots.warning ? (n(), i("div", ie, [
|
|
@@ -187,7 +188,7 @@ const oe = { class: "whitespace-nowrap" }, ae = ["id"], re = {
|
|
|
187
188
|
U.value && e.environment ? (n(), c(te, {
|
|
188
189
|
key: 8,
|
|
189
190
|
ref_key: "dropdownRef",
|
|
190
|
-
ref:
|
|
191
|
+
ref: v,
|
|
191
192
|
dropdownPosition: P.value,
|
|
192
193
|
environment: e.environment,
|
|
193
194
|
query: F.value,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Resize.vue.d.ts","sourceRoot":"","sources":["../../../../src/v2/components/resize/Resize.vue"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"Resize.vue.d.ts","sourceRoot":"","sources":["../../../../src/v2/components/resize/Resize.vue"],"names":[],"mappings":"AA4GA,KAAK,WAAW,GAAG;IACjB,qCAAqC;IACrC,KAAK,EAAE,MAAM,CAAA;CACd,CAAC;AAQF,KAAK,WAAW,GAAG;IACjB,OAAO,CAAC,IAAI,OAAO,CAAA;CACpB,CAAC;AA4FF,QAAA,MAAM,eAAe;;;;kFAOnB,CAAC;wBACkB,eAAe,CAAC,OAAO,eAAe,EAAE,WAAW,CAAC;AAAzE,wBAA0E;AAQ1E,KAAK,eAAe,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG;IAChC,QAAO;QACN,MAAM,EAAE,CAAC,CAAC;KAEV,CAAA;CACD,CAAC"}
|
|
@@ -2,7 +2,7 @@ import o from "./Resize.vue2.js";
|
|
|
2
2
|
/* empty css */
|
|
3
3
|
/* empty css */
|
|
4
4
|
import t from "../../../_virtual/_plugin-vue_export-helper.js";
|
|
5
|
-
const
|
|
5
|
+
const c = /* @__PURE__ */ t(o, [["__scopeId", "data-v-e2c54c18"]]);
|
|
6
6
|
export {
|
|
7
|
-
|
|
7
|
+
c as default
|
|
8
8
|
};
|
|
@@ -4,32 +4,32 @@ type __VLS_Props = {
|
|
|
4
4
|
/** List of servers that are available for the operation/document level */
|
|
5
5
|
servers: ServerObject[];
|
|
6
6
|
/** Currently selected server */
|
|
7
|
-
server: ServerObject |
|
|
7
|
+
server: ServerObject | null;
|
|
8
8
|
/** The id of the target to use for the popover (e.g. address bar) */
|
|
9
9
|
target: string;
|
|
10
10
|
/** Client layout */
|
|
11
11
|
layout: ClientLayout;
|
|
12
12
|
};
|
|
13
13
|
declare const _default: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {} & {
|
|
14
|
-
addServer: () => any;
|
|
15
14
|
"update:variable": (payload: {
|
|
16
15
|
index: number;
|
|
17
16
|
key: string;
|
|
18
17
|
value: string;
|
|
19
18
|
}) => any;
|
|
20
19
|
"update:selectedServer": (payload: {
|
|
21
|
-
|
|
20
|
+
url: string;
|
|
22
21
|
}) => any;
|
|
22
|
+
"update:servers": () => any;
|
|
23
23
|
}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{
|
|
24
|
-
onAddServer?: (() => any) | undefined;
|
|
25
24
|
"onUpdate:variable"?: ((payload: {
|
|
26
25
|
index: number;
|
|
27
26
|
key: string;
|
|
28
27
|
value: string;
|
|
29
28
|
}) => any) | undefined;
|
|
30
29
|
"onUpdate:selectedServer"?: ((payload: {
|
|
31
|
-
|
|
30
|
+
url: string;
|
|
32
31
|
}) => any) | undefined;
|
|
32
|
+
"onUpdate:servers"?: (() => any) | undefined;
|
|
33
33
|
}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
34
34
|
export default _default;
|
|
35
35
|
//# sourceMappingURL=ServerDropdown.vue.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ServerDropdown.vue.d.ts","sourceRoot":"","sources":["../../../../src/v2/components/server/ServerDropdown.vue"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"ServerDropdown.vue.d.ts","sourceRoot":"","sources":["../../../../src/v2/components/server/ServerDropdown.vue"],"names":[],"mappings":"AAyHA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,8DAA8D,CAAA;AAGhG,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,SAAS,CAAA;AAI3C,KAAK,WAAW,GAAG;IACjB,0EAA0E;IAC1E,OAAO,EAAE,YAAY,EAAE,CAAA;IACvB,gCAAgC;IAChC,MAAM,EAAE,YAAY,GAAG,IAAI,CAAA;IAC3B,qEAAqE;IACrE,MAAM,EAAE,MAAM,CAAA;IACd,oBAAoB;IACpB,MAAM,EAAE,YAAY,CAAA;CACrB,CAAC;;;;;;;;;;;;;;;;;;;;;;AAkPF,wBAOG"}
|
|
@@ -1,7 +1,8 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
import { ScalarPopover as
|
|
3
|
-
import V from "
|
|
4
|
-
|
|
1
|
+
import { defineComponent as y, computed as v, createBlock as m, openBlock as t, unref as s, withCtx as n, createVNode as d, createElementBlock as i, Fragment as p, createElementVNode as a, createTextVNode as h, toDisplayString as U, createCommentVNode as w, renderList as C } from "vue";
|
|
2
|
+
import { ScalarPopover as B, ScalarButton as z, ScalarFloatingBackdrop as N } from "@scalar/components";
|
|
3
|
+
import { ScalarIconPlus as V, ScalarIconPencilSimple as D } from "@scalar/icons";
|
|
4
|
+
import I from "./ServerDropdownItem.vue.js";
|
|
5
|
+
const P = ["onClick"], $ = { class: "flex items-center justify-center" }, W = /* @__PURE__ */ y({
|
|
5
6
|
__name: "ServerDropdown",
|
|
6
7
|
props: {
|
|
7
8
|
servers: {},
|
|
@@ -9,15 +10,15 @@ const D = ["onClick"], $ = { class: "flex h-4 w-4 items-center justify-center" }
|
|
|
9
10
|
target: {},
|
|
10
11
|
layout: {}
|
|
11
12
|
},
|
|
12
|
-
emits: ["update:selectedServer", "update:variable", "
|
|
13
|
-
setup(
|
|
14
|
-
const
|
|
15
|
-
() =>
|
|
13
|
+
emits: ["update:selectedServer", "update:variable", "update:servers"],
|
|
14
|
+
setup(o, { emit: f }) {
|
|
15
|
+
const u = f, b = v(
|
|
16
|
+
() => o.servers.map((e) => ({
|
|
16
17
|
id: e.url,
|
|
17
18
|
label: e.url ?? "Unknown server"
|
|
18
19
|
}))
|
|
19
|
-
),
|
|
20
|
-
return (e, r) => (t(),
|
|
20
|
+
), S = v(() => o.server?.url?.endsWith("/") ? o.server.url.slice(0, -1) : o.server?.url || "");
|
|
21
|
+
return (e, r) => (t(), m(s(B), {
|
|
21
22
|
class: "max-h-[inherit] p-0 text-base",
|
|
22
23
|
focus: "",
|
|
23
24
|
offset: 0,
|
|
@@ -26,53 +27,47 @@ const D = ["onClick"], $ = { class: "flex h-4 w-4 items-center justify-center" }
|
|
|
26
27
|
target: e.target,
|
|
27
28
|
teleport: `#${e.target}`
|
|
28
29
|
}, {
|
|
29
|
-
popover:
|
|
30
|
-
|
|
30
|
+
popover: n(({ close: g }) => [
|
|
31
|
+
a("div", {
|
|
31
32
|
class: "custom-scroll flex max-h-[inherit] flex-col gap-1 border-t p-1",
|
|
32
|
-
onClick:
|
|
33
|
+
onClick: g
|
|
33
34
|
}, [
|
|
34
|
-
(t(!0),
|
|
35
|
-
key:
|
|
35
|
+
(t(!0), i(p, null, C(b.value, (l, k) => (t(), m(I, {
|
|
36
|
+
key: l.id,
|
|
36
37
|
server: e.server,
|
|
37
|
-
serverOption:
|
|
38
|
+
serverOption: l,
|
|
38
39
|
type: "request",
|
|
39
|
-
"onUpdate:selectedServer": (c) =>
|
|
40
|
-
"onUpdate:variable": (c,
|
|
40
|
+
"onUpdate:selectedServer": (c) => u("update:selectedServer", { url: l.id }),
|
|
41
|
+
"onUpdate:variable": (c, x) => u("update:variable", { index: k, key: c, value: x })
|
|
41
42
|
}, null, 8, ["server", "serverOption", "onUpdate:selectedServer", "onUpdate:variable"]))), 128)),
|
|
42
|
-
e.layout !== "modal" ? (t(),
|
|
43
|
+
e.layout !== "modal" ? (t(), i("button", {
|
|
43
44
|
key: 0,
|
|
44
45
|
class: "text-xxs hover:bg-b-2 flex cursor-pointer items-center gap-1.5 rounded p-1.75",
|
|
45
46
|
type: "button",
|
|
46
|
-
onClick: r[0] || (r[0] = (
|
|
47
|
+
onClick: r[0] || (r[0] = (l) => u("update:servers"))
|
|
47
48
|
}, [
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
icon: "Add",
|
|
51
|
-
size: "sm"
|
|
52
|
-
})
|
|
49
|
+
a("div", $, [
|
|
50
|
+
d(s(D), { class: "size-4" })
|
|
53
51
|
]),
|
|
54
|
-
r[3] || (r[3] =
|
|
55
|
-
])) :
|
|
56
|
-
], 8,
|
|
52
|
+
r[3] || (r[3] = a("span", null, "Update Servers", -1))
|
|
53
|
+
])) : w("", !0)
|
|
54
|
+
], 8, P)
|
|
57
55
|
]),
|
|
58
|
-
backdrop:
|
|
59
|
-
|
|
56
|
+
backdrop: n(() => [
|
|
57
|
+
d(s(N), { class: "-top-(--scalar-address-bar-height) rounded-lg" })
|
|
60
58
|
]),
|
|
61
|
-
default:
|
|
62
|
-
|
|
59
|
+
default: n(() => [
|
|
60
|
+
d(s(z), {
|
|
63
61
|
class: "z-context-plus hover:bg-b-2 font-code text-c-2 ml-0.75 h-auto gap-0.75 rounded border px-1.5 text-base whitespace-nowrap",
|
|
64
62
|
variant: "ghost"
|
|
65
63
|
}, {
|
|
66
|
-
default:
|
|
67
|
-
e.server ? (t(),
|
|
68
|
-
r[1] || (r[1] =
|
|
69
|
-
|
|
70
|
-
], 64)) : (t(),
|
|
71
|
-
r[2] || (r[2] =
|
|
72
|
-
|
|
73
|
-
icon: "Add",
|
|
74
|
-
size: "xs"
|
|
75
|
-
})
|
|
64
|
+
default: n(() => [
|
|
65
|
+
e.server ? (t(), i(p, { key: 0 }, [
|
|
66
|
+
r[1] || (r[1] = a("span", { class: "sr-only" }, "Server:", -1)),
|
|
67
|
+
h(" " + U(S.value), 1)
|
|
68
|
+
], 64)) : (t(), i(p, { key: 1 }, [
|
|
69
|
+
r[2] || (r[2] = a("span", { class: "sr-only" }, "Add Server", -1)),
|
|
70
|
+
d(s(V), { class: "size-3" })
|
|
76
71
|
], 64))
|
|
77
72
|
]),
|
|
78
73
|
_: 1
|
|
@@ -83,5 +78,5 @@ const D = ["onClick"], $ = { class: "flex h-4 w-4 items-center justify-center" }
|
|
|
83
78
|
}
|
|
84
79
|
});
|
|
85
80
|
export {
|
|
86
|
-
|
|
81
|
+
W as default
|
|
87
82
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ServerDropdownItem.vue.d.ts","sourceRoot":"","sources":["../../../../src/v2/components/server/ServerDropdownItem.vue"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"ServerDropdownItem.vue.d.ts","sourceRoot":"","sources":["../../../../src/v2/components/server/ServerDropdownItem.vue"],"names":[],"mappings":"AAiFA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,8DAA8D,CAAA;AAKhG,KAAK,WAAW,GAAG;IACjB,MAAM,EAAE,YAAY,GAAG,IAAI,CAAA;IAC3B,YAAY,EAAE;QACZ,EAAE,EAAE,MAAM,CAAA;QACV,KAAK,EAAE,MAAM,CAAA;KACd,CAAA;CACF,CAAC;;;;;;;;AA6JF,wBAOG"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import o from "./ServerDropdownItem.vue2.js";
|
|
2
2
|
/* empty css */
|
|
3
3
|
import r from "../../../_virtual/_plugin-vue_export-helper.js";
|
|
4
|
-
const
|
|
4
|
+
const m = /* @__PURE__ */ r(o, [["__scopeId", "data-v-1b7a32a4"]]);
|
|
5
5
|
export {
|
|
6
|
-
|
|
6
|
+
m as default
|
|
7
7
|
};
|