@scalar/api-client 2.6.1 → 2.8.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 +77 -0
- package/README.md +1 -1
- package/dist/analytics.d.ts +2 -18
- package/dist/analytics.d.ts.map +1 -1
- package/dist/components/CodeInput/CodeInput.vue.d.ts +1 -1
- package/dist/components/CodeInput/CodeInput.vue.d.ts.map +1 -1
- package/dist/components/CommandPalette/TheCommandPalette.vue.d.ts +66 -42
- package/dist/components/CommandPalette/TheCommandPalette.vue.d.ts.map +1 -1
- package/dist/components/DataTable/DataTableInputSelect.vue.d.ts.map +1 -1
- package/dist/components/DataTable/DataTableInputSelect.vue.js +21 -22
- package/dist/components/EnvironmentSelector/EnvironmentSelector.vue.d.ts.map +1 -1
- package/dist/components/EnvironmentSelector/EnvironmentSelector.vue.js +4 -5
- package/dist/components/HttpMethod/HttpMethod.vue.d.ts +2 -2
- package/dist/components/ImportCollection/WorkspaceSelector.vue.d.ts.map +1 -1
- package/dist/components/ImportCollection/WorkspaceSelector.vue.js +13 -14
- package/dist/components/Sidebar/SidebarButton.vue.d.ts.map +1 -1
- package/dist/components/Sidebar/SidebarButton.vue.js +0 -1
- package/dist/hooks/useAnalytics.d.ts +2 -18
- package/dist/hooks/useAnalytics.d.ts.map +1 -1
- package/dist/hooks/useClientConfig.d.ts +114 -120
- package/dist/hooks/useClientConfig.d.ts.map +1 -1
- package/dist/hooks/useResponseBody.js +6 -6
- package/dist/layouts/App/create-api-client-app.d.ts +1379 -1307
- package/dist/layouts/App/create-api-client-app.d.ts.map +1 -1
- package/dist/layouts/Modal/create-api-client-modal.d.ts +2754 -2610
- package/dist/layouts/Modal/create-api-client-modal.d.ts.map +1 -1
- package/dist/layouts/Web/create-api-client-web.d.ts +1379 -1307
- package/dist/layouts/Web/create-api-client-web.d.ts.map +1 -1
- package/dist/libs/create-client.d.ts +1379 -1307
- package/dist/libs/create-client.d.ts.map +1 -1
- package/dist/libs/find-request.d.ts +17 -17
- package/dist/libs/find-request.d.ts.map +1 -1
- package/dist/libs/hot-keys.d.ts +1 -1
- package/dist/libs/local-storage.d.ts.map +1 -1
- package/dist/libs/send-request/build-request-security.d.ts +1 -1
- package/dist/libs/send-request/create-fetch-body.d.ts +1 -1
- package/dist/libs/send-request/create-request-operation.d.ts +2 -2
- package/dist/libs/send-request/create-request-operation.d.ts.map +1 -1
- package/dist/libs/send-request/create-request-operation.js +19 -19
- package/dist/libs/send-request/create-request-operation.test.d.ts +82 -82
- package/dist/libs/send-request/create-request-operation.test.d.ts.map +1 -1
- package/dist/plugins/plugin-manager.d.ts +3 -3
- package/dist/plugins/plugin-manager.d.ts.map +1 -1
- package/dist/store/active-entities.d.ts +118 -118
- package/dist/store/active-entities.d.ts.map +1 -1
- package/dist/store/collections.d.ts +127 -127
- package/dist/store/collections.d.ts.map +1 -1
- package/dist/store/cookies.d.ts +14 -14
- package/dist/store/environment.d.ts +23 -23
- package/dist/store/request-example.d.ts +546 -546
- package/dist/store/request-example.d.ts.map +1 -1
- package/dist/store/requests.d.ts +194 -194
- package/dist/store/requests.d.ts.map +1 -1
- package/dist/store/security-schemes.d.ts +281 -281
- package/dist/store/security-schemes.d.ts.map +1 -1
- package/dist/store/servers.d.ts +45 -45
- package/dist/store/servers.d.ts.map +1 -1
- package/dist/store/store.d.ts +1379 -1307
- package/dist/store/store.d.ts.map +1 -1
- package/dist/store/store.js +18 -18
- package/dist/store/tags.d.ts +35 -35
- package/dist/store/tags.d.ts.map +1 -1
- package/dist/store/workspace.d.ts +47 -47
- package/dist/store/workspace.d.ts.map +1 -1
- package/dist/style.css +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/ExamplePicker.vue.js +2 -3
- package/dist/v2/blocks/operation-code-sample/components/HttpMethod.test.d.ts +2 -0
- package/dist/v2/blocks/operation-code-sample/components/HttpMethod.test.d.ts.map +1 -0
- package/dist/v2/blocks/operation-code-sample/components/HttpMethod.vue.d.ts +25 -0
- package/dist/v2/blocks/operation-code-sample/components/HttpMethod.vue.d.ts.map +1 -0
- package/dist/v2/blocks/operation-code-sample/components/HttpMethod.vue.js +30 -0
- package/dist/v2/blocks/operation-code-sample/components/HttpMethod.vue2.js +4 -0
- 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 +3 -3
- package/dist/v2/blocks/operation-code-sample/components/OperationCodeSample.vue2.js +104 -98
- package/dist/v2/blocks/operation-code-sample/helpers/find-client.js +16 -14
- package/dist/v2/blocks/operation-code-sample/helpers/generate-client-options.js +31 -2
- package/dist/v2/blocks/operation-code-sample/helpers/get-example-from-schema.d.ts +6 -1
- 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 +198 -131
- package/dist/v2/blocks/operation-code-sample/helpers/operation-to-har/operation-to-har.bench.d.ts +2 -0
- package/dist/v2/blocks/operation-code-sample/helpers/operation-to-har/operation-to-har.bench.d.ts.map +1 -0
- package/dist/v2/blocks/operation-code-sample/index.d.ts +4 -1
- package/dist/v2/blocks/operation-code-sample/index.d.ts.map +1 -1
- package/dist/v2/blocks/operation-code-sample/index.js +10 -4
- 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 +1 -1
- package/dist/v2/blocks/scalar-auth-selector-block/components/AuthSelector.vue2.js +31 -32
- package/dist/v2/blocks/scalar-auth-selector-block/helpers/security-scheme.d.ts +2 -6
- package/dist/v2/blocks/scalar-auth-selector-block/helpers/security-scheme.d.ts.map +1 -1
- package/dist/v2/blocks/scalar-operation-block/components/OperationBlock.test.d.ts +2 -0
- package/dist/v2/blocks/scalar-operation-block/components/OperationBlock.test.d.ts.map +1 -0
- package/dist/v2/blocks/scalar-operation-block/components/OperationBlock.vue.d.ts +39 -0
- package/dist/v2/blocks/scalar-operation-block/components/OperationBlock.vue.d.ts.map +1 -0
- package/dist/v2/blocks/scalar-operation-block/components/OperationBlock.vue.js +7 -0
- package/dist/v2/blocks/scalar-operation-block/components/OperationBlock.vue2.js +226 -0
- package/dist/v2/blocks/scalar-operation-block/components/OperationBody.vue.d.ts +66 -0
- package/dist/v2/blocks/scalar-operation-block/components/OperationBody.vue.d.ts.map +1 -0
- package/dist/v2/blocks/scalar-operation-block/components/OperationBody.vue.js +7 -0
- package/dist/v2/blocks/scalar-operation-block/components/OperationBody.vue2.js +200 -0
- package/dist/v2/blocks/scalar-operation-block/components/OperationParams.test.d.ts +2 -0
- package/dist/v2/blocks/scalar-operation-block/components/OperationParams.test.d.ts.map +1 -0
- package/dist/v2/blocks/scalar-operation-block/components/OperationParams.vue.d.ts +51 -0
- package/dist/v2/blocks/scalar-operation-block/components/OperationParams.vue.d.ts.map +1 -0
- package/dist/v2/blocks/scalar-operation-block/components/OperationParams.vue.js +89 -0
- package/dist/v2/blocks/scalar-operation-block/components/OperationParams.vue2.js +4 -0
- package/dist/v2/blocks/scalar-operation-block/components/OperationTable.test.d.ts +2 -0
- package/dist/v2/blocks/scalar-operation-block/components/OperationTable.test.d.ts.map +1 -0
- package/dist/v2/blocks/scalar-operation-block/components/OperationTable.vue.d.ts +46 -0
- package/dist/v2/blocks/scalar-operation-block/components/OperationTable.vue.d.ts.map +1 -0
- package/dist/v2/blocks/scalar-operation-block/components/OperationTable.vue.js +7 -0
- package/dist/v2/blocks/scalar-operation-block/components/OperationTable.vue2.js +85 -0
- package/dist/v2/blocks/scalar-operation-block/components/OperationTableRow.test.d.ts +2 -0
- package/dist/v2/blocks/scalar-operation-block/components/OperationTableRow.test.d.ts.map +1 -0
- package/dist/v2/blocks/scalar-operation-block/components/OperationTableRow.vue.d.ts +43 -0
- package/dist/v2/blocks/scalar-operation-block/components/OperationTableRow.vue.d.ts.map +1 -0
- package/dist/v2/blocks/scalar-operation-block/components/OperationTableRow.vue.js +193 -0
- package/dist/v2/blocks/scalar-operation-block/components/OperationTableRow.vue2.js +4 -0
- package/dist/v2/blocks/scalar-operation-block/components/OperationTableTooltip.test.d.ts +2 -0
- package/dist/v2/blocks/scalar-operation-block/components/OperationTableTooltip.test.d.ts.map +1 -0
- package/dist/v2/blocks/scalar-operation-block/components/OperationTableTooltip.vue.d.ts +8 -0
- package/dist/v2/blocks/scalar-operation-block/components/OperationTableTooltip.vue.d.ts.map +1 -0
- package/dist/v2/blocks/scalar-operation-block/components/OperationTableTooltip.vue.js +7 -0
- package/dist/v2/blocks/scalar-operation-block/components/OperationTableTooltip.vue2.js +62 -0
- package/dist/v2/blocks/scalar-operation-block/helpers/file.test.d.ts +2 -0
- package/dist/v2/blocks/scalar-operation-block/helpers/file.test.d.ts.map +1 -0
- package/dist/v2/blocks/scalar-operation-block/helpers/files.d.ts +5 -0
- package/dist/v2/blocks/scalar-operation-block/helpers/files.d.ts.map +1 -0
- package/dist/v2/blocks/scalar-operation-block/helpers/files.js +7 -0
- package/dist/v2/blocks/scalar-operation-block/helpers/get-parameter-content.d.ts +8 -0
- package/dist/v2/blocks/scalar-operation-block/helpers/get-parameter-content.d.ts.map +1 -0
- package/dist/v2/blocks/scalar-operation-block/helpers/get-parameter-content.js +9 -0
- package/dist/v2/blocks/scalar-operation-block/helpers/get-parameter-content.test.d.ts +2 -0
- package/dist/v2/blocks/scalar-operation-block/helpers/get-parameter-content.test.d.ts.map +1 -0
- package/dist/v2/blocks/scalar-operation-block/helpers/get-parameter-example.d.ts +6 -0
- package/dist/v2/blocks/scalar-operation-block/helpers/get-parameter-example.d.ts.map +1 -0
- package/dist/v2/blocks/scalar-operation-block/helpers/get-parameter-example.js +12 -0
- package/dist/v2/blocks/scalar-operation-block/helpers/get-parameter-example.test.d.ts +2 -0
- package/dist/v2/blocks/scalar-operation-block/helpers/get-parameter-example.test.d.ts.map +1 -0
- package/dist/v2/blocks/scalar-operation-block/helpers/get-parameter-schema.d.ts +6 -0
- package/dist/v2/blocks/scalar-operation-block/helpers/get-parameter-schema.d.ts.map +1 -0
- package/dist/v2/blocks/scalar-operation-block/helpers/get-parameter-schema.js +6 -0
- package/dist/v2/blocks/scalar-operation-block/helpers/get-parameter-schema.test.d.ts +2 -0
- package/dist/v2/blocks/scalar-operation-block/helpers/get-parameter-schema.test.d.ts.map +1 -0
- package/dist/v2/blocks/scalar-operation-block/helpers/get-request-body-example.d.ts +3 -0
- package/dist/v2/blocks/scalar-operation-block/helpers/get-request-body-example.d.ts.map +1 -0
- package/dist/v2/blocks/scalar-operation-block/helpers/get-request-body-example.js +5 -0
- package/dist/v2/blocks/scalar-operation-block/helpers/group-by.d.ts +5 -0
- package/dist/v2/blocks/scalar-operation-block/helpers/group-by.d.ts.map +1 -0
- package/dist/v2/blocks/scalar-operation-block/helpers/group-by.js +7 -0
- package/dist/v2/blocks/scalar-operation-block/helpers/group-by.test.d.ts +2 -0
- package/dist/v2/blocks/scalar-operation-block/helpers/group-by.test.d.ts.map +1 -0
- package/dist/v2/blocks/scalar-operation-block/helpers/validate-parameter.d.ts +11 -0
- package/dist/v2/blocks/scalar-operation-block/helpers/validate-parameter.d.ts.map +1 -0
- package/dist/v2/blocks/scalar-operation-block/helpers/validate-parameter.js +32 -0
- package/dist/v2/blocks/scalar-operation-block/helpers/validate-parameter.test.d.ts +2 -0
- package/dist/v2/blocks/scalar-operation-block/helpers/validate-parameter.test.d.ts.map +1 -0
- package/dist/v2/blocks/scalar-operation-block/index.d.ts +2 -0
- package/dist/v2/blocks/scalar-operation-block/index.d.ts.map +1 -0
- package/dist/v2/blocks/scalar-operation-block/index.js +4 -0
- package/dist/v2/blocks/scalar-response-block/components/Headers.test.d.ts +2 -0
- package/dist/v2/blocks/scalar-response-block/components/Headers.test.d.ts.map +1 -0
- package/dist/v2/blocks/scalar-response-block/components/Headers.vue.d.ts +20 -0
- package/dist/v2/blocks/scalar-response-block/components/Headers.vue.d.ts.map +1 -0
- package/dist/v2/blocks/scalar-response-block/components/Headers.vue.js +98 -0
- package/dist/v2/blocks/scalar-response-block/components/Headers.vue2.js +4 -0
- package/dist/v2/blocks/scalar-response-block/components/ResponseBlock.test.d.ts +2 -0
- package/dist/v2/blocks/scalar-response-block/components/ResponseBlock.test.d.ts.map +1 -0
- package/dist/v2/blocks/scalar-response-block/components/ResponseBlock.vue.d.ts +47 -0
- package/dist/v2/blocks/scalar-response-block/components/ResponseBlock.vue.d.ts.map +1 -0
- package/dist/v2/blocks/scalar-response-block/components/ResponseBlock.vue.js +7 -0
- package/dist/v2/blocks/scalar-response-block/components/ResponseBlock.vue2.js +182 -0
- package/dist/v2/blocks/scalar-response-block/components/ResponseBody.vue.d.ts +12 -0
- package/dist/v2/blocks/scalar-response-block/components/ResponseBody.vue.d.ts.map +1 -0
- package/dist/v2/blocks/scalar-response-block/components/ResponseBody.vue.js +7 -0
- package/dist/v2/blocks/scalar-response-block/components/ResponseBody.vue2.js +88 -0
- package/dist/v2/blocks/scalar-response-block/components/ResponseBodyDownload.test.d.ts +2 -0
- package/dist/v2/blocks/scalar-response-block/components/ResponseBodyDownload.test.d.ts.map +1 -0
- package/dist/v2/blocks/scalar-response-block/components/ResponseBodyDownload.vue.d.ts +8 -0
- package/dist/v2/blocks/scalar-response-block/components/ResponseBodyDownload.vue.d.ts.map +1 -0
- package/dist/v2/blocks/scalar-response-block/components/ResponseBodyDownload.vue.js +36 -0
- package/dist/v2/blocks/scalar-response-block/components/ResponseBodyDownload.vue2.js +4 -0
- package/dist/v2/blocks/scalar-response-block/components/ResponseBodyInfo.vue.d.ts +13 -0
- package/dist/v2/blocks/scalar-response-block/components/ResponseBodyInfo.vue.d.ts.map +1 -0
- package/dist/v2/blocks/scalar-response-block/components/ResponseBodyInfo.vue.js +14 -0
- package/dist/v2/blocks/scalar-response-block/components/ResponseBodyPreview.test.d.ts +2 -0
- package/dist/v2/blocks/scalar-response-block/components/ResponseBodyPreview.test.d.ts.map +1 -0
- package/dist/v2/blocks/scalar-response-block/components/ResponseBodyPreview.vue.d.ts +10 -0
- package/dist/v2/blocks/scalar-response-block/components/ResponseBodyPreview.vue.d.ts.map +1 -0
- package/dist/v2/blocks/scalar-response-block/components/ResponseBodyPreview.vue.js +7 -0
- package/dist/v2/blocks/scalar-response-block/components/ResponseBodyPreview.vue2.js +64 -0
- package/dist/v2/blocks/scalar-response-block/components/ResponseBodyRaw.vue.d.ts +8 -0
- package/dist/v2/blocks/scalar-response-block/components/ResponseBodyRaw.vue.d.ts.map +1 -0
- package/dist/v2/blocks/scalar-response-block/components/ResponseBodyRaw.vue.js +7 -0
- package/dist/v2/blocks/scalar-response-block/components/ResponseBodyRaw.vue2.js +41 -0
- package/dist/v2/blocks/scalar-response-block/components/ResponseBodyStreaming.test.d.ts +2 -0
- package/dist/v2/blocks/scalar-response-block/components/ResponseBodyStreaming.test.d.ts.map +1 -0
- package/dist/v2/blocks/scalar-response-block/components/ResponseBodyStreaming.vue.d.ts +6 -0
- package/dist/v2/blocks/scalar-response-block/components/ResponseBodyStreaming.vue.d.ts.map +1 -0
- package/dist/v2/blocks/scalar-response-block/components/ResponseBodyStreaming.vue.js +74 -0
- package/dist/v2/blocks/scalar-response-block/components/ResponseBodyStreaming.vue2.js +4 -0
- package/dist/v2/blocks/scalar-response-block/components/ResponseBodyToggle.vue.d.ts +10 -0
- package/dist/v2/blocks/scalar-response-block/components/ResponseBodyToggle.vue.d.ts.map +1 -0
- package/dist/v2/blocks/scalar-response-block/components/ResponseBodyToggle.vue.js +25 -0
- package/dist/v2/blocks/scalar-response-block/components/ResponseBodyToggle.vue2.js +4 -0
- package/dist/v2/blocks/scalar-response-block/components/ResponseBodyVirtual.vue.d.ts +11 -0
- package/dist/v2/blocks/scalar-response-block/components/ResponseBodyVirtual.vue.d.ts.map +1 -0
- package/dist/v2/blocks/scalar-response-block/components/ResponseBodyVirtual.vue.js +52 -0
- package/dist/v2/blocks/scalar-response-block/components/ResponseBodyVirtual.vue3.js +5 -0
- package/dist/v2/blocks/scalar-response-block/components/ResponseCookies.test.d.ts +2 -0
- package/dist/v2/blocks/scalar-response-block/components/ResponseCookies.test.d.ts.map +1 -0
- package/dist/v2/blocks/scalar-response-block/components/ResponseCookies.vue.d.ts +9 -0
- package/dist/v2/blocks/scalar-response-block/components/ResponseCookies.vue.d.ts.map +1 -0
- package/dist/v2/blocks/scalar-response-block/components/ResponseCookies.vue.js +54 -0
- package/dist/v2/blocks/scalar-response-block/components/ResponseCookies.vue2.js +4 -0
- package/dist/v2/blocks/scalar-response-block/components/ResponseEmpty.vue.d.ts +23 -0
- package/dist/v2/blocks/scalar-response-block/components/ResponseEmpty.vue.d.ts.map +1 -0
- package/dist/v2/blocks/scalar-response-block/components/ResponseEmpty.vue.js +7 -0
- package/dist/v2/blocks/scalar-response-block/components/ResponseEmpty.vue2.js +88 -0
- package/dist/v2/blocks/scalar-response-block/components/ResponseLoadingOverlay.vue.d.ts +8 -0
- package/dist/v2/blocks/scalar-response-block/components/ResponseLoadingOverlay.vue.d.ts.map +1 -0
- package/dist/v2/blocks/scalar-response-block/components/ResponseLoadingOverlay.vue.js +7 -0
- package/dist/v2/blocks/scalar-response-block/components/ResponseLoadingOverlay.vue2.js +41 -0
- package/dist/v2/blocks/scalar-response-block/components/ResponseMetaInformation.vue.d.ts +10 -0
- package/dist/v2/blocks/scalar-response-block/components/ResponseMetaInformation.vue.d.ts.map +1 -0
- package/dist/v2/blocks/scalar-response-block/components/ResponseMetaInformation.vue.js +61 -0
- package/dist/v2/blocks/scalar-response-block/components/ResponseMetaInformation.vue2.js +4 -0
- package/dist/v2/blocks/scalar-response-block/helpers/extract-filename.d.ts +5 -0
- package/dist/v2/blocks/scalar-response-block/helpers/extract-filename.d.ts.map +1 -0
- package/dist/v2/blocks/scalar-response-block/helpers/extract-filename.js +18 -0
- package/dist/v2/blocks/scalar-response-block/helpers/extract-filename.test.d.ts +2 -0
- package/dist/v2/blocks/scalar-response-block/helpers/extract-filename.test.d.ts.map +1 -0
- package/dist/v2/blocks/scalar-response-block/helpers/get-content-length.d.ts +4 -0
- package/dist/v2/blocks/scalar-response-block/helpers/get-content-length.d.ts.map +1 -0
- package/dist/v2/blocks/scalar-response-block/helpers/get-content-length.js +12 -0
- package/dist/v2/blocks/scalar-response-block/helpers/get-content-length.test.d.ts +2 -0
- package/dist/v2/blocks/scalar-response-block/helpers/get-content-length.test.d.ts.map +1 -0
- package/dist/v2/blocks/scalar-response-block/helpers/media-types.d.ts +20 -0
- package/dist/v2/blocks/scalar-response-block/helpers/media-types.d.ts.map +1 -0
- package/dist/v2/blocks/scalar-response-block/helpers/media-types.js +127 -0
- package/dist/v2/blocks/scalar-response-block/helpers/media-types.test.d.ts +2 -0
- package/dist/v2/blocks/scalar-response-block/helpers/media-types.test.d.ts.map +1 -0
- package/dist/v2/blocks/scalar-response-block/helpers/process-response-body.d.ts +17 -0
- package/dist/v2/blocks/scalar-response-block/helpers/process-response-body.d.ts.map +1 -0
- package/dist/v2/blocks/scalar-response-block/helpers/process-response-body.js +16 -0
- package/dist/v2/blocks/scalar-response-block/helpers/process-response-body.test.d.ts +2 -0
- package/dist/v2/blocks/scalar-response-block/helpers/process-response-body.test.d.ts.map +1 -0
- package/dist/v2/blocks/scalar-response-block/index.d.ts +2 -0
- package/dist/v2/blocks/scalar-response-block/index.d.ts.map +1 -0
- package/dist/v2/blocks/scalar-response-block/index.js +4 -0
- package/dist/views/Request/RequestSection/RequestAuth/RequestAuth.vue.d.ts +54 -54
- package/dist/views/Request/RequestSection/RequestAuth/RequestAuth.vue.d.ts.map +1 -1
- package/dist/views/Request/RequestSection/RequestAuth/RequestAuth.vue.js +2 -2
- package/dist/views/Request/RequestSection/RequestAuth/RequestAuth.vue2.js +31 -32
- package/dist/views/Request/RequestSection/RequestAuth/RequestAuthDataTable.vue.d.ts +54 -54
- package/dist/views/Request/RequestSection/RequestAuth/RequestAuthDataTable.vue.d.ts.map +1 -1
- package/dist/views/Request/RequestSection/RequestBody.vue.d.ts.map +1 -1
- package/dist/views/Request/RequestSection/RequestBody.vue.js +2 -2
- package/dist/views/Request/RequestSection/RequestBody.vue2.js +0 -1
- package/dist/views/Request/RequestSection/RequestCodeExample.vue.d.ts.map +1 -1
- package/dist/views/Request/RequestSection/RequestCodeExample.vue.js +2 -2
- package/dist/views/Request/RequestSection/RequestCodeExample.vue2.js +13 -14
- package/dist/views/Request/ResponseSection/ResponseEmpty.vue2.js +1 -1
- package/dist/views/Request/components/WorkspaceDropdown.vue.d.ts.map +1 -1
- package/dist/views/Request/components/WorkspaceDropdown.vue.js +5 -6
- package/dist/views/Request/libs/auth.d.ts +2 -2
- package/dist/views/Request/libs/watch-mode.d.ts +4 -4
- package/dist/views/Request/libs/watch-mode.d.ts.map +1 -1
- package/dist/views/Request/libs/watch-mode.js +241 -186
- package/package.json +21 -16
|
@@ -24,69 +24,67 @@ declare const __VLS_component: import("vue").DefineComponent<__VLS_Props, {}, {}
|
|
|
24
24
|
authorized: () => any;
|
|
25
25
|
activeSchemes: (schemes: ({
|
|
26
26
|
type: "apiKey";
|
|
27
|
-
value: string;
|
|
28
27
|
name: string;
|
|
29
|
-
uid: string & import("zod").BRAND<"securityScheme">;
|
|
30
|
-
nameKey: string;
|
|
31
28
|
in: "cookie" | "query" | "header";
|
|
29
|
+
uid: string & import("zod").$brand<"securityScheme">;
|
|
30
|
+
nameKey: string;
|
|
31
|
+
value: string;
|
|
32
32
|
description?: string | undefined;
|
|
33
33
|
} | {
|
|
34
34
|
type: "http";
|
|
35
|
-
uid: string & import("zod").BRAND<"securityScheme">;
|
|
36
|
-
nameKey: string;
|
|
37
35
|
scheme: "basic" | "bearer";
|
|
38
36
|
bearerFormat: string;
|
|
37
|
+
uid: string & import("zod").$brand<"securityScheme">;
|
|
38
|
+
nameKey: string;
|
|
39
39
|
username: string;
|
|
40
40
|
password: string;
|
|
41
41
|
token: string;
|
|
42
42
|
description?: string | undefined;
|
|
43
43
|
} | {
|
|
44
44
|
type: "openIdConnect";
|
|
45
|
-
uid: string & import("zod").BRAND<"securityScheme">;
|
|
46
|
-
nameKey: string;
|
|
47
45
|
openIdConnectUrl: string;
|
|
46
|
+
uid: string & import("zod").$brand<"securityScheme">;
|
|
47
|
+
nameKey: string;
|
|
48
48
|
description?: string | undefined;
|
|
49
49
|
} | {
|
|
50
50
|
type: "oauth2";
|
|
51
|
-
uid: string & import("zod").BRAND<"securityScheme">;
|
|
52
|
-
nameKey: string;
|
|
53
51
|
flows: {
|
|
54
|
-
|
|
55
|
-
type: "password";
|
|
56
|
-
username: string;
|
|
57
|
-
password: string;
|
|
58
|
-
token: string;
|
|
52
|
+
implicit?: {
|
|
59
53
|
refreshUrl: string;
|
|
60
54
|
scopes: Record<string, string>;
|
|
61
55
|
selectedScopes: string[];
|
|
62
56
|
"x-scalar-client-id": string;
|
|
63
|
-
|
|
64
|
-
|
|
57
|
+
token: string;
|
|
58
|
+
type: "implicit";
|
|
59
|
+
authorizationUrl: string;
|
|
60
|
+
"x-scalar-redirect-uri": string;
|
|
65
61
|
"x-scalar-security-query"?: Record<string, string> | undefined;
|
|
66
62
|
"x-scalar-security-body"?: Record<string, string> | undefined;
|
|
67
63
|
"x-tokenName"?: string | undefined;
|
|
68
|
-
"x-scalar-credentials-location"?: "header" | "body" | undefined;
|
|
69
64
|
} | undefined;
|
|
70
|
-
|
|
71
|
-
type: "implicit";
|
|
72
|
-
token: string;
|
|
65
|
+
password?: {
|
|
73
66
|
refreshUrl: string;
|
|
74
67
|
scopes: Record<string, string>;
|
|
75
68
|
selectedScopes: string[];
|
|
76
69
|
"x-scalar-client-id": string;
|
|
77
|
-
|
|
78
|
-
"
|
|
70
|
+
token: string;
|
|
71
|
+
type: "password";
|
|
72
|
+
tokenUrl: string;
|
|
73
|
+
clientSecret: string;
|
|
74
|
+
username: string;
|
|
75
|
+
password: string;
|
|
79
76
|
"x-scalar-security-query"?: Record<string, string> | undefined;
|
|
80
77
|
"x-scalar-security-body"?: Record<string, string> | undefined;
|
|
81
78
|
"x-tokenName"?: string | undefined;
|
|
79
|
+
"x-scalar-credentials-location"?: "header" | "body" | undefined;
|
|
82
80
|
} | undefined;
|
|
83
81
|
clientCredentials?: {
|
|
84
|
-
type: "clientCredentials";
|
|
85
|
-
token: string;
|
|
86
82
|
refreshUrl: string;
|
|
87
83
|
scopes: Record<string, string>;
|
|
88
84
|
selectedScopes: string[];
|
|
89
85
|
"x-scalar-client-id": string;
|
|
86
|
+
token: string;
|
|
87
|
+
type: "clientCredentials";
|
|
90
88
|
tokenUrl: string;
|
|
91
89
|
clientSecret: string;
|
|
92
90
|
"x-scalar-security-query"?: Record<string, string> | undefined;
|
|
@@ -95,23 +93,25 @@ declare const __VLS_component: import("vue").DefineComponent<__VLS_Props, {}, {}
|
|
|
95
93
|
"x-scalar-credentials-location"?: "header" | "body" | undefined;
|
|
96
94
|
} | undefined;
|
|
97
95
|
authorizationCode?: {
|
|
98
|
-
type: "authorizationCode";
|
|
99
|
-
token: string;
|
|
100
96
|
refreshUrl: string;
|
|
101
97
|
scopes: Record<string, string>;
|
|
102
98
|
selectedScopes: string[];
|
|
103
99
|
"x-scalar-client-id": string;
|
|
100
|
+
token: string;
|
|
101
|
+
type: "authorizationCode";
|
|
104
102
|
authorizationUrl: string;
|
|
103
|
+
"x-usePkce": "SHA-256" | "plain" | "no";
|
|
105
104
|
"x-scalar-redirect-uri": string;
|
|
106
105
|
tokenUrl: string;
|
|
107
106
|
clientSecret: string;
|
|
108
|
-
"x-usePkce": "SHA-256" | "plain" | "no";
|
|
109
107
|
"x-scalar-security-query"?: Record<string, string> | undefined;
|
|
110
108
|
"x-scalar-security-body"?: Record<string, string> | undefined;
|
|
111
109
|
"x-tokenName"?: string | undefined;
|
|
112
110
|
"x-scalar-credentials-location"?: "header" | "body" | undefined;
|
|
113
111
|
} | undefined;
|
|
114
112
|
};
|
|
113
|
+
uid: string & import("zod").$brand<"securityScheme">;
|
|
114
|
+
nameKey: string;
|
|
115
115
|
description?: string | undefined;
|
|
116
116
|
'x-default-scopes'?: string[] | undefined;
|
|
117
117
|
})[]) => any;
|
|
@@ -119,69 +119,67 @@ declare const __VLS_component: import("vue").DefineComponent<__VLS_Props, {}, {}
|
|
|
119
119
|
onAuthorized?: (() => any) | undefined;
|
|
120
120
|
onActiveSchemes?: ((schemes: ({
|
|
121
121
|
type: "apiKey";
|
|
122
|
-
value: string;
|
|
123
122
|
name: string;
|
|
124
|
-
uid: string & import("zod").BRAND<"securityScheme">;
|
|
125
|
-
nameKey: string;
|
|
126
123
|
in: "cookie" | "query" | "header";
|
|
124
|
+
uid: string & import("zod").$brand<"securityScheme">;
|
|
125
|
+
nameKey: string;
|
|
126
|
+
value: string;
|
|
127
127
|
description?: string | undefined;
|
|
128
128
|
} | {
|
|
129
129
|
type: "http";
|
|
130
|
-
uid: string & import("zod").BRAND<"securityScheme">;
|
|
131
|
-
nameKey: string;
|
|
132
130
|
scheme: "basic" | "bearer";
|
|
133
131
|
bearerFormat: string;
|
|
132
|
+
uid: string & import("zod").$brand<"securityScheme">;
|
|
133
|
+
nameKey: string;
|
|
134
134
|
username: string;
|
|
135
135
|
password: string;
|
|
136
136
|
token: string;
|
|
137
137
|
description?: string | undefined;
|
|
138
138
|
} | {
|
|
139
139
|
type: "openIdConnect";
|
|
140
|
-
uid: string & import("zod").BRAND<"securityScheme">;
|
|
141
|
-
nameKey: string;
|
|
142
140
|
openIdConnectUrl: string;
|
|
141
|
+
uid: string & import("zod").$brand<"securityScheme">;
|
|
142
|
+
nameKey: string;
|
|
143
143
|
description?: string | undefined;
|
|
144
144
|
} | {
|
|
145
145
|
type: "oauth2";
|
|
146
|
-
uid: string & import("zod").BRAND<"securityScheme">;
|
|
147
|
-
nameKey: string;
|
|
148
146
|
flows: {
|
|
149
|
-
|
|
150
|
-
type: "password";
|
|
151
|
-
username: string;
|
|
152
|
-
password: string;
|
|
153
|
-
token: string;
|
|
147
|
+
implicit?: {
|
|
154
148
|
refreshUrl: string;
|
|
155
149
|
scopes: Record<string, string>;
|
|
156
150
|
selectedScopes: string[];
|
|
157
151
|
"x-scalar-client-id": string;
|
|
158
|
-
|
|
159
|
-
|
|
152
|
+
token: string;
|
|
153
|
+
type: "implicit";
|
|
154
|
+
authorizationUrl: string;
|
|
155
|
+
"x-scalar-redirect-uri": string;
|
|
160
156
|
"x-scalar-security-query"?: Record<string, string> | undefined;
|
|
161
157
|
"x-scalar-security-body"?: Record<string, string> | undefined;
|
|
162
158
|
"x-tokenName"?: string | undefined;
|
|
163
|
-
"x-scalar-credentials-location"?: "header" | "body" | undefined;
|
|
164
159
|
} | undefined;
|
|
165
|
-
|
|
166
|
-
type: "implicit";
|
|
167
|
-
token: string;
|
|
160
|
+
password?: {
|
|
168
161
|
refreshUrl: string;
|
|
169
162
|
scopes: Record<string, string>;
|
|
170
163
|
selectedScopes: string[];
|
|
171
164
|
"x-scalar-client-id": string;
|
|
172
|
-
|
|
173
|
-
"
|
|
165
|
+
token: string;
|
|
166
|
+
type: "password";
|
|
167
|
+
tokenUrl: string;
|
|
168
|
+
clientSecret: string;
|
|
169
|
+
username: string;
|
|
170
|
+
password: string;
|
|
174
171
|
"x-scalar-security-query"?: Record<string, string> | undefined;
|
|
175
172
|
"x-scalar-security-body"?: Record<string, string> | undefined;
|
|
176
173
|
"x-tokenName"?: string | undefined;
|
|
174
|
+
"x-scalar-credentials-location"?: "header" | "body" | undefined;
|
|
177
175
|
} | undefined;
|
|
178
176
|
clientCredentials?: {
|
|
179
|
-
type: "clientCredentials";
|
|
180
|
-
token: string;
|
|
181
177
|
refreshUrl: string;
|
|
182
178
|
scopes: Record<string, string>;
|
|
183
179
|
selectedScopes: string[];
|
|
184
180
|
"x-scalar-client-id": string;
|
|
181
|
+
token: string;
|
|
182
|
+
type: "clientCredentials";
|
|
185
183
|
tokenUrl: string;
|
|
186
184
|
clientSecret: string;
|
|
187
185
|
"x-scalar-security-query"?: Record<string, string> | undefined;
|
|
@@ -190,23 +188,25 @@ declare const __VLS_component: import("vue").DefineComponent<__VLS_Props, {}, {}
|
|
|
190
188
|
"x-scalar-credentials-location"?: "header" | "body" | undefined;
|
|
191
189
|
} | undefined;
|
|
192
190
|
authorizationCode?: {
|
|
193
|
-
type: "authorizationCode";
|
|
194
|
-
token: string;
|
|
195
191
|
refreshUrl: string;
|
|
196
192
|
scopes: Record<string, string>;
|
|
197
193
|
selectedScopes: string[];
|
|
198
194
|
"x-scalar-client-id": string;
|
|
195
|
+
token: string;
|
|
196
|
+
type: "authorizationCode";
|
|
199
197
|
authorizationUrl: string;
|
|
198
|
+
"x-usePkce": "SHA-256" | "plain" | "no";
|
|
200
199
|
"x-scalar-redirect-uri": string;
|
|
201
200
|
tokenUrl: string;
|
|
202
201
|
clientSecret: string;
|
|
203
|
-
"x-usePkce": "SHA-256" | "plain" | "no";
|
|
204
202
|
"x-scalar-security-query"?: Record<string, string> | undefined;
|
|
205
203
|
"x-scalar-security-body"?: Record<string, string> | undefined;
|
|
206
204
|
"x-tokenName"?: string | undefined;
|
|
207
205
|
"x-scalar-credentials-location"?: "header" | "body" | undefined;
|
|
208
206
|
} | undefined;
|
|
209
207
|
};
|
|
208
|
+
uid: string & import("zod").$brand<"securityScheme">;
|
|
209
|
+
nameKey: string;
|
|
210
210
|
description?: string | undefined;
|
|
211
211
|
'x-default-scopes'?: string[] | undefined;
|
|
212
212
|
})[]) => any) | undefined;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"RequestAuth.vue.d.ts","sourceRoot":"","sources":["../../../../../src/views/Request/RequestSection/RequestAuth/RequestAuth.vue"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"RequestAuth.vue.d.ts","sourceRoot":"","sources":["../../../../../src/views/Request/RequestSection/RequestAuth/RequestAuth.vue"],"names":[],"mappings":"AAkaA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,wCAAwC,CAAA;AACzE,OAAO,KAAK,EAAE,0BAA0B,EAAE,MAAM,mCAAmC,CAAA;AACnF,OAAO,KAAK,EACV,UAAU,EACV,SAAS,EAET,MAAM,EACP,MAAM,iCAAiC,CAAA;AACxC,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,sCAAsC,CAAA;AAKrE,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,yBAAyB,CAAA;AAa1D,KAAK,WAAW,GAAG;IACjB,UAAU,EAAE,UAAU,CAAA;IACtB,qDAAqD;IACrD,UAAU,CAAC,EAAE,OAAO,CAAA;IACpB,WAAW,EAAE,WAAW,CAAA;IACxB,YAAY,EAAE,WAAW,EAAE,CAAA;IAC3B,MAAM,EAAE,QAAQ,GAAG,WAAW,CAAA;IAC9B,SAAS,CAAC,EAAE,SAAS,GAAG,SAAS,CAAA;IACjC,WAAW,CAAC,EAAE,OAAO,CAAA;IACrB,0BAA0B,EAAE,0BAA0B,CAAA;IACtD,MAAM,EAAE,MAAM,GAAG,SAAS,CAAA;IAC1B,KAAK,EAAE,MAAM,CAAA;IACb,SAAS,EAAE,SAAS,CAAA;CACrB,CAAC;AAuBF,KAAK,WAAW,GAAG;IACjB,eAAe,CAAC,EAAE,MAAM,OAAO,CAAA;CAChC,CAAC;AA+gBF,QAAA,MAAM,eAAe;;;;;;;;;;;;;;;;;;;;;;;;;;;;;oBA5TuB,CAAC;;;;;;;;;yCAQF,CAAC;wCAG7B,CAAC;6BACgC,CAAC;;oBAC3B,CAAC;;;;;;;;;;;yCASwC,CAAC;wCAG5C,CAAA;6BAA+D,CAAC;+CAAiE,CAAC;;6BACvI,CAAC;;;;;;;;;yCAMwB,CAAC;wCAGzB,CAAC;6BAIV,CAAC;+CAEN,CAAC;;6BAEI,CAAC;;;;;;;;;;;;yCASgC,CAAC;wCAC+B,CAAC;6BAA+D,CAAC;+CACpF,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;oBAtDV,CAAC;;;;;;;;;yCAQF,CAAC;wCAG7B,CAAC;6BACgC,CAAC;;oBAC3B,CAAC;;;;;;;;;;;yCASwC,CAAC;wCAG5C,CAAA;6BAA+D,CAAC;+CAAiE,CAAC;;6BACvI,CAAC;;;;;;;;;yCAMwB,CAAC;wCAGzB,CAAC;6BAIV,CAAC;+CAEN,CAAC;;6BAEI,CAAC;;;;;;;;;;;;yCASgC,CAAC;wCAC+B,CAAC;6BAA+D,CAAC;+CACpF,CAAC;;;;;;;;kFA6QpD,CAAC;wBACkB,eAAe,CAAC,OAAO,eAAe,EAAE,WAAW,CAAC;AAAzE,wBAA0E;AAQ1E,KAAK,eAAe,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG;IAChC,QAAO;QACN,MAAM,EAAE,CAAC,CAAC;KAEV,CAAA;CACD,CAAC"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import t from "./RequestAuth.vue2.js";
|
|
2
2
|
/* empty css */
|
|
3
3
|
import o from "../../../../_virtual/_plugin-vue_export-helper.js";
|
|
4
|
-
const
|
|
4
|
+
const f = /* @__PURE__ */ o(t, [["__scopeId", "data-v-3f1067a4"]]);
|
|
5
5
|
export {
|
|
6
|
-
|
|
6
|
+
f as default
|
|
7
7
|
};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { defineComponent as z, useId as K, ref as g, computed as f, createBlock as V, openBlock as u, withCtx as
|
|
2
|
-
import { useModal as
|
|
1
|
+
import { defineComponent as z, useId as K, ref as g, computed as f, createBlock as V, openBlock as u, withCtx as r, createVNode as m, renderSlot as j, unref as s, createElementVNode as i, createElementBlock as h, Fragment as x, createTextVNode as k, toDisplayString as y, createCommentVNode as D, withModifiers as Y, normalizeClass as F } from "vue";
|
|
2
|
+
import { useModal as H, ScalarComboboxMultiselect as J, ScalarButton as P, ScalarListboxCheckbox as W, ScalarIconButton as G } from "@scalar/components";
|
|
3
3
|
import { safeLocalStorage as Q, CLIENT_LS_KEYS as X } from "@scalar/helpers/object/local-storage";
|
|
4
4
|
import { ScalarIconCaretDown as Z, ScalarIconTrash as _ } from "@scalar/icons";
|
|
5
5
|
import { isDefined as ee } from "@scalar/oas-utils/helpers";
|
|
@@ -7,7 +7,7 @@ import te from "../../../../components/ViewLayout/ViewLayoutCollapse.vue.js";
|
|
|
7
7
|
import { useWorkspace as oe } from "../../../../store/store.js";
|
|
8
8
|
import le from "./DeleteRequestAuthModal.vue.js";
|
|
9
9
|
import ne from "./RequestAuthDataTable.vue.js";
|
|
10
|
-
import { getSecurityRequirements as se, formatComplexScheme as
|
|
10
|
+
import { getSecurityRequirements as se, formatComplexScheme as re, formatScheme as ie, getSchemeOptions as ae } from "../../libs/auth.js";
|
|
11
11
|
const ce = ["id"], ue = { class: "flex flex-1" }, me = { class: "min-w-0 flex-1 truncate" }, Ce = /* @__PURE__ */ z({
|
|
12
12
|
__name: "RequestAuth",
|
|
13
13
|
props: {
|
|
@@ -30,7 +30,7 @@ const ce = ["id"], ue = { class: "flex flex-1" }, me = { class: "min-w-0 flex-1
|
|
|
30
30
|
securitySchemeMutators: $,
|
|
31
31
|
requestMutators: B,
|
|
32
32
|
collectionMutators: I
|
|
33
|
-
} = oe(), A = K(), v = g(null), p =
|
|
33
|
+
} = oe(), A = K(), v = g(null), p = H(), S = g(
|
|
34
34
|
null
|
|
35
35
|
), R = g(!1), q = f(() => {
|
|
36
36
|
const t = se(n.operation, n.collection);
|
|
@@ -46,10 +46,10 @@ const ce = ["id"], ue = { class: "flex flex-1" }, me = { class: "min-w-0 flex-1
|
|
|
46
46
|
}), a = f(
|
|
47
47
|
() => n.selectedSecuritySchemeUids.map((t) => {
|
|
48
48
|
if (Array.isArray(t))
|
|
49
|
-
return
|
|
49
|
+
return re(t, d);
|
|
50
50
|
const e = d[t ?? ""];
|
|
51
51
|
if (e)
|
|
52
|
-
return
|
|
52
|
+
return ie(e);
|
|
53
53
|
}).filter(ee)
|
|
54
54
|
);
|
|
55
55
|
function M(t) {
|
|
@@ -64,9 +64,9 @@ const ce = ["id"], ue = { class: "flex flex-1" }, me = { class: "min-w-0 flex-1
|
|
|
64
64
|
);
|
|
65
65
|
l && o.push(l.uid);
|
|
66
66
|
}
|
|
67
|
-
|
|
67
|
+
w(o);
|
|
68
68
|
}
|
|
69
|
-
const
|
|
69
|
+
const w = (t) => {
|
|
70
70
|
if (n.collection.useCollectionSecurity) {
|
|
71
71
|
if (I.edit(n.collection.uid, "selectedSecuritySchemeUids", t), !n.persistAuth)
|
|
72
72
|
return;
|
|
@@ -77,7 +77,7 @@ const ce = ["id"], ue = { class: "flex flex-1" }, me = { class: "min-w-0 flex-1
|
|
|
77
77
|
);
|
|
78
78
|
} else n.operation?.uid && B.edit(n.operation.uid, "selectedSecuritySchemeUids", t);
|
|
79
79
|
};
|
|
80
|
-
function
|
|
80
|
+
function O({ id: t, label: e }) {
|
|
81
81
|
S.value = { id: t, label: e }, p.show();
|
|
82
82
|
}
|
|
83
83
|
const T = (t) => {
|
|
@@ -87,7 +87,7 @@ const ce = ["id"], ue = { class: "flex flex-1" }, me = { class: "min-w-0 flex-1
|
|
|
87
87
|
const l = t.split(",");
|
|
88
88
|
return l.length > 1 && Array.isArray(o) && l.length === o.length ? o.every((c) => !l.includes(c)) : o !== t;
|
|
89
89
|
});
|
|
90
|
-
|
|
90
|
+
w(e), v.value?.$el.focus(), p.hide();
|
|
91
91
|
}, U = f(
|
|
92
92
|
() => ae(
|
|
93
93
|
q.value.filteredRequirements,
|
|
@@ -104,64 +104,63 @@ const ce = ["id"], ue = { class: "flex flex-1" }, me = { class: "min-w-0 flex-1
|
|
|
104
104
|
layout: t.layout,
|
|
105
105
|
"onUpdate:modelValue": e[4] || (e[4] = (o) => R.value = o)
|
|
106
106
|
}, {
|
|
107
|
-
title:
|
|
108
|
-
|
|
107
|
+
title: r(() => [
|
|
108
|
+
i("div", {
|
|
109
109
|
id: s(A),
|
|
110
110
|
class: "inline-flex items-center gap-0.5 leading-[20px]"
|
|
111
111
|
}, [
|
|
112
|
-
|
|
112
|
+
i("span", null, y(t.title), 1),
|
|
113
113
|
b.value ? (u(), h("span", {
|
|
114
114
|
key: 0,
|
|
115
|
-
class:
|
|
115
|
+
class: F(["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": b.value.text === "Required" }]),
|
|
116
116
|
onClick: L
|
|
117
117
|
}, y(b.value.text), 3)) : D("", !0)
|
|
118
118
|
], 8, ce)
|
|
119
119
|
]),
|
|
120
|
-
actions:
|
|
121
|
-
|
|
122
|
-
m(s(
|
|
120
|
+
actions: r(() => [
|
|
121
|
+
i("div", ue, [
|
|
122
|
+
m(s(J), {
|
|
123
123
|
class: "w-72 text-xs",
|
|
124
124
|
modelValue: a.value,
|
|
125
125
|
multiple: "",
|
|
126
126
|
options: U.value,
|
|
127
127
|
placement: "bottom-end",
|
|
128
128
|
teleport: "",
|
|
129
|
-
onDelete:
|
|
129
|
+
onDelete: O,
|
|
130
130
|
"onUpdate:modelValue": M
|
|
131
131
|
}, {
|
|
132
|
-
option:
|
|
133
|
-
m(s(
|
|
132
|
+
option: r(({ option: o, selected: l }) => [
|
|
133
|
+
m(s(W), {
|
|
134
134
|
multiselect: "",
|
|
135
135
|
selected: l
|
|
136
136
|
}, null, 8, ["selected"]),
|
|
137
|
-
|
|
137
|
+
i("div", me, y(o.label), 1),
|
|
138
138
|
o.isDeletable ?? !t.isReadOnly ? (u(), V(s(G), {
|
|
139
139
|
key: 0,
|
|
140
140
|
class: "-m-0.5 shrink-0 p-0.5 opacity-0 group-hover/item:opacity-100",
|
|
141
141
|
icon: s(_),
|
|
142
142
|
label: `Delete ${o.label}`,
|
|
143
143
|
size: "xs",
|
|
144
|
-
onClick:
|
|
144
|
+
onClick: Y((c) => O(o), ["stop"])
|
|
145
145
|
}, null, 8, ["icon", "label", "onClick"])) : D("", !0)
|
|
146
146
|
]),
|
|
147
|
-
default:
|
|
148
|
-
m(s(
|
|
147
|
+
default: r(() => [
|
|
148
|
+
m(s(P), {
|
|
149
149
|
ref_key: "comboboxButtonRef",
|
|
150
150
|
ref: v,
|
|
151
151
|
"aria-describedby": s(A),
|
|
152
|
-
class: "group/combobox-button hover:text-c-1 text-c-2 flex h-fit items-center gap-1 px-0.75 py-0.25 text-base font-normal transition-transform",
|
|
153
|
-
fullWidth: "",
|
|
152
|
+
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",
|
|
154
153
|
variant: "ghost"
|
|
155
154
|
}, {
|
|
156
|
-
default:
|
|
155
|
+
default: r(() => [
|
|
157
156
|
a.value.length === 1 ? (u(), h(x, { key: 0 }, [
|
|
158
|
-
e[5] || (e[5] =
|
|
157
|
+
e[5] || (e[5] = i("span", { class: "sr-only" }, "Selected Auth Type:", -1)),
|
|
159
158
|
k(" " + y(a.value[0]?.label), 1)
|
|
160
159
|
], 64)) : a.value.length > 1 ? (u(), h(x, { key: 1 }, [
|
|
161
160
|
e[6] || (e[6] = k(" Multiple ")),
|
|
162
|
-
e[7] || (e[7] =
|
|
161
|
+
e[7] || (e[7] = i("span", { class: "sr-only" }, "Auth Types Selected", -1))
|
|
163
162
|
], 64)) : (u(), h(x, { key: 2 }, [
|
|
164
|
-
e[8] || (e[8] =
|
|
163
|
+
e[8] || (e[8] = i("span", { class: "sr-only" }, "Select", -1)),
|
|
165
164
|
e[9] || (e[9] = k(" Auth Type "))
|
|
166
165
|
], 64)),
|
|
167
166
|
m(s(Z), {
|
|
@@ -176,7 +175,7 @@ const ce = ["id"], ue = { class: "flex flex-1" }, me = { class: "min-w-0 flex-1
|
|
|
176
175
|
}, 8, ["modelValue", "options"])
|
|
177
176
|
])
|
|
178
177
|
]),
|
|
179
|
-
default:
|
|
178
|
+
default: r(() => [
|
|
180
179
|
m(ne, {
|
|
181
180
|
collection: t.collection,
|
|
182
181
|
envVariables: t.envVariables,
|
|
@@ -189,7 +188,7 @@ const ce = ["id"], ue = { class: "flex flex-1" }, me = { class: "min-w-0 flex-1
|
|
|
189
188
|
onActiveSchemes: e[0] || (e[0] = (o) => C("activeSchemes", o)),
|
|
190
189
|
onAuthorized: e[1] || (e[1] = (o) => C("authorized"))
|
|
191
190
|
}, {
|
|
192
|
-
"oauth-actions":
|
|
191
|
+
"oauth-actions": r(() => [
|
|
193
192
|
j(t.$slots, "oauth-actions", {}, void 0, !0)
|
|
194
193
|
]),
|
|
195
194
|
_: 3
|