@scalar/api-client 2.42.0 → 3.0.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 +45 -0
- package/README.md +82 -74
- package/dist/components/HttpMethod/HttpMethod.vue.d.ts +3 -3
- package/dist/components/HttpMethod/HttpMethod.vue.d.ts.map +1 -1
- package/dist/components/HttpMethod/HttpMethod.vue.js +1 -1
- package/dist/components/HttpMethod/HttpMethod.vue.js.map +1 -1
- package/dist/components/HttpMethod/HttpMethod.vue.script.js +3 -2
- package/dist/components/HttpMethod/HttpMethod.vue.script.js.map +1 -1
- package/dist/components/IconSelector.vue.script.js +1 -1
- package/dist/components/Server/index.d.ts +0 -2
- package/dist/components/Server/index.d.ts.map +1 -1
- package/dist/components/Server/index.js +1 -3
- package/dist/components/Sidebar/Actions/DeleteSidebarListElement.vue.d.ts +2 -2
- package/dist/hooks/{useFileDialog.d.ts → use-file-dialog.d.ts} +3 -2
- package/dist/hooks/use-file-dialog.d.ts.map +1 -0
- package/dist/hooks/{useFileDialog.js → use-file-dialog.js} +2 -2
- package/dist/hooks/use-file-dialog.js.map +1 -0
- package/dist/index.d.ts +0 -3
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +0 -5
- package/dist/monacoeditorwork/editor.worker.bundle.js +222 -366
- package/dist/monacoeditorwork/json.worker.bundle.js +388 -501
- package/dist/monacoeditorwork/yaml.worker.bundle.js +14567 -22937
- package/dist/style.css +6059 -7674
- package/dist/v2/blocks/operation-block/OperationBlock.vue.d.ts +4 -1
- package/dist/v2/blocks/operation-block/OperationBlock.vue.d.ts.map +1 -1
- package/dist/v2/blocks/operation-block/OperationBlock.vue.js.map +1 -1
- package/dist/v2/blocks/operation-block/OperationBlock.vue.script.js +13 -10
- package/dist/v2/blocks/operation-block/OperationBlock.vue.script.js.map +1 -1
- package/dist/v2/blocks/operation-block/components/Header.vue.d.ts +1 -1
- package/dist/v2/blocks/operation-block/components/Header.vue.d.ts.map +1 -1
- package/dist/v2/blocks/operation-block/components/Header.vue.js +1 -1
- package/dist/v2/blocks/operation-block/components/Header.vue.js.map +1 -1
- package/dist/v2/blocks/operation-block/components/Header.vue.script.js +2 -2
- package/dist/v2/blocks/operation-block/components/Header.vue.script.js.map +1 -1
- package/dist/v2/blocks/operation-block/components/OpenApiClientButton.vue.d.ts.map +1 -0
- package/dist/{components → v2/blocks/operation-block/components}/OpenApiClientButton.vue.js +3 -3
- package/dist/v2/blocks/operation-block/components/OpenApiClientButton.vue.js.map +1 -0
- package/dist/{components → v2/blocks/operation-block/components}/OpenApiClientButton.vue.script.js +6 -7
- package/dist/v2/blocks/operation-block/components/OpenApiClientButton.vue.script.js.map +1 -0
- package/dist/v2/blocks/operation-block/helpers/decode-buffer.js +3 -3
- package/dist/v2/blocks/operation-block/helpers/decode-buffer.js.map +1 -1
- package/dist/v2/blocks/operation-block/helpers/response-cache.d.ts +1 -1
- package/dist/v2/blocks/operation-block/helpers/response-cache.d.ts.map +1 -1
- package/dist/v2/blocks/operation-block/helpers/response-cache.js.map +1 -1
- package/dist/v2/blocks/operation-block/helpers/send-request.d.ts +1 -1
- package/dist/v2/blocks/operation-block/helpers/send-request.d.ts.map +1 -1
- package/dist/v2/blocks/operation-block/helpers/send-request.js +25 -4
- package/dist/v2/blocks/operation-block/helpers/send-request.js.map +1 -1
- package/dist/v2/blocks/operation-block/index.d.ts +1 -0
- package/dist/v2/blocks/operation-block/index.d.ts.map +1 -1
- package/dist/v2/blocks/operation-block/index.js +2 -1
- 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 +1 -1
- package/dist/v2/blocks/operation-code-sample/helpers/generate-code-snippet.js.map +1 -1
- package/dist/{views/Components/CodeSnippet → v2/blocks/operation-code-sample}/helpers/get-snippet.d.ts +1 -1
- package/dist/v2/blocks/operation-code-sample/helpers/get-snippet.d.ts.map +1 -0
- package/dist/{views/Components/CodeSnippet → v2/blocks/operation-code-sample}/helpers/get-snippet.js +2 -3
- package/dist/v2/blocks/operation-code-sample/helpers/get-snippet.js.map +1 -0
- package/dist/v2/blocks/operation-code-sample/helpers/operation-to-har/process-server-url.js +1 -1
- package/dist/v2/blocks/request-block/RequestBlock.vue.d.ts +4 -1
- 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.vue.js.map +1 -1
- package/dist/v2/blocks/request-block/RequestBlock.vue.script.js +4 -1
- package/dist/v2/blocks/request-block/RequestBlock.vue.script.js.map +1 -1
- package/dist/v2/blocks/request-block/components/RequestBody.vue.js +1 -1
- package/dist/v2/blocks/request-block/components/RequestBody.vue.js.map +1 -1
- package/dist/v2/blocks/request-block/components/RequestBody.vue.script.js +2 -2
- package/dist/v2/blocks/request-block/components/RequestBody.vue.script.js.map +1 -1
- package/dist/v2/blocks/request-block/components/RequestBodyForm.vue.js.map +1 -1
- package/dist/v2/blocks/request-block/components/RequestBodyForm.vue.script.js +1 -1
- package/dist/v2/blocks/request-block/components/RequestBodyForm.vue.script.js.map +1 -1
- package/dist/v2/blocks/request-block/components/RequestTable.vue.d.ts +6 -6
- package/dist/v2/blocks/request-block/components/RequestTable.vue.d.ts.map +1 -1
- package/dist/v2/blocks/request-block/components/RequestTableRow.vue.d.ts +6 -6
- package/dist/v2/blocks/request-block/components/RequestTableRow.vue.d.ts.map +1 -1
- package/dist/v2/blocks/request-block/helpers/get-default-headers.d.ts.map +1 -1
- package/dist/v2/blocks/request-block/helpers/get-default-headers.js +1 -1
- package/dist/v2/blocks/request-block/helpers/get-default-headers.js.map +1 -1
- package/dist/v2/blocks/response-block/ResponseBlock.vue.d.ts +2 -2
- package/dist/v2/blocks/response-block/ResponseBlock.vue.d.ts.map +1 -1
- package/dist/v2/blocks/response-block/ResponseBlock.vue.js +1 -1
- package/dist/v2/blocks/response-block/ResponseBlock.vue.js.map +1 -1
- package/dist/v2/blocks/response-block/ResponseBlock.vue.script.js +1 -1
- package/dist/v2/blocks/response-block/ResponseBlock.vue.script.js.map +1 -1
- package/dist/v2/blocks/response-block/components/Headers.vue.d.ts.map +1 -1
- package/dist/v2/blocks/response-block/components/Headers.vue.js.map +1 -1
- package/dist/v2/blocks/response-block/components/Headers.vue.script.js +11 -13
- package/dist/v2/blocks/response-block/components/Headers.vue.script.js.map +1 -1
- package/dist/v2/blocks/response-block/components/ResponseBody.vue.script.js +1 -1
- package/dist/v2/blocks/response-block/components/ResponseBodyDownload.vue.js.map +1 -1
- package/dist/v2/blocks/response-block/components/ResponseBodyDownload.vue.script.js +1 -1
- package/dist/v2/blocks/response-block/components/ResponseBodyDownload.vue.script.js.map +1 -1
- package/dist/v2/blocks/response-block/components/ResponseBodyPreview.vue.d.ts +1 -1
- package/dist/v2/blocks/response-block/components/ResponseBodyPreview.vue.d.ts.map +1 -1
- package/dist/v2/blocks/response-block/components/ResponseBodyPreview.vue.js +1 -1
- package/dist/v2/blocks/response-block/components/ResponseBodyPreview.vue.js.map +1 -1
- package/dist/v2/blocks/response-block/components/ResponseBodyPreview.vue.script.js.map +1 -1
- package/dist/v2/blocks/response-block/components/ResponseBodyRaw.vue.script.js +1 -1
- package/dist/v2/blocks/response-block/components/ResponseBodyVirtual.vue.d.ts.map +1 -1
- package/dist/v2/blocks/response-block/components/ResponseBodyVirtual.vue.js.map +1 -1
- package/dist/v2/blocks/response-block/components/ResponseBodyVirtual.vue.script.js +2 -1
- package/dist/v2/blocks/response-block/components/ResponseBodyVirtual.vue.script.js.map +1 -1
- package/dist/v2/blocks/response-block/components/ResponseCookies.vue.d.ts.map +1 -1
- package/dist/v2/blocks/response-block/components/ResponseCookies.vue.js.map +1 -1
- package/dist/v2/blocks/response-block/components/ResponseCookies.vue.script.js +35 -12
- package/dist/v2/blocks/response-block/components/ResponseCookies.vue.script.js.map +1 -1
- package/dist/v2/blocks/response-block/components/ResponseEmpty.vue.d.ts +3 -3
- package/dist/v2/blocks/response-block/components/ResponseEmpty.vue.d.ts.map +1 -1
- package/dist/v2/blocks/response-block/components/ResponseEmpty.vue.js +1 -1
- package/dist/v2/blocks/response-block/components/ResponseEmpty.vue.js.map +1 -1
- package/dist/v2/blocks/response-block/components/ResponseEmpty.vue.script.js.map +1 -1
- package/dist/v2/blocks/response-block/components/ResponseMetaInformation.vue.d.ts +1 -1
- package/dist/v2/blocks/response-block/components/ResponseMetaInformation.vue.d.ts.map +1 -1
- package/dist/v2/blocks/response-block/components/ResponseMetaInformation.vue.js.map +1 -1
- package/dist/v2/blocks/response-block/components/ResponseMetaInformation.vue.script.js +1 -1
- package/dist/v2/blocks/response-block/components/ResponseMetaInformation.vue.script.js.map +1 -1
- package/dist/v2/blocks/response-block/helpers/get-content-length.d.ts +1 -1
- package/dist/v2/blocks/response-block/helpers/get-content-length.d.ts.map +1 -1
- package/dist/v2/blocks/response-block/helpers/get-content-length.js.map +1 -1
- package/dist/v2/blocks/response-block/helpers/media-types.d.ts +1 -1
- package/dist/v2/blocks/response-block/helpers/media-types.d.ts.map +1 -1
- package/dist/v2/blocks/response-block/helpers/media-types.js +10 -1
- package/dist/v2/blocks/response-block/helpers/media-types.js.map +1 -1
- package/dist/v2/blocks/response-block/helpers/process-response-body.d.ts +1 -2
- package/dist/v2/blocks/response-block/helpers/process-response-body.d.ts.map +1 -1
- package/dist/v2/blocks/response-block/helpers/process-response-body.js +2 -2
- package/dist/v2/blocks/response-block/helpers/process-response-body.js.map +1 -1
- package/dist/v2/blocks/scalar-address-bar-block/components/AddressBar.vue.d.ts +2 -2
- 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.vue.js.map +1 -1
- package/dist/v2/blocks/scalar-address-bar-block/components/AddressBar.vue.script.js +16 -4
- package/dist/v2/blocks/scalar-address-bar-block/components/AddressBar.vue.script.js.map +1 -1
- package/dist/v2/blocks/scalar-address-bar-block/components/AddressBarHistory.vue.js +1 -1
- package/dist/v2/blocks/scalar-address-bar-block/components/AddressBarHistory.vue.js.map +1 -1
- package/dist/v2/blocks/scalar-address-bar-block/components/AddressBarHistory.vue.script.js +2 -2
- package/dist/v2/blocks/scalar-address-bar-block/components/AddressBarHistory.vue.script.js.map +1 -1
- package/dist/v2/blocks/scalar-auth-selector-block/components/AuthSelector.vue.d.ts +3 -0
- 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.map +1 -1
- package/dist/v2/blocks/scalar-auth-selector-block/components/AuthSelector.vue.script.js +4 -1
- package/dist/v2/blocks/scalar-auth-selector-block/components/AuthSelector.vue.script.js.map +1 -1
- package/dist/v2/blocks/scalar-auth-selector-block/components/DeleteRequestAuthModal.vue.d.ts +2 -2
- package/dist/v2/blocks/scalar-auth-selector-block/components/OAuth2.vue.d.ts +31 -6
- 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/OAuth2.vue.js.map +1 -1
- package/dist/v2/blocks/scalar-auth-selector-block/components/OAuth2.vue.script.js +6 -8
- package/dist/v2/blocks/scalar-auth-selector-block/components/OAuth2.vue.script.js.map +1 -1
- package/dist/v2/blocks/scalar-auth-selector-block/components/OAuthScopesAddModal.vue.d.ts.map +1 -1
- package/dist/v2/blocks/scalar-auth-selector-block/components/OAuthScopesAddModal.vue.js +1 -1
- package/dist/v2/blocks/scalar-auth-selector-block/components/OAuthScopesAddModal.vue.js.map +1 -1
- package/dist/v2/blocks/scalar-auth-selector-block/components/OAuthScopesAddModal.vue.script.js +5 -5
- package/dist/v2/blocks/scalar-auth-selector-block/components/OAuthScopesAddModal.vue.script.js.map +1 -1
- package/dist/v2/blocks/scalar-auth-selector-block/components/OAuthScopesInput.vue.js.map +1 -1
- package/dist/v2/blocks/scalar-auth-selector-block/components/OAuthScopesInput.vue.script.js +3 -3
- package/dist/v2/blocks/scalar-auth-selector-block/components/OAuthScopesInput.vue.script.js.map +1 -1
- package/dist/v2/blocks/scalar-auth-selector-block/components/OpenIDConnect.vue.js.map +1 -1
- package/dist/v2/blocks/scalar-auth-selector-block/components/OpenIDConnect.vue.script.js +1 -1
- package/dist/v2/blocks/scalar-auth-selector-block/components/OpenIDConnect.vue.script.js.map +1 -1
- package/dist/v2/blocks/scalar-auth-selector-block/components/RequestAuthDataTable.vue.d.ts +3 -0
- 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.map +1 -1
- package/dist/v2/blocks/scalar-auth-selector-block/components/RequestAuthDataTable.vue.script.js +6 -3
- package/dist/v2/blocks/scalar-auth-selector-block/components/RequestAuthDataTable.vue.script.js.map +1 -1
- package/dist/v2/blocks/scalar-auth-selector-block/components/RequestAuthDataTableInput.vue.d.ts +1 -1
- package/dist/v2/blocks/scalar-auth-selector-block/components/RequestAuthTab.vue.d.ts +3 -0
- 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.map +1 -1
- package/dist/v2/blocks/scalar-auth-selector-block/components/RequestAuthTab.vue.script.js +4 -1
- package/dist/v2/blocks/scalar-auth-selector-block/components/RequestAuthTab.vue.script.js.map +1 -1
- package/dist/v2/blocks/scalar-auth-selector-block/helpers/fetch-openid-connect-discovery.d.ts +1 -1
- package/dist/v2/blocks/scalar-auth-selector-block/helpers/fetch-openid-connect-discovery.d.ts.map +1 -1
- package/dist/v2/blocks/scalar-auth-selector-block/helpers/fetch-openid-connect-discovery.js.map +1 -1
- 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 +3 -3
- package/dist/v2/blocks/scalar-auth-selector-block/helpers/oauth.js.map +1 -1
- package/dist/v2/blocks/scalar-auth-selector-block/helpers/resolve-default-oauth2-redirect-url.d.ts +11 -0
- package/dist/v2/blocks/scalar-auth-selector-block/helpers/resolve-default-oauth2-redirect-url.d.ts.map +1 -0
- package/dist/v2/blocks/scalar-auth-selector-block/helpers/resolve-default-oauth2-redirect-url.js +18 -0
- package/dist/v2/blocks/scalar-auth-selector-block/helpers/resolve-default-oauth2-redirect-url.js.map +1 -0
- package/dist/v2/components/code-input/CodeInput.vue.d.ts +4 -3
- package/dist/v2/components/code-input/CodeInput.vue.d.ts.map +1 -1
- package/dist/v2/components/code-input/CodeInput.vue.js +1 -1
- package/dist/v2/components/code-input/CodeInput.vue.js.map +1 -1
- package/dist/v2/components/code-input/CodeInput.vue.script.js +8 -0
- package/dist/v2/components/code-input/CodeInput.vue.script.js.map +1 -1
- package/dist/{views/Collection/CollectionNavigation.vue.d.ts → v2/components/code-input/PillTooltipHost.vue.d.ts} +3 -2
- package/dist/v2/components/code-input/PillTooltipHost.vue.d.ts.map +1 -0
- package/dist/v2/components/code-input/PillTooltipHost.vue.js +7 -0
- package/dist/v2/components/code-input/PillTooltipHost.vue.js.map +1 -0
- package/dist/v2/components/code-input/PillTooltipHost.vue.script.js +40 -0
- package/dist/v2/components/code-input/PillTooltipHost.vue.script.js.map +1 -0
- package/dist/v2/components/code-input/code-variable-widget.d.ts +1 -0
- package/dist/v2/components/code-input/code-variable-widget.d.ts.map +1 -1
- package/dist/v2/components/code-input/code-variable-widget.js +33 -20
- package/dist/v2/components/code-input/code-variable-widget.js.map +1 -1
- package/dist/v2/components/code-input/pill-context.d.ts +11 -0
- package/dist/v2/components/code-input/pill-context.d.ts.map +1 -0
- package/dist/v2/components/data-table/DataTableInput.vue.d.ts +3 -3
- package/dist/v2/components/data-table/DataTableInput.vue.d.ts.map +1 -1
- package/dist/v2/components/layout/CollapsibleSection.vue.d.ts.map +1 -1
- package/dist/v2/components/layout/CollapsibleSection.vue.js.map +1 -1
- package/dist/v2/components/layout/CollapsibleSection.vue.script.js +5 -2
- package/dist/v2/components/layout/CollapsibleSection.vue.script.js.map +1 -1
- package/dist/v2/components/modals/DeleteModal.vue.d.ts +2 -2
- package/dist/v2/components/modals/ModalClientContainer.vue.d.ts +2 -2
- package/dist/v2/components/server/ServerDropdown.vue.d.ts +1 -1
- package/dist/v2/components/server/ServerDropdown.vue.d.ts.map +1 -1
- package/dist/v2/components/server/ServerDropdown.vue.js.map +1 -1
- package/dist/v2/components/server/ServerDropdown.vue.script.js.map +1 -1
- package/dist/v2/components/sidebar/Sidebar.vue.d.ts.map +1 -1
- package/dist/v2/components/sidebar/Sidebar.vue.js.map +1 -1
- package/dist/v2/components/sidebar/Sidebar.vue.script.js +10 -5
- package/dist/v2/components/sidebar/Sidebar.vue.script.js.map +1 -1
- package/dist/v2/constants.js +1 -1
- package/dist/v2/features/app/App.vue.script.js +1 -1
- package/dist/v2/features/app/app-events.d.ts.map +1 -1
- package/dist/v2/features/app/app-events.js +8 -0
- package/dist/v2/features/app/app-events.js.map +1 -1
- package/dist/v2/features/app/app-state.js +6 -6
- 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.vue.js.map +1 -1
- package/dist/v2/features/app/components/AppSidebar.vue.script.js +21 -12
- package/dist/v2/features/app/components/AppSidebar.vue.script.js.map +1 -1
- package/dist/v2/features/app/components/CreateWorkspaceModal.vue.d.ts.map +1 -1
- package/dist/v2/features/app/components/CreateWorkspaceModal.vue.js.map +1 -1
- package/dist/v2/features/app/components/CreateWorkspaceModal.vue.script.js +4 -4
- package/dist/v2/features/app/components/CreateWorkspaceModal.vue.script.js.map +1 -1
- package/dist/v2/features/app/components/DesktopTab.vue.d.ts +4 -4
- package/dist/v2/features/app/components/DesktopTab.vue.d.ts.map +1 -1
- package/dist/v2/features/app/components/DesktopTab.vue.js +1 -1
- package/dist/v2/features/app/components/DesktopTab.vue.js.map +1 -1
- package/dist/v2/features/app/components/DesktopTab.vue.script.js +2 -2
- package/dist/v2/features/app/components/DesktopTab.vue.script.js.map +1 -1
- package/dist/v2/features/app/components/SidebarItemMenu.vue.d.ts +3 -0
- package/dist/v2/features/app/components/SidebarItemMenu.vue.d.ts.map +1 -1
- package/dist/v2/features/app/components/SidebarItemMenu.vue.js.map +1 -1
- package/dist/v2/features/app/components/SidebarItemMenu.vue.script.js +30 -30
- package/dist/v2/features/app/components/SidebarItemMenu.vue.script.js.map +1 -1
- package/dist/v2/features/app/helpers/create-temp-operation.d.ts +14 -0
- package/dist/v2/features/app/helpers/create-temp-operation.d.ts.map +1 -0
- package/dist/v2/features/app/helpers/create-temp-operation.js +52 -0
- package/dist/v2/features/app/helpers/create-temp-operation.js.map +1 -0
- package/dist/v2/features/app/helpers/routes.d.ts +2 -2
- package/dist/v2/features/app/helpers/routes.d.ts.map +1 -1
- package/dist/v2/features/app/helpers/routes.js +11 -5
- package/dist/v2/features/app/helpers/routes.js.map +1 -1
- package/dist/v2/features/app/index.js +2 -2
- package/dist/v2/features/collection/DocumentCollection.vue.script.js +1 -1
- package/dist/v2/features/collection/OperationCollection.vue.script.js +1 -1
- package/dist/v2/features/collection/components/Editor/helpers/parse-editor-object.js +1 -1
- package/dist/v2/features/collection/components/Runner/components/Runner.vue.d.ts +16 -0
- package/dist/v2/features/collection/components/Runner/components/Runner.vue.d.ts.map +1 -0
- package/dist/v2/features/collection/components/Runner/components/Runner.vue.js +7 -0
- package/dist/v2/features/collection/components/Runner/components/Runner.vue.js.map +1 -0
- package/dist/v2/features/collection/components/Runner/components/Runner.vue.script.js +220 -0
- package/dist/v2/features/collection/components/Runner/components/Runner.vue.script.js.map +1 -0
- package/dist/{components/Sidebar/SidebarButton.vue.d.ts → v2/features/collection/components/Runner/components/RunnerCard.vue.d.ts} +8 -6
- package/dist/v2/features/collection/components/Runner/components/RunnerCard.vue.d.ts.map +1 -0
- package/dist/v2/features/collection/components/Runner/components/RunnerCard.vue.js +7 -0
- package/dist/v2/features/collection/components/Runner/components/RunnerCard.vue.js.map +1 -0
- package/dist/v2/features/collection/components/Runner/components/RunnerCard.vue.script.js +45 -0
- package/dist/v2/features/collection/components/Runner/components/RunnerCard.vue.script.js.map +1 -0
- package/dist/{components/Form/LabelInput.vue.d.ts → v2/features/collection/components/Runner/components/RunnerOrderItem.vue.d.ts} +12 -8
- package/dist/v2/features/collection/components/Runner/components/RunnerOrderItem.vue.d.ts.map +1 -0
- package/dist/v2/features/collection/components/Runner/components/RunnerOrderItem.vue.js +7 -0
- package/dist/v2/features/collection/components/Runner/components/RunnerOrderItem.vue.js.map +1 -0
- package/dist/v2/features/collection/components/Runner/components/RunnerOrderItem.vue.script.js +73 -0
- package/dist/v2/features/collection/components/Runner/components/RunnerOrderItem.vue.script.js.map +1 -0
- package/dist/{components/AddressBar/AddressBarHistory.vue.d.ts → v2/features/collection/components/Runner/components/RunnerResultRow.vue.d.ts} +11 -5
- package/dist/v2/features/collection/components/Runner/components/RunnerResultRow.vue.d.ts.map +1 -0
- package/dist/v2/features/collection/components/Runner/components/RunnerResultRow.vue.js +7 -0
- package/dist/v2/features/collection/components/Runner/components/RunnerResultRow.vue.js.map +1 -0
- package/dist/v2/features/collection/components/Runner/components/RunnerResultRow.vue.script.js +124 -0
- package/dist/v2/features/collection/components/Runner/components/RunnerResultRow.vue.script.js.map +1 -0
- package/dist/v2/features/collection/components/Runner/components/RunnerResults.vue.d.ts +17 -0
- package/dist/v2/features/collection/components/Runner/components/RunnerResults.vue.d.ts.map +1 -0
- package/dist/v2/features/collection/components/Runner/components/RunnerResults.vue.js +7 -0
- package/dist/v2/features/collection/components/Runner/components/RunnerResults.vue.js.map +1 -0
- package/dist/v2/features/collection/components/Runner/components/RunnerResults.vue.script.js +126 -0
- package/dist/v2/features/collection/components/Runner/components/RunnerResults.vue.script.js.map +1 -0
- package/dist/v2/features/collection/components/Runner/components/RunnerTree.vue.d.ts +18 -0
- package/dist/v2/features/collection/components/Runner/components/RunnerTree.vue.d.ts.map +1 -0
- package/dist/v2/features/collection/components/Runner/components/RunnerTree.vue.js +7 -0
- package/dist/v2/features/collection/components/Runner/components/RunnerTree.vue.js.map +1 -0
- package/dist/v2/features/collection/components/Runner/components/RunnerTree.vue.script.js +180 -0
- package/dist/v2/features/collection/components/Runner/components/RunnerTree.vue.script.js.map +1 -0
- package/dist/{components/Sidebar/Actions/EditSidebarListElement.vue.d.ts → v2/features/collection/components/Runner/components/RunnerTreeExample.vue.d.ts} +6 -5
- package/dist/v2/features/collection/components/Runner/components/RunnerTreeExample.vue.d.ts.map +1 -0
- package/dist/v2/features/collection/components/Runner/components/RunnerTreeExample.vue.js +7 -0
- package/dist/v2/features/collection/components/Runner/components/RunnerTreeExample.vue.js.map +1 -0
- package/dist/v2/features/collection/components/Runner/components/RunnerTreeExample.vue.script.js +44 -0
- package/dist/v2/features/collection/components/Runner/components/RunnerTreeExample.vue.script.js.map +1 -0
- package/dist/{components/DataTable/DataTableText.vue.d.ts → v2/features/collection/components/Runner/components/RunnerTreeGroup.vue.d.ts} +6 -4
- package/dist/v2/features/collection/components/Runner/components/RunnerTreeGroup.vue.d.ts.map +1 -0
- package/dist/v2/features/collection/components/Runner/components/RunnerTreeGroup.vue.js +7 -0
- package/dist/v2/features/collection/components/Runner/components/RunnerTreeGroup.vue.js.map +1 -0
- package/dist/v2/features/collection/components/Runner/components/RunnerTreeGroup.vue.script.js +53 -0
- package/dist/v2/features/collection/components/Runner/components/RunnerTreeGroup.vue.script.js.map +1 -0
- package/dist/v2/features/collection/components/Runner/components/RunnerTreeOperation.vue.d.ts +23 -0
- package/dist/v2/features/collection/components/Runner/components/RunnerTreeOperation.vue.d.ts.map +1 -0
- package/dist/v2/features/collection/components/Runner/components/RunnerTreeOperation.vue.js +7 -0
- package/dist/v2/features/collection/components/Runner/components/RunnerTreeOperation.vue.js.map +1 -0
- package/dist/v2/features/collection/components/Runner/components/RunnerTreeOperation.vue.script.js +75 -0
- package/dist/v2/features/collection/components/Runner/components/RunnerTreeOperation.vue.script.js.map +1 -0
- package/dist/v2/features/collection/components/Runner/hooks/index.d.ts +3 -0
- package/dist/v2/features/collection/components/Runner/hooks/index.d.ts.map +1 -0
- package/dist/v2/features/collection/components/Runner/hooks/use-runner-execution.d.ts +73 -0
- package/dist/v2/features/collection/components/Runner/hooks/use-runner-execution.d.ts.map +1 -0
- package/dist/v2/features/collection/components/Runner/hooks/use-runner-execution.js +190 -0
- package/dist/v2/features/collection/components/Runner/hooks/use-runner-execution.js.map +1 -0
- package/dist/v2/features/collection/components/Runner/hooks/use-runner-selection.d.ts +46 -0
- package/dist/v2/features/collection/components/Runner/hooks/use-runner-selection.d.ts.map +1 -0
- package/dist/v2/features/collection/components/Runner/hooks/use-runner-selection.js +114 -0
- package/dist/v2/features/collection/components/Runner/hooks/use-runner-selection.js.map +1 -0
- package/dist/v2/features/collection/components/Runner/index.d.ts +2 -0
- package/dist/v2/features/collection/components/Runner/index.d.ts.map +1 -0
- package/dist/v2/features/collection/components/Tabs.vue.d.ts.map +1 -1
- package/dist/v2/features/collection/components/Tabs.vue.js.map +1 -1
- package/dist/v2/features/collection/components/Tabs.vue.script.js +3 -2
- package/dist/v2/features/collection/components/Tabs.vue.script.js.map +1 -1
- package/dist/v2/features/command-palette/TheCommandPalette.vue.script.js +2 -2
- package/dist/v2/features/command-palette/components/CommandPaletteImport.vue.js.map +1 -1
- package/dist/v2/features/command-palette/components/CommandPaletteImport.vue.script.js +3 -3
- package/dist/v2/features/command-palette/components/CommandPaletteImport.vue.script.js.map +1 -1
- package/dist/v2/features/command-palette/components/CommandPaletteOpenApiDocument.vue.script.js +1 -1
- package/dist/v2/features/command-palette/helpers/get-operation-from-curl.js +1 -1
- package/dist/v2/features/command-palette/helpers/get-operation-from-curl.js.map +1 -1
- package/dist/{libs → v2/features/command-palette/helpers}/parse-curl.d.ts +2 -2
- package/dist/v2/features/command-palette/helpers/parse-curl.d.ts.map +1 -0
- package/dist/{libs → v2/features/command-palette/helpers}/parse-curl.js +1 -1
- package/dist/v2/features/command-palette/helpers/parse-curl.js.map +1 -0
- package/dist/v2/features/command-palette/hooks/use-command-palette-state.js +1 -1
- package/dist/v2/features/command-palette/index.d.ts +2 -0
- package/dist/v2/features/command-palette/index.d.ts.map +1 -1
- package/dist/v2/features/command-palette/index.js +3 -1
- package/dist/v2/features/editor/helpers/configure-language-support.js +3 -3
- package/dist/v2/features/editor/helpers/configure-language-support.js.map +1 -1
- package/dist/v2/features/editor/helpers/json/get-json-ast-node-from-path.d.ts +1 -1
- package/dist/v2/features/editor/helpers/json/get-json-ast-node-from-path.d.ts.map +1 -1
- package/dist/v2/features/editor/helpers/json/get-json-ast-node-from-path.js +1 -1
- package/dist/v2/features/editor/helpers/json/get-json-ast-node-from-path.js.map +1 -1
- package/dist/v2/features/editor/helpers/json/json-ast.d.ts +1 -1
- package/dist/v2/features/editor/helpers/json/json-ast.d.ts.map +1 -1
- package/dist/v2/features/editor/helpers/json/json-ast.js +1 -1
- package/dist/v2/features/editor/helpers/json/json-ast.js.map +1 -1
- package/dist/v2/features/editor/helpers/theme/load-css-variables.d.ts +1 -1
- package/dist/v2/features/editor/hooks/use-editor-markers.d.ts.map +1 -1
- package/dist/v2/features/environments/components/EnvironmentCreateModal.vue.d.ts.map +1 -1
- package/dist/v2/features/environments/components/EnvironmentCreateModal.vue.js.map +1 -1
- package/dist/v2/features/environments/components/EnvironmentCreateModal.vue.script.js +4 -4
- package/dist/v2/features/environments/components/EnvironmentCreateModal.vue.script.js.map +1 -1
- package/dist/v2/features/environments/components/EnvironmentVariablesDropdown.vue.d.ts +5 -0
- package/dist/v2/features/environments/components/EnvironmentVariablesDropdown.vue.d.ts.map +1 -1
- package/dist/v2/features/environments/components/EnvironmentVariablesDropdown.vue.js.map +1 -1
- package/dist/v2/features/environments/components/EnvironmentVariablesDropdown.vue.script.js +70 -13
- package/dist/v2/features/environments/components/EnvironmentVariablesDropdown.vue.script.js.map +1 -1
- package/dist/v2/features/modal/Modal.vue.d.ts +8 -3
- package/dist/v2/features/modal/Modal.vue.d.ts.map +1 -1
- package/dist/v2/features/modal/Modal.vue.js.map +1 -1
- package/dist/v2/features/modal/Modal.vue.script.js +1 -1
- package/dist/v2/features/modal/Modal.vue.script.js.map +1 -1
- package/dist/v2/features/modal/helpers/create-api-client-modal.d.ts +4 -3
- 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 +12 -3
- package/dist/v2/features/modal/helpers/create-api-client-modal.js.map +1 -1
- package/dist/v2/features/modal/helpers/types.d.ts +8 -0
- package/dist/v2/features/modal/helpers/types.d.ts.map +1 -0
- package/dist/v2/features/modal/index.d.ts +1 -0
- package/dist/v2/features/modal/index.d.ts.map +1 -1
- package/dist/v2/features/operation/Operation.vue.d.ts +3 -3
- package/dist/v2/features/operation/Operation.vue.d.ts.map +1 -1
- package/dist/v2/features/operation/Operation.vue.js.map +1 -1
- package/dist/v2/features/operation/Operation.vue.script.js +3 -1
- package/dist/v2/features/operation/Operation.vue.script.js.map +1 -1
- package/dist/v2/features/settings/CollectionSettings.vue.script.js +1 -1
- package/dist/v2/features/settings/components/Appearance.vue.d.ts +2 -2
- package/dist/v2/helpers/safe-run.d.ts +10 -0
- package/dist/v2/helpers/safe-run.d.ts.map +1 -0
- package/dist/v2/helpers/safe-run.js +19 -0
- package/dist/v2/helpers/safe-run.js.map +1 -0
- package/package.json +149 -170
- package/dist/assets/keycap.ascii.virtual.js +0 -6
- package/dist/assets/keycap.ascii.virtual.js.map +0 -1
- package/dist/components/AddressBar/AddressBar.vue.d.ts +0 -20
- package/dist/components/AddressBar/AddressBar.vue.d.ts.map +0 -1
- package/dist/components/AddressBar/AddressBar.vue.js +0 -9
- package/dist/components/AddressBar/AddressBar.vue.js.map +0 -1
- package/dist/components/AddressBar/AddressBar.vue.script.js +0 -204
- package/dist/components/AddressBar/AddressBar.vue.script.js.map +0 -1
- package/dist/components/AddressBar/AddressBarHistory.vue.d.ts.map +0 -1
- package/dist/components/AddressBar/AddressBarHistory.vue.js +0 -9
- package/dist/components/AddressBar/AddressBarHistory.vue.js.map +0 -1
- package/dist/components/AddressBar/AddressBarHistory.vue.script.js +0 -85
- package/dist/components/AddressBar/AddressBarHistory.vue.script.js.map +0 -1
- package/dist/components/AddressBar/httpStatusCodeColors.d.ts +0 -22
- package/dist/components/AddressBar/httpStatusCodeColors.d.ts.map +0 -1
- package/dist/components/AddressBar/httpStatusCodeColors.js +0 -20
- package/dist/components/AddressBar/httpStatusCodeColors.js.map +0 -1
- package/dist/components/AddressBar/index.d.ts +0 -2
- package/dist/components/AddressBar/index.d.ts.map +0 -1
- package/dist/components/AddressBar/index.js +0 -2
- package/dist/components/CodeInput/CodeInput.vue.d.ts +0 -101
- package/dist/components/CodeInput/CodeInput.vue.d.ts.map +0 -1
- package/dist/components/CodeInput/CodeInput.vue.js +0 -10
- package/dist/components/CodeInput/CodeInput.vue.js.map +0 -1
- package/dist/components/CodeInput/CodeInput.vue.script.js +0 -294
- package/dist/components/CodeInput/CodeInput.vue.script.js.map +0 -1
- package/dist/components/CodeInput/codeVariableWidget.d.ts +0 -17
- package/dist/components/CodeInput/codeVariableWidget.d.ts.map +0 -1
- package/dist/components/CodeInput/codeVariableWidget.js +0 -135
- package/dist/components/CodeInput/codeVariableWidget.js.map +0 -1
- package/dist/components/CodeInput/index.d.ts +0 -2
- package/dist/components/CodeInput/index.d.ts.map +0 -1
- package/dist/components/CodeInput/index.js +0 -2
- package/dist/components/CommandPalette/CommandActionForm.vue.d.ts +0 -31
- package/dist/components/CommandPalette/CommandActionForm.vue.d.ts.map +0 -1
- package/dist/components/CommandPalette/CommandActionForm.vue.js +0 -7
- package/dist/components/CommandPalette/CommandActionForm.vue.js.map +0 -1
- package/dist/components/CommandPalette/CommandActionForm.vue.script.js +0 -42
- package/dist/components/CommandPalette/CommandActionForm.vue.script.js.map +0 -1
- package/dist/components/CommandPalette/CommandActionInput.vue.d.ts +0 -15
- package/dist/components/CommandPalette/CommandActionInput.vue.d.ts.map +0 -1
- package/dist/components/CommandPalette/CommandActionInput.vue.js +0 -7
- package/dist/components/CommandPalette/CommandActionInput.vue.js.map +0 -1
- package/dist/components/CommandPalette/CommandActionInput.vue.script.js +0 -55
- package/dist/components/CommandPalette/CommandActionInput.vue.script.js.map +0 -1
- package/dist/components/CommandPalette/CommandPaletteCollection.vue.d.ts +0 -10
- package/dist/components/CommandPalette/CommandPaletteCollection.vue.d.ts.map +0 -1
- package/dist/components/CommandPalette/CommandPaletteCollection.vue.js +0 -7
- package/dist/components/CommandPalette/CommandPaletteCollection.vue.js.map +0 -1
- package/dist/components/CommandPalette/CommandPaletteCollection.vue.script.js +0 -78
- package/dist/components/CommandPalette/CommandPaletteCollection.vue.script.js.map +0 -1
- package/dist/components/CommandPalette/CommandPaletteExample.vue.d.ts +0 -16
- package/dist/components/CommandPalette/CommandPaletteExample.vue.d.ts.map +0 -1
- package/dist/components/CommandPalette/CommandPaletteExample.vue.js +0 -7
- package/dist/components/CommandPalette/CommandPaletteExample.vue.js.map +0 -1
- package/dist/components/CommandPalette/CommandPaletteExample.vue.script.js +0 -104
- package/dist/components/CommandPalette/CommandPaletteExample.vue.script.js.map +0 -1
- package/dist/components/CommandPalette/CommandPaletteImport.vue.d.ts +0 -10
- package/dist/components/CommandPalette/CommandPaletteImport.vue.d.ts.map +0 -1
- package/dist/components/CommandPalette/CommandPaletteImport.vue.js +0 -7
- package/dist/components/CommandPalette/CommandPaletteImport.vue.js.map +0 -1
- package/dist/components/CommandPalette/CommandPaletteImport.vue.script.js +0 -181
- package/dist/components/CommandPalette/CommandPaletteImport.vue.script.js.map +0 -1
- package/dist/components/CommandPalette/CommandPaletteImportCurl.vue.d.ts +0 -20
- package/dist/components/CommandPalette/CommandPaletteImportCurl.vue.d.ts.map +0 -1
- package/dist/components/CommandPalette/CommandPaletteImportCurl.vue.js +0 -9
- package/dist/components/CommandPalette/CommandPaletteImportCurl.vue.js.map +0 -1
- package/dist/components/CommandPalette/CommandPaletteImportCurl.vue.script.js +0 -108
- package/dist/components/CommandPalette/CommandPaletteImportCurl.vue.script.js.map +0 -1
- package/dist/components/CommandPalette/CommandPaletteServer.vue.d.ts +0 -16
- package/dist/components/CommandPalette/CommandPaletteServer.vue.d.ts.map +0 -1
- package/dist/components/CommandPalette/CommandPaletteServer.vue.js +0 -7
- package/dist/components/CommandPalette/CommandPaletteServer.vue.js.map +0 -1
- package/dist/components/CommandPalette/CommandPaletteServer.vue.script.js +0 -108
- package/dist/components/CommandPalette/CommandPaletteServer.vue.script.js.map +0 -1
- package/dist/components/CommandPalette/CommandPaletteTag.vue.d.ts +0 -10
- package/dist/components/CommandPalette/CommandPaletteTag.vue.d.ts.map +0 -1
- package/dist/components/CommandPalette/CommandPaletteTag.vue.js +0 -7
- package/dist/components/CommandPalette/CommandPaletteTag.vue.js.map +0 -1
- package/dist/components/CommandPalette/CommandPaletteTag.vue.script.js +0 -70
- package/dist/components/CommandPalette/CommandPaletteTag.vue.script.js.map +0 -1
- package/dist/components/CommandPalette/CommandPaletteWorkspace.vue.d.ts +0 -10
- package/dist/components/CommandPalette/CommandPaletteWorkspace.vue.d.ts.map +0 -1
- package/dist/components/CommandPalette/CommandPaletteWorkspace.vue.js +0 -7
- package/dist/components/CommandPalette/CommandPaletteWorkspace.vue.js.map +0 -1
- package/dist/components/CommandPalette/CommandPaletteWorkspace.vue.script.js +0 -49
- package/dist/components/CommandPalette/CommandPaletteWorkspace.vue.script.js.map +0 -1
- package/dist/components/CommandPalette/TheCommandPalette.vue.d.ts +0 -217
- package/dist/components/CommandPalette/TheCommandPalette.vue.d.ts.map +0 -1
- package/dist/components/CommandPalette/TheCommandPalette.vue.js +0 -9
- package/dist/components/CommandPalette/TheCommandPalette.vue.js.map +0 -1
- package/dist/components/CommandPalette/TheCommandPalette.vue.script.js +0 -323
- package/dist/components/CommandPalette/TheCommandPalette.vue.script.js.map +0 -1
- package/dist/components/CommandPalette/WatchModeToggle.vue.d.ts +0 -14
- package/dist/components/CommandPalette/WatchModeToggle.vue.d.ts.map +0 -1
- package/dist/components/CommandPalette/WatchModeToggle.vue.js +0 -7
- package/dist/components/CommandPalette/WatchModeToggle.vue.js.map +0 -1
- package/dist/components/CommandPalette/WatchModeToggle.vue.script.js +0 -40
- package/dist/components/CommandPalette/WatchModeToggle.vue.script.js.map +0 -1
- package/dist/components/CommandPalette/index.d.ts +0 -2
- package/dist/components/CommandPalette/index.d.ts.map +0 -1
- package/dist/components/CommandPalette/index.js +0 -2
- package/dist/components/DataTable/DataTable.vue.d.ts +0 -23
- package/dist/components/DataTable/DataTable.vue.d.ts.map +0 -1
- package/dist/components/DataTable/DataTable.vue.js +0 -7
- package/dist/components/DataTable/DataTable.vue.js.map +0 -1
- package/dist/components/DataTable/DataTable.vue.script.js +0 -30
- package/dist/components/DataTable/DataTable.vue.script.js.map +0 -1
- package/dist/components/DataTable/DataTableCell.vue.d.ts +0 -20
- package/dist/components/DataTable/DataTableCell.vue.d.ts.map +0 -1
- package/dist/components/DataTable/DataTableCell.vue.js +0 -7
- package/dist/components/DataTable/DataTableCell.vue.js.map +0 -1
- package/dist/components/DataTable/DataTableCell.vue.script.js +0 -21
- package/dist/components/DataTable/DataTableCell.vue.script.js.map +0 -1
- package/dist/components/DataTable/DataTableCheckbox.vue.d.ts +0 -15
- package/dist/components/DataTable/DataTableCheckbox.vue.d.ts.map +0 -1
- package/dist/components/DataTable/DataTableCheckbox.vue.js +0 -7
- package/dist/components/DataTable/DataTableCheckbox.vue.js.map +0 -1
- package/dist/components/DataTable/DataTableCheckbox.vue.script.js +0 -43
- package/dist/components/DataTable/DataTableCheckbox.vue.script.js.map +0 -1
- package/dist/components/DataTable/DataTableHeader.vue.d.ts +0 -14
- package/dist/components/DataTable/DataTableHeader.vue.d.ts.map +0 -1
- package/dist/components/DataTable/DataTableHeader.vue.js +0 -7
- package/dist/components/DataTable/DataTableHeader.vue.js.map +0 -1
- package/dist/components/DataTable/DataTableHeader.vue.script.js +0 -20
- package/dist/components/DataTable/DataTableHeader.vue.script.js.map +0 -1
- package/dist/components/DataTable/DataTableInput.vue.d.ts +0 -54
- package/dist/components/DataTable/DataTableInput.vue.d.ts.map +0 -1
- package/dist/components/DataTable/DataTableInput.vue.js +0 -9
- package/dist/components/DataTable/DataTableInput.vue.js.map +0 -1
- package/dist/components/DataTable/DataTableInput.vue.script.js +0 -164
- package/dist/components/DataTable/DataTableInput.vue.script.js.map +0 -1
- package/dist/components/DataTable/DataTableInputSelect.vue.d.ts +0 -17
- package/dist/components/DataTable/DataTableInputSelect.vue.d.ts.map +0 -1
- package/dist/components/DataTable/DataTableInputSelect.vue.js +0 -7
- package/dist/components/DataTable/DataTableInputSelect.vue.js.map +0 -1
- package/dist/components/DataTable/DataTableInputSelect.vue.script.js +0 -150
- package/dist/components/DataTable/DataTableInputSelect.vue.script.js.map +0 -1
- package/dist/components/DataTable/DataTableRow.vue.d.ts +0 -14
- package/dist/components/DataTable/DataTableRow.vue.d.ts.map +0 -1
- package/dist/components/DataTable/DataTableRow.vue.js +0 -13
- package/dist/components/DataTable/DataTableRow.vue.js.map +0 -1
- package/dist/components/DataTable/DataTableText.vue.d.ts.map +0 -1
- package/dist/components/DataTable/DataTableText.vue.js +0 -7
- package/dist/components/DataTable/DataTableText.vue.js.map +0 -1
- package/dist/components/DataTable/DataTableText.vue.script.js +0 -20
- package/dist/components/DataTable/DataTableText.vue.script.js.map +0 -1
- package/dist/components/DataTable/index.d.ts +0 -9
- package/dist/components/DataTable/index.d.ts.map +0 -1
- package/dist/components/DataTable/index.js +0 -9
- package/dist/components/EmptyState.vue.d.ts +0 -4
- package/dist/components/EmptyState.vue.d.ts.map +0 -1
- package/dist/components/EmptyState.vue.js +0 -9
- package/dist/components/EmptyState.vue.js.map +0 -1
- package/dist/components/EmptyState.vue.script.js +0 -41
- package/dist/components/EmptyState.vue.script.js.map +0 -1
- package/dist/components/EnvironmentSelector/EnvironmentSelector.vue.d.ts +0 -4
- package/dist/components/EnvironmentSelector/EnvironmentSelector.vue.d.ts.map +0 -1
- package/dist/components/EnvironmentSelector/EnvironmentSelector.vue.js +0 -7
- package/dist/components/EnvironmentSelector/EnvironmentSelector.vue.js.map +0 -1
- package/dist/components/EnvironmentSelector/EnvironmentSelector.vue.script.js +0 -111
- package/dist/components/EnvironmentSelector/EnvironmentSelector.vue.script.js.map +0 -1
- package/dist/components/Form/Form.vue.d.ts +0 -26
- package/dist/components/Form/Form.vue.d.ts.map +0 -1
- package/dist/components/Form/Form.vue.js +0 -7
- package/dist/components/Form/Form.vue.js.map +0 -1
- package/dist/components/Form/Form.vue.script.js +0 -82
- package/dist/components/Form/Form.vue.script.js.map +0 -1
- package/dist/components/Form/LabelInput.vue.d.ts.map +0 -1
- package/dist/components/Form/LabelInput.vue.js +0 -9
- package/dist/components/Form/LabelInput.vue.js.map +0 -1
- package/dist/components/Form/LabelInput.vue.script.js +0 -39
- package/dist/components/Form/LabelInput.vue.script.js.map +0 -1
- package/dist/components/HttpMethod/index.js +0 -2
- package/dist/components/ImportCollection/DropEventListener.vue.d.ts +0 -8
- package/dist/components/ImportCollection/DropEventListener.vue.d.ts.map +0 -1
- package/dist/components/ImportCollection/DropEventListener.vue.js +0 -7
- package/dist/components/ImportCollection/DropEventListener.vue.js.map +0 -1
- package/dist/components/ImportCollection/DropEventListener.vue.script.js +0 -91
- package/dist/components/ImportCollection/DropEventListener.vue.script.js.map +0 -1
- package/dist/components/ImportCollection/ImportCollectionListener.vue.d.ts +0 -14
- package/dist/components/ImportCollection/ImportCollectionListener.vue.d.ts.map +0 -1
- package/dist/components/ImportCollection/ImportCollectionListener.vue.js +0 -7
- package/dist/components/ImportCollection/ImportCollectionListener.vue.js.map +0 -1
- package/dist/components/ImportCollection/ImportCollectionListener.vue.script.js +0 -102
- package/dist/components/ImportCollection/ImportCollectionListener.vue.script.js.map +0 -1
- package/dist/components/ImportCollection/ImportCollectionModal.vue.d.ts +0 -13
- package/dist/components/ImportCollection/ImportCollectionModal.vue.d.ts.map +0 -1
- package/dist/components/ImportCollection/ImportCollectionModal.vue.js +0 -8
- package/dist/components/ImportCollection/ImportCollectionModal.vue.js.map +0 -1
- package/dist/components/ImportCollection/ImportCollectionModal.vue.script.js +0 -206
- package/dist/components/ImportCollection/ImportCollectionModal.vue.script.js.map +0 -1
- package/dist/components/ImportCollection/ImportNowButton.vue.d.ts +0 -13
- package/dist/components/ImportCollection/ImportNowButton.vue.d.ts.map +0 -1
- package/dist/components/ImportCollection/ImportNowButton.vue.js +0 -7
- package/dist/components/ImportCollection/ImportNowButton.vue.js.map +0 -1
- package/dist/components/ImportCollection/ImportNowButton.vue.script.js +0 -82
- package/dist/components/ImportCollection/ImportNowButton.vue.script.js.map +0 -1
- package/dist/components/ImportCollection/PasteEventListener.vue.d.ts +0 -8
- package/dist/components/ImportCollection/PasteEventListener.vue.d.ts.map +0 -1
- package/dist/components/ImportCollection/PasteEventListener.vue.js +0 -7
- package/dist/components/ImportCollection/PasteEventListener.vue.js.map +0 -1
- package/dist/components/ImportCollection/PasteEventListener.vue.script.js +0 -31
- package/dist/components/ImportCollection/PasteEventListener.vue.script.js.map +0 -1
- package/dist/components/ImportCollection/PrefetchError.vue.d.ts +0 -7
- package/dist/components/ImportCollection/PrefetchError.vue.d.ts.map +0 -1
- package/dist/components/ImportCollection/PrefetchError.vue.js +0 -7
- package/dist/components/ImportCollection/PrefetchError.vue.js.map +0 -1
- package/dist/components/ImportCollection/PrefetchError.vue.script.js +0 -32
- package/dist/components/ImportCollection/PrefetchError.vue.script.js.map +0 -1
- package/dist/components/ImportCollection/UrlQueryParameterChecker.vue.d.ts +0 -8
- package/dist/components/ImportCollection/UrlQueryParameterChecker.vue.d.ts.map +0 -1
- package/dist/components/ImportCollection/UrlQueryParameterChecker.vue.js +0 -7
- package/dist/components/ImportCollection/UrlQueryParameterChecker.vue.js.map +0 -1
- package/dist/components/ImportCollection/UrlQueryParameterChecker.vue.script.js +0 -21
- package/dist/components/ImportCollection/UrlQueryParameterChecker.vue.script.js.map +0 -1
- package/dist/components/ImportCollection/WorkspaceSelector.vue.d.ts +0 -4
- package/dist/components/ImportCollection/WorkspaceSelector.vue.d.ts.map +0 -1
- package/dist/components/ImportCollection/WorkspaceSelector.vue.js +0 -7
- package/dist/components/ImportCollection/WorkspaceSelector.vue.js.map +0 -1
- package/dist/components/ImportCollection/WorkspaceSelector.vue.script.js +0 -114
- package/dist/components/ImportCollection/WorkspaceSelector.vue.script.js.map +0 -1
- package/dist/components/ImportCollection/hooks/useUrlPrefetcher.d.ts +0 -39
- package/dist/components/ImportCollection/hooks/useUrlPrefetcher.d.ts.map +0 -1
- package/dist/components/ImportCollection/hooks/useUrlPrefetcher.js +0 -109
- package/dist/components/ImportCollection/hooks/useUrlPrefetcher.js.map +0 -1
- package/dist/components/ImportCollection/index.d.ts +0 -2
- package/dist/components/ImportCollection/index.d.ts.map +0 -1
- package/dist/components/ImportCollection/index.js +0 -2
- package/dist/components/ImportCollection/utils/get-openapi-version.d.ts +0 -5
- package/dist/components/ImportCollection/utils/get-openapi-version.d.ts.map +0 -1
- package/dist/components/ImportCollection/utils/get-openapi-version.js +0 -26
- package/dist/components/ImportCollection/utils/get-openapi-version.js.map +0 -1
- package/dist/components/ImportCollection/utils/import-collection.d.ts +0 -12
- package/dist/components/ImportCollection/utils/import-collection.d.ts.map +0 -1
- package/dist/components/ImportCollection/utils/import-collection.js +0 -23
- package/dist/components/ImportCollection/utils/import-collection.js.map +0 -1
- package/dist/components/ImportCollection/utils/is-document.d.ts +0 -3
- package/dist/components/ImportCollection/utils/is-document.d.ts.map +0 -1
- package/dist/components/ImportCollection/utils/is-document.js +0 -12
- package/dist/components/ImportCollection/utils/is-document.js.map +0 -1
- package/dist/components/ImportCollection/utils/is-url.d.ts +0 -5
- package/dist/components/ImportCollection/utils/is-url.d.ts.map +0 -1
- package/dist/components/ImportCollection/utils/is-url.js +0 -14
- package/dist/components/ImportCollection/utils/is-url.js.map +0 -1
- package/dist/components/ImportCollection/utils/workspace-store-is-empty.d.ts +0 -6
- package/dist/components/ImportCollection/utils/workspace-store-is-empty.d.ts.map +0 -1
- package/dist/components/ImportCollection/utils/workspace-store-is-empty.js +0 -13
- package/dist/components/ImportCollection/utils/workspace-store-is-empty.js.map +0 -1
- package/dist/components/OpenApiClientButton.vue.d.ts.map +0 -1
- package/dist/components/OpenApiClientButton.vue.js.map +0 -1
- package/dist/components/OpenApiClientButton.vue.script.js.map +0 -1
- package/dist/components/Search/useSearch.d.ts +0 -33
- package/dist/components/Search/useSearch.d.ts.map +0 -1
- package/dist/components/Search/useSearch.js +0 -110
- package/dist/components/Search/useSearch.js.map +0 -1
- package/dist/components/Server/ServerDropdown.vue.d.ts +0 -12
- package/dist/components/Server/ServerDropdown.vue.d.ts.map +0 -1
- package/dist/components/Server/ServerDropdown.vue.js +0 -7
- package/dist/components/Server/ServerDropdown.vue.js.map +0 -1
- package/dist/components/Server/ServerDropdown.vue.script.js +0 -133
- package/dist/components/Server/ServerDropdown.vue.script.js.map +0 -1
- package/dist/components/Server/ServerDropdownItem.vue.d.ts +0 -19
- package/dist/components/Server/ServerDropdownItem.vue.d.ts.map +0 -1
- package/dist/components/Server/ServerDropdownItem.vue.js +0 -9
- package/dist/components/Server/ServerDropdownItem.vue.js.map +0 -1
- package/dist/components/Server/ServerDropdownItem.vue.script.js +0 -90
- package/dist/components/Server/ServerDropdownItem.vue.script.js.map +0 -1
- package/dist/components/Server/ServerSelector.vue.d.ts +0 -17
- package/dist/components/Server/ServerSelector.vue.d.ts.map +0 -1
- package/dist/components/Server/ServerSelector.vue.js +0 -7
- package/dist/components/Server/ServerSelector.vue.js.map +0 -1
- package/dist/components/Server/ServerSelector.vue.script.js +0 -87
- package/dist/components/Server/ServerSelector.vue.script.js.map +0 -1
- package/dist/components/SideNav/DownloadAppButton.vue.d.ts +0 -4
- package/dist/components/SideNav/DownloadAppButton.vue.d.ts.map +0 -1
- package/dist/components/SideNav/DownloadAppButton.vue.js +0 -9
- package/dist/components/SideNav/DownloadAppButton.vue.js.map +0 -1
- package/dist/components/SideNav/DownloadAppButton.vue.script.js +0 -31
- package/dist/components/SideNav/DownloadAppButton.vue.script.js.map +0 -1
- package/dist/components/SideNav/SideHelp.vue.d.ts +0 -4
- package/dist/components/SideNav/SideHelp.vue.d.ts.map +0 -1
- package/dist/components/SideNav/SideHelp.vue.js +0 -7
- package/dist/components/SideNav/SideHelp.vue.js.map +0 -1
- package/dist/components/SideNav/SideHelp.vue.script.js +0 -102
- package/dist/components/SideNav/SideHelp.vue.script.js.map +0 -1
- package/dist/components/SideNav/SideNav.vue.d.ts +0 -4
- package/dist/components/SideNav/SideNav.vue.d.ts.map +0 -1
- package/dist/components/SideNav/SideNav.vue.js +0 -7
- package/dist/components/SideNav/SideNav.vue.js.map +0 -1
- package/dist/components/SideNav/SideNav.vue.script.js +0 -80
- package/dist/components/SideNav/SideNav.vue.script.js.map +0 -1
- package/dist/components/SideNav/SideNavGroup.vue.d.ts +0 -14
- package/dist/components/SideNav/SideNavGroup.vue.d.ts.map +0 -1
- package/dist/components/SideNav/SideNavGroup.vue.js +0 -7
- package/dist/components/SideNav/SideNavGroup.vue.js.map +0 -1
- package/dist/components/SideNav/SideNavGroup.vue.script.js +0 -16
- package/dist/components/SideNav/SideNavGroup.vue.script.js.map +0 -1
- package/dist/components/SideNav/SideNavLink.vue.d.ts +0 -23
- package/dist/components/SideNav/SideNavLink.vue.d.ts.map +0 -1
- package/dist/components/SideNav/SideNavLink.vue.js +0 -7
- package/dist/components/SideNav/SideNavLink.vue.js.map +0 -1
- package/dist/components/SideNav/SideNavLink.vue.script.js +0 -32
- package/dist/components/SideNav/SideNavLink.vue.script.js.map +0 -1
- package/dist/components/SideNav/SideNavRouterLink.vue.d.ts +0 -21
- package/dist/components/SideNav/SideNavRouterLink.vue.d.ts.map +0 -1
- package/dist/components/SideNav/SideNavRouterLink.vue.js +0 -7
- package/dist/components/SideNav/SideNavRouterLink.vue.js.map +0 -1
- package/dist/components/SideNav/SideNavRouterLink.vue.script.js +0 -34
- package/dist/components/SideNav/SideNavRouterLink.vue.script.js.map +0 -1
- package/dist/components/Sidebar/Actions/EditSidebarListCollection.vue.d.ts +0 -14
- package/dist/components/Sidebar/Actions/EditSidebarListCollection.vue.d.ts.map +0 -1
- package/dist/components/Sidebar/Actions/EditSidebarListCollection.vue.js +0 -7
- package/dist/components/Sidebar/Actions/EditSidebarListCollection.vue.js.map +0 -1
- package/dist/components/Sidebar/Actions/EditSidebarListCollection.vue.script.js +0 -56
- package/dist/components/Sidebar/Actions/EditSidebarListCollection.vue.script.js.map +0 -1
- package/dist/components/Sidebar/Actions/EditSidebarListElement.vue.d.ts.map +0 -1
- package/dist/components/Sidebar/Actions/EditSidebarListElement.vue.js +0 -7
- package/dist/components/Sidebar/Actions/EditSidebarListElement.vue.js.map +0 -1
- package/dist/components/Sidebar/Actions/EditSidebarListElement.vue.script.js +0 -31
- package/dist/components/Sidebar/Actions/EditSidebarListElement.vue.script.js.map +0 -1
- package/dist/components/Sidebar/Sidebar.vue.d.ts +0 -23
- package/dist/components/Sidebar/Sidebar.vue.d.ts.map +0 -1
- package/dist/components/Sidebar/Sidebar.vue.js +0 -9
- package/dist/components/Sidebar/Sidebar.vue.js.map +0 -1
- package/dist/components/Sidebar/Sidebar.vue.script.js +0 -71
- package/dist/components/Sidebar/Sidebar.vue.script.js.map +0 -1
- package/dist/components/Sidebar/SidebarButton.vue.d.ts.map +0 -1
- package/dist/components/Sidebar/SidebarButton.vue.js +0 -7
- package/dist/components/Sidebar/SidebarButton.vue.js.map +0 -1
- package/dist/components/Sidebar/SidebarButton.vue.script.js +0 -36
- package/dist/components/Sidebar/SidebarButton.vue.script.js.map +0 -1
- package/dist/components/Sidebar/SidebarList.vue.d.ts +0 -14
- package/dist/components/Sidebar/SidebarList.vue.d.ts.map +0 -1
- package/dist/components/Sidebar/SidebarList.vue.js +0 -13
- package/dist/components/Sidebar/SidebarList.vue.js.map +0 -1
- package/dist/components/Sidebar/SidebarListElement.vue.d.ts +0 -44
- package/dist/components/Sidebar/SidebarListElement.vue.d.ts.map +0 -1
- package/dist/components/Sidebar/SidebarListElement.vue.js +0 -10
- package/dist/components/Sidebar/SidebarListElement.vue.js.map +0 -1
- package/dist/components/Sidebar/SidebarListElement.vue.script.js +0 -128
- package/dist/components/Sidebar/SidebarListElement.vue.script.js.map +0 -1
- package/dist/components/Sidebar/SidebarListElementActions.vue.d.ts +0 -21
- package/dist/components/Sidebar/SidebarListElementActions.vue.d.ts.map +0 -1
- package/dist/components/Sidebar/SidebarListElementActions.vue.js +0 -7
- package/dist/components/Sidebar/SidebarListElementActions.vue.js.map +0 -1
- package/dist/components/Sidebar/SidebarListElementActions.vue.script.js +0 -97
- package/dist/components/Sidebar/SidebarListElementActions.vue.script.js.map +0 -1
- package/dist/components/Sidebar/SidebarToggle.vue.d.ts +0 -4
- package/dist/components/Sidebar/SidebarToggle.vue.d.ts.map +0 -1
- package/dist/components/Sidebar/SidebarToggle.vue.js +0 -7
- package/dist/components/Sidebar/SidebarToggle.vue.js.map +0 -1
- package/dist/components/Sidebar/SidebarToggle.vue.script.js +0 -47
- package/dist/components/Sidebar/SidebarToggle.vue.script.js.map +0 -1
- package/dist/components/Sidebar/index.d.ts +0 -2
- package/dist/components/Sidebar/index.d.ts.map +0 -1
- package/dist/components/Sidebar/index.js +0 -2
- package/dist/components/TopNav/TopNav.vue.d.ts +0 -10
- package/dist/components/TopNav/TopNav.vue.d.ts.map +0 -1
- package/dist/components/TopNav/TopNav.vue.js +0 -7
- package/dist/components/TopNav/TopNav.vue.js.map +0 -1
- package/dist/components/TopNav/TopNav.vue.script.js +0 -232
- package/dist/components/TopNav/TopNav.vue.script.js.map +0 -1
- package/dist/components/TopNav/TopNavItem.vue.d.ts +0 -24
- package/dist/components/TopNav/TopNavItem.vue.d.ts.map +0 -1
- package/dist/components/TopNav/TopNavItem.vue.js +0 -9
- package/dist/components/TopNav/TopNavItem.vue.js.map +0 -1
- package/dist/components/TopNav/TopNavItem.vue.script.js +0 -129
- package/dist/components/TopNav/TopNavItem.vue.script.js.map +0 -1
- package/dist/components/ViewLayout/ViewLayoutCollapse.vue.d.ts +0 -33
- package/dist/components/ViewLayout/ViewLayoutCollapse.vue.d.ts.map +0 -1
- package/dist/components/ViewLayout/ViewLayoutCollapse.vue.js +0 -7
- package/dist/components/ViewLayout/ViewLayoutCollapse.vue.js.map +0 -1
- package/dist/components/ViewLayout/ViewLayoutCollapse.vue.script.js +0 -84
- package/dist/components/ViewLayout/ViewLayoutCollapse.vue.script.js.map +0 -1
- package/dist/components/ViewLayout/index.d.ts +0 -2
- package/dist/components/ViewLayout/index.d.ts.map +0 -1
- package/dist/components/ViewLayout/index.js +0 -2
- package/dist/components/index.d.ts +0 -4
- package/dist/components/index.d.ts.map +0 -1
- package/dist/components/index.js +0 -4
- package/dist/constants.d.ts +0 -26
- package/dist/constants.d.ts.map +0 -1
- package/dist/constants.js +0 -27
- package/dist/constants.js.map +0 -1
- package/dist/data/httpHeaders.d.ts +0 -7
- package/dist/data/httpHeaders.d.ts.map +0 -1
- package/dist/data/httpHeaders.js +0 -539
- package/dist/data/httpHeaders.js.map +0 -1
- package/dist/hooks/index.d.ts +0 -5
- package/dist/hooks/index.d.ts.map +0 -1
- package/dist/hooks/index.js +0 -5
- package/dist/hooks/useClientConfig.d.ts +0 -198
- package/dist/hooks/useClientConfig.d.ts.map +0 -1
- package/dist/hooks/useClientConfig.js +0 -23
- package/dist/hooks/useClientConfig.js.map +0 -1
- package/dist/hooks/useFileDialog.d.ts.map +0 -1
- package/dist/hooks/useFileDialog.js.map +0 -1
- package/dist/hooks/useLayout.d.ts +0 -17
- package/dist/hooks/useLayout.d.ts.map +0 -1
- package/dist/hooks/useLayout.js +0 -13
- package/dist/hooks/useLayout.js.map +0 -1
- package/dist/hooks/useResponseBody.d.ts +0 -19
- package/dist/hooks/useResponseBody.d.ts.map +0 -1
- package/dist/hooks/useResponseBody.js +0 -32
- package/dist/hooks/useResponseBody.js.map +0 -1
- package/dist/hooks/useSidebar.d.ts +0 -26
- package/dist/hooks/useSidebar.d.ts.map +0 -1
- package/dist/hooks/useSidebar.js +0 -36
- package/dist/hooks/useSidebar.js.map +0 -1
- package/dist/layouts/App/ApiClientApp.vue.d.ts +0 -14
- package/dist/layouts/App/ApiClientApp.vue.d.ts.map +0 -1
- package/dist/layouts/App/ApiClientApp.vue.js +0 -8
- package/dist/layouts/App/ApiClientApp.vue.js.map +0 -1
- package/dist/layouts/App/ApiClientApp.vue.script.js +0 -80
- package/dist/layouts/App/ApiClientApp.vue.script.js.map +0 -1
- package/dist/layouts/App/MainLayout.vue.d.ts +0 -14
- package/dist/layouts/App/MainLayout.vue.d.ts.map +0 -1
- package/dist/layouts/App/MainLayout.vue.js +0 -7
- package/dist/layouts/App/MainLayout.vue.js.map +0 -1
- package/dist/layouts/App/MainLayout.vue.script.js +0 -22
- package/dist/layouts/App/MainLayout.vue.script.js.map +0 -1
- package/dist/layouts/App/create-api-client-app.d.ts +0 -4059
- package/dist/layouts/App/create-api-client-app.d.ts.map +0 -1
- package/dist/layouts/App/create-api-client-app.js +0 -36
- package/dist/layouts/App/create-api-client-app.js.map +0 -1
- package/dist/layouts/App/hotkeys.d.ts +0 -6
- package/dist/layouts/App/hotkeys.d.ts.map +0 -1
- package/dist/layouts/App/hotkeys.js +0 -74
- package/dist/layouts/App/hotkeys.js.map +0 -1
- package/dist/layouts/App/index.d.ts +0 -3
- package/dist/layouts/App/index.d.ts.map +0 -1
- package/dist/layouts/App/index.js +0 -3
- package/dist/layouts/Modal/ApiClientModal.vue.d.ts +0 -4
- package/dist/layouts/Modal/ApiClientModal.vue.d.ts.map +0 -1
- package/dist/layouts/Modal/ApiClientModal.vue.js +0 -7
- package/dist/layouts/Modal/ApiClientModal.vue.js.map +0 -1
- package/dist/layouts/Modal/ApiClientModal.vue.script.js +0 -41
- package/dist/layouts/Modal/ApiClientModal.vue.script.js.map +0 -1
- package/dist/layouts/Modal/create-api-client-modal.d.ts +0 -12
- package/dist/layouts/Modal/create-api-client-modal.d.ts.map +0 -1
- package/dist/layouts/Modal/create-api-client-modal.js +0 -34
- package/dist/layouts/Modal/create-api-client-modal.js.map +0 -1
- package/dist/layouts/Modal/index.d.ts +0 -3
- package/dist/layouts/Modal/index.d.ts.map +0 -1
- package/dist/layouts/Modal/index.js +0 -2
- package/dist/layouts/Web/ApiClientWeb.vue.d.ts +0 -4
- package/dist/layouts/Web/ApiClientWeb.vue.d.ts.map +0 -1
- package/dist/layouts/Web/ApiClientWeb.vue.js +0 -8
- package/dist/layouts/Web/ApiClientWeb.vue.js.map +0 -1
- package/dist/layouts/Web/ApiClientWeb.vue.script.js +0 -68
- package/dist/layouts/Web/ApiClientWeb.vue.script.js.map +0 -1
- package/dist/layouts/Web/create-api-client-web.d.ts +0 -4056
- package/dist/layouts/Web/create-api-client-web.d.ts.map +0 -1
- package/dist/layouts/Web/create-api-client-web.js +0 -33
- package/dist/layouts/Web/create-api-client-web.js.map +0 -1
- package/dist/layouts/Web/index.d.ts +0 -3
- package/dist/layouts/Web/index.d.ts.map +0 -1
- package/dist/layouts/Web/index.js +0 -3
- package/dist/libs/create-client.d.ts +0 -4127
- package/dist/libs/create-client.d.ts.map +0 -1
- package/dist/libs/create-client.js +0 -178
- package/dist/libs/create-client.js.map +0 -1
- package/dist/libs/electron.d.ts +0 -5
- package/dist/libs/electron.d.ts.map +0 -1
- package/dist/libs/electron.js +0 -9
- package/dist/libs/electron.js.map +0 -1
- package/dist/libs/env-helpers.d.ts +0 -17
- package/dist/libs/env-helpers.d.ts.map +0 -1
- package/dist/libs/env-helpers.js +0 -9
- package/dist/libs/env-helpers.js.map +0 -1
- package/dist/libs/environment-parser.d.ts +0 -8
- package/dist/libs/environment-parser.d.ts.map +0 -1
- package/dist/libs/environment-parser.js +0 -19
- package/dist/libs/environment-parser.js.map +0 -1
- package/dist/libs/errors.d.ts +0 -23
- package/dist/libs/errors.d.ts.map +0 -1
- package/dist/libs/errors.js +0 -34
- package/dist/libs/errors.js.map +0 -1
- package/dist/libs/event-bus.d.ts +0 -41
- package/dist/libs/event-bus.d.ts.map +0 -1
- package/dist/libs/event-bus.js +0 -43
- package/dist/libs/event-bus.js.map +0 -1
- package/dist/libs/extractAttachmentFilename.d.ts +0 -5
- package/dist/libs/extractAttachmentFilename.d.ts.map +0 -1
- package/dist/libs/extractAttachmentFilename.js +0 -23
- package/dist/libs/extractAttachmentFilename.js.map +0 -1
- package/dist/libs/find-request.d.ts +0 -75
- package/dist/libs/find-request.d.ts.map +0 -1
- package/dist/libs/find-request.js +0 -40
- package/dist/libs/find-request.js.map +0 -1
- package/dist/libs/get-request-uid-by-path-method.d.ts +0 -7
- package/dist/libs/get-request-uid-by-path-method.d.ts.map +0 -1
- package/dist/libs/get-request-uid-by-path-method.js +0 -19
- package/dist/libs/get-request-uid-by-path-method.js.map +0 -1
- package/dist/libs/getOpenApiDocumentDetails.d.ts +0 -10
- package/dist/libs/getOpenApiDocumentDetails.d.ts.map +0 -1
- package/dist/libs/getOpenApiDocumentDetails.js +0 -45
- package/dist/libs/getOpenApiDocumentDetails.js.map +0 -1
- package/dist/libs/hot-keys.d.ts +0 -35
- package/dist/libs/hot-keys.d.ts.map +0 -1
- package/dist/libs/hot-keys.js +0 -92
- package/dist/libs/hot-keys.js.map +0 -1
- package/dist/libs/importers/curl.d.ts +0 -27
- package/dist/libs/importers/curl.d.ts.map +0 -1
- package/dist/libs/importers/curl.js +0 -54
- package/dist/libs/importers/curl.js.map +0 -1
- package/dist/libs/importers/index.d.ts +0 -2
- package/dist/libs/importers/index.d.ts.map +0 -1
- package/dist/libs/importers/index.js +0 -2
- package/dist/libs/index.d.ts +0 -15
- package/dist/libs/index.d.ts.map +0 -1
- package/dist/libs/index.js +0 -17
- package/dist/libs/isUrl.d.ts +0 -3
- package/dist/libs/isUrl.d.ts.map +0 -1
- package/dist/libs/isUrl.js +0 -12
- package/dist/libs/isUrl.js.map +0 -1
- package/dist/libs/local-storage.d.ts +0 -9
- package/dist/libs/local-storage.d.ts.map +0 -1
- package/dist/libs/local-storage.js +0 -40
- package/dist/libs/local-storage.js.map +0 -1
- package/dist/libs/normalize-headers.d.ts +0 -14
- package/dist/libs/normalize-headers.d.ts.map +0 -1
- package/dist/libs/normalize-headers.js +0 -55
- package/dist/libs/normalize-headers.js.map +0 -1
- package/dist/libs/parse-curl.d.ts.map +0 -1
- package/dist/libs/parse-curl.js.map +0 -1
- package/dist/libs/postman.d.ts +0 -11
- package/dist/libs/postman.d.ts.map +0 -1
- package/dist/libs/postman.js +0 -40
- package/dist/libs/postman.js.map +0 -1
- package/dist/libs/send-request/build-request-security.d.ts +0 -19
- package/dist/libs/send-request/build-request-security.d.ts.map +0 -1
- package/dist/libs/send-request/build-request-security.js +0 -41
- package/dist/libs/send-request/build-request-security.js.map +0 -1
- package/dist/libs/send-request/create-fetch-body.d.ts +0 -18
- package/dist/libs/send-request/create-fetch-body.d.ts.map +0 -1
- package/dist/libs/send-request/create-fetch-body.js +0 -44
- package/dist/libs/send-request/create-fetch-body.js.map +0 -1
- package/dist/libs/send-request/create-fetch-headers.d.ts +0 -4
- package/dist/libs/send-request/create-fetch-headers.d.ts.map +0 -1
- package/dist/libs/send-request/create-fetch-headers.js +0 -15
- package/dist/libs/send-request/create-fetch-headers.js.map +0 -1
- package/dist/libs/send-request/create-fetch-query-params.d.ts +0 -11
- package/dist/libs/send-request/create-fetch-query-params.d.ts.map +0 -1
- package/dist/libs/send-request/create-fetch-query-params.js +0 -43
- package/dist/libs/send-request/create-fetch-query-params.js.map +0 -1
- package/dist/libs/send-request/create-request-operation.d.ts +0 -32
- package/dist/libs/send-request/create-request-operation.d.ts.map +0 -1
- package/dist/libs/send-request/create-request-operation.js +0 -172
- package/dist/libs/send-request/create-request-operation.js.map +0 -1
- package/dist/libs/send-request/decode-buffer.d.ts +0 -3
- package/dist/libs/send-request/decode-buffer.d.ts.map +0 -1
- package/dist/libs/send-request/decode-buffer.js +0 -13
- package/dist/libs/send-request/decode-buffer.js.map +0 -1
- package/dist/libs/send-request/index.d.ts +0 -4
- package/dist/libs/send-request/index.d.ts.map +0 -1
- package/dist/libs/send-request/index.js +0 -4
- package/dist/libs/send-request/set-request-cookies.d.ts +0 -27
- package/dist/libs/send-request/set-request-cookies.d.ts.map +0 -1
- package/dist/libs/send-request/set-request-cookies.js +0 -82
- package/dist/libs/send-request/set-request-cookies.js.map +0 -1
- package/dist/libs/string-template.d.ts +0 -21
- package/dist/libs/string-template.d.ts.map +0 -1
- package/dist/libs/string-template.js +0 -64
- package/dist/libs/string-template.js.map +0 -1
- package/dist/libs/validate-parameters.d.ts +0 -14
- package/dist/libs/validate-parameters.d.ts.map +0 -1
- package/dist/libs/validate-parameters.js +0 -35
- package/dist/libs/validate-parameters.js.map +0 -1
- package/dist/plugins/hooks/usePluginManager.d.ts +0 -8
- package/dist/plugins/hooks/usePluginManager.d.ts.map +0 -1
- package/dist/plugins/hooks/usePluginManager.js +0 -16
- package/dist/plugins/hooks/usePluginManager.js.map +0 -1
- package/dist/plugins/index.d.ts +0 -3
- package/dist/plugins/index.d.ts.map +0 -1
- package/dist/plugins/index.js +0 -3
- package/dist/plugins/plugin-manager.d.ts +0 -34
- package/dist/plugins/plugin-manager.d.ts.map +0 -1
- package/dist/plugins/plugin-manager.js +0 -38
- package/dist/plugins/plugin-manager.js.map +0 -1
- package/dist/routes.d.ts +0 -19
- package/dist/routes.d.ts.map +0 -1
- package/dist/routes.js +0 -225
- package/dist/routes.js.map +0 -1
- package/dist/store/active-entities.d.ts +0 -387
- package/dist/store/active-entities.d.ts.map +0 -1
- package/dist/store/active-entities.js +0 -139
- package/dist/store/active-entities.js.map +0 -1
- package/dist/store/collections.d.ts +0 -625
- package/dist/store/collections.d.ts.map +0 -1
- package/dist/store/collections.js +0 -76
- package/dist/store/collections.js.map +0 -1
- package/dist/store/cookies.d.ts +0 -69
- package/dist/store/cookies.d.ts.map +0 -1
- package/dist/store/cookies.js +0 -16
- package/dist/store/cookies.js.map +0 -1
- package/dist/store/environment.d.ts +0 -75
- package/dist/store/environment.d.ts.map +0 -1
- package/dist/store/environment.js +0 -38
- package/dist/store/environment.js.map +0 -1
- package/dist/store/events.d.ts +0 -35
- package/dist/store/events.d.ts.map +0 -1
- package/dist/store/events.js +0 -17
- package/dist/store/events.js.map +0 -1
- package/dist/store/import-spec.d.ts +0 -38
- package/dist/store/import-spec.d.ts.map +0 -1
- package/dist/store/import-spec.js +0 -56
- package/dist/store/import-spec.js.map +0 -1
- package/dist/store/index.d.ts +0 -3
- package/dist/store/index.d.ts.map +0 -1
- package/dist/store/index.js +0 -3
- package/dist/store/request-example.d.ts +0 -1022
- package/dist/store/request-example.d.ts.map +0 -1
- package/dist/store/request-example.js +0 -43
- package/dist/store/request-example.js.map +0 -1
- package/dist/store/requests.d.ts +0 -675
- package/dist/store/requests.d.ts.map +0 -1
- package/dist/store/requests.js +0 -104
- package/dist/store/requests.js.map +0 -1
- package/dist/store/router-params.d.ts +0 -18
- package/dist/store/router-params.d.ts.map +0 -1
- package/dist/store/router-params.js +0 -27
- package/dist/store/router-params.js.map +0 -1
- package/dist/store/security-schemes.d.ts +0 -942
- package/dist/store/security-schemes.d.ts.map +0 -1
- package/dist/store/security-schemes.js +0 -45
- package/dist/store/security-schemes.js.map +0 -1
- package/dist/store/servers.d.ts +0 -122
- package/dist/store/servers.d.ts.map +0 -1
- package/dist/store/servers.js +0 -41
- package/dist/store/servers.js.map +0 -1
- package/dist/store/store-context.d.ts +0 -26
- package/dist/store/store-context.d.ts.map +0 -1
- package/dist/store/store.d.ts +0 -4055
- package/dist/store/store.d.ts.map +0 -1
- package/dist/store/store.js +0 -180
- package/dist/store/store.js.map +0 -1
- package/dist/store/tags.d.ts +0 -176
- package/dist/store/tags.d.ts.map +0 -1
- package/dist/store/tags.js +0 -54
- package/dist/store/tags.js.map +0 -1
- package/dist/store/workspace.d.ts +0 -232
- package/dist/store/workspace.d.ts.map +0 -1
- package/dist/store/workspace.js +0 -57
- package/dist/store/workspace.js.map +0 -1
- package/dist/types/index.d.ts +0 -2
- package/dist/types/index.d.ts.map +0 -1
- package/dist/types/index.js +0 -0
- package/dist/views/Collection/Collection.vue.d.ts +0 -4
- package/dist/views/Collection/Collection.vue.d.ts.map +0 -1
- package/dist/views/Collection/Collection.vue.js +0 -7
- package/dist/views/Collection/Collection.vue.js.map +0 -1
- package/dist/views/Collection/Collection.vue.script.js +0 -46
- package/dist/views/Collection/Collection.vue.script.js.map +0 -1
- package/dist/views/Collection/CollectionAuthentication.vue.d.ts +0 -4
- package/dist/views/Collection/CollectionAuthentication.vue.d.ts.map +0 -1
- package/dist/views/Collection/CollectionAuthentication.vue.js +0 -9
- package/dist/views/Collection/CollectionAuthentication.vue.js.map +0 -1
- package/dist/views/Collection/CollectionAuthentication.vue.script.js +0 -52
- package/dist/views/Collection/CollectionAuthentication.vue.script.js.map +0 -1
- package/dist/views/Collection/CollectionCookies.vue.d.ts +0 -4
- package/dist/views/Collection/CollectionCookies.vue.d.ts.map +0 -1
- package/dist/views/Collection/CollectionCookies.vue.js +0 -7
- package/dist/views/Collection/CollectionCookies.vue.js.map +0 -1
- package/dist/views/Collection/CollectionCookies.vue.script.js +0 -18
- package/dist/views/Collection/CollectionCookies.vue.script.js.map +0 -1
- package/dist/views/Collection/CollectionEnvironment.vue.d.ts +0 -4
- package/dist/views/Collection/CollectionEnvironment.vue.d.ts.map +0 -1
- package/dist/views/Collection/CollectionEnvironment.vue.js +0 -8
- package/dist/views/Collection/CollectionEnvironment.vue.js.map +0 -1
- package/dist/views/Collection/CollectionEnvironment.vue.script.js +0 -238
- package/dist/views/Collection/CollectionEnvironment.vue.script.js.map +0 -1
- package/dist/views/Collection/CollectionInfoForm.vue.d.ts +0 -4
- package/dist/views/Collection/CollectionInfoForm.vue.d.ts.map +0 -1
- package/dist/views/Collection/CollectionInfoForm.vue.js +0 -9
- package/dist/views/Collection/CollectionInfoForm.vue.js.map +0 -1
- package/dist/views/Collection/CollectionInfoForm.vue.script.js +0 -73
- package/dist/views/Collection/CollectionInfoForm.vue.script.js.map +0 -1
- package/dist/views/Collection/CollectionNavigation.vue.d.ts.map +0 -1
- package/dist/views/Collection/CollectionNavigation.vue.js +0 -7
- package/dist/views/Collection/CollectionNavigation.vue.js.map +0 -1
- package/dist/views/Collection/CollectionNavigation.vue.script.js +0 -75
- package/dist/views/Collection/CollectionNavigation.vue.script.js.map +0 -1
- package/dist/views/Collection/CollectionOverview.vue.d.ts +0 -4
- package/dist/views/Collection/CollectionOverview.vue.d.ts.map +0 -1
- package/dist/views/Collection/CollectionOverview.vue.js +0 -7
- package/dist/views/Collection/CollectionOverview.vue.js.map +0 -1
- package/dist/views/Collection/CollectionOverview.vue.script.js +0 -42
- package/dist/views/Collection/CollectionOverview.vue.script.js.map +0 -1
- package/dist/views/Collection/CollectionScripts.vue.d.ts +0 -4
- package/dist/views/Collection/CollectionScripts.vue.d.ts.map +0 -1
- package/dist/views/Collection/CollectionScripts.vue.js +0 -7
- package/dist/views/Collection/CollectionScripts.vue.js.map +0 -1
- package/dist/views/Collection/CollectionScripts.vue.script.js +0 -18
- package/dist/views/Collection/CollectionScripts.vue.script.js.map +0 -1
- package/dist/views/Collection/CollectionServerForm.vue.d.ts +0 -11
- package/dist/views/Collection/CollectionServerForm.vue.d.ts.map +0 -1
- package/dist/views/Collection/CollectionServerForm.vue.js +0 -7
- package/dist/views/Collection/CollectionServerForm.vue.js.map +0 -1
- package/dist/views/Collection/CollectionServerForm.vue.script.js +0 -76
- package/dist/views/Collection/CollectionServerForm.vue.script.js.map +0 -1
- package/dist/views/Collection/CollectionServers.vue.d.ts +0 -4
- package/dist/views/Collection/CollectionServers.vue.d.ts.map +0 -1
- package/dist/views/Collection/CollectionServers.vue.js +0 -7
- package/dist/views/Collection/CollectionServers.vue.js.map +0 -1
- package/dist/views/Collection/CollectionServers.vue.script.js +0 -95
- package/dist/views/Collection/CollectionServers.vue.script.js.map +0 -1
- package/dist/views/Collection/CollectionSettings.vue.d.ts +0 -4
- package/dist/views/Collection/CollectionSettings.vue.d.ts.map +0 -1
- package/dist/views/Collection/CollectionSettings.vue.js +0 -7
- package/dist/views/Collection/CollectionSettings.vue.js.map +0 -1
- package/dist/views/Collection/CollectionSettings.vue.script.js +0 -87
- package/dist/views/Collection/CollectionSettings.vue.script.js.map +0 -1
- package/dist/views/Collection/CollectionSync.vue.d.ts +0 -4
- package/dist/views/Collection/CollectionSync.vue.d.ts.map +0 -1
- package/dist/views/Collection/CollectionSync.vue.js +0 -7
- package/dist/views/Collection/CollectionSync.vue.js.map +0 -1
- package/dist/views/Collection/CollectionSync.vue.script.js +0 -18
- package/dist/views/Collection/CollectionSync.vue.script.js.map +0 -1
- package/dist/views/Collection/components/EnvironmentForm.vue.d.ts +0 -14
- package/dist/views/Collection/components/EnvironmentForm.vue.d.ts.map +0 -1
- package/dist/views/Collection/components/EnvironmentForm.vue.js +0 -9
- package/dist/views/Collection/components/EnvironmentForm.vue.js.map +0 -1
- package/dist/views/Collection/components/EnvironmentForm.vue.script.js +0 -284
- package/dist/views/Collection/components/EnvironmentForm.vue.script.js.map +0 -1
- package/dist/views/Collection/components/MarkdownInput.vue.d.ts +0 -17
- package/dist/views/Collection/components/MarkdownInput.vue.d.ts.map +0 -1
- package/dist/views/Collection/components/MarkdownInput.vue.js +0 -9
- package/dist/views/Collection/components/MarkdownInput.vue.js.map +0 -1
- package/dist/views/Collection/components/MarkdownInput.vue.script.js +0 -92
- package/dist/views/Collection/components/MarkdownInput.vue.script.js.map +0 -1
- package/dist/views/Components/CodeSnippet/CodeSnippet.vue.d.ts +0 -16
- package/dist/views/Components/CodeSnippet/CodeSnippet.vue.d.ts.map +0 -1
- package/dist/views/Components/CodeSnippet/CodeSnippet.vue.js +0 -7
- package/dist/views/Components/CodeSnippet/CodeSnippet.vue.js.map +0 -1
- package/dist/views/Components/CodeSnippet/CodeSnippet.vue.script.js +0 -74
- package/dist/views/Components/CodeSnippet/CodeSnippet.vue.script.js.map +0 -1
- package/dist/views/Components/CodeSnippet/helpers/convert-to-har-request.d.ts +0 -28
- package/dist/views/Components/CodeSnippet/helpers/convert-to-har-request.d.ts.map +0 -1
- package/dist/views/Components/CodeSnippet/helpers/convert-to-har-request.js +0 -66
- package/dist/views/Components/CodeSnippet/helpers/convert-to-har-request.js.map +0 -1
- package/dist/views/Components/CodeSnippet/helpers/get-har-request.d.ts +0 -16
- package/dist/views/Components/CodeSnippet/helpers/get-har-request.d.ts.map +0 -1
- package/dist/views/Components/CodeSnippet/helpers/get-har-request.js +0 -86
- package/dist/views/Components/CodeSnippet/helpers/get-har-request.js.map +0 -1
- package/dist/views/Components/CodeSnippet/helpers/get-snippet.d.ts.map +0 -1
- package/dist/views/Components/CodeSnippet/helpers/get-snippet.js.map +0 -1
- package/dist/views/Components/CodeSnippet/index.d.ts +0 -5
- package/dist/views/Components/CodeSnippet/index.d.ts.map +0 -1
- package/dist/views/Components/CodeSnippet/index.js +0 -5
- package/dist/views/Cookies/CookieForm.vue.d.ts +0 -4
- package/dist/views/Cookies/CookieForm.vue.d.ts.map +0 -1
- package/dist/views/Cookies/CookieForm.vue.js +0 -7
- package/dist/views/Cookies/CookieForm.vue.js.map +0 -1
- package/dist/views/Cookies/CookieForm.vue.script.js +0 -50
- package/dist/views/Cookies/CookieForm.vue.script.js.map +0 -1
- package/dist/views/Cookies/CookieModal.vue.d.ts +0 -22
- package/dist/views/Cookies/CookieModal.vue.d.ts.map +0 -1
- package/dist/views/Cookies/CookieModal.vue.js +0 -9
- package/dist/views/Cookies/CookieModal.vue.js.map +0 -1
- package/dist/views/Cookies/CookieModal.vue.script.js +0 -83
- package/dist/views/Cookies/CookieModal.vue.script.js.map +0 -1
- package/dist/views/Cookies/CookieRaw.vue.d.ts +0 -4
- package/dist/views/Cookies/CookieRaw.vue.d.ts.map +0 -1
- package/dist/views/Cookies/Cookies.vue.d.ts +0 -4
- package/dist/views/Cookies/Cookies.vue.d.ts.map +0 -1
- package/dist/views/Cookies/Cookies.vue.js +0 -7
- package/dist/views/Cookies/Cookies.vue.js.map +0 -1
- package/dist/views/Cookies/Cookies.vue.script.js +0 -156
- package/dist/views/Cookies/Cookies.vue.script.js.map +0 -1
- package/dist/views/Environment/Environment.vue.d.ts +0 -4
- package/dist/views/Environment/Environment.vue.d.ts.map +0 -1
- package/dist/views/Environment/Environment.vue.js +0 -7
- package/dist/views/Environment/Environment.vue.js.map +0 -1
- package/dist/views/Environment/Environment.vue.script.js +0 -384
- package/dist/views/Environment/Environment.vue.script.js.map +0 -1
- package/dist/views/Environment/EnvironmentColorModal.vue.d.ts +0 -15
- package/dist/views/Environment/EnvironmentColorModal.vue.d.ts.map +0 -1
- package/dist/views/Environment/EnvironmentColorModal.vue.js +0 -7
- package/dist/views/Environment/EnvironmentColorModal.vue.js.map +0 -1
- package/dist/views/Environment/EnvironmentColorModal.vue.script.js +0 -47
- package/dist/views/Environment/EnvironmentColorModal.vue.script.js.map +0 -1
- package/dist/views/Environment/EnvironmentColors.vue.d.ts +0 -14
- package/dist/views/Environment/EnvironmentColors.vue.d.ts.map +0 -1
- package/dist/views/Environment/EnvironmentColors.vue.js +0 -7
- package/dist/views/Environment/EnvironmentColors.vue.js.map +0 -1
- package/dist/views/Environment/EnvironmentColors.vue.script.js +0 -126
- package/dist/views/Environment/EnvironmentColors.vue.script.js.map +0 -1
- package/dist/views/Environment/EnvironmentModal.vue.d.ts +0 -27
- package/dist/views/Environment/EnvironmentModal.vue.d.ts.map +0 -1
- package/dist/views/Environment/EnvironmentModal.vue.js +0 -7
- package/dist/views/Environment/EnvironmentModal.vue.js.map +0 -1
- package/dist/views/Environment/EnvironmentModal.vue.script.js +0 -122
- package/dist/views/Environment/EnvironmentModal.vue.script.js.map +0 -1
- package/dist/views/Environment/EnvironmentVariableDropdown.vue.d.ts +0 -22
- package/dist/views/Environment/EnvironmentVariableDropdown.vue.d.ts.map +0 -1
- package/dist/views/Environment/EnvironmentVariableDropdown.vue.js +0 -7
- package/dist/views/Environment/EnvironmentVariableDropdown.vue.js.map +0 -1
- package/dist/views/Environment/EnvironmentVariableDropdown.vue.script.js +0 -133
- package/dist/views/Environment/EnvironmentVariableDropdown.vue.script.js.map +0 -1
- package/dist/views/Environment/handle-drag.d.ts +0 -13
- package/dist/views/Environment/handle-drag.d.ts.map +0 -1
- package/dist/views/Environment/handle-drag.js +0 -38
- package/dist/views/Environment/handle-drag.js.map +0 -1
- package/dist/views/Request/Request.vue.d.ts +0 -21
- package/dist/views/Request/Request.vue.d.ts.map +0 -1
- package/dist/views/Request/Request.vue.js +0 -9
- package/dist/views/Request/Request.vue.js.map +0 -1
- package/dist/views/Request/Request.vue.script.js +0 -117
- package/dist/views/Request/Request.vue.script.js.map +0 -1
- package/dist/views/Request/RequestRoot.vue.d.ts +0 -14
- package/dist/views/Request/RequestRoot.vue.d.ts.map +0 -1
- package/dist/views/Request/RequestRoot.vue.js +0 -9
- package/dist/views/Request/RequestRoot.vue.js.map +0 -1
- package/dist/views/Request/RequestRoot.vue.script.js +0 -158
- package/dist/views/Request/RequestRoot.vue.script.js.map +0 -1
- package/dist/views/Request/RequestSection/RequestAuth/DeleteRequestAuthModal.vue.d.ts +0 -22
- package/dist/views/Request/RequestSection/RequestAuth/DeleteRequestAuthModal.vue.d.ts.map +0 -1
- package/dist/views/Request/RequestSection/RequestAuth/DeleteRequestAuthModal.vue.js +0 -7
- package/dist/views/Request/RequestSection/RequestAuth/DeleteRequestAuthModal.vue.js.map +0 -1
- package/dist/views/Request/RequestSection/RequestAuth/DeleteRequestAuthModal.vue.script.js +0 -52
- package/dist/views/Request/RequestSection/RequestAuth/DeleteRequestAuthModal.vue.script.js.map +0 -1
- package/dist/views/Request/RequestSection/RequestAuth/OAuth2.vue.d.ts +0 -31
- package/dist/views/Request/RequestSection/RequestAuth/OAuth2.vue.d.ts.map +0 -1
- package/dist/views/Request/RequestSection/RequestAuth/OAuth2.vue.js +0 -7
- package/dist/views/Request/RequestSection/RequestAuth/OAuth2.vue.js.map +0 -1
- package/dist/views/Request/RequestSection/RequestAuth/OAuth2.vue.script.js +0 -214
- package/dist/views/Request/RequestSection/RequestAuth/OAuth2.vue.script.js.map +0 -1
- package/dist/views/Request/RequestSection/RequestAuth/OAuthScopesInput.vue.d.ts +0 -10
- package/dist/views/Request/RequestSection/RequestAuth/OAuthScopesInput.vue.d.ts.map +0 -1
- package/dist/views/Request/RequestSection/RequestAuth/OAuthScopesInput.vue.js +0 -7
- package/dist/views/Request/RequestSection/RequestAuth/OAuthScopesInput.vue.js.map +0 -1
- package/dist/views/Request/RequestSection/RequestAuth/OAuthScopesInput.vue.script.js +0 -106
- package/dist/views/Request/RequestSection/RequestAuth/OAuthScopesInput.vue.script.js.map +0 -1
- package/dist/views/Request/RequestSection/RequestAuth/RequestAuth.vue.d.ts +0 -222
- package/dist/views/Request/RequestSection/RequestAuth/RequestAuth.vue.d.ts.map +0 -1
- package/dist/views/Request/RequestSection/RequestAuth/RequestAuth.vue.js +0 -9
- package/dist/views/Request/RequestSection/RequestAuth/RequestAuth.vue.js.map +0 -1
- package/dist/views/Request/RequestSection/RequestAuth/RequestAuth.vue.script.js +0 -216
- package/dist/views/Request/RequestSection/RequestAuth/RequestAuth.vue.script.js.map +0 -1
- package/dist/views/Request/RequestSection/RequestAuth/RequestAuthDataTable.vue.d.ts +0 -220
- package/dist/views/Request/RequestSection/RequestAuth/RequestAuthDataTable.vue.d.ts.map +0 -1
- package/dist/views/Request/RequestSection/RequestAuth/RequestAuthDataTable.vue.js +0 -9
- package/dist/views/Request/RequestSection/RequestAuth/RequestAuthDataTable.vue.js.map +0 -1
- package/dist/views/Request/RequestSection/RequestAuth/RequestAuthDataTable.vue.script.js +0 -116
- package/dist/views/Request/RequestSection/RequestAuth/RequestAuthDataTable.vue.script.js.map +0 -1
- package/dist/views/Request/RequestSection/RequestAuth/RequestAuthDataTableInput.vue.d.ts +0 -43
- package/dist/views/Request/RequestSection/RequestAuth/RequestAuthDataTableInput.vue.d.ts.map +0 -1
- package/dist/views/Request/RequestSection/RequestAuth/RequestAuthDataTableInput.vue.js +0 -7
- package/dist/views/Request/RequestSection/RequestAuth/RequestAuthDataTableInput.vue.js.map +0 -1
- package/dist/views/Request/RequestSection/RequestAuth/RequestAuthDataTableInput.vue.script.js +0 -73
- package/dist/views/Request/RequestSection/RequestAuth/RequestAuthDataTableInput.vue.script.js.map +0 -1
- package/dist/views/Request/RequestSection/RequestAuth/RequestAuthTab.vue.d.ts +0 -31
- package/dist/views/Request/RequestSection/RequestAuth/RequestAuthTab.vue.d.ts.map +0 -1
- package/dist/views/Request/RequestSection/RequestAuth/RequestAuthTab.vue.js +0 -7
- package/dist/views/Request/RequestSection/RequestAuth/RequestAuthTab.vue.js.map +0 -1
- package/dist/views/Request/RequestSection/RequestAuth/RequestAuthTab.vue.script.js +0 -205
- package/dist/views/Request/RequestSection/RequestAuth/RequestAuthTab.vue.script.js.map +0 -1
- package/dist/views/Request/RequestSection/RequestAuth/helpers/restore-auth-from-local-storage.d.ts +0 -9
- package/dist/views/Request/RequestSection/RequestAuth/helpers/restore-auth-from-local-storage.d.ts.map +0 -1
- package/dist/views/Request/RequestSection/RequestAuth/helpers/restore-auth-from-local-storage.js +0 -39
- package/dist/views/Request/RequestSection/RequestAuth/helpers/restore-auth-from-local-storage.js.map +0 -1
- package/dist/views/Request/RequestSection/RequestAuth/index.d.ts +0 -4
- package/dist/views/Request/RequestSection/RequestAuth/index.d.ts.map +0 -1
- package/dist/views/Request/RequestSection/RequestAuth/index.js +0 -4
- package/dist/views/Request/RequestSection/RequestBody.vue.d.ts +0 -16
- package/dist/views/Request/RequestSection/RequestBody.vue.d.ts.map +0 -1
- package/dist/views/Request/RequestSection/RequestBody.vue.js +0 -9
- package/dist/views/Request/RequestSection/RequestBody.vue.js.map +0 -1
- package/dist/views/Request/RequestSection/RequestBody.vue.script.js +0 -477
- package/dist/views/Request/RequestSection/RequestBody.vue.script.js.map +0 -1
- package/dist/views/Request/RequestSection/RequestCodeExample.vue.d.ts +0 -15
- package/dist/views/Request/RequestSection/RequestCodeExample.vue.d.ts.map +0 -1
- package/dist/views/Request/RequestSection/RequestCodeExample.vue.js +0 -9
- package/dist/views/Request/RequestSection/RequestCodeExample.vue.js.map +0 -1
- package/dist/views/Request/RequestSection/RequestCodeExample.vue.script.js +0 -187
- package/dist/views/Request/RequestSection/RequestCodeExample.vue.script.js.map +0 -1
- package/dist/views/Request/RequestSection/RequestParams.vue.d.ts +0 -25
- package/dist/views/Request/RequestSection/RequestParams.vue.d.ts.map +0 -1
- package/dist/views/Request/RequestSection/RequestParams.vue.js +0 -7
- package/dist/views/Request/RequestSection/RequestParams.vue.js.map +0 -1
- package/dist/views/Request/RequestSection/RequestParams.vue.script.js +0 -180
- package/dist/views/Request/RequestSection/RequestParams.vue.script.js.map +0 -1
- package/dist/views/Request/RequestSection/RequestPathParams.vue.d.ts +0 -18
- package/dist/views/Request/RequestSection/RequestPathParams.vue.d.ts.map +0 -1
- package/dist/views/Request/RequestSection/RequestPathParams.vue.js +0 -7
- package/dist/views/Request/RequestSection/RequestPathParams.vue.js.map +0 -1
- package/dist/views/Request/RequestSection/RequestPathParams.vue.script.js +0 -115
- package/dist/views/Request/RequestSection/RequestPathParams.vue.script.js.map +0 -1
- package/dist/views/Request/RequestSection/RequestSection.vue.d.ts +0 -20
- package/dist/views/Request/RequestSection/RequestSection.vue.d.ts.map +0 -1
- package/dist/views/Request/RequestSection/RequestSection.vue.js +0 -9
- package/dist/views/Request/RequestSection/RequestSection.vue.js.map +0 -1
- package/dist/views/Request/RequestSection/RequestSection.vue.script.js +0 -297
- package/dist/views/Request/RequestSection/RequestSection.vue.script.js.map +0 -1
- package/dist/views/Request/RequestSection/RequestTable.vue.d.ts +0 -47
- package/dist/views/Request/RequestSection/RequestTable.vue.d.ts.map +0 -1
- package/dist/views/Request/RequestSection/RequestTable.vue.js +0 -9
- package/dist/views/Request/RequestSection/RequestTable.vue.js.map +0 -1
- package/dist/views/Request/RequestSection/RequestTable.vue.script.js +0 -266
- package/dist/views/Request/RequestSection/RequestTable.vue.script.js.map +0 -1
- package/dist/views/Request/RequestSection/RequestTableTooltip.vue.d.ts +0 -8
- package/dist/views/Request/RequestSection/RequestTableTooltip.vue.d.ts.map +0 -1
- package/dist/views/Request/RequestSection/RequestTableTooltip.vue.js +0 -9
- package/dist/views/Request/RequestSection/RequestTableTooltip.vue.js.map +0 -1
- package/dist/views/Request/RequestSection/RequestTableTooltip.vue.script.js +0 -64
- package/dist/views/Request/RequestSection/RequestTableTooltip.vue.script.js.map +0 -1
- package/dist/views/Request/RequestSection/helpers/filter-security-requirements.d.ts +0 -6
- package/dist/views/Request/RequestSection/helpers/filter-security-requirements.d.ts.map +0 -1
- package/dist/views/Request/RequestSection/helpers/filter-security-requirements.js +0 -38
- package/dist/views/Request/RequestSection/helpers/filter-security-requirements.js.map +0 -1
- package/dist/views/Request/RequestSection/helpers/getting-started.d.ts +0 -6
- package/dist/views/Request/RequestSection/helpers/getting-started.d.ts.map +0 -1
- package/dist/views/Request/RequestSection/helpers/getting-started.js +0 -17
- package/dist/views/Request/RequestSection/helpers/getting-started.js.map +0 -1
- package/dist/views/Request/RequestSection/helpers/update-scheme.d.ts +0 -8
- package/dist/views/Request/RequestSection/helpers/update-scheme.d.ts.map +0 -1
- package/dist/views/Request/RequestSection/helpers/update-scheme.js +0 -22
- package/dist/views/Request/RequestSection/helpers/update-scheme.js.map +0 -1
- package/dist/views/Request/RequestSection/index.d.ts +0 -3
- package/dist/views/Request/RequestSection/index.d.ts.map +0 -1
- package/dist/views/Request/RequestSection/index.js +0 -3
- package/dist/views/Request/RequestSidebar.vue.d.ts +0 -16
- package/dist/views/Request/RequestSidebar.vue.d.ts.map +0 -1
- package/dist/views/Request/RequestSidebar.vue.js +0 -9
- package/dist/views/Request/RequestSidebar.vue.js.map +0 -1
- package/dist/views/Request/RequestSidebar.vue.script.js +0 -307
- package/dist/views/Request/RequestSidebar.vue.script.js.map +0 -1
- package/dist/views/Request/RequestSidebarItem.vue.d.ts +0 -43
- package/dist/views/Request/RequestSidebarItem.vue.d.ts.map +0 -1
- package/dist/views/Request/RequestSidebarItem.vue.js +0 -10
- package/dist/views/Request/RequestSidebarItem.vue.js.map +0 -1
- package/dist/views/Request/RequestSidebarItem.vue.script.js +0 -475
- package/dist/views/Request/RequestSidebarItem.vue.script.js.map +0 -1
- package/dist/views/Request/RequestSidebarItemMenu.vue.d.ts +0 -16
- package/dist/views/Request/RequestSidebarItemMenu.vue.d.ts.map +0 -1
- package/dist/views/Request/RequestSidebarItemMenu.vue.js +0 -9
- package/dist/views/Request/RequestSidebarItemMenu.vue.js.map +0 -1
- package/dist/views/Request/RequestSidebarItemMenu.vue.script.js +0 -222
- package/dist/views/Request/RequestSidebarItemMenu.vue.script.js.map +0 -1
- package/dist/views/Request/RequestSubpageHeader.vue.d.ts +0 -22
- package/dist/views/Request/RequestSubpageHeader.vue.d.ts.map +0 -1
- package/dist/views/Request/RequestSubpageHeader.vue.js +0 -9
- package/dist/views/Request/RequestSubpageHeader.vue.js.map +0 -1
- package/dist/views/Request/RequestSubpageHeader.vue.script.js +0 -92
- package/dist/views/Request/RequestSubpageHeader.vue.script.js.map +0 -1
- package/dist/views/Request/ResponseSection/RequestHeaders.vue.d.ts +0 -12
- package/dist/views/Request/ResponseSection/RequestHeaders.vue.d.ts.map +0 -1
- package/dist/views/Request/ResponseSection/RequestHeaders.vue.js +0 -7
- package/dist/views/Request/ResponseSection/RequestHeaders.vue.js.map +0 -1
- package/dist/views/Request/ResponseSection/RequestHeaders.vue.script.js +0 -77
- package/dist/views/Request/ResponseSection/RequestHeaders.vue.script.js.map +0 -1
- package/dist/views/Request/ResponseSection/ResponseBody.vue.d.ts +0 -14
- package/dist/views/Request/ResponseSection/ResponseBody.vue.d.ts.map +0 -1
- package/dist/views/Request/ResponseSection/ResponseBody.vue.js +0 -9
- package/dist/views/Request/ResponseSection/ResponseBody.vue.js.map +0 -1
- package/dist/views/Request/ResponseSection/ResponseBody.vue.script.js +0 -91
- package/dist/views/Request/ResponseSection/ResponseBody.vue.script.js.map +0 -1
- package/dist/views/Request/ResponseSection/ResponseBodyDownload.vue.d.ts +0 -9
- package/dist/views/Request/ResponseSection/ResponseBodyDownload.vue.d.ts.map +0 -1
- package/dist/views/Request/ResponseSection/ResponseBodyDownload.vue.js +0 -7
- package/dist/views/Request/ResponseSection/ResponseBodyDownload.vue.js.map +0 -1
- package/dist/views/Request/ResponseSection/ResponseBodyDownload.vue.script.js +0 -35
- package/dist/views/Request/ResponseSection/ResponseBodyDownload.vue.script.js.map +0 -1
- package/dist/views/Request/ResponseSection/ResponseBodyInfo.vue.d.ts +0 -14
- package/dist/views/Request/ResponseSection/ResponseBodyInfo.vue.d.ts.map +0 -1
- package/dist/views/Request/ResponseSection/ResponseBodyInfo.vue.js +0 -14
- package/dist/views/Request/ResponseSection/ResponseBodyInfo.vue.js.map +0 -1
- package/dist/views/Request/ResponseSection/ResponseBodyPreview.vue.d.ts +0 -11
- package/dist/views/Request/ResponseSection/ResponseBodyPreview.vue.d.ts.map +0 -1
- package/dist/views/Request/ResponseSection/ResponseBodyPreview.vue.js +0 -9
- package/dist/views/Request/ResponseSection/ResponseBodyPreview.vue.js.map +0 -1
- package/dist/views/Request/ResponseSection/ResponseBodyPreview.vue.script.js +0 -64
- package/dist/views/Request/ResponseSection/ResponseBodyPreview.vue.script.js.map +0 -1
- package/dist/views/Request/ResponseSection/ResponseBodyRaw.vue.d.ts +0 -9
- package/dist/views/Request/ResponseSection/ResponseBodyRaw.vue.d.ts.map +0 -1
- package/dist/views/Request/ResponseSection/ResponseBodyRaw.vue.js +0 -9
- package/dist/views/Request/ResponseSection/ResponseBodyRaw.vue.js.map +0 -1
- package/dist/views/Request/ResponseSection/ResponseBodyRaw.vue.script.js +0 -54
- package/dist/views/Request/ResponseSection/ResponseBodyRaw.vue.script.js.map +0 -1
- package/dist/views/Request/ResponseSection/ResponseBodyStreaming.vue.d.ts +0 -7
- package/dist/views/Request/ResponseSection/ResponseBodyStreaming.vue.d.ts.map +0 -1
- package/dist/views/Request/ResponseSection/ResponseBodyStreaming.vue.js +0 -7
- package/dist/views/Request/ResponseSection/ResponseBodyStreaming.vue.js.map +0 -1
- package/dist/views/Request/ResponseSection/ResponseBodyStreaming.vue.script.js +0 -85
- package/dist/views/Request/ResponseSection/ResponseBodyStreaming.vue.script.js.map +0 -1
- package/dist/views/Request/ResponseSection/ResponseBodyToggle.vue.d.ts +0 -11
- package/dist/views/Request/ResponseSection/ResponseBodyToggle.vue.d.ts.map +0 -1
- package/dist/views/Request/ResponseSection/ResponseBodyToggle.vue.js +0 -7
- package/dist/views/Request/ResponseSection/ResponseBodyToggle.vue.js.map +0 -1
- package/dist/views/Request/ResponseSection/ResponseBodyToggle.vue.script.js +0 -25
- package/dist/views/Request/ResponseSection/ResponseBodyToggle.vue.script.js.map +0 -1
- package/dist/views/Request/ResponseSection/ResponseBodyVirtual.vue.d.ts +0 -13
- package/dist/views/Request/ResponseSection/ResponseBodyVirtual.vue.d.ts.map +0 -1
- package/dist/views/Request/ResponseSection/ResponseBodyVirtual.vue.js +0 -8
- package/dist/views/Request/ResponseSection/ResponseBodyVirtual.vue.js.map +0 -1
- package/dist/views/Request/ResponseSection/ResponseBodyVirtual.vue.script.js +0 -51
- package/dist/views/Request/ResponseSection/ResponseBodyVirtual.vue.script.js.map +0 -1
- package/dist/views/Request/ResponseSection/ResponseCookies.vue.d.ts +0 -11
- package/dist/views/Request/ResponseSection/ResponseCookies.vue.d.ts.map +0 -1
- package/dist/views/Request/ResponseSection/ResponseCookies.vue.js +0 -7
- package/dist/views/Request/ResponseSection/ResponseCookies.vue.js.map +0 -1
- package/dist/views/Request/ResponseSection/ResponseCookies.vue.script.js +0 -39
- package/dist/views/Request/ResponseSection/ResponseCookies.vue.script.js.map +0 -1
- package/dist/views/Request/ResponseSection/ResponseEmpty.vue.d.ts +0 -12
- package/dist/views/Request/ResponseSection/ResponseEmpty.vue.d.ts.map +0 -1
- package/dist/views/Request/ResponseSection/ResponseEmpty.vue.js +0 -9
- package/dist/views/Request/ResponseSection/ResponseEmpty.vue.js.map +0 -1
- package/dist/views/Request/ResponseSection/ResponseEmpty.vue.script.js +0 -98
- package/dist/views/Request/ResponseSection/ResponseEmpty.vue.script.js.map +0 -1
- package/dist/views/Request/ResponseSection/ResponseHeaders.vue.d.ts +0 -12
- package/dist/views/Request/ResponseSection/ResponseHeaders.vue.d.ts.map +0 -1
- package/dist/views/Request/ResponseSection/ResponseHeaders.vue.js +0 -7
- package/dist/views/Request/ResponseSection/ResponseHeaders.vue.js.map +0 -1
- package/dist/views/Request/ResponseSection/ResponseHeaders.vue.script.js +0 -77
- package/dist/views/Request/ResponseSection/ResponseHeaders.vue.script.js.map +0 -1
- package/dist/views/Request/ResponseSection/ResponseLoadingOverlay.vue.d.ts +0 -4
- package/dist/views/Request/ResponseSection/ResponseLoadingOverlay.vue.d.ts.map +0 -1
- package/dist/views/Request/ResponseSection/ResponseLoadingOverlay.vue.js +0 -9
- package/dist/views/Request/ResponseSection/ResponseLoadingOverlay.vue.js.map +0 -1
- package/dist/views/Request/ResponseSection/ResponseLoadingOverlay.vue.script.js +0 -44
- package/dist/views/Request/ResponseSection/ResponseLoadingOverlay.vue.script.js.map +0 -1
- package/dist/views/Request/ResponseSection/ResponseMetaInformation.vue.d.ts +0 -8
- package/dist/views/Request/ResponseSection/ResponseMetaInformation.vue.d.ts.map +0 -1
- package/dist/views/Request/ResponseSection/ResponseMetaInformation.vue.js +0 -7
- package/dist/views/Request/ResponseSection/ResponseMetaInformation.vue.js.map +0 -1
- package/dist/views/Request/ResponseSection/ResponseMetaInformation.vue.script.js +0 -64
- package/dist/views/Request/ResponseSection/ResponseMetaInformation.vue.script.js.map +0 -1
- package/dist/views/Request/ResponseSection/ResponseSection.vue.d.ts +0 -15
- package/dist/views/Request/ResponseSection/ResponseSection.vue.d.ts.map +0 -1
- package/dist/views/Request/ResponseSection/ResponseSection.vue.js +0 -9
- package/dist/views/Request/ResponseSection/ResponseSection.vue.js.map +0 -1
- package/dist/views/Request/ResponseSection/ResponseSection.vue.script.js +0 -206
- package/dist/views/Request/ResponseSection/ResponseSection.vue.script.js.map +0 -1
- package/dist/views/Request/ResponseSection/index.d.ts +0 -3
- package/dist/views/Request/ResponseSection/index.d.ts.map +0 -1
- package/dist/views/Request/ResponseSection/index.js +0 -3
- package/dist/views/Request/components/WorkspaceDropdown.vue.d.ts +0 -4
- package/dist/views/Request/components/WorkspaceDropdown.vue.d.ts.map +0 -1
- package/dist/views/Request/components/WorkspaceDropdown.vue.js +0 -7
- package/dist/views/Request/components/WorkspaceDropdown.vue.js.map +0 -1
- package/dist/views/Request/components/WorkspaceDropdown.vue.script.js +0 -182
- package/dist/views/Request/components/WorkspaceDropdown.vue.script.js.map +0 -1
- package/dist/views/Request/components/index.d.ts +0 -2
- package/dist/views/Request/components/index.d.ts.map +0 -1
- package/dist/views/Request/components/index.js +0 -2
- package/dist/views/Request/consts/index.d.ts +0 -3
- package/dist/views/Request/consts/index.d.ts.map +0 -1
- package/dist/views/Request/consts/index.js +0 -3
- package/dist/views/Request/consts/mediaTypes.d.ts +0 -20
- package/dist/views/Request/consts/mediaTypes.d.ts.map +0 -1
- package/dist/views/Request/consts/mediaTypes.js +0 -231
- package/dist/views/Request/consts/mediaTypes.js.map +0 -1
- package/dist/views/Request/consts/new-auth-options.d.ts +0 -107
- package/dist/views/Request/consts/new-auth-options.d.ts.map +0 -1
- package/dist/views/Request/consts/new-auth-options.js +0 -90
- package/dist/views/Request/consts/new-auth-options.js.map +0 -1
- package/dist/views/Request/handle-drag.d.ts +0 -9
- package/dist/views/Request/handle-drag.d.ts.map +0 -1
- package/dist/views/Request/handle-drag.js +0 -51
- package/dist/views/Request/handle-drag.js.map +0 -1
- package/dist/views/Request/hooks/useOpenApiWatcher.d.ts +0 -9
- package/dist/views/Request/hooks/useOpenApiWatcher.d.ts.map +0 -1
- package/dist/views/Request/hooks/useOpenApiWatcher.js +0 -96
- package/dist/views/Request/hooks/useOpenApiWatcher.js.map +0 -1
- package/dist/views/Request/libs/auth.d.ts +0 -27
- package/dist/views/Request/libs/auth.d.ts.map +0 -1
- package/dist/views/Request/libs/auth.js +0 -74
- package/dist/views/Request/libs/auth.js.map +0 -1
- package/dist/views/Request/libs/index.d.ts +0 -4
- package/dist/views/Request/libs/index.d.ts.map +0 -1
- package/dist/views/Request/libs/index.js +0 -4
- package/dist/views/Request/libs/oauth2.d.ts +0 -43
- package/dist/views/Request/libs/oauth2.d.ts.map +0 -1
- package/dist/views/Request/libs/oauth2.js +0 -178
- package/dist/views/Request/libs/oauth2.js.map +0 -1
- package/dist/views/Request/libs/request.d.ts +0 -21
- package/dist/views/Request/libs/request.d.ts.map +0 -1
- package/dist/views/Request/libs/request.js +0 -46
- package/dist/views/Request/libs/request.js.map +0 -1
- package/dist/views/Request/libs/watch-mode.d.ts +0 -60
- package/dist/views/Request/libs/watch-mode.d.ts.map +0 -1
- package/dist/views/Request/libs/watch-mode.js +0 -375
- package/dist/views/Request/libs/watch-mode.js.map +0 -1
- package/dist/views/Request/types/index.d.ts +0 -2
- package/dist/views/Request/types/index.d.ts.map +0 -1
- package/dist/views/Request/types/index.js +0 -0
- package/dist/views/Request/types/sidebar-item.d.ts +0 -30
- package/dist/views/Request/types/sidebar-item.d.ts.map +0 -1
- package/dist/views/Settings/Settings.vue.d.ts +0 -5
- package/dist/views/Settings/Settings.vue.d.ts.map +0 -1
- package/dist/views/Settings/Settings.vue.js +0 -7
- package/dist/views/Settings/Settings.vue.js.map +0 -1
- package/dist/views/Settings/Settings.vue.script.js +0 -28
- package/dist/views/Settings/Settings.vue.script.js.map +0 -1
- package/dist/views/Settings/SettingsGeneral.vue.d.ts +0 -4
- package/dist/views/Settings/SettingsGeneral.vue.d.ts.map +0 -1
- package/dist/views/Settings/SettingsGeneral.vue.js +0 -7
- package/dist/views/Settings/SettingsGeneral.vue.js.map +0 -1
- package/dist/views/Settings/SettingsGeneral.vue.script.js +0 -241
- package/dist/views/Settings/SettingsGeneral.vue.script.js.map +0 -1
- package/dist/views/Settings/components/SettingsAppearance.vue.d.ts +0 -4
- package/dist/views/Settings/components/SettingsAppearance.vue.d.ts.map +0 -1
- package/dist/views/Settings/components/SettingsAppearance.vue.js +0 -7
- package/dist/views/Settings/components/SettingsAppearance.vue.js.map +0 -1
- package/dist/views/Settings/components/SettingsAppearance.vue.script.js +0 -62
- package/dist/views/Settings/components/SettingsAppearance.vue.script.js.map +0 -1
- package/dist/views/Settings/components/SettingsSection.vue.d.ts +0 -15
- package/dist/views/Settings/components/SettingsSection.vue.d.ts.map +0 -1
- package/dist/views/Settings/components/SettingsSection.vue.js +0 -7
- package/dist/views/Settings/components/SettingsSection.vue.js.map +0 -1
- package/dist/views/Settings/components/SettingsSection.vue.script.js +0 -27
- package/dist/views/Settings/components/SettingsSection.vue.script.js.map +0 -1
- /package/dist/{components → v2/blocks/operation-block/components}/OpenApiClientButton.vue.d.ts +0 -0
|
@@ -10,7 +10,8 @@ import type { XScalarEnvironment } from '@scalar/workspace-store/schemas/extensi
|
|
|
10
10
|
import type { XScalarCookie } from '@scalar/workspace-store/schemas/extensions/general/x-scalar-cookies';
|
|
11
11
|
import type { OpenApiDocument, ServerObject } from '@scalar/workspace-store/schemas/v3.1/strict/openapi-document';
|
|
12
12
|
import type { OperationObject } from '@scalar/workspace-store/schemas/v3.1/strict/operation';
|
|
13
|
-
import type {
|
|
13
|
+
import type { ModalProps } from '../../../v2/features/modal/Modal.vue.js';
|
|
14
|
+
import type { ClientLayout } from '../../../v2/types/layout';
|
|
14
15
|
/**
|
|
15
16
|
* OperationBlock
|
|
16
17
|
*
|
|
@@ -91,6 +92,8 @@ export type OperationBlockProps = {
|
|
|
91
92
|
defaultHeaders: Record<string, string>;
|
|
92
93
|
/** Selected anyOf/oneOf request-body variants keyed by schema path */
|
|
93
94
|
requestBodyCompositionSelection?: Record<string, number>;
|
|
95
|
+
/** Subset of config options for the modal */
|
|
96
|
+
options?: ModalProps['options'];
|
|
94
97
|
};
|
|
95
98
|
declare const __VLS_export: import("vue").DefineComponent<OperationBlockProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<OperationBlockProps> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
96
99
|
//# sourceMappingURL=OperationBlock.vue.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"OperationBlock.vue.d.ts","sourceRoot":"","sources":["../../../../src/v2/blocks/operation-block/OperationBlock.vue"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"OperationBlock.vue.d.ts","sourceRoot":"","sources":["../../../../src/v2/blocks/operation-block/OperationBlock.vue"],"names":[],"mappings":"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"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"OperationBlock.vue.js","names":[],"sources":["../../../../src/v2/blocks/operation-block/OperationBlock.vue"],"sourcesContent":["<script lang=\"ts\">\n/**\n * OperationBlock\n *\n * Orchestrates the operation view by wiring together the Header, OperationBlock,\n * and ResponseBlock. Forwards user interactions to the workspace event bus and\n * passes through configuration such as auth, servers, plugins, and environment.\n * This component keeps the Operation page lean by centralizing event emission\n * and prop wiring between the blocks.\n *\n * Notable behavior:\n * - Uses operation['x-scalar-method'] and operation['x-scalar-path'] to provide\n * draft overrides for the UI when present.\n */\nexport default {\n name: 'OperationBlock',\n}\n\nexport type OperationBlockProps = {\n /** Event bus */\n eventBus: WorkspaceEventBus\n /** Application version */\n appVersion: string\n /** Openapi document */\n document: OpenApiDocument\n /** Workspace cookies */\n workspaceCookies: XScalarCookie[]\n /** Document cookies */\n documentCookies: XScalarCookie[]\n /** Current request path */\n path: string\n /** Current request method */\n method: HttpMethodType\n /** HTTP clients */\n httpClients: AvailableClients\n /** The history for the operation */\n history?: HistoryEntry[]\n /** Client layout */\n layout: ClientLayout\n /** Currently selected server */\n server: ServerObject | null\n /** Currently selected client */\n selectedClient: WorkspaceStore['workspace']['x-scalar-default-client']\n /** Server list available for operation/document */\n servers: ServerObject[]\n /** Meta information for the server */\n serverMeta: ServerMeta\n /** Hides the client button on the header */\n hideClientButton?: boolean\n /** Client integration */\n integration?: string | null\n /** Openapi document url for `modal` mode to open the client app */\n documentUrl?: string\n /** Client source */\n source?: 'gitbook' | 'api-reference'\n /** Operation object */\n operation: OperationObject\n /** Currently selected example key for the current operation */\n exampleKey: string\n /** Meta information for the auth update */\n authMeta: AuthMeta\n /** Document defined security schemes */\n securitySchemes: MergedSecuritySchemes\n /** Client plugins */\n plugins: ClientPlugin[]\n /** Environment list */\n environments?: string[]\n /** Currently selected environment */\n activeEnvironment?: string\n /** For environment variables in the inputs */\n environment: XScalarEnvironment\n /** The proxy URL for sending requests */\n proxyUrl: string\n /** Currently selected security */\n selectedSecurity: SelectedSecurity\n /** Currently selected security schemes */\n selectedSecuritySchemes: SecuritySchemeObjectSecret[]\n /** Security requirements */\n securityRequirements: OpenApiDocument['security']\n /** Default headers */\n defaultHeaders: Record<string, string>\n /** Selected anyOf/oneOf request-body variants keyed by schema path */\n requestBodyCompositionSelection?: Record<string, number>\n}\n</script>\n<script setup lang=\"ts\">\nimport type { HttpMethod as HttpMethodType } from '@scalar/helpers/http/http-methods'\nimport type { ResponseInstance } from '@scalar/oas-utils/entities/spec'\nimport { executeHook, type ClientPlugin } from '@scalar/oas-utils/helpers'\nimport {\n AVAILABLE_CLIENTS,\n type AvailableClients,\n} from '@scalar/types/snippetz'\nimport { useToasts } from '@scalar/use-toasts'\nimport type { WorkspaceStore } from '@scalar/workspace-store/client'\nimport type { SelectedSecurity } from '@scalar/workspace-store/entities/auth'\nimport type { HistoryEntry } from '@scalar/workspace-store/entities/history/schema'\nimport type {\n AuthMeta,\n ServerMeta,\n WorkspaceEventBus,\n} from '@scalar/workspace-store/events'\nimport {\n buildRequest,\n createVariablesStoreForRequest,\n getEnvironmentVariables,\n requestFactory,\n type MergedSecuritySchemes,\n type SecuritySchemeObjectSecret,\n} from '@scalar/workspace-store/request-example'\nimport type { XScalarEnvironment } from '@scalar/workspace-store/schemas/extensions/document/x-scalar-environments'\nimport type { XScalarCookie } from '@scalar/workspace-store/schemas/extensions/general/x-scalar-cookies'\nimport type {\n OpenApiDocument,\n ServerObject,\n} from '@scalar/workspace-store/schemas/v3.1/strict/openapi-document'\nimport type { OperationObject } from '@scalar/workspace-store/schemas/v3.1/strict/operation'\nimport { computed, onBeforeUnmount, onMounted, ref, watch } from 'vue'\n\nimport ViewLayout from '@/components/ViewLayout/ViewLayout.vue'\nimport ViewLayoutContent from '@/components/ViewLayout/ViewLayoutContent.vue'\nimport type { ClientLayout } from '@/hooks'\nimport { isElectron } from '@/libs/electron'\nimport { ERRORS } from '@/libs/errors'\nimport { harToFetchRequest } from '@/v2/blocks/operation-block/helpers/har-to-fetch-request'\nimport { harToFetchResponse } from '@/v2/blocks/operation-block/helpers/har-to-fetch-response'\nimport {\n getOperationExampleKey,\n isStreamingResponse,\n responseCache,\n} from '@/v2/blocks/operation-block/helpers/response-cache'\nimport { sendRequest } from '@/v2/blocks/operation-block/helpers/send-request'\nimport { validatePathParameters } from '@/v2/blocks/operation-block/helpers/validate-path-parameters'\nimport { generateClientOptions } from '@/v2/blocks/operation-code-sample'\nimport { RequestBlock } from '@/v2/blocks/request-block'\nimport { ResponseBlock } from '@/v2/blocks/response-block'\nimport { type History } from '@/v2/blocks/scalar-address-bar-block'\n\nimport Header from './components/Header.vue'\n\nconst {\n authMeta,\n environment,\n eventBus,\n exampleKey,\n document,\n workspaceCookies = [],\n documentCookies = [],\n hideClientButton,\n httpClients = AVAILABLE_CLIENTS,\n history = [],\n method,\n operation,\n path,\n plugins = [],\n proxyUrl,\n requestBodyCompositionSelection,\n securitySchemes,\n selectedClient,\n server,\n environments,\n activeEnvironment,\n serverMeta,\n selectedSecurity,\n selectedSecuritySchemes,\n securityRequirements,\n defaultHeaders,\n} = defineProps<OperationBlockProps>()\n\n/** Hoist up client generation so it doesn't get re-generated on every operation */\nconst clientOptions = computed(() => generateClientOptions(httpClients))\n\nconst { toast } = useToasts()\n\n// Refs\nconst abortController = ref<AbortController | null>(null)\nconst response = ref<ResponseInstance | null>(null)\nconst request = ref<Request | null>(null)\n\n/** Cancel the request */\nconst cancelRequest = () => abortController.value?.abort(ERRORS.REQUEST_ABORTED)\n\n/** Execute the current operation example */\nconst handleExecute = async () => {\n const pathValidation = validatePathParameters(\n operation.parameters ?? [],\n exampleKey,\n )\n if (pathValidation.ok === false) {\n toast('Path parameters must have values.', 'error')\n return\n }\n\n const globalCookies = [...workspaceCookies, ...documentCookies]\n\n const { request: requestBuilder } = requestFactory({\n defaultHeaders,\n environment,\n exampleName: exampleKey,\n globalCookies,\n method,\n operation,\n path,\n proxyUrl,\n server,\n selectedSecuritySchemes,\n isElectron: isElectron(),\n requestBodyCompositionSelection,\n })\n\n // Stop any previous streaming response\n if (response.value && 'reader' in response.value) {\n response.value.reader.cancel()\n }\n\n // Execute the hooks\n eventBus.emit('hooks:on:request:sent', {\n meta: {\n method,\n path,\n exampleKey,\n },\n })\n\n const variablesStore = createVariablesStoreForRequest()\n\n // Execute the beforeRequest hook (plugins receive RequestFactory, not fetch Request)\n await executeHook(\n {\n requestBuilder,\n document,\n operation,\n variablesStore,\n },\n 'beforeRequest',\n plugins,\n )\n\n const envVariables = {\n ...getEnvironmentVariables(environment),\n ...variablesStore.getVariables(),\n }\n\n // Build the fetch Request after hooks may have mutated the factory\n const requestResult = (() => {\n try {\n return {\n ok: true,\n result: buildRequest(requestBuilder, {\n envVariables,\n }),\n } as const\n } catch (error) {\n const message = error instanceof Error ? error.message : String(error)\n return {\n ok: false,\n error: message,\n } as const\n }\n })()\n\n if (requestResult.ok === false) {\n toast(requestResult.error, 'error')\n return\n }\n\n // Store the abort controller for cancellation\n abortController.value = requestResult.result.controller\n\n /** Execute the request */\n const [sendError, sendResult] = await sendRequest({\n isUsingProxy: requestResult.result.isUsingProxy,\n request: requestResult.result.request,\n })\n\n if (sendResult) {\n // Execute the responseReceived hook\n await executeHook(\n {\n response: sendResult.originalResponse.clone(),\n requestBuilder,\n request: sendResult.request.clone(),\n document,\n operation,\n variablesStore,\n },\n 'responseReceived',\n plugins,\n )\n }\n\n // Execute the hooks\n eventBus.emit('hooks:on:request:complete', {\n payload: sendResult\n ? {\n response: sendResult.originalResponse.clone(),\n request: sendResult.request.clone(),\n duration: sendResult.response.duration,\n timestamp: sendResult.timestamp,\n }\n : undefined,\n meta: {\n method,\n path,\n exampleKey,\n },\n })\n\n if (sendError) {\n // clean up the response and request\n response.value = null\n request.value = null\n abortController.value = null\n\n toast(sendError.message, 'error')\n return\n }\n\n // Store the response\n response.value = sendResult.response\n request.value = sendResult.request\n\n // Cache non-streaming responses so they can be restored when navigating back\n if (!isStreamingResponse(sendResult.response)) {\n responseCache.set(getOperationExampleKey(method, path, exampleKey), {\n response: sendResult.response,\n request: sendResult.request,\n })\n }\n}\n\nonMounted(() => {\n eventBus.on('operation:send:request:hotkey', handleExecute)\n eventBus.on('operation:cancel:request', cancelRequest)\n})\nonBeforeUnmount(() => {\n eventBus.off('operation:send:request:hotkey', handleExecute)\n eventBus.off('operation:cancel:request', cancelRequest)\n})\n\nconst operationHistory = computed<History[]>(() =>\n history\n .map((entry) => ({\n method: entry.request.method as HttpMethodType,\n path: entry.request.url,\n duration: entry.time,\n status: entry.response.status,\n }))\n .reverse(),\n)\n\nconst handleSelectHistoryItem = ({ index }: { index: number }) => {\n const transformedIndex = (history.length ?? 0) - index - 1\n const historyItem = history[transformedIndex]\n if (!historyItem) {\n return\n }\n\n const navigate = () =>\n eventBus.emit('ui:navigate', {\n page: 'example',\n method,\n path,\n exampleName: 'draft',\n callback: (status) => {\n // Do not replace the response if the navigation was not successful\n if (status !== 'success') {\n return\n }\n // Reconstruct the response\n const fetchResponse = harToFetchResponse({\n harResponse: historyItem.response,\n url: historyItem.request.url,\n method,\n path,\n duration: historyItem.time,\n })\n\n // Reconstruct the request\n const fetchRequest = harToFetchRequest({\n harRequest: historyItem.request,\n })\n\n // Update the response and request\n response.value = fetchResponse\n request.value = fetchRequest\n },\n })\n\n eventBus.emit('operation:reload:history', {\n meta: {\n path,\n method,\n },\n index: transformedIndex,\n callback: navigate,\n })\n}\n\n/**\n * When the path, method, or example key changes: save current response to\n * cache (so it can be restored when navigating back), then restore from cache\n * for the new operation or clear if no cached response. Response is only\n * cleared on page refresh or when making a new request for that operation.\n */\nwatch(\n [() => path, () => method, () => exampleKey],\n ([newPath, newMethod, newExampleKey]) => {\n const newKey = getOperationExampleKey(newMethod, newPath, newExampleKey)\n const cached = responseCache.get(newKey)\n if (cached) {\n response.value = cached.response\n request.value = cached.request\n } else {\n response.value = null\n request.value = null\n }\n\n // Cancel any in-flight request\n cancelRequest()\n },\n { immediate: true },\n)\n\nonBeforeUnmount(() => {\n // We cancel the request if the component is unmounted\n cancelRequest()\n})\n</script>\n<template>\n <div class=\"bg-b-1 flex h-full flex-col\">\n <div\n class=\"lg:min-h-header flex w-full flex-wrap items-center justify-center p-2 lg:p-0\">\n <!-- Address Bar -->\n <Header\n :activeEnvironment\n :documentUrl\n :environment\n :environments\n :eventBus\n :hideClientButton\n :history=\"operationHistory\"\n :integration\n :layout\n :method\n :path\n :server\n :serverMeta\n :servers\n :source\n @execute=\"handleExecute\"\n @select:history:item=\"handleSelectHistoryItem\" />\n </div>\n\n <ViewLayout class=\"border-t\">\n <ViewLayoutContent class=\"flex-1\">\n <!-- Request Section -->\n <RequestBlock\n :authMeta\n :clientOptions\n :defaultHeaders\n :documentCookies\n :environment\n :eventBus\n :exampleKey\n :layout\n :method\n :operation\n :path\n :plugins\n :proxyUrl\n :requestBodyCompositionSelection\n :securityRequirements\n :securitySchemes\n :selectedClient\n :selectedSecurity\n :selectedSecuritySchemes\n :server\n :workspaceCookies />\n\n <!-- Response Section -->\n <ResponseBlock\n :appVersion\n :eventBus\n :layout\n :plugins\n :request\n :response\n :totalPerformedRequests=\"operationHistory.length\" />\n </ViewLayoutContent>\n </ViewLayout>\n </div>\n</template>\n"],"mappings":""}
|
|
1
|
+
{"version":3,"file":"OperationBlock.vue.js","names":[],"sources":["../../../../src/v2/blocks/operation-block/OperationBlock.vue"],"sourcesContent":["<script lang=\"ts\">\n/**\n * OperationBlock\n *\n * Orchestrates the operation view by wiring together the Header, OperationBlock,\n * and ResponseBlock. Forwards user interactions to the workspace event bus and\n * passes through configuration such as auth, servers, plugins, and environment.\n * This component keeps the Operation page lean by centralizing event emission\n * and prop wiring between the blocks.\n *\n * Notable behavior:\n * - Uses operation['x-scalar-method'] and operation['x-scalar-path'] to provide\n * draft overrides for the UI when present.\n */\nexport default {\n name: 'OperationBlock',\n}\n\nexport type OperationBlockProps = {\n /** Event bus */\n eventBus: WorkspaceEventBus\n /** Application version */\n appVersion: string\n /** Openapi document */\n document: OpenApiDocument\n /** Workspace cookies */\n workspaceCookies: XScalarCookie[]\n /** Document cookies */\n documentCookies: XScalarCookie[]\n /** Current request path */\n path: string\n /** Current request method */\n method: HttpMethodType\n /** HTTP clients */\n httpClients: AvailableClients\n /** The history for the operation */\n history?: HistoryEntry[]\n /** Client layout */\n layout: ClientLayout\n /** Currently selected server */\n server: ServerObject | null\n /** Currently selected client */\n selectedClient: WorkspaceStore['workspace']['x-scalar-default-client']\n /** Server list available for operation/document */\n servers: ServerObject[]\n /** Meta information for the server */\n serverMeta: ServerMeta\n /** Hides the client button on the header */\n hideClientButton?: boolean\n /** Client integration */\n integration?: string | null\n /** Openapi document url for `modal` mode to open the client app */\n documentUrl?: string\n /** Client source */\n source?: 'gitbook' | 'api-reference'\n /** Operation object */\n operation: OperationObject\n /** Currently selected example key for the current operation */\n exampleKey: string\n /** Meta information for the auth update */\n authMeta: AuthMeta\n /** Document defined security schemes */\n securitySchemes: MergedSecuritySchemes\n /** Client plugins */\n plugins: ClientPlugin[]\n /** Environment list */\n environments?: string[]\n /** Currently selected environment */\n activeEnvironment?: string\n /** For environment variables in the inputs */\n environment: XScalarEnvironment\n /** The proxy URL for sending requests */\n proxyUrl: string\n /** Currently selected security */\n selectedSecurity: SelectedSecurity\n /** Currently selected security schemes */\n selectedSecuritySchemes: SecuritySchemeObjectSecret[]\n /** Security requirements */\n securityRequirements: OpenApiDocument['security']\n /** Default headers */\n defaultHeaders: Record<string, string>\n /** Selected anyOf/oneOf request-body variants keyed by schema path */\n requestBodyCompositionSelection?: Record<string, number>\n /** Subset of config options for the modal */\n options?: ModalProps['options']\n}\n</script>\n<script setup lang=\"ts\">\nimport { ERRORS } from '@scalar/helpers/errors/normalize-error'\nimport { isElectron } from '@scalar/helpers/general/is-electron'\nimport type { HttpMethod as HttpMethodType } from '@scalar/helpers/http/http-methods'\nimport { executeHook, type ClientPlugin } from '@scalar/oas-utils/helpers'\nimport {\n AVAILABLE_CLIENTS,\n type AvailableClients,\n} from '@scalar/types/snippetz'\nimport { useToasts } from '@scalar/use-toasts'\nimport type { WorkspaceStore } from '@scalar/workspace-store/client'\nimport type { SelectedSecurity } from '@scalar/workspace-store/entities/auth'\nimport type { HistoryEntry } from '@scalar/workspace-store/entities/history/schema'\nimport type {\n AuthMeta,\n ServerMeta,\n WorkspaceEventBus,\n} from '@scalar/workspace-store/events'\nimport {\n buildRequest,\n createVariablesStoreForRequest,\n getEnvironmentVariables,\n requestFactory,\n type MergedSecuritySchemes,\n type SecuritySchemeObjectSecret,\n} from '@scalar/workspace-store/request-example'\nimport type { XScalarEnvironment } from '@scalar/workspace-store/schemas/extensions/document/x-scalar-environments'\nimport type { XScalarCookie } from '@scalar/workspace-store/schemas/extensions/general/x-scalar-cookies'\nimport type {\n OpenApiDocument,\n ServerObject,\n} from '@scalar/workspace-store/schemas/v3.1/strict/openapi-document'\nimport type { OperationObject } from '@scalar/workspace-store/schemas/v3.1/strict/operation'\nimport { computed, onBeforeUnmount, onMounted, ref, toValue, watch } from 'vue'\n\nimport ViewLayout from '@/components/ViewLayout/ViewLayout.vue'\nimport ViewLayoutContent from '@/components/ViewLayout/ViewLayoutContent.vue'\nimport { harToFetchRequest } from '@/v2/blocks/operation-block/helpers/har-to-fetch-request'\nimport { harToFetchResponse } from '@/v2/blocks/operation-block/helpers/har-to-fetch-response'\nimport {\n getOperationExampleKey,\n isStreamingResponse,\n responseCache,\n} from '@/v2/blocks/operation-block/helpers/response-cache'\nimport {\n sendRequest,\n type ResponseInstance,\n} from '@/v2/blocks/operation-block/helpers/send-request'\nimport { validatePathParameters } from '@/v2/blocks/operation-block/helpers/validate-path-parameters'\nimport { generateClientOptions } from '@/v2/blocks/operation-code-sample'\nimport { RequestBlock } from '@/v2/blocks/request-block'\nimport { ResponseBlock } from '@/v2/blocks/response-block'\nimport { type History } from '@/v2/blocks/scalar-address-bar-block'\nimport type { ModalProps } from '@/v2/features/modal/Modal.vue'\nimport type { ClientLayout } from '@/v2/types/layout'\n\nimport Header from './components/Header.vue'\n\nconst {\n authMeta,\n environment,\n eventBus,\n exampleKey,\n document,\n workspaceCookies = [],\n documentCookies = [],\n hideClientButton,\n httpClients = AVAILABLE_CLIENTS,\n history = [],\n method,\n operation,\n path,\n plugins = [],\n proxyUrl,\n requestBodyCompositionSelection,\n securitySchemes,\n selectedClient,\n server,\n environments,\n options,\n activeEnvironment,\n serverMeta,\n selectedSecurity,\n selectedSecuritySchemes,\n securityRequirements,\n defaultHeaders,\n} = defineProps<OperationBlockProps>()\n\n/** Hoist up client generation so it doesn't get re-generated on every operation */\nconst clientOptions = computed(() => generateClientOptions(httpClients))\n\nconst { toast } = useToasts()\n\n// Refs\nconst abortController = ref<AbortController | null>(null)\nconst response = ref<ResponseInstance | null>(null)\nconst request = ref<Request | null>(null)\n\n/** Cancel the request */\nconst cancelRequest = () => abortController.value?.abort(ERRORS.REQUEST_ABORTED)\n\n/** Execute the current operation example */\nconst handleExecute = async () => {\n const pathValidation = validatePathParameters(\n operation.parameters ?? [],\n exampleKey,\n )\n if (pathValidation.ok === false) {\n toast('Path parameters must have values.', 'error')\n return\n }\n\n const globalCookies = [...workspaceCookies, ...documentCookies]\n\n const { request: requestBuilder } = requestFactory({\n defaultHeaders,\n environment,\n exampleName: exampleKey,\n globalCookies,\n method,\n operation,\n path,\n proxyUrl,\n server,\n selectedSecuritySchemes,\n isElectron: isElectron(),\n requestBodyCompositionSelection,\n })\n\n // Stop any previous streaming response\n if (response.value && 'reader' in response.value) {\n response.value.reader.cancel()\n }\n\n const variablesStore = createVariablesStoreForRequest()\n\n // Execute the beforeRequest hook (plugins receive RequestFactory, not fetch Request)\n await executeHook(\n {\n requestBuilder,\n document,\n operation,\n variablesStore,\n },\n 'beforeRequest',\n plugins,\n )\n\n const envVariables = {\n ...getEnvironmentVariables(environment),\n ...variablesStore.getVariables(),\n }\n\n // Build the fetch Request after hooks may have mutated the factory\n const requestResult = (() => {\n try {\n return {\n ok: true,\n result: buildRequest(requestBuilder, {\n envVariables,\n }),\n } as const\n } catch (error) {\n const message = error instanceof Error ? error.message : String(error)\n return {\n ok: false,\n error: message,\n } as const\n }\n })()\n\n if (requestResult.ok === false) {\n toast(requestResult.error, 'error')\n return\n }\n\n // Store the abort controller for cancellation\n abortController.value = requestResult.result.controller\n\n // Execute the hooks\n eventBus.emit('hooks:on:request:sent', {\n meta: {\n method,\n path,\n exampleKey,\n },\n })\n\n /** Execute the request */\n const [sendError, sendResult] = await sendRequest({\n isUsingProxy: requestResult.result.isUsingProxy,\n request: requestResult.result.request,\n })\n\n if (sendResult) {\n // Execute the responseReceived hook\n await executeHook(\n {\n response: sendResult.originalResponse.clone(),\n requestBuilder,\n request: sendResult.request.clone(),\n document,\n operation,\n variablesStore,\n },\n 'responseReceived',\n plugins,\n )\n }\n\n // Execute the hooks\n eventBus.emit('hooks:on:request:complete', {\n payload: sendResult\n ? {\n response: sendResult.originalResponse.clone(),\n request: sendResult.request.clone(),\n duration: sendResult.response.duration,\n timestamp: sendResult.timestamp,\n }\n : undefined,\n meta: {\n method,\n path,\n exampleKey,\n },\n })\n\n if (sendError) {\n // clean up the response and request\n response.value = null\n request.value = null\n abortController.value = null\n\n toast(sendError.message, 'error')\n return\n }\n\n // Store the response\n response.value = sendResult.response\n request.value = sendResult.request\n\n // Cache non-streaming responses so they can be restored when navigating back\n if (!isStreamingResponse(sendResult.response)) {\n responseCache.set(getOperationExampleKey(method, path, exampleKey), {\n response: sendResult.response,\n request: sendResult.request,\n })\n }\n}\n\nonMounted(() => {\n eventBus.on('operation:send:request:hotkey', handleExecute)\n eventBus.on('operation:cancel:request', cancelRequest)\n})\nonBeforeUnmount(() => {\n eventBus.off('operation:send:request:hotkey', handleExecute)\n eventBus.off('operation:cancel:request', cancelRequest)\n})\n\nconst operationHistory = computed<History[]>(() =>\n history\n .map((entry) => ({\n method: entry.request.method as HttpMethodType,\n path: entry.request.url,\n duration: entry.time,\n status: entry.response.status,\n }))\n .reverse(),\n)\n\nconst handleSelectHistoryItem = ({ index }: { index: number }) => {\n const transformedIndex = (history.length ?? 0) - index - 1\n const historyItem = history[transformedIndex]\n if (!historyItem) {\n return\n }\n\n const navigate = () =>\n eventBus.emit('ui:navigate', {\n page: 'example',\n method,\n path,\n exampleName: 'draft',\n callback: (status) => {\n // Do not replace the response if the navigation was not successful\n if (status !== 'success') {\n return\n }\n // Reconstruct the response\n const fetchResponse = harToFetchResponse({\n harResponse: historyItem.response,\n url: historyItem.request.url,\n method,\n path,\n duration: historyItem.time,\n })\n\n // Reconstruct the request\n const fetchRequest = harToFetchRequest({\n harRequest: historyItem.request,\n })\n\n // Update the response and request\n response.value = fetchResponse\n request.value = fetchRequest\n },\n })\n\n eventBus.emit('operation:reload:history', {\n meta: {\n path,\n method,\n },\n index: transformedIndex,\n callback: navigate,\n })\n}\n\n/**\n * When the path, method, or example key changes: save current response to\n * cache (so it can be restored when navigating back), then restore from cache\n * for the new operation or clear if no cached response. Response is only\n * cleared on page refresh or when making a new request for that operation.\n */\nwatch(\n [() => path, () => method, () => exampleKey],\n ([newPath, newMethod, newExampleKey]) => {\n const newKey = getOperationExampleKey(newMethod, newPath, newExampleKey)\n const cached = responseCache.get(newKey)\n if (cached) {\n response.value = cached.response\n request.value = cached.request\n } else {\n response.value = null\n request.value = null\n }\n\n // Cancel any in-flight request\n cancelRequest()\n },\n { immediate: true },\n)\n\nonBeforeUnmount(() => {\n // We cancel the request if the component is unmounted\n cancelRequest()\n})\n</script>\n<template>\n <div class=\"bg-b-1 flex h-full flex-col\">\n <div\n class=\"lg:min-h-header flex w-full flex-wrap items-center justify-center p-2 lg:p-0\">\n <!-- Address Bar -->\n <Header\n :activeEnvironment\n :documentUrl\n :environment\n :environments\n :eventBus\n :hideClientButton\n :history=\"operationHistory\"\n :integration\n :layout\n :method\n :path\n :server\n :serverMeta\n :servers\n :source\n @execute=\"handleExecute\"\n @select:history:item=\"handleSelectHistoryItem\" />\n </div>\n\n <ViewLayout class=\"border-t\">\n <ViewLayoutContent class=\"flex-1\">\n <!-- Request Section -->\n <RequestBlock\n :authMeta\n :clientOptions\n :defaultHeaders\n :documentCookies\n :environment\n :eventBus\n :exampleKey\n :layout\n :method\n :operation\n :options=\"toValue(options)\"\n :path\n :plugins\n :proxyUrl\n :requestBodyCompositionSelection\n :securityRequirements\n :securitySchemes\n :selectedClient\n :selectedSecurity\n :selectedSecuritySchemes\n :server\n :workspaceCookies />\n\n <!-- Response Section -->\n <ResponseBlock\n :appVersion\n :eventBus\n :layout\n :plugins\n :request\n :response\n :totalPerformedRequests=\"operationHistory.length\" />\n </ViewLayoutContent>\n </ViewLayout>\n </div>\n</template>\n"],"mappings":""}
|
|
@@ -1,5 +1,3 @@
|
|
|
1
|
-
import { ERRORS } from "../../../libs/errors.js";
|
|
2
|
-
import { isElectron } from "../../../libs/electron.js";
|
|
3
1
|
import ViewLayout_default from "../../../components/ViewLayout/ViewLayout.vue.js";
|
|
4
2
|
import ViewLayoutContent_default from "../../../components/ViewLayout/ViewLayoutContent.vue.js";
|
|
5
3
|
import { harToFetchRequest } from "./helpers/har-to-fetch-request.js";
|
|
@@ -11,10 +9,12 @@ import { generateClientOptions } from "../operation-code-sample/helpers/generate
|
|
|
11
9
|
import RequestBlock_default from "../request-block/RequestBlock.vue.js";
|
|
12
10
|
import ResponseBlock_default from "../response-block/ResponseBlock.vue.js";
|
|
13
11
|
import Header_default from "./components/Header.vue.js";
|
|
14
|
-
import { computed, createElementBlock, createElementVNode, createVNode, defineComponent, onBeforeUnmount, onMounted, openBlock, ref, unref, watch, withCtx } from "vue";
|
|
15
|
-
import {
|
|
12
|
+
import { computed, createElementBlock, createElementVNode, createVNode, defineComponent, onBeforeUnmount, onMounted, openBlock, ref, toValue, unref, watch, withCtx } from "vue";
|
|
13
|
+
import { ERRORS } from "@scalar/helpers/errors/normalize-error";
|
|
14
|
+
import { isElectron } from "@scalar/helpers/general/is-electron";
|
|
16
15
|
import { executeHook } from "@scalar/oas-utils/helpers";
|
|
17
16
|
import { AVAILABLE_CLIENTS } from "@scalar/types/snippetz";
|
|
17
|
+
import { useToasts } from "@scalar/use-toasts";
|
|
18
18
|
import { buildRequest, createVariablesStoreForRequest, getEnvironmentVariables, requestFactory } from "@scalar/workspace-store/request-example";
|
|
19
19
|
//#region src/v2/blocks/operation-block/OperationBlock.vue?vue&type=script&setup=true&lang.ts
|
|
20
20
|
var _hoisted_1 = { class: "bg-b-1 flex h-full flex-col" };
|
|
@@ -53,7 +53,8 @@ var OperationBlock_vue_vue_type_script_setup_true_lang_default = /* @__PURE__ */
|
|
|
53
53
|
selectedSecuritySchemes: {},
|
|
54
54
|
securityRequirements: {},
|
|
55
55
|
defaultHeaders: {},
|
|
56
|
-
requestBodyCompositionSelection: {}
|
|
56
|
+
requestBodyCompositionSelection: {},
|
|
57
|
+
options: {}
|
|
57
58
|
},
|
|
58
59
|
setup(__props) {
|
|
59
60
|
/** Hoist up client generation so it doesn't get re-generated on every operation */
|
|
@@ -86,11 +87,6 @@ var OperationBlock_vue_vue_type_script_setup_true_lang_default = /* @__PURE__ */
|
|
|
86
87
|
requestBodyCompositionSelection: __props.requestBodyCompositionSelection
|
|
87
88
|
});
|
|
88
89
|
if (response.value && "reader" in response.value) response.value.reader.cancel();
|
|
89
|
-
__props.eventBus.emit("hooks:on:request:sent", { meta: {
|
|
90
|
-
method: __props.method,
|
|
91
|
-
path: __props.path,
|
|
92
|
-
exampleKey: __props.exampleKey
|
|
93
|
-
} });
|
|
94
90
|
const variablesStore = createVariablesStoreForRequest();
|
|
95
91
|
await executeHook({
|
|
96
92
|
requestBuilder,
|
|
@@ -120,6 +116,11 @@ var OperationBlock_vue_vue_type_script_setup_true_lang_default = /* @__PURE__ */
|
|
|
120
116
|
return;
|
|
121
117
|
}
|
|
122
118
|
abortController.value = requestResult.result.controller;
|
|
119
|
+
__props.eventBus.emit("hooks:on:request:sent", { meta: {
|
|
120
|
+
method: __props.method,
|
|
121
|
+
path: __props.path,
|
|
122
|
+
exampleKey: __props.exampleKey
|
|
123
|
+
} });
|
|
123
124
|
/** Execute the request */
|
|
124
125
|
const [sendError, sendResult] = await sendRequest({
|
|
125
126
|
isUsingProxy: requestResult.result.isUsingProxy,
|
|
@@ -279,6 +280,7 @@ var OperationBlock_vue_vue_type_script_setup_true_lang_default = /* @__PURE__ */
|
|
|
279
280
|
layout: __props.layout,
|
|
280
281
|
method: __props.method,
|
|
281
282
|
operation: __props.operation,
|
|
283
|
+
options: toValue(__props.options),
|
|
282
284
|
path: __props.path,
|
|
283
285
|
plugins: __props.plugins,
|
|
284
286
|
proxyUrl: __props.proxyUrl,
|
|
@@ -301,6 +303,7 @@ var OperationBlock_vue_vue_type_script_setup_true_lang_default = /* @__PURE__ */
|
|
|
301
303
|
"layout",
|
|
302
304
|
"method",
|
|
303
305
|
"operation",
|
|
306
|
+
"options",
|
|
304
307
|
"path",
|
|
305
308
|
"plugins",
|
|
306
309
|
"proxyUrl",
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"OperationBlock.vue.script.js","names":[],"sources":["../../../../src/v2/blocks/operation-block/OperationBlock.vue"],"sourcesContent":["<script lang=\"ts\">\n/**\n * OperationBlock\n *\n * Orchestrates the operation view by wiring together the Header, OperationBlock,\n * and ResponseBlock. Forwards user interactions to the workspace event bus and\n * passes through configuration such as auth, servers, plugins, and environment.\n * This component keeps the Operation page lean by centralizing event emission\n * and prop wiring between the blocks.\n *\n * Notable behavior:\n * - Uses operation['x-scalar-method'] and operation['x-scalar-path'] to provide\n * draft overrides for the UI when present.\n */\nexport default {\n name: 'OperationBlock',\n}\n\nexport type OperationBlockProps = {\n /** Event bus */\n eventBus: WorkspaceEventBus\n /** Application version */\n appVersion: string\n /** Openapi document */\n document: OpenApiDocument\n /** Workspace cookies */\n workspaceCookies: XScalarCookie[]\n /** Document cookies */\n documentCookies: XScalarCookie[]\n /** Current request path */\n path: string\n /** Current request method */\n method: HttpMethodType\n /** HTTP clients */\n httpClients: AvailableClients\n /** The history for the operation */\n history?: HistoryEntry[]\n /** Client layout */\n layout: ClientLayout\n /** Currently selected server */\n server: ServerObject | null\n /** Currently selected client */\n selectedClient: WorkspaceStore['workspace']['x-scalar-default-client']\n /** Server list available for operation/document */\n servers: ServerObject[]\n /** Meta information for the server */\n serverMeta: ServerMeta\n /** Hides the client button on the header */\n hideClientButton?: boolean\n /** Client integration */\n integration?: string | null\n /** Openapi document url for `modal` mode to open the client app */\n documentUrl?: string\n /** Client source */\n source?: 'gitbook' | 'api-reference'\n /** Operation object */\n operation: OperationObject\n /** Currently selected example key for the current operation */\n exampleKey: string\n /** Meta information for the auth update */\n authMeta: AuthMeta\n /** Document defined security schemes */\n securitySchemes: MergedSecuritySchemes\n /** Client plugins */\n plugins: ClientPlugin[]\n /** Environment list */\n environments?: string[]\n /** Currently selected environment */\n activeEnvironment?: string\n /** For environment variables in the inputs */\n environment: XScalarEnvironment\n /** The proxy URL for sending requests */\n proxyUrl: string\n /** Currently selected security */\n selectedSecurity: SelectedSecurity\n /** Currently selected security schemes */\n selectedSecuritySchemes: SecuritySchemeObjectSecret[]\n /** Security requirements */\n securityRequirements: OpenApiDocument['security']\n /** Default headers */\n defaultHeaders: Record<string, string>\n /** Selected anyOf/oneOf request-body variants keyed by schema path */\n requestBodyCompositionSelection?: Record<string, number>\n}\n</script>\n<script setup lang=\"ts\">\nimport type { HttpMethod as HttpMethodType } from '@scalar/helpers/http/http-methods'\nimport type { ResponseInstance } from '@scalar/oas-utils/entities/spec'\nimport { executeHook, type ClientPlugin } from '@scalar/oas-utils/helpers'\nimport {\n AVAILABLE_CLIENTS,\n type AvailableClients,\n} from '@scalar/types/snippetz'\nimport { useToasts } from '@scalar/use-toasts'\nimport type { WorkspaceStore } from '@scalar/workspace-store/client'\nimport type { SelectedSecurity } from '@scalar/workspace-store/entities/auth'\nimport type { HistoryEntry } from '@scalar/workspace-store/entities/history/schema'\nimport type {\n AuthMeta,\n ServerMeta,\n WorkspaceEventBus,\n} from '@scalar/workspace-store/events'\nimport {\n buildRequest,\n createVariablesStoreForRequest,\n getEnvironmentVariables,\n requestFactory,\n type MergedSecuritySchemes,\n type SecuritySchemeObjectSecret,\n} from '@scalar/workspace-store/request-example'\nimport type { XScalarEnvironment } from '@scalar/workspace-store/schemas/extensions/document/x-scalar-environments'\nimport type { XScalarCookie } from '@scalar/workspace-store/schemas/extensions/general/x-scalar-cookies'\nimport type {\n OpenApiDocument,\n ServerObject,\n} from '@scalar/workspace-store/schemas/v3.1/strict/openapi-document'\nimport type { OperationObject } from '@scalar/workspace-store/schemas/v3.1/strict/operation'\nimport { computed, onBeforeUnmount, onMounted, ref, watch } from 'vue'\n\nimport ViewLayout from '@/components/ViewLayout/ViewLayout.vue'\nimport ViewLayoutContent from '@/components/ViewLayout/ViewLayoutContent.vue'\nimport type { ClientLayout } from '@/hooks'\nimport { isElectron } from '@/libs/electron'\nimport { ERRORS } from '@/libs/errors'\nimport { harToFetchRequest } from '@/v2/blocks/operation-block/helpers/har-to-fetch-request'\nimport { harToFetchResponse } from '@/v2/blocks/operation-block/helpers/har-to-fetch-response'\nimport {\n getOperationExampleKey,\n isStreamingResponse,\n responseCache,\n} from '@/v2/blocks/operation-block/helpers/response-cache'\nimport { sendRequest } from '@/v2/blocks/operation-block/helpers/send-request'\nimport { validatePathParameters } from '@/v2/blocks/operation-block/helpers/validate-path-parameters'\nimport { generateClientOptions } from '@/v2/blocks/operation-code-sample'\nimport { RequestBlock } from '@/v2/blocks/request-block'\nimport { ResponseBlock } from '@/v2/blocks/response-block'\nimport { type History } from '@/v2/blocks/scalar-address-bar-block'\n\nimport Header from './components/Header.vue'\n\nconst {\n authMeta,\n environment,\n eventBus,\n exampleKey,\n document,\n workspaceCookies = [],\n documentCookies = [],\n hideClientButton,\n httpClients = AVAILABLE_CLIENTS,\n history = [],\n method,\n operation,\n path,\n plugins = [],\n proxyUrl,\n requestBodyCompositionSelection,\n securitySchemes,\n selectedClient,\n server,\n environments,\n activeEnvironment,\n serverMeta,\n selectedSecurity,\n selectedSecuritySchemes,\n securityRequirements,\n defaultHeaders,\n} = defineProps<OperationBlockProps>()\n\n/** Hoist up client generation so it doesn't get re-generated on every operation */\nconst clientOptions = computed(() => generateClientOptions(httpClients))\n\nconst { toast } = useToasts()\n\n// Refs\nconst abortController = ref<AbortController | null>(null)\nconst response = ref<ResponseInstance | null>(null)\nconst request = ref<Request | null>(null)\n\n/** Cancel the request */\nconst cancelRequest = () => abortController.value?.abort(ERRORS.REQUEST_ABORTED)\n\n/** Execute the current operation example */\nconst handleExecute = async () => {\n const pathValidation = validatePathParameters(\n operation.parameters ?? [],\n exampleKey,\n )\n if (pathValidation.ok === false) {\n toast('Path parameters must have values.', 'error')\n return\n }\n\n const globalCookies = [...workspaceCookies, ...documentCookies]\n\n const { request: requestBuilder } = requestFactory({\n defaultHeaders,\n environment,\n exampleName: exampleKey,\n globalCookies,\n method,\n operation,\n path,\n proxyUrl,\n server,\n selectedSecuritySchemes,\n isElectron: isElectron(),\n requestBodyCompositionSelection,\n })\n\n // Stop any previous streaming response\n if (response.value && 'reader' in response.value) {\n response.value.reader.cancel()\n }\n\n // Execute the hooks\n eventBus.emit('hooks:on:request:sent', {\n meta: {\n method,\n path,\n exampleKey,\n },\n })\n\n const variablesStore = createVariablesStoreForRequest()\n\n // Execute the beforeRequest hook (plugins receive RequestFactory, not fetch Request)\n await executeHook(\n {\n requestBuilder,\n document,\n operation,\n variablesStore,\n },\n 'beforeRequest',\n plugins,\n )\n\n const envVariables = {\n ...getEnvironmentVariables(environment),\n ...variablesStore.getVariables(),\n }\n\n // Build the fetch Request after hooks may have mutated the factory\n const requestResult = (() => {\n try {\n return {\n ok: true,\n result: buildRequest(requestBuilder, {\n envVariables,\n }),\n } as const\n } catch (error) {\n const message = error instanceof Error ? error.message : String(error)\n return {\n ok: false,\n error: message,\n } as const\n }\n })()\n\n if (requestResult.ok === false) {\n toast(requestResult.error, 'error')\n return\n }\n\n // Store the abort controller for cancellation\n abortController.value = requestResult.result.controller\n\n /** Execute the request */\n const [sendError, sendResult] = await sendRequest({\n isUsingProxy: requestResult.result.isUsingProxy,\n request: requestResult.result.request,\n })\n\n if (sendResult) {\n // Execute the responseReceived hook\n await executeHook(\n {\n response: sendResult.originalResponse.clone(),\n requestBuilder,\n request: sendResult.request.clone(),\n document,\n operation,\n variablesStore,\n },\n 'responseReceived',\n plugins,\n )\n }\n\n // Execute the hooks\n eventBus.emit('hooks:on:request:complete', {\n payload: sendResult\n ? {\n response: sendResult.originalResponse.clone(),\n request: sendResult.request.clone(),\n duration: sendResult.response.duration,\n timestamp: sendResult.timestamp,\n }\n : undefined,\n meta: {\n method,\n path,\n exampleKey,\n },\n })\n\n if (sendError) {\n // clean up the response and request\n response.value = null\n request.value = null\n abortController.value = null\n\n toast(sendError.message, 'error')\n return\n }\n\n // Store the response\n response.value = sendResult.response\n request.value = sendResult.request\n\n // Cache non-streaming responses so they can be restored when navigating back\n if (!isStreamingResponse(sendResult.response)) {\n responseCache.set(getOperationExampleKey(method, path, exampleKey), {\n response: sendResult.response,\n request: sendResult.request,\n })\n }\n}\n\nonMounted(() => {\n eventBus.on('operation:send:request:hotkey', handleExecute)\n eventBus.on('operation:cancel:request', cancelRequest)\n})\nonBeforeUnmount(() => {\n eventBus.off('operation:send:request:hotkey', handleExecute)\n eventBus.off('operation:cancel:request', cancelRequest)\n})\n\nconst operationHistory = computed<History[]>(() =>\n history\n .map((entry) => ({\n method: entry.request.method as HttpMethodType,\n path: entry.request.url,\n duration: entry.time,\n status: entry.response.status,\n }))\n .reverse(),\n)\n\nconst handleSelectHistoryItem = ({ index }: { index: number }) => {\n const transformedIndex = (history.length ?? 0) - index - 1\n const historyItem = history[transformedIndex]\n if (!historyItem) {\n return\n }\n\n const navigate = () =>\n eventBus.emit('ui:navigate', {\n page: 'example',\n method,\n path,\n exampleName: 'draft',\n callback: (status) => {\n // Do not replace the response if the navigation was not successful\n if (status !== 'success') {\n return\n }\n // Reconstruct the response\n const fetchResponse = harToFetchResponse({\n harResponse: historyItem.response,\n url: historyItem.request.url,\n method,\n path,\n duration: historyItem.time,\n })\n\n // Reconstruct the request\n const fetchRequest = harToFetchRequest({\n harRequest: historyItem.request,\n })\n\n // Update the response and request\n response.value = fetchResponse\n request.value = fetchRequest\n },\n })\n\n eventBus.emit('operation:reload:history', {\n meta: {\n path,\n method,\n },\n index: transformedIndex,\n callback: navigate,\n })\n}\n\n/**\n * When the path, method, or example key changes: save current response to\n * cache (so it can be restored when navigating back), then restore from cache\n * for the new operation or clear if no cached response. Response is only\n * cleared on page refresh or when making a new request for that operation.\n */\nwatch(\n [() => path, () => method, () => exampleKey],\n ([newPath, newMethod, newExampleKey]) => {\n const newKey = getOperationExampleKey(newMethod, newPath, newExampleKey)\n const cached = responseCache.get(newKey)\n if (cached) {\n response.value = cached.response\n request.value = cached.request\n } else {\n response.value = null\n request.value = null\n }\n\n // Cancel any in-flight request\n cancelRequest()\n },\n { immediate: true },\n)\n\nonBeforeUnmount(() => {\n // We cancel the request if the component is unmounted\n cancelRequest()\n})\n</script>\n<template>\n <div class=\"bg-b-1 flex h-full flex-col\">\n <div\n class=\"lg:min-h-header flex w-full flex-wrap items-center justify-center p-2 lg:p-0\">\n <!-- Address Bar -->\n <Header\n :activeEnvironment\n :documentUrl\n :environment\n :environments\n :eventBus\n :hideClientButton\n :history=\"operationHistory\"\n :integration\n :layout\n :method\n :path\n :server\n :serverMeta\n :servers\n :source\n @execute=\"handleExecute\"\n @select:history:item=\"handleSelectHistoryItem\" />\n </div>\n\n <ViewLayout class=\"border-t\">\n <ViewLayoutContent class=\"flex-1\">\n <!-- Request Section -->\n <RequestBlock\n :authMeta\n :clientOptions\n :defaultHeaders\n :documentCookies\n :environment\n :eventBus\n :exampleKey\n :layout\n :method\n :operation\n :path\n :plugins\n :proxyUrl\n :requestBodyCompositionSelection\n :securityRequirements\n :securitySchemes\n :selectedClient\n :selectedSecurity\n :selectedSecuritySchemes\n :server\n :workspaceCookies />\n\n <!-- Response Section -->\n <ResponseBlock\n :appVersion\n :eventBus\n :layout\n :plugins\n :request\n :response\n :totalPerformedRequests=\"operationHistory.length\" />\n </ViewLayoutContent>\n </ViewLayout>\n </div>\n</template>\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;CAeE,MAAM;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EA2JR,MAAM,gBAAgB,eAAe,sBAAsB,QAAA,YAAY,CAAA;EAEvE,MAAM,EAAE,UAAU,WAAU;EAG5B,MAAM,kBAAkB,IAA4B,KAAI;EACxD,MAAM,WAAW,IAA6B,KAAI;EAClD,MAAM,UAAU,IAAoB,KAAI;;EAGxC,MAAM,sBAAsB,gBAAgB,OAAO,MAAM,OAAO,gBAAe;;EAG/E,MAAM,gBAAgB,YAAY;AAKhC,OAJuB,uBACrB,QAAA,UAAU,cAAc,EAAE,EAC1B,QAAA,WACF,CACmB,OAAO,OAAO;AAC/B,UAAM,qCAAqC,QAAO;AAClD;;GAGF,MAAM,gBAAgB,CAAC,GAAG,QAAA,kBAAkB,GAAG,QAAA,gBAAe;GAE9D,MAAM,EAAE,SAAS,mBAAmB,eAAe;IACjD,gBAAa,QAAA;IACb,aAAU,QAAA;IACV,aAAa,QAAA;IACb;IACA,QAAK,QAAA;IACL,WAAQ,QAAA;IACR,MAAG,QAAA;IACH,UAAO,QAAA;IACP,QAAK,QAAA;IACL,yBAAsB,QAAA;IACtB,YAAY,YAAY;IACxB,iCAA8B,QAAA;IAC/B,CAAA;AAGD,OAAI,SAAS,SAAS,YAAY,SAAS,MACzC,UAAS,MAAM,OAAO,QAAO;AAI/B,WAAA,SAAS,KAAK,yBAAyB,EACrC,MAAM;IACJ,QAAK,QAAA;IACL,MAAG,QAAA;IACH,YAAS,QAAA;IACV,EACF,CAAA;GAED,MAAM,iBAAiB,gCAA+B;AAGtD,SAAM,YACJ;IACE;IACA,UAAO,QAAA;IACP,WAAQ,QAAA;IACR;IACD,EACD,iBACA,QAAA,QACF;GAEA,MAAM,eAAe;IACnB,GAAG,wBAAwB,QAAA,YAAY;IACvC,GAAG,eAAe,cAAc;IAClC;GAGA,MAAM,uBAAuB;AAC3B,QAAI;AACF,YAAO;MACL,IAAI;MACJ,QAAQ,aAAa,gBAAgB,EACnC,cACD,CAAC;MACH;aACM,OAAO;AAEd,YAAO;MACL,IAAI;MACJ,OAHc,iBAAiB,QAAQ,MAAM,UAAU,OAAO,MAAK;MAIpE;;OAEF;AAEH,OAAI,cAAc,OAAO,OAAO;AAC9B,UAAM,cAAc,OAAO,QAAO;AAClC;;AAIF,mBAAgB,QAAQ,cAAc,OAAO;;GAG7C,MAAM,CAAC,WAAW,cAAc,MAAM,YAAY;IAChD,cAAc,cAAc,OAAO;IACnC,SAAS,cAAc,OAAO;IAC/B,CAAA;AAED,OAAI,WAEF,OAAM,YACJ;IACE,UAAU,WAAW,iBAAiB,OAAO;IAC7C;IACA,SAAS,WAAW,QAAQ,OAAO;IACnC,UAAO,QAAA;IACP,WAAQ,QAAA;IACR;IACD,EACD,oBACA,QAAA,QACF;AAIF,WAAA,SAAS,KAAK,6BAA6B;IACzC,SAAS,aACL;KACE,UAAU,WAAW,iBAAiB,OAAO;KAC7C,SAAS,WAAW,QAAQ,OAAO;KACnC,UAAU,WAAW,SAAS;KAC9B,WAAW,WAAW;KACxB,GACA,KAAA;IACJ,MAAM;KACJ,QAAK,QAAA;KACL,MAAG,QAAA;KACH,YAAS,QAAA;KACV;IACF,CAAA;AAED,OAAI,WAAW;AAEb,aAAS,QAAQ;AACjB,YAAQ,QAAQ;AAChB,oBAAgB,QAAQ;AAExB,UAAM,UAAU,SAAS,QAAO;AAChC;;AAIF,YAAS,QAAQ,WAAW;AAC5B,WAAQ,QAAQ,WAAW;AAG3B,OAAI,CAAC,oBAAoB,WAAW,SAAS,CAC3C,eAAc,IAAI,uBAAuB,QAAA,QAAQ,QAAA,MAAM,QAAA,WAAW,EAAE;IAClE,UAAU,WAAW;IACrB,SAAS,WAAW;IACrB,CAAA;;AAIL,kBAAgB;AACd,WAAA,SAAS,GAAG,iCAAiC,cAAa;AAC1D,WAAA,SAAS,GAAG,4BAA4B,cAAa;IACtD;AACD,wBAAsB;AACpB,WAAA,SAAS,IAAI,iCAAiC,cAAa;AAC3D,WAAA,SAAS,IAAI,4BAA4B,cAAa;IACvD;EAED,MAAM,mBAAmB,eACvB,QAAA,QACG,KAAK,WAAW;GACf,QAAQ,MAAM,QAAQ;GACtB,MAAM,MAAM,QAAQ;GACpB,UAAU,MAAM;GAChB,QAAQ,MAAM,SAAS;GACxB,EAAC,CACD,SAAS,CACd;EAEA,MAAM,2BAA2B,EAAE,YAA+B;GAChE,MAAM,oBAAoB,QAAA,QAAQ,UAAU,KAAK,QAAQ;GACzD,MAAM,cAAc,QAAA,QAAQ;AAC5B,OAAI,CAAC,YACH;GAGF,MAAM,iBACJ,QAAA,SAAS,KAAK,eAAe;IAC3B,MAAM;IACN,QAAK,QAAA;IACL,MAAG,QAAA;IACH,aAAa;IACb,WAAW,WAAW;AAEpB,SAAI,WAAW,UACb;KAGF,MAAM,gBAAgB,mBAAmB;MACvC,aAAa,YAAY;MACzB,KAAK,YAAY,QAAQ;MACzB,QAAK,QAAA;MACL,MAAG,QAAA;MACH,UAAU,YAAY;MACvB,CAAA;KAGD,MAAM,eAAe,kBAAkB,EACrC,YAAY,YAAY,SACzB,CAAA;AAGD,cAAS,QAAQ;AACjB,aAAQ,QAAQ;;IAEnB,CAAA;AAEH,WAAA,SAAS,KAAK,4BAA4B;IACxC,MAAM;KACJ,MAAG,QAAA;KACH,QAAK,QAAA;KACN;IACD,OAAO;IACP,UAAU;IACX,CAAA;;;;;;;;AASH,QACE;SAAO,QAAA;SAAY,QAAA;SAAc,QAAA;GAAW,GAC3C,CAAC,SAAS,WAAW,mBAAmB;GACvC,MAAM,SAAS,uBAAuB,WAAW,SAAS,cAAa;GACvE,MAAM,SAAS,cAAc,IAAI,OAAM;AACvC,OAAI,QAAQ;AACV,aAAS,QAAQ,OAAO;AACxB,YAAQ,QAAQ,OAAO;UAClB;AACL,aAAS,QAAQ;AACjB,YAAQ,QAAQ;;AAIlB,kBAAc;KAEhB,EAAE,WAAW,MAAM,CACrB;AAEA,wBAAsB;AAEpB,kBAAc;IACf;;uBAGC,mBA6DM,OA7DN,YA6DM,CA5DJ,mBAqBM,OArBN,YAqBM,CAlBJ,YAiBmD,gBAAA;IAhBhD,mBAAA,QAAA;IACA,aAAA,QAAA;IACA,aAAA,QAAA;IACA,cAAA,QAAA;IACA,UAAA,QAAA;IACA,kBAAA,QAAA;IACA,SAAS,iBAAA;IACT,aAAA,QAAA;IACA,QAAA,QAAA;IACA,QAAA,QAAA;IACA,MAAA,QAAA;IACA,QAAA,QAAA;IACA,YAAA,QAAA;IACA,SAAA,QAAA;IACA,QAAA,QAAA;IACA,WAAS;IACT,yBAAqB;;;;;;;;;;;;;;;;;SAG1B,YAoCa,oBAAA,EApCD,OAAM,YAAU,EAAA;2BAmCN,CAlCpB,YAkCoB,2BAAA,EAlCD,OAAM,UAAQ,EAAA;4BAuBT,CArBtB,YAqBsB,MAAA,qBAAA,EAAA;MApBnB,UAAA,QAAA;MACA,eAAA,cAAA;MACA,gBAAA,QAAA;MACA,iBAAA,QAAA;MACA,aAAA,QAAA;MACA,UAAA,QAAA;MACA,YAAA,QAAA;MACA,QAAA,QAAA;MACA,QAAA,QAAA;MACA,WAAA,QAAA;MACA,MAAA,QAAA;MACA,SAAA,QAAA;MACA,UAAA,QAAA;MACA,iCAAA,QAAA;MACA,sBAAA,QAAA;MACA,iBAAA,QAAA;MACA,gBAAA,QAAA;MACA,kBAAA,QAAA;MACA,yBAAA,QAAA;MACA,QAAA,QAAA;MACA,kBAAA,QAAA;;;;;;;;;;;;;;;;;;;;;;;SAGH,YAOsD,MAAA,sBAAA,EAAA;MANnD,YAAA,QAAA;MACA,UAAA,QAAA;MACA,QAAA,QAAA;MACA,SAAA,QAAA;MACA,SAAA,QAAA;MACA,UAAA,SAAA;MACA,wBAAwB,iBAAA,MAAiB"}
|
|
1
|
+
{"version":3,"file":"OperationBlock.vue.script.js","names":[],"sources":["../../../../src/v2/blocks/operation-block/OperationBlock.vue"],"sourcesContent":["<script lang=\"ts\">\n/**\n * OperationBlock\n *\n * Orchestrates the operation view by wiring together the Header, OperationBlock,\n * and ResponseBlock. Forwards user interactions to the workspace event bus and\n * passes through configuration such as auth, servers, plugins, and environment.\n * This component keeps the Operation page lean by centralizing event emission\n * and prop wiring between the blocks.\n *\n * Notable behavior:\n * - Uses operation['x-scalar-method'] and operation['x-scalar-path'] to provide\n * draft overrides for the UI when present.\n */\nexport default {\n name: 'OperationBlock',\n}\n\nexport type OperationBlockProps = {\n /** Event bus */\n eventBus: WorkspaceEventBus\n /** Application version */\n appVersion: string\n /** Openapi document */\n document: OpenApiDocument\n /** Workspace cookies */\n workspaceCookies: XScalarCookie[]\n /** Document cookies */\n documentCookies: XScalarCookie[]\n /** Current request path */\n path: string\n /** Current request method */\n method: HttpMethodType\n /** HTTP clients */\n httpClients: AvailableClients\n /** The history for the operation */\n history?: HistoryEntry[]\n /** Client layout */\n layout: ClientLayout\n /** Currently selected server */\n server: ServerObject | null\n /** Currently selected client */\n selectedClient: WorkspaceStore['workspace']['x-scalar-default-client']\n /** Server list available for operation/document */\n servers: ServerObject[]\n /** Meta information for the server */\n serverMeta: ServerMeta\n /** Hides the client button on the header */\n hideClientButton?: boolean\n /** Client integration */\n integration?: string | null\n /** Openapi document url for `modal` mode to open the client app */\n documentUrl?: string\n /** Client source */\n source?: 'gitbook' | 'api-reference'\n /** Operation object */\n operation: OperationObject\n /** Currently selected example key for the current operation */\n exampleKey: string\n /** Meta information for the auth update */\n authMeta: AuthMeta\n /** Document defined security schemes */\n securitySchemes: MergedSecuritySchemes\n /** Client plugins */\n plugins: ClientPlugin[]\n /** Environment list */\n environments?: string[]\n /** Currently selected environment */\n activeEnvironment?: string\n /** For environment variables in the inputs */\n environment: XScalarEnvironment\n /** The proxy URL for sending requests */\n proxyUrl: string\n /** Currently selected security */\n selectedSecurity: SelectedSecurity\n /** Currently selected security schemes */\n selectedSecuritySchemes: SecuritySchemeObjectSecret[]\n /** Security requirements */\n securityRequirements: OpenApiDocument['security']\n /** Default headers */\n defaultHeaders: Record<string, string>\n /** Selected anyOf/oneOf request-body variants keyed by schema path */\n requestBodyCompositionSelection?: Record<string, number>\n /** Subset of config options for the modal */\n options?: ModalProps['options']\n}\n</script>\n<script setup lang=\"ts\">\nimport { ERRORS } from '@scalar/helpers/errors/normalize-error'\nimport { isElectron } from '@scalar/helpers/general/is-electron'\nimport type { HttpMethod as HttpMethodType } from '@scalar/helpers/http/http-methods'\nimport { executeHook, type ClientPlugin } from '@scalar/oas-utils/helpers'\nimport {\n AVAILABLE_CLIENTS,\n type AvailableClients,\n} from '@scalar/types/snippetz'\nimport { useToasts } from '@scalar/use-toasts'\nimport type { WorkspaceStore } from '@scalar/workspace-store/client'\nimport type { SelectedSecurity } from '@scalar/workspace-store/entities/auth'\nimport type { HistoryEntry } from '@scalar/workspace-store/entities/history/schema'\nimport type {\n AuthMeta,\n ServerMeta,\n WorkspaceEventBus,\n} from '@scalar/workspace-store/events'\nimport {\n buildRequest,\n createVariablesStoreForRequest,\n getEnvironmentVariables,\n requestFactory,\n type MergedSecuritySchemes,\n type SecuritySchemeObjectSecret,\n} from '@scalar/workspace-store/request-example'\nimport type { XScalarEnvironment } from '@scalar/workspace-store/schemas/extensions/document/x-scalar-environments'\nimport type { XScalarCookie } from '@scalar/workspace-store/schemas/extensions/general/x-scalar-cookies'\nimport type {\n OpenApiDocument,\n ServerObject,\n} from '@scalar/workspace-store/schemas/v3.1/strict/openapi-document'\nimport type { OperationObject } from '@scalar/workspace-store/schemas/v3.1/strict/operation'\nimport { computed, onBeforeUnmount, onMounted, ref, toValue, watch } from 'vue'\n\nimport ViewLayout from '@/components/ViewLayout/ViewLayout.vue'\nimport ViewLayoutContent from '@/components/ViewLayout/ViewLayoutContent.vue'\nimport { harToFetchRequest } from '@/v2/blocks/operation-block/helpers/har-to-fetch-request'\nimport { harToFetchResponse } from '@/v2/blocks/operation-block/helpers/har-to-fetch-response'\nimport {\n getOperationExampleKey,\n isStreamingResponse,\n responseCache,\n} from '@/v2/blocks/operation-block/helpers/response-cache'\nimport {\n sendRequest,\n type ResponseInstance,\n} from '@/v2/blocks/operation-block/helpers/send-request'\nimport { validatePathParameters } from '@/v2/blocks/operation-block/helpers/validate-path-parameters'\nimport { generateClientOptions } from '@/v2/blocks/operation-code-sample'\nimport { RequestBlock } from '@/v2/blocks/request-block'\nimport { ResponseBlock } from '@/v2/blocks/response-block'\nimport { type History } from '@/v2/blocks/scalar-address-bar-block'\nimport type { ModalProps } from '@/v2/features/modal/Modal.vue'\nimport type { ClientLayout } from '@/v2/types/layout'\n\nimport Header from './components/Header.vue'\n\nconst {\n authMeta,\n environment,\n eventBus,\n exampleKey,\n document,\n workspaceCookies = [],\n documentCookies = [],\n hideClientButton,\n httpClients = AVAILABLE_CLIENTS,\n history = [],\n method,\n operation,\n path,\n plugins = [],\n proxyUrl,\n requestBodyCompositionSelection,\n securitySchemes,\n selectedClient,\n server,\n environments,\n options,\n activeEnvironment,\n serverMeta,\n selectedSecurity,\n selectedSecuritySchemes,\n securityRequirements,\n defaultHeaders,\n} = defineProps<OperationBlockProps>()\n\n/** Hoist up client generation so it doesn't get re-generated on every operation */\nconst clientOptions = computed(() => generateClientOptions(httpClients))\n\nconst { toast } = useToasts()\n\n// Refs\nconst abortController = ref<AbortController | null>(null)\nconst response = ref<ResponseInstance | null>(null)\nconst request = ref<Request | null>(null)\n\n/** Cancel the request */\nconst cancelRequest = () => abortController.value?.abort(ERRORS.REQUEST_ABORTED)\n\n/** Execute the current operation example */\nconst handleExecute = async () => {\n const pathValidation = validatePathParameters(\n operation.parameters ?? [],\n exampleKey,\n )\n if (pathValidation.ok === false) {\n toast('Path parameters must have values.', 'error')\n return\n }\n\n const globalCookies = [...workspaceCookies, ...documentCookies]\n\n const { request: requestBuilder } = requestFactory({\n defaultHeaders,\n environment,\n exampleName: exampleKey,\n globalCookies,\n method,\n operation,\n path,\n proxyUrl,\n server,\n selectedSecuritySchemes,\n isElectron: isElectron(),\n requestBodyCompositionSelection,\n })\n\n // Stop any previous streaming response\n if (response.value && 'reader' in response.value) {\n response.value.reader.cancel()\n }\n\n const variablesStore = createVariablesStoreForRequest()\n\n // Execute the beforeRequest hook (plugins receive RequestFactory, not fetch Request)\n await executeHook(\n {\n requestBuilder,\n document,\n operation,\n variablesStore,\n },\n 'beforeRequest',\n plugins,\n )\n\n const envVariables = {\n ...getEnvironmentVariables(environment),\n ...variablesStore.getVariables(),\n }\n\n // Build the fetch Request after hooks may have mutated the factory\n const requestResult = (() => {\n try {\n return {\n ok: true,\n result: buildRequest(requestBuilder, {\n envVariables,\n }),\n } as const\n } catch (error) {\n const message = error instanceof Error ? error.message : String(error)\n return {\n ok: false,\n error: message,\n } as const\n }\n })()\n\n if (requestResult.ok === false) {\n toast(requestResult.error, 'error')\n return\n }\n\n // Store the abort controller for cancellation\n abortController.value = requestResult.result.controller\n\n // Execute the hooks\n eventBus.emit('hooks:on:request:sent', {\n meta: {\n method,\n path,\n exampleKey,\n },\n })\n\n /** Execute the request */\n const [sendError, sendResult] = await sendRequest({\n isUsingProxy: requestResult.result.isUsingProxy,\n request: requestResult.result.request,\n })\n\n if (sendResult) {\n // Execute the responseReceived hook\n await executeHook(\n {\n response: sendResult.originalResponse.clone(),\n requestBuilder,\n request: sendResult.request.clone(),\n document,\n operation,\n variablesStore,\n },\n 'responseReceived',\n plugins,\n )\n }\n\n // Execute the hooks\n eventBus.emit('hooks:on:request:complete', {\n payload: sendResult\n ? {\n response: sendResult.originalResponse.clone(),\n request: sendResult.request.clone(),\n duration: sendResult.response.duration,\n timestamp: sendResult.timestamp,\n }\n : undefined,\n meta: {\n method,\n path,\n exampleKey,\n },\n })\n\n if (sendError) {\n // clean up the response and request\n response.value = null\n request.value = null\n abortController.value = null\n\n toast(sendError.message, 'error')\n return\n }\n\n // Store the response\n response.value = sendResult.response\n request.value = sendResult.request\n\n // Cache non-streaming responses so they can be restored when navigating back\n if (!isStreamingResponse(sendResult.response)) {\n responseCache.set(getOperationExampleKey(method, path, exampleKey), {\n response: sendResult.response,\n request: sendResult.request,\n })\n }\n}\n\nonMounted(() => {\n eventBus.on('operation:send:request:hotkey', handleExecute)\n eventBus.on('operation:cancel:request', cancelRequest)\n})\nonBeforeUnmount(() => {\n eventBus.off('operation:send:request:hotkey', handleExecute)\n eventBus.off('operation:cancel:request', cancelRequest)\n})\n\nconst operationHistory = computed<History[]>(() =>\n history\n .map((entry) => ({\n method: entry.request.method as HttpMethodType,\n path: entry.request.url,\n duration: entry.time,\n status: entry.response.status,\n }))\n .reverse(),\n)\n\nconst handleSelectHistoryItem = ({ index }: { index: number }) => {\n const transformedIndex = (history.length ?? 0) - index - 1\n const historyItem = history[transformedIndex]\n if (!historyItem) {\n return\n }\n\n const navigate = () =>\n eventBus.emit('ui:navigate', {\n page: 'example',\n method,\n path,\n exampleName: 'draft',\n callback: (status) => {\n // Do not replace the response if the navigation was not successful\n if (status !== 'success') {\n return\n }\n // Reconstruct the response\n const fetchResponse = harToFetchResponse({\n harResponse: historyItem.response,\n url: historyItem.request.url,\n method,\n path,\n duration: historyItem.time,\n })\n\n // Reconstruct the request\n const fetchRequest = harToFetchRequest({\n harRequest: historyItem.request,\n })\n\n // Update the response and request\n response.value = fetchResponse\n request.value = fetchRequest\n },\n })\n\n eventBus.emit('operation:reload:history', {\n meta: {\n path,\n method,\n },\n index: transformedIndex,\n callback: navigate,\n })\n}\n\n/**\n * When the path, method, or example key changes: save current response to\n * cache (so it can be restored when navigating back), then restore from cache\n * for the new operation or clear if no cached response. Response is only\n * cleared on page refresh or when making a new request for that operation.\n */\nwatch(\n [() => path, () => method, () => exampleKey],\n ([newPath, newMethod, newExampleKey]) => {\n const newKey = getOperationExampleKey(newMethod, newPath, newExampleKey)\n const cached = responseCache.get(newKey)\n if (cached) {\n response.value = cached.response\n request.value = cached.request\n } else {\n response.value = null\n request.value = null\n }\n\n // Cancel any in-flight request\n cancelRequest()\n },\n { immediate: true },\n)\n\nonBeforeUnmount(() => {\n // We cancel the request if the component is unmounted\n cancelRequest()\n})\n</script>\n<template>\n <div class=\"bg-b-1 flex h-full flex-col\">\n <div\n class=\"lg:min-h-header flex w-full flex-wrap items-center justify-center p-2 lg:p-0\">\n <!-- Address Bar -->\n <Header\n :activeEnvironment\n :documentUrl\n :environment\n :environments\n :eventBus\n :hideClientButton\n :history=\"operationHistory\"\n :integration\n :layout\n :method\n :path\n :server\n :serverMeta\n :servers\n :source\n @execute=\"handleExecute\"\n @select:history:item=\"handleSelectHistoryItem\" />\n </div>\n\n <ViewLayout class=\"border-t\">\n <ViewLayoutContent class=\"flex-1\">\n <!-- Request Section -->\n <RequestBlock\n :authMeta\n :clientOptions\n :defaultHeaders\n :documentCookies\n :environment\n :eventBus\n :exampleKey\n :layout\n :method\n :operation\n :options=\"toValue(options)\"\n :path\n :plugins\n :proxyUrl\n :requestBodyCompositionSelection\n :securityRequirements\n :securitySchemes\n :selectedClient\n :selectedSecurity\n :selectedSecuritySchemes\n :server\n :workspaceCookies />\n\n <!-- Response Section -->\n <ResponseBlock\n :appVersion\n :eventBus\n :layout\n :plugins\n :request\n :response\n :totalPerformedRequests=\"operationHistory.length\" />\n </ViewLayoutContent>\n </ViewLayout>\n </div>\n</template>\n"],"mappings":"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"}
|
|
@@ -2,8 +2,8 @@ import type { HttpMethod } from '@scalar/helpers/http/http-methods';
|
|
|
2
2
|
import type { ServerMeta, WorkspaceEventBus } from '@scalar/workspace-store/events';
|
|
3
3
|
import type { XScalarEnvironment } from '@scalar/workspace-store/schemas/extensions/document/x-scalar-environments';
|
|
4
4
|
import type { ServerObject } from '@scalar/workspace-store/schemas/v3.1/strict/openapi-document';
|
|
5
|
-
import type { ClientLayout } from '../../../../hooks/index.js';
|
|
6
5
|
import { type History } from '../../../../v2/blocks/scalar-address-bar-block/index.js';
|
|
6
|
+
import type { ClientLayout } from '../../../../v2/types/layout';
|
|
7
7
|
/**
|
|
8
8
|
Operation block header: address bar, environment selector, and modal controls.
|
|
9
9
|
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Header.vue.d.ts","sourceRoot":"","sources":["../../../../../src/v2/blocks/operation-block/components/Header.vue"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"Header.vue.d.ts","sourceRoot":"","sources":["../../../../../src/v2/blocks/operation-block/components/Header.vue"],"names":[],"mappings":"AAsLA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,mCAAmC,CAAA;AACnE,OAAO,KAAK,EACV,UAAU,EACV,iBAAiB,EAClB,MAAM,gCAAgC,CAAA;AACvC,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,2EAA2E,CAAA;AACnH,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,8DAA8D,CAAA;AAEhG,OAAO,EAAc,KAAK,OAAO,EAAE,MAAM,sCAAsC,CAAA;AAE/E,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,mBAAmB,CAAA;AAKrD;;;;;;GAMG;AACH,MAAM,MAAM,WAAW,GAAG;IACxB,2BAA2B;IAC3B,IAAI,EAAE,MAAM,CAAA;IACZ,6BAA6B;IAC7B,MAAM,EAAE,UAAU,CAAA;IAClB,oBAAoB;IACpB,MAAM,EAAE,YAAY,CAAA;IACpB,4CAA4C;IAC5C,gBAAgB,CAAC,EAAE,OAAO,CAAA;IAC1B,0BAA0B;IAC1B,WAAW,CAAC,EAAE,MAAM,GAAG,IAAI,CAAA;IAC3B,mEAAmE;IACnE,WAAW,CAAC,EAAE,MAAM,CAAA;IACpB,oBAAoB;IACpB,MAAM,CAAC,EAAE,SAAS,GAAG,eAAe,CAAA;IACpC,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,gBAAgB;IAChB,QAAQ,EAAE,iBAAiB,CAAA;IAC3B,uBAAuB;IACvB,YAAY,CAAC,EAAE,MAAM,EAAE,CAAA;IACvB,qCAAqC;IACrC,iBAAiB,CAAC,EAAE,MAAM,CAAA;IAC1B,4BAA4B;IAC5B,WAAW,EAAE,kBAAkB,CAAA;IAC/B,sCAAsC;IACtC,UAAU,EAAE,UAAU,CAAA;CACvB,CAAA;wBACoB,OAAO,YAAY;AAAxC,wBAAyC;AACzC,QAAA,MAAM,YAAY;;;eAS6B,MAAM;;;;;;eAAN,MAAM;;;kFA4QjD,CAAC"}
|
|
@@ -2,7 +2,7 @@ import _plugin_vue_export_helper_default from "../../../../_virtual/_plugin-vue_
|
|
|
2
2
|
import Header_vue_vue_type_script_setup_true_lang_default from "./Header.vue.script.js";
|
|
3
3
|
/* empty css */
|
|
4
4
|
//#region src/v2/blocks/operation-block/components/Header.vue
|
|
5
|
-
var Header_default = /* @__PURE__ */ _plugin_vue_export_helper_default(Header_vue_vue_type_script_setup_true_lang_default, [["__scopeId", "data-v-
|
|
5
|
+
var Header_default = /* @__PURE__ */ _plugin_vue_export_helper_default(Header_vue_vue_type_script_setup_true_lang_default, [["__scopeId", "data-v-bcbdc356"]]);
|
|
6
6
|
//#endregion
|
|
7
7
|
export { Header_default as default };
|
|
8
8
|
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Header.vue.js","names":[],"sources":["../../../../../src/v2/blocks/operation-block/components/Header.vue"],"sourcesContent":["<script lang=\"ts\">\n/**\n Operation block header: address bar, environment selector, and modal controls.\n\n Renders the top bar for the API client operation view: URL/method (AddressBar),\n optional environment selector, optional \"Open API Client\" button in modal layout,\n and close button for modal. Layout and visibility depend on `layout` and `source` props.\n */\nexport type HeaderProps = {\n /** Current request path */\n path: string\n /** Current request method */\n method: HttpMethod\n /** Client layout */\n layout: ClientLayout\n /** Hides the client button on the header */\n hideClientButton?: boolean\n /** Client integration */\n integration?: string | null\n /** Openapi document url for `modal` mode to open the client app */\n documentUrl?: string\n /** Client source */\n source?: 'gitbook' | 'api-reference'\n /** Currently selected server */\n server: ServerObject | null\n /** Server list available for operation/document */\n servers: ServerObject[]\n /** List of request history */\n history: History[]\n /** Event bus */\n eventBus: WorkspaceEventBus\n /** Environment list */\n environments?: string[]\n /** Currently selected environment */\n activeEnvironment?: string\n /** Environment variables */\n environment: XScalarEnvironment\n /** Meta information for the server */\n serverMeta: ServerMeta\n}\n</script>\n\n<script setup lang=\"ts\">\nimport { ScalarIcon } from '@scalar/components'\nimport type { HttpMethod } from '@scalar/helpers/http/http-methods'\nimport type {\n ServerMeta,\n WorkspaceEventBus,\n} from '@scalar/workspace-store/events'\nimport type { XScalarEnvironment } from '@scalar/workspace-store/schemas/extensions/document/x-scalar-environments'\nimport type { ServerObject } from '@scalar/workspace-store/schemas/v3.1/strict/openapi-document'\n\nimport {
|
|
1
|
+
{"version":3,"file":"Header.vue.js","names":[],"sources":["../../../../../src/v2/blocks/operation-block/components/Header.vue"],"sourcesContent":["<script lang=\"ts\">\n/**\n Operation block header: address bar, environment selector, and modal controls.\n\n Renders the top bar for the API client operation view: URL/method (AddressBar),\n optional environment selector, optional \"Open API Client\" button in modal layout,\n and close button for modal. Layout and visibility depend on `layout` and `source` props.\n */\nexport type HeaderProps = {\n /** Current request path */\n path: string\n /** Current request method */\n method: HttpMethod\n /** Client layout */\n layout: ClientLayout\n /** Hides the client button on the header */\n hideClientButton?: boolean\n /** Client integration */\n integration?: string | null\n /** Openapi document url for `modal` mode to open the client app */\n documentUrl?: string\n /** Client source */\n source?: 'gitbook' | 'api-reference'\n /** Currently selected server */\n server: ServerObject | null\n /** Server list available for operation/document */\n servers: ServerObject[]\n /** List of request history */\n history: History[]\n /** Event bus */\n eventBus: WorkspaceEventBus\n /** Environment list */\n environments?: string[]\n /** Currently selected environment */\n activeEnvironment?: string\n /** Environment variables */\n environment: XScalarEnvironment\n /** Meta information for the server */\n serverMeta: ServerMeta\n}\n</script>\n\n<script setup lang=\"ts\">\nimport { ScalarIcon } from '@scalar/components'\nimport type { HttpMethod } from '@scalar/helpers/http/http-methods'\nimport type {\n ServerMeta,\n WorkspaceEventBus,\n} from '@scalar/workspace-store/events'\nimport type { XScalarEnvironment } from '@scalar/workspace-store/schemas/extensions/document/x-scalar-environments'\nimport type { ServerObject } from '@scalar/workspace-store/schemas/v3.1/strict/openapi-document'\n\nimport { AddressBar, type History } from '@/v2/blocks/scalar-address-bar-block'\nimport EnvironmentSelector from '@/v2/blocks/scalar-address-bar-block/components/EnvironmentSelector.vue'\nimport type { ClientLayout } from '@/v2/types/layout'\n\nimport OpenApiClientButton from './OpenApiClientButton.vue'\n\nconst { hideClientButton = false, eventBus } = defineProps<HeaderProps>()\n\nconst emit = defineEmits<{\n /** Execute the current operation example */\n (e: 'execute'): void\n /** Select a request history item by index */\n (e: 'select:history:item', payload: { index: number }): void\n /** Add a new environment */\n (e: 'add:environment'): void\n}>()\n\nconst handleSelectEnvironment = (environmentName: string) => {\n eventBus.emit('workspace:update:active-environment', environmentName)\n}\n\nconst handleAddEnvironment = () => {\n eventBus.emit('ui:navigate', { page: 'document', path: 'environment' })\n}\n</script>\n\n<template>\n <div\n class=\"lg:min-h-header t-app__top-container flex w-full flex-wrap items-center justify-center p-2 pt-2 lg:p-1 lg:pt-1\">\n <div\n class=\"mb-2 flex w-1/2 flex-row items-center gap-1 lg:mb-0 lg:flex-1 lg:px-1\">\n <!--\n Holds space for the sidebar toggle\n\n Hidden for `modal` layout\n -->\n <div class=\"size-8\"></div>\n </div>\n <AddressBar\n :activeEnvironment\n :environment\n :environments\n :eventBus\n :history\n :layout\n :method\n :path\n :server\n :serverMeta\n :servers\n @add:environment=\"emit('add:environment')\"\n @execute=\"emit('execute')\"\n @select:history:item=\"\n (payload) => emit('select:history:item', payload)\n \" />\n\n <div\n class=\"mb-2 flex w-1/2 flex-row items-center justify-end gap-2 lg:mb-0 lg:flex-1 lg:px-2.5\">\n <!--\n Environment Selector\n Hidden for `modal` layout\n -->\n <EnvironmentSelector\n v-if=\"layout !== 'modal'\"\n :activeEnvironment=\"activeEnvironment\"\n :environments=\"environments\"\n @add:environment=\"handleAddEnvironment\"\n @select:environment=\"handleSelectEnvironment\" />\n <!--\n Open API Client Button\n\n Only shown in `modal` layout\n -->\n <OpenApiClientButton\n v-if=\"layout === 'modal' && documentUrl && !hideClientButton\"\n buttonSource=\"modal\"\n class=\"!w-fit lg:-mr-1\"\n :integration=\"integration ?? null\"\n :source=\"source ?? 'api-reference'\"\n :url=\"documentUrl\" />\n\n <!--\n Close Button\n\n Only shown in `modal` layout and hidden for GitBook Integration\n -->\n <button\n v-if=\"layout === 'modal' && source !== 'gitbook'\"\n class=\"app-exit-button zoomed:static zoomed:p-1 fixed top-2 right-2 rounded-full p-2\"\n type=\"button\"\n @click=\"eventBus.emit('ui:close:client-modal')\">\n <ScalarIcon\n icon=\"Close\"\n size=\"lg\"\n thickness=\"2\" />\n <span class=\"sr-only\">Close Client</span>\n </button>\n\n <!--\n Close Button for GitBook Integration\n\n Hidden by default and visible for GitBook Integration in `modal` layout\n -->\n <button\n v-if=\"layout === 'modal' && source === 'gitbook'\"\n class=\"text-c-1 hover:bg-b-2 active:text-c-1 -mr-1.5 rounded p-2\"\n type=\"button\"\n @click=\"eventBus.emit('ui:close:client-modal')\">\n <ScalarIcon\n icon=\"Close\"\n size=\"md\"\n thickness=\"1.75\" />\n <span class=\"sr-only\">Close Client</span>\n </button>\n </div>\n </div>\n</template>\n<style scoped>\n.app-exit-button {\n color: white;\n background: rgba(0, 0, 0, 0.1);\n}\n.app-exit-button:hover {\n background: rgba(255, 255, 255, 0.1);\n}\n</style>\n"],"mappings":""}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import OpenApiClientButton_default from "
|
|
1
|
+
import OpenApiClientButton_default from "./OpenApiClientButton.vue.js";
|
|
2
2
|
import AddressBar_default from "../../scalar-address-bar-block/components/AddressBar.vue.js";
|
|
3
3
|
import EnvironmentSelector_default from "../../scalar-address-bar-block/components/EnvironmentSelector.vue.js";
|
|
4
4
|
import { createBlock, createCommentVNode, createElementBlock, createElementVNode, createVNode, defineComponent, openBlock, unref } from "vue";
|
|
@@ -83,7 +83,7 @@ var Header_vue_vue_type_script_setup_true_lang_default = /* @__PURE__ */ defineC
|
|
|
83
83
|
"onAdd:environment": handleAddEnvironment,
|
|
84
84
|
"onSelect:environment": handleSelectEnvironment
|
|
85
85
|
}, null, 8, ["activeEnvironment", "environments"])) : createCommentVNode("", true),
|
|
86
|
-
__props.layout === "modal" && __props.documentUrl && !__props.hideClientButton ? (openBlock(), createBlock(
|
|
86
|
+
__props.layout === "modal" && __props.documentUrl && !__props.hideClientButton ? (openBlock(), createBlock(OpenApiClientButton_default, {
|
|
87
87
|
key: 1,
|
|
88
88
|
buttonSource: "modal",
|
|
89
89
|
class: "!w-fit lg:-mr-1",
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Header.vue.script.js","names":[],"sources":["../../../../../src/v2/blocks/operation-block/components/Header.vue"],"sourcesContent":["<script lang=\"ts\">\n/**\n Operation block header: address bar, environment selector, and modal controls.\n\n Renders the top bar for the API client operation view: URL/method (AddressBar),\n optional environment selector, optional \"Open API Client\" button in modal layout,\n and close button for modal. Layout and visibility depend on `layout` and `source` props.\n */\nexport type HeaderProps = {\n /** Current request path */\n path: string\n /** Current request method */\n method: HttpMethod\n /** Client layout */\n layout: ClientLayout\n /** Hides the client button on the header */\n hideClientButton?: boolean\n /** Client integration */\n integration?: string | null\n /** Openapi document url for `modal` mode to open the client app */\n documentUrl?: string\n /** Client source */\n source?: 'gitbook' | 'api-reference'\n /** Currently selected server */\n server: ServerObject | null\n /** Server list available for operation/document */\n servers: ServerObject[]\n /** List of request history */\n history: History[]\n /** Event bus */\n eventBus: WorkspaceEventBus\n /** Environment list */\n environments?: string[]\n /** Currently selected environment */\n activeEnvironment?: string\n /** Environment variables */\n environment: XScalarEnvironment\n /** Meta information for the server */\n serverMeta: ServerMeta\n}\n</script>\n\n<script setup lang=\"ts\">\nimport { ScalarIcon } from '@scalar/components'\nimport type { HttpMethod } from '@scalar/helpers/http/http-methods'\nimport type {\n ServerMeta,\n WorkspaceEventBus,\n} from '@scalar/workspace-store/events'\nimport type { XScalarEnvironment } from '@scalar/workspace-store/schemas/extensions/document/x-scalar-environments'\nimport type { ServerObject } from '@scalar/workspace-store/schemas/v3.1/strict/openapi-document'\n\nimport {
|
|
1
|
+
{"version":3,"file":"Header.vue.script.js","names":[],"sources":["../../../../../src/v2/blocks/operation-block/components/Header.vue"],"sourcesContent":["<script lang=\"ts\">\n/**\n Operation block header: address bar, environment selector, and modal controls.\n\n Renders the top bar for the API client operation view: URL/method (AddressBar),\n optional environment selector, optional \"Open API Client\" button in modal layout,\n and close button for modal. Layout and visibility depend on `layout` and `source` props.\n */\nexport type HeaderProps = {\n /** Current request path */\n path: string\n /** Current request method */\n method: HttpMethod\n /** Client layout */\n layout: ClientLayout\n /** Hides the client button on the header */\n hideClientButton?: boolean\n /** Client integration */\n integration?: string | null\n /** Openapi document url for `modal` mode to open the client app */\n documentUrl?: string\n /** Client source */\n source?: 'gitbook' | 'api-reference'\n /** Currently selected server */\n server: ServerObject | null\n /** Server list available for operation/document */\n servers: ServerObject[]\n /** List of request history */\n history: History[]\n /** Event bus */\n eventBus: WorkspaceEventBus\n /** Environment list */\n environments?: string[]\n /** Currently selected environment */\n activeEnvironment?: string\n /** Environment variables */\n environment: XScalarEnvironment\n /** Meta information for the server */\n serverMeta: ServerMeta\n}\n</script>\n\n<script setup lang=\"ts\">\nimport { ScalarIcon } from '@scalar/components'\nimport type { HttpMethod } from '@scalar/helpers/http/http-methods'\nimport type {\n ServerMeta,\n WorkspaceEventBus,\n} from '@scalar/workspace-store/events'\nimport type { XScalarEnvironment } from '@scalar/workspace-store/schemas/extensions/document/x-scalar-environments'\nimport type { ServerObject } from '@scalar/workspace-store/schemas/v3.1/strict/openapi-document'\n\nimport { AddressBar, type History } from '@/v2/blocks/scalar-address-bar-block'\nimport EnvironmentSelector from '@/v2/blocks/scalar-address-bar-block/components/EnvironmentSelector.vue'\nimport type { ClientLayout } from '@/v2/types/layout'\n\nimport OpenApiClientButton from './OpenApiClientButton.vue'\n\nconst { hideClientButton = false, eventBus } = defineProps<HeaderProps>()\n\nconst emit = defineEmits<{\n /** Execute the current operation example */\n (e: 'execute'): void\n /** Select a request history item by index */\n (e: 'select:history:item', payload: { index: number }): void\n /** Add a new environment */\n (e: 'add:environment'): void\n}>()\n\nconst handleSelectEnvironment = (environmentName: string) => {\n eventBus.emit('workspace:update:active-environment', environmentName)\n}\n\nconst handleAddEnvironment = () => {\n eventBus.emit('ui:navigate', { page: 'document', path: 'environment' })\n}\n</script>\n\n<template>\n <div\n class=\"lg:min-h-header t-app__top-container flex w-full flex-wrap items-center justify-center p-2 pt-2 lg:p-1 lg:pt-1\">\n <div\n class=\"mb-2 flex w-1/2 flex-row items-center gap-1 lg:mb-0 lg:flex-1 lg:px-1\">\n <!--\n Holds space for the sidebar toggle\n\n Hidden for `modal` layout\n -->\n <div class=\"size-8\"></div>\n </div>\n <AddressBar\n :activeEnvironment\n :environment\n :environments\n :eventBus\n :history\n :layout\n :method\n :path\n :server\n :serverMeta\n :servers\n @add:environment=\"emit('add:environment')\"\n @execute=\"emit('execute')\"\n @select:history:item=\"\n (payload) => emit('select:history:item', payload)\n \" />\n\n <div\n class=\"mb-2 flex w-1/2 flex-row items-center justify-end gap-2 lg:mb-0 lg:flex-1 lg:px-2.5\">\n <!--\n Environment Selector\n Hidden for `modal` layout\n -->\n <EnvironmentSelector\n v-if=\"layout !== 'modal'\"\n :activeEnvironment=\"activeEnvironment\"\n :environments=\"environments\"\n @add:environment=\"handleAddEnvironment\"\n @select:environment=\"handleSelectEnvironment\" />\n <!--\n Open API Client Button\n\n Only shown in `modal` layout\n -->\n <OpenApiClientButton\n v-if=\"layout === 'modal' && documentUrl && !hideClientButton\"\n buttonSource=\"modal\"\n class=\"!w-fit lg:-mr-1\"\n :integration=\"integration ?? null\"\n :source=\"source ?? 'api-reference'\"\n :url=\"documentUrl\" />\n\n <!--\n Close Button\n\n Only shown in `modal` layout and hidden for GitBook Integration\n -->\n <button\n v-if=\"layout === 'modal' && source !== 'gitbook'\"\n class=\"app-exit-button zoomed:static zoomed:p-1 fixed top-2 right-2 rounded-full p-2\"\n type=\"button\"\n @click=\"eventBus.emit('ui:close:client-modal')\">\n <ScalarIcon\n icon=\"Close\"\n size=\"lg\"\n thickness=\"2\" />\n <span class=\"sr-only\">Close Client</span>\n </button>\n\n <!--\n Close Button for GitBook Integration\n\n Hidden by default and visible for GitBook Integration in `modal` layout\n -->\n <button\n v-if=\"layout === 'modal' && source === 'gitbook'\"\n class=\"text-c-1 hover:bg-b-2 active:text-c-1 -mr-1.5 rounded p-2\"\n type=\"button\"\n @click=\"eventBus.emit('ui:close:client-modal')\">\n <ScalarIcon\n icon=\"Close\"\n size=\"md\"\n thickness=\"1.75\" />\n <span class=\"sr-only\">Close Client</span>\n </button>\n </div>\n </div>\n</template>\n<style scoped>\n.app-exit-button {\n color: white;\n background: rgba(0, 0, 0, 0.1);\n}\n.app-exit-button:hover {\n background: rgba(255, 255, 255, 0.1);\n}\n</style>\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EA4DA,MAAM,OAAO;EASb,MAAM,2BAA2B,oBAA4B;AAC3D,WAAA,SAAS,KAAK,uCAAuC,gBAAe;;EAGtE,MAAM,6BAA6B;AACjC,WAAA,SAAS,KAAK,eAAe;IAAE,MAAM;IAAY,MAAM;IAAe,CAAA;;;uBAKtE,mBAwFM,OAxFN,YAwFM;8BAtFJ,mBAQM,OAAA,EAPJ,OAAM,yEAAuE,EAAA,CAM7E,mBAA0B,OAAA,EAArB,OAAM,UAAQ,CAAA,CAAA,EAAA,GAAA;IAErB,YAgBM,MAAA,mBAAA,EAAA;KAfH,mBAAA,QAAA;KACA,aAAA,QAAA;KACA,cAAA,QAAA;KACA,UAAA,QAAA;KACA,SAAA,QAAA;KACA,QAAA,QAAA;KACA,QAAA,QAAA;KACA,MAAA,QAAA;KACA,QAAA,QAAA;KACA,YAAA,QAAA;KACA,SAAA,QAAA;KACA,qBAAe,OAAA,OAAA,OAAA,MAAA,WAAE,KAAI,kBAAA;KACrB,WAAO,OAAA,OAAA,OAAA,MAAA,WAAE,KAAI,UAAA;KACb,yBAAmB,OAAA,OAAA,OAAA,MAAY,YAAY,KAAI,uBAAwB,QAAO;;;;;;;;;;;;;;IAIjF,mBA0DM,OA1DN,YA0DM;KAnDI,QAAA,WAAM,WAAA,WAAA,EADd,YAKkD,6BAAA;;MAH/C,mBAAmB,QAAA;MACnB,cAAc,QAAA;MACd,qBAAiB;MACjB,wBAAoB;;KAOf,QAAA,WAAM,WAAgB,QAAA,eAAW,CAAK,QAAA,oBAAA,WAAA,EAD9C,YAMuB,6BAAA;;MAJrB,cAAa;MACb,OAAM;MACL,aAAa,QAAA,eAAW;MACxB,QAAQ,QAAA,UAAM;MACd,KAAK,QAAA;;;;;;KAQA,QAAA,WAAM,WAAgB,QAAA,WAAM,aAAA,WAAA,EADpC,mBAUS,UAAA;;MARP,OAAM;MACN,MAAK;MACJ,SAAK,OAAA,OAAA,OAAA,MAAA,WAAE,QAAA,SAAS,KAAI,wBAAA;SACrB,YAGkB,MAAA,WAAA,EAAA;MAFhB,MAAK;MACL,MAAK;MACL,WAAU;mCACZ,mBAAyC,QAAA,EAAnC,OAAM,WAAS,EAAC,gBAAY,GAAA,EAAA,CAAA,IAAA,mBAAA,IAAA,KAAA;KAS5B,QAAA,WAAM,WAAgB,QAAA,WAAM,aAAA,WAAA,EADpC,mBAUS,UAAA;;MARP,OAAM;MACN,MAAK;MACJ,SAAK,OAAA,OAAA,OAAA,MAAA,WAAE,QAAA,SAAS,KAAI,wBAAA;SACrB,YAGqB,MAAA,WAAA,EAAA;MAFnB,MAAK;MACL,MAAK;MACL,WAAU;mCACZ,mBAAyC,QAAA,EAAnC,OAAM,WAAS,EAAC,gBAAY,GAAA,EAAA,CAAA,IAAA,mBAAA,IAAA,KAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"OpenApiClientButton.vue.d.ts","sourceRoot":"","sources":["../../../../../src/v2/blocks/operation-block/components/OpenApiClientButton.vue"],"names":[],"mappings":"AA2HA,KAAK,WAAW,GAAG;IACjB,YAAY,EAAE,SAAS,GAAG,OAAO,CAAA;IACjC,MAAM,CAAC,EAAE,eAAe,GAAG,SAAS,CAAA;IACpC,aAAa,CAAC,EAAE,OAAO,CAAA;IACvB,WAAW,CAAC,EAAE,MAAM,GAAG,IAAI,CAAA;IAC3B,GAAG,CAAC,EAAE,MAAM,CAAA;CACb,CAAC;AA+GF,QAAA,MAAM,YAAY,kSAEhB,CAAC;wBACkB,OAAO,YAAY;AAAxC,wBAAyC"}
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import _plugin_vue_export_helper_default from "../_virtual/_plugin-vue_export-helper.js";
|
|
2
1
|
import OpenApiClientButton_vue_vue_type_script_setup_true_lang_default from "./OpenApiClientButton.vue.script.js";
|
|
3
2
|
/* empty css */
|
|
4
|
-
|
|
5
|
-
|
|
3
|
+
import _plugin_vue_export_helper_default from "../../../../_virtual/_plugin-vue_export-helper.js";
|
|
4
|
+
//#region src/v2/blocks/operation-block/components/OpenApiClientButton.vue
|
|
5
|
+
var OpenApiClientButton_default = /* @__PURE__ */ _plugin_vue_export_helper_default(OpenApiClientButton_vue_vue_type_script_setup_true_lang_default, [["__scopeId", "data-v-264dd42f"]]);
|
|
6
6
|
//#endregion
|
|
7
7
|
export { OpenApiClientButton_default as default };
|
|
8
8
|
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"OpenApiClientButton.vue.js","names":[],"sources":["../../../../../src/v2/blocks/operation-block/components/OpenApiClientButton.vue"],"sourcesContent":["<script lang=\"ts\" setup>\nimport { makeUrlAbsolute } from '@scalar/helpers/url/make-url-absolute'\nimport { ScalarIconArrowUpRight } from '@scalar/icons'\nimport { computed } from 'vue'\n\nconst {\n integration,\n isDevelopment,\n url,\n buttonSource,\n source = 'api-reference',\n} = defineProps<{\n buttonSource: 'sidebar' | 'modal'\n source?: 'api-reference' | 'gitbook'\n isDevelopment?: boolean\n integration?: string | null\n url?: string\n}>()\n\n/** Link to import an OpenAPI document */\nconst href = computed((): string | undefined => {\n /**\n * The URL we want to pass to client.scalar.com for the import.\n * Might be an OpenAPI document URL, but could also just be the URL of the API reference.\n */\n const urlToImportFrom =\n url ?? (typeof window !== 'undefined' ? window.location.href : undefined)\n\n if (!urlToImportFrom) {\n return undefined\n }\n\n const absoluteUrl = makeUrlAbsolute(urlToImportFrom)\n\n if (!absoluteUrl?.length) {\n return undefined\n }\n\n // Base URL\n const link = new URL(\n isDevelopment ? 'http://localhost:5065' : 'https://client.scalar.com',\n )\n\n // URL that we'd like to import\n link.searchParams.set('url', absoluteUrl)\n\n // Integration identifier\n if (integration !== null) {\n link.searchParams.set('integration', integration ?? 'vue')\n }\n\n // UTM Source\n link.searchParams.set('utm_source', 'api-reference')\n link.searchParams.set('utm_medium', 'button')\n link.searchParams.set('utm_campaign', buttonSource)\n\n // Special for gitbook, set the source and grab the logos (hacky)\n if (source === 'gitbook') {\n link.searchParams.set('utm_source', 'gitbook')\n\n const darkLogo = document.querySelector(\"img.dark\\\\:block[alt='Logo']\")\n const lightLogo = document.querySelector(\"img.dark\\\\:hidden[alt='Logo']\")\n\n if (darkLogo && darkLogo instanceof HTMLImageElement) {\n link.searchParams.set('dark_logo', encodeURIComponent(darkLogo.src))\n }\n if (lightLogo && lightLogo instanceof HTMLImageElement) {\n link.searchParams.set('light_logo', encodeURIComponent(lightLogo.src))\n }\n }\n\n return link.toString()\n})\n</script>\n\n<template>\n <a\n v-if=\"href\"\n class=\"open-api-client-button\"\n :href=\"href\"\n target=\"_blank\">\n <ScalarIconArrowUpRight\n class=\"size-3\"\n weight=\"regular\" />\n Open API Client\n </a>\n</template>\n\n<style scoped>\n.open-api-client-button {\n cursor: pointer;\n width: 100%;\n padding: 9px 12px;\n height: 31px;\n display: block;\n text-align: center;\n display: flex;\n align-items: center;\n justify-content: center;\n white-space: nowrap;\n font-size: var(--scalar-small);\n line-height: 1.385;\n text-decoration: none;\n border-radius: var(--scalar-radius);\n box-shadow: 0 0 0 0.5px var(--scalar-border-color);\n gap: 6px;\n color: var(--scalar-sidebar-color-1);\n}\n\n.open-api-client-button:hover {\n background: var(\n --scalar-sidebar-item-hover-background,\n var(--scalar-background-2)\n );\n}\n</style>\n"],"mappings":""}
|
package/dist/{components → v2/blocks/operation-block/components}/OpenApiClientButton.vue.script.js
RENAMED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { computed, createCommentVNode, createElementBlock, createTextVNode, createVNode, defineComponent, openBlock, unref } from "vue";
|
|
2
|
-
import {
|
|
3
|
-
import { makeUrlAbsolute } from "@scalar/
|
|
4
|
-
//#region src/components/OpenApiClientButton.vue?vue&type=script&setup=true&lang.ts
|
|
2
|
+
import { ScalarIconArrowUpRight } from "@scalar/icons";
|
|
3
|
+
import { makeUrlAbsolute } from "@scalar/helpers/url/make-url-absolute";
|
|
4
|
+
//#region src/v2/blocks/operation-block/components/OpenApiClientButton.vue?vue&type=script&setup=true&lang.ts
|
|
5
5
|
var _hoisted_1 = ["href"];
|
|
6
6
|
var OpenApiClientButton_vue_vue_type_script_setup_true_lang_default = /* @__PURE__ */ defineComponent({
|
|
7
7
|
__name: "OpenApiClientButton",
|
|
@@ -44,10 +44,9 @@ var OpenApiClientButton_vue_vue_type_script_setup_true_lang_default = /* @__PURE
|
|
|
44
44
|
class: "open-api-client-button",
|
|
45
45
|
href: href.value,
|
|
46
46
|
target: "_blank"
|
|
47
|
-
}, [createVNode(unref(
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
thickness: "2"
|
|
47
|
+
}, [createVNode(unref(ScalarIconArrowUpRight), {
|
|
48
|
+
class: "size-3",
|
|
49
|
+
weight: "regular"
|
|
51
50
|
}), _cache[0] || (_cache[0] = createTextVNode(" Open API Client ", -1))], 8, _hoisted_1)) : createCommentVNode("", true);
|
|
52
51
|
};
|
|
53
52
|
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"OpenApiClientButton.vue.script.js","names":[],"sources":["../../../../../src/v2/blocks/operation-block/components/OpenApiClientButton.vue"],"sourcesContent":["<script lang=\"ts\" setup>\nimport { makeUrlAbsolute } from '@scalar/helpers/url/make-url-absolute'\nimport { ScalarIconArrowUpRight } from '@scalar/icons'\nimport { computed } from 'vue'\n\nconst {\n integration,\n isDevelopment,\n url,\n buttonSource,\n source = 'api-reference',\n} = defineProps<{\n buttonSource: 'sidebar' | 'modal'\n source?: 'api-reference' | 'gitbook'\n isDevelopment?: boolean\n integration?: string | null\n url?: string\n}>()\n\n/** Link to import an OpenAPI document */\nconst href = computed((): string | undefined => {\n /**\n * The URL we want to pass to client.scalar.com for the import.\n * Might be an OpenAPI document URL, but could also just be the URL of the API reference.\n */\n const urlToImportFrom =\n url ?? (typeof window !== 'undefined' ? window.location.href : undefined)\n\n if (!urlToImportFrom) {\n return undefined\n }\n\n const absoluteUrl = makeUrlAbsolute(urlToImportFrom)\n\n if (!absoluteUrl?.length) {\n return undefined\n }\n\n // Base URL\n const link = new URL(\n isDevelopment ? 'http://localhost:5065' : 'https://client.scalar.com',\n )\n\n // URL that we'd like to import\n link.searchParams.set('url', absoluteUrl)\n\n // Integration identifier\n if (integration !== null) {\n link.searchParams.set('integration', integration ?? 'vue')\n }\n\n // UTM Source\n link.searchParams.set('utm_source', 'api-reference')\n link.searchParams.set('utm_medium', 'button')\n link.searchParams.set('utm_campaign', buttonSource)\n\n // Special for gitbook, set the source and grab the logos (hacky)\n if (source === 'gitbook') {\n link.searchParams.set('utm_source', 'gitbook')\n\n const darkLogo = document.querySelector(\"img.dark\\\\:block[alt='Logo']\")\n const lightLogo = document.querySelector(\"img.dark\\\\:hidden[alt='Logo']\")\n\n if (darkLogo && darkLogo instanceof HTMLImageElement) {\n link.searchParams.set('dark_logo', encodeURIComponent(darkLogo.src))\n }\n if (lightLogo && lightLogo instanceof HTMLImageElement) {\n link.searchParams.set('light_logo', encodeURIComponent(lightLogo.src))\n }\n }\n\n return link.toString()\n})\n</script>\n\n<template>\n <a\n v-if=\"href\"\n class=\"open-api-client-button\"\n :href=\"href\"\n target=\"_blank\">\n <ScalarIconArrowUpRight\n class=\"size-3\"\n weight=\"regular\" />\n Open API Client\n </a>\n</template>\n\n<style scoped>\n.open-api-client-button {\n cursor: pointer;\n width: 100%;\n padding: 9px 12px;\n height: 31px;\n display: block;\n text-align: center;\n display: flex;\n align-items: center;\n justify-content: center;\n white-space: nowrap;\n font-size: var(--scalar-small);\n line-height: 1.385;\n text-decoration: none;\n border-radius: var(--scalar-radius);\n box-shadow: 0 0 0 0.5px var(--scalar-border-color);\n gap: 6px;\n color: var(--scalar-sidebar-color-1);\n}\n\n.open-api-client-button:hover {\n background: var(\n --scalar-sidebar-item-hover-background,\n var(--scalar-background-2)\n );\n}\n</style>\n"],"mappings":";;;;;;;;;;;;;;;;EAoBA,MAAM,OAAO,eAAmC;;;;;GAK9C,MAAM,kBACJ,QAAA,QAAQ,OAAO,WAAW,cAAc,OAAO,SAAS,OAAO,KAAA;AAEjE,OAAI,CAAC,gBACH;GAGF,MAAM,cAAc,gBAAgB,gBAAe;AAEnD,OAAI,CAAC,aAAa,OAChB;GAIF,MAAM,OAAO,IAAI,IACf,QAAA,gBAAgB,0BAA0B,4BAC5C;AAGA,QAAK,aAAa,IAAI,OAAO,YAAW;AAGxC,OAAI,QAAA,gBAAgB,KAClB,MAAK,aAAa,IAAI,eAAe,QAAA,eAAe,MAAK;AAI3D,QAAK,aAAa,IAAI,cAAc,gBAAe;AACnD,QAAK,aAAa,IAAI,cAAc,SAAQ;AAC5C,QAAK,aAAa,IAAI,gBAAgB,QAAA,aAAY;AAGlD,OAAI,QAAA,WAAW,WAAW;AACxB,SAAK,aAAa,IAAI,cAAc,UAAS;IAE7C,MAAM,WAAW,SAAS,cAAc,+BAA8B;IACtE,MAAM,YAAY,SAAS,cAAc,gCAA+B;AAExE,QAAI,YAAY,oBAAoB,iBAClC,MAAK,aAAa,IAAI,aAAa,mBAAmB,SAAS,IAAI,CAAA;AAErE,QAAI,aAAa,qBAAqB,iBACpC,MAAK,aAAa,IAAI,cAAc,mBAAmB,UAAU,IAAI,CAAA;;AAIzE,UAAO,KAAK,UAAS;IACtB;;UAKS,KAAA,SAAA,WAAA,EADR,mBASI,KAAA;;IAPF,OAAM;IACL,MAAM,KAAA;IACP,QAAO;OACP,YAEqB,MAAA,uBAAA,EAAA;IADnB,OAAM;IACN,QAAO;iDAAY,qBAEvB,GAAA,EAAA,EAAA,GAAA,WAAA,IAAA,mBAAA,IAAA,KAAA"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { isTextMediaType } from "
|
|
2
|
-
import
|
|
1
|
+
import { isTextMediaType } from "../../response-block/helpers/media-types.js";
|
|
2
|
+
import { parseMimeType } from "@scalar/helpers/http/mime-type";
|
|
3
3
|
//#region src/v2/blocks/operation-block/helpers/decode-buffer.ts
|
|
4
4
|
/**
|
|
5
5
|
* Decode the buffer according to its content-type
|
|
@@ -7,7 +7,7 @@ import MimeType from "whatwg-mimetype";
|
|
|
7
7
|
* @returns The decoded string or Blob
|
|
8
8
|
*/
|
|
9
9
|
var decodeBuffer = (buffer, contentType) => {
|
|
10
|
-
const mimeType =
|
|
10
|
+
const mimeType = parseMimeType(contentType);
|
|
11
11
|
if (isTextMediaType(mimeType.essence)) return new TextDecoder(mimeType.parameters.get("charset")).decode(buffer);
|
|
12
12
|
return new Blob([buffer], { type: mimeType.essence });
|
|
13
13
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"decode-buffer.js","names":[],"sources":["../../../../../src/v2/blocks/operation-block/helpers/decode-buffer.ts"],"sourcesContent":["import
|
|
1
|
+
{"version":3,"file":"decode-buffer.js","names":[],"sources":["../../../../../src/v2/blocks/operation-block/helpers/decode-buffer.ts"],"sourcesContent":["import { parseMimeType } from '@scalar/helpers/http/mime-type'\n\nimport { isTextMediaType } from '@/v2/blocks/response-block/helpers/media-types'\n\n/**\n * Decode the buffer according to its content-type\n *\n * @returns The decoded string or Blob\n */\nexport const decodeBuffer = (buffer: ArrayBuffer, contentType: string): string | Blob => {\n const mimeType = parseMimeType(contentType)\n\n // Text\n if (isTextMediaType(mimeType.essence)) {\n const decoder = new TextDecoder(mimeType.parameters.get('charset'))\n return decoder.decode(buffer)\n }\n\n // Binary\n return new Blob([buffer], { type: mimeType.essence })\n}\n"],"mappings":";;;;;;;;AASA,IAAa,gBAAgB,QAAqB,gBAAuC;CACvF,MAAM,WAAW,cAAc,YAAY;AAG3C,KAAI,gBAAgB,SAAS,QAAQ,CAEnC,QADgB,IAAI,YAAY,SAAS,WAAW,IAAI,UAAU,CAAC,CACpD,OAAO,OAAO;AAI/B,QAAO,IAAI,KAAK,CAAC,OAAO,EAAE,EAAE,MAAM,SAAS,SAAS,CAAC"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { ResponseInstance } from '
|
|
1
|
+
import type { ResponseInstance } from '../../../../v2/blocks/operation-block/helpers/send-request.js';
|
|
2
2
|
/**
|
|
3
3
|
* In-memory cache of operation example id → { response, request }.
|
|
4
4
|
* Restores the last response when navigating back to an operation until
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"response-cache.d.ts","sourceRoot":"","sources":["../../../../../src/v2/blocks/operation-block/helpers/response-cache.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"response-cache.d.ts","sourceRoot":"","sources":["../../../../../src/v2/blocks/operation-block/helpers/response-cache.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,kDAAkD,CAAA;AAExF;;;;GAIG;AACH,eAAO,MAAM,aAAa;cAA+B,gBAAgB;aAAW,OAAO;EAAK,CAAA;AAEhG;;;;;;;;;GASG;AACH,wBAAgB,sBAAsB,CAAC,MAAM,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM,EAAE,UAAU,EAAE,MAAM,GAAG,MAAM,CAE/F;AAED;;;;;;GAMG;AACH,wBAAgB,mBAAmB,CAAC,QAAQ,EAAE,gBAAgB,GAAG,OAAO,CAEvE"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"response-cache.js","names":[],"sources":["../../../../../src/v2/blocks/operation-block/helpers/response-cache.ts"],"sourcesContent":["import type { ResponseInstance } from '
|
|
1
|
+
{"version":3,"file":"response-cache.js","names":[],"sources":["../../../../../src/v2/blocks/operation-block/helpers/response-cache.ts"],"sourcesContent":["import type { ResponseInstance } from '@/v2/blocks/operation-block/helpers/send-request'\n\n/**\n * In-memory cache of operation example id → { response, request }.\n * Restores the last response when navigating back to an operation until\n * the user refreshes the page or makes a new request.\n */\nexport const responseCache = new Map<string, { response: ResponseInstance; request: Request }>()\n\n/**\n * Constructs a unique cache key for a specific operation/example.\n * The key is composed of the HTTP method, request path, and the example key,\n * delimited by \"|\", e.g. \"GET|/pets|123\".\n *\n * @param method - HTTP method (e.g., \"GET\", \"POST\")\n * @param path - The request path (e.g., \"/pets\")\n * @param exampleKey - A unique key identifying the example/request variant\n * @returns The constructed cache key string\n */\nexport function getOperationExampleKey(method: string, path: string, exampleKey: string): string {\n return `${method}|${path}|${exampleKey}`\n}\n\n/**\n * Determines if a response is a streaming response (e.g., server-sent events).\n * Assumes streaming responses include a 'reader' property.\n *\n * @param response - The response instance to check\n * @returns True if response is streaming, otherwise false\n */\nexport function isStreamingResponse(response: ResponseInstance): boolean {\n return 'reader' in response\n}\n"],"mappings":";;;;;;AAOA,IAAa,gCAAgB,IAAI,KAA+D;;;;;;;;;;;AAYhG,SAAgB,uBAAuB,QAAgB,MAAc,YAA4B;AAC/F,QAAO,GAAG,OAAO,GAAG,KAAK,GAAG;;;;;;;;;AAU9B,SAAgB,oBAAoB,UAAqC;AACvE,QAAO,YAAY"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
+
import { type ErrorResponse } from '@scalar/helpers/errors/normalize-error';
|
|
1
2
|
import type { HttpMethod } from '@scalar/helpers/http/http-methods';
|
|
2
|
-
import { type ErrorResponse } from '../../../../libs/errors.js';
|
|
3
3
|
/** A single set of populated values for a sent request */
|
|
4
4
|
export type ResponseInstance = Omit<Response, 'headers'> & {
|
|
5
5
|
/** Store headers as an object to match what we had with axios */
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"send-request.d.ts","sourceRoot":"","sources":["../../../../../src/v2/blocks/operation-block/helpers/send-request.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,
|
|
1
|
+
{"version":3,"file":"send-request.d.ts","sourceRoot":"","sources":["../../../../../src/v2/blocks/operation-block/helpers/send-request.ts"],"names":[],"mappings":"AAAA,OAAO,EAAU,KAAK,aAAa,EAAkB,MAAM,wCAAwC,CAAA;AACnG,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,mCAAmC,CAAA;AAYnE,0DAA0D;AAC1D,MAAM,MAAM,gBAAgB,GAAG,IAAI,CAAC,QAAQ,EAAE,SAAS,CAAC,GAAG;IACzD,iEAAiE;IACjE,OAAO,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAA;IAC/B,wCAAwC;IACxC,gBAAgB,EAAE,MAAM,EAAE,CAAA;IAC1B,kCAAkC;IAClC,QAAQ,EAAE,MAAM,CAAA;IAChB,0BAA0B;IAC1B,MAAM,EAAE,MAAM,CAAA;IACd,+BAA+B;IAC/B,UAAU,EAAE,MAAM,CAAA;IAClB,0BAA0B;IAC1B,MAAM,EAAE,UAAU,CAAA;IAClB,uBAAuB;IACvB,IAAI,EAAE,MAAM,CAAA;CACb,GAAG,CACE;IACE,wBAAwB;IACxB,IAAI,EAAE,MAAM,GAAG,IAAI,CAAA;IACnB,iCAAiC;IACjC,IAAI,EAAE,MAAM,CAAA;CACb,GACD;IACE,qDAAqD;IACrD,MAAM,EAAE,2BAA2B,CAAC,UAAU,CAAC,CAAA;CAChD,CACJ,CAAA;AAKH;;;;;;;;;;;;GAYG;AACH,eAAO,MAAM,WAAW,GAAU,4BAG/B;IACD,YAAY,EAAE,OAAO,CAAA;IACrB,OAAO,EAAE,OAAO,CAAA;CACjB,KAAG,OAAO,CACT,aAAa,CAAC;IACZ,QAAQ,EAAE,gBAAgB,CAAA;IAC1B,OAAO,EAAE,OAAO,CAAA;IAChB,SAAS,EAAE,MAAM,CAAA;IACjB,gBAAgB,EAAE,QAAQ,CAAA;CAC3B,CAAC,CAoDH,CAAA"}
|