@scalar/api-client 2.9.1 → 2.11.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 +50 -0
- package/README.md +2 -2
- package/dist/components/ImportCollection/IntegrationLogo.vue.d.ts.map +1 -1
- package/dist/components/ImportCollection/IntegrationLogo.vue.js +1 -0
- package/dist/components/Server/ServerVariablesForm.vue.d.ts.map +1 -1
- package/dist/components/Server/ServerVariablesForm.vue.js +6 -6
- package/dist/components/Sidebar/Actions/SidebarListElementForm.vue.d.ts.map +1 -1
- package/dist/components/Sidebar/Actions/SidebarListElementForm.vue.js +1 -1
- package/dist/components/Sidebar/Actions/SidebarListElementForm.vue2.js +14 -13
- package/dist/hooks/useClientConfig.d.ts +3 -3
- package/dist/layouts/App/create-api-client-app.d.ts +1 -1
- package/dist/layouts/Web/create-api-client-web.d.ts +1 -1
- package/dist/libs/create-client.d.ts +1 -1
- package/dist/libs/send-request/build-request-security.d.ts.map +1 -1
- package/dist/libs/send-request/build-request-security.js +1 -1
- package/dist/libs/send-request/create-fetch-query-params.d.ts.map +1 -1
- package/dist/store/store.d.ts +1 -1
- package/dist/style.css +1 -1
- package/dist/v2/blocks/operation-block/OperationBlock.vue.d.ts +87 -0
- package/dist/v2/blocks/operation-block/OperationBlock.vue.d.ts.map +1 -0
- package/dist/v2/blocks/operation-block/OperationBlock.vue.js +126 -0
- package/dist/v2/blocks/operation-block/OperationBlock.vue2.js +4 -0
- package/dist/v2/{features/operation → blocks/operation-block}/components/Header.vue.d.ts +10 -32
- package/dist/v2/blocks/operation-block/components/Header.vue.d.ts.map +1 -0
- package/dist/v2/{features/operation → blocks/operation-block}/components/Header.vue.js +2 -2
- package/dist/v2/blocks/operation-block/components/Header.vue2.js +91 -0
- package/dist/v2/blocks/operation-block/index.d.ts +2 -0
- package/dist/v2/blocks/operation-block/index.d.ts.map +1 -0
- package/dist/v2/blocks/operation-block/index.js +4 -0
- package/dist/v2/blocks/operation-code-sample/components/ExamplePicker.vue.d.ts.map +1 -1
- package/dist/v2/blocks/operation-code-sample/components/ExamplePicker.vue.js +11 -10
- package/dist/v2/blocks/scalar-address-bar-block/components/AddressBar.vue.d.ts +10 -29
- 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 +1 -1
- package/dist/v2/blocks/scalar-address-bar-block/components/AddressBar.vue2.js +52 -53
- package/dist/v2/blocks/scalar-auth-selector-block/components/AuthSelector.vue.d.ts +15 -34
- 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 +179 -5
- package/dist/v2/blocks/scalar-auth-selector-block/components/AuthSelector.vue2.js +2 -169
- package/dist/v2/blocks/scalar-auth-selector-block/components/OAuth2.vue.js +201 -198
- package/dist/v2/blocks/scalar-auth-selector-block/components/RequestAuthDataTable.vue.d.ts +17 -22
- 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 +82 -5
- package/dist/v2/blocks/scalar-auth-selector-block/components/RequestAuthDataTable.vue2.js +2 -80
- package/dist/v2/blocks/scalar-auth-selector-block/components/RequestAuthDataTableInput.vue.d.ts +3 -13
- package/dist/v2/blocks/scalar-auth-selector-block/components/RequestAuthDataTableInput.vue.d.ts.map +1 -1
- package/dist/v2/blocks/scalar-auth-selector-block/components/RequestAuthDataTableInput.vue.js +16 -18
- package/dist/v2/blocks/scalar-auth-selector-block/components/RequestAuthTab.vue.js +134 -144
- package/dist/v2/blocks/scalar-auth-selector-block/helpers/oauth.d.ts +1 -1
- package/dist/v2/blocks/scalar-auth-selector-block/helpers/oauth.d.ts.map +1 -1
- package/dist/v2/blocks/scalar-auth-selector-block/helpers/oauth.js +47 -45
- package/dist/v2/blocks/scalar-auth-selector-block/helpers/security-scheme.d.ts +5 -5
- package/dist/v2/blocks/scalar-auth-selector-block/helpers/security-scheme.d.ts.map +1 -1
- package/dist/v2/blocks/scalar-auth-selector-block/helpers/security-scheme.js +7 -7
- package/dist/v2/blocks/scalar-operation-block/components/OperationBlock.vue.d.ts +7 -24
- package/dist/v2/blocks/scalar-operation-block/components/OperationBlock.vue.d.ts.map +1 -1
- package/dist/v2/blocks/scalar-operation-block/components/OperationBlock.vue.js +2 -2
- package/dist/v2/blocks/scalar-operation-block/components/OperationBlock.vue2.js +230 -208
- package/dist/v2/blocks/scalar-operation-block/components/OperationBody.vue.d.ts +33 -30
- package/dist/v2/blocks/scalar-operation-block/components/OperationBody.vue.d.ts.map +1 -1
- package/dist/v2/blocks/scalar-operation-block/components/OperationBody.vue.js +2 -2
- package/dist/v2/blocks/scalar-operation-block/components/OperationBody.vue2.js +138 -99
- package/dist/v2/blocks/scalar-operation-block/components/OperationParams.vue.d.ts +3 -5
- package/dist/v2/blocks/scalar-operation-block/components/OperationParams.vue.d.ts.map +1 -1
- package/dist/v2/blocks/scalar-operation-block/components/OperationParams.vue.js +35 -35
- package/dist/v2/blocks/scalar-operation-block/components/OperationTable.vue.d.ts +3 -5
- package/dist/v2/blocks/scalar-operation-block/components/OperationTable.vue.d.ts.map +1 -1
- package/dist/v2/blocks/scalar-operation-block/components/OperationTable.vue.js +1 -1
- package/dist/v2/blocks/scalar-operation-block/components/OperationTable.vue2.js +45 -44
- package/dist/v2/blocks/scalar-operation-block/components/OperationTableRow.vue.d.ts +2 -5
- package/dist/v2/blocks/scalar-operation-block/components/OperationTableRow.vue.d.ts.map +1 -1
- package/dist/v2/blocks/scalar-operation-block/components/OperationTableRow.vue.js +67 -65
- package/dist/v2/blocks/scalar-response-block/components/Headers.vue.d.ts +2 -2
- package/dist/v2/blocks/scalar-response-block/components/Headers.vue.d.ts.map +1 -1
- package/dist/v2/blocks/scalar-response-block/components/Headers.vue.js +9 -9
- package/dist/v2/blocks/scalar-response-block/components/ResponseBlock.vue.d.ts +2 -4
- package/dist/v2/blocks/scalar-response-block/components/ResponseBlock.vue.d.ts.map +1 -1
- package/dist/v2/blocks/scalar-response-block/components/ResponseBlock.vue.js +3 -3
- package/dist/v2/blocks/scalar-response-block/components/ResponseBlock.vue2.js +39 -38
- package/dist/v2/blocks/scalar-response-block/components/ResponseBody.vue.d.ts.map +1 -1
- package/dist/v2/blocks/scalar-response-block/components/ResponseBody.vue.js +2 -2
- package/dist/v2/blocks/scalar-response-block/components/ResponseBody.vue2.js +18 -18
- package/dist/v2/blocks/scalar-response-block/components/ResponseBodyStreaming.vue.d.ts.map +1 -1
- package/dist/v2/blocks/scalar-response-block/components/ResponseBodyStreaming.vue.js +14 -14
- package/dist/v2/blocks/scalar-response-block/components/ResponseBodyVirtual.vue.d.ts.map +1 -1
- package/dist/v2/blocks/scalar-response-block/components/ResponseBodyVirtual.vue.js +12 -12
- package/dist/v2/blocks/scalar-response-block/components/ResponseCookies.vue.d.ts.map +1 -1
- package/dist/v2/blocks/scalar-response-block/components/ResponseCookies.vue.js +13 -13
- package/dist/v2/components/data-table/DataTable.vue.d.ts.map +1 -1
- package/dist/v2/components/data-table/DataTable.vue.js +4 -4
- package/dist/v2/components/data-table/DataTableInput.vue.d.ts +5 -7
- package/dist/v2/components/data-table/DataTableInput.vue.d.ts.map +1 -1
- package/dist/v2/components/data-table/DataTableInput.vue.js +2 -2
- package/dist/v2/components/data-table/DataTableInput.vue2.js +32 -36
- package/dist/v2/components/forms/ConfirmationForm.vue.d.ts +25 -0
- package/dist/v2/components/forms/ConfirmationForm.vue.d.ts.map +1 -0
- package/dist/v2/components/forms/ConfirmationForm.vue.js +7 -0
- package/dist/v2/components/forms/ConfirmationForm.vue2.js +45 -0
- package/dist/v2/components/forms/index.d.ts +2 -0
- package/dist/v2/components/forms/index.d.ts.map +1 -0
- package/dist/v2/components/forms/index.js +4 -0
- package/dist/v2/components/layout/CollapsibleSection.vue.d.ts +43 -0
- package/dist/v2/components/layout/CollapsibleSection.vue.d.ts.map +1 -0
- package/dist/v2/components/layout/CollapsibleSection.vue.js +89 -0
- package/dist/v2/components/layout/CollapsibleSection.vue2.js +4 -0
- package/dist/v2/components/layout/ValueEmitter.vue.d.ts +23 -0
- package/dist/v2/components/layout/ValueEmitter.vue.d.ts.map +1 -0
- package/dist/v2/components/layout/ValueEmitter.vue.js +21 -0
- package/dist/v2/components/layout/ValueEmitter.vue2.js +4 -0
- package/dist/v2/components/layout/index.d.ts +2 -0
- package/dist/v2/components/layout/index.d.ts.map +1 -0
- package/dist/v2/components/layout/index.js +4 -0
- package/dist/v2/components/modals/DeleteModal.vue.d.ts +15 -0
- package/dist/v2/components/modals/DeleteModal.vue.d.ts.map +1 -0
- package/dist/v2/components/modals/DeleteModal.vue.js +31 -0
- package/dist/v2/components/modals/DeleteModal.vue2.js +4 -0
- package/dist/v2/components/modals/index.d.ts +2 -0
- package/dist/v2/components/modals/index.d.ts.map +1 -0
- package/dist/v2/components/modals/index.js +4 -0
- package/dist/v2/components/server/ServerDropdown.vue.d.ts +4 -2
- package/dist/v2/components/server/ServerDropdown.vue.d.ts.map +1 -1
- package/dist/v2/components/server/ServerDropdown.vue.js +31 -31
- package/dist/v2/components/server/ServerDropdownItem.vue.d.ts +2 -6
- package/dist/v2/components/server/ServerDropdownItem.vue.d.ts.map +1 -1
- package/dist/v2/components/server/ServerDropdownItem.vue.js +1 -1
- package/dist/v2/components/server/ServerDropdownItem.vue2.js +16 -16
- package/dist/v2/components/server/index.d.ts.map +1 -1
- package/dist/v2/components/sidebar/Sidebar.vue.d.ts +6 -2
- package/dist/v2/components/sidebar/Sidebar.vue.d.ts.map +1 -1
- package/dist/v2/components/sidebar/Sidebar.vue.js +38 -47
- package/dist/v2/features/app/App.vue.d.ts +2 -2
- package/dist/v2/features/app/App.vue.d.ts.map +1 -1
- package/dist/v2/features/app/App.vue.js +93 -65
- package/dist/v2/features/app/components/AppSidebar.vue.d.ts +7 -3
- package/dist/v2/features/app/components/AppSidebar.vue.d.ts.map +1 -1
- package/dist/v2/features/app/components/AppSidebar.vue.js +2 -2
- package/dist/v2/features/app/components/AppSidebar.vue2.js +50 -47
- package/dist/v2/features/app/helpers/routes.d.ts +5 -11
- package/dist/v2/features/app/helpers/routes.d.ts.map +1 -1
- package/dist/v2/features/app/helpers/routes.js +1 -1
- package/dist/v2/features/collection/DocumentCollection.vue.d.ts.map +1 -1
- package/dist/v2/features/collection/DocumentCollection.vue2.js +77 -72
- package/dist/v2/features/collection/WorkspaceCollection.vue2.js +15 -12
- package/dist/v2/features/collection/components/Authentication.vue.d.ts +13 -46
- 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 +48 -37
- package/dist/v2/features/collection/components/Environment.vue2.js +3 -0
- package/dist/v2/features/collection/components/Form.vue.d.ts +3 -7
- package/dist/v2/features/collection/components/Form.vue.d.ts.map +1 -1
- package/dist/v2/features/collection/components/Form.vue.js +28 -33
- package/dist/v2/features/collection/components/Overview.vue2.js +24 -21
- package/dist/v2/features/collection/components/Servers.vue.d.ts +13 -31
- package/dist/v2/features/collection/components/Servers.vue.d.ts.map +1 -1
- package/dist/v2/features/collection/components/Servers.vue2.js +103 -82
- package/dist/v2/features/environments/components/EnvironmentVariablesTable.vue.d.ts.map +1 -1
- package/dist/v2/features/environments/components/EnvironmentVariablesTable.vue.js +3 -3
- 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 +40 -32
- package/dist/v2/features/operation/Operation.vue.d.ts +10 -77
- package/dist/v2/features/operation/Operation.vue.d.ts.map +1 -1
- package/dist/v2/features/operation/Operation.vue.js +50 -114
- package/dist/v2/hooks/use-sidebar-state.d.ts +47 -0
- package/dist/v2/hooks/use-sidebar-state.d.ts.map +1 -0
- package/dist/v2/hooks/use-sidebar-state.js +112 -0
- package/dist/v2/hooks/use-workspace-client-events.d.ts.map +1 -1
- package/dist/v2/hooks/use-workspace-client-events.js +100 -19
- package/dist/views/Request/ResponseSection/ResponseEmpty.vue2.js +1 -1
- package/dist/views/Request/libs/oauth2.d.ts.map +1 -1
- package/dist/views/Request/libs/oauth2.js +8 -6
- package/package.json +17 -17
- package/dist/components/CodeInput/CodeInput.test.d.ts +0 -2
- package/dist/components/CodeInput/CodeInput.test.d.ts.map +0 -1
- package/dist/components/ImportCollection/utils/get-openapi-version.test.d.ts +0 -2
- package/dist/components/ImportCollection/utils/get-openapi-version.test.d.ts.map +0 -1
- package/dist/components/ImportCollection/utils/is-document.test.d.ts +0 -2
- package/dist/components/ImportCollection/utils/is-document.test.d.ts.map +0 -1
- package/dist/components/ImportCollection/utils/is-url.test.d.ts +0 -2
- package/dist/components/ImportCollection/utils/is-url.test.d.ts.map +0 -1
- package/dist/components/Search/useSearch.test.d.ts +0 -2
- package/dist/components/Search/useSearch.test.d.ts.map +0 -1
- package/dist/components/Server/ServerDropdown.test.d.ts +0 -2
- package/dist/components/Server/ServerDropdown.test.d.ts.map +0 -1
- package/dist/components/ViewLayout/ViewLayoutSection.test.d.ts +0 -2
- package/dist/components/ViewLayout/ViewLayoutSection.test.d.ts.map +0 -1
- package/dist/hooks/useResponseBody.test.d.ts +0 -2
- package/dist/hooks/useResponseBody.test.d.ts.map +0 -1
- package/dist/hooks/useSidebar.test.d.ts +0 -2
- package/dist/hooks/useSidebar.test.d.ts.map +0 -1
- package/dist/layouts/App/create-api-client-app.test.d.ts +0 -2
- package/dist/layouts/App/create-api-client-app.test.d.ts.map +0 -1
- package/dist/layouts/Modal/create-api-client-modal.test.d.ts +0 -2
- package/dist/layouts/Modal/create-api-client-modal.test.d.ts.map +0 -1
- package/dist/layouts/Web/create-api-client-web.test.d.ts +0 -2
- package/dist/layouts/Web/create-api-client-web.test.d.ts.map +0 -1
- package/dist/libs/create-client.test.d.ts +0 -2
- package/dist/libs/create-client.test.d.ts.map +0 -1
- package/dist/libs/env-helpers.test.d.ts +0 -2
- package/dist/libs/env-helpers.test.d.ts.map +0 -1
- package/dist/libs/event-bus.test.d.ts +0 -2
- package/dist/libs/event-bus.test.d.ts.map +0 -1
- package/dist/libs/extractAttachmentFilename.test.d.ts +0 -2
- package/dist/libs/extractAttachmentFilename.test.d.ts.map +0 -1
- package/dist/libs/find-request.test.d.ts +0 -2
- package/dist/libs/find-request.test.d.ts.map +0 -1
- package/dist/libs/get-request-uid-by-path-method.test.d.ts +0 -2
- package/dist/libs/get-request-uid-by-path-method.test.d.ts.map +0 -1
- package/dist/libs/hot-keys.test.d.ts +0 -2
- package/dist/libs/hot-keys.test.d.ts.map +0 -1
- package/dist/libs/importers/curl.test.d.ts +0 -2
- package/dist/libs/importers/curl.test.d.ts.map +0 -1
- package/dist/libs/normalize-headers.test.d.ts +0 -2
- package/dist/libs/normalize-headers.test.d.ts.map +0 -1
- package/dist/libs/parse-curl.test.d.ts +0 -2
- package/dist/libs/parse-curl.test.d.ts.map +0 -1
- package/dist/libs/send-request/build-request-security.test.d.ts +0 -2
- package/dist/libs/send-request/build-request-security.test.d.ts.map +0 -1
- package/dist/libs/send-request/create-fetch-auth.test.d.ts +0 -2
- package/dist/libs/send-request/create-fetch-auth.test.d.ts.map +0 -1
- package/dist/libs/send-request/create-fetch-body.test.d.ts +0 -2
- package/dist/libs/send-request/create-fetch-body.test.d.ts.map +0 -1
- package/dist/libs/send-request/create-fetch-headers.test.d.ts +0 -2
- package/dist/libs/send-request/create-fetch-headers.test.d.ts.map +0 -1
- package/dist/libs/send-request/create-fetch-query-params.test.d.ts +0 -2
- package/dist/libs/send-request/create-fetch-query-params.test.d.ts.map +0 -1
- package/dist/libs/send-request/create-request-operation.test.d.ts +0 -191
- package/dist/libs/send-request/create-request-operation.test.d.ts.map +0 -1
- package/dist/libs/send-request/decode-buffer.test.d.ts +0 -2
- package/dist/libs/send-request/decode-buffer.test.d.ts.map +0 -1
- package/dist/libs/send-request/set-request-cookies.test.d.ts +0 -2
- package/dist/libs/send-request/set-request-cookies.test.d.ts.map +0 -1
- package/dist/libs/string-template.test.d.ts +0 -2
- package/dist/libs/string-template.test.d.ts.map +0 -1
- package/dist/libs/validate-parameters.test.d.ts +0 -2
- package/dist/libs/validate-parameters.test.d.ts.map +0 -1
- package/dist/plugins/plugin-manager.test.d.ts +0 -2
- package/dist/plugins/plugin-manager.test.d.ts.map +0 -1
- package/dist/routes.test.d.ts +0 -2
- package/dist/routes.test.d.ts.map +0 -1
- package/dist/store/collections.test.d.ts +0 -2
- package/dist/store/collections.test.d.ts.map +0 -1
- package/dist/store/request.test.d.ts +0 -2
- package/dist/store/request.test.d.ts.map +0 -1
- package/dist/v2/blocks/operation-code-sample/components/ExamplePicker.test.d.ts +0 -2
- package/dist/v2/blocks/operation-code-sample/components/ExamplePicker.test.d.ts.map +0 -1
- package/dist/v2/blocks/operation-code-sample/components/HttpMethod.test.d.ts +0 -2
- package/dist/v2/blocks/operation-code-sample/components/HttpMethod.test.d.ts.map +0 -1
- package/dist/v2/blocks/operation-code-sample/components/OperationCodeSample.test.d.ts +0 -2
- package/dist/v2/blocks/operation-code-sample/components/OperationCodeSample.test.d.ts.map +0 -1
- package/dist/v2/blocks/operation-code-sample/helpers/find-client.test.d.ts +0 -2
- package/dist/v2/blocks/operation-code-sample/helpers/find-client.test.d.ts.map +0 -1
- package/dist/v2/blocks/operation-code-sample/helpers/generate-client-options.test.d.ts +0 -2
- package/dist/v2/blocks/operation-code-sample/helpers/generate-client-options.test.d.ts.map +0 -1
- package/dist/v2/blocks/operation-code-sample/helpers/generate-code-snippet.test.d.ts +0 -2
- package/dist/v2/blocks/operation-code-sample/helpers/generate-code-snippet.test.d.ts.map +0 -1
- package/dist/v2/blocks/operation-code-sample/helpers/get-example-from-schema.test.d.ts +0 -2
- package/dist/v2/blocks/operation-code-sample/helpers/get-example-from-schema.test.d.ts.map +0 -1
- package/dist/v2/blocks/operation-code-sample/helpers/get-resolved-ref-deep.test.d.ts +0 -2
- package/dist/v2/blocks/operation-code-sample/helpers/get-resolved-ref-deep.test.d.ts.map +0 -1
- package/dist/v2/blocks/operation-code-sample/helpers/get-secrets.test.d.ts +0 -2
- package/dist/v2/blocks/operation-code-sample/helpers/get-secrets.test.d.ts.map +0 -1
- package/dist/v2/blocks/operation-code-sample/helpers/operation-to-har/get-example-value.test.d.ts +0 -2
- package/dist/v2/blocks/operation-code-sample/helpers/operation-to-har/get-example-value.test.d.ts.map +0 -1
- package/dist/v2/blocks/operation-code-sample/helpers/operation-to-har/operation-to-har.test.d.ts +0 -2
- package/dist/v2/blocks/operation-code-sample/helpers/operation-to-har/operation-to-har.test.d.ts.map +0 -1
- package/dist/v2/blocks/operation-code-sample/helpers/operation-to-har/process-body.test.d.ts +0 -2
- package/dist/v2/blocks/operation-code-sample/helpers/operation-to-har/process-body.test.d.ts.map +0 -1
- package/dist/v2/blocks/operation-code-sample/helpers/operation-to-har/process-parameters.test.d.ts +0 -2
- package/dist/v2/blocks/operation-code-sample/helpers/operation-to-har/process-parameters.test.d.ts.map +0 -1
- package/dist/v2/blocks/operation-code-sample/helpers/operation-to-har/process-security-schemes.test.d.ts +0 -2
- package/dist/v2/blocks/operation-code-sample/helpers/operation-to-har/process-security-schemes.test.d.ts.map +0 -1
- package/dist/v2/blocks/operation-code-sample/helpers/operation-to-har/process-server-url.test.d.ts +0 -2
- package/dist/v2/blocks/operation-code-sample/helpers/operation-to-har/process-server-url.test.d.ts.map +0 -1
- package/dist/v2/blocks/scalar-address-bar-block/components/AddressBar.test.d.ts +0 -2
- package/dist/v2/blocks/scalar-address-bar-block/components/AddressBar.test.d.ts.map +0 -1
- package/dist/v2/blocks/scalar-address-bar-block/components/AddressBarHistory.test.d.ts +0 -2
- package/dist/v2/blocks/scalar-address-bar-block/components/AddressBarHistory.test.d.ts.map +0 -1
- package/dist/v2/blocks/scalar-auth-selector-block/components/AuthSelector.test.d.ts +0 -2
- package/dist/v2/blocks/scalar-auth-selector-block/components/AuthSelector.test.d.ts.map +0 -1
- package/dist/v2/blocks/scalar-auth-selector-block/components/DeleteRequestAuthModal.test.d.ts +0 -2
- package/dist/v2/blocks/scalar-auth-selector-block/components/DeleteRequestAuthModal.test.d.ts.map +0 -1
- package/dist/v2/blocks/scalar-auth-selector-block/components/OAuth2.test.d.ts +0 -2
- package/dist/v2/blocks/scalar-auth-selector-block/components/OAuth2.test.d.ts.map +0 -1
- package/dist/v2/blocks/scalar-auth-selector-block/components/OAuth2.vue.d.ts +0 -45
- package/dist/v2/blocks/scalar-auth-selector-block/components/OAuth2.vue.d.ts.map +0 -1
- package/dist/v2/blocks/scalar-auth-selector-block/components/OAuthScopesInput.test.d.ts +0 -2
- package/dist/v2/blocks/scalar-auth-selector-block/components/OAuthScopesInput.test.d.ts.map +0 -1
- package/dist/v2/blocks/scalar-auth-selector-block/components/RequestAuthDataTable.test.d.ts +0 -2
- package/dist/v2/blocks/scalar-auth-selector-block/components/RequestAuthDataTable.test.d.ts.map +0 -1
- package/dist/v2/blocks/scalar-auth-selector-block/components/RequestAuthTab.test.d.ts +0 -2
- package/dist/v2/blocks/scalar-auth-selector-block/components/RequestAuthTab.test.d.ts.map +0 -1
- package/dist/v2/blocks/scalar-auth-selector-block/components/RequestAuthTab.vue.d.ts +0 -29
- package/dist/v2/blocks/scalar-auth-selector-block/components/RequestAuthTab.vue.d.ts.map +0 -1
- package/dist/v2/blocks/scalar-auth-selector-block/event-types.d.ts +0 -29
- package/dist/v2/blocks/scalar-auth-selector-block/event-types.d.ts.map +0 -1
- package/dist/v2/blocks/scalar-auth-selector-block/helpers/oauth.test.d.ts +0 -2
- package/dist/v2/blocks/scalar-auth-selector-block/helpers/oauth.test.d.ts.map +0 -1
- package/dist/v2/blocks/scalar-auth-selector-block/helpers/security-scheme.test.d.ts +0 -2
- package/dist/v2/blocks/scalar-auth-selector-block/helpers/security-scheme.test.d.ts.map +0 -1
- package/dist/v2/blocks/scalar-operation-block/components/OperationBlock.test.d.ts +0 -2
- package/dist/v2/blocks/scalar-operation-block/components/OperationBlock.test.d.ts.map +0 -1
- package/dist/v2/blocks/scalar-operation-block/components/OperationParams.test.d.ts +0 -2
- package/dist/v2/blocks/scalar-operation-block/components/OperationParams.test.d.ts.map +0 -1
- package/dist/v2/blocks/scalar-operation-block/components/OperationTable.test.d.ts +0 -2
- package/dist/v2/blocks/scalar-operation-block/components/OperationTable.test.d.ts.map +0 -1
- package/dist/v2/blocks/scalar-operation-block/components/OperationTableRow.test.d.ts +0 -2
- package/dist/v2/blocks/scalar-operation-block/components/OperationTableRow.test.d.ts.map +0 -1
- package/dist/v2/blocks/scalar-operation-block/components/OperationTableTooltip.test.d.ts +0 -2
- package/dist/v2/blocks/scalar-operation-block/components/OperationTableTooltip.test.d.ts.map +0 -1
- package/dist/v2/blocks/scalar-operation-block/helpers/file.test.d.ts +0 -2
- package/dist/v2/blocks/scalar-operation-block/helpers/file.test.d.ts.map +0 -1
- package/dist/v2/blocks/scalar-operation-block/helpers/get-parameter-content.test.d.ts +0 -2
- package/dist/v2/blocks/scalar-operation-block/helpers/get-parameter-content.test.d.ts.map +0 -1
- package/dist/v2/blocks/scalar-operation-block/helpers/get-parameter-example.test.d.ts +0 -2
- package/dist/v2/blocks/scalar-operation-block/helpers/get-parameter-example.test.d.ts.map +0 -1
- package/dist/v2/blocks/scalar-operation-block/helpers/get-parameter-schema.test.d.ts +0 -2
- package/dist/v2/blocks/scalar-operation-block/helpers/get-parameter-schema.test.d.ts.map +0 -1
- package/dist/v2/blocks/scalar-operation-block/helpers/group-by.test.d.ts +0 -2
- package/dist/v2/blocks/scalar-operation-block/helpers/group-by.test.d.ts.map +0 -1
- package/dist/v2/blocks/scalar-operation-block/helpers/validate-parameter.test.d.ts +0 -2
- package/dist/v2/blocks/scalar-operation-block/helpers/validate-parameter.test.d.ts.map +0 -1
- package/dist/v2/blocks/scalar-response-block/components/Headers.test.d.ts +0 -2
- package/dist/v2/blocks/scalar-response-block/components/Headers.test.d.ts.map +0 -1
- package/dist/v2/blocks/scalar-response-block/components/ResponseBlock.test.d.ts +0 -2
- package/dist/v2/blocks/scalar-response-block/components/ResponseBlock.test.d.ts.map +0 -1
- package/dist/v2/blocks/scalar-response-block/components/ResponseBodyDownload.test.d.ts +0 -2
- package/dist/v2/blocks/scalar-response-block/components/ResponseBodyDownload.test.d.ts.map +0 -1
- package/dist/v2/blocks/scalar-response-block/components/ResponseBodyPreview.test.d.ts +0 -2
- package/dist/v2/blocks/scalar-response-block/components/ResponseBodyPreview.test.d.ts.map +0 -1
- package/dist/v2/blocks/scalar-response-block/components/ResponseBodyStreaming.test.d.ts +0 -2
- package/dist/v2/blocks/scalar-response-block/components/ResponseBodyStreaming.test.d.ts.map +0 -1
- package/dist/v2/blocks/scalar-response-block/components/ResponseCookies.test.d.ts +0 -2
- package/dist/v2/blocks/scalar-response-block/components/ResponseCookies.test.d.ts.map +0 -1
- package/dist/v2/blocks/scalar-response-block/helpers/extract-filename.test.d.ts +0 -2
- package/dist/v2/blocks/scalar-response-block/helpers/extract-filename.test.d.ts.map +0 -1
- package/dist/v2/blocks/scalar-response-block/helpers/get-content-length.test.d.ts +0 -2
- package/dist/v2/blocks/scalar-response-block/helpers/get-content-length.test.d.ts.map +0 -1
- package/dist/v2/blocks/scalar-response-block/helpers/media-types.test.d.ts +0 -2
- package/dist/v2/blocks/scalar-response-block/helpers/media-types.test.d.ts.map +0 -1
- package/dist/v2/blocks/scalar-response-block/helpers/process-response-body.test.d.ts +0 -2
- package/dist/v2/blocks/scalar-response-block/helpers/process-response-body.test.d.ts.map +0 -1
- package/dist/v2/components/code-input/CodeInput.test.d.ts +0 -2
- package/dist/v2/components/code-input/CodeInput.test.d.ts.map +0 -1
- package/dist/v2/components/code-input/code-variable-widget.test.d.ts +0 -2
- package/dist/v2/components/code-input/code-variable-widget.test.d.ts.map +0 -1
- package/dist/v2/components/server/ServerDropdown.test.d.ts +0 -2
- package/dist/v2/components/server/ServerDropdown.test.d.ts.map +0 -1
- package/dist/v2/components/server/ServerDropdownItem.test.d.ts +0 -2
- package/dist/v2/components/server/ServerDropdownItem.test.d.ts.map +0 -1
- package/dist/v2/features/app/App.test.d.ts +0 -2
- package/dist/v2/features/app/App.test.d.ts.map +0 -1
- package/dist/v2/features/collection/DocumentCollection.test.d.ts +0 -2
- package/dist/v2/features/collection/DocumentCollection.test.d.ts.map +0 -1
- package/dist/v2/features/collection/components/Authentication.test.d.ts +0 -2
- package/dist/v2/features/collection/components/Authentication.test.d.ts.map +0 -1
- package/dist/v2/features/collection/components/Environment.test.d.ts +0 -2
- package/dist/v2/features/collection/components/Environment.test.d.ts.map +0 -1
- package/dist/v2/features/collection/components/LabelInput.test.d.ts +0 -2
- package/dist/v2/features/collection/components/LabelInput.test.d.ts.map +0 -1
- package/dist/v2/features/collection/components/Overview.test.d.ts +0 -2
- package/dist/v2/features/collection/components/Overview.test.d.ts.map +0 -1
- package/dist/v2/features/collection/components/Servers.test.d.ts +0 -2
- package/dist/v2/features/collection/components/Servers.test.d.ts.map +0 -1
- package/dist/v2/features/collection/components/Settings.test.d.ts +0 -2
- package/dist/v2/features/collection/components/Settings.test.d.ts.map +0 -1
- package/dist/v2/features/collection/components/Tabs.test.d.ts +0 -2
- package/dist/v2/features/collection/components/Tabs.test.d.ts.map +0 -1
- package/dist/v2/features/environments/EnvironmentsList.test.d.ts +0 -2
- package/dist/v2/features/environments/EnvironmentsList.test.d.ts.map +0 -1
- package/dist/v2/features/environments/components/Environment.test.d.ts +0 -2
- package/dist/v2/features/environments/components/Environment.test.d.ts.map +0 -1
- package/dist/v2/features/environments/components/EnvironmentColors.test.d.ts +0 -2
- package/dist/v2/features/environments/components/EnvironmentColors.test.d.ts.map +0 -1
- package/dist/v2/features/environments/components/EnvironmentVariablesTable.test.d.ts +0 -2
- package/dist/v2/features/environments/components/EnvironmentVariablesTable.test.d.ts.map +0 -1
- package/dist/v2/features/global-cookies/components/CookiesTable.test.d.ts +0 -2
- package/dist/v2/features/global-cookies/components/CookiesTable.test.d.ts.map +0 -1
- package/dist/v2/features/global-cookies/components/GlobalCookies.test.d.ts +0 -2
- package/dist/v2/features/global-cookies/components/GlobalCookies.test.d.ts.map +0 -1
- package/dist/v2/features/operation/Operation.test.d.ts +0 -2
- package/dist/v2/features/operation/Operation.test.d.ts.map +0 -1
- package/dist/v2/features/operation/components/Header.test.d.ts +0 -2
- package/dist/v2/features/operation/components/Header.test.d.ts.map +0 -1
- package/dist/v2/features/operation/components/Header.vue.d.ts.map +0 -1
- package/dist/v2/features/operation/components/Header.vue2.js +0 -97
- package/dist/v2/features/settings/Settings.test.d.ts +0 -2
- package/dist/v2/features/settings/Settings.test.d.ts.map +0 -1
- package/dist/v2/hooks/use-document-watcher.test.d.ts +0 -2
- package/dist/v2/hooks/use-document-watcher.test.d.ts.map +0 -1
- package/dist/views/Components/CodeSnippet/CodeSnippet.test.d.ts +0 -2
- package/dist/views/Components/CodeSnippet/CodeSnippet.test.d.ts.map +0 -1
- package/dist/views/Components/CodeSnippet/helpers/convert-to-har-request.test.d.ts +0 -2
- package/dist/views/Components/CodeSnippet/helpers/convert-to-har-request.test.d.ts.map +0 -1
- package/dist/views/Components/CodeSnippet/helpers/get-har-request.test.d.ts +0 -2
- package/dist/views/Components/CodeSnippet/helpers/get-har-request.test.d.ts.map +0 -1
- package/dist/views/Components/CodeSnippet/helpers/get-snippet.test.d.ts +0 -2
- package/dist/views/Components/CodeSnippet/helpers/get-snippet.test.d.ts.map +0 -1
- package/dist/views/Request/RequestRoot.test.d.ts +0 -2
- package/dist/views/Request/RequestRoot.test.d.ts.map +0 -1
- package/dist/views/Request/RequestSection/RequestAuth/RequestAuth.test.d.ts +0 -2
- package/dist/views/Request/RequestSection/RequestAuth/RequestAuth.test.d.ts.map +0 -1
- package/dist/views/Request/RequestSection/RequestAuth/helpers/restore-auth-from-local-storage.test.d.ts +0 -2
- package/dist/views/Request/RequestSection/RequestAuth/helpers/restore-auth-from-local-storage.test.d.ts.map +0 -1
- package/dist/views/Request/RequestSection/RequestBody.test.d.ts +0 -2
- package/dist/views/Request/RequestSection/RequestBody.test.d.ts.map +0 -1
- package/dist/views/Request/RequestSection/RequestCodeExample.test.d.ts +0 -2
- package/dist/views/Request/RequestSection/RequestCodeExample.test.d.ts.map +0 -1
- package/dist/views/Request/RequestSection/RequestSection.test.d.ts +0 -2
- package/dist/views/Request/RequestSection/RequestSection.test.d.ts.map +0 -1
- package/dist/views/Request/RequestSection/helpers/filter-security-requirements.test.d.ts +0 -2
- package/dist/views/Request/RequestSection/helpers/filter-security-requirements.test.d.ts.map +0 -1
- package/dist/views/Request/RequestSection/helpers/getting-started.test.d.ts +0 -2
- package/dist/views/Request/RequestSection/helpers/getting-started.test.d.ts.map +0 -1
- package/dist/views/Request/RequestSection/helpers/update-scheme.test.d.ts +0 -2
- package/dist/views/Request/RequestSection/helpers/update-scheme.test.d.ts.map +0 -1
- package/dist/views/Request/RequestSubpageHeader.test.d.ts +0 -2
- package/dist/views/Request/RequestSubpageHeader.test.d.ts.map +0 -1
- package/dist/views/Request/ResponseSection/ResponseBodyVirtual.test.d.ts +0 -2
- package/dist/views/Request/ResponseSection/ResponseBodyVirtual.test.d.ts.map +0 -1
- package/dist/views/Request/ResponseSection/ResponseSection.test.d.ts +0 -2
- package/dist/views/Request/ResponseSection/ResponseSection.test.d.ts.map +0 -1
- package/dist/views/Request/consts/mediaTypes.test.d.ts +0 -2
- package/dist/views/Request/consts/mediaTypes.test.d.ts.map +0 -1
- package/dist/views/Request/libs/auth.test.d.ts +0 -2
- package/dist/views/Request/libs/auth.test.d.ts.map +0 -1
- package/dist/views/Request/libs/oauth2.test.d.ts +0 -2
- package/dist/views/Request/libs/oauth2.test.d.ts.map +0 -1
- package/dist/views/Request/libs/request.test.d.ts +0 -2
- package/dist/views/Request/libs/request.test.d.ts.map +0 -1
- package/dist/views/Request/libs/watch-mode.test.d.ts +0 -2
- package/dist/views/Request/libs/watch-mode.test.d.ts.map +0 -1
- package/dist/vitest.setup.d.ts +0 -34
- package/dist/vitest.setup.d.ts.map +0 -1
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
import { ScalarButton as
|
|
1
|
+
import { defineComponent as b, useId as h, ref as f, createElementBlock as y, openBlock as p, unref as s, createElementVNode as l, createVNode as o, normalizeStyle as B, createBlock as c, createCommentVNode as x, withCtx as w, toDisplayString as u } from "vue";
|
|
2
|
+
import { ScalarButton as k, ScalarIcon as S } from "@scalar/components";
|
|
3
3
|
import { REQUEST_METHODS as C } from "@scalar/oas-utils/helpers";
|
|
4
|
-
import V from "../../../../components/CodeInput/CodeInput.vue.js";
|
|
5
4
|
import E from "./AddressBarHistory.vue.js";
|
|
6
|
-
import
|
|
7
|
-
import
|
|
5
|
+
import R from "../../../../components/HttpMethod/HttpMethod.vue.js";
|
|
6
|
+
import V from "../../../components/server/ServerDropdown.vue.js";
|
|
7
|
+
import $ from "../../../components/code-input/CodeInput.vue.js";
|
|
8
8
|
const z = ["id"], U = { class: "address-bar-bg-states text-xxs group relative order-last flex w-full max-w-[calc(100dvw-24px)] flex-1 flex-row items-stretch rounded-lg p-0.75 lg:order-none lg:max-w-[580px] lg:min-w-[580px] xl:max-w-[720px] xl:min-w-[720px]" }, A = { class: "pointer-events-none absolute top-0 left-0 block h-full w-full overflow-hidden rounded-lg border" }, I = { class: "z-context-plus flex gap-1" }, H = { class: "scroll-timeline-x scroll-timeline-x-hidden z-context-plus relative flex w-full bg-blend-normal" }, N = {
|
|
9
9
|
"aria-hidden": "true",
|
|
10
10
|
class: "inline-flex items-center gap-1"
|
|
11
|
-
}, T = { class: "sr-only" }, Q = /* @__PURE__ */
|
|
11
|
+
}, T = { class: "sr-only" }, Q = /* @__PURE__ */ b({
|
|
12
12
|
__name: "AddressBar",
|
|
13
13
|
props: {
|
|
14
14
|
path: {},
|
|
@@ -19,97 +19,96 @@ const z = ["id"], U = { class: "address-bar-bg-states text-xxs group relative or
|
|
|
19
19
|
layout: {},
|
|
20
20
|
percentage: { default: 100 },
|
|
21
21
|
events: {},
|
|
22
|
-
|
|
23
|
-
|
|
22
|
+
eventBus: {},
|
|
23
|
+
environment: {}
|
|
24
24
|
},
|
|
25
|
-
emits: ["
|
|
25
|
+
emits: ["execute", "update:path", "update:method"],
|
|
26
26
|
setup(n, { emit: v }) {
|
|
27
|
-
const
|
|
28
|
-
function
|
|
27
|
+
const a = v, d = h(), i = f(null), m = f(null);
|
|
28
|
+
function g() {
|
|
29
29
|
return C[n.method].colorVar;
|
|
30
30
|
}
|
|
31
|
-
return n.events.hotKeys.on((
|
|
32
|
-
|
|
31
|
+
return n.events.hotKeys.on((e) => {
|
|
32
|
+
e?.focusAddressBar && i.value?.focus();
|
|
33
33
|
}), n.events.focusAddressBar.on(() => {
|
|
34
34
|
n.layout === "modal" ? m.value?.$el?.focus() : i.value?.focus();
|
|
35
|
-
}), (
|
|
36
|
-
id:
|
|
35
|
+
}), (e, t) => (p(), y("div", {
|
|
36
|
+
id: s(d),
|
|
37
37
|
class: "scalar-address-bar order-last flex h-(--scalar-address-bar-height) w-full [--scalar-address-bar-height:32px] lg:order-none lg:w-auto"
|
|
38
38
|
}, [
|
|
39
39
|
l("div", U, [
|
|
40
40
|
l("div", A, [
|
|
41
41
|
l("div", {
|
|
42
42
|
class: "absolute top-0 left-0 z-[1002] h-full w-full",
|
|
43
|
-
style:
|
|
44
|
-
backgroundColor: `color-mix(in srgb, transparent 90%, ${
|
|
45
|
-
transform: `translate3d(-${
|
|
43
|
+
style: B({
|
|
44
|
+
backgroundColor: `color-mix(in srgb, transparent 90%, ${g()})`,
|
|
45
|
+
transform: `translate3d(-${e.percentage}%,0,0)`
|
|
46
46
|
})
|
|
47
47
|
}, null, 4)
|
|
48
48
|
]),
|
|
49
49
|
l("div", I, [
|
|
50
|
-
|
|
51
|
-
isEditable:
|
|
50
|
+
o(s(R), {
|
|
51
|
+
isEditable: e.layout !== "modal",
|
|
52
52
|
isSquare: "",
|
|
53
|
-
method:
|
|
53
|
+
method: e.method,
|
|
54
54
|
teleport: "",
|
|
55
|
-
onChange:
|
|
55
|
+
onChange: t[0] || (t[0] = (r) => a("update:method", { value: r }))
|
|
56
56
|
}, null, 8, ["isEditable", "method"])
|
|
57
57
|
]),
|
|
58
58
|
l("div", H, [
|
|
59
|
-
|
|
59
|
+
e.servers.length ? (p(), c(s(V), {
|
|
60
60
|
key: 0,
|
|
61
|
-
layout:
|
|
62
|
-
server:
|
|
63
|
-
servers:
|
|
64
|
-
target:
|
|
65
|
-
onAddServer:
|
|
66
|
-
"onUpdate:selectedServer":
|
|
67
|
-
"onUpdate:variable":
|
|
68
|
-
}, null, 8, ["layout", "server", "servers", "target"])) :
|
|
69
|
-
|
|
70
|
-
|
|
61
|
+
layout: e.layout,
|
|
62
|
+
server: e.server,
|
|
63
|
+
servers: e.servers,
|
|
64
|
+
target: s(d),
|
|
65
|
+
onAddServer: t[1] || (t[1] = (r) => e.eventBus.emit("open:command-palette", "addServer")),
|
|
66
|
+
"onUpdate:selectedServer": t[2] || (t[2] = (r) => e.eventBus.emit("server:update:selected", r)),
|
|
67
|
+
"onUpdate:variable": t[3] || (t[3] = (r) => e.eventBus.emit("server:update:variables", r))
|
|
68
|
+
}, null, 8, ["layout", "server", "servers", "target"])) : x("", !0),
|
|
69
|
+
t[8] || (t[8] = l("div", { class: "fade-left" }, null, -1)),
|
|
70
|
+
o(s($), {
|
|
71
71
|
ref_key: "addressBarRef",
|
|
72
72
|
ref: i,
|
|
73
73
|
"aria-label": "Path",
|
|
74
74
|
class: "min-w-fit outline-none",
|
|
75
75
|
disableCloseBrackets: "",
|
|
76
|
-
disabled:
|
|
76
|
+
disabled: e.layout === "modal",
|
|
77
77
|
disableEnter: "",
|
|
78
78
|
disableTabIndent: "",
|
|
79
79
|
emitOnBlur: !1,
|
|
80
|
-
|
|
81
|
-
environment: r.environment,
|
|
80
|
+
environment: e.environment,
|
|
82
81
|
importCurl: "",
|
|
83
|
-
modelValue:
|
|
84
|
-
placeholder:
|
|
82
|
+
modelValue: e.path,
|
|
83
|
+
placeholder: e.server ? "" : "Enter a URL or cURL command",
|
|
85
84
|
server: "",
|
|
86
|
-
onCurl:
|
|
87
|
-
onSubmit:
|
|
88
|
-
"onUpdate:modelValue":
|
|
89
|
-
}, null, 8, ["disabled", "
|
|
90
|
-
|
|
85
|
+
onCurl: t[4] || (t[4] = (r) => e.eventBus.emit("import:curl", { value: r })),
|
|
86
|
+
onSubmit: t[5] || (t[5] = (r) => a("execute")),
|
|
87
|
+
"onUpdate:modelValue": t[6] || (t[6] = (r) => a("update:path", { value: r }))
|
|
88
|
+
}, null, 8, ["disabled", "environment", "modelValue", "placeholder"]),
|
|
89
|
+
t[9] || (t[9] = l("div", { class: "fade-right" }, null, -1))
|
|
91
90
|
]),
|
|
92
|
-
|
|
93
|
-
history:
|
|
94
|
-
target:
|
|
91
|
+
o(E, {
|
|
92
|
+
history: e.history,
|
|
93
|
+
target: s(d)
|
|
95
94
|
}, null, 8, ["history", "target"]),
|
|
96
|
-
|
|
95
|
+
o(s(k), {
|
|
97
96
|
ref_key: "sendButtonRef",
|
|
98
97
|
ref: m,
|
|
99
98
|
class: "z-context-plus relative h-auto shrink-0 overflow-hidden py-1 pr-2.5 pl-2 font-bold",
|
|
100
|
-
disabled:
|
|
101
|
-
onClick:
|
|
99
|
+
disabled: e.percentage < 100,
|
|
100
|
+
onClick: t[7] || (t[7] = (r) => a("execute"))
|
|
102
101
|
}, {
|
|
103
|
-
default:
|
|
102
|
+
default: w(() => [
|
|
104
103
|
l("span", N, [
|
|
105
|
-
|
|
104
|
+
o(s(S), {
|
|
106
105
|
class: "relative shrink-0 fill-current",
|
|
107
106
|
icon: "Play",
|
|
108
107
|
size: "xs"
|
|
109
108
|
}),
|
|
110
|
-
|
|
109
|
+
t[10] || (t[10] = l("span", { class: "text-xxs hidden lg:flex" }, "Send", -1))
|
|
111
110
|
]),
|
|
112
|
-
l("span", T, " Send " + u(
|
|
111
|
+
l("span", T, " Send " + u(e.method) + " request to " + u(e.server?.url ?? "") + u(e.path), 1)
|
|
113
112
|
]),
|
|
114
113
|
_: 1
|
|
115
114
|
}, 8, ["disabled"])
|
|
@@ -1,49 +1,30 @@
|
|
|
1
|
-
import type
|
|
2
|
-
import type {
|
|
3
|
-
import {
|
|
4
|
-
import type {
|
|
1
|
+
import { type Icon } from '@scalar/components';
|
|
2
|
+
import type { WorkspaceEventBus } from '@scalar/workspace-store/events';
|
|
3
|
+
import type { AuthMeta } from '@scalar/workspace-store/mutators';
|
|
4
|
+
import type { XScalarEnvironment } from '@scalar/workspace-store/schemas/extensions/document/x-scalar-environments';
|
|
5
|
+
import type { OpenApiDocument, ServerObject } from '@scalar/workspace-store/schemas/v3.1/strict/openapi-document';
|
|
5
6
|
import { type SecuritySchemeOption } from '../../../../v2/blocks/scalar-auth-selector-block/helpers/security-scheme.js';
|
|
6
7
|
type __VLS_Props = {
|
|
7
|
-
environment:
|
|
8
|
-
|
|
9
|
-
|
|
8
|
+
environment: XScalarEnvironment;
|
|
9
|
+
eventBus: WorkspaceEventBus;
|
|
10
|
+
/** Whether we can add or delete auth schemes */
|
|
11
|
+
isReadOnly?: boolean;
|
|
12
|
+
/** Creates a static disclosure that cannot be collapsed */
|
|
13
|
+
isStatic?: boolean;
|
|
14
|
+
meta: AuthMeta;
|
|
10
15
|
security: OpenApiDocument['security'];
|
|
11
|
-
selectedSecurity: OpenApiDocument['security'];
|
|
12
16
|
securitySchemes: NonNullable<OpenApiDocument['components']>['securitySchemes'];
|
|
17
|
+
selectedSecurity: OpenApiDocument['x-scalar-selected-security'];
|
|
13
18
|
server: ServerObject | undefined;
|
|
14
19
|
title: string;
|
|
15
20
|
};
|
|
16
21
|
declare const _default: import("vue").DefineComponent<__VLS_Props, {
|
|
17
22
|
authIndicator: import("vue").ComputedRef<{
|
|
18
|
-
icon:
|
|
23
|
+
icon: Icon;
|
|
19
24
|
text: string;
|
|
20
25
|
} | null>;
|
|
21
26
|
selectedSchemeOptions: import("vue").ComputedRef<SecuritySchemeOption[]>;
|
|
22
27
|
schemeOptions: import("vue").ComputedRef<SecuritySchemeOption[] | import("../../../../v2/blocks/scalar-auth-selector-block/helpers/security-scheme.js").SecuritySchemeGroup[]>;
|
|
23
|
-
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {} & {
|
|
24
|
-
"update:selectedScopes": (payload: {
|
|
25
|
-
id: string[];
|
|
26
|
-
name: string;
|
|
27
|
-
scopes: string[];
|
|
28
|
-
}) => any;
|
|
29
|
-
"update:securityScheme": (payload: UpdateSecuritySchemeEvent) => any;
|
|
30
|
-
deleteOperationAuth: (names: string[]) => any;
|
|
31
|
-
"update:selectedSecurity": (payload: {
|
|
32
|
-
value: NonNullable<OpenApiDocument["x-scalar-selected-security"]>;
|
|
33
|
-
create: SecuritySchemeObject[];
|
|
34
|
-
}) => any;
|
|
35
|
-
}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{
|
|
36
|
-
"onUpdate:selectedScopes"?: ((payload: {
|
|
37
|
-
id: string[];
|
|
38
|
-
name: string;
|
|
39
|
-
scopes: string[];
|
|
40
|
-
}) => any) | undefined;
|
|
41
|
-
"onUpdate:securityScheme"?: ((payload: UpdateSecuritySchemeEvent) => any) | undefined;
|
|
42
|
-
onDeleteOperationAuth?: ((names: string[]) => any) | undefined;
|
|
43
|
-
"onUpdate:selectedSecurity"?: ((payload: {
|
|
44
|
-
value: NonNullable<OpenApiDocument["x-scalar-selected-security"]>;
|
|
45
|
-
create: SecuritySchemeObject[];
|
|
46
|
-
}) => any) | undefined;
|
|
47
|
-
}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
28
|
+
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
48
29
|
export default _default;
|
|
49
30
|
//# sourceMappingURL=AuthSelector.vue.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"AuthSelector.vue.d.ts","sourceRoot":"","sources":["../../../../../src/v2/blocks/scalar-auth-selector-block/components/AuthSelector.vue"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"AuthSelector.vue.d.ts","sourceRoot":"","sources":["../../../../../src/v2/blocks/scalar-auth-selector-block/components/AuthSelector.vue"],"names":[],"mappings":"AAiTA,OAAO,EAML,KAAK,IAAI,EAEV,MAAM,oBAAoB,CAAA;AAE3B,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,gCAAgC,CAAA;AAEvE,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,kCAAkC,CAAA;AAChE,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,2EAA2E,CAAA;AACnH,OAAO,KAAK,EACV,eAAe,EAEf,YAAY,EACb,MAAM,8DAA8D,CAAA;AAIrE,OAAO,EAIL,KAAK,oBAAoB,EAC1B,MAAM,gEAAgE,CAAA;AAKvE,KAAK,WAAW,GAAG;IACjB,WAAW,EAAE,kBAAkB,CAAA;IAC/B,QAAQ,EAAE,iBAAiB,CAAA;IAC3B,gDAAgD;IAChD,UAAU,CAAC,EAAE,OAAO,CAAA;IACpB,2DAA2D;IAC3D,QAAQ,CAAC,EAAE,OAAO,CAAA;IAClB,IAAI,EAAE,QAAQ,CAAA;IACd,QAAQ,EAAE,eAAe,CAAC,UAAU,CAAC,CAAA;IACrC,eAAe,EAAE,WAAW,CAAC,eAAe,CAAC,YAAY,CAAC,CAAC,CAAC,iBAAiB,CAAC,CAAA;IAC9E,gBAAgB,EAAE,eAAe,CAAC,4BAA4B,CAAC,CAAA;IAC/D,MAAM,EAAE,YAAY,GAAG,SAAS,CAAA;IAChC,KAAK,EAAE,MAAM,CAAA;CACd,CAAC;;;cA8BqC,IAAI;cAAQ,MAAM;;;;;AA+bzD,wBAOG"}
|
|
@@ -1,7 +1,181 @@
|
|
|
1
|
-
import
|
|
2
|
-
|
|
3
|
-
import
|
|
4
|
-
|
|
1
|
+
import { defineComponent as $, useId as M, ref as f, computed as S, createBlock as b, openBlock as r, unref as n, withCtx as c, createVNode as m, createCommentVNode as x, createElementBlock as p, Fragment as g, createElementVNode as u, createTextVNode as k, toDisplayString as y, withModifiers as N, normalizeClass as T } from "vue";
|
|
2
|
+
import { useModal as q, ScalarComboboxMultiselect as j, ScalarButton as E, ScalarListboxCheckbox as z, ScalarIconButton as U } from "@scalar/components";
|
|
3
|
+
import { ScalarIconCaretDown as L, ScalarIconTrash as F } from "@scalar/icons";
|
|
4
|
+
import { getResolvedRef as P } from "@scalar/workspace-store/helpers/get-resolved-ref";
|
|
5
|
+
import G from "./DeleteRequestAuthModal.vue.js";
|
|
6
|
+
import { getSecuritySchemeOptions as H, formatComplexScheme as J, formatScheme as K } from "../helpers/security-scheme.js";
|
|
7
|
+
import Q from "./RequestAuthDataTable.vue.js";
|
|
8
|
+
import W from "../../../components/layout/CollapsibleSection.vue.js";
|
|
9
|
+
const X = ["id"], Y = { class: "min-w-0 flex-1 truncate" }, oe = /* @__PURE__ */ $({
|
|
10
|
+
__name: "AuthSelector",
|
|
11
|
+
props: {
|
|
12
|
+
environment: {},
|
|
13
|
+
eventBus: {},
|
|
14
|
+
isReadOnly: { type: Boolean, default: !1 },
|
|
15
|
+
isStatic: { type: Boolean, default: !1 },
|
|
16
|
+
meta: {},
|
|
17
|
+
security: {},
|
|
18
|
+
securitySchemes: {},
|
|
19
|
+
selectedSecurity: {},
|
|
20
|
+
server: {},
|
|
21
|
+
title: {}
|
|
22
|
+
},
|
|
23
|
+
setup(a, { expose: I }) {
|
|
24
|
+
const C = M(), O = f(null), B = f(!1), d = q(), o = f(null), h = S(() => {
|
|
25
|
+
if (!a.security?.length)
|
|
26
|
+
return null;
|
|
27
|
+
const e = a.security.some(
|
|
28
|
+
(l) => Object.keys(l).length > 1
|
|
29
|
+
), s = a.security.some(
|
|
30
|
+
(l) => Object.keys(l).length === 0
|
|
31
|
+
) && !e;
|
|
32
|
+
return {
|
|
33
|
+
icon: s ? "Unlock" : "Lock",
|
|
34
|
+
text: s ? "Optional" : "Required"
|
|
35
|
+
};
|
|
36
|
+
}), R = S(
|
|
37
|
+
() => H(a.security ?? [], a.securitySchemes ?? {}, a.isReadOnly)
|
|
38
|
+
), i = S(() => {
|
|
39
|
+
const e = a.selectedSecurity?.selectedSchemes;
|
|
40
|
+
return e?.length ? e.flatMap((t) => {
|
|
41
|
+
const s = Object.keys(t);
|
|
42
|
+
if (s.length === 0)
|
|
43
|
+
return [];
|
|
44
|
+
if (s.length > 1)
|
|
45
|
+
return J(t);
|
|
46
|
+
const l = s[0];
|
|
47
|
+
if (!l)
|
|
48
|
+
return [];
|
|
49
|
+
const v = P(a.securitySchemes?.[l]);
|
|
50
|
+
return v ? K({
|
|
51
|
+
name: l,
|
|
52
|
+
type: v.type,
|
|
53
|
+
value: t
|
|
54
|
+
}) : [];
|
|
55
|
+
}) : [];
|
|
56
|
+
}), w = (e) => {
|
|
57
|
+
B.value && e.stopPropagation(), O.value?.$el.click();
|
|
58
|
+
}, V = (e) => {
|
|
59
|
+
const t = e.filter((l) => l.payload === void 0).map((l) => l.value), s = e.filter((l) => l.payload !== void 0).map((l) => ({
|
|
60
|
+
name: l.label,
|
|
61
|
+
scheme: l.payload
|
|
62
|
+
}));
|
|
63
|
+
a.eventBus.emit("auth:update:selected-security-schemes", {
|
|
64
|
+
selectedRequirements: t,
|
|
65
|
+
newSchemes: s,
|
|
66
|
+
meta: a.meta
|
|
67
|
+
});
|
|
68
|
+
}, D = (e) => {
|
|
69
|
+
o.value = { label: e.label, payload: e.value }, d.show();
|
|
70
|
+
}, A = () => {
|
|
71
|
+
o.value && (a.eventBus.emit("auth:delete:security-scheme", {
|
|
72
|
+
names: Object.keys(o.value.payload)
|
|
73
|
+
}), o.value = null, d.hide());
|
|
74
|
+
};
|
|
75
|
+
return I({
|
|
76
|
+
authIndicator: h,
|
|
77
|
+
selectedSchemeOptions: i,
|
|
78
|
+
schemeOptions: R
|
|
79
|
+
}), (e, t) => (r(), b(n(W), {
|
|
80
|
+
class: "group/params relative",
|
|
81
|
+
isStatic: e.isStatic,
|
|
82
|
+
itemCount: i.value.length,
|
|
83
|
+
"onUpdate:modelValue": t[1] || (t[1] = (s) => B.value = s)
|
|
84
|
+
}, {
|
|
85
|
+
title: c(() => [
|
|
86
|
+
u("div", {
|
|
87
|
+
id: n(C),
|
|
88
|
+
class: "inline-flex items-center gap-0.5 leading-[20px]"
|
|
89
|
+
}, [
|
|
90
|
+
u("span", null, y(e.title), 1),
|
|
91
|
+
h.value ? (r(), p("span", {
|
|
92
|
+
key: 0,
|
|
93
|
+
class: T(["text-c-3 hover:bg-b-3 hover:text-c-1 -mr-1 cursor-pointer rounded px-1 py-0.5 text-xs leading-[normal]", { "text-c-1": h.value.text === "Required" }]),
|
|
94
|
+
"data-testid": "auth-indicator",
|
|
95
|
+
onClick: w
|
|
96
|
+
}, y(h.value.text), 3)) : x("", !0)
|
|
97
|
+
], 8, X)
|
|
98
|
+
]),
|
|
99
|
+
actions: c(() => [
|
|
100
|
+
m(n(j), {
|
|
101
|
+
class: "w-72 text-xs",
|
|
102
|
+
modelValue: i.value,
|
|
103
|
+
multiple: "",
|
|
104
|
+
options: R.value,
|
|
105
|
+
placement: "bottom-end",
|
|
106
|
+
teleport: "",
|
|
107
|
+
onDelete: D,
|
|
108
|
+
"onUpdate:modelValue": V
|
|
109
|
+
}, {
|
|
110
|
+
option: c(({ option: s, selected: l }) => [
|
|
111
|
+
m(n(z), {
|
|
112
|
+
multiselect: "",
|
|
113
|
+
selected: l
|
|
114
|
+
}, null, 8, ["selected"]),
|
|
115
|
+
u("div", Y, y(s.label), 1),
|
|
116
|
+
s.isDeletable ?? !e.isReadOnly ? (r(), b(n(U), {
|
|
117
|
+
key: 0,
|
|
118
|
+
class: "-m-0.5 shrink-0 p-0.5 opacity-0 group-hover/item:opacity-100",
|
|
119
|
+
icon: n(F),
|
|
120
|
+
label: `Delete ${s.label}`,
|
|
121
|
+
size: "xs",
|
|
122
|
+
onClick: N((v) => D(s), ["stop"])
|
|
123
|
+
}, null, 8, ["icon", "label", "onClick"])) : x("", !0)
|
|
124
|
+
]),
|
|
125
|
+
default: c(() => [
|
|
126
|
+
m(n(E), {
|
|
127
|
+
ref_key: "comboboxButtonRef",
|
|
128
|
+
ref: O,
|
|
129
|
+
"aria-describedby": n(C),
|
|
130
|
+
class: "group/combobox-button hover:text-c-1 text-c-2 flex h-fit w-full items-center gap-1 px-0.75 py-0.25 text-base font-normal",
|
|
131
|
+
variant: "ghost"
|
|
132
|
+
}, {
|
|
133
|
+
default: c(() => [
|
|
134
|
+
i.value.length === 1 ? (r(), p(g, { key: 0 }, [
|
|
135
|
+
t[2] || (t[2] = u("span", { class: "sr-only" }, "Selected Auth Type:", -1)),
|
|
136
|
+
k(" " + y(i.value[0]?.label), 1)
|
|
137
|
+
], 64)) : i.value.length > 1 ? (r(), p(g, { key: 1 }, [
|
|
138
|
+
t[3] || (t[3] = k(" Multiple ", -1)),
|
|
139
|
+
t[4] || (t[4] = u("span", { class: "sr-only" }, "Auth Types Selected", -1))
|
|
140
|
+
], 64)) : (r(), p(g, { key: 2 }, [
|
|
141
|
+
t[5] || (t[5] = u("span", { class: "sr-only" }, "Select", -1)),
|
|
142
|
+
t[6] || (t[6] = k(" Auth Type ", -1))
|
|
143
|
+
], 64)),
|
|
144
|
+
m(n(L), {
|
|
145
|
+
class: "size-3 shrink-0 transition-transform duration-100 group-aria-expanded/combobox-button:rotate-180",
|
|
146
|
+
weight: "bold"
|
|
147
|
+
})
|
|
148
|
+
]),
|
|
149
|
+
_: 1
|
|
150
|
+
}, 8, ["aria-describedby"])
|
|
151
|
+
]),
|
|
152
|
+
_: 1
|
|
153
|
+
}, 8, ["modelValue", "options"])
|
|
154
|
+
]),
|
|
155
|
+
default: c(() => [
|
|
156
|
+
m(Q, {
|
|
157
|
+
activeAuthIndex: e.selectedSecurity?.selectedIndex ?? 0,
|
|
158
|
+
environment: e.environment,
|
|
159
|
+
eventBus: e.eventBus,
|
|
160
|
+
isStatic: e.isStatic,
|
|
161
|
+
meta: e.meta,
|
|
162
|
+
securitySchemes: e.securitySchemes,
|
|
163
|
+
selectedSchemeOptions: i.value,
|
|
164
|
+
server: e.server
|
|
165
|
+
}, null, 8, ["activeAuthIndex", "environment", "eventBus", "isStatic", "meta", "securitySchemes", "selectedSchemeOptions", "server"]),
|
|
166
|
+
o.value ? (r(), b(G, {
|
|
167
|
+
key: 0,
|
|
168
|
+
label: o.value.label,
|
|
169
|
+
scheme: o.value,
|
|
170
|
+
state: n(d),
|
|
171
|
+
onClose: t[0] || (t[0] = (s) => n(d).hide()),
|
|
172
|
+
onDelete: A
|
|
173
|
+
}, null, 8, ["label", "scheme", "state"])) : x("", !0)
|
|
174
|
+
]),
|
|
175
|
+
_: 1
|
|
176
|
+
}, 8, ["isStatic", "itemCount"]));
|
|
177
|
+
}
|
|
178
|
+
});
|
|
5
179
|
export {
|
|
6
|
-
|
|
180
|
+
oe as default
|
|
7
181
|
};
|
|
@@ -1,171 +1,4 @@
|
|
|
1
|
-
import
|
|
2
|
-
import { useModal as z, ScalarComboboxMultiselect as E, ScalarButton as F, ScalarListboxCheckbox as P, ScalarIconButton as G } from "@scalar/components";
|
|
3
|
-
import { ScalarIconCaretDown as H, ScalarIconTrash as J } from "@scalar/icons";
|
|
4
|
-
import { isDefined as B } from "@scalar/oas-utils/helpers";
|
|
5
|
-
import { getResolvedRef as K } from "@scalar/workspace-store/helpers/get-resolved-ref";
|
|
6
|
-
import Q from "./DeleteRequestAuthModal.vue.js";
|
|
7
|
-
import { formatComplexScheme as W, formatScheme as X, getSecuritySchemeOptions as Y } from "../helpers/security-scheme.js";
|
|
8
|
-
import Z from "./RequestAuthDataTable.vue.js";
|
|
9
|
-
import _ from "../../../../components/ViewLayout/ViewLayoutCollapse.vue.js";
|
|
10
|
-
import { useLayout as ee } from "../../../../hooks/useLayout.js";
|
|
11
|
-
const te = ["id"], le = { class: "flex flex-1" }, oe = { class: "min-w-0 flex-1 truncate" }, ye = /* @__PURE__ */ M({
|
|
12
|
-
__name: "AuthSelector",
|
|
13
|
-
props: {
|
|
14
|
-
environment: {},
|
|
15
|
-
envVariables: {},
|
|
16
|
-
layout: {},
|
|
17
|
-
security: {},
|
|
18
|
-
selectedSecurity: {},
|
|
19
|
-
securitySchemes: {},
|
|
20
|
-
server: {},
|
|
21
|
-
title: {}
|
|
22
|
-
},
|
|
23
|
-
emits: ["deleteOperationAuth", "update:securityScheme", "update:selectedScopes", "update:selectedSecurity"],
|
|
24
|
-
setup(n, { expose: I, emit: T }) {
|
|
25
|
-
const d = T, { layout: O } = ee(), V = N(), w = b(null), p = z(), a = b(null), A = b(!1), y = S(() => {
|
|
26
|
-
if (!n.security?.length)
|
|
27
|
-
return null;
|
|
28
|
-
const e = !n.security.some(
|
|
29
|
-
(f) => Object.keys(f).length > 1
|
|
30
|
-
) && n.security.some((f) => Object.keys(f).length === 0);
|
|
31
|
-
return { icon: e ? "Unlock" : "Lock", text: e ? "Optional" : "Required" };
|
|
32
|
-
}), s = S(() => n.selectedSecurity?.length ? n.selectedSecurity.map((t) => {
|
|
33
|
-
const e = Object.keys(t);
|
|
34
|
-
if (e.length > 1)
|
|
35
|
-
return W(t);
|
|
36
|
-
const l = e[0];
|
|
37
|
-
if (!l)
|
|
38
|
-
return;
|
|
39
|
-
const c = K(n.securitySchemes?.[l]);
|
|
40
|
-
if (c)
|
|
41
|
-
return X({ name: l, type: c.type, value: { [l]: [] } });
|
|
42
|
-
}).filter(B) : []);
|
|
43
|
-
function D({
|
|
44
|
-
label: t,
|
|
45
|
-
value: e
|
|
46
|
-
}) {
|
|
47
|
-
a.value = { label: t, payload: e }, p.show();
|
|
48
|
-
}
|
|
49
|
-
const R = S(() => Y(
|
|
50
|
-
n.security ?? [],
|
|
51
|
-
n.securitySchemes ?? {},
|
|
52
|
-
O === "modal" || n.layout === "reference"
|
|
53
|
-
)), $ = (t) => {
|
|
54
|
-
A.value && t.stopPropagation(), w.value?.$el.click();
|
|
55
|
-
}, q = (t) => {
|
|
56
|
-
d("update:selectedSecurity", {
|
|
57
|
-
value: t.map((e) => e.value),
|
|
58
|
-
create: t.map((e) => e.payload).filter(B)
|
|
59
|
-
});
|
|
60
|
-
}, L = () => {
|
|
61
|
-
a.value && (d("deleteOperationAuth", Object.keys(a.value.payload)), a.value = null, p.hide());
|
|
62
|
-
};
|
|
63
|
-
return I({
|
|
64
|
-
authIndicator: y,
|
|
65
|
-
selectedSchemeOptions: s,
|
|
66
|
-
schemeOptions: R
|
|
67
|
-
}), (t, e) => (r(), x(o(_), {
|
|
68
|
-
class: "group/params relative",
|
|
69
|
-
itemCount: s.value.length,
|
|
70
|
-
layout: t.layout,
|
|
71
|
-
"onUpdate:modelValue": e[3] || (e[3] = (l) => A.value = l)
|
|
72
|
-
}, {
|
|
73
|
-
title: u(() => [
|
|
74
|
-
i("div", {
|
|
75
|
-
id: o(V),
|
|
76
|
-
class: "inline-flex items-center gap-0.5 leading-[20px]"
|
|
77
|
-
}, [
|
|
78
|
-
i("span", null, h(t.title), 1),
|
|
79
|
-
y.value ? (r(), v("span", {
|
|
80
|
-
key: 0,
|
|
81
|
-
class: j(["text-c-3 hover:bg-b-3 hover:text-c-1 -mr-1 cursor-pointer rounded px-1 py-0.5 text-xs leading-[normal]", { "text-c-1": y.value.text === "Required" }]),
|
|
82
|
-
"data-testid": "auth-indicator",
|
|
83
|
-
onClick: $
|
|
84
|
-
}, h(y.value.text), 3)) : g("", !0)
|
|
85
|
-
], 8, te)
|
|
86
|
-
]),
|
|
87
|
-
actions: u(() => [
|
|
88
|
-
i("div", le, [
|
|
89
|
-
m(o(E), {
|
|
90
|
-
class: "w-72 text-xs",
|
|
91
|
-
modelValue: s.value,
|
|
92
|
-
multiple: "",
|
|
93
|
-
options: R.value,
|
|
94
|
-
placement: "bottom-end",
|
|
95
|
-
teleport: "",
|
|
96
|
-
onDelete: D,
|
|
97
|
-
"onUpdate:modelValue": q
|
|
98
|
-
}, {
|
|
99
|
-
option: u(({ option: l, selected: c }) => [
|
|
100
|
-
m(o(P), {
|
|
101
|
-
multiselect: "",
|
|
102
|
-
selected: c
|
|
103
|
-
}, null, 8, ["selected"]),
|
|
104
|
-
i("div", oe, h(l.label), 1),
|
|
105
|
-
l.isDeletable ?? (o(O) !== "modal" && t.layout !== "reference") ? (r(), x(o(G), {
|
|
106
|
-
key: 0,
|
|
107
|
-
class: "-m-0.5 shrink-0 p-0.5 opacity-0 group-hover/item:opacity-100",
|
|
108
|
-
icon: o(J),
|
|
109
|
-
label: `Delete ${l.label}`,
|
|
110
|
-
size: "xs",
|
|
111
|
-
onClick: U((f) => D(l), ["stop"])
|
|
112
|
-
}, null, 8, ["icon", "label", "onClick"])) : g("", !0)
|
|
113
|
-
]),
|
|
114
|
-
default: u(() => [
|
|
115
|
-
m(o(F), {
|
|
116
|
-
ref_key: "comboboxButtonRef",
|
|
117
|
-
ref: w,
|
|
118
|
-
"aria-describedby": o(V),
|
|
119
|
-
class: "group/combobox-button hover:text-c-1 text-c-2 flex h-fit w-full items-center gap-1 px-0.75 py-0.25 text-base font-normal transition-transform",
|
|
120
|
-
variant: "ghost"
|
|
121
|
-
}, {
|
|
122
|
-
default: u(() => [
|
|
123
|
-
s.value.length === 1 ? (r(), v(k, { key: 0 }, [
|
|
124
|
-
e[4] || (e[4] = i("span", { class: "sr-only" }, "Selected Auth Type:", -1)),
|
|
125
|
-
C(" " + h(s.value[0]?.label), 1)
|
|
126
|
-
], 64)) : s.value.length > 1 ? (r(), v(k, { key: 1 }, [
|
|
127
|
-
e[5] || (e[5] = C(" Multiple ", -1)),
|
|
128
|
-
e[6] || (e[6] = i("span", { class: "sr-only" }, "Auth Types Selected", -1))
|
|
129
|
-
], 64)) : (r(), v(k, { key: 2 }, [
|
|
130
|
-
e[7] || (e[7] = i("span", { class: "sr-only" }, "Select", -1)),
|
|
131
|
-
e[8] || (e[8] = C(" Auth Type ", -1))
|
|
132
|
-
], 64)),
|
|
133
|
-
m(o(H), {
|
|
134
|
-
class: "size-3 shrink-0 transition-transform duration-100 group-aria-expanded/combobox-button:rotate-180",
|
|
135
|
-
weight: "bold"
|
|
136
|
-
})
|
|
137
|
-
]),
|
|
138
|
-
_: 1
|
|
139
|
-
}, 8, ["aria-describedby"])
|
|
140
|
-
]),
|
|
141
|
-
_: 1
|
|
142
|
-
}, 8, ["modelValue", "options"])
|
|
143
|
-
])
|
|
144
|
-
]),
|
|
145
|
-
default: u(() => [
|
|
146
|
-
m(Z, {
|
|
147
|
-
envVariables: t.envVariables,
|
|
148
|
-
environment: t.environment,
|
|
149
|
-
layout: t.layout,
|
|
150
|
-
securitySchemes: t.securitySchemes,
|
|
151
|
-
selectedSchemeOptions: s.value,
|
|
152
|
-
server: t.server,
|
|
153
|
-
"onUpdate:securityScheme": e[0] || (e[0] = (l) => d("update:securityScheme", l)),
|
|
154
|
-
"onUpdate:selectedScopes": e[1] || (e[1] = (l) => d("update:selectedScopes", l))
|
|
155
|
-
}, null, 8, ["envVariables", "environment", "layout", "securitySchemes", "selectedSchemeOptions", "server"]),
|
|
156
|
-
a.value ? (r(), x(Q, {
|
|
157
|
-
key: 0,
|
|
158
|
-
label: a.value.label,
|
|
159
|
-
scheme: a.value,
|
|
160
|
-
state: o(p),
|
|
161
|
-
onClose: e[2] || (e[2] = (l) => o(p).hide()),
|
|
162
|
-
onDelete: L
|
|
163
|
-
}, null, 8, ["label", "scheme", "state"])) : g("", !0)
|
|
164
|
-
]),
|
|
165
|
-
_: 1
|
|
166
|
-
}, 8, ["itemCount", "layout"]));
|
|
167
|
-
}
|
|
168
|
-
});
|
|
1
|
+
import f from "./AuthSelector.vue.js";
|
|
169
2
|
export {
|
|
170
|
-
|
|
3
|
+
f as default
|
|
171
4
|
};
|