@scalar/api-client 2.14.1 → 2.17.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 +176 -0
- package/dist/hooks/useResponseBody.js +6 -6
- package/dist/libs/errors.d.ts +1 -0
- package/dist/libs/errors.d.ts.map +1 -1
- package/dist/libs/errors.js +1 -0
- package/dist/libs/send-request/create-request-operation.d.ts.map +1 -1
- package/dist/libs/send-request/create-request-operation.js +41 -35
- package/dist/style.css +1 -1
- package/dist/v2/blocks/operation-block/OperationBlock.vue.d.ts +28 -38
- package/dist/v2/blocks/operation-block/OperationBlock.vue.d.ts.map +1 -1
- package/dist/v2/blocks/operation-block/OperationBlock.vue.js +81 -65
- package/dist/v2/blocks/operation-block/components/Header.vue.d.ts +1 -23
- package/dist/v2/blocks/operation-block/components/Header.vue.d.ts.map +1 -1
- package/dist/v2/blocks/operation-block/components/Header.vue.js +3 -3
- package/dist/v2/blocks/operation-block/components/Header.vue2.js +29 -38
- package/dist/v2/blocks/operation-block/helpers/build-request-body.d.ts +10 -0
- package/dist/v2/blocks/operation-block/helpers/build-request-body.d.ts.map +1 -0
- package/dist/v2/blocks/operation-block/helpers/build-request-body.js +22 -0
- package/dist/v2/blocks/operation-block/helpers/build-request-cookie-header.d.ts +31 -0
- package/dist/v2/blocks/operation-block/helpers/build-request-cookie-header.d.ts.map +1 -0
- package/dist/v2/blocks/operation-block/helpers/build-request-cookie-header.js +31 -0
- package/dist/v2/blocks/operation-block/helpers/build-request-parameters.d.ts +3 -9
- package/dist/v2/blocks/operation-block/helpers/build-request-parameters.d.ts.map +1 -1
- package/dist/v2/blocks/operation-block/helpers/build-request-parameters.js +56 -0
- package/dist/v2/blocks/operation-block/helpers/build-request-security.d.ts +10 -3
- package/dist/v2/blocks/operation-block/helpers/build-request-security.d.ts.map +1 -1
- package/dist/v2/blocks/operation-block/helpers/build-request-security.js +46 -0
- package/dist/v2/blocks/operation-block/helpers/build-request.d.ts +45 -0
- package/dist/v2/blocks/operation-block/helpers/build-request.d.ts.map +1 -0
- package/dist/v2/blocks/operation-block/helpers/build-request.js +66 -0
- package/dist/v2/blocks/operation-block/helpers/decode-buffer.js +9 -0
- package/dist/v2/blocks/operation-block/helpers/get-cookie-header-keys.d.ts +16 -0
- package/dist/v2/blocks/operation-block/helpers/get-cookie-header-keys.d.ts.map +1 -0
- package/dist/v2/blocks/operation-block/helpers/get-cookie-header-keys.js +4 -0
- package/dist/v2/blocks/operation-block/helpers/get-delimiter.js +17 -0
- package/dist/v2/blocks/operation-block/helpers/get-example.d.ts +9 -3
- package/dist/v2/blocks/operation-block/helpers/get-example.d.ts.map +1 -1
- package/dist/v2/blocks/operation-block/helpers/get-example.js +21 -0
- package/dist/v2/blocks/operation-block/helpers/send-request.d.ts +53 -0
- package/dist/v2/blocks/operation-block/helpers/send-request.d.ts.map +1 -0
- package/dist/v2/blocks/operation-block/helpers/send-request.js +120 -0
- package/dist/v2/blocks/operation-code-sample/components/ExamplePicker.vue.d.ts +1 -1
- package/dist/v2/blocks/operation-code-sample/components/ExamplePicker.vue.d.ts.map +1 -1
- package/dist/v2/blocks/operation-code-sample/components/OperationCodeSample.vue.d.ts.map +1 -1
- package/dist/v2/blocks/operation-code-sample/components/OperationCodeSample.vue.js +1 -1
- package/dist/v2/blocks/operation-code-sample/components/OperationCodeSample.vue2.js +89 -110
- package/dist/v2/blocks/operation-code-sample/helpers/find-client.d.ts +2 -2
- package/dist/v2/blocks/operation-code-sample/helpers/find-client.d.ts.map +1 -1
- package/dist/v2/blocks/operation-code-sample/helpers/generate-client-options.d.ts +8 -13
- package/dist/v2/blocks/operation-code-sample/helpers/generate-client-options.d.ts.map +1 -1
- package/dist/v2/blocks/operation-code-sample/helpers/generate-client-options.js +22 -28
- package/dist/v2/blocks/operation-code-sample/helpers/generate-code-snippet.d.ts +19 -8
- package/dist/v2/blocks/operation-code-sample/helpers/generate-code-snippet.d.ts.map +1 -1
- package/dist/v2/blocks/operation-code-sample/helpers/generate-code-snippet.js +30 -24
- package/dist/v2/blocks/operation-code-sample/helpers/get-clients.d.ts +12 -0
- package/dist/v2/blocks/operation-code-sample/helpers/get-clients.d.ts.map +1 -0
- package/dist/v2/blocks/operation-code-sample/helpers/get-clients.js +20 -0
- package/dist/v2/blocks/operation-code-sample/helpers/get-custom-code-samples.d.ts +10 -0
- package/dist/v2/blocks/operation-code-sample/helpers/get-custom-code-samples.d.ts.map +1 -0
- package/dist/v2/blocks/operation-code-sample/helpers/get-custom-code-samples.js +4 -0
- package/dist/v2/blocks/operation-code-sample/helpers/get-example-from-schema.d.ts +14 -12
- package/dist/v2/blocks/operation-code-sample/helpers/get-example-from-schema.d.ts.map +1 -1
- package/dist/v2/blocks/operation-code-sample/helpers/get-example-from-schema.js +191 -169
- package/dist/v2/blocks/operation-code-sample/helpers/operation-to-har/operation-to-har.d.ts.map +1 -1
- package/dist/v2/blocks/operation-code-sample/helpers/operation-to-har/operation-to-har.js +10 -10
- package/dist/v2/blocks/operation-code-sample/helpers/operation-to-har/process-body.d.ts +2 -1
- package/dist/v2/blocks/operation-code-sample/helpers/operation-to-har/process-body.d.ts.map +1 -1
- package/dist/v2/blocks/operation-code-sample/helpers/operation-to-har/process-body.js +15 -19
- package/dist/v2/blocks/operation-code-sample/helpers/operation-to-har/process-parameters.js +2 -2
- package/dist/v2/blocks/operation-code-sample/index.d.ts +1 -1
- package/dist/v2/blocks/operation-code-sample/index.d.ts.map +1 -1
- package/dist/v2/blocks/operation-code-sample/types.d.ts +16 -0
- package/dist/v2/blocks/operation-code-sample/types.d.ts.map +1 -1
- package/dist/v2/blocks/request-block/RequestBlock.vue.d.ts +15 -10
- package/dist/v2/blocks/request-block/RequestBlock.vue.d.ts.map +1 -1
- package/dist/v2/blocks/request-block/RequestBlock.vue.js +1 -1
- package/dist/v2/blocks/request-block/RequestBlock.vue2.js +202 -160
- package/dist/v2/blocks/request-block/components/RequestBody.vue.d.ts +2 -0
- package/dist/v2/blocks/request-block/components/RequestBody.vue.d.ts.map +1 -1
- package/dist/v2/blocks/request-block/components/RequestBody.vue.js +1 -1
- package/dist/v2/blocks/request-block/components/RequestBody.vue2.js +60 -51
- package/dist/v2/blocks/request-block/components/RequestCodeSnippet.vue.d.ts +8 -0
- package/dist/v2/blocks/request-block/components/RequestCodeSnippet.vue.d.ts.map +1 -0
- package/dist/v2/blocks/request-block/components/RequestCodeSnippet.vue.js +127 -0
- package/dist/v2/blocks/request-block/components/RequestCodeSnippet.vue2.js +4 -0
- package/dist/v2/blocks/request-block/components/RequestParams.vue.d.ts +2 -2
- package/dist/v2/blocks/request-block/components/RequestParams.vue.d.ts.map +1 -1
- package/dist/v2/blocks/request-block/components/RequestParams.vue.js +24 -23
- package/dist/v2/blocks/request-block/components/RequestTable.vue.d.ts +2 -4
- package/dist/v2/blocks/request-block/components/RequestTable.vue.d.ts.map +1 -1
- package/dist/v2/blocks/request-block/components/RequestTable.vue.js +1 -1
- package/dist/v2/blocks/request-block/components/RequestTableRow.vue.d.ts +3 -2
- package/dist/v2/blocks/request-block/components/RequestTableRow.vue.d.ts.map +1 -1
- package/dist/v2/blocks/request-block/components/RequestTableRow.vue.js +146 -147
- package/dist/v2/blocks/request-block/components/RequestTableTooltip.vue.d.ts +1 -0
- package/dist/v2/blocks/request-block/components/RequestTableTooltip.vue.d.ts.map +1 -1
- package/dist/v2/blocks/request-block/components/RequestTableTooltip.vue.js +1 -1
- package/dist/v2/blocks/request-block/components/RequestTableTooltip.vue2.js +28 -27
- package/dist/v2/blocks/request-block/helpers/create-parameter-handlers.d.ts +1 -1
- package/dist/v2/blocks/request-block/helpers/create-parameter-handlers.d.ts.map +1 -1
- package/dist/v2/blocks/request-block/helpers/create-parameter-handlers.js +21 -15
- package/dist/v2/blocks/request-block/helpers/get-request-body-example.d.ts +3 -2
- package/dist/v2/blocks/request-block/helpers/get-request-body-example.d.ts.map +1 -1
- package/dist/v2/blocks/request-block/helpers/get-request-body-example.js +13 -3
- package/dist/v2/blocks/response-block/ResponseBlock.vue.d.ts +4 -4
- package/dist/v2/blocks/response-block/ResponseBlock.vue.d.ts.map +1 -1
- package/dist/v2/blocks/response-block/ResponseBlock.vue.js +3 -3
- package/dist/v2/blocks/response-block/ResponseBlock.vue2.js +41 -45
- package/dist/v2/blocks/response-block/components/Headers.vue.d.ts.map +1 -1
- package/dist/v2/blocks/response-block/components/Headers.vue.js +27 -27
- package/dist/v2/blocks/response-block/components/ResponseCookies.vue.js +1 -1
- package/dist/v2/blocks/response-block/helpers/parse-set-cookie.d.ts +18 -0
- package/dist/v2/blocks/response-block/helpers/parse-set-cookie.d.ts.map +1 -0
- package/dist/v2/blocks/response-block/helpers/parse-set-cookie.js +12 -0
- package/dist/v2/blocks/response-block/helpers/process-response-body.js +2 -2
- package/dist/v2/blocks/scalar-address-bar-block/components/AddressBar.vue.d.ts +4 -15
- 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 +117 -71
- package/dist/v2/blocks/scalar-address-bar-block/hooks/use-loading-animation.d.ts +19 -0
- package/dist/v2/blocks/scalar-address-bar-block/hooks/use-loading-animation.d.ts.map +1 -0
- package/dist/v2/blocks/scalar-address-bar-block/hooks/use-loading-animation.js +24 -0
- package/dist/v2/blocks/scalar-auth-selector-block/components/AuthSelector.vue.d.ts +3 -2
- package/dist/v2/blocks/scalar-auth-selector-block/components/AuthSelector.vue.d.ts.map +1 -1
- package/dist/v2/blocks/scalar-auth-selector-block/components/AuthSelector.vue.js +59 -56
- package/dist/v2/blocks/scalar-auth-selector-block/components/OAuth2.vue.d.ts +1 -1
- package/dist/v2/blocks/scalar-auth-selector-block/components/OAuth2.vue.d.ts.map +1 -1
- package/dist/v2/blocks/scalar-auth-selector-block/components/RequestAuthDataTable.vue.d.ts +3 -1
- package/dist/v2/blocks/scalar-auth-selector-block/components/RequestAuthDataTable.vue.d.ts.map +1 -1
- package/dist/v2/blocks/scalar-auth-selector-block/components/RequestAuthDataTable.vue.js +26 -24
- package/dist/v2/blocks/scalar-auth-selector-block/components/RequestAuthTab.vue.d.ts +2 -1
- package/dist/v2/blocks/scalar-auth-selector-block/components/RequestAuthTab.vue.d.ts.map +1 -1
- package/dist/v2/blocks/scalar-auth-selector-block/components/RequestAuthTab.vue.js +44 -43
- package/dist/v2/blocks/scalar-auth-selector-block/helpers/is-auth-optional.d.ts +4 -0
- package/dist/v2/blocks/scalar-auth-selector-block/helpers/is-auth-optional.d.ts.map +1 -0
- package/dist/v2/blocks/scalar-auth-selector-block/helpers/is-auth-optional.js +7 -0
- package/dist/v2/blocks/scalar-auth-selector-block/helpers/oauth.d.ts +4 -4
- package/dist/v2/blocks/scalar-auth-selector-block/helpers/oauth.d.ts.map +1 -1
- package/dist/v2/blocks/scalar-auth-selector-block/helpers/security-scheme.d.ts +2 -2
- package/dist/v2/components/code-input/CodeInput.vue.d.ts +16 -6
- package/dist/v2/components/code-input/CodeInput.vue.d.ts.map +1 -1
- package/dist/v2/components/code-input/CodeInput.vue.js +2 -2
- package/dist/v2/components/code-input/CodeInput.vue2.js +81 -65
- package/dist/v2/components/data-table/DataTableInputSelect.vue.d.ts +2 -2
- package/dist/v2/components/data-table/DataTableInputSelect.vue.d.ts.map +1 -1
- package/dist/v2/components/data-table/DataTableInputSelect.vue.js +44 -44
- package/dist/v2/components/resize/index.d.ts +0 -1
- package/dist/v2/components/resize/index.d.ts.map +1 -1
- package/dist/v2/components/sidebar/Sidebar.vue.d.ts +9 -5
- package/dist/v2/components/sidebar/Sidebar.vue.d.ts.map +1 -1
- package/dist/v2/components/sidebar/Sidebar.vue.js +51 -46
- package/dist/v2/components/sidebar/SidebarMenu.vue.d.ts +1 -1
- package/dist/v2/components/sidebar/SidebarMenu.vue.d.ts.map +1 -1
- package/dist/v2/features/app/App.vue.d.ts +3 -0
- package/dist/v2/features/app/App.vue.d.ts.map +1 -1
- package/dist/v2/features/app/App.vue.js +130 -143
- package/dist/v2/features/app/components/AppSidebar.vue.d.ts +3 -3
- 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 +216 -106
- package/dist/v2/features/app/components/DesktopTabs.vue.d.ts +1 -1
- package/dist/v2/features/app/components/DesktopTabs.vue.d.ts.map +1 -1
- package/dist/v2/features/app/components/ItemDecorator.vue.d.ts +22 -0
- package/dist/v2/features/app/components/ItemDecorator.vue.d.ts.map +1 -0
- package/dist/v2/features/app/components/ItemDecorator.vue.js +138 -0
- package/dist/v2/features/app/components/ItemDecorator.vue2.js +4 -0
- package/dist/v2/features/app/components/WebTopNav.vue.d.ts +1 -1
- package/dist/v2/features/app/components/WebTopNav.vue.d.ts.map +1 -1
- package/dist/v2/features/app/helpers/create-api-client-app.d.ts +2 -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 +32 -6
- package/dist/v2/features/app/helpers/routes.d.ts.map +1 -1
- package/dist/v2/features/app/helpers/routes.js +25 -16
- package/dist/v2/{hooks/use-sidebar-state.d.ts → features/app/hooks/use-app-sidebar.d.ts} +10 -11
- package/dist/v2/features/app/hooks/use-app-sidebar.d.ts.map +1 -0
- package/dist/v2/{hooks/use-sidebar-state.js → features/app/hooks/use-app-sidebar.js} +19 -19
- package/dist/v2/features/app/hooks/use-document-watcher.d.ts.map +1 -0
- package/dist/v2/{hooks → features/app/hooks}/use-sync-path.d.ts +2 -2
- package/dist/v2/features/app/hooks/use-sync-path.d.ts.map +1 -0
- package/dist/v2/features/app/hooks/use-sync-path.js +52 -0
- package/dist/v2/{hooks → features/app/hooks}/use-tabs.d.ts +2 -2
- package/dist/v2/features/app/hooks/use-tabs.d.ts.map +1 -0
- package/dist/v2/{hooks → features/app/hooks}/use-tabs.js +1 -1
- package/dist/v2/{hooks/use-workspace-client-events.d.ts → features/app/hooks/use-workspace-client-app-events.d.ts} +5 -5
- package/dist/v2/features/app/hooks/use-workspace-client-app-events.d.ts.map +1 -0
- package/dist/v2/features/app/hooks/use-workspace-client-app-events.js +156 -0
- package/dist/v2/features/app/hooks/use-workspace-selector.d.ts.map +1 -0
- package/dist/v2/{hooks → features/app/hooks}/use-workspace-selector.js +1 -1
- package/dist/v2/features/collection/DocumentCollection.vue.js +92 -2
- package/dist/v2/features/collection/DocumentCollection.vue2.js +2 -91
- package/dist/v2/features/collection/WorkspaceCollection.vue.js +42 -2
- package/dist/v2/features/collection/WorkspaceCollection.vue2.js +2 -41
- package/dist/v2/features/collection/components/Authentication.vue.d.ts.map +1 -1
- package/dist/v2/features/collection/components/Authentication.vue.js +2 -2
- package/dist/v2/features/collection/components/Authentication.vue2.js +14 -12
- package/dist/v2/features/collection/components/Cookies.vue.js +30 -1
- package/dist/v2/features/collection/components/Cookies.vue2.js +1 -29
- package/dist/v2/features/collection/components/Environment.vue.js +32 -1
- package/dist/v2/features/collection/components/Environment.vue2.js +1 -31
- package/dist/v2/features/collection/components/Overview.vue2.js +5 -4
- package/dist/v2/features/collection/components/Servers.vue.js +142 -2
- package/dist/v2/features/collection/components/Servers.vue2.js +2 -141
- package/dist/v2/features/collection/components/Settings.vue.js +58 -2
- package/dist/v2/features/collection/components/Settings.vue2.js +2 -57
- package/dist/v2/features/command-palette/components/CommandPaletteExample.vue.d.ts +8 -0
- package/dist/v2/features/command-palette/components/CommandPaletteExample.vue.d.ts.map +1 -1
- package/dist/v2/features/command-palette/components/CommandPaletteExample.vue.js +76 -68
- package/dist/v2/features/command-palette/components/CommandPaletteRequest.vue.d.ts +8 -0
- package/dist/v2/features/command-palette/components/CommandPaletteRequest.vue.d.ts.map +1 -1
- package/dist/v2/features/command-palette/components/CommandPaletteRequest.vue.js +83 -75
- package/dist/v2/features/command-palette/components/CommandPaletteTag.vue.d.ts +4 -0
- package/dist/v2/features/command-palette/components/CommandPaletteTag.vue.d.ts.map +1 -1
- package/dist/v2/features/command-palette/components/CommandPaletteTag.vue.js +32 -34
- package/dist/v2/features/command-palette/hooks/use-command-palette-state.d.ts +16 -0
- package/dist/v2/features/command-palette/hooks/use-command-palette-state.d.ts.map +1 -1
- package/dist/v2/features/command-palette/hooks/use-command-palette-state.js +24 -21
- package/dist/v2/features/modal/Modal.vue.d.ts +23 -1
- package/dist/v2/features/modal/Modal.vue.d.ts.map +1 -1
- package/dist/v2/features/modal/Modal.vue.js +1 -1
- package/dist/v2/features/modal/Modal.vue2.js +118 -31
- package/dist/v2/features/modal/helpers/create-api-client-modal.d.ts +18 -32
- 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 +46 -26
- package/dist/v2/features/modal/helpers/resolve-route-parameters.d.ts +55 -0
- package/dist/v2/features/modal/helpers/resolve-route-parameters.d.ts.map +1 -0
- package/dist/v2/features/modal/helpers/resolve-route-parameters.js +29 -0
- package/dist/v2/features/modal/hooks/use-modal-sidebar.d.ts +42 -0
- package/dist/v2/features/modal/hooks/use-modal-sidebar.d.ts.map +1 -0
- package/dist/v2/features/modal/hooks/use-modal-sidebar.js +93 -0
- package/dist/v2/features/modal/hooks/use-workspace-client-modal-events.d.ts +18 -0
- package/dist/v2/features/modal/hooks/use-workspace-client-modal-events.d.ts.map +1 -0
- package/dist/v2/features/modal/hooks/use-workspace-client-modal-events.js +30 -0
- package/dist/v2/features/operation/Operation.vue.d.ts.map +1 -1
- package/dist/v2/features/operation/Operation.vue.js +59 -28
- package/dist/v2/features/operation/helpers/get-operation-header.d.ts +17 -0
- package/dist/v2/features/operation/helpers/get-operation-header.d.ts.map +1 -0
- package/dist/v2/features/operation/helpers/get-operation-header.js +12 -0
- package/dist/v2/features/operation/helpers/get-security-requirements.d.ts +1 -1
- package/dist/v2/features/operation/helpers/get-security-requirements.d.ts.map +1 -1
- package/dist/v2/features/operation/helpers/get-selected-security.d.ts +7 -0
- package/dist/v2/features/operation/helpers/get-selected-security.d.ts.map +1 -0
- package/dist/v2/features/operation/helpers/get-selected-security.js +19 -0
- package/dist/v2/features/operation/index.d.ts +0 -1
- package/dist/v2/features/operation/index.d.ts.map +1 -1
- package/dist/v2/features/search/components/SearchModal.vue.d.ts.map +1 -1
- package/dist/v2/features/search/components/SearchModal.vue.js +3 -3
- package/dist/v2/features/search/components/SearchModal.vue2.js +45 -44
- package/dist/v2/features/settings/DocumentSettings.vue.js +2 -2
- package/dist/v2/features/settings/DocumentSettings.vue2.js +1 -1
- package/dist/v2/helpers/generate-location-id.d.ts +19 -0
- package/dist/v2/helpers/generate-location-id.d.ts.map +1 -0
- package/dist/v2/helpers/generate-location-id.js +10 -0
- package/dist/v2/helpers/get-active-environment.d.ts +5 -0
- package/dist/v2/helpers/get-active-environment.d.ts.map +1 -0
- package/dist/v2/helpers/get-active-environment.js +22 -0
- package/dist/v2/helpers/get-tab-details.d.ts +2 -2
- package/dist/v2/helpers/get-tab-details.d.ts.map +1 -1
- package/dist/v2/helpers/handle-hotkeys.js +1 -1
- package/dist/v2/helpers/plugins.d.ts +59 -0
- package/dist/v2/helpers/plugins.d.ts.map +1 -0
- package/dist/v2/helpers/plugins.js +11 -0
- package/dist/v2/helpers/storage.d.ts.map +1 -1
- package/dist/v2/helpers/storage.js +5 -5
- package/dist/v2/hooks/use-scroll-lock.d.ts +28 -0
- package/dist/v2/hooks/use-scroll-lock.d.ts.map +1 -0
- package/dist/v2/hooks/use-scroll-lock.js +21 -0
- package/dist/views/Components/CodeSnippet/helpers/get-har-request.d.ts +2 -0
- package/dist/views/Components/CodeSnippet/helpers/get-har-request.d.ts.map +1 -1
- package/dist/views/Components/CodeSnippet/helpers/get-har-request.js +1 -1
- package/dist/views/Request/RequestSection/RequestAuth/index.d.ts +0 -1
- package/dist/views/Request/RequestSection/RequestAuth/index.d.ts.map +1 -1
- package/dist/views/Request/ResponseSection/ResponseEmpty.vue2.js +1 -1
- package/package.json +19 -19
- package/dist/v2/blocks/operation-code-sample/helpers/operation-to-har/get-example-value.d.ts +0 -7
- package/dist/v2/blocks/operation-code-sample/helpers/operation-to-har/get-example-value.d.ts.map +0 -1
- package/dist/v2/blocks/operation-code-sample/helpers/operation-to-har/get-example-value.js +0 -28
- package/dist/v2/blocks/request-block/helpers/get-parameter-example.d.ts +0 -6
- package/dist/v2/blocks/request-block/helpers/get-parameter-example.d.ts.map +0 -1
- package/dist/v2/blocks/request-block/helpers/get-parameter-example.js +0 -12
- package/dist/v2/hooks/use-document-watcher.d.ts.map +0 -1
- package/dist/v2/hooks/use-sidebar-state.d.ts.map +0 -1
- package/dist/v2/hooks/use-sync-path.d.ts.map +0 -1
- package/dist/v2/hooks/use-sync-path.js +0 -51
- package/dist/v2/hooks/use-tabs.d.ts.map +0 -1
- package/dist/v2/hooks/use-workspace-client-events.d.ts.map +0 -1
- package/dist/v2/hooks/use-workspace-client-events.js +0 -112
- package/dist/v2/hooks/use-workspace-selector.d.ts.map +0 -1
- package/dist/v2/plugins.d.ts +0 -44
- package/dist/v2/plugins.d.ts.map +0 -1
- /package/dist/v2/{hooks → features/app/hooks}/use-document-watcher.d.ts +0 -0
- /package/dist/v2/{hooks → features/app/hooks}/use-document-watcher.js +0 -0
- /package/dist/v2/{hooks → features/app/hooks}/use-workspace-selector.d.ts +0 -0
|
@@ -1,43 +1,44 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
import
|
|
3
|
-
import
|
|
4
|
-
const
|
|
1
|
+
import { defineComponent as f, computed as d, createElementBlock as s, openBlock as a, withModifiers as y, createCommentVNode as m, createBlock as x, normalizeClass as n, Fragment as g, renderList as k, createElementVNode as u, toDisplayString as w, unref as B, withCtx as U, createVNode as C } from "vue";
|
|
2
|
+
import A from "./RequestAuthTab.vue.js";
|
|
3
|
+
import z from "../../../components/data-table/DataTable.vue.js";
|
|
4
|
+
const N = ["onClick"], O = { class: "relative z-10 font-medium whitespace-nowrap" }, T = {
|
|
5
5
|
key: 0,
|
|
6
6
|
class: "absolute inset-x-1 bottom-[var(--scalar-border-width)] left-1/2 z-1 h-px w-full -translate-x-1/2 bg-current"
|
|
7
|
-
}, E = /* @__PURE__ */
|
|
7
|
+
}, E = /* @__PURE__ */ f({
|
|
8
8
|
__name: "RequestAuthDataTable",
|
|
9
9
|
props: {
|
|
10
10
|
environment: {},
|
|
11
11
|
isStatic: { type: Boolean },
|
|
12
12
|
selectedSchemeOptions: {},
|
|
13
13
|
activeAuthIndex: {},
|
|
14
|
+
proxyUrl: {},
|
|
14
15
|
securitySchemes: { default: () => ({}) },
|
|
15
16
|
server: {},
|
|
16
17
|
eventBus: {},
|
|
17
18
|
meta: {}
|
|
18
19
|
},
|
|
19
20
|
setup(t, { expose: h }) {
|
|
20
|
-
const
|
|
21
|
+
const r = d(
|
|
21
22
|
() => t.selectedSchemeOptions[t.activeAuthIndex]
|
|
22
23
|
), v = d(() => t.selectedSchemeOptions.length > 1), b = (e) => t.eventBus.emit("auth:update:active-index", {
|
|
23
24
|
index: e,
|
|
24
25
|
meta: t.meta
|
|
25
|
-
}),
|
|
26
|
+
}), p = (e) => t.eventBus.emit("auth:update:security-scheme", {
|
|
26
27
|
payload: e,
|
|
27
|
-
name:
|
|
28
|
-
}),
|
|
28
|
+
name: r.value?.id ?? ""
|
|
29
|
+
}), S = (e) => t.eventBus.emit("auth:update:selected-scopes", {
|
|
29
30
|
...e,
|
|
30
31
|
meta: t.meta
|
|
31
32
|
}), c = (e) => t.activeAuthIndex === e;
|
|
32
33
|
return h({
|
|
33
|
-
activeScheme:
|
|
34
|
+
activeScheme: r
|
|
34
35
|
}), (e, o) => (a(), s("form", {
|
|
35
36
|
onSubmit: o[0] || (o[0] = y(() => {
|
|
36
37
|
}, ["prevent"]))
|
|
37
38
|
}, [
|
|
38
39
|
v.value ? (a(), s("div", {
|
|
39
40
|
key: 0,
|
|
40
|
-
class:
|
|
41
|
+
class: n(["box-content flex flex-wrap gap-x-2.5 overflow-hidden border border-b-0 px-3", { "border-x-0": !e.isStatic }]),
|
|
41
42
|
"data-testid": "auth-tabs"
|
|
42
43
|
}, [
|
|
43
44
|
(a(!0), s(g, null, k(e.selectedSchemeOptions, (l, i) => (a(), s("div", {
|
|
@@ -45,36 +46,37 @@ const O = ["onClick"], T = { class: "relative z-10 font-medium whitespace-nowrap
|
|
|
45
46
|
class: "relative z-1 -mb-[var(--scalar-border-width)] flex h-8"
|
|
46
47
|
}, [
|
|
47
48
|
u("button", {
|
|
48
|
-
class:
|
|
49
|
+
class: n(["floating-bg relative cursor-pointer border-b border-transparent py-1 text-sm font-medium transition-colors", c(i) ? "text-c-1" : "text-c-3"]),
|
|
49
50
|
type: "button",
|
|
50
51
|
onClick: (I) => b(i)
|
|
51
52
|
}, [
|
|
52
|
-
u("span",
|
|
53
|
-
], 10,
|
|
54
|
-
c(i) ? (a(), s("div",
|
|
53
|
+
u("span", O, w(l.label), 1)
|
|
54
|
+
], 10, N),
|
|
55
|
+
c(i) ? (a(), s("div", T)) : m("", !0)
|
|
55
56
|
]))), 128))
|
|
56
57
|
], 2)) : m("", !0),
|
|
57
|
-
|
|
58
|
+
r.value ? (a(), x(B(z), {
|
|
58
59
|
key: 1,
|
|
59
|
-
class:
|
|
60
|
+
class: n(["flex-1", { "bg-b-1 rounded-b-lg border border-t-0": e.isStatic }]),
|
|
60
61
|
columns: [""],
|
|
61
62
|
presentational: ""
|
|
62
63
|
}, {
|
|
63
|
-
default:
|
|
64
|
-
A
|
|
64
|
+
default: U(() => [
|
|
65
|
+
C(A, {
|
|
65
66
|
environment: e.environment,
|
|
66
67
|
isStatic: e.isStatic,
|
|
68
|
+
proxyUrl: e.proxyUrl,
|
|
67
69
|
securitySchemes: e.securitySchemes,
|
|
68
|
-
selectedSecuritySchemas:
|
|
70
|
+
selectedSecuritySchemas: r.value.value,
|
|
69
71
|
server: e.server,
|
|
70
|
-
"onUpdate:securityScheme":
|
|
71
|
-
"onUpdate:selectedScopes":
|
|
72
|
-
}, null, 8, ["environment", "isStatic", "securitySchemes", "selectedSecuritySchemas", "server"])
|
|
72
|
+
"onUpdate:securityScheme": p,
|
|
73
|
+
"onUpdate:selectedScopes": S
|
|
74
|
+
}, null, 8, ["environment", "isStatic", "proxyUrl", "securitySchemes", "selectedSecuritySchemas", "server"])
|
|
73
75
|
]),
|
|
74
76
|
_: 1
|
|
75
77
|
}, 8, ["class"])) : (a(), s("div", {
|
|
76
78
|
key: 2,
|
|
77
|
-
class:
|
|
79
|
+
class: n(["bg-b-1 text-c-3 flex min-h-16 items-center justify-center border-t px-4 text-sm", { "min-h-[calc(4rem+0.5px)] rounded-b-lg border": e.isStatic }])
|
|
78
80
|
}, " No authentication selected ", 2))
|
|
79
81
|
], 32));
|
|
80
82
|
}
|
|
@@ -4,9 +4,10 @@ type __VLS_Props = {
|
|
|
4
4
|
environment: XScalarEnvironment;
|
|
5
5
|
/** Controls the display of certain borders which are used when we are non-collapsible */
|
|
6
6
|
isStatic: boolean;
|
|
7
|
+
proxyUrl: string;
|
|
7
8
|
selectedSecuritySchemas: SecurityRequirementObject;
|
|
8
9
|
securitySchemes: NonNullable<ComponentsObject['securitySchemes']>;
|
|
9
|
-
server: ServerObject |
|
|
10
|
+
server: ServerObject | null;
|
|
10
11
|
};
|
|
11
12
|
declare const _default: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {} & {
|
|
12
13
|
"update:selectedScopes": (payload: Omit<{
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"RequestAuthTab.vue.d.ts","sourceRoot":"","sources":["../../../../../src/v2/blocks/scalar-auth-selector-block/components/RequestAuthTab.vue"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"RequestAuthTab.vue.d.ts","sourceRoot":"","sources":["../../../../../src/v2/blocks/scalar-auth-selector-block/components/RequestAuthTab.vue"],"names":[],"mappings":"AAmTA,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,QAAQ,EAAE,MAAM,CAAA;IAChB,uBAAuB,EAAE,yBAAyB,CAAA;IAClD,eAAe,EAAE,WAAW,CAAC,gBAAgB,CAAC,iBAAiB,CAAC,CAAC,CAAA;IACjE,MAAM,EAAE,YAAY,GAAG,IAAI,CAAA;CAC5B,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAmiBF,wBAOG"}
|
|
@@ -1,29 +1,30 @@
|
|
|
1
|
-
import { defineComponent as A, computed as N, ref as P, createElementBlock as s, openBlock as
|
|
1
|
+
import { defineComponent as A, computed as N, ref as P, createElementBlock as s, openBlock as o, Fragment as d, renderList as U, createBlock as v, createCommentVNode as m, unref as i, withCtx as l, createVNode as n, createElementVNode as k, toDisplayString as R, createTextVNode as y, normalizeClass as z, capitalize as Q } from "vue";
|
|
2
2
|
import { ScalarMarkdownSummary as q } from "@scalar/components";
|
|
3
3
|
import { getResolvedRef as D } from "@scalar/workspace-store/helpers/get-resolved-ref";
|
|
4
4
|
import E from "./OAuth2.vue.js";
|
|
5
5
|
import b from "./RequestAuthDataTableInput.vue.js";
|
|
6
6
|
import c from "../../../components/data-table/DataTableRow.vue.js";
|
|
7
7
|
import I from "../../../components/data-table/DataTableCell.vue.js";
|
|
8
|
-
const H = { class: "bg-b-1 text-c-2 outline-b-3 top-0 z-1 h-full w-full overflow-hidden px-3 py-1.25 text-ellipsis group-hover/auth:absolute group-hover/auth:h-auto group-hover/auth:border-b *:first:line-clamp-1 *:first:text-ellipsis group-hover/auth:*:first:line-clamp-none" }, L = { class: "flex min-h-8 border-t text-base" },
|
|
8
|
+
const H = { class: "bg-b-1 text-c-2 outline-b-3 top-0 z-1 h-full w-full overflow-hidden px-3 py-1.25 text-ellipsis group-hover/auth:absolute group-hover/auth:h-auto group-hover/auth:border-b *:first:line-clamp-1 *:first:text-ellipsis group-hover/auth:*:first:line-clamp-none" }, L = { class: "flex min-h-8 border-t text-base" }, G = { class: "flex h-8 max-w-full gap-2.5 overflow-x-auto px-3" }, J = ["onClick"], W = { class: "relative z-10" }, oe = /* @__PURE__ */ A({
|
|
9
9
|
__name: "RequestAuthTab",
|
|
10
10
|
props: {
|
|
11
11
|
environment: {},
|
|
12
12
|
isStatic: { type: Boolean },
|
|
13
|
+
proxyUrl: {},
|
|
13
14
|
selectedSecuritySchemas: {},
|
|
14
15
|
securitySchemes: {},
|
|
15
16
|
server: {}
|
|
16
17
|
},
|
|
17
18
|
emits: ["update:securityScheme", "update:selectedScopes"],
|
|
18
19
|
setup(f, { emit: K }) {
|
|
19
|
-
const x = K,
|
|
20
|
-
() => Object.entries(f.selectedSecuritySchemas).map(([
|
|
21
|
-
scheme: D(f.securitySchemes[
|
|
22
|
-
name:
|
|
20
|
+
const x = K, C = N(
|
|
21
|
+
() => Object.entries(f.selectedSecuritySchemas).map(([r, e = []]) => ({
|
|
22
|
+
scheme: D(f.securitySchemes[r]),
|
|
23
|
+
name: r,
|
|
23
24
|
scopes: e
|
|
24
25
|
}))
|
|
25
|
-
), w = P(""), h = N(() =>
|
|
26
|
-
const t = Q(
|
|
26
|
+
), w = P(""), h = N(() => C.value.length > 1), F = (r, e) => {
|
|
27
|
+
const t = Q(r), u = e.description ? `: ${e.description}` : "";
|
|
27
28
|
switch (e.type) {
|
|
28
29
|
case "apiKey":
|
|
29
30
|
return `${t}${u || `: ${e.in}`}`;
|
|
@@ -36,24 +37,24 @@ const H = { class: "bg-b-1 text-c-2 outline-b-3 top-0 z-1 h-full w-full overflow
|
|
|
36
37
|
default:
|
|
37
38
|
return `${t}${u || `: ${e.type}`}`;
|
|
38
39
|
}
|
|
39
|
-
}, T = (
|
|
40
|
+
}, T = (r, e) => w.value === r || e === 0 && !w.value, B = () => f.isStatic && "border-t", g = (r, e) => x("update:securityScheme", {
|
|
40
41
|
type: "http",
|
|
41
|
-
[
|
|
42
|
-
}), j = (
|
|
42
|
+
[r]: e
|
|
43
|
+
}), j = (r, e) => x("update:securityScheme", {
|
|
43
44
|
type: "apiKey",
|
|
44
|
-
[
|
|
45
|
-
}), M = (
|
|
45
|
+
[r]: e
|
|
46
|
+
}), M = (r, e) => {
|
|
46
47
|
x("update:selectedScopes", {
|
|
47
48
|
id: Object.keys(f.selectedSecuritySchemas),
|
|
48
|
-
name:
|
|
49
|
+
name: r,
|
|
49
50
|
...e
|
|
50
51
|
});
|
|
51
|
-
}, O = (
|
|
52
|
+
}, O = (r, e) => {
|
|
52
53
|
const t = "floating-bg text-c-3 relative cursor-pointer border-b border-transparent py-1 text-base font-medium";
|
|
53
|
-
return T(
|
|
54
|
+
return T(r, e) ? `${t} !text-c-1 !rounded-none border-b !border-current ${f.isStatic ? "opacity-100" : ""}` : t;
|
|
54
55
|
};
|
|
55
|
-
return (
|
|
56
|
-
h.value && t ? (
|
|
56
|
+
return (r, e) => (o(!0), s(d, null, U(C.value, ({ scheme: t, name: u, scopes: V }) => (o(), s(d, { key: u }, [
|
|
57
|
+
h.value && t ? (o(), v(i(c), { key: 0 }, {
|
|
57
58
|
default: l(() => [
|
|
58
59
|
n(i(I), {
|
|
59
60
|
"aria-label": F(u, t),
|
|
@@ -67,7 +68,7 @@ const H = { class: "bg-b-1 text-c-2 outline-b-3 top-0 z-1 h-full w-full overflow
|
|
|
67
68
|
]),
|
|
68
69
|
_: 2
|
|
69
70
|
}, 1024)) : m("", !0),
|
|
70
|
-
t?.description && !h.value ? (
|
|
71
|
+
t?.description && !h.value ? (o(), v(i(c), { key: 1 }, {
|
|
71
72
|
default: l(() => [
|
|
72
73
|
n(i(I), {
|
|
73
74
|
"aria-label": t.description,
|
|
@@ -84,12 +85,12 @@ const H = { class: "bg-b-1 text-c-2 outline-b-3 top-0 z-1 h-full w-full overflow
|
|
|
84
85
|
]),
|
|
85
86
|
_: 2
|
|
86
87
|
}, 1024)) : m("", !0),
|
|
87
|
-
t?.type === "http" ? (
|
|
88
|
-
t.scheme === "bearer" ? (
|
|
88
|
+
t?.type === "http" ? (o(), s(d, { key: 2 }, [
|
|
89
|
+
t.scheme === "bearer" ? (o(), v(i(c), { key: 0 }, {
|
|
89
90
|
default: l(() => [
|
|
90
91
|
n(b, {
|
|
91
92
|
containerClass: B(),
|
|
92
|
-
environment:
|
|
93
|
+
environment: r.environment,
|
|
93
94
|
modelValue: t["x-scalar-secret-token"],
|
|
94
95
|
placeholder: "Token",
|
|
95
96
|
type: "password",
|
|
@@ -102,12 +103,12 @@ const H = { class: "bg-b-1 text-c-2 outline-b-3 top-0 z-1 h-full w-full overflow
|
|
|
102
103
|
}, 8, ["containerClass", "environment", "modelValue"])
|
|
103
104
|
]),
|
|
104
105
|
_: 2
|
|
105
|
-
}, 1024)) : t?.scheme === "basic" ? (
|
|
106
|
+
}, 1024)) : t?.scheme === "basic" ? (o(), s(d, { key: 1 }, [
|
|
106
107
|
n(i(c), null, {
|
|
107
108
|
default: l(() => [
|
|
108
109
|
n(b, {
|
|
109
110
|
class: "text-c-2",
|
|
110
|
-
environment:
|
|
111
|
+
environment: r.environment,
|
|
111
112
|
modelValue: t["x-scalar-secret-username"],
|
|
112
113
|
placeholder: "janedoe",
|
|
113
114
|
required: "",
|
|
@@ -124,7 +125,7 @@ const H = { class: "bg-b-1 text-c-2 outline-b-3 top-0 z-1 h-full w-full overflow
|
|
|
124
125
|
n(i(c), null, {
|
|
125
126
|
default: l(() => [
|
|
126
127
|
n(b, {
|
|
127
|
-
environment:
|
|
128
|
+
environment: r.environment,
|
|
128
129
|
modelValue: t["x-scalar-secret-password"],
|
|
129
130
|
placeholder: "********",
|
|
130
131
|
type: "password",
|
|
@@ -139,12 +140,12 @@ const H = { class: "bg-b-1 text-c-2 outline-b-3 top-0 z-1 h-full w-full overflow
|
|
|
139
140
|
_: 2
|
|
140
141
|
}, 1024)
|
|
141
142
|
], 64)) : m("", !0)
|
|
142
|
-
], 64)) : t?.type === "apiKey" ? (
|
|
143
|
+
], 64)) : t?.type === "apiKey" ? (o(), s(d, { key: 3 }, [
|
|
143
144
|
n(i(c), null, {
|
|
144
145
|
default: l(() => [
|
|
145
146
|
n(b, {
|
|
146
147
|
containerClass: B(),
|
|
147
|
-
environment:
|
|
148
|
+
environment: r.environment,
|
|
148
149
|
modelValue: t.name,
|
|
149
150
|
placeholder: "api-key",
|
|
150
151
|
"onUpdate:modelValue": e[3] || (e[3] = (a) => j("name", a))
|
|
@@ -160,7 +161,7 @@ const H = { class: "bg-b-1 text-c-2 outline-b-3 top-0 z-1 h-full w-full overflow
|
|
|
160
161
|
n(i(c), null, {
|
|
161
162
|
default: l(() => [
|
|
162
163
|
n(b, {
|
|
163
|
-
environment:
|
|
164
|
+
environment: r.environment,
|
|
164
165
|
modelValue: t["x-scalar-secret-token"],
|
|
165
166
|
placeholder: "QUxMIFlPVVIgQkFTRSBBUkUgQkVMT05HIFRPIFVT",
|
|
166
167
|
type: "password",
|
|
@@ -174,44 +175,44 @@ const H = { class: "bg-b-1 text-c-2 outline-b-3 top-0 z-1 h-full w-full overflow
|
|
|
174
175
|
]),
|
|
175
176
|
_: 2
|
|
176
177
|
}, 1024)
|
|
177
|
-
], 64)) : t?.type === "oauth2" ? (
|
|
178
|
-
Object.keys(t.flows).length > 1 ? (
|
|
178
|
+
], 64)) : t?.type === "oauth2" ? (o(), s(d, { key: 4 }, [
|
|
179
|
+
Object.keys(t.flows).length > 1 ? (o(), v(i(c), { key: 0 }, {
|
|
179
180
|
default: l(() => [
|
|
180
181
|
k("div", L, [
|
|
181
|
-
k("div",
|
|
182
|
-
(
|
|
182
|
+
k("div", G, [
|
|
183
|
+
(o(!0), s(d, null, U(t.flows, (a, p, $) => (o(), s("button", {
|
|
183
184
|
key: p,
|
|
184
185
|
class: z(O(p, $)),
|
|
185
186
|
type: "button",
|
|
186
187
|
onClick: (S) => w.value = p
|
|
187
188
|
}, [
|
|
188
|
-
k("span",
|
|
189
|
-
], 10,
|
|
189
|
+
k("span", W, R(p), 1)
|
|
190
|
+
], 10, J))), 128))
|
|
190
191
|
])
|
|
191
192
|
])
|
|
192
193
|
]),
|
|
193
194
|
_: 2
|
|
194
195
|
}, 1024)) : m("", !0),
|
|
195
|
-
(
|
|
196
|
-
T(p, $) ? (
|
|
196
|
+
(o(!0), s(d, null, U(t.flows, (a, p, $) => (o(), s(d, { key: p }, [
|
|
197
|
+
T(p, $) ? (o(), v(E, {
|
|
197
198
|
key: 0,
|
|
198
|
-
environment:
|
|
199
|
+
environment: r.environment,
|
|
199
200
|
flows: t.flows,
|
|
200
|
-
proxyUrl:
|
|
201
|
+
proxyUrl: r.proxyUrl,
|
|
201
202
|
selectedScopes: V,
|
|
202
|
-
server:
|
|
203
|
+
server: r.server,
|
|
203
204
|
type: p,
|
|
204
205
|
"onUpdate:securityScheme": e[5] || (e[5] = (S) => x("update:securityScheme", S)),
|
|
205
206
|
"onUpdate:selectedScopes": (S) => M(u, S)
|
|
206
|
-
}, null, 8, ["environment", "flows", "selectedScopes", "server", "type", "onUpdate:selectedScopes"])) : m("", !0)
|
|
207
|
+
}, null, 8, ["environment", "flows", "proxyUrl", "selectedScopes", "server", "type", "onUpdate:selectedScopes"])) : m("", !0)
|
|
207
208
|
], 64))), 128))
|
|
208
|
-
], 64)) : t?.type === "openIdConnect" ? (
|
|
209
|
+
], 64)) : t?.type === "openIdConnect" ? (o(), s("div", {
|
|
209
210
|
key: 5,
|
|
210
|
-
class: z(["text-c-3 bg-b-1 flex min-h-[calc(4rem+1px)] items-center justify-center border-t border-b-0 px-4 text-base", { "rounded-b-lg":
|
|
211
|
+
class: z(["text-c-3 bg-b-1 flex min-h-[calc(4rem+1px)] items-center justify-center border-t border-b-0 px-4 text-base", { "rounded-b-lg": r.isStatic }])
|
|
211
212
|
}, " Coming soon ", 2)) : m("", !0)
|
|
212
213
|
], 64))), 128));
|
|
213
214
|
}
|
|
214
215
|
});
|
|
215
216
|
export {
|
|
216
|
-
|
|
217
|
+
oe as default
|
|
217
218
|
};
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import type { OpenApiDocument } from '@scalar/workspace-store/schemas/v3.1/strict/openapi-document';
|
|
2
|
+
/** Determines if the authentication is optional */
|
|
3
|
+
export declare const isAuthOptional: (securityRequirements: NonNullable<OpenApiDocument["security"]>) => boolean;
|
|
4
|
+
//# sourceMappingURL=is-auth-optional.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"is-auth-optional.d.ts","sourceRoot":"","sources":["../../../../../src/v2/blocks/scalar-auth-selector-block/helpers/is-auth-optional.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,8DAA8D,CAAA;AAEnG,mDAAmD;AACnD,eAAO,MAAM,cAAc,GAAI,sBAAsB,WAAW,CAAC,eAAe,CAAC,UAAU,CAAC,CAAC,KAAG,OAK/F,CAAA"}
|
|
@@ -18,9 +18,9 @@ export declare const generateCodeChallenge: (verifier: string, encoding: "SHA-25
|
|
|
18
18
|
*/
|
|
19
19
|
export declare const authorizeOauth2: (flows: OAuthFlowsObject, type: keyof OAuthFlowsObject, selectedScopes: string[],
|
|
20
20
|
/** We use the active server to set a base for relative redirect uris */
|
|
21
|
-
activeServer: ServerObject |
|
|
21
|
+
activeServer: ServerObject | null,
|
|
22
22
|
/** If we want to use the proxy */
|
|
23
|
-
proxyUrl
|
|
23
|
+
proxyUrl: string) => Promise<ErrorResponse<string>>;
|
|
24
24
|
/**
|
|
25
25
|
* Makes the BE authorization call to grab the token server to server
|
|
26
26
|
* Used for clientCredentials and authorizationCode
|
|
@@ -28,7 +28,7 @@ proxyUrl?: string) => Promise<ErrorResponse<string>>;
|
|
|
28
28
|
export declare const authorizeServers: (flows: NonImplicitFlow, type: keyof NonImplicitFlow, scopes: string, { code, pkce, proxyUrl, }: {
|
|
29
29
|
code?: string;
|
|
30
30
|
pkce?: PKCEState | null;
|
|
31
|
-
proxyUrl?: string
|
|
32
|
-
} | undefined, activeServer: ServerObject |
|
|
31
|
+
proxyUrl?: string;
|
|
32
|
+
} | undefined, activeServer: ServerObject | null) => Promise<ErrorResponse<string>>;
|
|
33
33
|
export {};
|
|
34
34
|
//# sourceMappingURL=oauth.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"oauth.d.ts","sourceRoot":"","sources":["../../../../../src/v2/blocks/scalar-auth-selector-block/helpers/oauth.ts"],"names":[],"mappings":"AAEA,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,CAkB3G,CAAA;AAED;;;;GAIG;AACH,eAAO,MAAM,eAAe,GAC1B,OAAO,gBAAgB,EACvB,MAAM,MAAM,gBAAgB,EAC5B,gBAAgB,MAAM,EAAE;AACxB,wEAAwE;AACxE,cAAc,YAAY,GAAG,
|
|
1
|
+
{"version":3,"file":"oauth.d.ts","sourceRoot":"","sources":["../../../../../src/v2/blocks/scalar-auth-selector-block/helpers/oauth.ts"],"names":[],"mappings":"AAEA,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,CAkB3G,CAAA;AAED;;;;GAIG;AACH,eAAO,MAAM,eAAe,GAC1B,OAAO,gBAAgB,EACvB,MAAM,MAAM,gBAAgB,EAC5B,gBAAgB,MAAM,EAAE;AACxB,wEAAwE;AACxE,cAAc,YAAY,GAAG,IAAI;AACjC,kCAAkC;AAClC,UAAU,MAAM,KACf,OAAO,CAAC,aAAa,CAAC,MAAM,CAAC,CAmL/B,CAAA;AAED;;;GAGG;AACH,eAAO,MAAM,gBAAgB,GAC3B,OAAO,eAAe,EACtB,MAAM,MAAM,eAAe,EAC3B,QAAQ,MAAM,EACd,2BAIG;IACD,IAAI,CAAC,EAAE,MAAM,CAAA;IACb,IAAI,CAAC,EAAE,SAAS,GAAG,IAAI,CAAA;IACvB,QAAQ,CAAC,EAAE,MAAM,CAAA;CAClB,YAAK,EACN,cAAc,YAAY,GAAG,IAAI,KAChC,OAAO,CAAC,aAAa,CAAC,MAAM,CAAC,CA+F/B,CAAA"}
|
|
@@ -7,13 +7,13 @@ export declare const formatScheme: ({ name, type, value, }: {
|
|
|
7
7
|
}) => {
|
|
8
8
|
id: string;
|
|
9
9
|
label: string;
|
|
10
|
-
value:
|
|
10
|
+
value: Partial<Record<string, string[]>>;
|
|
11
11
|
};
|
|
12
12
|
/** Formats complex security schemes */
|
|
13
13
|
export declare const formatComplexScheme: (scheme: NonNullable<OpenApiDocument["security"]>[number]) => {
|
|
14
14
|
id: string;
|
|
15
15
|
label: string;
|
|
16
|
-
value:
|
|
16
|
+
value: Partial<Record<string, string[]>>;
|
|
17
17
|
};
|
|
18
18
|
export type SecuritySchemeOption = {
|
|
19
19
|
id: string;
|
|
@@ -3,7 +3,7 @@ import type { XScalarEnvironment } from '@scalar/workspace-store/schemas/extensi
|
|
|
3
3
|
import { type Ref } from 'vue';
|
|
4
4
|
import type { ClientLayout } from '../../../v2/types/layout';
|
|
5
5
|
declare const _default: __VLS_WithSlots<import("vue").DefineComponent<{
|
|
6
|
-
modelValue: string | number;
|
|
6
|
+
modelValue: string | number | boolean;
|
|
7
7
|
/** Environment for variable substitution. Pass undefined to disable environment variables */
|
|
8
8
|
environment: XScalarEnvironment | undefined;
|
|
9
9
|
/** Type of the input value, affects rendering mode for booleans */
|
|
@@ -19,7 +19,7 @@ declare const _default: __VLS_WithSlots<import("vue").DefineComponent<{
|
|
|
19
19
|
/** Example values, triggers select mode */
|
|
20
20
|
examples?: string[];
|
|
21
21
|
/** Default value to show in select mode */
|
|
22
|
-
default?: string | number;
|
|
22
|
+
default?: string | number | boolean;
|
|
23
23
|
/** Allow null in boolean select options */
|
|
24
24
|
nullable?: boolean;
|
|
25
25
|
/** Placeholder text for empty input */
|
|
@@ -50,19 +50,27 @@ declare const _default: __VLS_WithSlots<import("vue").DefineComponent<{
|
|
|
50
50
|
withVariables?: boolean;
|
|
51
51
|
/** Detect and emit curl commands */
|
|
52
52
|
importCurl?: boolean;
|
|
53
|
+
/** Emit change event even if the value is the same */
|
|
54
|
+
alwaysEmitChange?: boolean;
|
|
53
55
|
/** Custom change handler, prevents default emit */
|
|
54
56
|
handleFieldChange?: (value: string) => void;
|
|
55
57
|
/** Custom submit handler, prevents default emit */
|
|
56
58
|
handleFieldSubmit?: (value: string) => void;
|
|
57
59
|
}, {
|
|
58
|
-
|
|
60
|
+
/**
|
|
61
|
+
* Focus the codemirror element
|
|
62
|
+
*
|
|
63
|
+
* @param cursorAtEnd boolean place the cursor at the end of the input
|
|
64
|
+
*/
|
|
65
|
+
focus: (position?: "start" | "end" | number) => void;
|
|
59
66
|
isFocused: Ref<boolean, boolean>;
|
|
60
67
|
handleChange: (value: string) => void;
|
|
61
68
|
handleSubmit: (value: string) => void;
|
|
62
69
|
handleBlur: (value: string) => void;
|
|
63
70
|
booleanOptions: import("vue").ComputedRef<string[]>;
|
|
64
71
|
codeMirror: Ref<import("@codemirror/view").EditorView | null, import("@codemirror/view").EditorView | null>;
|
|
65
|
-
modelValue: string | number;
|
|
72
|
+
modelValue: string | number | boolean;
|
|
73
|
+
cursorPosition: () => number | undefined;
|
|
66
74
|
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
67
75
|
submit: (value: string) => any;
|
|
68
76
|
redirectToEnvironment: () => any;
|
|
@@ -70,7 +78,7 @@ declare const _default: __VLS_WithSlots<import("vue").DefineComponent<{
|
|
|
70
78
|
blur: (value: string) => any;
|
|
71
79
|
curl: (value: string) => any;
|
|
72
80
|
}, string, import("vue").PublicProps, Readonly<{
|
|
73
|
-
modelValue: string | number;
|
|
81
|
+
modelValue: string | number | boolean;
|
|
74
82
|
/** Environment for variable substitution. Pass undefined to disable environment variables */
|
|
75
83
|
environment: XScalarEnvironment | undefined;
|
|
76
84
|
/** Type of the input value, affects rendering mode for booleans */
|
|
@@ -86,7 +94,7 @@ declare const _default: __VLS_WithSlots<import("vue").DefineComponent<{
|
|
|
86
94
|
/** Example values, triggers select mode */
|
|
87
95
|
examples?: string[];
|
|
88
96
|
/** Default value to show in select mode */
|
|
89
|
-
default?: string | number;
|
|
97
|
+
default?: string | number | boolean;
|
|
90
98
|
/** Allow null in boolean select options */
|
|
91
99
|
nullable?: boolean;
|
|
92
100
|
/** Placeholder text for empty input */
|
|
@@ -117,6 +125,8 @@ declare const _default: __VLS_WithSlots<import("vue").DefineComponent<{
|
|
|
117
125
|
withVariables?: boolean;
|
|
118
126
|
/** Detect and emit curl commands */
|
|
119
127
|
importCurl?: boolean;
|
|
128
|
+
/** Emit change event even if the value is the same */
|
|
129
|
+
alwaysEmitChange?: boolean;
|
|
120
130
|
/** Custom change handler, prevents default emit */
|
|
121
131
|
handleFieldChange?: (value: string) => void;
|
|
122
132
|
/** Custom submit handler, prevents default emit */
|
|
@@ -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":"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"}
|
|
@@ -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
|
|
5
|
+
const d = /* @__PURE__ */ t(o, [["__scopeId", "data-v-bd9d3fab"]]);
|
|
6
6
|
export {
|
|
7
|
-
|
|
7
|
+
d as default
|
|
8
8
|
};
|