@scalar/api-client 2.9.1 → 2.10.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 +25 -0
- package/README.md +2 -2
- 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/style.css +1 -1
- package/dist/v2/blocks/operation-block/OperationBlock.vue.d.ts +89 -0
- package/dist/v2/blocks/operation-block/OperationBlock.vue.d.ts.map +1 -0
- package/dist/v2/blocks/operation-block/OperationBlock.vue.js +129 -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 +8 -27
- package/dist/v2/blocks/operation-block/components/Header.vue.d.ts.map +1 -0
- package/dist/v2/blocks/operation-block/components/Header.vue.js +7 -0
- package/dist/v2/blocks/operation-block/components/Header.vue2.js +93 -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/scalar-address-bar-block/components/AddressBar.vue.d.ts +8 -24
- package/dist/v2/blocks/scalar-address-bar-block/components/AddressBar.vue.d.ts.map +1 -1
- package/dist/v2/blocks/scalar-address-bar-block/components/AddressBar.vue.js +2 -2
- package/dist/v2/blocks/scalar-address-bar-block/components/AddressBar.vue2.js +60 -59
- package/dist/v2/blocks/scalar-auth-selector-block/components/AuthSelector.vue.d.ts +7 -28
- 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 +97 -87
- package/dist/v2/blocks/scalar-auth-selector-block/components/RequestAuthDataTable.vue.d.ts +7 -17
- 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 +1 -1
- package/dist/v2/blocks/scalar-auth-selector-block/components/RequestAuthDataTable.vue2.js +46 -41
- package/dist/v2/blocks/scalar-auth-selector-block/components/RequestAuthTab.vue.d.ts +1 -1
- package/dist/v2/blocks/scalar-auth-selector-block/components/RequestAuthTab.vue.d.ts.map +1 -1
- package/dist/v2/blocks/scalar-auth-selector-block/components/RequestAuthTab.vue.js +4 -5
- 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 +6 -9
- 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 +255 -206
- package/dist/v2/blocks/scalar-operation-block/components/OperationBody.vue.d.ts +30 -25
- 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 +140 -97
- package/dist/v2/blocks/scalar-operation-block/components/OperationParams.vue.d.ts +1 -0
- 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 +31 -29
- package/dist/v2/blocks/scalar-operation-block/components/OperationTable.vue.d.ts +1 -0
- 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 +2 -2
- package/dist/v2/blocks/scalar-operation-block/components/OperationTable.vue2.js +32 -29
- 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 +56 -51
- 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/components/sidebar/Sidebar.vue.d.ts.map +1 -1
- package/dist/v2/components/sidebar/Sidebar.vue.js +43 -42
- package/dist/v2/features/app/App.vue.d.ts.map +1 -1
- package/dist/v2/features/app/App.vue.js +62 -49
- package/dist/v2/features/app/components/AppSidebar.vue.d.ts +1 -1
- package/dist/v2/features/app/components/AppSidebar.vue.js +2 -2
- package/dist/v2/features/app/helpers/routes.d.ts +5 -1
- 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.vue2.js +27 -24
- package/dist/v2/features/collection/WorkspaceCollection.vue2.js +15 -12
- package/dist/v2/features/collection/components/Authentication.vue.d.ts +4 -25
- package/dist/v2/features/collection/components/Authentication.vue.d.ts.map +1 -1
- package/dist/v2/features/collection/components/Authentication.vue.js +1 -1
- package/dist/v2/features/collection/components/Authentication.vue2.js +27 -28
- package/dist/v2/features/collection/components/Environment.vue2.js +3 -0
- package/dist/v2/features/collection/components/Overview.vue2.js +24 -21
- 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 +56 -114
- package/dist/v2/hooks/use-workspace-client-events.d.ts.map +1 -1
- package/dist/v2/hooks/use-workspace-client-events.js +131 -18
- 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/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/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.vue.js +0 -7
- 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,75 +1,88 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
import { ScalarTeleportRoot as
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
1
|
+
import { defineComponent as g, computed as r, ref as f, createElementBlock as B, openBlock as n, Fragment as N, createElementVNode as p, createVNode as c, unref as d, withCtx as k, createBlock as m, withDirectives as V, vShow as C, KeepAlive as T, resolveDynamicComponent as W } from "vue";
|
|
2
|
+
import { ScalarTeleportRoot as M } from "@scalar/components";
|
|
3
|
+
import { isHttpMethod as O } from "@scalar/helpers/http/is-http-method";
|
|
4
|
+
import { getThemeStyles as U } from "@scalar/themes";
|
|
5
|
+
import { useColorMode as D } from "@scalar/use-hooks/useColorMode";
|
|
6
|
+
import { createWorkspaceEventBus as R } from "@scalar/workspace-store/events";
|
|
6
7
|
import { xScalarEnvironmentSchema as w } from "@scalar/workspace-store/schemas/extensions/document/x-scalar-environments";
|
|
7
|
-
import { coerceValue as
|
|
8
|
-
import { useRoute as
|
|
9
|
-
import { useWorkspaceClientEvents as
|
|
10
|
-
import
|
|
11
|
-
import
|
|
12
|
-
import
|
|
13
|
-
const
|
|
14
|
-
...
|
|
8
|
+
import { coerceValue as S } from "@scalar/workspace-store/schemas/typebox-coerce";
|
|
9
|
+
import { useRoute as A, RouterView as H } from "vue-router";
|
|
10
|
+
import { useWorkspaceClientEvents as I } from "../../hooks/use-workspace-client-events.js";
|
|
11
|
+
import L from "./components/AppSidebar.vue.js";
|
|
12
|
+
import P from "./components/DesktopTabs.vue.js";
|
|
13
|
+
import $ from "./components/WebTopNav.vue.js";
|
|
14
|
+
const j = ["innerHTML"], F = { class: "flex flex-1" }, K = { class: "bg-b-1 flex flex-1 flex-col" }, q = {}, ne = /* @__PURE__ */ g({
|
|
15
|
+
...q,
|
|
15
16
|
__name: "App",
|
|
16
17
|
props: {
|
|
17
18
|
layout: {},
|
|
18
19
|
workspaceStore: {}
|
|
19
20
|
},
|
|
20
|
-
setup(
|
|
21
|
-
|
|
22
|
-
const
|
|
23
|
-
const e =
|
|
24
|
-
return e ? `<style>${
|
|
25
|
-
}),
|
|
26
|
-
() =>
|
|
27
|
-
)
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
21
|
+
setup(a) {
|
|
22
|
+
D(), typeof window < "u" && (window.dataDumpWorkspace = () => a.workspaceStore);
|
|
23
|
+
const h = r(() => {
|
|
24
|
+
const e = a.workspaceStore.workspace["x-scalar-theme"];
|
|
25
|
+
return e ? `<style>${U(e)}</style>` : "";
|
|
26
|
+
}), s = f("default"), i = f(!0), v = R(), l = A(), u = r(
|
|
27
|
+
() => a.workspaceStore.workspace.documents[l.params.documentSlug] ?? Object.values(a.workspaceStore.workspace.documents)[0] ?? null
|
|
28
|
+
), b = r(() => {
|
|
29
|
+
const e = l.params.pathEncoded;
|
|
30
|
+
return e && typeof e == "string" ? decodeURIComponent(e) : void 0;
|
|
31
|
+
}), y = r(() => {
|
|
32
|
+
const e = l.params.method;
|
|
33
|
+
return e && typeof e == "string" && O(e) ? e : void 0;
|
|
34
|
+
}), x = r(() => {
|
|
35
|
+
const e = l.params.exampleName;
|
|
36
|
+
return e && typeof e == "string" ? e : void 0;
|
|
37
|
+
});
|
|
38
|
+
I(v, u, a.workspaceStore);
|
|
39
|
+
const E = r(() => {
|
|
40
|
+
const e = a.workspaceStore.workspace["x-scalar-active-environment"];
|
|
31
41
|
if (!e)
|
|
32
|
-
return
|
|
33
|
-
const t =
|
|
34
|
-
return
|
|
42
|
+
return S(w, {});
|
|
43
|
+
const t = a.workspaceStore.workspace["x-scalar-environments"]?.[e] ?? { variables: [] }, o = u.value?.["x-scalar-environments"]?.[e] ?? { variables: [] };
|
|
44
|
+
return S(w, {
|
|
35
45
|
...t,
|
|
36
46
|
...o,
|
|
37
47
|
variables: [...t.variables, ...o.variables]
|
|
38
48
|
});
|
|
39
49
|
});
|
|
40
|
-
return (e, t) => (
|
|
41
|
-
|
|
42
|
-
|
|
50
|
+
return (e, t) => (n(), B(N, null, [
|
|
51
|
+
p("div", { innerHTML: h.value }, null, 8, j),
|
|
52
|
+
c(d(M), null, {
|
|
43
53
|
default: k(() => [
|
|
44
|
-
e.layout === "desktop" ? (
|
|
54
|
+
e.layout === "desktop" ? (n(), m(P, { key: 0 })) : (n(), m($, {
|
|
45
55
|
key: 1,
|
|
46
|
-
modelValue:
|
|
47
|
-
"onUpdate:modelValue": t[0] || (t[0] = (o) =>
|
|
56
|
+
modelValue: s.value,
|
|
57
|
+
"onUpdate:modelValue": t[0] || (t[0] = (o) => s.value = o)
|
|
48
58
|
}, null, 8, ["modelValue"])),
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
isSidebarOpen:
|
|
52
|
-
"onUpdate:isSidebarOpen": t[1] || (t[1] = (o) =>
|
|
53
|
-
workspace:
|
|
54
|
-
"onUpdate:workspace": t[2] || (t[2] = (o) =>
|
|
59
|
+
p("main", F, [
|
|
60
|
+
V(c(L, {
|
|
61
|
+
isSidebarOpen: i.value,
|
|
62
|
+
"onUpdate:isSidebarOpen": t[1] || (t[1] = (o) => i.value = o),
|
|
63
|
+
workspace: s.value,
|
|
64
|
+
"onUpdate:workspace": t[2] || (t[2] = (o) => s.value = o),
|
|
55
65
|
documents: e.workspaceStore.workspace.documents,
|
|
56
66
|
layout: e.layout,
|
|
57
67
|
sidebarWidth: e.workspaceStore.workspace["x-scalar-sidebar-width"] ?? 288,
|
|
58
68
|
"onUpdate:sidebarWidth": t[3] || (t[3] = (o) => e.workspaceStore.update("x-scalar-sidebar-width", o))
|
|
59
69
|
}, null, 8, ["isSidebarOpen", "workspace", "documents", "layout", "sidebarWidth"]), [
|
|
60
|
-
[
|
|
70
|
+
[C, i.value]
|
|
61
71
|
]),
|
|
62
|
-
|
|
63
|
-
|
|
72
|
+
p("div", K, [
|
|
73
|
+
c(d(H), null, {
|
|
64
74
|
default: k(({ Component: o }) => [
|
|
65
|
-
(
|
|
66
|
-
(
|
|
75
|
+
(n(), m(T, null, [
|
|
76
|
+
(n(), m(W(o), {
|
|
67
77
|
document: u.value,
|
|
68
|
-
environment:
|
|
69
|
-
eventBus:
|
|
78
|
+
environment: E.value,
|
|
79
|
+
eventBus: d(v),
|
|
70
80
|
layout: e.layout,
|
|
71
|
-
workspaceStore: e.workspaceStore
|
|
72
|
-
|
|
81
|
+
workspaceStore: e.workspaceStore,
|
|
82
|
+
path: b.value,
|
|
83
|
+
method: y.value,
|
|
84
|
+
exampleName: x.value
|
|
85
|
+
}, null, 8, ["document", "environment", "eventBus", "layout", "workspaceStore", "path", "method", "exampleName"]))
|
|
73
86
|
], 1024))
|
|
74
87
|
]),
|
|
75
88
|
_: 1
|
|
@@ -83,5 +96,5 @@ const N = ["innerHTML"], $ = { class: "flex flex-1" }, j = { class: "bg-b-1 flex
|
|
|
83
96
|
}
|
|
84
97
|
});
|
|
85
98
|
export {
|
|
86
|
-
|
|
99
|
+
ne as default
|
|
87
100
|
};
|
|
@@ -5,7 +5,7 @@ type __VLS_Props = {
|
|
|
5
5
|
documents: Record<string, WorkspaceDocument>;
|
|
6
6
|
};
|
|
7
7
|
type __VLS_PublicProps = __VLS_Props & {
|
|
8
|
-
/**
|
|
8
|
+
/** Propagate up the workspace model to the parent */
|
|
9
9
|
'workspace': string;
|
|
10
10
|
/** Controls the visibility of the sidebar */
|
|
11
11
|
'isSidebarOpen': boolean;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import o from "./AppSidebar.vue2.js";
|
|
2
2
|
/* empty css */
|
|
3
3
|
import p from "../../../../_virtual/_plugin-vue_export-helper.js";
|
|
4
|
-
const
|
|
4
|
+
const m = /* @__PURE__ */ p(o, [["__scopeId", "data-v-0a390d33"]]);
|
|
5
5
|
export {
|
|
6
|
-
|
|
6
|
+
m as default
|
|
7
7
|
};
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import type { HttpMethod } from '@scalar/helpers/http/http-methods';
|
|
1
2
|
import type { WorkspaceStore } from '@scalar/workspace-store/client';
|
|
2
3
|
import type { WorkspaceEventBus } from '@scalar/workspace-store/events';
|
|
3
4
|
import type { XScalarEnvironment } from '@scalar/workspace-store/schemas/extensions/document/x-scalar-environments';
|
|
@@ -8,6 +9,9 @@ export type RouteProps = {
|
|
|
8
9
|
document: WorkspaceDocument | null;
|
|
9
10
|
eventBus: WorkspaceEventBus;
|
|
10
11
|
layout: ClientLayout;
|
|
12
|
+
path?: string;
|
|
13
|
+
method?: HttpMethod;
|
|
14
|
+
exampleName?: string;
|
|
11
15
|
environment: XScalarEnvironment;
|
|
12
16
|
workspaceStore: WorkspaceStore;
|
|
13
17
|
};
|
|
@@ -33,7 +37,7 @@ export declare const ROUTES: ({
|
|
|
33
37
|
children: ({
|
|
34
38
|
name: string;
|
|
35
39
|
path: string;
|
|
36
|
-
component: () => Promise<typeof import("../../../../v2/
|
|
40
|
+
component: () => Promise<typeof import("../../../../v2/features/operation/Operation.vue.js")>;
|
|
37
41
|
children?: undefined;
|
|
38
42
|
} | {
|
|
39
43
|
name: string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"routes.d.ts","sourceRoot":"","sources":["../../../../../src/v2/features/app/helpers/routes.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,gCAAgC,CAAA;AACpE,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,gCAAgC,CAAA;AACvE,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,2EAA2E,CAAA;AACnH,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,2CAA2C,CAAA;AAGlF,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,mBAAmB,CAAA;AAErD,kDAAkD;AAClD,MAAM,MAAM,UAAU,GAAG;IACvB,QAAQ,EAAE,iBAAiB,GAAG,IAAI,CAAA;IAClC,QAAQ,EAAE,iBAAiB,CAAA;IAC3B,MAAM,EAAE,YAAY,CAAA;IACpB,WAAW,EAAE,kBAAkB,CAAA;IAC/B,cAAc,EAAE,cAAc,CAAA;
|
|
1
|
+
{"version":3,"file":"routes.d.ts","sourceRoot":"","sources":["../../../../../src/v2/features/app/helpers/routes.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,mCAAmC,CAAA;AACnE,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,gCAAgC,CAAA;AACpE,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,gCAAgC,CAAA;AACvE,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,2EAA2E,CAAA;AACnH,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,2CAA2C,CAAA;AAGlF,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,mBAAmB,CAAA;AAErD,kDAAkD;AAClD,MAAM,MAAM,UAAU,GAAG;IACvB,QAAQ,EAAE,iBAAiB,GAAG,IAAI,CAAA;IAClC,QAAQ,EAAE,iBAAiB,CAAA;IAC3B,MAAM,EAAE,YAAY,CAAA;IACpB,IAAI,CAAC,EAAE,MAAM,CAAA;IACb,MAAM,CAAC,EAAE,UAAU,CAAA;IACnB,WAAW,CAAC,EAAE,MAAM,CAAA;IACpB,WAAW,EAAE,kBAAkB,CAAA;IAC/B,cAAc,EAAE,cAAc,CAAA;CAG/B,CAAA;AAED,oCAAoC;AACpC,MAAM,MAAM,eAAe,GAAG,UAAU,GACtC,CACI;IACE,cAAc,EAAE,UAAU,CAAA;IAC1B,QAAQ,EAAE,iBAAiB,CAAA;CAC5B,GACD;IACE,cAAc,EAAE,WAAW,CAAA;IAC3B,QAAQ,EAAE,IAAI,CAAA;CACf,CACJ,CAAA;AAEH,kFAAkF;AAClF,eAAO,MAAM,MAAM;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;IAyGS,CAAA"}
|
|
@@ -15,7 +15,7 @@ const e = [
|
|
|
15
15
|
{
|
|
16
16
|
name: "example",
|
|
17
17
|
path: "path/:pathEncoded/method/:method/example/:exampleName",
|
|
18
|
-
component: () => import("
|
|
18
|
+
component: () => import("../../operation/Operation.vue2.js")
|
|
19
19
|
},
|
|
20
20
|
// Document Page
|
|
21
21
|
{
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
import { ScalarButton as
|
|
3
|
-
import { LibraryIcon as
|
|
4
|
-
import { RouterView as
|
|
5
|
-
import
|
|
1
|
+
import { defineComponent as f, computed as c, createElementBlock as d, openBlock as a, createElementVNode as t, createVNode as n, withCtx as r, unref as s, createBlock as p, KeepAlive as v, resolveDynamicComponent as x } from "vue";
|
|
2
|
+
import { ScalarButton as h } from "@scalar/components";
|
|
3
|
+
import { LibraryIcon as w } from "@scalar/icons/library";
|
|
4
|
+
import { RouterView as y } from "vue-router";
|
|
5
|
+
import b from "../../../components/IconSelector.vue.js";
|
|
6
6
|
import k from "./components/LabelInput.vue.js";
|
|
7
7
|
import _ from "./components/Tabs.vue.js";
|
|
8
8
|
const B = {
|
|
@@ -11,41 +11,44 @@ const B = {
|
|
|
11
11
|
}, V = ["aria-label"], g = { class: "flex flex-row items-center gap-2" }, S = { class: "group relative ml-1.25" }, C = { class: "px-1.5 pt-8" }, D = {
|
|
12
12
|
key: 1,
|
|
13
13
|
class: "flex w-full flex-1 items-center justify-center"
|
|
14
|
-
},
|
|
14
|
+
}, N = {
|
|
15
15
|
name: "DocumentCollection"
|
|
16
|
-
}, q = /* @__PURE__ */
|
|
17
|
-
...
|
|
16
|
+
}, q = /* @__PURE__ */ f({
|
|
17
|
+
...N,
|
|
18
18
|
props: {
|
|
19
19
|
document: {},
|
|
20
20
|
eventBus: {},
|
|
21
21
|
layout: {},
|
|
22
|
+
path: {},
|
|
23
|
+
method: {},
|
|
24
|
+
exampleName: {},
|
|
22
25
|
environment: {},
|
|
23
26
|
workspaceStore: {}
|
|
24
27
|
},
|
|
25
28
|
setup(u) {
|
|
26
|
-
const
|
|
29
|
+
const m = c(() => u.document?.info?.title || "Untitled Document"), i = c(
|
|
27
30
|
() => u.document?.["x-scalar-client-config-icon"] || "interface-content-folder"
|
|
28
31
|
);
|
|
29
|
-
return (e, o) => e.document ? (
|
|
32
|
+
return (e, o) => e.document ? (a(), d("div", B, [
|
|
30
33
|
t("div", {
|
|
31
|
-
"aria-label": `title: ${
|
|
34
|
+
"aria-label": `title: ${m.value}`,
|
|
32
35
|
class: "mx-auto flex h-fit w-full flex-col gap-2 pt-6 pb-3 md:mx-auto md:max-w-[720px]"
|
|
33
36
|
}, [
|
|
34
37
|
t("div", g, [
|
|
35
|
-
n(
|
|
36
|
-
modelValue:
|
|
38
|
+
n(b, {
|
|
39
|
+
modelValue: i.value,
|
|
37
40
|
placement: "bottom-start",
|
|
38
41
|
"onUpdate:modelValue": o[0] || (o[0] = (l) => e.eventBus.emit("document:update:icon", l))
|
|
39
42
|
}, {
|
|
40
|
-
default:
|
|
41
|
-
n(s(
|
|
43
|
+
default: r(() => [
|
|
44
|
+
n(s(h), {
|
|
42
45
|
class: "hover:bg-b-2 aspect-square h-7 w-7 cursor-pointer rounded border border-transparent p-0 hover:border-inherit",
|
|
43
46
|
variant: "ghost"
|
|
44
47
|
}, {
|
|
45
|
-
default:
|
|
46
|
-
n(s(
|
|
48
|
+
default: r(() => [
|
|
49
|
+
n(s(w), {
|
|
47
50
|
class: "text-c-2 size-5",
|
|
48
|
-
src:
|
|
51
|
+
src: i.value,
|
|
49
52
|
"stroke-width": "2"
|
|
50
53
|
}, null, 8, ["src"])
|
|
51
54
|
]),
|
|
@@ -59,17 +62,17 @@ const B = {
|
|
|
59
62
|
n(k, {
|
|
60
63
|
class: "text-xl font-bold",
|
|
61
64
|
inputId: "documentName",
|
|
62
|
-
modelValue:
|
|
65
|
+
modelValue: m.value,
|
|
63
66
|
"onUpdate:modelValue": o[1] || (o[1] = (l) => e.eventBus.emit("document:update:info", { title: l }))
|
|
64
67
|
}, null, 8, ["modelValue"])
|
|
65
68
|
])
|
|
66
69
|
], 8, V),
|
|
67
70
|
n(_, { type: "document" }),
|
|
68
71
|
t("div", C, [
|
|
69
|
-
n(s(
|
|
70
|
-
default:
|
|
71
|
-
(
|
|
72
|
-
(
|
|
72
|
+
n(s(y), null, {
|
|
73
|
+
default: r(({ Component: l }) => [
|
|
74
|
+
(a(), p(v, null, [
|
|
75
|
+
(a(), p(x(l), {
|
|
73
76
|
collectionType: "document",
|
|
74
77
|
document: e.document,
|
|
75
78
|
environment: e.environment,
|
|
@@ -82,7 +85,7 @@ const B = {
|
|
|
82
85
|
_: 1
|
|
83
86
|
})
|
|
84
87
|
])
|
|
85
|
-
])) : (
|
|
88
|
+
])) : (a(), d("div", D, [...o[2] || (o[2] = [
|
|
86
89
|
t("div", { class: "flex h-full flex-col items-center justify-center" }, [
|
|
87
90
|
t("h1", { class: "text-2xl font-bold" }, "Document not found"),
|
|
88
91
|
t("p", { class: "text-gray-500" }, " The document you are looking for does not exist. ")
|
|
@@ -1,14 +1,17 @@
|
|
|
1
|
-
import { defineComponent as s, createElementBlock as c, openBlock as r, createElementVNode as e, createVNode as t, unref as l, toDisplayString as
|
|
2
|
-
import { ScalarIconGlobe as
|
|
3
|
-
import { RouterView as
|
|
4
|
-
import
|
|
5
|
-
const u = { class: "w-full md:mx-auto md:max-w-[720px]" },
|
|
6
|
-
...
|
|
1
|
+
import { defineComponent as s, createElementBlock as c, openBlock as r, createElementVNode as e, createVNode as t, unref as l, toDisplayString as p } from "vue";
|
|
2
|
+
import { ScalarIconGlobe as n } from "@scalar/icons";
|
|
3
|
+
import { RouterView as m } from "vue-router";
|
|
4
|
+
import i from "./components/Tabs.vue.js";
|
|
5
|
+
const u = { class: "w-full md:mx-auto md:max-w-[720px]" }, d = ["aria-label"], f = { class: "flex flex-col gap-12 px-1.5 pt-8" }, _ = {}, B = /* @__PURE__ */ s({
|
|
6
|
+
..._,
|
|
7
7
|
__name: "WorkspaceCollection",
|
|
8
8
|
props: {
|
|
9
9
|
document: {},
|
|
10
10
|
eventBus: {},
|
|
11
11
|
layout: {},
|
|
12
|
+
path: {},
|
|
13
|
+
method: {},
|
|
14
|
+
exampleName: {},
|
|
12
15
|
environment: {},
|
|
13
16
|
workspaceStore: {}
|
|
14
17
|
},
|
|
@@ -19,14 +22,14 @@ const u = { class: "w-full md:mx-auto md:max-w-[720px]" }, f = ["aria-label"], _
|
|
|
19
22
|
"aria-label": `title: ${o}`,
|
|
20
23
|
class: "mx-auto flex h-fit w-full flex-col gap-2 pt-6 pb-3 md:mx-auto md:max-w-[720px]"
|
|
21
24
|
}, [
|
|
22
|
-
t(l(
|
|
25
|
+
t(l(n), { class: "text-c-2 size-6" }),
|
|
23
26
|
e("div", { class: "group relative ml-1.25" }, [
|
|
24
|
-
e("span", { class: "text-c-1 flex h-8 items-center" },
|
|
27
|
+
e("span", { class: "text-c-1 flex h-8 items-center" }, p(o))
|
|
25
28
|
])
|
|
26
|
-
], 8,
|
|
27
|
-
t(
|
|
28
|
-
e("div",
|
|
29
|
-
t(l(
|
|
29
|
+
], 8, d),
|
|
30
|
+
t(i, { type: "workspace" }),
|
|
31
|
+
e("div", f, [
|
|
32
|
+
t(l(m), {
|
|
30
33
|
eventBus: a.eventBus,
|
|
31
34
|
layout: a.layout,
|
|
32
35
|
type: "workspace"
|
|
@@ -1,47 +1,26 @@
|
|
|
1
1
|
import type { Environment } from '@scalar/oas-utils/entities/environment';
|
|
2
|
-
import type {
|
|
2
|
+
import type { WorkspaceEventBus } from '@scalar/workspace-store/events';
|
|
3
|
+
import type { OpenApiDocument, ServerObject } from '@scalar/workspace-store/schemas/v3.1/strict/openapi-document';
|
|
3
4
|
import type { EnvVariable } from '../../../../store/index.js';
|
|
4
|
-
import type { UpdateSecuritySchemeEvent } from '../../../../v2/blocks/scalar-auth-selector-block/event-types';
|
|
5
5
|
type __VLS_Props = {
|
|
6
6
|
/** Should use document security */
|
|
7
7
|
useDocumentSecurity: boolean;
|
|
8
8
|
/** Security requirements for the document */
|
|
9
9
|
security: OpenApiDocument['security'];
|
|
10
10
|
/** Currently selected security requirements */
|
|
11
|
-
selectedSecurity: OpenApiDocument['security'];
|
|
11
|
+
selectedSecurity: OpenApiDocument['x-scalar-selected-security'];
|
|
12
12
|
/** Security schemes available in the document */
|
|
13
13
|
securitySchemes: NonNullable<OpenApiDocument['components']>['securitySchemes'];
|
|
14
14
|
/** Currently selected server */
|
|
15
15
|
server: ServerObject | undefined;
|
|
16
|
+
eventBus: WorkspaceEventBus;
|
|
16
17
|
/** TODO: remove when we migrate */
|
|
17
18
|
environment: Environment;
|
|
18
19
|
envVariables: EnvVariable[];
|
|
19
20
|
};
|
|
20
21
|
declare const _default: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {} & {
|
|
21
|
-
"update:selectedScopes": (payload: {
|
|
22
|
-
id: string[];
|
|
23
|
-
name: string;
|
|
24
|
-
scopes: string[];
|
|
25
|
-
}) => any;
|
|
26
|
-
"update:securityScheme": (payload: UpdateSecuritySchemeEvent) => any;
|
|
27
|
-
deleteOperationAuth: (names: string[]) => any;
|
|
28
|
-
"update:selectedSecurity": (payload: {
|
|
29
|
-
value: NonNullable<OpenApiDocument["x-scalar-selected-security"]>;
|
|
30
|
-
create: SecuritySchemeObject[];
|
|
31
|
-
}) => any;
|
|
32
22
|
"update:useDocumentSecurity": (value: boolean) => any;
|
|
33
23
|
}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{
|
|
34
|
-
"onUpdate:selectedScopes"?: ((payload: {
|
|
35
|
-
id: string[];
|
|
36
|
-
name: string;
|
|
37
|
-
scopes: string[];
|
|
38
|
-
}) => any) | undefined;
|
|
39
|
-
"onUpdate:securityScheme"?: ((payload: UpdateSecuritySchemeEvent) => any) | undefined;
|
|
40
|
-
onDeleteOperationAuth?: ((names: string[]) => any) | undefined;
|
|
41
|
-
"onUpdate:selectedSecurity"?: ((payload: {
|
|
42
|
-
value: NonNullable<OpenApiDocument["x-scalar-selected-security"]>;
|
|
43
|
-
create: SecuritySchemeObject[];
|
|
44
|
-
}) => any) | undefined;
|
|
45
24
|
"onUpdate:useDocumentSecurity"?: ((value: boolean) => any) | undefined;
|
|
46
25
|
}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
47
26
|
export default _default;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Authentication.vue.d.ts","sourceRoot":"","sources":["../../../../../src/v2/features/collection/components/Authentication.vue"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"Authentication.vue.d.ts","sourceRoot":"","sources":["../../../../../src/v2/features/collection/components/Authentication.vue"],"names":[],"mappings":"AA8EA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,wCAAwC,CAAA;AACzE,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,gCAAgC,CAAA;AACvE,OAAO,KAAK,EACV,eAAe,EACf,YAAY,EACb,MAAM,8DAA8D,CAAA;AAErE,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,SAAS,CAAA;AAG1C,KAAK,WAAW,GAAG;IACjB,mCAAmC;IACnC,mBAAmB,EAAE,OAAO,CAAA;IAE5B,6CAA6C;IAC7C,QAAQ,EAAE,eAAe,CAAC,UAAU,CAAC,CAAA;IACrC,+CAA+C;IAC/C,gBAAgB,EAAE,eAAe,CAAC,4BAA4B,CAAC,CAAA;IAC/D,iDAAiD;IACjD,eAAe,EAAE,WAAW,CAAC,eAAe,CAAC,YAAY,CAAC,CAAC,CAAC,iBAAiB,CAAC,CAAA;IAC9E,gCAAgC;IAChC,MAAM,EAAE,YAAY,GAAG,SAAS,CAAA;IAEhC,QAAQ,EAAE,iBAAiB,CAAA;IAE3B,mCAAmC;IACnC,WAAW,EAAE,WAAW,CAAA;IACxB,YAAY,EAAE,WAAW,EAAE,CAAA;CAC5B,CAAC;;;;;;AA2HF,wBAOG"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import t from "./Authentication.vue2.js";
|
|
2
2
|
/* empty css */
|
|
3
3
|
import o from "../../../../_virtual/_plugin-vue_export-helper.js";
|
|
4
|
-
const i = /* @__PURE__ */ o(t, [["__scopeId", "data-v-
|
|
4
|
+
const i = /* @__PURE__ */ o(t, [["__scopeId", "data-v-e8b21b10"]]);
|
|
5
5
|
export {
|
|
6
6
|
i as default
|
|
7
7
|
};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { defineComponent as u, createElementBlock as c, openBlock as a, createElementVNode as
|
|
2
|
-
import { ScalarToggle as
|
|
3
|
-
import
|
|
4
|
-
const
|
|
1
|
+
import { defineComponent as u, createElementBlock as c, openBlock as a, createElementVNode as s, createVNode as n, unref as r } from "vue";
|
|
2
|
+
import { ScalarToggle as m } from "@scalar/components";
|
|
3
|
+
import d from "../../../blocks/scalar-auth-selector-block/components/AuthSelector.vue.js";
|
|
4
|
+
const p = { class: "flex flex-col gap-4" }, y = { class: "flex flex-col gap-2" }, v = { class: "flex h-8 items-center justify-between" }, b = /* @__PURE__ */ u({
|
|
5
5
|
__name: "Authentication",
|
|
6
6
|
props: {
|
|
7
7
|
useDocumentSecurity: { type: Boolean },
|
|
@@ -9,42 +9,41 @@ const m = { class: "flex flex-col gap-4" }, y = { class: "flex flex-col gap-2" }
|
|
|
9
9
|
selectedSecurity: {},
|
|
10
10
|
securitySchemes: {},
|
|
11
11
|
server: {},
|
|
12
|
+
eventBus: {},
|
|
12
13
|
environment: {},
|
|
13
14
|
envVariables: {}
|
|
14
15
|
},
|
|
15
|
-
emits: ["update:useDocumentSecurity"
|
|
16
|
-
setup(
|
|
17
|
-
const
|
|
18
|
-
return (
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
16
|
+
emits: ["update:useDocumentSecurity"],
|
|
17
|
+
setup(f, { emit: i }) {
|
|
18
|
+
const o = i;
|
|
19
|
+
return (e, t) => (a(), c("div", p, [
|
|
20
|
+
s("div", y, [
|
|
21
|
+
s("div", v, [
|
|
22
|
+
t[1] || (t[1] = s("h3", { class: "font-bold" }, "Authentication", -1)),
|
|
23
|
+
n(r(m), {
|
|
23
24
|
class: "w-4",
|
|
24
|
-
modelValue:
|
|
25
|
-
"onUpdate:modelValue":
|
|
25
|
+
modelValue: e.useDocumentSecurity,
|
|
26
|
+
"onUpdate:modelValue": t[0] || (t[0] = (l) => o("update:useDocumentSecurity", l))
|
|
26
27
|
}, null, 8, ["modelValue"])
|
|
27
28
|
]),
|
|
28
|
-
|
|
29
|
+
t[2] || (t[2] = s("p", { class: "pr-6 text-sm" }, " Added authentication will apply to all requests under this collection. You can override this by specifying another one in the request. ", -1))
|
|
29
30
|
]),
|
|
30
|
-
|
|
31
|
+
n(r(d), {
|
|
31
32
|
class: "scalar-collection-auth",
|
|
32
|
-
envVariables:
|
|
33
|
-
environment:
|
|
33
|
+
envVariables: e.envVariables,
|
|
34
|
+
environment: e.environment,
|
|
34
35
|
layout: "client",
|
|
35
|
-
security:
|
|
36
|
-
securitySchemes:
|
|
37
|
-
selectedSecurity:
|
|
38
|
-
server:
|
|
36
|
+
security: e.security,
|
|
37
|
+
securitySchemes: e.securitySchemes,
|
|
38
|
+
selectedSecurity: e.selectedSecurity,
|
|
39
|
+
server: e.server,
|
|
39
40
|
title: "Authentication",
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
"onUpdate:selectedSecurity": e[4] || (e[4] = (t) => r("update:selectedSecurity", t))
|
|
44
|
-
}, null, 8, ["envVariables", "environment", "security", "securitySchemes", "selectedSecurity", "server"])
|
|
41
|
+
eventBus: e.eventBus,
|
|
42
|
+
meta: { type: "document" }
|
|
43
|
+
}, null, 8, ["envVariables", "environment", "security", "securitySchemes", "selectedSecurity", "server", "eventBus"])
|
|
45
44
|
]));
|
|
46
45
|
}
|
|
47
46
|
});
|
|
48
47
|
export {
|
|
49
|
-
|
|
48
|
+
b as default
|
|
50
49
|
};
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { defineComponent as g, computed as
|
|
2
|
-
import { ScalarButton as f, ScalarMarkdown as
|
|
1
|
+
import { defineComponent as g, computed as x, ref as y, useTemplateRef as w, createElementBlock as i, openBlock as t, createElementVNode as o, createBlock as m, createCommentVNode as h, unref as n, withCtx as c, createVNode as d, Fragment as v, nextTick as B } from "vue";
|
|
2
|
+
import { ScalarButton as f, ScalarMarkdown as C } from "@scalar/components";
|
|
3
3
|
import { ScalarIconPencil as b } from "@scalar/icons";
|
|
4
|
-
import
|
|
5
|
-
const
|
|
4
|
+
import I from "../../../components/code-input/CodeInput.vue.js";
|
|
5
|
+
const V = { class: "flex flex-col gap-2" }, z = { class: "flex items-center justify-between gap-2 pl-1.5" }, N = { class: "has-[:focus-visible]:bg-b-1 group rounded-lg" }, R = {
|
|
6
6
|
key: 1,
|
|
7
7
|
class: "text-c-3 flex items-center justify-center rounded-lg border p-4"
|
|
8
8
|
}, j = /* @__PURE__ */ g({
|
|
@@ -11,28 +11,31 @@ const h = { class: "flex flex-col gap-2" }, z = { class: "flex items-center just
|
|
|
11
11
|
document: {},
|
|
12
12
|
eventBus: {},
|
|
13
13
|
layout: {},
|
|
14
|
+
path: {},
|
|
15
|
+
method: {},
|
|
16
|
+
exampleName: {},
|
|
14
17
|
environment: {},
|
|
15
18
|
workspaceStore: {},
|
|
16
19
|
collectionType: {}
|
|
17
20
|
},
|
|
18
21
|
setup(k) {
|
|
19
|
-
const u =
|
|
22
|
+
const u = x(
|
|
20
23
|
() => k.document?.info?.description ?? ""
|
|
21
|
-
), a =
|
|
22
|
-
a.value = s, s === "edit" && (await
|
|
24
|
+
), a = y("preview"), p = w("codeInputRef"), r = async (s) => {
|
|
25
|
+
a.value = s, s === "edit" && (await B(), p.value?.focus());
|
|
23
26
|
};
|
|
24
|
-
return (s, e) => (t(), i("div",
|
|
27
|
+
return (s, e) => (t(), i("div", V, [
|
|
25
28
|
o("div", z, [
|
|
26
29
|
e[6] || (e[6] = o("h3", { class: "font-bold" }, "Description", -1)),
|
|
27
|
-
a.value === "preview" ? (t(),
|
|
30
|
+
a.value === "preview" ? (t(), m(n(f), {
|
|
28
31
|
key: 0,
|
|
29
32
|
class: "text-c-2 hover:text-c-1 flex items-center gap-2",
|
|
30
33
|
size: "sm",
|
|
31
34
|
type: "button",
|
|
32
35
|
variant: "outlined",
|
|
33
|
-
onClick: e[0] || (e[0] = (
|
|
36
|
+
onClick: e[0] || (e[0] = (l) => r("edit"))
|
|
34
37
|
}, {
|
|
35
|
-
default:
|
|
38
|
+
default: c(() => [
|
|
36
39
|
d(n(b), {
|
|
37
40
|
size: "sm",
|
|
38
41
|
thickness: "1.5"
|
|
@@ -40,26 +43,26 @@ const h = { class: "flex flex-col gap-2" }, z = { class: "flex items-center just
|
|
|
40
43
|
e[5] || (e[5] = o("span", null, "Edit", -1))
|
|
41
44
|
]),
|
|
42
45
|
_: 1
|
|
43
|
-
})) :
|
|
46
|
+
})) : h("", !0)
|
|
44
47
|
]),
|
|
45
|
-
o("div",
|
|
48
|
+
o("div", N, [
|
|
46
49
|
a.value === "preview" ? (t(), i(v, { key: 0 }, [
|
|
47
50
|
u.value.trim().length ? (t(), i(v, { key: 0 }, [
|
|
48
|
-
d(n(
|
|
51
|
+
d(n(C), {
|
|
49
52
|
class: "flex-1 rounded border border-transparent p-1.5 hover:border-(--scalar-background-3)",
|
|
50
53
|
value: u.value,
|
|
51
54
|
withImages: "",
|
|
52
|
-
onDblclick: e[1] || (e[1] = (
|
|
55
|
+
onDblclick: e[1] || (e[1] = (l) => r("edit"))
|
|
53
56
|
}, null, 8, ["value"]),
|
|
54
57
|
e[7] || (e[7] = o("div", { class: "brightness-lifted bg-b-1 absolute inset-0 -z-1 hidden rounded group-hover:block group-has-[:focus-visible]:hidden" }, null, -1))
|
|
55
|
-
], 64)) : (t(), i("div",
|
|
58
|
+
], 64)) : (t(), i("div", R, [
|
|
56
59
|
d(n(f), {
|
|
57
60
|
class: "hover:bg-b-2 hover:text-c-1 text-c-2 flex items-center gap-2",
|
|
58
61
|
size: "sm",
|
|
59
62
|
variant: "ghost",
|
|
60
|
-
onClick: e[2] || (e[2] = (
|
|
63
|
+
onClick: e[2] || (e[2] = (l) => r("edit"))
|
|
61
64
|
}, {
|
|
62
|
-
default:
|
|
65
|
+
default: c(() => [
|
|
63
66
|
d(n(b), {
|
|
64
67
|
size: "sm",
|
|
65
68
|
thickness: "1.5"
|
|
@@ -69,7 +72,7 @@ const h = { class: "flex flex-col gap-2" }, z = { class: "flex items-center just
|
|
|
69
72
|
_: 1
|
|
70
73
|
})
|
|
71
74
|
]))
|
|
72
|
-
], 64)) : (t(),
|
|
75
|
+
], 64)) : (t(), m(n(I), {
|
|
73
76
|
key: 1,
|
|
74
77
|
ref_key: "codeInputRef",
|
|
75
78
|
ref: p,
|
|
@@ -77,8 +80,8 @@ const h = { class: "flex flex-col gap-2" }, z = { class: "flex items-center just
|
|
|
77
80
|
environment: void 0,
|
|
78
81
|
layout: s.layout,
|
|
79
82
|
modelValue: u.value,
|
|
80
|
-
onBlur: e[3] || (e[3] = (
|
|
81
|
-
"onUpdate:modelValue": e[4] || (e[4] = (
|
|
83
|
+
onBlur: e[3] || (e[3] = (l) => r("preview")),
|
|
84
|
+
"onUpdate:modelValue": e[4] || (e[4] = (l) => s.eventBus.emit("document:update:info", { description: l }))
|
|
82
85
|
}, null, 8, ["layout", "modelValue"]))
|
|
83
86
|
])
|
|
84
87
|
]));
|