@scalar/api-client 2.14.1 → 2.17.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 +176 -0
- package/dist/hooks/useResponseBody.js +6 -6
- package/dist/libs/errors.d.ts +1 -0
- package/dist/libs/errors.d.ts.map +1 -1
- package/dist/libs/errors.js +1 -0
- package/dist/libs/send-request/create-request-operation.d.ts.map +1 -1
- package/dist/libs/send-request/create-request-operation.js +41 -35
- package/dist/style.css +1 -1
- package/dist/v2/blocks/operation-block/OperationBlock.vue.d.ts +28 -38
- package/dist/v2/blocks/operation-block/OperationBlock.vue.d.ts.map +1 -1
- package/dist/v2/blocks/operation-block/OperationBlock.vue.js +81 -65
- package/dist/v2/blocks/operation-block/components/Header.vue.d.ts +1 -23
- package/dist/v2/blocks/operation-block/components/Header.vue.d.ts.map +1 -1
- package/dist/v2/blocks/operation-block/components/Header.vue.js +3 -3
- package/dist/v2/blocks/operation-block/components/Header.vue2.js +29 -38
- package/dist/v2/blocks/operation-block/helpers/build-request-body.d.ts +10 -0
- package/dist/v2/blocks/operation-block/helpers/build-request-body.d.ts.map +1 -0
- package/dist/v2/blocks/operation-block/helpers/build-request-body.js +22 -0
- package/dist/v2/blocks/operation-block/helpers/build-request-cookie-header.d.ts +31 -0
- package/dist/v2/blocks/operation-block/helpers/build-request-cookie-header.d.ts.map +1 -0
- package/dist/v2/blocks/operation-block/helpers/build-request-cookie-header.js +31 -0
- package/dist/v2/blocks/operation-block/helpers/build-request-parameters.d.ts +3 -9
- package/dist/v2/blocks/operation-block/helpers/build-request-parameters.d.ts.map +1 -1
- package/dist/v2/blocks/operation-block/helpers/build-request-parameters.js +56 -0
- package/dist/v2/blocks/operation-block/helpers/build-request-security.d.ts +10 -3
- package/dist/v2/blocks/operation-block/helpers/build-request-security.d.ts.map +1 -1
- package/dist/v2/blocks/operation-block/helpers/build-request-security.js +46 -0
- package/dist/v2/blocks/operation-block/helpers/build-request.d.ts +45 -0
- package/dist/v2/blocks/operation-block/helpers/build-request.d.ts.map +1 -0
- package/dist/v2/blocks/operation-block/helpers/build-request.js +66 -0
- package/dist/v2/blocks/operation-block/helpers/decode-buffer.js +9 -0
- package/dist/v2/blocks/operation-block/helpers/get-cookie-header-keys.d.ts +16 -0
- package/dist/v2/blocks/operation-block/helpers/get-cookie-header-keys.d.ts.map +1 -0
- package/dist/v2/blocks/operation-block/helpers/get-cookie-header-keys.js +4 -0
- package/dist/v2/blocks/operation-block/helpers/get-delimiter.js +17 -0
- package/dist/v2/blocks/operation-block/helpers/get-example.d.ts +9 -3
- package/dist/v2/blocks/operation-block/helpers/get-example.d.ts.map +1 -1
- package/dist/v2/blocks/operation-block/helpers/get-example.js +21 -0
- package/dist/v2/blocks/operation-block/helpers/send-request.d.ts +53 -0
- package/dist/v2/blocks/operation-block/helpers/send-request.d.ts.map +1 -0
- package/dist/v2/blocks/operation-block/helpers/send-request.js +120 -0
- package/dist/v2/blocks/operation-code-sample/components/ExamplePicker.vue.d.ts +1 -1
- package/dist/v2/blocks/operation-code-sample/components/ExamplePicker.vue.d.ts.map +1 -1
- package/dist/v2/blocks/operation-code-sample/components/OperationCodeSample.vue.d.ts.map +1 -1
- package/dist/v2/blocks/operation-code-sample/components/OperationCodeSample.vue.js +1 -1
- package/dist/v2/blocks/operation-code-sample/components/OperationCodeSample.vue2.js +89 -110
- package/dist/v2/blocks/operation-code-sample/helpers/find-client.d.ts +2 -2
- package/dist/v2/blocks/operation-code-sample/helpers/find-client.d.ts.map +1 -1
- package/dist/v2/blocks/operation-code-sample/helpers/generate-client-options.d.ts +8 -13
- package/dist/v2/blocks/operation-code-sample/helpers/generate-client-options.d.ts.map +1 -1
- package/dist/v2/blocks/operation-code-sample/helpers/generate-client-options.js +22 -28
- package/dist/v2/blocks/operation-code-sample/helpers/generate-code-snippet.d.ts +19 -8
- package/dist/v2/blocks/operation-code-sample/helpers/generate-code-snippet.d.ts.map +1 -1
- package/dist/v2/blocks/operation-code-sample/helpers/generate-code-snippet.js +30 -24
- package/dist/v2/blocks/operation-code-sample/helpers/get-clients.d.ts +12 -0
- package/dist/v2/blocks/operation-code-sample/helpers/get-clients.d.ts.map +1 -0
- package/dist/v2/blocks/operation-code-sample/helpers/get-clients.js +20 -0
- package/dist/v2/blocks/operation-code-sample/helpers/get-custom-code-samples.d.ts +10 -0
- package/dist/v2/blocks/operation-code-sample/helpers/get-custom-code-samples.d.ts.map +1 -0
- package/dist/v2/blocks/operation-code-sample/helpers/get-custom-code-samples.js +4 -0
- package/dist/v2/blocks/operation-code-sample/helpers/get-example-from-schema.d.ts +14 -12
- package/dist/v2/blocks/operation-code-sample/helpers/get-example-from-schema.d.ts.map +1 -1
- package/dist/v2/blocks/operation-code-sample/helpers/get-example-from-schema.js +191 -169
- package/dist/v2/blocks/operation-code-sample/helpers/operation-to-har/operation-to-har.d.ts.map +1 -1
- package/dist/v2/blocks/operation-code-sample/helpers/operation-to-har/operation-to-har.js +10 -10
- package/dist/v2/blocks/operation-code-sample/helpers/operation-to-har/process-body.d.ts +2 -1
- package/dist/v2/blocks/operation-code-sample/helpers/operation-to-har/process-body.d.ts.map +1 -1
- package/dist/v2/blocks/operation-code-sample/helpers/operation-to-har/process-body.js +15 -19
- package/dist/v2/blocks/operation-code-sample/helpers/operation-to-har/process-parameters.js +2 -2
- package/dist/v2/blocks/operation-code-sample/index.d.ts +1 -1
- package/dist/v2/blocks/operation-code-sample/index.d.ts.map +1 -1
- package/dist/v2/blocks/operation-code-sample/types.d.ts +16 -0
- package/dist/v2/blocks/operation-code-sample/types.d.ts.map +1 -1
- package/dist/v2/blocks/request-block/RequestBlock.vue.d.ts +15 -10
- package/dist/v2/blocks/request-block/RequestBlock.vue.d.ts.map +1 -1
- package/dist/v2/blocks/request-block/RequestBlock.vue.js +1 -1
- package/dist/v2/blocks/request-block/RequestBlock.vue2.js +202 -160
- package/dist/v2/blocks/request-block/components/RequestBody.vue.d.ts +2 -0
- package/dist/v2/blocks/request-block/components/RequestBody.vue.d.ts.map +1 -1
- package/dist/v2/blocks/request-block/components/RequestBody.vue.js +1 -1
- package/dist/v2/blocks/request-block/components/RequestBody.vue2.js +60 -51
- package/dist/v2/blocks/request-block/components/RequestCodeSnippet.vue.d.ts +8 -0
- package/dist/v2/blocks/request-block/components/RequestCodeSnippet.vue.d.ts.map +1 -0
- package/dist/v2/blocks/request-block/components/RequestCodeSnippet.vue.js +127 -0
- package/dist/v2/blocks/request-block/components/RequestCodeSnippet.vue2.js +4 -0
- package/dist/v2/blocks/request-block/components/RequestParams.vue.d.ts +2 -2
- package/dist/v2/blocks/request-block/components/RequestParams.vue.d.ts.map +1 -1
- package/dist/v2/blocks/request-block/components/RequestParams.vue.js +24 -23
- package/dist/v2/blocks/request-block/components/RequestTable.vue.d.ts +2 -4
- package/dist/v2/blocks/request-block/components/RequestTable.vue.d.ts.map +1 -1
- package/dist/v2/blocks/request-block/components/RequestTable.vue.js +1 -1
- package/dist/v2/blocks/request-block/components/RequestTableRow.vue.d.ts +3 -2
- package/dist/v2/blocks/request-block/components/RequestTableRow.vue.d.ts.map +1 -1
- package/dist/v2/blocks/request-block/components/RequestTableRow.vue.js +146 -147
- package/dist/v2/blocks/request-block/components/RequestTableTooltip.vue.d.ts +1 -0
- package/dist/v2/blocks/request-block/components/RequestTableTooltip.vue.d.ts.map +1 -1
- package/dist/v2/blocks/request-block/components/RequestTableTooltip.vue.js +1 -1
- package/dist/v2/blocks/request-block/components/RequestTableTooltip.vue2.js +28 -27
- package/dist/v2/blocks/request-block/helpers/create-parameter-handlers.d.ts +1 -1
- package/dist/v2/blocks/request-block/helpers/create-parameter-handlers.d.ts.map +1 -1
- package/dist/v2/blocks/request-block/helpers/create-parameter-handlers.js +21 -15
- package/dist/v2/blocks/request-block/helpers/get-request-body-example.d.ts +3 -2
- package/dist/v2/blocks/request-block/helpers/get-request-body-example.d.ts.map +1 -1
- package/dist/v2/blocks/request-block/helpers/get-request-body-example.js +13 -3
- package/dist/v2/blocks/response-block/ResponseBlock.vue.d.ts +4 -4
- package/dist/v2/blocks/response-block/ResponseBlock.vue.d.ts.map +1 -1
- package/dist/v2/blocks/response-block/ResponseBlock.vue.js +3 -3
- package/dist/v2/blocks/response-block/ResponseBlock.vue2.js +41 -45
- package/dist/v2/blocks/response-block/components/Headers.vue.d.ts.map +1 -1
- package/dist/v2/blocks/response-block/components/Headers.vue.js +27 -27
- package/dist/v2/blocks/response-block/components/ResponseCookies.vue.js +1 -1
- package/dist/v2/blocks/response-block/helpers/parse-set-cookie.d.ts +18 -0
- package/dist/v2/blocks/response-block/helpers/parse-set-cookie.d.ts.map +1 -0
- package/dist/v2/blocks/response-block/helpers/parse-set-cookie.js +12 -0
- package/dist/v2/blocks/response-block/helpers/process-response-body.js +2 -2
- package/dist/v2/blocks/scalar-address-bar-block/components/AddressBar.vue.d.ts +4 -15
- 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 +117 -71
- package/dist/v2/blocks/scalar-address-bar-block/hooks/use-loading-animation.d.ts +19 -0
- package/dist/v2/blocks/scalar-address-bar-block/hooks/use-loading-animation.d.ts.map +1 -0
- package/dist/v2/blocks/scalar-address-bar-block/hooks/use-loading-animation.js +24 -0
- package/dist/v2/blocks/scalar-auth-selector-block/components/AuthSelector.vue.d.ts +3 -2
- 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 +59 -56
- package/dist/v2/blocks/scalar-auth-selector-block/components/OAuth2.vue.d.ts +1 -1
- package/dist/v2/blocks/scalar-auth-selector-block/components/OAuth2.vue.d.ts.map +1 -1
- package/dist/v2/blocks/scalar-auth-selector-block/components/RequestAuthDataTable.vue.d.ts +3 -1
- 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 +26 -24
- package/dist/v2/blocks/scalar-auth-selector-block/components/RequestAuthTab.vue.d.ts +2 -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 +44 -43
- package/dist/v2/blocks/scalar-auth-selector-block/helpers/is-auth-optional.d.ts +4 -0
- package/dist/v2/blocks/scalar-auth-selector-block/helpers/is-auth-optional.d.ts.map +1 -0
- package/dist/v2/blocks/scalar-auth-selector-block/helpers/is-auth-optional.js +7 -0
- package/dist/v2/blocks/scalar-auth-selector-block/helpers/oauth.d.ts +4 -4
- package/dist/v2/blocks/scalar-auth-selector-block/helpers/oauth.d.ts.map +1 -1
- package/dist/v2/blocks/scalar-auth-selector-block/helpers/security-scheme.d.ts +2 -2
- package/dist/v2/components/code-input/CodeInput.vue.d.ts +16 -6
- package/dist/v2/components/code-input/CodeInput.vue.d.ts.map +1 -1
- package/dist/v2/components/code-input/CodeInput.vue.js +2 -2
- package/dist/v2/components/code-input/CodeInput.vue2.js +81 -65
- package/dist/v2/components/data-table/DataTableInputSelect.vue.d.ts +2 -2
- package/dist/v2/components/data-table/DataTableInputSelect.vue.d.ts.map +1 -1
- package/dist/v2/components/data-table/DataTableInputSelect.vue.js +44 -44
- package/dist/v2/components/resize/index.d.ts +0 -1
- package/dist/v2/components/resize/index.d.ts.map +1 -1
- package/dist/v2/components/sidebar/Sidebar.vue.d.ts +9 -5
- package/dist/v2/components/sidebar/Sidebar.vue.d.ts.map +1 -1
- package/dist/v2/components/sidebar/Sidebar.vue.js +51 -46
- package/dist/v2/components/sidebar/SidebarMenu.vue.d.ts +1 -1
- package/dist/v2/components/sidebar/SidebarMenu.vue.d.ts.map +1 -1
- package/dist/v2/features/app/App.vue.d.ts +3 -0
- package/dist/v2/features/app/App.vue.d.ts.map +1 -1
- package/dist/v2/features/app/App.vue.js +130 -143
- package/dist/v2/features/app/components/AppSidebar.vue.d.ts +3 -3
- package/dist/v2/features/app/components/AppSidebar.vue.d.ts.map +1 -1
- package/dist/v2/features/app/components/AppSidebar.vue.js +1 -1
- package/dist/v2/features/app/components/AppSidebar.vue2.js +216 -106
- package/dist/v2/features/app/components/DesktopTabs.vue.d.ts +1 -1
- package/dist/v2/features/app/components/DesktopTabs.vue.d.ts.map +1 -1
- package/dist/v2/features/app/components/ItemDecorator.vue.d.ts +22 -0
- package/dist/v2/features/app/components/ItemDecorator.vue.d.ts.map +1 -0
- package/dist/v2/features/app/components/ItemDecorator.vue.js +138 -0
- package/dist/v2/features/app/components/ItemDecorator.vue2.js +4 -0
- package/dist/v2/features/app/components/WebTopNav.vue.d.ts +1 -1
- package/dist/v2/features/app/components/WebTopNav.vue.d.ts.map +1 -1
- package/dist/v2/features/app/helpers/create-api-client-app.d.ts +2 -2
- package/dist/v2/features/app/helpers/create-api-client-app.d.ts.map +1 -1
- package/dist/v2/features/app/helpers/create-api-client-app.js +8 -8
- package/dist/v2/features/app/helpers/routes.d.ts +32 -6
- package/dist/v2/features/app/helpers/routes.d.ts.map +1 -1
- package/dist/v2/features/app/helpers/routes.js +25 -16
- package/dist/v2/{hooks/use-sidebar-state.d.ts → features/app/hooks/use-app-sidebar.d.ts} +10 -11
- package/dist/v2/features/app/hooks/use-app-sidebar.d.ts.map +1 -0
- package/dist/v2/{hooks/use-sidebar-state.js → features/app/hooks/use-app-sidebar.js} +19 -19
- package/dist/v2/features/app/hooks/use-document-watcher.d.ts.map +1 -0
- package/dist/v2/{hooks → features/app/hooks}/use-sync-path.d.ts +2 -2
- package/dist/v2/features/app/hooks/use-sync-path.d.ts.map +1 -0
- package/dist/v2/features/app/hooks/use-sync-path.js +52 -0
- package/dist/v2/{hooks → features/app/hooks}/use-tabs.d.ts +2 -2
- package/dist/v2/features/app/hooks/use-tabs.d.ts.map +1 -0
- package/dist/v2/{hooks → features/app/hooks}/use-tabs.js +1 -1
- package/dist/v2/{hooks/use-workspace-client-events.d.ts → features/app/hooks/use-workspace-client-app-events.d.ts} +5 -5
- package/dist/v2/features/app/hooks/use-workspace-client-app-events.d.ts.map +1 -0
- package/dist/v2/features/app/hooks/use-workspace-client-app-events.js +156 -0
- package/dist/v2/features/app/hooks/use-workspace-selector.d.ts.map +1 -0
- package/dist/v2/{hooks → features/app/hooks}/use-workspace-selector.js +1 -1
- package/dist/v2/features/collection/DocumentCollection.vue.js +92 -2
- package/dist/v2/features/collection/DocumentCollection.vue2.js +2 -91
- package/dist/v2/features/collection/WorkspaceCollection.vue.js +42 -2
- package/dist/v2/features/collection/WorkspaceCollection.vue2.js +2 -41
- 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 +14 -12
- package/dist/v2/features/collection/components/Cookies.vue.js +30 -1
- package/dist/v2/features/collection/components/Cookies.vue2.js +1 -29
- package/dist/v2/features/collection/components/Environment.vue.js +32 -1
- package/dist/v2/features/collection/components/Environment.vue2.js +1 -31
- package/dist/v2/features/collection/components/Overview.vue2.js +5 -4
- package/dist/v2/features/collection/components/Servers.vue.js +142 -2
- package/dist/v2/features/collection/components/Servers.vue2.js +2 -141
- package/dist/v2/features/collection/components/Settings.vue.js +58 -2
- package/dist/v2/features/collection/components/Settings.vue2.js +2 -57
- package/dist/v2/features/command-palette/components/CommandPaletteExample.vue.d.ts +8 -0
- package/dist/v2/features/command-palette/components/CommandPaletteExample.vue.d.ts.map +1 -1
- package/dist/v2/features/command-palette/components/CommandPaletteExample.vue.js +76 -68
- package/dist/v2/features/command-palette/components/CommandPaletteRequest.vue.d.ts +8 -0
- package/dist/v2/features/command-palette/components/CommandPaletteRequest.vue.d.ts.map +1 -1
- package/dist/v2/features/command-palette/components/CommandPaletteRequest.vue.js +83 -75
- package/dist/v2/features/command-palette/components/CommandPaletteTag.vue.d.ts +4 -0
- package/dist/v2/features/command-palette/components/CommandPaletteTag.vue.d.ts.map +1 -1
- package/dist/v2/features/command-palette/components/CommandPaletteTag.vue.js +32 -34
- package/dist/v2/features/command-palette/hooks/use-command-palette-state.d.ts +16 -0
- package/dist/v2/features/command-palette/hooks/use-command-palette-state.d.ts.map +1 -1
- package/dist/v2/features/command-palette/hooks/use-command-palette-state.js +24 -21
- package/dist/v2/features/modal/Modal.vue.d.ts +23 -1
- package/dist/v2/features/modal/Modal.vue.d.ts.map +1 -1
- package/dist/v2/features/modal/Modal.vue.js +1 -1
- package/dist/v2/features/modal/Modal.vue2.js +118 -31
- package/dist/v2/features/modal/helpers/create-api-client-modal.d.ts +18 -32
- package/dist/v2/features/modal/helpers/create-api-client-modal.d.ts.map +1 -1
- package/dist/v2/features/modal/helpers/create-api-client-modal.js +46 -26
- package/dist/v2/features/modal/helpers/resolve-route-parameters.d.ts +55 -0
- package/dist/v2/features/modal/helpers/resolve-route-parameters.d.ts.map +1 -0
- package/dist/v2/features/modal/helpers/resolve-route-parameters.js +29 -0
- package/dist/v2/features/modal/hooks/use-modal-sidebar.d.ts +42 -0
- package/dist/v2/features/modal/hooks/use-modal-sidebar.d.ts.map +1 -0
- package/dist/v2/features/modal/hooks/use-modal-sidebar.js +93 -0
- package/dist/v2/features/modal/hooks/use-workspace-client-modal-events.d.ts +18 -0
- package/dist/v2/features/modal/hooks/use-workspace-client-modal-events.d.ts.map +1 -0
- package/dist/v2/features/modal/hooks/use-workspace-client-modal-events.js +30 -0
- package/dist/v2/features/operation/Operation.vue.d.ts.map +1 -1
- package/dist/v2/features/operation/Operation.vue.js +59 -28
- package/dist/v2/features/operation/helpers/get-operation-header.d.ts +17 -0
- package/dist/v2/features/operation/helpers/get-operation-header.d.ts.map +1 -0
- package/dist/v2/features/operation/helpers/get-operation-header.js +12 -0
- package/dist/v2/features/operation/helpers/get-security-requirements.d.ts +1 -1
- package/dist/v2/features/operation/helpers/get-security-requirements.d.ts.map +1 -1
- package/dist/v2/features/operation/helpers/get-selected-security.d.ts +7 -0
- package/dist/v2/features/operation/helpers/get-selected-security.d.ts.map +1 -0
- package/dist/v2/features/operation/helpers/get-selected-security.js +19 -0
- package/dist/v2/features/operation/index.d.ts +0 -1
- package/dist/v2/features/operation/index.d.ts.map +1 -1
- package/dist/v2/features/search/components/SearchModal.vue.d.ts.map +1 -1
- package/dist/v2/features/search/components/SearchModal.vue.js +3 -3
- package/dist/v2/features/search/components/SearchModal.vue2.js +45 -44
- package/dist/v2/features/settings/DocumentSettings.vue.js +2 -2
- package/dist/v2/features/settings/DocumentSettings.vue2.js +1 -1
- package/dist/v2/helpers/generate-location-id.d.ts +19 -0
- package/dist/v2/helpers/generate-location-id.d.ts.map +1 -0
- package/dist/v2/helpers/generate-location-id.js +10 -0
- package/dist/v2/helpers/get-active-environment.d.ts +5 -0
- package/dist/v2/helpers/get-active-environment.d.ts.map +1 -0
- package/dist/v2/helpers/get-active-environment.js +22 -0
- package/dist/v2/helpers/get-tab-details.d.ts +2 -2
- package/dist/v2/helpers/get-tab-details.d.ts.map +1 -1
- package/dist/v2/helpers/handle-hotkeys.js +1 -1
- package/dist/v2/helpers/plugins.d.ts +59 -0
- package/dist/v2/helpers/plugins.d.ts.map +1 -0
- package/dist/v2/helpers/plugins.js +11 -0
- package/dist/v2/helpers/storage.d.ts.map +1 -1
- package/dist/v2/helpers/storage.js +5 -5
- package/dist/v2/hooks/use-scroll-lock.d.ts +28 -0
- package/dist/v2/hooks/use-scroll-lock.d.ts.map +1 -0
- package/dist/v2/hooks/use-scroll-lock.js +21 -0
- package/dist/views/Components/CodeSnippet/helpers/get-har-request.d.ts +2 -0
- package/dist/views/Components/CodeSnippet/helpers/get-har-request.d.ts.map +1 -1
- package/dist/views/Components/CodeSnippet/helpers/get-har-request.js +1 -1
- package/dist/views/Request/RequestSection/RequestAuth/index.d.ts +0 -1
- package/dist/views/Request/RequestSection/RequestAuth/index.d.ts.map +1 -1
- package/dist/views/Request/ResponseSection/ResponseEmpty.vue2.js +1 -1
- package/package.json +19 -19
- package/dist/v2/blocks/operation-code-sample/helpers/operation-to-har/get-example-value.d.ts +0 -7
- package/dist/v2/blocks/operation-code-sample/helpers/operation-to-har/get-example-value.d.ts.map +0 -1
- package/dist/v2/blocks/operation-code-sample/helpers/operation-to-har/get-example-value.js +0 -28
- package/dist/v2/blocks/request-block/helpers/get-parameter-example.d.ts +0 -6
- package/dist/v2/blocks/request-block/helpers/get-parameter-example.d.ts.map +0 -1
- package/dist/v2/blocks/request-block/helpers/get-parameter-example.js +0 -12
- package/dist/v2/hooks/use-document-watcher.d.ts.map +0 -1
- package/dist/v2/hooks/use-sidebar-state.d.ts.map +0 -1
- package/dist/v2/hooks/use-sync-path.d.ts.map +0 -1
- package/dist/v2/hooks/use-sync-path.js +0 -51
- package/dist/v2/hooks/use-tabs.d.ts.map +0 -1
- package/dist/v2/hooks/use-workspace-client-events.d.ts.map +0 -1
- package/dist/v2/hooks/use-workspace-client-events.js +0 -112
- package/dist/v2/hooks/use-workspace-selector.d.ts.map +0 -1
- package/dist/v2/plugins.d.ts +0 -44
- package/dist/v2/plugins.d.ts.map +0 -1
- /package/dist/v2/{hooks → features/app/hooks}/use-document-watcher.d.ts +0 -0
- /package/dist/v2/{hooks → features/app/hooks}/use-document-watcher.js +0 -0
- /package/dist/v2/{hooks → features/app/hooks}/use-workspace-selector.d.ts +0 -0
|
@@ -1,18 +1,20 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
import { ScalarErrorBoundary as
|
|
1
|
+
import { defineComponent as g, computed as i, ref as I, useId as E, createBlock as t, 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 O, unref as z, withDirectives as N, resolveDynamicComponent as P, vShow as D } from "vue";
|
|
2
|
+
import { ScalarErrorBoundary as L } from "@scalar/components";
|
|
3
|
+
import { isDefined as j } from "@scalar/helpers/array/is-defined";
|
|
3
4
|
import w from "../../../components/SectionFilter.vue.js";
|
|
4
|
-
import
|
|
5
|
+
import F from "../../../components/ViewLayout/ViewLayoutSection.vue.js";
|
|
5
6
|
import V from "./components/Headers.vue.js";
|
|
6
|
-
import
|
|
7
|
-
import
|
|
8
|
-
import
|
|
7
|
+
import U from "./components/ResponseBody.vue.js";
|
|
8
|
+
import K from "./components/ResponseBodyStreaming.vue.js";
|
|
9
|
+
import M from "./components/ResponseBodyVirtual.vue.js";
|
|
9
10
|
/* empty css */
|
|
10
|
-
import
|
|
11
|
-
import
|
|
12
|
-
import
|
|
13
|
-
import
|
|
14
|
-
import { textMediaTypes as
|
|
15
|
-
|
|
11
|
+
import Z from "./components/ResponseCookies.vue.js";
|
|
12
|
+
import G from "./components/ResponseEmpty.vue.js";
|
|
13
|
+
import J from "./components/ResponseLoadingOverlay.vue.js";
|
|
14
|
+
import Q from "./components/ResponseMetaInformation.vue.js";
|
|
15
|
+
import { textMediaTypes as W } from "./helpers/media-types.js";
|
|
16
|
+
import { parseSetCookie as X } from "./helpers/parse-set-cookie.js";
|
|
17
|
+
const Y = { class: "flex h-8 flex-1 items-center" }, x = ["id", "role"], b = 2e5, ce = /* @__PURE__ */ g({
|
|
16
18
|
__name: "ResponseBlock",
|
|
17
19
|
props: {
|
|
18
20
|
response: {},
|
|
@@ -25,53 +27,47 @@ const W = { class: "flex h-8 flex-1 items-center" }, X = ["id", "role"], b = 2e5
|
|
|
25
27
|
eventBus: {}
|
|
26
28
|
},
|
|
27
29
|
emits: ["sendRequest"],
|
|
28
|
-
setup(
|
|
29
|
-
const T =
|
|
30
|
-
const e =
|
|
30
|
+
setup(r, { expose: C, emit: H }) {
|
|
31
|
+
const T = H, p = i(() => {
|
|
32
|
+
const e = r.response?.headers;
|
|
31
33
|
return e ? Object.keys(e).map((s) => ({
|
|
32
34
|
name: s,
|
|
33
35
|
value: e[s] ?? ""
|
|
34
36
|
})) : [];
|
|
35
37
|
}), k = i(
|
|
36
|
-
() =>
|
|
37
|
-
|
|
38
|
-
return s ? {
|
|
39
|
-
name: e,
|
|
40
|
-
value: s
|
|
41
|
-
} : [];
|
|
42
|
-
}) ?? []
|
|
43
|
-
), $ = ["Cookies", "Headers", "Body"], o = S("All"), v = i(() => ["All", ...$]), a = i(
|
|
38
|
+
() => r.response?.cookieHeaderKeys.map((e) => X(e)).filter(j) ?? []
|
|
39
|
+
), $ = ["Cookies", "Headers", "Body"], o = I("All"), v = i(() => ["All", ...$]), a = i(
|
|
44
40
|
() => Object.fromEntries(
|
|
45
41
|
v.value.map((e) => [e, E()])
|
|
46
42
|
)
|
|
47
43
|
), q = i(() => {
|
|
48
|
-
if (!
|
|
44
|
+
if (!r.response || !("size" in r.response))
|
|
49
45
|
return !1;
|
|
50
|
-
const e =
|
|
51
|
-
return !e || (
|
|
46
|
+
const e = r.response.headers?.["content-type"] || r.response.headers?.["Content-Type"];
|
|
47
|
+
return !e || (r.response.size ?? 0) <= b || e.includes("text/html") ? !1 : W.some((l) => e.includes(l)) && (r.response.size ?? 0) > b;
|
|
52
48
|
}), R = i(
|
|
53
|
-
() =>
|
|
49
|
+
() => r.request?.headers ? [...r.request.headers].map((e) => ({
|
|
54
50
|
name: e[0],
|
|
55
51
|
value: e[1],
|
|
56
52
|
required: !1
|
|
57
53
|
})) : []
|
|
58
|
-
), f = (e) =>
|
|
59
|
-
return
|
|
54
|
+
), f = (e) => o.value === "All" || o.value === e;
|
|
55
|
+
return C({
|
|
60
56
|
responseHeaders: p,
|
|
61
57
|
responseCookies: k,
|
|
62
58
|
requestHeaders: R,
|
|
63
59
|
shouldVirtualize: q,
|
|
64
60
|
activeFilter: o,
|
|
65
61
|
filters: v
|
|
66
|
-
}), (e, s) => (n(),
|
|
62
|
+
}), (e, s) => (n(), t(F, { "aria-label": "Response" }, {
|
|
67
63
|
title: u(() => [
|
|
68
|
-
m("div",
|
|
64
|
+
m("div", Y, [
|
|
69
65
|
m("div", {
|
|
70
66
|
"aria-live": "polite",
|
|
71
67
|
class: B(["flex items-center", { "animate-response-heading": e.response }])
|
|
72
68
|
}, [
|
|
73
69
|
s[4] || (s[4] = m("span", { class: "response-heading pointer-events-none absolute" }, " Response ", -1)),
|
|
74
|
-
e.response ? (n(),
|
|
70
|
+
e.response ? (n(), t(Q, {
|
|
75
71
|
key: 0,
|
|
76
72
|
class: "animate-response-children",
|
|
77
73
|
events: e.events,
|
|
@@ -95,14 +91,14 @@ const W = { class: "flex h-8 flex-1 items-center" }, X = ["id", "role"], b = 2e5
|
|
|
95
91
|
role: o.value === "All" && e.response ? "tabpanel" : "none"
|
|
96
92
|
}, [
|
|
97
93
|
e.response ? (n(), c(y, { key: 1 }, [
|
|
98
|
-
f("Cookies") ? (n(),
|
|
94
|
+
f("Cookies") ? (n(), t(Z, {
|
|
99
95
|
key: 0,
|
|
100
96
|
id: a.value.Cookies,
|
|
101
97
|
class: "response-section-content-cookies",
|
|
102
98
|
cookies: k.value,
|
|
103
99
|
role: o.value === "All" ? "none" : "tabpanel"
|
|
104
100
|
}, null, 8, ["id", "cookies", "role"])) : d("", !0),
|
|
105
|
-
f("Headers") ? (n(),
|
|
101
|
+
f("Headers") ? (n(), t(V, {
|
|
106
102
|
key: 1,
|
|
107
103
|
id: a.value.Headers,
|
|
108
104
|
class: "response-section-content-headers",
|
|
@@ -114,7 +110,7 @@ const W = { class: "flex h-8 flex-1 items-center" }, X = ["id", "role"], b = 2e5
|
|
|
114
110
|
])]),
|
|
115
111
|
_: 1
|
|
116
112
|
}, 8, ["id", "headers", "role"])) : d("", !0),
|
|
117
|
-
f("Headers") ? (n(),
|
|
113
|
+
f("Headers") ? (n(), t(V, {
|
|
118
114
|
key: 2,
|
|
119
115
|
id: a.value.Headers,
|
|
120
116
|
class: "response-section-content-headers",
|
|
@@ -126,32 +122,32 @@ const W = { class: "flex h-8 flex-1 items-center" }, X = ["id", "role"], b = 2e5
|
|
|
126
122
|
])]),
|
|
127
123
|
_: 1
|
|
128
124
|
}, 8, ["id", "headers", "role"])) : d("", !0),
|
|
129
|
-
(n(!0), c(y, null, O(e.plugins, (l,
|
|
125
|
+
(n(!0), c(y, null, O(e.plugins, (l, S) => (n(), t(z(L), { key: S }, {
|
|
130
126
|
default: u(() => [
|
|
131
|
-
l.components?.response ? N((n(),
|
|
127
|
+
l.components?.response && e.request && e.response ? N((n(), t(P(l.components.response), {
|
|
132
128
|
key: 0,
|
|
133
129
|
request: e.request,
|
|
134
130
|
response: e.response
|
|
135
131
|
}, null, 8, ["request", "response"])), [
|
|
136
|
-
[
|
|
132
|
+
[D, o.value === "All"]
|
|
137
133
|
]) : d("", !0)
|
|
138
134
|
]),
|
|
139
135
|
_: 2
|
|
140
136
|
}, 1024))), 128)),
|
|
141
137
|
o.value === "All" || o.value === "Body" ? (n(), c(y, { key: 3 }, [
|
|
142
|
-
"reader" in e.response ? (n(),
|
|
138
|
+
"reader" in e.response ? (n(), t(K, {
|
|
143
139
|
key: 0,
|
|
144
140
|
id: a.value.Body,
|
|
145
141
|
class: "response-section-content-body",
|
|
146
142
|
reader: e.response.reader
|
|
147
|
-
}, null, 8, ["id", "reader"])) : q.value && typeof e.response?.data == "string" ? (n(),
|
|
143
|
+
}, null, 8, ["id", "reader"])) : q.value && typeof e.response?.data == "string" ? (n(), t(M, {
|
|
148
144
|
key: 1,
|
|
149
145
|
id: a.value.Body,
|
|
150
146
|
content: e.response.data,
|
|
151
147
|
data: e.response?.data,
|
|
152
148
|
headers: p.value,
|
|
153
149
|
role: o.value === "All" ? "none" : "tabpanel"
|
|
154
|
-
}, null, 8, ["id", "content", "data", "headers", "role"])) : (n(),
|
|
150
|
+
}, null, 8, ["id", "content", "data", "headers", "role"])) : (n(), t(U, {
|
|
155
151
|
key: 2,
|
|
156
152
|
id: a.value.Body,
|
|
157
153
|
active: !0,
|
|
@@ -163,7 +159,7 @@ const W = { class: "flex h-8 flex-1 items-center" }, X = ["id", "role"], b = 2e5
|
|
|
163
159
|
title: "Body"
|
|
164
160
|
}, null, 8, ["id", "data", "headers", "role"]))
|
|
165
161
|
], 64)) : d("", !0)
|
|
166
|
-
], 64)) : (n(),
|
|
162
|
+
], 64)) : (n(), t(G, {
|
|
167
163
|
key: 0,
|
|
168
164
|
appVersion: e.appVersion,
|
|
169
165
|
events: e.events,
|
|
@@ -176,13 +172,13 @@ const W = { class: "flex h-8 flex-1 items-center" }, X = ["id", "role"], b = 2e5
|
|
|
176
172
|
onOpenCommandPalette: s[2] || (s[2] = (l) => e.eventBus.emit("ui:open:command-palette")),
|
|
177
173
|
onSendRequest: s[3] || (s[3] = (l) => T("sendRequest"))
|
|
178
174
|
}, null, 8, ["appVersion", "events", "layout", "totalPerformedRequests"])),
|
|
179
|
-
h(
|
|
180
|
-
], 10,
|
|
175
|
+
h(J, { events: e.events }, null, 8, ["events"])
|
|
176
|
+
], 10, x)
|
|
181
177
|
]),
|
|
182
178
|
_: 1
|
|
183
179
|
}));
|
|
184
180
|
}
|
|
185
181
|
});
|
|
186
182
|
export {
|
|
187
|
-
|
|
183
|
+
ce as default
|
|
188
184
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Headers.vue.d.ts","sourceRoot":"","sources":["../../../../../src/v2/blocks/response-block/components/Headers.vue"],"names":[],"mappings":"AA8EA,KAAK,MAAM,GAAG;IAAE,IAAI,EAAE,MAAM,CAAC;IAAC,KAAK,EAAE,MAAM,CAAA;CAAE,CAAA;AAE7C,KAAK,WAAW,GAAG;IACjB,OAAO,EAAE,MAAM,EAAE,CAAA;CAClB,CAAC;
|
|
1
|
+
{"version":3,"file":"Headers.vue.d.ts","sourceRoot":"","sources":["../../../../../src/v2/blocks/response-block/components/Headers.vue"],"names":[],"mappings":"AA8EA,KAAK,MAAM,GAAG;IAAE,IAAI,EAAE,MAAM,CAAC;IAAC,KAAK,EAAE,MAAM,CAAA;CAAE,CAAA;AAE7C,KAAK,WAAW,GAAG;IACjB,OAAO,EAAE,MAAM,EAAE,CAAA;CAClB,CAAC;AAsKF,QAAA,IAAI,OAAO,IAAW,CAAE;AACxB,KAAK,WAAW,GAAG,EAAE,GACnB;IAAE,KAAK,CAAC,EAAE,CAAC,KAAK,EAAE,OAAO,OAAO,KAAK,GAAG,CAAA;CAAE,CAAC;AA0B7C,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,81 +1,81 @@
|
|
|
1
|
-
import { defineComponent as x, createBlock as f, openBlock as t, unref as m, withCtx as e, createElementBlock as
|
|
2
|
-
import
|
|
1
|
+
import { defineComponent as x, createBlock as f, openBlock as t, unref as m, withCtx as e, createElementBlock as l, createVNode as s, createTextVNode as n, Fragment as d, renderList as h, toDisplayString as i, renderSlot as y } from "vue";
|
|
2
|
+
import g from "../../../../components/DataTable/DataTable.vue.js";
|
|
3
3
|
import c from "../../../../components/DataTable/DataTableRow.vue.js";
|
|
4
4
|
import p from "../../../../components/DataTable/DataTableText.vue.js";
|
|
5
|
-
import
|
|
6
|
-
import { httpHeaders as
|
|
7
|
-
import
|
|
5
|
+
import k from "../../../../components/HelpfulLink.vue.js";
|
|
6
|
+
import { httpHeaders as w } from "../../../../data/httpHeaders.js";
|
|
7
|
+
import b from "../../../components/layout/CollapsibleSection.vue.js";
|
|
8
8
|
import _ from "../../../../components/DataTable/DataTableHeader.vue.js";
|
|
9
9
|
const C = {
|
|
10
10
|
key: 0,
|
|
11
11
|
class: "max-h-[calc(100%-32px)] overflow-y-auto"
|
|
12
|
-
},
|
|
12
|
+
}, $ = {
|
|
13
13
|
key: 1,
|
|
14
|
-
class: "text-c-3 bg-b-1 flex min-h-
|
|
14
|
+
class: "text-c-3 bg-b-1 flex min-h-[64px] items-center justify-center border-t px-4 text-sm"
|
|
15
15
|
}, T = /* @__PURE__ */ x({
|
|
16
16
|
__name: "Headers",
|
|
17
17
|
props: {
|
|
18
18
|
headers: {}
|
|
19
19
|
},
|
|
20
|
-
setup(
|
|
21
|
-
const
|
|
20
|
+
setup(v) {
|
|
21
|
+
const u = (r) => w.find(
|
|
22
22
|
(o) => o.name.toLowerCase() === r.toLowerCase()
|
|
23
23
|
);
|
|
24
|
-
return (r, o) => (t(), f(m(
|
|
24
|
+
return (r, o) => (t(), f(m(b), {
|
|
25
25
|
class: "overflow-auto",
|
|
26
26
|
defaultOpen: !1,
|
|
27
27
|
itemCount: r.headers.length
|
|
28
28
|
}, {
|
|
29
29
|
title: e(() => [
|
|
30
|
-
|
|
30
|
+
y(r.$slots, "title")
|
|
31
31
|
]),
|
|
32
32
|
default: e(() => [
|
|
33
|
-
r.headers.length ? (t(),
|
|
34
|
-
|
|
33
|
+
r.headers.length ? (t(), l("div", C, [
|
|
34
|
+
s(g, {
|
|
35
35
|
columns: ["minmax(auto, min-content)", "minmax(50%, 1fr)"],
|
|
36
36
|
scroll: ""
|
|
37
37
|
}, {
|
|
38
38
|
default: e(() => [
|
|
39
|
-
|
|
39
|
+
s(c, { class: "sr-only !block" }, {
|
|
40
40
|
default: e(() => [
|
|
41
|
-
|
|
41
|
+
s(m(_), null, {
|
|
42
42
|
default: e(() => [...o[0] || (o[0] = [
|
|
43
|
-
|
|
43
|
+
n("Header Key", -1)
|
|
44
44
|
])]),
|
|
45
45
|
_: 1
|
|
46
46
|
}),
|
|
47
|
-
|
|
47
|
+
s(m(_), null, {
|
|
48
48
|
default: e(() => [...o[1] || (o[1] = [
|
|
49
|
-
|
|
49
|
+
n("Header Value", -1)
|
|
50
50
|
])]),
|
|
51
51
|
_: 1
|
|
52
52
|
})
|
|
53
53
|
]),
|
|
54
54
|
_: 1
|
|
55
55
|
}),
|
|
56
|
-
(t(!0),
|
|
56
|
+
(t(!0), l(d, null, h(r.headers, (a) => (t(), f(c, {
|
|
57
57
|
key: a.name,
|
|
58
58
|
class: "group/row text-c-1"
|
|
59
59
|
}, {
|
|
60
60
|
default: e(() => [
|
|
61
|
-
|
|
61
|
+
s(p, { class: "bg-b-1 sticky left-0 z-1 max-w-full group-first/row:border-t-0" }, {
|
|
62
62
|
default: e(() => [
|
|
63
|
-
typeof
|
|
63
|
+
typeof u(a.name)?.url == "string" ? (t(), f(k, {
|
|
64
64
|
key: 0,
|
|
65
65
|
class: "decoration-c-3",
|
|
66
|
-
href:
|
|
66
|
+
href: u(a.name).url
|
|
67
67
|
}, {
|
|
68
68
|
default: e(() => [
|
|
69
|
-
|
|
69
|
+
n(i(a.name), 1)
|
|
70
70
|
]),
|
|
71
71
|
_: 2
|
|
72
|
-
}, 1032, ["href"])) : (t(),
|
|
73
|
-
|
|
72
|
+
}, 1032, ["href"])) : (t(), l(d, { key: 1 }, [
|
|
73
|
+
n(i(a.name), 1)
|
|
74
74
|
], 64))
|
|
75
75
|
]),
|
|
76
76
|
_: 2
|
|
77
77
|
}, 1024),
|
|
78
|
-
|
|
78
|
+
s(p, {
|
|
79
79
|
class: "z-0 group-first/row:border-t-0",
|
|
80
80
|
text: a.value
|
|
81
81
|
}, null, 8, ["text"])
|
|
@@ -85,7 +85,7 @@ const C = {
|
|
|
85
85
|
]),
|
|
86
86
|
_: 1
|
|
87
87
|
})
|
|
88
|
-
])) : (t(),
|
|
88
|
+
])) : (t(), l("div", $, " No headers "))
|
|
89
89
|
]),
|
|
90
90
|
_: 3
|
|
91
91
|
}, 8, ["itemCount"]));
|
|
@@ -5,7 +5,7 @@ import m from "../../../../components/DataTable/DataTableText.vue.js";
|
|
|
5
5
|
import d from "../../../components/layout/CollapsibleSection.vue.js";
|
|
6
6
|
const x = {
|
|
7
7
|
key: 1,
|
|
8
|
-
class: "text-c-3 bg-b-1 flex min-h-[
|
|
8
|
+
class: "text-c-3 bg-b-1 flex min-h-[64px] items-center justify-center border-t px-4 text-sm"
|
|
9
9
|
}, N = /* @__PURE__ */ c({
|
|
10
10
|
__name: "ResponseCookies",
|
|
11
11
|
props: {
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Parse a Set-Cookie header value into name and value.
|
|
3
|
+
*
|
|
4
|
+
* Set-Cookie headers have the format: name=value; attribute1; attribute2=value2
|
|
5
|
+
* We extract just the cookie name and value (the part before the first semicolon).
|
|
6
|
+
*
|
|
7
|
+
* @param setCookieValue - The full Set-Cookie header value
|
|
8
|
+
* @returns Object with cookie name and value, or null if parsing fails
|
|
9
|
+
*
|
|
10
|
+
* @example
|
|
11
|
+
* parseSetCookie('sessionId=abc123; Path=/; HttpOnly')
|
|
12
|
+
* // Returns: { name: 'sessionId', value: 'abc123; Path=/; HttpOnly' }
|
|
13
|
+
*/
|
|
14
|
+
export declare const parseSetCookie: (setCookieValue: string) => {
|
|
15
|
+
name: string;
|
|
16
|
+
value: string;
|
|
17
|
+
} | null;
|
|
18
|
+
//# sourceMappingURL=parse-set-cookie.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"parse-set-cookie.d.ts","sourceRoot":"","sources":["../../../../../src/v2/blocks/response-block/helpers/parse-set-cookie.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;GAYG;AACH,eAAO,MAAM,cAAc,GAAI,gBAAgB,MAAM,KAAG;IAAE,IAAI,EAAE,MAAM,CAAC;IAAC,KAAK,EAAE,MAAM,CAAA;CAAE,GAAG,IAuBzF,CAAA"}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
const i = (n) => {
|
|
2
|
+
if (!n || typeof n != "string")
|
|
3
|
+
return null;
|
|
4
|
+
const r = n.indexOf("=");
|
|
5
|
+
if (r === -1)
|
|
6
|
+
return null;
|
|
7
|
+
const t = n.substring(0, r).trim(), s = n.substring(r + 1).trim();
|
|
8
|
+
return t ? { name: t, value: s } : null;
|
|
9
|
+
};
|
|
10
|
+
export {
|
|
11
|
+
i as parseSetCookie
|
|
12
|
+
};
|
|
@@ -2,14 +2,14 @@ import s from "whatwg-mimetype";
|
|
|
2
2
|
import { extractFilename as p } from "./extract-filename.js";
|
|
3
3
|
const f = (e) => e instanceof Blob;
|
|
4
4
|
function y({ data: e, headers: o }) {
|
|
5
|
-
const
|
|
5
|
+
const r = o.find((n) => n.name.toLowerCase() === "content-type"), t = r?.value ? new s(r.value) : void 0, i = p(
|
|
6
6
|
o.find((n) => n.name.toLowerCase() === "content-disposition")?.value ?? ""
|
|
7
7
|
), c = f(e) ? URL.createObjectURL(e) : typeof e == "string" ? URL.createObjectURL(new Blob([e], { type: t ? t.toString() : void 0 })) : e instanceof Object && Object.keys(e).length ? URL.createObjectURL(
|
|
8
8
|
new Blob([JSON.stringify(e)], {
|
|
9
9
|
type: t ? t.toString() : void 0
|
|
10
10
|
})
|
|
11
11
|
) : "";
|
|
12
|
-
return { mimeType: t, attachmentFilename:
|
|
12
|
+
return { mimeType: t, attachmentFilename: i, dataUrl: c };
|
|
13
13
|
}
|
|
14
14
|
export {
|
|
15
15
|
y as processResponseBody
|
|
@@ -17,31 +17,20 @@ type __VLS_Props = {
|
|
|
17
17
|
history: History[];
|
|
18
18
|
/** Client layout */
|
|
19
19
|
layout: ClientLayout;
|
|
20
|
-
/** The amount remaining to load from 100 -> 0 */
|
|
21
|
-
percentage?: number;
|
|
22
20
|
/** Event bus */
|
|
23
21
|
eventBus: WorkspaceEventBus;
|
|
24
22
|
/** Environment */
|
|
25
23
|
environment: XScalarEnvironment;
|
|
26
24
|
};
|
|
27
|
-
declare const _default: import("vue").DefineComponent<__VLS_Props, {
|
|
25
|
+
declare const _default: import("vue").DefineComponent<__VLS_Props, {
|
|
26
|
+
methodConflict: import("vue").Ref<"delete" | "get" | "head" | "options" | "patch" | "post" | "put" | "trace" | null, "delete" | "get" | "head" | "options" | "patch" | "post" | "put" | "trace" | null>;
|
|
27
|
+
pathConflict: import("vue").Ref<string | null, string | null>;
|
|
28
|
+
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {} & {
|
|
28
29
|
execute: () => any;
|
|
29
30
|
"update:servers": () => any;
|
|
30
|
-
"update:path": (payload: {
|
|
31
|
-
value: string;
|
|
32
|
-
}) => any;
|
|
33
|
-
"update:method": (payload: {
|
|
34
|
-
value: HttpMethodType;
|
|
35
|
-
}) => any;
|
|
36
31
|
}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{
|
|
37
32
|
onExecute?: (() => any) | undefined;
|
|
38
33
|
"onUpdate:servers"?: (() => any) | undefined;
|
|
39
|
-
"onUpdate:path"?: ((payload: {
|
|
40
|
-
value: string;
|
|
41
|
-
}) => any) | undefined;
|
|
42
|
-
"onUpdate:method"?: ((payload: {
|
|
43
|
-
value: HttpMethodType;
|
|
44
|
-
}) => any) | undefined;
|
|
45
34
|
}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
46
35
|
export default _default;
|
|
47
36
|
//# sourceMappingURL=AddressBar.vue.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"AddressBar.vue.d.ts","sourceRoot":"","sources":["../../../../../src/v2/blocks/scalar-address-bar-block/components/AddressBar.vue"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"AddressBar.vue.d.ts","sourceRoot":"","sources":["../../../../../src/v2/blocks/scalar-address-bar-block/components/AddressBar.vue"],"names":[],"mappings":"AA8ZA,OAAO,KAAK,EAAE,UAAU,IAAI,cAAc,EAAE,MAAM,mCAAmC,CAAA;AAErF,OAAO,KAAK,EAEV,iBAAiB,EAClB,MAAM,gCAAgC,CAAA;AACvC,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,2EAA2E,CAAA;AACnH,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,8DAA8D,CAAA;AAWhG,OAAO,EAAE,KAAK,YAAY,EAAE,MAAM,SAAS,CAAA;AAK3C,OAA0B,EAAE,KAAK,OAAO,EAAE,MAAM,yBAAyB,CAAA;AAEzE,KAAK,WAAW,GAAG;IACjB,2BAA2B;IAC3B,IAAI,EAAE,MAAM,CAAA;IACZ,6BAA6B;IAC7B,MAAM,EAAE,cAAc,CAAA;IACtB,gCAAgC;IAChC,MAAM,EAAE,YAAY,GAAG,IAAI,CAAA;IAC3B,mDAAmD;IACnD,OAAO,EAAE,YAAY,EAAE,CAAA;IACvB,8BAA8B;IAC9B,OAAO,EAAE,OAAO,EAAE,CAAA;IAClB,oBAAoB;IACpB,MAAM,EAAE,YAAY,CAAA;IACpB,gBAAgB;IAChB,QAAQ,EAAE,iBAAiB,CAAA;IAC3B,kBAAkB;IAClB,WAAW,EAAE,kBAAkB,CAAA;CAChC,CAAC;;;;;;;;;;;AA0iBF,wBAQG"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import o from "./AddressBar.vue2.js";
|
|
2
2
|
/* empty css */
|
|
3
3
|
import r from "../../../../_virtual/_plugin-vue_export-helper.js";
|
|
4
|
-
const
|
|
4
|
+
const m = /* @__PURE__ */ r(o, [["__scopeId", "data-v-3bb71855"]]);
|
|
5
5
|
export {
|
|
6
|
-
|
|
6
|
+
m as default
|
|
7
7
|
};
|