@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,16 +1,18 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
import { ScalarTooltip as
|
|
3
|
-
import { ScalarIconTrash as
|
|
4
|
-
import
|
|
5
|
-
import
|
|
6
|
-
import
|
|
7
|
-
import
|
|
8
|
-
import
|
|
9
|
-
import
|
|
10
|
-
|
|
1
|
+
import { defineComponent as S, computed as r, resolveComponent as U, createBlock as u, openBlock as s, unref as l, normalizeClass as $, withCtx as i, createVNode as d, createCommentVNode as v, createElementVNode as m, createElementBlock as c, Fragment as D, toDisplayString as I } from "vue";
|
|
2
|
+
import { ScalarTooltip as O, ScalarIcon as y, ScalarButton as h } from "@scalar/components";
|
|
3
|
+
import { ScalarIconTrash as E } from "@scalar/icons";
|
|
4
|
+
import { unpackProxyObject as b } from "@scalar/workspace-store/helpers/unpack-proxy";
|
|
5
|
+
import j from "./OperationTableTooltip.vue.js";
|
|
6
|
+
import { getFileName as k } from "../helpers/files.js";
|
|
7
|
+
import { validateParameter as q } from "../helpers/validate-parameter.js";
|
|
8
|
+
import N from "../../../../components/DataTable/DataTableRow.vue.js";
|
|
9
|
+
import P from "../../../../components/DataTable/DataTableCheckbox.vue.js";
|
|
10
|
+
import p from "../../../../components/DataTable/DataTableCell.vue.js";
|
|
11
|
+
import V from "../../../../components/CodeInput/CodeInput.vue.js";
|
|
12
|
+
const G = { class: "text-c-2 filemask flex w-full max-w-[100%] items-center justify-center overflow-hidden p-1" }, K = {
|
|
11
13
|
key: 1,
|
|
12
14
|
class: "p-0.5"
|
|
13
|
-
},
|
|
15
|
+
}, ee = /* @__PURE__ */ S({
|
|
14
16
|
__name: "OperationTableRow",
|
|
15
17
|
props: {
|
|
16
18
|
data: {},
|
|
@@ -23,44 +25,47 @@ const G = { class: "text-c-2 filemask flex w-full max-w-[100%] items-center just
|
|
|
23
25
|
showUploadButton: { type: Boolean }
|
|
24
26
|
},
|
|
25
27
|
emits: ["updateRow", "deleteRow", "uploadFile", "removeFile"],
|
|
26
|
-
setup(
|
|
27
|
-
const n =
|
|
28
|
-
() =>
|
|
29
|
-
),
|
|
30
|
-
() =>
|
|
31
|
-
),
|
|
32
|
-
() =>
|
|
28
|
+
setup(t, { emit: w }) {
|
|
29
|
+
const n = w, R = r(() => t.data.schema?.default), g = r(() => t.data.schema?.enum), B = r(
|
|
30
|
+
() => t.data.schema && "minimum" in t.data.schema ? t.data.schema.minimum : void 0
|
|
31
|
+
), C = r(
|
|
32
|
+
() => t.data.schema && "maximum" in t.data.schema ? t.data.schema.maximum : void 0
|
|
33
|
+
), F = r(
|
|
34
|
+
() => t.data.schema && "type" in t.data.schema ? t.data.schema.type : void 0
|
|
33
35
|
), f = r(
|
|
34
|
-
() =>
|
|
35
|
-
),
|
|
36
|
-
get: () =>
|
|
36
|
+
() => q(t.data.schema, t.data.value)
|
|
37
|
+
), T = (e) => e instanceof File, x = r({
|
|
38
|
+
get: () => {
|
|
39
|
+
const e = b(t.data.value);
|
|
40
|
+
return e instanceof File ? k(b(t.data.value)) ?? "" : e === null ? "" : e;
|
|
41
|
+
},
|
|
37
42
|
set: (e) => {
|
|
38
43
|
typeof e == "string" && n("updateRow", { value: e });
|
|
39
44
|
}
|
|
40
45
|
});
|
|
41
46
|
return (e, a) => {
|
|
42
|
-
const
|
|
43
|
-
return s(), u(
|
|
47
|
+
const z = U("RouterLink");
|
|
48
|
+
return s(), u(l(N), {
|
|
44
49
|
id: e.data.name,
|
|
45
|
-
class:
|
|
50
|
+
class: $({
|
|
46
51
|
alert: f.value.ok === !1,
|
|
47
52
|
error: f.value.ok === !1 && e.invalidParams?.has(e.data.name)
|
|
48
53
|
})
|
|
49
54
|
}, {
|
|
50
55
|
default: i(() => [
|
|
51
|
-
e.data.globalRoute !== void 0 ? (s(), u(
|
|
56
|
+
e.data.globalRoute !== void 0 ? (s(), u(z, {
|
|
52
57
|
key: 0,
|
|
53
58
|
class: "text-c-2 flex items-center justify-center border-t !border-r",
|
|
54
59
|
to: e.data.globalRoute ?? {}
|
|
55
60
|
}, {
|
|
56
61
|
default: i(() => [
|
|
57
62
|
a[8] || (a[8] = m("span", { class: "sr-only" }, "Global", -1)),
|
|
58
|
-
d(
|
|
63
|
+
d(l(O), {
|
|
59
64
|
content: "Global cookies are shared across the whole workspace.",
|
|
60
65
|
placement: "top"
|
|
61
66
|
}, {
|
|
62
67
|
default: i(() => [
|
|
63
|
-
d(
|
|
68
|
+
d(l(y), {
|
|
64
69
|
class: "text-c-1",
|
|
65
70
|
icon: "Globe",
|
|
66
71
|
size: "xs",
|
|
@@ -71,16 +76,16 @@ const G = { class: "text-c-2 filemask flex w-full max-w-[100%] items-center just
|
|
|
71
76
|
})
|
|
72
77
|
]),
|
|
73
78
|
_: 1
|
|
74
|
-
}, 8, ["to"])) : (s(), u(
|
|
79
|
+
}, 8, ["to"])) : (s(), u(l(P), {
|
|
75
80
|
key: 1,
|
|
76
81
|
class: "!border-r",
|
|
77
82
|
disabled: e.hasCheckboxDisabled ?? !1,
|
|
78
83
|
modelValue: !e.data.isDisabled,
|
|
79
84
|
"onUpdate:modelValue": a[0] || (a[0] = (o) => n("updateRow", { isEnabled: o }))
|
|
80
85
|
}, null, 8, ["disabled", "modelValue"])),
|
|
81
|
-
d(
|
|
86
|
+
d(l(p), null, {
|
|
82
87
|
default: i(() => [
|
|
83
|
-
d(
|
|
88
|
+
d(l(V), {
|
|
84
89
|
"aria-label": `${e.label} Key`,
|
|
85
90
|
disableCloseBrackets: "",
|
|
86
91
|
disabled: e.isReadOnly,
|
|
@@ -98,30 +103,30 @@ const G = { class: "text-c-2 filemask flex w-full max-w-[100%] items-center just
|
|
|
98
103
|
]),
|
|
99
104
|
_: 1
|
|
100
105
|
}),
|
|
101
|
-
d(
|
|
106
|
+
d(l(p), null, {
|
|
102
107
|
default: i(() => [
|
|
103
|
-
d(
|
|
108
|
+
d(l(V), {
|
|
104
109
|
"aria-label": `${e.label} Value`,
|
|
105
110
|
class: "pr-6 group-hover:pr-10 group-has-[.cm-focused]:pr-10",
|
|
106
|
-
default:
|
|
111
|
+
default: R.value,
|
|
107
112
|
disableCloseBrackets: "",
|
|
108
113
|
disabled: e.isReadOnly,
|
|
109
114
|
disableEnter: "",
|
|
110
115
|
disableTabIndent: "",
|
|
111
|
-
enum:
|
|
116
|
+
enum: g.value ?? [],
|
|
112
117
|
envVariables: e.envVariables,
|
|
113
118
|
environment: e.environment,
|
|
114
119
|
lineWrapping: "",
|
|
115
|
-
max:
|
|
116
|
-
min:
|
|
117
|
-
modelValue:
|
|
120
|
+
max: C.value,
|
|
121
|
+
min: B.value,
|
|
122
|
+
modelValue: x.value,
|
|
118
123
|
placeholder: "Value",
|
|
119
|
-
type:
|
|
124
|
+
type: F.value,
|
|
120
125
|
onSelectVariable: a[4] || (a[4] = (o) => n("updateRow", { value: o })),
|
|
121
126
|
"onUpdate:modelValue": a[5] || (a[5] = (o) => n("updateRow", { value: o }))
|
|
122
127
|
}, {
|
|
123
128
|
icon: i(() => [
|
|
124
|
-
(e.data.name || e.data.value) && !e.data.isRequired ? (s(), u(
|
|
129
|
+
(e.data.name || e.data.value) && !e.data.isRequired ? (s(), u(l(h), {
|
|
125
130
|
key: 0,
|
|
126
131
|
class: "text-c-2 hover:text-c-1 hover:bg-b-2 z-context -mr-0.5 hidden h-fit rounded p-1 group-hover:flex group-has-[.cm-focused]:flex",
|
|
127
132
|
size: "sm",
|
|
@@ -129,37 +134,37 @@ const G = { class: "text-c-2 filemask flex w-full max-w-[100%] items-center just
|
|
|
129
134
|
onClick: a[3] || (a[3] = (o) => n("deleteRow"))
|
|
130
135
|
}, {
|
|
131
136
|
default: i(() => [
|
|
132
|
-
d(
|
|
137
|
+
d(l(E), { class: "size-3.5" })
|
|
133
138
|
]),
|
|
134
139
|
_: 1
|
|
135
|
-
})) :
|
|
136
|
-
e.data.schema ? (s(), u(
|
|
140
|
+
})) : v("", !0),
|
|
141
|
+
e.data.schema ? (s(), u(j, {
|
|
137
142
|
key: 1,
|
|
138
143
|
schema: e.data.schema,
|
|
139
144
|
value: e.data.value
|
|
140
|
-
}, null, 8, ["schema", "value"])) :
|
|
145
|
+
}, null, 8, ["schema", "value"])) : v("", !0)
|
|
141
146
|
]),
|
|
142
147
|
_: 1
|
|
143
148
|
}, 8, ["aria-label", "default", "disabled", "enum", "envVariables", "environment", "max", "min", "modelValue", "type"])
|
|
144
149
|
]),
|
|
145
150
|
_: 1
|
|
146
151
|
}),
|
|
147
|
-
e.showUploadButton ? (s(), u(
|
|
152
|
+
e.showUploadButton ? (s(), u(l(p), {
|
|
148
153
|
key: 2,
|
|
149
154
|
class: "group/upload flex items-center justify-center whitespace-nowrap"
|
|
150
155
|
}, {
|
|
151
156
|
default: i(() => [
|
|
152
|
-
|
|
157
|
+
T(l(b)(e.data.value)) ? (s(), c(D, { key: 0 }, [
|
|
153
158
|
m("div", G, [
|
|
154
|
-
m("span", null,
|
|
159
|
+
m("span", null, I(l(k)(l(b)(e.data.value))), 1)
|
|
155
160
|
]),
|
|
156
161
|
m("button", {
|
|
157
162
|
class: "bg-b-2 centered-x centered-y absolute hidden w-[calc(100%_-_8px)] rounded p-0.5 text-center text-xs font-medium group-hover/upload:block",
|
|
158
163
|
type: "button",
|
|
159
164
|
onClick: a[6] || (a[6] = (o) => n("removeFile"))
|
|
160
165
|
}, " Delete ")
|
|
161
|
-
], 64)) : (s(),
|
|
162
|
-
d(
|
|
166
|
+
], 64)) : (s(), c("div", K, [
|
|
167
|
+
d(l(h), {
|
|
163
168
|
class: "bg-b-2 hover:bg-b-3 text-c-2 h-fit border-0 py-px shadow-none",
|
|
164
169
|
size: "sm",
|
|
165
170
|
variant: "outlined",
|
|
@@ -167,7 +172,7 @@ const G = { class: "text-c-2 filemask flex w-full max-w-[100%] items-center just
|
|
|
167
172
|
}, {
|
|
168
173
|
default: i(() => [
|
|
169
174
|
a[9] || (a[9] = m("span", null, "Upload File", -1)),
|
|
170
|
-
d(
|
|
175
|
+
d(l(y), {
|
|
171
176
|
class: "ml-1",
|
|
172
177
|
icon: "Upload",
|
|
173
178
|
size: "xs",
|
|
@@ -179,7 +184,7 @@ const G = { class: "text-c-2 filemask flex w-full max-w-[100%] items-center just
|
|
|
179
184
|
]))
|
|
180
185
|
]),
|
|
181
186
|
_: 1
|
|
182
|
-
})) :
|
|
187
|
+
})) : v("", !0)
|
|
183
188
|
]),
|
|
184
189
|
_: 1
|
|
185
190
|
}, 8, ["id", "class"]);
|
|
@@ -187,5 +192,5 @@ const G = { class: "text-c-2 filemask flex w-full max-w-[100%] items-center just
|
|
|
187
192
|
}
|
|
188
193
|
});
|
|
189
194
|
export {
|
|
190
|
-
|
|
195
|
+
ee as default
|
|
191
196
|
};
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import type { ResponseInstance } from '@scalar/oas-utils/entities/spec';
|
|
2
|
+
import type { WorkspaceEventBus } from '@scalar/workspace-store/events';
|
|
2
3
|
import type { ClientLayout } from '../../../../hooks/index.js';
|
|
3
4
|
import type { createStoreEvents } from '../../../../store/events.js';
|
|
4
5
|
import type { ClientPlugin } from '../../../../v2/plugins';
|
|
@@ -17,6 +18,7 @@ type __VLS_Props = {
|
|
|
17
18
|
plugins?: ClientPlugin[];
|
|
18
19
|
/** Event bus */
|
|
19
20
|
events: ReturnType<typeof createStoreEvents>;
|
|
21
|
+
eventBus: WorkspaceEventBus;
|
|
20
22
|
};
|
|
21
23
|
declare const responseSections: readonly ["Cookies", "Headers", "Body"];
|
|
22
24
|
type Filter = 'All' | (typeof responseSections)[number];
|
|
@@ -38,13 +40,9 @@ declare const _default: import("vue").DefineComponent<__VLS_Props, {
|
|
|
38
40
|
activeFilter: import("vue").Ref<Filter, Filter>;
|
|
39
41
|
filters: import("vue").ComputedRef<Filter[]>;
|
|
40
42
|
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {} & {
|
|
41
|
-
openCommandPalette: () => any;
|
|
42
43
|
sendRequest: () => any;
|
|
43
|
-
addRequest: () => any;
|
|
44
44
|
}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{
|
|
45
|
-
onOpenCommandPalette?: (() => any) | undefined;
|
|
46
45
|
onSendRequest?: (() => any) | undefined;
|
|
47
|
-
onAddRequest?: (() => any) | undefined;
|
|
48
46
|
}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
49
47
|
export default _default;
|
|
50
48
|
//# sourceMappingURL=ResponseBlock.vue.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ResponseBlock.vue.d.ts","sourceRoot":"","sources":["../../../../../src/v2/blocks/scalar-response-block/components/ResponseBlock.vue"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"ResponseBlock.vue.d.ts","sourceRoot":"","sources":["../../../../../src/v2/blocks/scalar-response-block/components/ResponseBlock.vue"],"names":[],"mappings":"AAgSA,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,iCAAiC,CAAA;AACvE,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,gCAAgC,CAAA;AAKvE,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,SAAS,CAAA;AAC3C,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,gBAAgB,CAAA;AAGvD,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,cAAc,CAAA;AAUhD,KAAK,WAAW,GAAG;IACjB,4BAA4B;IAC5B,QAAQ,CAAC,EAAE,gBAAgB,CAAA;IAC3B,gCAAgC;IAChC,OAAO,CAAC,EAAE,OAAO,CAAA;IAEjB,oBAAoB;IACpB,MAAM,EAAE,YAAY,CAAA;IACpB,yCAAyC;IACzC,sBAAsB,EAAE,MAAM,CAAA;IAC9B,0BAA0B;IAC1B,UAAU,EAAE,MAAM,CAAA;IAElB,6BAA6B;IAC7B,OAAO,CAAC,EAAE,YAAY,EAAE,CAAA;IAExB,gBAAgB;IAChB,MAAM,EAAE,UAAU,CAAC,OAAO,iBAAiB,CAAC,CAAA;IAE5C,QAAQ,EAAE,iBAAiB,CAAA;CAC5B,CAAC;AAmCF,QAAA,MAAM,gBAAgB,yCAA0C,CAAA;AAChE,KAAK,MAAM,GAAG,KAAK,GAAG,CAAC,OAAO,gBAAgB,CAAC,CAAC,MAAM,CAAC,CAAA;;;;;;;;;;;;;;;;;;;;;;;AA8YvD,wBAQG"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import o from "./ResponseBlock.vue2.js";
|
|
2
2
|
/* empty css */
|
|
3
|
-
import
|
|
4
|
-
const
|
|
3
|
+
import t from "../../../../_virtual/_plugin-vue_export-helper.js";
|
|
4
|
+
const c = /* @__PURE__ */ t(o, [["__scopeId", "data-v-fd0c4365"]]);
|
|
5
5
|
export {
|
|
6
|
-
|
|
6
|
+
c as default
|
|
7
7
|
};
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { defineComponent as I, computed as i, ref as
|
|
1
|
+
import { defineComponent as I, computed as i, ref as O, useId as S, createBlock as r, openBlock as n, withCtx as u, createElementVNode as m, normalizeClass as B, createElementBlock as c, createVNode as h, Fragment as y, createCommentVNode as d, createTextVNode as A, renderList as E, unref as z, withDirectives as N, resolveDynamicComponent as P, vShow as L } from "vue";
|
|
2
2
|
import { ScalarErrorBoundary as j } from "@scalar/components";
|
|
3
3
|
import w from "../../../../components/SectionFilter.vue.js";
|
|
4
4
|
import D from "../../../../components/ViewLayout/ViewLayoutSection.vue.js";
|
|
5
|
-
import
|
|
5
|
+
import V from "./Headers.vue.js";
|
|
6
6
|
import { textMediaTypes as F } from "../helpers/media-types.js";
|
|
7
7
|
import M from "./ResponseBody.vue.js";
|
|
8
8
|
import U from "./ResponseBodyStreaming.vue.js";
|
|
@@ -12,7 +12,7 @@ import Z from "./ResponseCookies.vue.js";
|
|
|
12
12
|
import G from "./ResponseEmpty.vue.js";
|
|
13
13
|
import J from "./ResponseLoadingOverlay.vue.js";
|
|
14
14
|
import Q from "./ResponseMetaInformation.vue.js";
|
|
15
|
-
const W = { class: "flex h-8 flex-1 items-center" }, X = ["id", "role"],
|
|
15
|
+
const W = { class: "flex h-8 flex-1 items-center" }, X = ["id", "role"], b = 2e5, pe = /* @__PURE__ */ I({
|
|
16
16
|
__name: "ResponseBlock",
|
|
17
17
|
props: {
|
|
18
18
|
response: {},
|
|
@@ -21,17 +21,18 @@ const W = { class: "flex h-8 flex-1 items-center" }, X = ["id", "role"], C = 2e5
|
|
|
21
21
|
totalPerformedRequests: {},
|
|
22
22
|
appVersion: {},
|
|
23
23
|
plugins: {},
|
|
24
|
-
events: {}
|
|
24
|
+
events: {},
|
|
25
|
+
eventBus: {}
|
|
25
26
|
},
|
|
26
|
-
emits: ["
|
|
27
|
-
setup(t, { expose: H, emit:
|
|
28
|
-
const
|
|
27
|
+
emits: ["sendRequest"],
|
|
28
|
+
setup(t, { expose: H, emit: C }) {
|
|
29
|
+
const T = C, p = i(() => {
|
|
29
30
|
const e = t.response?.headers;
|
|
30
31
|
return e ? Object.keys(e).map((s) => ({
|
|
31
32
|
name: s,
|
|
32
33
|
value: e[s] ?? ""
|
|
33
34
|
})) : [];
|
|
34
|
-
}),
|
|
35
|
+
}), k = i(
|
|
35
36
|
() => t.response?.cookieHeaderKeys.flatMap((e) => {
|
|
36
37
|
const s = t.response?.headers?.[e];
|
|
37
38
|
return s ? {
|
|
@@ -39,35 +40,35 @@ const W = { class: "flex h-8 flex-1 items-center" }, X = ["id", "role"], C = 2e5
|
|
|
39
40
|
value: s
|
|
40
41
|
} : [];
|
|
41
42
|
}) ?? []
|
|
42
|
-
), $ = ["Cookies", "Headers", "Body"], o =
|
|
43
|
+
), $ = ["Cookies", "Headers", "Body"], o = O("All"), v = i(() => ["All", ...$]), a = i(
|
|
43
44
|
() => Object.fromEntries(
|
|
44
|
-
|
|
45
|
+
v.value.map((e) => [e, S()])
|
|
45
46
|
)
|
|
46
|
-
),
|
|
47
|
+
), R = i(() => {
|
|
47
48
|
if (!t.response || !("size" in t.response))
|
|
48
49
|
return !1;
|
|
49
50
|
const e = t.response.headers?.["content-type"] || t.response.headers?.["Content-Type"];
|
|
50
|
-
return !e || (t.response.size ?? 0) <=
|
|
51
|
-
}),
|
|
51
|
+
return !e || (t.response.size ?? 0) <= b || e.includes("text/html") ? !1 : F.some((l) => e.includes(l)) && (t.response.size ?? 0) > b;
|
|
52
|
+
}), q = i(
|
|
52
53
|
() => t.request?.headers ? [...t.request.headers].map((e) => ({
|
|
53
54
|
name: e[0],
|
|
54
55
|
value: e[1],
|
|
55
56
|
required: !1
|
|
56
57
|
})) : []
|
|
57
|
-
),
|
|
58
|
+
), f = (e) => e === "All" || o.value === e;
|
|
58
59
|
return H({
|
|
59
60
|
responseHeaders: p,
|
|
60
|
-
responseCookies:
|
|
61
|
-
requestHeaders:
|
|
62
|
-
shouldVirtualize:
|
|
61
|
+
responseCookies: k,
|
|
62
|
+
requestHeaders: q,
|
|
63
|
+
shouldVirtualize: R,
|
|
63
64
|
activeFilter: o,
|
|
64
|
-
filters:
|
|
65
|
+
filters: v
|
|
65
66
|
}), (e, s) => (n(), r(D, { "aria-label": "Response" }, {
|
|
66
67
|
title: u(() => [
|
|
67
68
|
m("div", W, [
|
|
68
69
|
m("div", {
|
|
69
70
|
"aria-live": "polite",
|
|
70
|
-
class:
|
|
71
|
+
class: B(["flex items-center", { "animate-response-heading": e.response }])
|
|
71
72
|
}, [
|
|
72
73
|
s[4] || (s[4] = m("span", { class: "response-heading pointer-events-none absolute" }, " Response ", -1)),
|
|
73
74
|
e.response ? (n(), r(Q, {
|
|
@@ -77,43 +78,43 @@ const W = { class: "flex h-8 flex-1 items-center" }, X = ["id", "role"], C = 2e5
|
|
|
77
78
|
response: e.response
|
|
78
79
|
}, null, 8, ["events", "response"])) : d("", !0)
|
|
79
80
|
], 2),
|
|
80
|
-
|
|
81
|
+
h(w, {
|
|
81
82
|
modelValue: o.value,
|
|
82
83
|
"onUpdate:modelValue": s[0] || (s[0] = (l) => o.value = l),
|
|
83
84
|
filterIds: a.value,
|
|
84
|
-
filters:
|
|
85
|
+
filters: v.value
|
|
85
86
|
}, null, 8, ["modelValue", "filterIds", "filters"])
|
|
86
87
|
])
|
|
87
88
|
]),
|
|
88
89
|
default: u(() => [
|
|
89
90
|
m("div", {
|
|
90
91
|
id: a.value.All,
|
|
91
|
-
class:
|
|
92
|
+
class: B(["custom-scroll response-section-content relative grid h-full justify-stretch", {
|
|
92
93
|
"content-start": e.response
|
|
93
94
|
}]),
|
|
94
95
|
role: o.value === "All" && e.response ? "tabpanel" : "none"
|
|
95
96
|
}, [
|
|
96
|
-
e.response ? (n(), y
|
|
97
|
-
|
|
97
|
+
e.response ? (n(), c(y, { key: 1 }, [
|
|
98
|
+
f("Cookies") ? (n(), r(Z, {
|
|
98
99
|
key: 0,
|
|
99
100
|
id: a.value.Cookies,
|
|
100
101
|
class: "response-section-content-cookies",
|
|
101
|
-
cookies:
|
|
102
|
+
cookies: k.value,
|
|
102
103
|
role: o.value === "All" ? "none" : "tabpanel"
|
|
103
104
|
}, null, 8, ["id", "cookies", "role"])) : d("", !0),
|
|
104
|
-
|
|
105
|
+
f("Headers") ? (n(), r(V, {
|
|
105
106
|
key: 1,
|
|
106
107
|
id: a.value.Headers,
|
|
107
108
|
class: "response-section-content-headers",
|
|
108
|
-
headers:
|
|
109
|
+
headers: q.value,
|
|
109
110
|
role: o.value === "All" ? "none" : "tabpanel"
|
|
110
111
|
}, {
|
|
111
112
|
title: u(() => [...s[5] || (s[5] = [
|
|
112
|
-
|
|
113
|
+
A("Request Headers", -1)
|
|
113
114
|
])]),
|
|
114
115
|
_: 1
|
|
115
116
|
}, 8, ["id", "headers", "role"])) : d("", !0),
|
|
116
|
-
|
|
117
|
+
f("Headers") ? (n(), r(V, {
|
|
117
118
|
key: 2,
|
|
118
119
|
id: a.value.Headers,
|
|
119
120
|
class: "response-section-content-headers",
|
|
@@ -121,13 +122,13 @@ const W = { class: "flex h-8 flex-1 items-center" }, X = ["id", "role"], C = 2e5
|
|
|
121
122
|
role: o.value === "All" ? "none" : "tabpanel"
|
|
122
123
|
}, {
|
|
123
124
|
title: u(() => [...s[6] || (s[6] = [
|
|
124
|
-
|
|
125
|
+
A("Response Headers", -1)
|
|
125
126
|
])]),
|
|
126
127
|
_: 1
|
|
127
128
|
}, 8, ["id", "headers", "role"])) : d("", !0),
|
|
128
|
-
(n(!0), y
|
|
129
|
+
(n(!0), c(y, null, E(e.plugins, (l, g) => (n(), r(z(j), { key: g }, {
|
|
129
130
|
default: u(() => [
|
|
130
|
-
l.components?.response ?
|
|
131
|
+
l.components?.response ? N((n(), r(P(l.components.response), {
|
|
131
132
|
key: 0,
|
|
132
133
|
response: e.response,
|
|
133
134
|
request: e.request
|
|
@@ -137,13 +138,13 @@ const W = { class: "flex h-8 flex-1 items-center" }, X = ["id", "role"], C = 2e5
|
|
|
137
138
|
]),
|
|
138
139
|
_: 2
|
|
139
140
|
}, 1024))), 128)),
|
|
140
|
-
o.value === "All" || o.value === "Body" ? (n(), y
|
|
141
|
+
o.value === "All" || o.value === "Body" ? (n(), c(y, { key: 3 }, [
|
|
141
142
|
"reader" in e.response ? (n(), r(U, {
|
|
142
143
|
key: 0,
|
|
143
144
|
id: a.value.Body,
|
|
144
145
|
class: "response-section-content-body",
|
|
145
146
|
reader: e.response.reader
|
|
146
|
-
}, null, 8, ["id", "reader"])) :
|
|
147
|
+
}, null, 8, ["id", "reader"])) : R.value && typeof e.response?.data == "string" ? (n(), r(K, {
|
|
147
148
|
key: 1,
|
|
148
149
|
id: a.value.Body,
|
|
149
150
|
content: e.response.data,
|
|
@@ -168,11 +169,11 @@ const W = { class: "flex h-8 flex-1 items-center" }, X = ["id", "role"], C = 2e5
|
|
|
168
169
|
events: e.events,
|
|
169
170
|
layout: e.layout,
|
|
170
171
|
totalPerformedRequests: e.totalPerformedRequests,
|
|
171
|
-
onAddRequest: s[1] || (s[1] = (l) =>
|
|
172
|
-
onOpenCommandPalette: s[2] || (s[2] = (l) =>
|
|
173
|
-
onSendRequest: s[3] || (s[3] = (l) =>
|
|
172
|
+
onAddRequest: s[1] || (s[1] = (l) => e.eventBus.emit("open:command-palette", "addOperation")),
|
|
173
|
+
onOpenCommandPalette: s[2] || (s[2] = (l) => e.eventBus.emit("open:command-palette")),
|
|
174
|
+
onSendRequest: s[3] || (s[3] = (l) => T("sendRequest"))
|
|
174
175
|
}, null, 8, ["appVersion", "events", "layout", "totalPerformedRequests"])),
|
|
175
|
-
|
|
176
|
+
h(J, { events: e.events }, null, 8, ["events"])
|
|
176
177
|
], 10, X)
|
|
177
178
|
]),
|
|
178
179
|
_: 1
|
|
@@ -0,0 +1,140 @@
|
|
|
1
|
+
import { type CodeMirrorLanguage, type Extension } from '@scalar/use-codemirror';
|
|
2
|
+
import type { XScalarEnvironment } from '@scalar/workspace-store/schemas/extensions/document/x-scalar-environments';
|
|
3
|
+
import { type Ref } from 'vue';
|
|
4
|
+
import type { ClientLayout } from '../../../v2/types/layout';
|
|
5
|
+
declare const _default: __VLS_WithSlots<import("vue").DefineComponent<{
|
|
6
|
+
modelValue: string | number;
|
|
7
|
+
/** Environment for variable substitution. Pass undefined to disable environment variables */
|
|
8
|
+
environment: XScalarEnvironment | undefined;
|
|
9
|
+
/** Type of the input value, affects rendering mode for booleans */
|
|
10
|
+
type?: string | string[];
|
|
11
|
+
/** Render as disabled text display */
|
|
12
|
+
disabled?: boolean;
|
|
13
|
+
/** Show error styling */
|
|
14
|
+
error?: boolean;
|
|
15
|
+
/** Layout context affects styling and behavior */
|
|
16
|
+
layout?: ClientLayout;
|
|
17
|
+
/** Predefined enum values, triggers select mode */
|
|
18
|
+
enum?: string[];
|
|
19
|
+
/** Example values, triggers select mode */
|
|
20
|
+
examples?: string[];
|
|
21
|
+
/** Default value to show in select mode */
|
|
22
|
+
default?: string | number;
|
|
23
|
+
/** Allow null in boolean select options */
|
|
24
|
+
nullable?: boolean;
|
|
25
|
+
/** Placeholder text for empty input */
|
|
26
|
+
placeholder?: string;
|
|
27
|
+
/** Show required indicator */
|
|
28
|
+
required?: boolean;
|
|
29
|
+
/** Enable color picker extension */
|
|
30
|
+
colorPicker?: boolean;
|
|
31
|
+
/** Show line numbers in editor */
|
|
32
|
+
lineNumbers?: boolean;
|
|
33
|
+
/** Enable linting */
|
|
34
|
+
lint?: boolean;
|
|
35
|
+
/** Enable line wrapping */
|
|
36
|
+
lineWrapping?: boolean;
|
|
37
|
+
/** CodeMirror language mode */
|
|
38
|
+
language?: CodeMirrorLanguage;
|
|
39
|
+
/** Additional CodeMirror extensions */
|
|
40
|
+
extensions?: Extension[];
|
|
41
|
+
/** Disable tab key for indentation */
|
|
42
|
+
disableTabIndent?: boolean;
|
|
43
|
+
/** Disable enter key */
|
|
44
|
+
disableEnter?: boolean;
|
|
45
|
+
/** Disable automatic bracket closing */
|
|
46
|
+
disableCloseBrackets?: boolean;
|
|
47
|
+
/** Emit submit event on blur */
|
|
48
|
+
emitOnBlur?: boolean;
|
|
49
|
+
/** Enable environment variable pills */
|
|
50
|
+
withVariables?: boolean;
|
|
51
|
+
/** Detect and emit curl commands */
|
|
52
|
+
importCurl?: boolean;
|
|
53
|
+
/** Custom change handler, prevents default emit */
|
|
54
|
+
handleFieldChange?: (value: string) => void;
|
|
55
|
+
/** Custom submit handler, prevents default emit */
|
|
56
|
+
handleFieldSubmit?: (value: string) => void;
|
|
57
|
+
}, {
|
|
58
|
+
focus: () => void | undefined;
|
|
59
|
+
handleChange: (value: string) => void;
|
|
60
|
+
handleSubmit: (value: string) => void;
|
|
61
|
+
handleBlur: (value: string) => void;
|
|
62
|
+
booleanOptions: import("vue").ComputedRef<string[]>;
|
|
63
|
+
codeMirror: Ref<import("@codemirror/view").EditorView | null, import("@codemirror/view").EditorView | null>;
|
|
64
|
+
modelValue: string | number;
|
|
65
|
+
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
66
|
+
submit: (value: string) => any;
|
|
67
|
+
redirectToEnvironment: () => any;
|
|
68
|
+
"update:modelValue": (value: string) => any;
|
|
69
|
+
blur: (value: string) => any;
|
|
70
|
+
curl: (value: string) => any;
|
|
71
|
+
}, string, import("vue").PublicProps, Readonly<{
|
|
72
|
+
modelValue: string | number;
|
|
73
|
+
/** Environment for variable substitution. Pass undefined to disable environment variables */
|
|
74
|
+
environment: XScalarEnvironment | undefined;
|
|
75
|
+
/** Type of the input value, affects rendering mode for booleans */
|
|
76
|
+
type?: string | string[];
|
|
77
|
+
/** Render as disabled text display */
|
|
78
|
+
disabled?: boolean;
|
|
79
|
+
/** Show error styling */
|
|
80
|
+
error?: boolean;
|
|
81
|
+
/** Layout context affects styling and behavior */
|
|
82
|
+
layout?: ClientLayout;
|
|
83
|
+
/** Predefined enum values, triggers select mode */
|
|
84
|
+
enum?: string[];
|
|
85
|
+
/** Example values, triggers select mode */
|
|
86
|
+
examples?: string[];
|
|
87
|
+
/** Default value to show in select mode */
|
|
88
|
+
default?: string | number;
|
|
89
|
+
/** Allow null in boolean select options */
|
|
90
|
+
nullable?: boolean;
|
|
91
|
+
/** Placeholder text for empty input */
|
|
92
|
+
placeholder?: string;
|
|
93
|
+
/** Show required indicator */
|
|
94
|
+
required?: boolean;
|
|
95
|
+
/** Enable color picker extension */
|
|
96
|
+
colorPicker?: boolean;
|
|
97
|
+
/** Show line numbers in editor */
|
|
98
|
+
lineNumbers?: boolean;
|
|
99
|
+
/** Enable linting */
|
|
100
|
+
lint?: boolean;
|
|
101
|
+
/** Enable line wrapping */
|
|
102
|
+
lineWrapping?: boolean;
|
|
103
|
+
/** CodeMirror language mode */
|
|
104
|
+
language?: CodeMirrorLanguage;
|
|
105
|
+
/** Additional CodeMirror extensions */
|
|
106
|
+
extensions?: Extension[];
|
|
107
|
+
/** Disable tab key for indentation */
|
|
108
|
+
disableTabIndent?: boolean;
|
|
109
|
+
/** Disable enter key */
|
|
110
|
+
disableEnter?: boolean;
|
|
111
|
+
/** Disable automatic bracket closing */
|
|
112
|
+
disableCloseBrackets?: boolean;
|
|
113
|
+
/** Emit submit event on blur */
|
|
114
|
+
emitOnBlur?: boolean;
|
|
115
|
+
/** Enable environment variable pills */
|
|
116
|
+
withVariables?: boolean;
|
|
117
|
+
/** Detect and emit curl commands */
|
|
118
|
+
importCurl?: boolean;
|
|
119
|
+
/** Custom change handler, prevents default emit */
|
|
120
|
+
handleFieldChange?: (value: string) => void;
|
|
121
|
+
/** Custom submit handler, prevents default emit */
|
|
122
|
+
handleFieldSubmit?: (value: string) => void;
|
|
123
|
+
}> & Readonly<{
|
|
124
|
+
onSubmit?: ((value: string) => any) | undefined;
|
|
125
|
+
onRedirectToEnvironment?: (() => any) | undefined;
|
|
126
|
+
"onUpdate:modelValue"?: ((value: string) => any) | undefined;
|
|
127
|
+
onBlur?: ((value: string) => any) | undefined;
|
|
128
|
+
onCurl?: ((value: string) => any) | undefined;
|
|
129
|
+
}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>, {
|
|
130
|
+
warning?: (props: {}) => any;
|
|
131
|
+
} & {
|
|
132
|
+
icon?: (props: {}) => any;
|
|
133
|
+
}>;
|
|
134
|
+
export default _default;
|
|
135
|
+
type __VLS_WithSlots<T, S> = T & {
|
|
136
|
+
new (): {
|
|
137
|
+
$slots: S;
|
|
138
|
+
};
|
|
139
|
+
};
|
|
140
|
+
//# sourceMappingURL=CodeInput.vue.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"CodeInput.vue.d.ts","sourceRoot":"","sources":["../../../../src/v2/components/code-input/CodeInput.vue"],"names":[],"mappings":"AAumBA,OAAO,EAIL,KAAK,kBAAkB,EACvB,KAAK,SAAS,EACf,MAAM,wBAAwB,CAAA;AAC/B,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,2EAA2E,CAAA;AAEnH,OAAO,EAAyC,KAAK,GAAG,EAAE,MAAM,KAAK,CAAA;AAIrE,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,mBAAmB,CAAA;;gBAcvC,MAAM,GAAG,MAAM;IAC3B,6FAA6F;iBAChF,kBAAkB,GAAG,SAAS;IAC3C,mEAAmE;WAC5D,MAAM,GAAG,MAAM,EAAE;IACxB,sCAAsC;eAC3B,OAAO;IAClB,yBAAyB;YACjB,OAAO;IACf,kDAAkD;aACzC,YAAY;IACrB,mDAAmD;WAC5C,MAAM,EAAE;IACf,2CAA2C;eAChC,MAAM,EAAE;IACnB,2CAA2C;cACjC,MAAM,GAAG,MAAM;IACzB,2CAA2C;eAChC,OAAO;IAClB,uCAAuC;kBACzB,MAAM;IACpB,8BAA8B;eACnB,OAAO;IAClB,oCAAoC;kBACtB,OAAO;IACrB,kCAAkC;kBACpB,OAAO;IACrB,qBAAqB;WACd,OAAO;IACd,2BAA2B;mBACZ,OAAO;IACtB,+BAA+B;eACpB,kBAAkB;IAC7B,uCAAuC;iBAC1B,SAAS,EAAE;IACxB,sCAAsC;uBACnB,OAAO;IAC1B,wBAAwB;mBACT,OAAO;IACtB,wCAAwC;2BACjB,OAAO;IAC9B,gCAAgC;iBACnB,OAAO;IACpB,wCAAwC;oBACxB,OAAO;IACvB,oCAAoC;iBACvB,OAAO;IACpB,mDAAmD;wBAC/B,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI;IAC3C,mDAAmD;wBAC/B,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI;;;0BAyFhB,MAAM,KAAG,IAAI;0BAiCb,MAAM,KAAG,IAAI;wBAWf,MAAM,KAAG,IAAI;;;;;;;;;;;gBAvL1B,MAAM,GAAG,MAAM;IAC3B,6FAA6F;iBAChF,kBAAkB,GAAG,SAAS;IAC3C,mEAAmE;WAC5D,MAAM,GAAG,MAAM,EAAE;IACxB,sCAAsC;eAC3B,OAAO;IAClB,yBAAyB;YACjB,OAAO;IACf,kDAAkD;aACzC,YAAY;IACrB,mDAAmD;WAC5C,MAAM,EAAE;IACf,2CAA2C;eAChC,MAAM,EAAE;IACnB,2CAA2C;cACjC,MAAM,GAAG,MAAM;IACzB,2CAA2C;eAChC,OAAO;IAClB,uCAAuC;kBACzB,MAAM;IACpB,8BAA8B;eACnB,OAAO;IAClB,oCAAoC;kBACtB,OAAO;IACrB,kCAAkC;kBACpB,OAAO;IACrB,qBAAqB;WACd,OAAO;IACd,2BAA2B;mBACZ,OAAO;IACtB,+BAA+B;eACpB,kBAAkB;IAC7B,uCAAuC;iBAC1B,SAAS,EAAE;IACxB,sCAAsC;uBACnB,OAAO;IAC1B,wBAAwB;mBACT,OAAO;IACtB,wCAAwC;2BACjB,OAAO;IAC9B,gCAAgC;iBACnB,OAAO;IACpB,wCAAwC;oBACxB,OAAO;IACvB,oCAAoC;iBACvB,OAAO;IACpB,mDAAmD;wBAC/B,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI;IAC3C,mDAAmD;wBAC/B,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI;;;;;;;;cA6kB/B,CAAC,KAAK,IAAiB,KAAK,GAAG;;WAClC,CAAC,KAAK,IAAiB,KAAK,GAAG;;AAxoB1C,wBA4rBC;AAOD,KAAK,eAAe,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG;IAChC,QAAO;QACN,MAAM,EAAE,CAAC,CAAC;KAEV,CAAA;CACD,CAAC"}
|