@scalar/api-client 2.9.0 → 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 +37 -0
- package/README.md +2 -2
- package/dist/components/CommandPalette/CommandActionForm.vue.js +9 -9
- 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/code-input/CodeInput.vue.d.ts +140 -0
- package/dist/v2/components/code-input/CodeInput.vue.d.ts.map +1 -0
- package/dist/v2/components/code-input/CodeInput.vue.js +8 -0
- package/dist/v2/components/code-input/CodeInput.vue2.js +202 -0
- package/dist/v2/components/code-input/code-variable-widget.d.ts +21 -0
- package/dist/v2/components/code-input/code-variable-widget.d.ts.map +1 -0
- package/dist/v2/components/code-input/code-variable-widget.js +106 -0
- package/dist/v2/components/code-input/index.d.ts +2 -0
- package/dist/v2/components/code-input/index.d.ts.map +1 -0
- package/dist/v2/components/code-input/index.js +4 -0
- package/dist/v2/components/data-table/DataTable.vue.d.ts +22 -0
- package/dist/v2/components/data-table/DataTable.vue.d.ts.map +1 -0
- package/dist/v2/components/data-table/DataTable.vue.js +38 -0
- package/dist/v2/components/data-table/DataTable.vue2.js +4 -0
- package/dist/v2/components/data-table/DataTableCell.vue.d.ts +19 -0
- package/dist/v2/components/data-table/DataTableCell.vue.d.ts.map +1 -0
- package/dist/v2/components/data-table/DataTableCell.vue.js +26 -0
- package/dist/v2/components/data-table/DataTableCell.vue2.js +4 -0
- package/dist/v2/components/data-table/DataTableCheckbox.vue.d.ts +14 -0
- package/dist/v2/components/data-table/DataTableCheckbox.vue.d.ts.map +1 -0
- package/dist/v2/components/data-table/DataTableCheckbox.vue.js +53 -0
- package/dist/v2/components/data-table/DataTableCheckbox.vue2.js +4 -0
- package/dist/v2/components/data-table/DataTableHeader.vue.d.ts +13 -0
- package/dist/v2/components/data-table/DataTableHeader.vue.d.ts.map +1 -0
- package/dist/v2/components/data-table/DataTableHeader.vue.js +18 -0
- package/dist/v2/components/data-table/DataTableHeader.vue2.js +4 -0
- package/dist/v2/components/data-table/DataTableInput.vue.d.ts +53 -0
- package/dist/v2/components/data-table/DataTableInput.vue.d.ts.map +1 -0
- package/dist/v2/components/data-table/DataTableInput.vue.js +7 -0
- package/dist/v2/components/data-table/DataTableInput.vue2.js +117 -0
- package/dist/v2/components/data-table/DataTableInputSelect.vue.d.ts +16 -0
- package/dist/v2/components/data-table/DataTableInputSelect.vue.d.ts.map +1 -0
- package/dist/v2/components/data-table/DataTableInputSelect.vue.js +146 -0
- package/dist/v2/components/data-table/DataTableInputSelect.vue2.js +4 -0
- package/dist/v2/components/data-table/DataTableRow.vue.d.ts +13 -0
- package/dist/v2/components/data-table/DataTableRow.vue.d.ts.map +1 -0
- package/dist/v2/components/data-table/DataTableRow.vue.js +12 -0
- package/dist/v2/components/data-table/DataTableText.vue.d.ts +16 -0
- package/dist/v2/components/data-table/DataTableText.vue.d.ts.map +1 -0
- package/dist/v2/components/data-table/DataTableText.vue.js +23 -0
- package/dist/v2/components/data-table/DataTableText.vue2.js +4 -0
- package/dist/v2/components/data-table/index.d.ts +9 -0
- package/dist/v2/components/data-table/index.d.ts.map +1 -0
- package/dist/v2/components/data-table/index.js +18 -0
- 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 +72 -44
- 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/components/DesktopTabs.vue.d.ts +3 -0
- package/dist/v2/features/app/components/DesktopTabs.vue.d.ts.map +1 -1
- package/dist/v2/features/app/components/DesktopTabs.vue.js +8 -7
- package/dist/v2/features/app/components/DesktopTabs.vue2.js +6 -0
- package/dist/v2/features/app/helpers/routes.d.ts +17 -10
- package/dist/v2/features/app/helpers/routes.d.ts.map +1 -1
- package/dist/v2/features/app/helpers/routes.js +1 -7
- package/dist/v2/features/collection/DocumentCollection.vue.d.ts.map +1 -1
- package/dist/v2/features/collection/DocumentCollection.vue2.js +61 -45
- package/dist/v2/features/collection/WorkspaceCollection.vue.d.ts.map +1 -1
- package/dist/v2/features/collection/WorkspaceCollection.vue2.js +19 -14
- 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.vue.d.ts +13 -87
- package/dist/v2/features/collection/components/Environment.vue.d.ts.map +1 -1
- package/dist/v2/features/collection/components/Environment.vue2.js +23 -25
- package/dist/v2/features/collection/components/Overview.vue.d.ts +13 -12
- package/dist/v2/features/collection/components/Overview.vue.d.ts.map +1 -1
- package/dist/v2/features/collection/components/Overview.vue.js +5 -2
- package/dist/v2/features/collection/components/Overview.vue2.js +68 -67
- package/dist/v2/features/collection/components/Tabs.vue.js +8 -8
- package/dist/v2/features/environments/EnvironmentsList.vue.d.ts +6 -95
- package/dist/v2/features/environments/EnvironmentsList.vue.d.ts.map +1 -1
- package/dist/v2/features/environments/EnvironmentsList.vue.js +50 -98
- package/dist/v2/features/environments/components/Environment.vue.d.ts +9 -63
- package/dist/v2/features/environments/components/Environment.vue.d.ts.map +1 -1
- package/dist/v2/features/environments/components/Environment.vue.js +41 -92
- package/dist/v2/features/environments/components/EnvironmentColors.vue.d.ts.map +1 -1
- package/dist/v2/features/environments/components/EnvironmentColors.vue.js +105 -81
- package/dist/v2/features/environments/components/EnvironmentCreateModal.vue.d.ts +7 -14
- package/dist/v2/features/environments/components/EnvironmentCreateModal.vue.d.ts.map +1 -1
- package/dist/v2/features/environments/components/EnvironmentCreateModal.vue.js +61 -39
- package/dist/v2/features/environments/components/EnvironmentDeleteModal.vue.d.ts +1 -1
- package/dist/v2/features/environments/components/EnvironmentDeleteModal.vue.d.ts.map +1 -1
- package/dist/v2/features/environments/components/EnvironmentDeleteModal.vue.js +3 -3
- package/dist/v2/features/environments/components/EnvironmentVariablesDropdown.vue.d.ts +21 -0
- package/dist/v2/features/environments/components/EnvironmentVariablesDropdown.vue.d.ts.map +1 -0
- package/dist/v2/features/environments/components/EnvironmentVariablesDropdown.vue.js +109 -0
- package/dist/v2/features/environments/components/EnvironmentVariablesDropdown.vue2.js +4 -0
- package/dist/v2/features/environments/components/EnvironmentVariablesTable.vue.d.ts +7 -20
- package/dist/v2/features/environments/components/EnvironmentVariablesTable.vue.d.ts.map +1 -1
- package/dist/v2/features/environments/components/EnvironmentVariablesTable.vue.js +3 -3
- package/dist/v2/features/environments/components/EnvironmentVariablesTable.vue2.js +85 -71
- package/dist/v2/features/environments/index.d.ts +0 -3
- package/dist/v2/features/environments/index.d.ts.map +1 -1
- package/dist/v2/features/environments/index.js +2 -4
- 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/helpers/test-utils.d.ts +4 -0
- package/dist/v2/helpers/test-utils.d.ts.map +1 -0
- package/dist/v2/hooks/use-workspace-client-events.d.ts +2 -1
- package/dist/v2/hooks/use-workspace-client-events.d.ts.map +1 -1
- package/dist/v2/hooks/use-workspace-client-events.js +137 -10
- 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 +16 -16
- 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/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/collection/DocumentCollection.test.d.ts +0 -2
- package/dist/v2/features/collection/DocumentCollection.test.d.ts.map +0 -1
- package/dist/v2/features/collection/WorkspaceCollection.test.d.ts +0 -2
- package/dist/v2/features/collection/WorkspaceCollection.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/Environments.test.d.ts +0 -2
- package/dist/v2/features/environments/Environments.test.d.ts.map +0 -1
- package/dist/v2/features/environments/Environments.vue.d.ts +0 -31
- package/dist/v2/features/environments/Environments.vue.d.ts.map +0 -1
- package/dist/v2/features/environments/Environments.vue.js +0 -65
- package/dist/v2/features/environments/Environments.vue2.js +0 -4
- 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/EnvironmentColorUpdateModal.vue.d.ts +0 -20
- package/dist/v2/features/environments/components/EnvironmentColorUpdateModal.vue.d.ts.map +0 -1
- package/dist/v2/features/environments/components/EnvironmentColorUpdateModal.vue.js +0 -48
- package/dist/v2/features/environments/components/EnvironmentColorUpdateModal.vue2.js +0 -4
- 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/EnvironmentNameUpdateModal.vue.d.ts +0 -18
- package/dist/v2/features/environments/components/EnvironmentNameUpdateModal.vue.d.ts.map +0 -1
- package/dist/v2/features/environments/components/EnvironmentNameUpdateModal.vue.js +0 -35
- package/dist/v2/features/environments/components/EnvironmentNameUpdateModal.vue2.js +0 -4
- 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,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,89 +1,15 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
import
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
"environment:reorder": (payload: {
|
|
15
|
-
draggingItem: {
|
|
16
|
-
id: string;
|
|
17
|
-
};
|
|
18
|
-
hoveredItem: {
|
|
19
|
-
id: string;
|
|
20
|
-
};
|
|
21
|
-
}) => any;
|
|
22
|
-
"environment:add": (payload: {
|
|
23
|
-
environment: Environment;
|
|
24
|
-
}) => any;
|
|
25
|
-
"environment:update": (payload: {
|
|
26
|
-
environmentName: string;
|
|
27
|
-
environment: Partial<Environment>;
|
|
28
|
-
}) => any;
|
|
29
|
-
"environment:delete": (payload: {
|
|
30
|
-
environmentName: string;
|
|
31
|
-
}) => any;
|
|
32
|
-
"environment:add:variable": (payload: {
|
|
33
|
-
environmentName: string;
|
|
34
|
-
environmentVariable: Partial<EnvironmentVariable>;
|
|
35
|
-
}) => any;
|
|
36
|
-
"environment:update:variable": (payload: {
|
|
37
|
-
/** Row number */
|
|
38
|
-
id: number;
|
|
39
|
-
/** Environment name */
|
|
40
|
-
environmentName: string;
|
|
41
|
-
/** Payload */
|
|
42
|
-
environmentVariable: Partial<EnvironmentVariable>;
|
|
43
|
-
}) => any;
|
|
44
|
-
"environment:delete:variable": (payload: {
|
|
45
|
-
/** Environment name */
|
|
46
|
-
environmentName: string;
|
|
47
|
-
/** Row number */
|
|
48
|
-
id: number;
|
|
49
|
-
}) => any;
|
|
50
|
-
}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{
|
|
51
|
-
"onEnvironment:reorder"?: ((payload: {
|
|
52
|
-
draggingItem: {
|
|
53
|
-
id: string;
|
|
54
|
-
};
|
|
55
|
-
hoveredItem: {
|
|
56
|
-
id: string;
|
|
57
|
-
};
|
|
58
|
-
}) => any) | undefined;
|
|
59
|
-
"onEnvironment:add"?: ((payload: {
|
|
60
|
-
environment: Environment;
|
|
61
|
-
}) => any) | undefined;
|
|
62
|
-
"onEnvironment:update"?: ((payload: {
|
|
63
|
-
environmentName: string;
|
|
64
|
-
environment: Partial<Environment>;
|
|
65
|
-
}) => any) | undefined;
|
|
66
|
-
"onEnvironment:delete"?: ((payload: {
|
|
67
|
-
environmentName: string;
|
|
68
|
-
}) => any) | undefined;
|
|
69
|
-
"onEnvironment:add:variable"?: ((payload: {
|
|
70
|
-
environmentName: string;
|
|
71
|
-
environmentVariable: Partial<EnvironmentVariable>;
|
|
72
|
-
}) => any) | undefined;
|
|
73
|
-
"onEnvironment:update:variable"?: ((payload: {
|
|
74
|
-
/** Row number */
|
|
75
|
-
id: number;
|
|
76
|
-
/** Environment name */
|
|
77
|
-
environmentName: string;
|
|
78
|
-
/** Payload */
|
|
79
|
-
environmentVariable: Partial<EnvironmentVariable>;
|
|
80
|
-
}) => any) | undefined;
|
|
81
|
-
"onEnvironment:delete:variable"?: ((payload: {
|
|
82
|
-
/** Environment name */
|
|
83
|
-
environmentName: string;
|
|
84
|
-
/** Row number */
|
|
85
|
-
id: number;
|
|
86
|
-
}) => any) | undefined;
|
|
87
|
-
}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
1
|
+
declare const _default: import("vue").DefineComponent<(import("../../../../v2/features/app/helpers/routes.js").RouteProps & {
|
|
2
|
+
collectionType: "document";
|
|
3
|
+
document: import("@scalar/workspace-store/schemas").WorkspaceDocument;
|
|
4
|
+
}) | (import("../../../../v2/features/app/helpers/routes.js").RouteProps & {
|
|
5
|
+
collectionType: "workspace";
|
|
6
|
+
document: null;
|
|
7
|
+
}), {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<(import("../../../../v2/features/app/helpers/routes.js").RouteProps & {
|
|
8
|
+
collectionType: "document";
|
|
9
|
+
document: import("@scalar/workspace-store/schemas").WorkspaceDocument;
|
|
10
|
+
}) | (import("../../../../v2/features/app/helpers/routes.js").RouteProps & {
|
|
11
|
+
collectionType: "workspace";
|
|
12
|
+
document: null;
|
|
13
|
+
})> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
88
14
|
export default _default;
|
|
89
15
|
//# sourceMappingURL=Environment.vue.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Environment.vue.d.ts","sourceRoot":"","sources":["../../../../../src/v2/features/collection/components/Environment.vue"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"Environment.vue.d.ts","sourceRoot":"","sources":["../../../../../src/v2/features/collection/components/Environment.vue"],"names":[],"mappings":";;;;;;;;;;;;;AAiJA,wBAMG"}
|
|
@@ -1,34 +1,32 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
import
|
|
3
|
-
const
|
|
1
|
+
import { defineComponent as s, computed as c, createElementBlock as l, openBlock as a, createStaticVNode as i, createVNode as r, unref as m } from "vue";
|
|
2
|
+
import v from "../../environments/EnvironmentsList.vue.js";
|
|
3
|
+
const d = { class: "flex flex-col gap-4" }, f = /* @__PURE__ */ s({
|
|
4
4
|
__name: "Environment",
|
|
5
5
|
props: {
|
|
6
|
-
|
|
7
|
-
|
|
6
|
+
document: {},
|
|
7
|
+
eventBus: {},
|
|
8
|
+
layout: {},
|
|
9
|
+
path: {},
|
|
10
|
+
method: {},
|
|
11
|
+
exampleName: {},
|
|
8
12
|
environment: {},
|
|
9
|
-
|
|
13
|
+
workspaceStore: {},
|
|
14
|
+
collectionType: {}
|
|
10
15
|
},
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
"onEnvironment:add:variable": e[1] || (e[1] = (n) => t("environment:add:variable", n)),
|
|
23
|
-
"onEnvironment:delete": e[2] || (e[2] = (n) => t("environment:delete", n)),
|
|
24
|
-
"onEnvironment:delete:variable": e[3] || (e[3] = (n) => t("environment:delete:variable", n)),
|
|
25
|
-
"onEnvironment:reorder": e[4] || (e[4] = (n) => t("environment:reorder", n)),
|
|
26
|
-
"onEnvironment:update": e[5] || (e[5] = (n) => t("environment:update", n)),
|
|
27
|
-
"onEnvironment:update:variable": e[6] || (e[6] = (n) => t("environment:update:variable", n))
|
|
28
|
-
}, null, 8, ["documentName", "envVariables", "environment", "environments"])
|
|
16
|
+
setup(e) {
|
|
17
|
+
const o = c(
|
|
18
|
+
() => (e.collectionType === "document" ? e.document["x-scalar-environments"] : e.workspaceStore.workspace["x-scalar-environments"]) ?? {}
|
|
19
|
+
);
|
|
20
|
+
return (t, n) => (a(), l("div", d, [
|
|
21
|
+
n[0] || (n[0] = i('<div class="flex items-start justify-between gap-2"><div class="flex flex-col gap-2"><div class="flex h-8 items-center"><h3 class="font-bold">Environment Variables</h3></div><p class="text-c-2 mb-4 text-sm"> Set environment variables at your collection level. Use <code class="font-code text-c-2"> {{ variable }} </code> to add / search among the selected environment's variables in your request inputs. </p></div></div>', 1)),
|
|
22
|
+
r(m(v), {
|
|
23
|
+
collectionType: t.collectionType,
|
|
24
|
+
environments: o.value,
|
|
25
|
+
eventBus: t.eventBus
|
|
26
|
+
}, null, 8, ["collectionType", "environments", "eventBus"])
|
|
29
27
|
]));
|
|
30
28
|
}
|
|
31
29
|
});
|
|
32
30
|
export {
|
|
33
|
-
|
|
31
|
+
f as default
|
|
34
32
|
};
|
|
@@ -1,14 +1,15 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
}
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
}
|
|
11
|
-
|
|
12
|
-
|
|
1
|
+
declare const _default: import("vue").DefineComponent<(import("../../../../v2/features/app/helpers/routes.js").RouteProps & {
|
|
2
|
+
collectionType: "document";
|
|
3
|
+
document: import("@scalar/workspace-store/schemas").WorkspaceDocument;
|
|
4
|
+
}) | (import("../../../../v2/features/app/helpers/routes.js").RouteProps & {
|
|
5
|
+
collectionType: "workspace";
|
|
6
|
+
document: null;
|
|
7
|
+
}), {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<(import("../../../../v2/features/app/helpers/routes.js").RouteProps & {
|
|
8
|
+
collectionType: "document";
|
|
9
|
+
document: import("@scalar/workspace-store/schemas").WorkspaceDocument;
|
|
10
|
+
}) | (import("../../../../v2/features/app/helpers/routes.js").RouteProps & {
|
|
11
|
+
collectionType: "workspace";
|
|
12
|
+
document: null;
|
|
13
|
+
})> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
13
14
|
export default _default;
|
|
14
15
|
//# sourceMappingURL=Overview.vue.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Overview.vue.d.ts","sourceRoot":"","sources":["../../../../../src/v2/features/collection/components/Overview.vue"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"Overview.vue.d.ts","sourceRoot":"","sources":["../../../../../src/v2/features/collection/components/Overview.vue"],"names":[],"mappings":";;;;;;;;;;;;;AA6ZA,wBAMG"}
|
|
@@ -1,4 +1,7 @@
|
|
|
1
|
-
import
|
|
1
|
+
import o from "./Overview.vue2.js";
|
|
2
|
+
/* empty css */
|
|
3
|
+
import r from "../../../../_virtual/_plugin-vue_export-helper.js";
|
|
4
|
+
const e = /* @__PURE__ */ r(o, [["__scopeId", "data-v-7c1a2f6c"]]);
|
|
2
5
|
export {
|
|
3
|
-
|
|
6
|
+
e as default
|
|
4
7
|
};
|
|
@@ -1,91 +1,92 @@
|
|
|
1
|
-
import { defineComponent as x, ref as
|
|
2
|
-
import { ScalarButton 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
|
-
class: "text-c-3 flex
|
|
8
|
-
},
|
|
7
|
+
class: "text-c-3 flex items-center justify-center rounded-lg border p-4"
|
|
8
|
+
}, j = /* @__PURE__ */ g({
|
|
9
9
|
__name: "Overview",
|
|
10
10
|
props: {
|
|
11
|
-
|
|
11
|
+
document: {},
|
|
12
|
+
eventBus: {},
|
|
13
|
+
layout: {},
|
|
14
|
+
path: {},
|
|
15
|
+
method: {},
|
|
16
|
+
exampleName: {},
|
|
12
17
|
environment: {},
|
|
13
|
-
|
|
18
|
+
workspaceStore: {},
|
|
19
|
+
collectionType: {}
|
|
14
20
|
},
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
s.value === "preview" ? (n(), u(o(c), {
|
|
21
|
+
setup(k) {
|
|
22
|
+
const u = x(
|
|
23
|
+
() => k.document?.info?.description ?? ""
|
|
24
|
+
), a = y("preview"), p = w("codeInputRef"), r = async (s) => {
|
|
25
|
+
a.value = s, s === "edit" && (await B(), p.value?.focus());
|
|
26
|
+
};
|
|
27
|
+
return (s, e) => (t(), i("div", V, [
|
|
28
|
+
o("div", z, [
|
|
29
|
+
e[6] || (e[6] = o("h3", { class: "font-bold" }, "Description", -1)),
|
|
30
|
+
a.value === "preview" ? (t(), m(n(f), {
|
|
26
31
|
key: 0,
|
|
27
32
|
class: "text-c-2 hover:text-c-1 flex items-center gap-2",
|
|
28
33
|
size: "sm",
|
|
29
34
|
type: "button",
|
|
30
35
|
variant: "outlined",
|
|
31
|
-
onClick: e[0] || (e[0] = (
|
|
36
|
+
onClick: e[0] || (e[0] = (l) => r("edit"))
|
|
32
37
|
}, {
|
|
33
|
-
default:
|
|
34
|
-
|
|
38
|
+
default: c(() => [
|
|
39
|
+
d(n(b), {
|
|
35
40
|
size: "sm",
|
|
36
41
|
thickness: "1.5"
|
|
37
42
|
}),
|
|
38
|
-
e[5] || (e[5] =
|
|
43
|
+
e[5] || (e[5] = o("span", null, "Edit", -1))
|
|
39
44
|
]),
|
|
40
45
|
_: 1
|
|
41
|
-
})) :
|
|
46
|
+
})) : h("", !0)
|
|
42
47
|
]),
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
onBlur: e[3] || (e[3] = (r) => l("preview")),
|
|
82
|
-
"onUpdate:modelValue": e[4] || (e[4] = (r) => g("overview:update:description", r))
|
|
83
|
-
}, null, 8, ["envVariables", "environment", "modelValue"])) : a("", !0)
|
|
84
|
-
])
|
|
48
|
+
o("div", N, [
|
|
49
|
+
a.value === "preview" ? (t(), i(v, { key: 0 }, [
|
|
50
|
+
u.value.trim().length ? (t(), i(v, { key: 0 }, [
|
|
51
|
+
d(n(C), {
|
|
52
|
+
class: "flex-1 rounded border border-transparent p-1.5 hover:border-(--scalar-background-3)",
|
|
53
|
+
value: u.value,
|
|
54
|
+
withImages: "",
|
|
55
|
+
onDblclick: e[1] || (e[1] = (l) => r("edit"))
|
|
56
|
+
}, null, 8, ["value"]),
|
|
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))
|
|
58
|
+
], 64)) : (t(), i("div", R, [
|
|
59
|
+
d(n(f), {
|
|
60
|
+
class: "hover:bg-b-2 hover:text-c-1 text-c-2 flex items-center gap-2",
|
|
61
|
+
size: "sm",
|
|
62
|
+
variant: "ghost",
|
|
63
|
+
onClick: e[2] || (e[2] = (l) => r("edit"))
|
|
64
|
+
}, {
|
|
65
|
+
default: c(() => [
|
|
66
|
+
d(n(b), {
|
|
67
|
+
size: "sm",
|
|
68
|
+
thickness: "1.5"
|
|
69
|
+
}),
|
|
70
|
+
e[8] || (e[8] = o("span", null, "Write a description", -1))
|
|
71
|
+
]),
|
|
72
|
+
_: 1
|
|
73
|
+
})
|
|
74
|
+
]))
|
|
75
|
+
], 64)) : (t(), m(n(I), {
|
|
76
|
+
key: 1,
|
|
77
|
+
ref_key: "codeInputRef",
|
|
78
|
+
ref: p,
|
|
79
|
+
class: "border px-0.5 py-0",
|
|
80
|
+
environment: void 0,
|
|
81
|
+
layout: s.layout,
|
|
82
|
+
modelValue: u.value,
|
|
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 }))
|
|
85
|
+
}, null, 8, ["layout", "modelValue"]))
|
|
85
86
|
])
|
|
86
87
|
]));
|
|
87
88
|
}
|
|
88
89
|
});
|
|
89
90
|
export {
|
|
90
|
-
|
|
91
|
+
j as default
|
|
91
92
|
};
|
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
import { defineComponent as m, computed as p, createElementBlock as o, openBlock as t, Fragment as u, renderList as d, createBlock as f, unref as h, withCtx as
|
|
1
|
+
import { defineComponent as m, computed as p, createElementBlock as o, openBlock as t, Fragment as u, renderList as d, createBlock as f, unref as h, withCtx as x, createElementVNode as n, normalizeClass as k, toDisplayString as v, capitalize as _ } from "vue";
|
|
2
2
|
import { RouterLink as b } from "vue-router";
|
|
3
3
|
const w = { class: "flex w-full gap-2 border-b pl-1.5 md:ml-1.5 md:pl-0" }, g = ["href", "onClick"], z = /* @__PURE__ */ m({
|
|
4
4
|
__name: "Tabs",
|
|
5
5
|
props: {
|
|
6
6
|
type: {}
|
|
7
7
|
},
|
|
8
|
-
setup(
|
|
8
|
+
setup(r) {
|
|
9
9
|
const s = p(
|
|
10
|
-
() =>
|
|
10
|
+
() => r.type === "workspace" ? ["environment", "cookies", "settings"] : [
|
|
11
11
|
"overview",
|
|
12
12
|
"servers",
|
|
13
13
|
"authentication",
|
|
@@ -22,18 +22,18 @@ const w = { class: "flex w-full gap-2 border-b pl-1.5 md:ml-1.5 md:pl-0" }, g =
|
|
|
22
22
|
custom: "",
|
|
23
23
|
to: { name: `${c.type}.${e}` }
|
|
24
24
|
}, {
|
|
25
|
-
default:
|
|
26
|
-
|
|
25
|
+
default: x(({ isActive: i, href: l, navigate: a }) => [
|
|
26
|
+
n("a", {
|
|
27
27
|
class: "-ml-2 flex h-10 cursor-pointer items-center px-2 text-center text-sm font-medium whitespace-nowrap no-underline -outline-offset-1 has-[:focus-visible]:outline",
|
|
28
28
|
href: l,
|
|
29
29
|
onClick: a
|
|
30
30
|
}, [
|
|
31
|
-
|
|
32
|
-
class:
|
|
31
|
+
n("span", {
|
|
32
|
+
class: k([
|
|
33
33
|
"flex-center hover:text-c-1 h-full border-b",
|
|
34
34
|
i ? "text-c-1 border-c-1" : "text-c-2 hover:text-c-1 border-transparent"
|
|
35
35
|
])
|
|
36
|
-
},
|
|
36
|
+
}, v(_(e)), 3)
|
|
37
37
|
], 8, g)
|
|
38
38
|
]),
|
|
39
39
|
_: 2
|
|
@@ -1,98 +1,9 @@
|
|
|
1
|
-
import type {
|
|
2
|
-
import type {
|
|
3
|
-
import { type Environment, type EnvironmentVariable } from './components/Environment.vue.js';
|
|
1
|
+
import type { CollectionType, WorkspaceEventBus } from '@scalar/workspace-store/events';
|
|
2
|
+
import type { XScalarEnvironments } from '@scalar/workspace-store/schemas/extensions/document/x-scalar-environments';
|
|
4
3
|
type __VLS_Props = {
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
/** TODO: remove when we migrate to the new store */
|
|
10
|
-
environment: EntitiesEnvironment;
|
|
11
|
-
envVariables: EnvVariable[];
|
|
12
|
-
};
|
|
13
|
-
type __VLS_Slots = {
|
|
14
|
-
icon: () => unknown;
|
|
15
|
-
};
|
|
16
|
-
declare const __VLS_component: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {} & {
|
|
17
|
-
"environment:reorder": (payload: {
|
|
18
|
-
draggingItem: {
|
|
19
|
-
id: string;
|
|
20
|
-
};
|
|
21
|
-
hoveredItem: {
|
|
22
|
-
id: string;
|
|
23
|
-
};
|
|
24
|
-
}) => any;
|
|
25
|
-
"environment:add": (payload: {
|
|
26
|
-
environment: Environment;
|
|
27
|
-
}) => any;
|
|
28
|
-
"environment:update": (payload: {
|
|
29
|
-
environmentName: string;
|
|
30
|
-
environment: Partial<Environment>;
|
|
31
|
-
}) => any;
|
|
32
|
-
"environment:delete": (payload: {
|
|
33
|
-
environmentName: string;
|
|
34
|
-
}) => any;
|
|
35
|
-
"environment:add:variable": (payload: {
|
|
36
|
-
environmentName: string;
|
|
37
|
-
environmentVariable: Partial<EnvironmentVariable>;
|
|
38
|
-
}) => any;
|
|
39
|
-
"environment:update:variable": (payload: {
|
|
40
|
-
/** Row number */
|
|
41
|
-
id: number;
|
|
42
|
-
/** Environment name */
|
|
43
|
-
environmentName: string;
|
|
44
|
-
/** Payload */
|
|
45
|
-
environmentVariable: Partial<EnvironmentVariable>;
|
|
46
|
-
}) => any;
|
|
47
|
-
"environment:delete:variable": (payload: {
|
|
48
|
-
/** Environment name */
|
|
49
|
-
environmentName: string;
|
|
50
|
-
/** Row number */
|
|
51
|
-
id: number;
|
|
52
|
-
}) => any;
|
|
53
|
-
}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{
|
|
54
|
-
"onEnvironment:reorder"?: ((payload: {
|
|
55
|
-
draggingItem: {
|
|
56
|
-
id: string;
|
|
57
|
-
};
|
|
58
|
-
hoveredItem: {
|
|
59
|
-
id: string;
|
|
60
|
-
};
|
|
61
|
-
}) => any) | undefined;
|
|
62
|
-
"onEnvironment:add"?: ((payload: {
|
|
63
|
-
environment: Environment;
|
|
64
|
-
}) => any) | undefined;
|
|
65
|
-
"onEnvironment:update"?: ((payload: {
|
|
66
|
-
environmentName: string;
|
|
67
|
-
environment: Partial<Environment>;
|
|
68
|
-
}) => any) | undefined;
|
|
69
|
-
"onEnvironment:delete"?: ((payload: {
|
|
70
|
-
environmentName: string;
|
|
71
|
-
}) => any) | undefined;
|
|
72
|
-
"onEnvironment:add:variable"?: ((payload: {
|
|
73
|
-
environmentName: string;
|
|
74
|
-
environmentVariable: Partial<EnvironmentVariable>;
|
|
75
|
-
}) => any) | undefined;
|
|
76
|
-
"onEnvironment:update:variable"?: ((payload: {
|
|
77
|
-
/** Row number */
|
|
78
|
-
id: number;
|
|
79
|
-
/** Environment name */
|
|
80
|
-
environmentName: string;
|
|
81
|
-
/** Payload */
|
|
82
|
-
environmentVariable: Partial<EnvironmentVariable>;
|
|
83
|
-
}) => any) | undefined;
|
|
84
|
-
"onEnvironment:delete:variable"?: ((payload: {
|
|
85
|
-
/** Environment name */
|
|
86
|
-
environmentName: string;
|
|
87
|
-
/** Row number */
|
|
88
|
-
id: number;
|
|
89
|
-
}) => any) | undefined;
|
|
90
|
-
}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
91
|
-
declare const _default: __VLS_WithSlots<typeof __VLS_component, __VLS_Slots>;
|
|
4
|
+
environments: NonNullable<XScalarEnvironments['x-scalar-environments']>;
|
|
5
|
+
eventBus: WorkspaceEventBus;
|
|
6
|
+
} & CollectionType;
|
|
7
|
+
declare const _default: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
92
8
|
export default _default;
|
|
93
|
-
type __VLS_WithSlots<T, S> = T & {
|
|
94
|
-
new (): {
|
|
95
|
-
$slots: S;
|
|
96
|
-
};
|
|
97
|
-
};
|
|
98
9
|
//# sourceMappingURL=EnvironmentsList.vue.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"EnvironmentsList.vue.d.ts","sourceRoot":"","sources":["../../../../src/v2/features/environments/EnvironmentsList.vue"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"EnvironmentsList.vue.d.ts","sourceRoot":"","sources":["../../../../src/v2/features/environments/EnvironmentsList.vue"],"names":[],"mappings":"AA8FA,OAAO,KAAK,EACV,cAAc,EACd,iBAAiB,EAClB,MAAM,gCAAgC,CAAA;AACvC,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,2EAA2E,CAAA;AAQpH,KAAK,WAAW,GAAG;IACf,YAAY,EAAE,WAAW,CAAC,mBAAmB,CAAC,uBAAuB,CAAC,CAAC,CAAA;IACvE,QAAQ,EAAE,iBAAiB,CAAA;CAC5B,GAAG,cAAc,CAAC;;AAoLrB,wBAMG"}
|