@scalar/api-client 2.9.1 → 2.11.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +50 -0
- package/README.md +2 -2
- package/dist/components/ImportCollection/IntegrationLogo.vue.d.ts.map +1 -1
- package/dist/components/ImportCollection/IntegrationLogo.vue.js +1 -0
- package/dist/components/Server/ServerVariablesForm.vue.d.ts.map +1 -1
- package/dist/components/Server/ServerVariablesForm.vue.js +6 -6
- package/dist/components/Sidebar/Actions/SidebarListElementForm.vue.d.ts.map +1 -1
- package/dist/components/Sidebar/Actions/SidebarListElementForm.vue.js +1 -1
- package/dist/components/Sidebar/Actions/SidebarListElementForm.vue2.js +14 -13
- package/dist/hooks/useClientConfig.d.ts +3 -3
- package/dist/layouts/App/create-api-client-app.d.ts +1 -1
- package/dist/layouts/Web/create-api-client-web.d.ts +1 -1
- package/dist/libs/create-client.d.ts +1 -1
- package/dist/libs/send-request/build-request-security.d.ts.map +1 -1
- package/dist/libs/send-request/build-request-security.js +1 -1
- package/dist/libs/send-request/create-fetch-query-params.d.ts.map +1 -1
- package/dist/store/store.d.ts +1 -1
- package/dist/style.css +1 -1
- package/dist/v2/blocks/operation-block/OperationBlock.vue.d.ts +87 -0
- package/dist/v2/blocks/operation-block/OperationBlock.vue.d.ts.map +1 -0
- package/dist/v2/blocks/operation-block/OperationBlock.vue.js +126 -0
- package/dist/v2/blocks/operation-block/OperationBlock.vue2.js +4 -0
- package/dist/v2/{features/operation → blocks/operation-block}/components/Header.vue.d.ts +10 -32
- package/dist/v2/blocks/operation-block/components/Header.vue.d.ts.map +1 -0
- package/dist/v2/{features/operation → blocks/operation-block}/components/Header.vue.js +2 -2
- package/dist/v2/blocks/operation-block/components/Header.vue2.js +91 -0
- package/dist/v2/blocks/operation-block/index.d.ts +2 -0
- package/dist/v2/blocks/operation-block/index.d.ts.map +1 -0
- package/dist/v2/blocks/operation-block/index.js +4 -0
- package/dist/v2/blocks/operation-code-sample/components/ExamplePicker.vue.d.ts.map +1 -1
- package/dist/v2/blocks/operation-code-sample/components/ExamplePicker.vue.js +11 -10
- package/dist/v2/blocks/scalar-address-bar-block/components/AddressBar.vue.d.ts +10 -29
- package/dist/v2/blocks/scalar-address-bar-block/components/AddressBar.vue.d.ts.map +1 -1
- package/dist/v2/blocks/scalar-address-bar-block/components/AddressBar.vue.js +1 -1
- package/dist/v2/blocks/scalar-address-bar-block/components/AddressBar.vue2.js +52 -53
- package/dist/v2/blocks/scalar-auth-selector-block/components/AuthSelector.vue.d.ts +15 -34
- package/dist/v2/blocks/scalar-auth-selector-block/components/AuthSelector.vue.d.ts.map +1 -1
- package/dist/v2/blocks/scalar-auth-selector-block/components/AuthSelector.vue.js +179 -5
- package/dist/v2/blocks/scalar-auth-selector-block/components/AuthSelector.vue2.js +2 -169
- package/dist/v2/blocks/scalar-auth-selector-block/components/OAuth2.vue.js +201 -198
- package/dist/v2/blocks/scalar-auth-selector-block/components/RequestAuthDataTable.vue.d.ts +17 -22
- package/dist/v2/blocks/scalar-auth-selector-block/components/RequestAuthDataTable.vue.d.ts.map +1 -1
- package/dist/v2/blocks/scalar-auth-selector-block/components/RequestAuthDataTable.vue.js +82 -5
- package/dist/v2/blocks/scalar-auth-selector-block/components/RequestAuthDataTable.vue2.js +2 -80
- package/dist/v2/blocks/scalar-auth-selector-block/components/RequestAuthDataTableInput.vue.d.ts +3 -13
- package/dist/v2/blocks/scalar-auth-selector-block/components/RequestAuthDataTableInput.vue.d.ts.map +1 -1
- package/dist/v2/blocks/scalar-auth-selector-block/components/RequestAuthDataTableInput.vue.js +16 -18
- package/dist/v2/blocks/scalar-auth-selector-block/components/RequestAuthTab.vue.js +134 -144
- package/dist/v2/blocks/scalar-auth-selector-block/helpers/oauth.d.ts +1 -1
- package/dist/v2/blocks/scalar-auth-selector-block/helpers/oauth.d.ts.map +1 -1
- package/dist/v2/blocks/scalar-auth-selector-block/helpers/oauth.js +47 -45
- package/dist/v2/blocks/scalar-auth-selector-block/helpers/security-scheme.d.ts +5 -5
- package/dist/v2/blocks/scalar-auth-selector-block/helpers/security-scheme.d.ts.map +1 -1
- package/dist/v2/blocks/scalar-auth-selector-block/helpers/security-scheme.js +7 -7
- package/dist/v2/blocks/scalar-operation-block/components/OperationBlock.vue.d.ts +7 -24
- package/dist/v2/blocks/scalar-operation-block/components/OperationBlock.vue.d.ts.map +1 -1
- package/dist/v2/blocks/scalar-operation-block/components/OperationBlock.vue.js +2 -2
- package/dist/v2/blocks/scalar-operation-block/components/OperationBlock.vue2.js +230 -208
- package/dist/v2/blocks/scalar-operation-block/components/OperationBody.vue.d.ts +33 -30
- package/dist/v2/blocks/scalar-operation-block/components/OperationBody.vue.d.ts.map +1 -1
- package/dist/v2/blocks/scalar-operation-block/components/OperationBody.vue.js +2 -2
- package/dist/v2/blocks/scalar-operation-block/components/OperationBody.vue2.js +138 -99
- package/dist/v2/blocks/scalar-operation-block/components/OperationParams.vue.d.ts +3 -5
- package/dist/v2/blocks/scalar-operation-block/components/OperationParams.vue.d.ts.map +1 -1
- package/dist/v2/blocks/scalar-operation-block/components/OperationParams.vue.js +35 -35
- package/dist/v2/blocks/scalar-operation-block/components/OperationTable.vue.d.ts +3 -5
- package/dist/v2/blocks/scalar-operation-block/components/OperationTable.vue.d.ts.map +1 -1
- package/dist/v2/blocks/scalar-operation-block/components/OperationTable.vue.js +1 -1
- package/dist/v2/blocks/scalar-operation-block/components/OperationTable.vue2.js +45 -44
- package/dist/v2/blocks/scalar-operation-block/components/OperationTableRow.vue.d.ts +2 -5
- package/dist/v2/blocks/scalar-operation-block/components/OperationTableRow.vue.d.ts.map +1 -1
- package/dist/v2/blocks/scalar-operation-block/components/OperationTableRow.vue.js +67 -65
- package/dist/v2/blocks/scalar-response-block/components/Headers.vue.d.ts +2 -2
- package/dist/v2/blocks/scalar-response-block/components/Headers.vue.d.ts.map +1 -1
- package/dist/v2/blocks/scalar-response-block/components/Headers.vue.js +9 -9
- package/dist/v2/blocks/scalar-response-block/components/ResponseBlock.vue.d.ts +2 -4
- package/dist/v2/blocks/scalar-response-block/components/ResponseBlock.vue.d.ts.map +1 -1
- package/dist/v2/blocks/scalar-response-block/components/ResponseBlock.vue.js +3 -3
- package/dist/v2/blocks/scalar-response-block/components/ResponseBlock.vue2.js +39 -38
- package/dist/v2/blocks/scalar-response-block/components/ResponseBody.vue.d.ts.map +1 -1
- package/dist/v2/blocks/scalar-response-block/components/ResponseBody.vue.js +2 -2
- package/dist/v2/blocks/scalar-response-block/components/ResponseBody.vue2.js +18 -18
- package/dist/v2/blocks/scalar-response-block/components/ResponseBodyStreaming.vue.d.ts.map +1 -1
- package/dist/v2/blocks/scalar-response-block/components/ResponseBodyStreaming.vue.js +14 -14
- package/dist/v2/blocks/scalar-response-block/components/ResponseBodyVirtual.vue.d.ts.map +1 -1
- package/dist/v2/blocks/scalar-response-block/components/ResponseBodyVirtual.vue.js +12 -12
- package/dist/v2/blocks/scalar-response-block/components/ResponseCookies.vue.d.ts.map +1 -1
- package/dist/v2/blocks/scalar-response-block/components/ResponseCookies.vue.js +13 -13
- package/dist/v2/components/data-table/DataTable.vue.d.ts.map +1 -1
- package/dist/v2/components/data-table/DataTable.vue.js +4 -4
- package/dist/v2/components/data-table/DataTableInput.vue.d.ts +5 -7
- package/dist/v2/components/data-table/DataTableInput.vue.d.ts.map +1 -1
- package/dist/v2/components/data-table/DataTableInput.vue.js +2 -2
- package/dist/v2/components/data-table/DataTableInput.vue2.js +32 -36
- package/dist/v2/components/forms/ConfirmationForm.vue.d.ts +25 -0
- package/dist/v2/components/forms/ConfirmationForm.vue.d.ts.map +1 -0
- package/dist/v2/components/forms/ConfirmationForm.vue.js +7 -0
- package/dist/v2/components/forms/ConfirmationForm.vue2.js +45 -0
- package/dist/v2/components/forms/index.d.ts +2 -0
- package/dist/v2/components/forms/index.d.ts.map +1 -0
- package/dist/v2/components/forms/index.js +4 -0
- package/dist/v2/components/layout/CollapsibleSection.vue.d.ts +43 -0
- package/dist/v2/components/layout/CollapsibleSection.vue.d.ts.map +1 -0
- package/dist/v2/components/layout/CollapsibleSection.vue.js +89 -0
- package/dist/v2/components/layout/CollapsibleSection.vue2.js +4 -0
- package/dist/v2/components/layout/ValueEmitter.vue.d.ts +23 -0
- package/dist/v2/components/layout/ValueEmitter.vue.d.ts.map +1 -0
- package/dist/v2/components/layout/ValueEmitter.vue.js +21 -0
- package/dist/v2/components/layout/ValueEmitter.vue2.js +4 -0
- package/dist/v2/components/layout/index.d.ts +2 -0
- package/dist/v2/components/layout/index.d.ts.map +1 -0
- package/dist/v2/components/layout/index.js +4 -0
- package/dist/v2/components/modals/DeleteModal.vue.d.ts +15 -0
- package/dist/v2/components/modals/DeleteModal.vue.d.ts.map +1 -0
- package/dist/v2/components/modals/DeleteModal.vue.js +31 -0
- package/dist/v2/components/modals/DeleteModal.vue2.js +4 -0
- package/dist/v2/components/modals/index.d.ts +2 -0
- package/dist/v2/components/modals/index.d.ts.map +1 -0
- package/dist/v2/components/modals/index.js +4 -0
- package/dist/v2/components/server/ServerDropdown.vue.d.ts +4 -2
- package/dist/v2/components/server/ServerDropdown.vue.d.ts.map +1 -1
- package/dist/v2/components/server/ServerDropdown.vue.js +31 -31
- package/dist/v2/components/server/ServerDropdownItem.vue.d.ts +2 -6
- package/dist/v2/components/server/ServerDropdownItem.vue.d.ts.map +1 -1
- package/dist/v2/components/server/ServerDropdownItem.vue.js +1 -1
- package/dist/v2/components/server/ServerDropdownItem.vue2.js +16 -16
- package/dist/v2/components/server/index.d.ts.map +1 -1
- package/dist/v2/components/sidebar/Sidebar.vue.d.ts +6 -2
- package/dist/v2/components/sidebar/Sidebar.vue.d.ts.map +1 -1
- package/dist/v2/components/sidebar/Sidebar.vue.js +38 -47
- package/dist/v2/features/app/App.vue.d.ts +2 -2
- package/dist/v2/features/app/App.vue.d.ts.map +1 -1
- package/dist/v2/features/app/App.vue.js +93 -65
- package/dist/v2/features/app/components/AppSidebar.vue.d.ts +7 -3
- package/dist/v2/features/app/components/AppSidebar.vue.d.ts.map +1 -1
- package/dist/v2/features/app/components/AppSidebar.vue.js +2 -2
- package/dist/v2/features/app/components/AppSidebar.vue2.js +50 -47
- package/dist/v2/features/app/helpers/routes.d.ts +5 -11
- package/dist/v2/features/app/helpers/routes.d.ts.map +1 -1
- package/dist/v2/features/app/helpers/routes.js +1 -1
- package/dist/v2/features/collection/DocumentCollection.vue.d.ts.map +1 -1
- package/dist/v2/features/collection/DocumentCollection.vue2.js +77 -72
- package/dist/v2/features/collection/WorkspaceCollection.vue2.js +15 -12
- package/dist/v2/features/collection/components/Authentication.vue.d.ts +13 -46
- package/dist/v2/features/collection/components/Authentication.vue.d.ts.map +1 -1
- package/dist/v2/features/collection/components/Authentication.vue.js +2 -2
- package/dist/v2/features/collection/components/Authentication.vue2.js +48 -37
- package/dist/v2/features/collection/components/Environment.vue2.js +3 -0
- package/dist/v2/features/collection/components/Form.vue.d.ts +3 -7
- package/dist/v2/features/collection/components/Form.vue.d.ts.map +1 -1
- package/dist/v2/features/collection/components/Form.vue.js +28 -33
- package/dist/v2/features/collection/components/Overview.vue2.js +24 -21
- package/dist/v2/features/collection/components/Servers.vue.d.ts +13 -31
- package/dist/v2/features/collection/components/Servers.vue.d.ts.map +1 -1
- package/dist/v2/features/collection/components/Servers.vue2.js +103 -82
- package/dist/v2/features/environments/components/EnvironmentVariablesTable.vue.d.ts.map +1 -1
- package/dist/v2/features/environments/components/EnvironmentVariablesTable.vue.js +3 -3
- package/dist/v2/features/modal/Modal.vue.d.ts.map +1 -1
- package/dist/v2/features/modal/Modal.vue.js +3 -3
- package/dist/v2/features/modal/Modal.vue2.js +40 -32
- package/dist/v2/features/operation/Operation.vue.d.ts +10 -77
- package/dist/v2/features/operation/Operation.vue.d.ts.map +1 -1
- package/dist/v2/features/operation/Operation.vue.js +50 -114
- package/dist/v2/hooks/use-sidebar-state.d.ts +47 -0
- package/dist/v2/hooks/use-sidebar-state.d.ts.map +1 -0
- package/dist/v2/hooks/use-sidebar-state.js +112 -0
- package/dist/v2/hooks/use-workspace-client-events.d.ts.map +1 -1
- package/dist/v2/hooks/use-workspace-client-events.js +100 -19
- package/dist/views/Request/ResponseSection/ResponseEmpty.vue2.js +1 -1
- package/dist/views/Request/libs/oauth2.d.ts.map +1 -1
- package/dist/views/Request/libs/oauth2.js +8 -6
- package/package.json +17 -17
- package/dist/components/CodeInput/CodeInput.test.d.ts +0 -2
- package/dist/components/CodeInput/CodeInput.test.d.ts.map +0 -1
- package/dist/components/ImportCollection/utils/get-openapi-version.test.d.ts +0 -2
- package/dist/components/ImportCollection/utils/get-openapi-version.test.d.ts.map +0 -1
- package/dist/components/ImportCollection/utils/is-document.test.d.ts +0 -2
- package/dist/components/ImportCollection/utils/is-document.test.d.ts.map +0 -1
- package/dist/components/ImportCollection/utils/is-url.test.d.ts +0 -2
- package/dist/components/ImportCollection/utils/is-url.test.d.ts.map +0 -1
- package/dist/components/Search/useSearch.test.d.ts +0 -2
- package/dist/components/Search/useSearch.test.d.ts.map +0 -1
- package/dist/components/Server/ServerDropdown.test.d.ts +0 -2
- package/dist/components/Server/ServerDropdown.test.d.ts.map +0 -1
- package/dist/components/ViewLayout/ViewLayoutSection.test.d.ts +0 -2
- package/dist/components/ViewLayout/ViewLayoutSection.test.d.ts.map +0 -1
- package/dist/hooks/useResponseBody.test.d.ts +0 -2
- package/dist/hooks/useResponseBody.test.d.ts.map +0 -1
- package/dist/hooks/useSidebar.test.d.ts +0 -2
- package/dist/hooks/useSidebar.test.d.ts.map +0 -1
- package/dist/layouts/App/create-api-client-app.test.d.ts +0 -2
- package/dist/layouts/App/create-api-client-app.test.d.ts.map +0 -1
- package/dist/layouts/Modal/create-api-client-modal.test.d.ts +0 -2
- package/dist/layouts/Modal/create-api-client-modal.test.d.ts.map +0 -1
- package/dist/layouts/Web/create-api-client-web.test.d.ts +0 -2
- package/dist/layouts/Web/create-api-client-web.test.d.ts.map +0 -1
- package/dist/libs/create-client.test.d.ts +0 -2
- package/dist/libs/create-client.test.d.ts.map +0 -1
- package/dist/libs/env-helpers.test.d.ts +0 -2
- package/dist/libs/env-helpers.test.d.ts.map +0 -1
- package/dist/libs/event-bus.test.d.ts +0 -2
- package/dist/libs/event-bus.test.d.ts.map +0 -1
- package/dist/libs/extractAttachmentFilename.test.d.ts +0 -2
- package/dist/libs/extractAttachmentFilename.test.d.ts.map +0 -1
- package/dist/libs/find-request.test.d.ts +0 -2
- package/dist/libs/find-request.test.d.ts.map +0 -1
- package/dist/libs/get-request-uid-by-path-method.test.d.ts +0 -2
- package/dist/libs/get-request-uid-by-path-method.test.d.ts.map +0 -1
- package/dist/libs/hot-keys.test.d.ts +0 -2
- package/dist/libs/hot-keys.test.d.ts.map +0 -1
- package/dist/libs/importers/curl.test.d.ts +0 -2
- package/dist/libs/importers/curl.test.d.ts.map +0 -1
- package/dist/libs/normalize-headers.test.d.ts +0 -2
- package/dist/libs/normalize-headers.test.d.ts.map +0 -1
- package/dist/libs/parse-curl.test.d.ts +0 -2
- package/dist/libs/parse-curl.test.d.ts.map +0 -1
- package/dist/libs/send-request/build-request-security.test.d.ts +0 -2
- package/dist/libs/send-request/build-request-security.test.d.ts.map +0 -1
- package/dist/libs/send-request/create-fetch-auth.test.d.ts +0 -2
- package/dist/libs/send-request/create-fetch-auth.test.d.ts.map +0 -1
- package/dist/libs/send-request/create-fetch-body.test.d.ts +0 -2
- package/dist/libs/send-request/create-fetch-body.test.d.ts.map +0 -1
- package/dist/libs/send-request/create-fetch-headers.test.d.ts +0 -2
- package/dist/libs/send-request/create-fetch-headers.test.d.ts.map +0 -1
- package/dist/libs/send-request/create-fetch-query-params.test.d.ts +0 -2
- package/dist/libs/send-request/create-fetch-query-params.test.d.ts.map +0 -1
- package/dist/libs/send-request/create-request-operation.test.d.ts +0 -191
- package/dist/libs/send-request/create-request-operation.test.d.ts.map +0 -1
- package/dist/libs/send-request/decode-buffer.test.d.ts +0 -2
- package/dist/libs/send-request/decode-buffer.test.d.ts.map +0 -1
- package/dist/libs/send-request/set-request-cookies.test.d.ts +0 -2
- package/dist/libs/send-request/set-request-cookies.test.d.ts.map +0 -1
- package/dist/libs/string-template.test.d.ts +0 -2
- package/dist/libs/string-template.test.d.ts.map +0 -1
- package/dist/libs/validate-parameters.test.d.ts +0 -2
- package/dist/libs/validate-parameters.test.d.ts.map +0 -1
- package/dist/plugins/plugin-manager.test.d.ts +0 -2
- package/dist/plugins/plugin-manager.test.d.ts.map +0 -1
- package/dist/routes.test.d.ts +0 -2
- package/dist/routes.test.d.ts.map +0 -1
- package/dist/store/collections.test.d.ts +0 -2
- package/dist/store/collections.test.d.ts.map +0 -1
- package/dist/store/request.test.d.ts +0 -2
- package/dist/store/request.test.d.ts.map +0 -1
- package/dist/v2/blocks/operation-code-sample/components/ExamplePicker.test.d.ts +0 -2
- package/dist/v2/blocks/operation-code-sample/components/ExamplePicker.test.d.ts.map +0 -1
- package/dist/v2/blocks/operation-code-sample/components/HttpMethod.test.d.ts +0 -2
- package/dist/v2/blocks/operation-code-sample/components/HttpMethod.test.d.ts.map +0 -1
- package/dist/v2/blocks/operation-code-sample/components/OperationCodeSample.test.d.ts +0 -2
- package/dist/v2/blocks/operation-code-sample/components/OperationCodeSample.test.d.ts.map +0 -1
- package/dist/v2/blocks/operation-code-sample/helpers/find-client.test.d.ts +0 -2
- package/dist/v2/blocks/operation-code-sample/helpers/find-client.test.d.ts.map +0 -1
- package/dist/v2/blocks/operation-code-sample/helpers/generate-client-options.test.d.ts +0 -2
- package/dist/v2/blocks/operation-code-sample/helpers/generate-client-options.test.d.ts.map +0 -1
- package/dist/v2/blocks/operation-code-sample/helpers/generate-code-snippet.test.d.ts +0 -2
- package/dist/v2/blocks/operation-code-sample/helpers/generate-code-snippet.test.d.ts.map +0 -1
- package/dist/v2/blocks/operation-code-sample/helpers/get-example-from-schema.test.d.ts +0 -2
- package/dist/v2/blocks/operation-code-sample/helpers/get-example-from-schema.test.d.ts.map +0 -1
- package/dist/v2/blocks/operation-code-sample/helpers/get-resolved-ref-deep.test.d.ts +0 -2
- package/dist/v2/blocks/operation-code-sample/helpers/get-resolved-ref-deep.test.d.ts.map +0 -1
- package/dist/v2/blocks/operation-code-sample/helpers/get-secrets.test.d.ts +0 -2
- package/dist/v2/blocks/operation-code-sample/helpers/get-secrets.test.d.ts.map +0 -1
- package/dist/v2/blocks/operation-code-sample/helpers/operation-to-har/get-example-value.test.d.ts +0 -2
- package/dist/v2/blocks/operation-code-sample/helpers/operation-to-har/get-example-value.test.d.ts.map +0 -1
- package/dist/v2/blocks/operation-code-sample/helpers/operation-to-har/operation-to-har.test.d.ts +0 -2
- package/dist/v2/blocks/operation-code-sample/helpers/operation-to-har/operation-to-har.test.d.ts.map +0 -1
- package/dist/v2/blocks/operation-code-sample/helpers/operation-to-har/process-body.test.d.ts +0 -2
- package/dist/v2/blocks/operation-code-sample/helpers/operation-to-har/process-body.test.d.ts.map +0 -1
- package/dist/v2/blocks/operation-code-sample/helpers/operation-to-har/process-parameters.test.d.ts +0 -2
- package/dist/v2/blocks/operation-code-sample/helpers/operation-to-har/process-parameters.test.d.ts.map +0 -1
- package/dist/v2/blocks/operation-code-sample/helpers/operation-to-har/process-security-schemes.test.d.ts +0 -2
- package/dist/v2/blocks/operation-code-sample/helpers/operation-to-har/process-security-schemes.test.d.ts.map +0 -1
- package/dist/v2/blocks/operation-code-sample/helpers/operation-to-har/process-server-url.test.d.ts +0 -2
- package/dist/v2/blocks/operation-code-sample/helpers/operation-to-har/process-server-url.test.d.ts.map +0 -1
- package/dist/v2/blocks/scalar-address-bar-block/components/AddressBar.test.d.ts +0 -2
- package/dist/v2/blocks/scalar-address-bar-block/components/AddressBar.test.d.ts.map +0 -1
- package/dist/v2/blocks/scalar-address-bar-block/components/AddressBarHistory.test.d.ts +0 -2
- package/dist/v2/blocks/scalar-address-bar-block/components/AddressBarHistory.test.d.ts.map +0 -1
- package/dist/v2/blocks/scalar-auth-selector-block/components/AuthSelector.test.d.ts +0 -2
- package/dist/v2/blocks/scalar-auth-selector-block/components/AuthSelector.test.d.ts.map +0 -1
- package/dist/v2/blocks/scalar-auth-selector-block/components/DeleteRequestAuthModal.test.d.ts +0 -2
- package/dist/v2/blocks/scalar-auth-selector-block/components/DeleteRequestAuthModal.test.d.ts.map +0 -1
- package/dist/v2/blocks/scalar-auth-selector-block/components/OAuth2.test.d.ts +0 -2
- package/dist/v2/blocks/scalar-auth-selector-block/components/OAuth2.test.d.ts.map +0 -1
- package/dist/v2/blocks/scalar-auth-selector-block/components/OAuth2.vue.d.ts +0 -45
- package/dist/v2/blocks/scalar-auth-selector-block/components/OAuth2.vue.d.ts.map +0 -1
- package/dist/v2/blocks/scalar-auth-selector-block/components/OAuthScopesInput.test.d.ts +0 -2
- package/dist/v2/blocks/scalar-auth-selector-block/components/OAuthScopesInput.test.d.ts.map +0 -1
- package/dist/v2/blocks/scalar-auth-selector-block/components/RequestAuthDataTable.test.d.ts +0 -2
- package/dist/v2/blocks/scalar-auth-selector-block/components/RequestAuthDataTable.test.d.ts.map +0 -1
- package/dist/v2/blocks/scalar-auth-selector-block/components/RequestAuthTab.test.d.ts +0 -2
- package/dist/v2/blocks/scalar-auth-selector-block/components/RequestAuthTab.test.d.ts.map +0 -1
- package/dist/v2/blocks/scalar-auth-selector-block/components/RequestAuthTab.vue.d.ts +0 -29
- package/dist/v2/blocks/scalar-auth-selector-block/components/RequestAuthTab.vue.d.ts.map +0 -1
- package/dist/v2/blocks/scalar-auth-selector-block/event-types.d.ts +0 -29
- package/dist/v2/blocks/scalar-auth-selector-block/event-types.d.ts.map +0 -1
- package/dist/v2/blocks/scalar-auth-selector-block/helpers/oauth.test.d.ts +0 -2
- package/dist/v2/blocks/scalar-auth-selector-block/helpers/oauth.test.d.ts.map +0 -1
- package/dist/v2/blocks/scalar-auth-selector-block/helpers/security-scheme.test.d.ts +0 -2
- package/dist/v2/blocks/scalar-auth-selector-block/helpers/security-scheme.test.d.ts.map +0 -1
- package/dist/v2/blocks/scalar-operation-block/components/OperationBlock.test.d.ts +0 -2
- package/dist/v2/blocks/scalar-operation-block/components/OperationBlock.test.d.ts.map +0 -1
- package/dist/v2/blocks/scalar-operation-block/components/OperationParams.test.d.ts +0 -2
- package/dist/v2/blocks/scalar-operation-block/components/OperationParams.test.d.ts.map +0 -1
- package/dist/v2/blocks/scalar-operation-block/components/OperationTable.test.d.ts +0 -2
- package/dist/v2/blocks/scalar-operation-block/components/OperationTable.test.d.ts.map +0 -1
- package/dist/v2/blocks/scalar-operation-block/components/OperationTableRow.test.d.ts +0 -2
- package/dist/v2/blocks/scalar-operation-block/components/OperationTableRow.test.d.ts.map +0 -1
- package/dist/v2/blocks/scalar-operation-block/components/OperationTableTooltip.test.d.ts +0 -2
- package/dist/v2/blocks/scalar-operation-block/components/OperationTableTooltip.test.d.ts.map +0 -1
- package/dist/v2/blocks/scalar-operation-block/helpers/file.test.d.ts +0 -2
- package/dist/v2/blocks/scalar-operation-block/helpers/file.test.d.ts.map +0 -1
- package/dist/v2/blocks/scalar-operation-block/helpers/get-parameter-content.test.d.ts +0 -2
- package/dist/v2/blocks/scalar-operation-block/helpers/get-parameter-content.test.d.ts.map +0 -1
- package/dist/v2/blocks/scalar-operation-block/helpers/get-parameter-example.test.d.ts +0 -2
- package/dist/v2/blocks/scalar-operation-block/helpers/get-parameter-example.test.d.ts.map +0 -1
- package/dist/v2/blocks/scalar-operation-block/helpers/get-parameter-schema.test.d.ts +0 -2
- package/dist/v2/blocks/scalar-operation-block/helpers/get-parameter-schema.test.d.ts.map +0 -1
- package/dist/v2/blocks/scalar-operation-block/helpers/group-by.test.d.ts +0 -2
- package/dist/v2/blocks/scalar-operation-block/helpers/group-by.test.d.ts.map +0 -1
- package/dist/v2/blocks/scalar-operation-block/helpers/validate-parameter.test.d.ts +0 -2
- package/dist/v2/blocks/scalar-operation-block/helpers/validate-parameter.test.d.ts.map +0 -1
- package/dist/v2/blocks/scalar-response-block/components/Headers.test.d.ts +0 -2
- package/dist/v2/blocks/scalar-response-block/components/Headers.test.d.ts.map +0 -1
- package/dist/v2/blocks/scalar-response-block/components/ResponseBlock.test.d.ts +0 -2
- package/dist/v2/blocks/scalar-response-block/components/ResponseBlock.test.d.ts.map +0 -1
- package/dist/v2/blocks/scalar-response-block/components/ResponseBodyDownload.test.d.ts +0 -2
- package/dist/v2/blocks/scalar-response-block/components/ResponseBodyDownload.test.d.ts.map +0 -1
- package/dist/v2/blocks/scalar-response-block/components/ResponseBodyPreview.test.d.ts +0 -2
- package/dist/v2/blocks/scalar-response-block/components/ResponseBodyPreview.test.d.ts.map +0 -1
- package/dist/v2/blocks/scalar-response-block/components/ResponseBodyStreaming.test.d.ts +0 -2
- package/dist/v2/blocks/scalar-response-block/components/ResponseBodyStreaming.test.d.ts.map +0 -1
- package/dist/v2/blocks/scalar-response-block/components/ResponseCookies.test.d.ts +0 -2
- package/dist/v2/blocks/scalar-response-block/components/ResponseCookies.test.d.ts.map +0 -1
- package/dist/v2/blocks/scalar-response-block/helpers/extract-filename.test.d.ts +0 -2
- package/dist/v2/blocks/scalar-response-block/helpers/extract-filename.test.d.ts.map +0 -1
- package/dist/v2/blocks/scalar-response-block/helpers/get-content-length.test.d.ts +0 -2
- package/dist/v2/blocks/scalar-response-block/helpers/get-content-length.test.d.ts.map +0 -1
- package/dist/v2/blocks/scalar-response-block/helpers/media-types.test.d.ts +0 -2
- package/dist/v2/blocks/scalar-response-block/helpers/media-types.test.d.ts.map +0 -1
- package/dist/v2/blocks/scalar-response-block/helpers/process-response-body.test.d.ts +0 -2
- package/dist/v2/blocks/scalar-response-block/helpers/process-response-body.test.d.ts.map +0 -1
- package/dist/v2/components/code-input/CodeInput.test.d.ts +0 -2
- package/dist/v2/components/code-input/CodeInput.test.d.ts.map +0 -1
- package/dist/v2/components/code-input/code-variable-widget.test.d.ts +0 -2
- package/dist/v2/components/code-input/code-variable-widget.test.d.ts.map +0 -1
- package/dist/v2/components/server/ServerDropdown.test.d.ts +0 -2
- package/dist/v2/components/server/ServerDropdown.test.d.ts.map +0 -1
- package/dist/v2/components/server/ServerDropdownItem.test.d.ts +0 -2
- package/dist/v2/components/server/ServerDropdownItem.test.d.ts.map +0 -1
- package/dist/v2/features/app/App.test.d.ts +0 -2
- package/dist/v2/features/app/App.test.d.ts.map +0 -1
- package/dist/v2/features/collection/DocumentCollection.test.d.ts +0 -2
- package/dist/v2/features/collection/DocumentCollection.test.d.ts.map +0 -1
- package/dist/v2/features/collection/components/Authentication.test.d.ts +0 -2
- package/dist/v2/features/collection/components/Authentication.test.d.ts.map +0 -1
- package/dist/v2/features/collection/components/Environment.test.d.ts +0 -2
- package/dist/v2/features/collection/components/Environment.test.d.ts.map +0 -1
- package/dist/v2/features/collection/components/LabelInput.test.d.ts +0 -2
- package/dist/v2/features/collection/components/LabelInput.test.d.ts.map +0 -1
- package/dist/v2/features/collection/components/Overview.test.d.ts +0 -2
- package/dist/v2/features/collection/components/Overview.test.d.ts.map +0 -1
- package/dist/v2/features/collection/components/Servers.test.d.ts +0 -2
- package/dist/v2/features/collection/components/Servers.test.d.ts.map +0 -1
- package/dist/v2/features/collection/components/Settings.test.d.ts +0 -2
- package/dist/v2/features/collection/components/Settings.test.d.ts.map +0 -1
- package/dist/v2/features/collection/components/Tabs.test.d.ts +0 -2
- package/dist/v2/features/collection/components/Tabs.test.d.ts.map +0 -1
- package/dist/v2/features/environments/EnvironmentsList.test.d.ts +0 -2
- package/dist/v2/features/environments/EnvironmentsList.test.d.ts.map +0 -1
- package/dist/v2/features/environments/components/Environment.test.d.ts +0 -2
- package/dist/v2/features/environments/components/Environment.test.d.ts.map +0 -1
- package/dist/v2/features/environments/components/EnvironmentColors.test.d.ts +0 -2
- package/dist/v2/features/environments/components/EnvironmentColors.test.d.ts.map +0 -1
- package/dist/v2/features/environments/components/EnvironmentVariablesTable.test.d.ts +0 -2
- package/dist/v2/features/environments/components/EnvironmentVariablesTable.test.d.ts.map +0 -1
- package/dist/v2/features/global-cookies/components/CookiesTable.test.d.ts +0 -2
- package/dist/v2/features/global-cookies/components/CookiesTable.test.d.ts.map +0 -1
- package/dist/v2/features/global-cookies/components/GlobalCookies.test.d.ts +0 -2
- package/dist/v2/features/global-cookies/components/GlobalCookies.test.d.ts.map +0 -1
- package/dist/v2/features/operation/Operation.test.d.ts +0 -2
- package/dist/v2/features/operation/Operation.test.d.ts.map +0 -1
- package/dist/v2/features/operation/components/Header.test.d.ts +0 -2
- package/dist/v2/features/operation/components/Header.test.d.ts.map +0 -1
- package/dist/v2/features/operation/components/Header.vue.d.ts.map +0 -1
- package/dist/v2/features/operation/components/Header.vue2.js +0 -97
- package/dist/v2/features/settings/Settings.test.d.ts +0 -2
- package/dist/v2/features/settings/Settings.test.d.ts.map +0 -1
- package/dist/v2/hooks/use-document-watcher.test.d.ts +0 -2
- package/dist/v2/hooks/use-document-watcher.test.d.ts.map +0 -1
- package/dist/views/Components/CodeSnippet/CodeSnippet.test.d.ts +0 -2
- package/dist/views/Components/CodeSnippet/CodeSnippet.test.d.ts.map +0 -1
- package/dist/views/Components/CodeSnippet/helpers/convert-to-har-request.test.d.ts +0 -2
- package/dist/views/Components/CodeSnippet/helpers/convert-to-har-request.test.d.ts.map +0 -1
- package/dist/views/Components/CodeSnippet/helpers/get-har-request.test.d.ts +0 -2
- package/dist/views/Components/CodeSnippet/helpers/get-har-request.test.d.ts.map +0 -1
- package/dist/views/Components/CodeSnippet/helpers/get-snippet.test.d.ts +0 -2
- package/dist/views/Components/CodeSnippet/helpers/get-snippet.test.d.ts.map +0 -1
- package/dist/views/Request/RequestRoot.test.d.ts +0 -2
- package/dist/views/Request/RequestRoot.test.d.ts.map +0 -1
- package/dist/views/Request/RequestSection/RequestAuth/RequestAuth.test.d.ts +0 -2
- package/dist/views/Request/RequestSection/RequestAuth/RequestAuth.test.d.ts.map +0 -1
- package/dist/views/Request/RequestSection/RequestAuth/helpers/restore-auth-from-local-storage.test.d.ts +0 -2
- package/dist/views/Request/RequestSection/RequestAuth/helpers/restore-auth-from-local-storage.test.d.ts.map +0 -1
- package/dist/views/Request/RequestSection/RequestBody.test.d.ts +0 -2
- package/dist/views/Request/RequestSection/RequestBody.test.d.ts.map +0 -1
- package/dist/views/Request/RequestSection/RequestCodeExample.test.d.ts +0 -2
- package/dist/views/Request/RequestSection/RequestCodeExample.test.d.ts.map +0 -1
- package/dist/views/Request/RequestSection/RequestSection.test.d.ts +0 -2
- package/dist/views/Request/RequestSection/RequestSection.test.d.ts.map +0 -1
- package/dist/views/Request/RequestSection/helpers/filter-security-requirements.test.d.ts +0 -2
- package/dist/views/Request/RequestSection/helpers/filter-security-requirements.test.d.ts.map +0 -1
- package/dist/views/Request/RequestSection/helpers/getting-started.test.d.ts +0 -2
- package/dist/views/Request/RequestSection/helpers/getting-started.test.d.ts.map +0 -1
- package/dist/views/Request/RequestSection/helpers/update-scheme.test.d.ts +0 -2
- package/dist/views/Request/RequestSection/helpers/update-scheme.test.d.ts.map +0 -1
- package/dist/views/Request/RequestSubpageHeader.test.d.ts +0 -2
- package/dist/views/Request/RequestSubpageHeader.test.d.ts.map +0 -1
- package/dist/views/Request/ResponseSection/ResponseBodyVirtual.test.d.ts +0 -2
- package/dist/views/Request/ResponseSection/ResponseBodyVirtual.test.d.ts.map +0 -1
- package/dist/views/Request/ResponseSection/ResponseSection.test.d.ts +0 -2
- package/dist/views/Request/ResponseSection/ResponseSection.test.d.ts.map +0 -1
- package/dist/views/Request/consts/mediaTypes.test.d.ts +0 -2
- package/dist/views/Request/consts/mediaTypes.test.d.ts.map +0 -1
- package/dist/views/Request/libs/auth.test.d.ts +0 -2
- package/dist/views/Request/libs/auth.test.d.ts.map +0 -1
- package/dist/views/Request/libs/oauth2.test.d.ts +0 -2
- package/dist/views/Request/libs/oauth2.test.d.ts.map +0 -1
- package/dist/views/Request/libs/request.test.d.ts +0 -2
- package/dist/views/Request/libs/request.test.d.ts.map +0 -1
- package/dist/views/Request/libs/watch-mode.test.d.ts +0 -2
- package/dist/views/Request/libs/watch-mode.test.d.ts.map +0 -1
- package/dist/vitest.setup.d.ts +0 -34
- package/dist/vitest.setup.d.ts.map +0 -1
|
@@ -1,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
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ResponseBody.vue.d.ts","sourceRoot":"","sources":["../../../../../src/v2/blocks/scalar-response-block/components/ResponseBody.vue"],"names":[],"mappings":"AAuGA,KAAK,WAAW,GAAG;IACjB,KAAK,EAAE,MAAM,CAAA;IACb,MAAM,EAAE,QAAQ,GAAG,WAAW,CAAA;IAC9B,IAAI,EAAE,OAAO,CAAA;IACb,OAAO,EAAE;QAAE,IAAI,EAAE,MAAM,CAAC;QAAC,KAAK,EAAE,MAAM,CAAA;KAAE,EAAE,CAAA;CAC3C,CAAC;;
|
|
1
|
+
{"version":3,"file":"ResponseBody.vue.d.ts","sourceRoot":"","sources":["../../../../../src/v2/blocks/scalar-response-block/components/ResponseBody.vue"],"names":[],"mappings":"AAuGA,KAAK,WAAW,GAAG;IACjB,KAAK,EAAE,MAAM,CAAA;IACb,MAAM,EAAE,QAAQ,GAAG,WAAW,CAAA;IAC9B,IAAI,EAAE,OAAO,CAAA;IACb,OAAO,EAAE;QAAE,IAAI,EAAE,MAAM,CAAC;QAAC,KAAK,EAAE,MAAM,CAAA;KAAE,EAAE,CAAA;CAC3C,CAAC;;AAwLF,wBAMG"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import o from "./ResponseBody.vue2.js";
|
|
2
2
|
/* empty css */
|
|
3
3
|
import t from "../../../../_virtual/_plugin-vue_export-helper.js";
|
|
4
|
-
const
|
|
4
|
+
const s = /* @__PURE__ */ t(o, [["__scopeId", "data-v-4f20aa18"]]);
|
|
5
5
|
export {
|
|
6
|
-
|
|
6
|
+
s as default
|
|
7
7
|
};
|
|
@@ -1,5 +1,4 @@
|
|
|
1
|
-
import { defineComponent as w, ref as g, computed as l, createBlock as n, openBlock as t,
|
|
2
|
-
import _ from "../../../../components/ViewLayout/ViewLayoutCollapse.vue.js";
|
|
1
|
+
import { defineComponent as w, ref as g, computed as l, createBlock as n, openBlock as t, unref as x, createSlots as B, withCtx as u, createElementBlock as k, createCommentVNode as r, createElementVNode as p, toDisplayString as c, createTextVNode as v, createVNode as _ } from "vue";
|
|
3
2
|
import { processResponseBody as R } from "../helpers/process-response-body.js";
|
|
4
3
|
import { getMediaTypeConfig as T } from "../helpers/media-types.js";
|
|
5
4
|
import V from "./ResponseBodyDownload.vue.js";
|
|
@@ -7,10 +6,11 @@ import U from "./ResponseBodyInfo.vue.js";
|
|
|
7
6
|
import b from "./ResponseBodyPreview.vue.js";
|
|
8
7
|
import C from "./ResponseBodyRaw.vue.js";
|
|
9
8
|
import N from "./ResponseBodyToggle.vue.js";
|
|
9
|
+
import S from "../../../components/layout/CollapsibleSection.vue.js";
|
|
10
10
|
const $ = {
|
|
11
11
|
key: 0,
|
|
12
12
|
class: "bg-b-1 flex max-h-[calc(100%-32px)] flex-col overflow-hidden"
|
|
13
|
-
}, E = { class: "box-content flex min-h-8 items-center justify-between border-y px-3" }, P = { class: "text-xxs font-code leading-3" },
|
|
13
|
+
}, E = { class: "box-content flex min-h-8 items-center justify-between border-y px-3" }, P = { class: "text-xxs font-code leading-3" }, H = /* @__PURE__ */ w({
|
|
14
14
|
__name: "ResponseBody",
|
|
15
15
|
props: {
|
|
16
16
|
title: {},
|
|
@@ -29,21 +29,21 @@ const $ = {
|
|
|
29
29
|
), a = l(
|
|
30
30
|
() => T(e.value.mimeType?.essence ?? "")
|
|
31
31
|
);
|
|
32
|
-
return (o,
|
|
32
|
+
return (o, i) => (t(), n(x(S), {
|
|
33
33
|
class: "max-h-content overflow-y-hidden",
|
|
34
|
-
|
|
35
|
-
},
|
|
36
|
-
title:
|
|
37
|
-
c(
|
|
34
|
+
isStatic: o.layout === "reference"
|
|
35
|
+
}, B({
|
|
36
|
+
title: u(() => [
|
|
37
|
+
v(c(o.title), 1)
|
|
38
38
|
]),
|
|
39
|
-
default:
|
|
40
|
-
o.data ? (t(),
|
|
39
|
+
default: u(() => [
|
|
40
|
+
o.data ? (t(), k("div", $, [
|
|
41
41
|
p("div", E, [
|
|
42
|
-
p("span", P,
|
|
42
|
+
p("span", P, c(e.value.mimeType?.essence), 1),
|
|
43
43
|
m.value ? (t(), n(N, {
|
|
44
44
|
key: 0,
|
|
45
45
|
modelValue: s.value,
|
|
46
|
-
"onUpdate:modelValue":
|
|
46
|
+
"onUpdate:modelValue": i[0] || (i[0] = (h) => s.value = h)
|
|
47
47
|
}, null, 8, ["modelValue"])) : r("", !0)
|
|
48
48
|
]),
|
|
49
49
|
a.value?.raw && y.value ? (t(), n(C, {
|
|
@@ -59,8 +59,8 @@ const $ = {
|
|
|
59
59
|
type: e.value.mimeType?.essence ?? ""
|
|
60
60
|
}, null, 8, ["alpha", "mode", "src", "type"])) : r("", !0),
|
|
61
61
|
!a.value?.raw && !a.value?.preview ? (t(), n(U, { key: 2 }, {
|
|
62
|
-
default:
|
|
63
|
-
|
|
62
|
+
default: u(() => [...i[1] || (i[1] = [
|
|
63
|
+
v(" Binary file ", -1)
|
|
64
64
|
])]),
|
|
65
65
|
_: 1
|
|
66
66
|
})) : r("", !0)
|
|
@@ -70,8 +70,8 @@ const $ = {
|
|
|
70
70
|
}, [
|
|
71
71
|
o.data && e.value.dataUrl ? {
|
|
72
72
|
name: "actions",
|
|
73
|
-
fn:
|
|
74
|
-
|
|
73
|
+
fn: u(() => [
|
|
74
|
+
_(V, {
|
|
75
75
|
filename: e.value.attachmentFilename,
|
|
76
76
|
href: e.value.dataUrl,
|
|
77
77
|
type: e.value.mimeType?.essence
|
|
@@ -79,9 +79,9 @@ const $ = {
|
|
|
79
79
|
]),
|
|
80
80
|
key: "0"
|
|
81
81
|
} : void 0
|
|
82
|
-
]), 1032, ["
|
|
82
|
+
]), 1032, ["isStatic"]));
|
|
83
83
|
}
|
|
84
84
|
});
|
|
85
85
|
export {
|
|
86
|
-
|
|
86
|
+
H as default
|
|
87
87
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ResponseBodyStreaming.vue.d.ts","sourceRoot":"","sources":["../../../../../src/v2/blocks/scalar-response-block/components/ResponseBodyStreaming.vue"],"names":[],"mappings":"AA+GA,KAAK,WAAW,GAAG;IACjB,MAAM,EAAE,2BAA2B,CAAC,UAAU,CAAC,CAAA;CAChD,CAAC;;
|
|
1
|
+
{"version":3,"file":"ResponseBodyStreaming.vue.d.ts","sourceRoot":"","sources":["../../../../../src/v2/blocks/scalar-response-block/components/ResponseBodyStreaming.vue"],"names":[],"mappings":"AA+GA,KAAK,WAAW,GAAG;IACjB,MAAM,EAAE,2BAA2B,CAAC,UAAU,CAAC,CAAA;CAChD,CAAC;;AAkLF,wBAMG"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { defineComponent as y, ref as
|
|
1
|
+
import { defineComponent as y, ref as d, watch as _, nextTick as w, onMounted as h, onBeforeUnmount as k, createBlock as L, openBlock as s, unref as l, withCtx as p, createElementVNode as i, createElementBlock as c, createCommentVNode as u, toDisplayString as g, createVNode as B } from "vue";
|
|
2
2
|
import { useLoadingState as S, ScalarLoading as b } from "@scalar/components";
|
|
3
|
-
import C from "
|
|
3
|
+
import C from "../../../components/layout/CollapsibleSection.vue.js";
|
|
4
4
|
const T = { class: "flex w-full items-center justify-between" }, E = {
|
|
5
5
|
key: 0,
|
|
6
6
|
class: "mr-2 flex items-center gap-2"
|
|
@@ -16,7 +16,7 @@ const T = { class: "flex w-full items-center justify-between" }, E = {
|
|
|
16
16
|
reader: {}
|
|
17
17
|
},
|
|
18
18
|
setup(f) {
|
|
19
|
-
const e = S(), o =
|
|
19
|
+
const e = S(), o = d(""), a = d(null), m = new TextDecoder(), r = d(null), v = () => {
|
|
20
20
|
r.value && (r.value.scrollTop = r.value.scrollHeight);
|
|
21
21
|
};
|
|
22
22
|
_(o, () => {
|
|
@@ -42,27 +42,27 @@ const T = { class: "flex w-full items-center justify-between" }, E = {
|
|
|
42
42
|
e.startLoading(), x(), a.value = null;
|
|
43
43
|
}), k(() => {
|
|
44
44
|
f.reader.cancel(), e.stopLoading();
|
|
45
|
-
}), (n, t) => (s(), L(C, { class: "max-h-content overflow-y-hidden" }, {
|
|
45
|
+
}), (n, t) => (s(), L(l(C), { class: "max-h-content overflow-y-hidden" }, {
|
|
46
46
|
title: p(() => [
|
|
47
|
-
|
|
48
|
-
t[1] || (t[1] =
|
|
49
|
-
|
|
50
|
-
B(
|
|
51
|
-
loadingState:
|
|
47
|
+
i("div", T, [
|
|
48
|
+
t[1] || (t[1] = i("div", null, "Body", -1)),
|
|
49
|
+
l(e).isLoading ? (s(), c("div", E, [
|
|
50
|
+
B(l(b), {
|
|
51
|
+
loadingState: l(e),
|
|
52
52
|
size: "xs"
|
|
53
53
|
}, null, 8, ["loadingState"]),
|
|
54
|
-
t[0] || (t[0] =
|
|
55
|
-
])) :
|
|
54
|
+
t[0] || (t[0] = i("span", { class: "text-c-2" }, " Listening… ", -1))
|
|
55
|
+
])) : u("", !0)
|
|
56
56
|
])
|
|
57
57
|
]),
|
|
58
58
|
default: p(() => [
|
|
59
|
-
|
|
59
|
+
i("div", {
|
|
60
60
|
ref_key: "contentContainer",
|
|
61
61
|
ref: r,
|
|
62
62
|
class: "text-xxs font-code h-full overflow-auto leading-2 whitespace-pre-wrap"
|
|
63
63
|
}, [
|
|
64
|
-
a.value ? (s(),
|
|
65
|
-
o.value ? (s(),
|
|
64
|
+
a.value ? (s(), c("div", N, g(a.value.message), 1)) : u("", !0),
|
|
65
|
+
o.value ? (s(), c("div", V, g(o.value), 1)) : u("", !0)
|
|
66
66
|
], 512)
|
|
67
67
|
]),
|
|
68
68
|
_: 1
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ResponseBodyVirtual.vue.d.ts","sourceRoot":"","sources":["../../../../../src/v2/blocks/scalar-response-block/components/ResponseBodyVirtual.vue"],"names":[],"mappings":"AAmEA,KAAK,WAAW,GAAG;IACjB,OAAO,EAAE,MAAM,CAAA;IACf,IAAI,EAAE,OAAO,CAAA;IACb,OAAO,EAAE;QAAE,IAAI,EAAE,MAAM,CAAC;QAAC,KAAK,EAAE,MAAM,CAAA;KAAE,EAAE,CAAA;CAC3C,CAAC;;
|
|
1
|
+
{"version":3,"file":"ResponseBodyVirtual.vue.d.ts","sourceRoot":"","sources":["../../../../../src/v2/blocks/scalar-response-block/components/ResponseBodyVirtual.vue"],"names":[],"mappings":"AAmEA,KAAK,WAAW,GAAG;IACjB,OAAO,EAAE,MAAM,CAAA;IACf,IAAI,EAAE,OAAO,CAAA;IACb,OAAO,EAAE;QAAE,IAAI,EAAE,MAAM,CAAC;QAAC,KAAK,EAAE,MAAM,CAAA;KAAE,EAAE,CAAA;CAC3C,CAAC;;AA0GF,wBAMG"}
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { defineComponent as
|
|
1
|
+
import { defineComponent as i, computed as r, createBlock as d, openBlock as m, unref as n, createSlots as c, withCtx as a, createElementVNode as f, createVNode as s, createTextVNode as p } from "vue";
|
|
2
2
|
import { ScalarVirtualText as u } from "@scalar/components";
|
|
3
3
|
import { formatJsonOrYamlString as x } from "@scalar/oas-utils/helpers";
|
|
4
|
-
import h from "
|
|
5
|
-
import
|
|
6
|
-
import v from "
|
|
7
|
-
const S = /* @__PURE__ */
|
|
4
|
+
import { processResponseBody as h } from "../helpers/process-response-body.js";
|
|
5
|
+
import y from "./ResponseBodyDownload.vue.js";
|
|
6
|
+
import v from "../../../components/layout/CollapsibleSection.vue.js";
|
|
7
|
+
const S = /* @__PURE__ */ i({
|
|
8
8
|
__name: "ResponseBodyVirtual",
|
|
9
9
|
props: {
|
|
10
10
|
content: {},
|
|
@@ -12,23 +12,23 @@ const S = /* @__PURE__ */ l({
|
|
|
12
12
|
headers: {}
|
|
13
13
|
},
|
|
14
14
|
setup(o) {
|
|
15
|
-
const
|
|
16
|
-
() =>
|
|
15
|
+
const l = r(() => x(o.content)), e = r(
|
|
16
|
+
() => h({
|
|
17
17
|
data: o.data,
|
|
18
18
|
headers: o.headers
|
|
19
19
|
})
|
|
20
20
|
);
|
|
21
|
-
return (b, t) => (
|
|
21
|
+
return (b, t) => (m(), d(n(v), { class: "!max-h-100% response-body-virtual overflow-x-auto" }, c({
|
|
22
22
|
title: a(() => [
|
|
23
23
|
t[0] || (t[0] = p("Body", -1))
|
|
24
24
|
]),
|
|
25
25
|
default: a(() => [
|
|
26
|
-
t[1] || (t[1] =
|
|
27
|
-
n(
|
|
26
|
+
t[1] || (t[1] = f("div", { class: "font-code text-xxs rounded-t border border-b-0 px-2.5 py-1.5" }, " This response body is massive! Syntax highlighting won't work here. ", -1)),
|
|
27
|
+
s(n(u), {
|
|
28
28
|
containerClass: "custom-scroll scalar-code-block border rounded-b flex flex-1 max-h-screen",
|
|
29
29
|
contentClass: "language-plaintext whitespace-pre font-code text-base",
|
|
30
30
|
lineHeight: 20,
|
|
31
|
-
text:
|
|
31
|
+
text: l.value
|
|
32
32
|
}, null, 8, ["text"])
|
|
33
33
|
]),
|
|
34
34
|
_: 2
|
|
@@ -36,7 +36,7 @@ const S = /* @__PURE__ */ l({
|
|
|
36
36
|
e.value.dataUrl ? {
|
|
37
37
|
name: "actions",
|
|
38
38
|
fn: a(() => [
|
|
39
|
-
|
|
39
|
+
s(y, {
|
|
40
40
|
filename: e.value.attachmentFilename,
|
|
41
41
|
href: e.value.dataUrl,
|
|
42
42
|
type: e.value.mimeType?.essence
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ResponseCookies.vue.d.ts","sourceRoot":"","sources":["../../../../../src/v2/blocks/scalar-response-block/components/ResponseCookies.vue"],"names":[],"mappings":"AA2CA,KAAK,WAAW,GAAG;IACjB,OAAO,EAAE;QAAE,IAAI,EAAE,MAAM,CAAC;QAAC,KAAK,EAAE,MAAM,CAAA;KAAE,EAAE,CAAA;CAC3C,CAAC;;
|
|
1
|
+
{"version":3,"file":"ResponseCookies.vue.d.ts","sourceRoot":"","sources":["../../../../../src/v2/blocks/scalar-response-block/components/ResponseCookies.vue"],"names":[],"mappings":"AA2CA,KAAK,WAAW,GAAG;IACjB,OAAO,EAAE;QAAE,IAAI,EAAE,MAAM,CAAC;QAAC,KAAK,EAAE,MAAM,CAAA;KAAE,EAAE,CAAA;CAC3C,CAAC;;AA8GF,wBAMG"}
|
|
@@ -1,33 +1,33 @@
|
|
|
1
|
-
import { defineComponent as c, createBlock as r, openBlock as e, withCtx as t, createElementBlock as s, Fragment as i, renderList as
|
|
2
|
-
import
|
|
3
|
-
import
|
|
1
|
+
import { defineComponent as c, createBlock as r, openBlock as e, unref as f, withCtx as t, createElementBlock as s, Fragment as i, renderList as u, createVNode as a, createTextVNode as p } from "vue";
|
|
2
|
+
import k from "../../../../components/DataTable/DataTable.vue.js";
|
|
3
|
+
import _ from "../../../../components/DataTable/DataTableRow.vue.js";
|
|
4
4
|
import m from "../../../../components/DataTable/DataTableText.vue.js";
|
|
5
|
-
import
|
|
6
|
-
const
|
|
5
|
+
import d from "../../../components/layout/CollapsibleSection.vue.js";
|
|
6
|
+
const x = {
|
|
7
7
|
key: 1,
|
|
8
8
|
class: "text-c-3 bg-b-1 flex min-h-[65px] items-center justify-center border-t px-4 text-sm"
|
|
9
|
-
},
|
|
9
|
+
}, N = /* @__PURE__ */ c({
|
|
10
10
|
__name: "ResponseCookies",
|
|
11
11
|
props: {
|
|
12
12
|
cookies: {}
|
|
13
13
|
},
|
|
14
|
-
setup(
|
|
15
|
-
return (o, l) => (e(), r(
|
|
14
|
+
setup(C) {
|
|
15
|
+
return (o, l) => (e(), r(f(d), {
|
|
16
16
|
defaultOpen: !1,
|
|
17
17
|
itemCount: o.cookies.length
|
|
18
18
|
}, {
|
|
19
19
|
title: t(() => [...l[0] || (l[0] = [
|
|
20
|
-
|
|
20
|
+
p("Cookies", -1)
|
|
21
21
|
])]),
|
|
22
22
|
default: t(() => [
|
|
23
23
|
(e(), s(i, { key: 0 }, [
|
|
24
|
-
o.cookies.length ? (e(), r(
|
|
24
|
+
o.cookies.length ? (e(), r(k, {
|
|
25
25
|
key: 0,
|
|
26
26
|
class: "flex-1",
|
|
27
27
|
columns: ["", ""]
|
|
28
28
|
}, {
|
|
29
29
|
default: t(() => [
|
|
30
|
-
(e(!0), s(i, null,
|
|
30
|
+
(e(!0), s(i, null, u(o.cookies, (n) => (e(), r(_, {
|
|
31
31
|
key: n.name
|
|
32
32
|
}, {
|
|
33
33
|
default: t(() => [
|
|
@@ -42,7 +42,7 @@ const d = {
|
|
|
42
42
|
}, 1024))), 128))
|
|
43
43
|
]),
|
|
44
44
|
_: 1
|
|
45
|
-
})) : (e(), s("div",
|
|
45
|
+
})) : (e(), s("div", x, " No cookies "))
|
|
46
46
|
], 64))
|
|
47
47
|
]),
|
|
48
48
|
_: 1
|
|
@@ -50,5 +50,5 @@ const d = {
|
|
|
50
50
|
}
|
|
51
51
|
});
|
|
52
52
|
export {
|
|
53
|
-
|
|
53
|
+
N as default
|
|
54
54
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"DataTable.vue.d.ts","sourceRoot":"","sources":["../../../../src/v2/components/data-table/DataTable.vue"],"names":[],"mappings":"AAwCA,KAAK,WAAW,GAAG;IACjB,OAAO,EAAE,CAAC,MAAM,GAAG,SAAS,CAAC,EAAE,CAAA;IAC/B,0BAA0B;IAC1B,MAAM,CAAC,EAAE,OAAO,CAAA;IAChB,2BAA2B;IAC3B,cAAc,CAAC,EAAE,OAAO,CAAA;CACzB,CAAC;
|
|
1
|
+
{"version":3,"file":"DataTable.vue.d.ts","sourceRoot":"","sources":["../../../../src/v2/components/data-table/DataTable.vue"],"names":[],"mappings":"AAwCA,KAAK,WAAW,GAAG;IACjB,OAAO,EAAE,CAAC,MAAM,GAAG,SAAS,CAAC,EAAE,CAAA;IAC/B,0BAA0B;IAC1B,MAAM,CAAC,EAAE,OAAO,CAAA;IAChB,2BAA2B;IAC3B,cAAc,CAAC,EAAE,OAAO,CAAA;CACzB,CAAC;AA6CF,QAAA,IAAI,OAAO,IAAU,EAAE,OAAO,IAAW,CAAE;AAC3C,KAAK,WAAW,GAAG,EAAE,GACnB;IAAE,OAAO,CAAC,EAAE,CAAC,KAAK,EAAE,OAAO,OAAO,KAAK,GAAG,CAAA;CAAE,GAC5C;IAAE,OAAO,CAAC,EAAE,CAAC,KAAK,EAAE,OAAO,OAAO,KAAK,GAAG,CAAA;CAAE,CAAC;AAoB/C,QAAA,MAAM,eAAe,kSAMnB,CAAC;wBACkB,eAAe,CAAC,OAAO,eAAe,EAAE,WAAW,CAAC;AAAzE,wBAA0E;AAQ1E,KAAK,eAAe,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG;IAChC,QAAO;QACN,MAAM,EAAE,CAAC,CAAC;KAEV,CAAA;CACD,CAAC"}
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { defineComponent as
|
|
1
|
+
import { defineComponent as r, createElementBlock as o, openBlock as l, normalizeProps as n, guardReactiveProps as i, unref as m, createElementVNode as p, normalizeStyle as c, normalizeClass as u, createCommentVNode as d, renderSlot as t } from "vue";
|
|
2
2
|
import { useBindCx as f } from "@scalar/components";
|
|
3
3
|
const b = ["role"], y = {
|
|
4
4
|
key: 0,
|
|
5
5
|
class: "sr-only"
|
|
6
|
-
}, _ = /* @__PURE__ */
|
|
6
|
+
}, _ = /* @__PURE__ */ r({
|
|
7
7
|
__name: "DataTable",
|
|
8
8
|
props: {
|
|
9
9
|
columns: {},
|
|
@@ -19,10 +19,10 @@ const b = ["role"], y = {
|
|
|
19
19
|
)
|
|
20
20
|
)), [
|
|
21
21
|
p("table", {
|
|
22
|
-
class: u(["mb-0 grid min-h-8 auto-rows-auto
|
|
22
|
+
class: u(["mb-0 grid min-h-8 auto-rows-auto", { "w-max min-w-full": e.scroll }]),
|
|
23
23
|
role: e.presentational ? "presentation" : "table",
|
|
24
24
|
style: c({
|
|
25
|
-
gridTemplateColumns: e.columns.map((
|
|
25
|
+
gridTemplateColumns: e.columns.map((s) => s || "1fr").join(" ")
|
|
26
26
|
})
|
|
27
27
|
}, [
|
|
28
28
|
e.$slots.caption ? (l(), o("caption", y, [
|
|
@@ -1,5 +1,4 @@
|
|
|
1
|
-
import type {
|
|
2
|
-
import type { EnvVariable } from '../../../store/active-entities.js';
|
|
1
|
+
import type { XScalarEnvironment } from '@scalar/workspace-store/schemas/extensions/document/x-scalar-environments';
|
|
3
2
|
import type { VueClassProp } from '../../../types/vue';
|
|
4
3
|
type __VLS_Props = {
|
|
5
4
|
id?: string;
|
|
@@ -14,18 +13,17 @@ type __VLS_Props = {
|
|
|
14
13
|
enum?: string[];
|
|
15
14
|
min?: number;
|
|
16
15
|
max?: number;
|
|
17
|
-
environment:
|
|
18
|
-
envVariables: EnvVariable[];
|
|
16
|
+
environment: XScalarEnvironment;
|
|
19
17
|
description?: string | undefined;
|
|
20
18
|
lineWrapping?: boolean;
|
|
21
19
|
};
|
|
22
|
-
declare var __VLS_5: {},
|
|
20
|
+
declare var __VLS_5: {}, __VLS_26: {}, __VLS_28: {};
|
|
23
21
|
type __VLS_Slots = {} & {
|
|
24
22
|
default?: (props: typeof __VLS_5) => any;
|
|
25
23
|
} & {
|
|
26
|
-
warning?: (props: typeof
|
|
24
|
+
warning?: (props: typeof __VLS_26) => any;
|
|
27
25
|
} & {
|
|
28
|
-
icon?: (props: typeof
|
|
26
|
+
icon?: (props: typeof __VLS_28) => any;
|
|
29
27
|
};
|
|
30
28
|
declare const __VLS_component: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {} & {
|
|
31
29
|
selectVariable: (value: string) => any;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"DataTableInput.vue.d.ts","sourceRoot":"","sources":["../../../../src/v2/components/data-table/DataTableInput.vue"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"DataTableInput.vue.d.ts","sourceRoot":"","sources":["../../../../src/v2/components/data-table/DataTableInput.vue"],"names":[],"mappings":"AA8LA,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,2EAA2E,CAAA;AAGnH,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,aAAa,CAAA;AAM/C,KAAK,WAAW,GAAG;IACf,EAAE,CAAC,EAAE,MAAM,CAAA;IACX,IAAI,CAAC,EAAE,MAAM,GAAG,SAAS,CAAA;IACzB,sEAAsE;IACtE,cAAc,CAAC,EAAE,YAAY,GAAG,SAAS,CAAA;IACzC,QAAQ,CAAC,EAAE,OAAO,CAAA;IAClB,UAAU,EAAE,MAAM,GAAG,MAAM,CAAA;IAC3B,0EAA0E;IAC1E,qBAAqB,CAAC,EAAE,OAAO,CAAA;IAC/B,QAAQ,CAAC,EAAE,OAAO,CAAA;IAClB,IAAI,CAAC,EAAE,MAAM,EAAE,CAAA;IACf,GAAG,CAAC,EAAE,MAAM,CAAA;IACZ,GAAG,CAAC,EAAE,MAAM,CAAA;IACZ,WAAW,EAAE,kBAAkB,CAAA;IAC/B,WAAW,CAAC,EAAE,MAAM,GAAG,SAAS,CAAA;IAChC,YAAY,CAAC,EAAE,OAAO,CAAA;CACvB,CAAC;AAmSJ,QAAA,IAAI,OAAO,IAAU,EAAuB,QAAQ,IAAW,EAAE,QAAQ,IAAY,CAAE;AACvF,KAAK,WAAW,GAAG,EAAE,GACnB;IAAE,OAAO,CAAC,EAAE,CAAC,KAAK,EAAE,OAAO,OAAO,KAAK,GAAG,CAAA;CAAE,GAC5C;IAAE,OAAO,CAAC,EAAE,CAAC,KAAK,EAAE,OAAO,QAAQ,KAAK,GAAG,CAAA;CAAE,GAC7C;IAAE,IAAI,CAAC,EAAE,CAAC,KAAK,EAAE,OAAO,QAAQ,KAAK,GAAG,CAAA;CAAE,CAAC;AAmC7C,QAAA,MAAM,eAAe;;;;;;;;;;;cArVN,OAAO;cAIP,OAAO;kBAMH,OAAO;2BAPE,OAAO;6EA0VjC,CAAC;wBACkB,eAAe,CAAC,OAAO,eAAe,EAAE,WAAW,CAAC;AAAzE,wBAA0E;AAa1E,KAAK,eAAe,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG;IAChC,QAAO;QACN,MAAM,EAAE,CAAC,CAAC;KAEV,CAAA;CACD,CAAC"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import t from "./DataTableInput.vue2.js";
|
|
2
2
|
/* empty css */
|
|
3
3
|
import o from "../../../_virtual/_plugin-vue_export-helper.js";
|
|
4
|
-
const
|
|
4
|
+
const r = /* @__PURE__ */ o(t, [["__scopeId", "data-v-25ff4902"]]);
|
|
5
5
|
export {
|
|
6
|
-
|
|
6
|
+
r as default
|
|
7
7
|
};
|