@scalar/api-client 2.38.1 → 2.38.2
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 +9 -0
- package/dist/AddressBar-B4xnl66I.js +302 -0
- package/dist/AddressBar-B4xnl66I.js.map +1 -0
- package/dist/App-BVH4lIe8.js +533 -0
- package/dist/App-BVH4lIe8.js.map +1 -0
- package/dist/App-CvClwSlM.js +2510 -0
- package/dist/App-CvClwSlM.js.map +1 -0
- package/dist/CodeInput-C-igR77V.js +694 -0
- package/dist/CodeInput-C-igR77V.js.map +1 -0
- package/dist/CodeSnippet-D7Heh1nd.js +218 -0
- package/dist/CodeSnippet-D7Heh1nd.js.map +1 -0
- package/dist/Collection-4MT9WmDD.js +219 -0
- package/dist/Collection-4MT9WmDD.js.map +1 -0
- package/dist/CollectionAuthentication-MHWQpw74.js +56 -0
- package/dist/CollectionAuthentication-MHWQpw74.js.map +1 -0
- package/dist/CollectionCookies-DyjPPMdt.js +19 -0
- package/dist/CollectionCookies-DyjPPMdt.js.map +1 -0
- package/dist/CollectionEnvironment-Dw35vIqo.js +514 -0
- package/dist/CollectionEnvironment-Dw35vIqo.js.map +1 -0
- package/dist/CollectionOverview-TUdDIu5f.js +131 -0
- package/dist/CollectionOverview-TUdDIu5f.js.map +1 -0
- package/dist/CollectionScripts-CMNlBlby.js +19 -0
- package/dist/CollectionScripts-CMNlBlby.js.map +1 -0
- package/dist/CollectionServers-BrjTCfDe.js +168 -0
- package/dist/CollectionServers-BrjTCfDe.js.map +1 -0
- package/dist/CollectionSettings-HVSlp2Gv.js +87 -0
- package/dist/CollectionSettings-HVSlp2Gv.js.map +1 -0
- package/dist/CollectionSync-CAflc5yW.js +19 -0
- package/dist/CollectionSync-CAflc5yW.js.map +1 -0
- package/dist/CommandActionInput-TkcAx6E8.js +97 -0
- package/dist/CommandActionInput-TkcAx6E8.js.map +1 -0
- package/dist/CommandPalette-CL8k4CoN.js +964 -0
- package/dist/CommandPalette-CL8k4CoN.js.map +1 -0
- package/dist/CommandPaletteImport-Diu5dDIY.js +622 -0
- package/dist/CommandPaletteImport-Diu5dDIY.js.map +1 -0
- package/dist/Cookies-DbOKTi1f.js +284 -0
- package/dist/Cookies-DbOKTi1f.js.map +1 -0
- package/dist/DataTable-BqbZKW3K.js +62 -0
- package/dist/DataTable-BqbZKW3K.js.map +1 -0
- package/dist/DataTableHeader-DJVB0jCZ.js +21 -0
- package/dist/DataTableHeader-DJVB0jCZ.js.map +1 -0
- package/dist/DataTableInput-yaU5g-kP.js +166 -0
- package/dist/DataTableInput-yaU5g-kP.js.map +1 -0
- package/dist/DataTableRow-c3XveEUO.js +57 -0
- package/dist/DataTableRow-c3XveEUO.js.map +1 -0
- package/dist/DeleteSidebarListElement-C-p87d03.js +78 -0
- package/dist/DeleteSidebarListElement-C-p87d03.js.map +1 -0
- package/dist/EditSidebarListElement-CodWPnM6.js +32 -0
- package/dist/EditSidebarListElement-CodWPnM6.js.map +1 -0
- package/dist/Editor-BomsGWHx.js +909 -0
- package/dist/Editor-BomsGWHx.js.map +1 -0
- package/dist/EmptyState-Cnm7hGW5.js +46 -0
- package/dist/EmptyState-Cnm7hGW5.js.map +1 -0
- package/dist/Environment-DJatRQIg.js +416 -0
- package/dist/Environment-DJatRQIg.js.map +1 -0
- package/dist/EnvironmentModal-DBEJ4Kzj.js +288 -0
- package/dist/EnvironmentModal-DBEJ4Kzj.js.map +1 -0
- package/dist/Form-CSKzyHGO.js +83 -0
- package/dist/Form-CSKzyHGO.js.map +1 -0
- package/dist/HttpMethod-rnWEgC3T.js +78 -0
- package/dist/HttpMethod-rnWEgC3T.js.map +1 -0
- package/dist/IconSelector-BDC_GQXv.js +67 -0
- package/dist/IconSelector-BDC_GQXv.js.map +1 -0
- package/dist/ImportCollection-DfX1UQ5u.js +804 -0
- package/dist/ImportCollection-DfX1UQ5u.js.map +1 -0
- package/dist/IntegrationLogo-B9EDW8db.js +51 -0
- package/dist/IntegrationLogo-B9EDW8db.js.map +1 -0
- package/dist/MainLayout-BEFMl1ud.js +281 -0
- package/dist/MainLayout-BEFMl1ud.js.map +1 -0
- package/dist/Modal-sQ9vH6MN.js +67 -0
- package/dist/Modal-sQ9vH6MN.js.map +1 -0
- package/dist/ModalClientContainer-qHsZi4wQ.js +65 -0
- package/dist/ModalClientContainer-qHsZi4wQ.js.map +1 -0
- package/dist/Request-gscRsGQ8.js +212 -0
- package/dist/Request-gscRsGQ8.js.map +1 -0
- package/dist/RequestAuth-BzBfIysT.js +989 -0
- package/dist/RequestAuth-BzBfIysT.js.map +1 -0
- package/dist/RequestRoot-3Bj8JZD-.js +1611 -0
- package/dist/RequestRoot-3Bj8JZD-.js.map +1 -0
- package/dist/RequestSection-HhdJj9hW.js +1582 -0
- package/dist/RequestSection-HhdJj9hW.js.map +1 -0
- package/dist/ResponseSection-DMJ0tw8E.js +949 -0
- package/dist/ResponseSection-DMJ0tw8E.js.map +1 -0
- package/dist/ScalarAsciiArt-BjuSnj8e.js +45 -0
- package/dist/ScalarAsciiArt-BjuSnj8e.js.map +1 -0
- package/dist/SectionFilter-hrtoRLwj.js +99 -0
- package/dist/SectionFilter-hrtoRLwj.js.map +1 -0
- package/dist/Server-DnA_BzPS.js +303 -0
- package/dist/Server-DnA_BzPS.js.map +1 -0
- package/dist/ServerVariablesForm-BRZ9XC8o.js +145 -0
- package/dist/ServerVariablesForm-BRZ9XC8o.js.map +1 -0
- package/dist/Settings-CYZzdJPO.js +347 -0
- package/dist/Settings-CYZzdJPO.js.map +1 -0
- package/dist/Sidebar-C6AdX6-N.js +73 -0
- package/dist/Sidebar-C6AdX6-N.js.map +1 -0
- package/dist/SidebarButton-BAagdMDe.js +37 -0
- package/dist/SidebarButton-BAagdMDe.js.map +1 -0
- package/dist/SidebarListElement-BfTPiihc.js +232 -0
- package/dist/SidebarListElement-BfTPiihc.js.map +1 -0
- package/dist/TheCommandPalette-Dl9TAeke.js +204 -0
- package/dist/TheCommandPalette-Dl9TAeke.js.map +1 -0
- package/dist/ValueEmitter-QYkZ9Hdc.js +20 -0
- package/dist/ValueEmitter-QYkZ9Hdc.js.map +1 -0
- package/dist/ViewLayout-BOXN0IYo.js +17 -0
- package/dist/ViewLayout-BOXN0IYo.js.map +1 -0
- package/dist/ViewLayoutCollapse-CiTb-Uml.js +86 -0
- package/dist/ViewLayoutCollapse-CiTb-Uml.js.map +1 -0
- package/dist/ViewLayoutContent-CvMoJYPF.js +13 -0
- package/dist/ViewLayoutContent-CvMoJYPF.js.map +1 -0
- package/dist/ViewLayoutSection-mUqKbQry.js +23 -0
- package/dist/ViewLayoutSection-mUqKbQry.js.map +1 -0
- package/dist/WatchModeToggle-D_eAiTWJ.js +41 -0
- package/dist/WatchModeToggle-D_eAiTWJ.js.map +1 -0
- package/dist/_plugin-vue_export-helper-BmmBcIzD.js +8 -0
- package/dist/analytics-BZimCWcw.js +7 -0
- package/dist/analytics-BZimCWcw.js.map +1 -0
- package/dist/build-request-security-BQjNr2MD.js +41 -0
- package/dist/build-request-security-BQjNr2MD.js.map +1 -0
- package/dist/code-input-iq-moLxi.js +775 -0
- package/dist/code-input-iq-moLxi.js.map +1 -0
- package/dist/components/AddressBar/AddressBar.vue.d.ts +1 -1
- package/dist/components/AddressBar/index.d.ts +1 -1
- package/dist/components/AddressBar/index.js +5 -4
- package/dist/components/CodeInput/CodeInput.vue.d.ts +1 -1
- package/dist/components/CodeInput/codeVariableWidget.d.ts +1 -1
- package/dist/components/CodeInput/index.d.ts +1 -1
- package/dist/components/CodeInput/index.js +2 -4
- package/dist/components/CommandPalette/index.d.ts +1 -1
- package/dist/components/CommandPalette/index.js +3 -4
- package/dist/components/DataTable/DataTableInput.vue.d.ts +2 -2
- package/dist/components/DataTable/index.d.ts +8 -8
- package/dist/components/DataTable/index.js +6 -18
- package/dist/components/Form/LabelInput.vue.d.ts +1 -1
- package/dist/components/HttpMethod/index.d.ts +1 -1
- package/dist/components/HttpMethod/index.js +2 -4
- package/dist/components/ImportCollection/index.d.ts +1 -1
- package/dist/components/ImportCollection/index.js +2 -4
- package/dist/components/ImportCollection/utils/import-collection.d.ts +1 -1
- package/dist/components/ImportCollection/utils/workspace-store-is-empty.d.ts +1 -1
- package/dist/components/Server/ServerVariablesForm.vue.d.ts +1 -1
- package/dist/components/Server/index.d.ts +3 -3
- package/dist/components/Server/index.js +3 -8
- package/dist/components/Sidebar/index.d.ts +1 -1
- package/dist/components/Sidebar/index.js +2 -4
- package/dist/components/ViewLayout/index.d.ts +1 -1
- package/dist/components/ViewLayout/index.js +2 -4
- package/dist/components/index.d.ts +3 -3
- package/dist/components/index.js +7 -8
- package/dist/components-CSxJTn6F.js +183 -0
- package/dist/components-CSxJTn6F.js.map +1 -0
- package/dist/components-ChixwQhN.js +61 -0
- package/dist/components-ChixwQhN.js.map +1 -0
- package/dist/computer-D7VW3Ruy.js +562 -0
- package/dist/computer-D7VW3Ruy.js.map +1 -0
- package/dist/consts-CyGRb9dl.js +318 -0
- package/dist/consts-CyGRb9dl.js.map +1 -0
- package/dist/curl-nbw1OxbV.js +54 -0
- package/dist/curl-nbw1OxbV.js.map +1 -0
- package/dist/data-table-PL7e8NRO.js +282 -0
- package/dist/data-table-PL7e8NRO.js.map +1 -0
- package/dist/editor-BZ_J0eze.js +466 -0
- package/dist/editor-BZ_J0eze.js.map +1 -0
- package/dist/environments-ByLK9lnC.js +592 -0
- package/dist/environments-ByLK9lnC.js.map +1 -0
- package/dist/formatters-DOGXZq9R.js +36 -0
- package/dist/formatters-DOGXZq9R.js.map +1 -0
- package/dist/forms-CZX6cFDS.js +42 -0
- package/dist/forms-CZX6cFDS.js.map +1 -0
- package/dist/get-active-environment-CkxyQ1dM.js +19 -0
- package/dist/get-active-environment-CkxyQ1dM.js.map +1 -0
- package/dist/get-resolved-url-BUCwrBzc.js +30 -0
- package/dist/get-resolved-url-BUCwrBzc.js.map +1 -0
- package/dist/get-server-url-o3On8CEr.js +32 -0
- package/dist/get-server-url-o3On8CEr.js.map +1 -0
- package/dist/get-servers-B_WNlQWB.js +106 -0
- package/dist/get-servers-B_WNlQWB.js.map +1 -0
- package/dist/get-snippet-DBRUSfZ2.js +39 -0
- package/dist/get-snippet-DBRUSfZ2.js.map +1 -0
- package/dist/global-cookies-D3ZS9ON3.js +184 -0
- package/dist/global-cookies-D3ZS9ON3.js.map +1 -0
- package/dist/hooks/index.d.ts +4 -4
- package/dist/hooks/index.js +3 -11
- package/dist/hooks/useSidebar.d.ts +1 -1
- package/dist/hooks-BvZxH4XB.js +80 -0
- package/dist/hooks-BvZxH4XB.js.map +1 -0
- package/dist/index.d.ts +3 -3
- package/dist/index.js +8 -12
- package/dist/layout-BWiL7dfb.js +81 -0
- package/dist/layout-BWiL7dfb.js.map +1 -0
- package/dist/layouts/App/create-api-client-app.d.ts +9 -9
- package/dist/layouts/App/index.d.ts +2 -2
- package/dist/layouts/App/index.js +5 -7
- package/dist/layouts/Modal/create-api-client-modal.d.ts +1 -1
- package/dist/layouts/Modal/index.d.ts +2 -2
- package/dist/layouts/Modal/index.js +3 -4
- package/dist/layouts/Web/create-api-client-web.d.ts +9 -9
- package/dist/layouts/Web/index.d.ts +2 -2
- package/dist/layouts/Web/index.js +101 -6
- package/dist/layouts/Web/index.js.map +1 -0
- package/dist/libs/create-client.d.ts +9 -9
- package/dist/libs/create-client.d.ts.map +1 -1
- package/dist/libs/environment-parser.d.ts +1 -1
- package/dist/libs/get-request-uid-by-path-method.d.ts +1 -1
- package/dist/libs/hot-keys.d.ts +1 -1
- package/dist/libs/importers/index.d.ts +1 -1
- package/dist/libs/importers/index.js +2 -4
- package/dist/libs/index.d.ts +15 -15
- package/dist/libs/index.js +6 -45
- package/dist/libs/local-storage.d.ts +1 -1
- package/dist/libs/send-request/create-request-operation.d.ts +3 -3
- package/dist/libs/send-request/index.d.ts +3 -3
- package/dist/libs/send-request/index.js +3 -8
- package/dist/libs-spbv4P0g.js +249 -0
- package/dist/libs-spbv4P0g.js.map +1 -0
- package/dist/monacoeditorwork/json.worker.bundle.js +8 -8
- package/dist/monacoeditorwork/yaml.worker.bundle.js +151 -151
- package/dist/operation-block-BnMIKAOh.js +1624 -0
- package/dist/operation-block-BnMIKAOh.js.map +1 -0
- package/dist/operation-code-sample-ZUTueV3v.js +1726 -0
- package/dist/operation-code-sample-ZUTueV3v.js.map +1 -0
- package/dist/parse-curl-BtypQT3D.js +106 -0
- package/dist/parse-curl-BtypQT3D.js.map +1 -0
- package/dist/plugins/hooks/usePluginManager.d.ts +1 -1
- package/dist/plugins/index.d.ts +2 -2
- package/dist/plugins/index.js +2 -7
- package/dist/plugins/plugin-manager.d.ts +10 -4
- package/dist/plugins/plugin-manager.d.ts.map +1 -1
- package/dist/plugins-B52hCIyZ.js +50 -0
- package/dist/plugins-B52hCIyZ.js.map +1 -0
- package/dist/rabbitjump-CMZXAR6d.js +9 -0
- package/dist/rabbitjump-CMZXAR6d.js.map +1 -0
- package/dist/request-block-DwsGy64Q.js +1466 -0
- package/dist/request-block-DwsGy64Q.js.map +1 -0
- package/dist/resize-D2IYvVdh.js +114 -0
- package/dist/resize-D2IYvVdh.js.map +1 -0
- package/dist/response-block-DmkaDZYs.js +1188 -0
- package/dist/response-block-DmkaDZYs.js.map +1 -0
- package/dist/scalar-address-bar-block--Vs6IBU1.js +425 -0
- package/dist/scalar-address-bar-block--Vs6IBU1.js.map +1 -0
- package/dist/scalar-auth-selector-block-DI3DLag9.js +1886 -0
- package/dist/scalar-auth-selector-block-DI3DLag9.js.map +1 -0
- package/dist/search-CmsQQkjn.js +151 -0
- package/dist/search-CmsQQkjn.js.map +1 -0
- package/dist/send-request-BsTfRiBC.js +348 -0
- package/dist/send-request-BsTfRiBC.js.map +1 -0
- package/dist/server-tcI-OCyx.js +140 -0
- package/dist/server-tcI-OCyx.js.map +1 -0
- package/dist/set-request-cookies-BJJhsU4A.js +88 -0
- package/dist/set-request-cookies-BJJhsU4A.js.map +1 -0
- package/dist/settings-BKk_1lcH.js +455 -0
- package/dist/settings-BKk_1lcH.js.map +1 -0
- package/dist/sidebar-ceSbYmnt.js +217 -0
- package/dist/sidebar-ceSbYmnt.js.map +1 -0
- package/dist/store/collections.d.ts +1 -1
- package/dist/store/environment.d.ts +1 -1
- package/dist/store/events.d.ts +8 -8
- package/dist/store/import-spec.d.ts +2 -2
- package/dist/store/index.d.ts +2 -2
- package/dist/store/index.js +2 -10
- package/dist/store/request-example.d.ts +1 -1
- package/dist/store/requests.d.ts +1 -1
- package/dist/store/security-schemes.d.ts +1 -1
- package/dist/store/servers.d.ts +1 -1
- package/dist/store/store.d.ts +7 -7
- package/dist/store/tags.d.ts +1 -1
- package/dist/store/workspace.d.ts +1 -1
- package/dist/store-DpSUVhjp.js +1512 -0
- package/dist/store-DpSUVhjp.js.map +1 -0
- package/dist/string-template-sS5PtY6T.js +64 -0
- package/dist/string-template-sS5PtY6T.js.map +1 -0
- package/dist/style.css +10372 -1
- package/dist/types/index.js +0 -1
- package/dist/use-global-hot-keys-D8Ai8Qbm.js +274 -0
- package/dist/use-global-hot-keys-D8Ai8Qbm.js.map +1 -0
- package/dist/useSidebar-DLTwHDI-.js +45 -0
- package/dist/useSidebar-DLTwHDI-.js.map +1 -0
- package/dist/v2/blocks/operation-block/OperationBlock.vue.d.ts +3 -3
- package/dist/v2/blocks/operation-block/components/Header.vue.d.ts +2 -2
- package/dist/v2/blocks/operation-block/helpers/build-request-security.d.ts +2 -2
- package/dist/v2/blocks/operation-block/helpers/build-request.d.ts +2 -2
- package/dist/v2/blocks/operation-block/helpers/build-request.d.ts.map +1 -1
- package/dist/v2/blocks/operation-block/helpers/har-to-fetch-response.d.ts +1 -1
- package/dist/v2/blocks/operation-block/helpers/send-request.d.ts +1 -1
- package/dist/v2/blocks/operation-block/index.d.ts +4 -4
- package/dist/v2/blocks/operation-block/index.js +20 -11
- package/dist/v2/blocks/operation-code-sample/components/OperationCodeSample.vue.d.ts +2 -2
- package/dist/v2/blocks/operation-code-sample/helpers/find-client.d.ts +1 -1
- package/dist/v2/blocks/operation-code-sample/helpers/generate-client-options.d.ts +1 -1
- package/dist/v2/blocks/operation-code-sample/helpers/generate-code-snippet.d.ts +2 -2
- package/dist/v2/blocks/operation-code-sample/helpers/get-clients.d.ts +2 -2
- package/dist/v2/blocks/operation-code-sample/helpers/get-secrets.d.ts +1 -1
- package/dist/v2/blocks/operation-code-sample/helpers/operation-to-har/operation-to-har.d.ts +1 -1
- package/dist/v2/blocks/operation-code-sample/helpers/operation-to-har/process-body.d.ts +1 -1
- package/dist/v2/blocks/operation-code-sample/helpers/operation-to-har/process-security-schemes.d.ts +1 -1
- package/dist/v2/blocks/operation-code-sample/index.d.ts +6 -6
- package/dist/v2/blocks/operation-code-sample/index.js +2 -16
- package/dist/v2/blocks/request-block/RequestBlock.vue.d.ts +4 -4
- package/dist/v2/blocks/request-block/components/RequestCodeSnippet.vue.d.ts +1 -1
- package/dist/v2/blocks/request-block/components/RequestParams.vue.d.ts +1 -1
- package/dist/v2/blocks/request-block/components/RequestTable.vue.d.ts +1 -1
- package/dist/v2/blocks/request-block/helpers/create-parameter-handlers.d.ts +1 -1
- package/dist/v2/blocks/request-block/helpers/get-default-headers.d.ts +3 -2
- package/dist/v2/blocks/request-block/helpers/get-default-headers.d.ts.map +1 -1
- package/dist/v2/blocks/request-block/helpers/get-form-body-rows.d.ts +1 -1
- package/dist/v2/blocks/request-block/index.d.ts +1 -1
- package/dist/v2/blocks/request-block/index.js +9 -4
- package/dist/v2/blocks/response-block/ResponseBlock.vue.d.ts +1 -1
- package/dist/v2/blocks/response-block/components/ResponseBodyPreview.vue.d.ts +1 -1
- package/dist/v2/blocks/response-block/components/ResponseEmpty.vue.d.ts +1 -1
- package/dist/v2/blocks/response-block/index.d.ts +1 -1
- package/dist/v2/blocks/response-block/index.js +6 -4
- package/dist/v2/blocks/scalar-address-bar-block/components/AddressBar.vue.d.ts +2 -2
- package/dist/v2/blocks/scalar-address-bar-block/index.d.ts +2 -2
- package/dist/v2/blocks/scalar-address-bar-block/index.js +5 -4
- package/dist/v2/blocks/scalar-auth-selector-block/components/AuthSelector.vue.d.ts +3 -3
- package/dist/v2/blocks/scalar-auth-selector-block/components/OAuth2.vue.d.ts +1 -1
- package/dist/v2/blocks/scalar-auth-selector-block/components/RequestAuthDataTable.vue.d.ts +2 -2
- 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 +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/oauth.d.ts +2 -2
- package/dist/v2/blocks/scalar-auth-selector-block/helpers/openid-discovery-to-flows.d.ts +1 -1
- package/dist/v2/blocks/scalar-auth-selector-block/index.d.ts +4 -4
- package/dist/v2/blocks/scalar-auth-selector-block/index.js +6 -8
- package/dist/v2/components/code-input/CodeInput.vue.d.ts +1 -1
- package/dist/v2/components/code-input/index.d.ts +1 -1
- package/dist/v2/components/code-input/index.js +2 -4
- package/dist/v2/components/data-table/DataTableInput.vue.d.ts +1 -1
- package/dist/v2/components/data-table/DataTableInputSelect.vue.d.ts +1 -1
- package/dist/v2/components/data-table/index.d.ts +8 -8
- package/dist/v2/components/data-table/index.js +3 -18
- package/dist/v2/components/forms/index.d.ts +1 -1
- package/dist/v2/components/forms/index.js +2 -4
- package/dist/v2/components/layout/index.d.ts +1 -1
- package/dist/v2/components/layout/index.js +2 -4
- package/dist/v2/components/modals/index.d.ts +1 -1
- package/dist/v2/components/modals/index.js +37 -3
- package/dist/v2/components/modals/index.js.map +1 -0
- package/dist/v2/components/resize/index.d.ts +2 -2
- package/dist/v2/components/resize/index.js +2 -6
- package/dist/v2/components/server/ServerDropdown.vue.d.ts +1 -1
- package/dist/v2/components/server/index.d.ts +1 -1
- package/dist/v2/components/server/index.js +2 -4
- package/dist/v2/components/sidebar/Sidebar.vue.d.ts +1 -1
- package/dist/v2/components/sidebar/index.d.ts +3 -3
- package/dist/v2/components/sidebar/index.js +3 -8
- package/dist/v2/features/app/App.vue.d.ts +4 -4
- package/dist/v2/features/app/components/AppSidebar.vue.d.ts +1 -1
- package/dist/v2/features/app/components/index.d.ts +1 -1
- package/dist/v2/features/app/components/index.js +10 -5
- package/dist/v2/features/app/helpers/create-api-client-app.d.ts +3 -3
- package/dist/v2/features/app/helpers/get-route-param.d.ts +1 -1
- package/dist/v2/features/app/helpers/routes.d.ts +5 -5
- package/dist/v2/features/app/hooks/use-theme.d.ts +1 -1
- package/dist/v2/features/app/index.d.ts +8 -8
- package/dist/v2/features/app/index.js +3161 -19
- package/dist/v2/features/app/index.js.map +1 -0
- package/dist/v2/features/collection/DocumentCollection.vue.d.ts +1 -1
- package/dist/v2/features/collection/OperationCollection.vue.d.ts +1 -1
- package/dist/v2/features/collection/WorkspaceCollection.vue.d.ts +1 -1
- package/dist/v2/features/collection/components/Authentication.vue.d.ts +4 -4
- package/dist/v2/features/collection/components/Cookies.vue.d.ts +4 -4
- package/dist/v2/features/collection/components/Editor/Editor.vue.d.ts +4 -4
- package/dist/v2/features/collection/components/Editor/index.d.ts +1 -1
- package/dist/v2/features/collection/components/Editor/index.js +2 -4
- package/dist/v2/features/collection/components/Environment.vue.d.ts +4 -4
- package/dist/v2/features/collection/components/Overview.vue.d.ts +4 -4
- package/dist/v2/features/collection/components/Servers.vue.d.ts +4 -4
- package/dist/v2/features/collection/components/Settings.vue.d.ts +4 -4
- package/dist/v2/features/collection/components/Tabs.vue.d.ts +1 -1
- package/dist/v2/features/command-palette/TheCommandPalette.vue.d.ts +1 -1
- package/dist/v2/features/command-palette/hooks/use-command-palette-state.d.ts +10 -45
- package/dist/v2/features/command-palette/hooks/use-command-palette-state.d.ts.map +1 -1
- package/dist/v2/features/command-palette/index.d.ts +2 -2
- package/dist/v2/features/command-palette/index.js +3 -6
- package/dist/v2/features/editor/helpers/json/create-json-model.d.ts +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/json-pointer-path.d.ts +1 -1
- package/dist/v2/features/editor/helpers/yaml/create-yaml-model.d.ts +1 -1
- package/dist/v2/features/editor/helpers/yaml/get-yaml-node-range-from-path.d.ts +1 -1
- package/dist/v2/features/editor/hooks/use-editor.d.ts +1 -1
- package/dist/v2/features/editor/hooks/use-json-pointer-link-support.d.ts +1 -1
- package/dist/v2/features/editor/index.d.ts +4 -4
- package/dist/v2/features/editor/index.js +2 -10
- package/dist/v2/features/environments/index.d.ts +1 -1
- package/dist/v2/features/environments/index.js +4 -4
- package/dist/v2/features/global-cookies/index.d.ts +1 -1
- package/dist/v2/features/global-cookies/index.js +4 -4
- package/dist/v2/features/modal/Modal.vue.d.ts +1 -1
- package/dist/v2/features/modal/helpers/create-api-client-modal.d.ts +2 -2
- package/dist/v2/features/modal/hooks/use-modal-sidebar.d.ts +1 -1
- package/dist/v2/features/modal/index.d.ts +3 -3
- package/dist/v2/features/modal/index.js +639 -7
- package/dist/v2/features/modal/index.js.map +1 -0
- package/dist/v2/features/modal/modal-events.d.ts +1 -1
- package/dist/v2/features/operation/Operation.vue.d.ts +2 -2
- package/dist/v2/features/operation/index.d.ts +5 -5
- package/dist/v2/features/operation/index.js +19 -12
- package/dist/v2/features/search/helpers/create-fuse-instance.d.ts +1 -1
- package/dist/v2/features/search/helpers/create-search-index.d.ts +1 -1
- package/dist/v2/features/search/index.d.ts +1 -1
- package/dist/v2/features/search/index.js +2 -4
- package/dist/v2/features/settings/index.d.ts +2 -2
- package/dist/v2/features/settings/index.js +2 -6
- package/dist/v2/helpers/get-active-proxy-url.d.ts +1 -1
- package/dist/v2/helpers/get-tab-details.d.ts +1 -1
- package/dist/v2/helpers/handle-hotkeys.d.ts +1 -1
- package/dist/v2/helpers/index.d.ts +2 -2
- package/dist/v2/helpers/index.js +3 -6
- package/dist/v2/hooks/use-global-hot-keys.d.ts +1 -1
- package/dist/views/Collection/components/EnvironmentForm.vue.d.ts +1 -1
- package/dist/views/Collection/components/MarkdownInput.vue.d.ts +1 -1
- package/dist/views/Components/CodeSnippet/CodeSnippet.vue.d.ts +1 -1
- package/dist/views/Components/CodeSnippet/helpers/get-har-request.d.ts +1 -1
- package/dist/views/Components/CodeSnippet/helpers/get-snippet.d.ts +1 -1
- package/dist/views/Components/CodeSnippet/index.d.ts +4 -4
- package/dist/views/Components/CodeSnippet/index.js +3 -10
- package/dist/views/Environment/EnvironmentVariableDropdown.vue.d.ts +1 -1
- package/dist/views/Environment/handle-drag.d.ts +1 -1
- package/dist/views/Request/Request.vue.d.ts +1 -1
- package/dist/views/Request/RequestSection/RequestAuth/OAuth2.vue.d.ts +1 -1
- package/dist/views/Request/RequestSection/RequestAuth/OAuthScopesInput.vue.d.ts +1 -1
- package/dist/views/Request/RequestSection/RequestAuth/RequestAuth.vue.d.ts +1 -1
- package/dist/views/Request/RequestSection/RequestAuth/RequestAuthDataTable.vue.d.ts +1 -1
- package/dist/views/Request/RequestSection/RequestAuth/RequestAuthDataTableInput.vue.d.ts +2 -2
- package/dist/views/Request/RequestSection/RequestAuth/RequestAuthTab.vue.d.ts +1 -1
- package/dist/views/Request/RequestSection/RequestAuth/helpers/restore-auth-from-local-storage.d.ts +1 -1
- package/dist/views/Request/RequestSection/RequestAuth/index.d.ts +3 -3
- package/dist/views/Request/RequestSection/RequestAuth/index.js +4 -8
- package/dist/views/Request/RequestSection/RequestBody.vue.d.ts +1 -1
- package/dist/views/Request/RequestSection/RequestCodeExample.vue.d.ts +1 -1
- package/dist/views/Request/RequestSection/RequestParams.vue.d.ts +1 -1
- package/dist/views/Request/RequestSection/RequestPathParams.vue.d.ts +1 -1
- package/dist/views/Request/RequestSection/RequestSection.vue.d.ts +1 -1
- package/dist/views/Request/RequestSection/RequestTable.vue.d.ts +1 -1
- package/dist/views/Request/RequestSection/helpers/update-scheme.d.ts +1 -1
- package/dist/views/Request/RequestSection/index.d.ts +2 -2
- package/dist/views/Request/RequestSection/index.js +42 -5
- package/dist/views/Request/RequestSection/index.js.map +1 -0
- package/dist/views/Request/RequestSidebarItem.vue.d.ts +1 -1
- package/dist/views/Request/RequestSidebarItemMenu.vue.d.ts +3 -3
- package/dist/views/Request/RequestSubpageHeader.vue.d.ts +1 -1
- package/dist/views/Request/ResponseSection/ResponseBodyPreview.vue.d.ts +1 -1
- package/dist/views/Request/ResponseSection/ResponseSection.vue.d.ts +1 -1
- package/dist/views/Request/ResponseSection/index.d.ts +2 -2
- package/dist/views/Request/ResponseSection/index.js +7 -6
- package/dist/views/Request/components/index.d.ts +1 -1
- package/dist/views/Request/components/index.js +2 -4
- package/dist/views/Request/consts/index.d.ts +2 -2
- package/dist/views/Request/consts/index.js +2 -10
- package/dist/views/Request/handle-drag.d.ts +2 -2
- package/dist/views/Request/libs/auth.d.ts +1 -1
- package/dist/views/Request/libs/index.d.ts +3 -3
- package/dist/views/Request/libs/index.js +3 -22
- package/dist/views/Request/libs/oauth2.d.ts +1 -1
- package/dist/views/Request/libs/watch-mode.d.ts +2 -2
- package/dist/views/Request/types/index.js +0 -1
- package/dist/watch-mode-Dbaqd9bG.js +375 -0
- package/dist/watch-mode-Dbaqd9bG.js.map +1 -0
- package/package.json +29 -33
- package/dist/_virtual/_plugin-vue_export-helper.js +0 -9
- package/dist/analytics.js +0 -9
- package/dist/assets/computer.ascii.js +0 -34
- package/dist/assets/keycap.ascii.js +0 -25
- package/dist/assets/rabbit.ascii.js +0 -11
- package/dist/assets/rabbitjump.ascii.js +0 -11
- package/dist/components/AddressBar/AddressBar.vue.js +0 -7
- package/dist/components/AddressBar/AddressBar.vue2.js +0 -160
- package/dist/components/AddressBar/AddressBarHistory.vue.js +0 -7
- package/dist/components/AddressBar/AddressBarHistory.vue2.js +0 -98
- package/dist/components/AddressBar/httpStatusCodeColors.js +0 -38
- package/dist/components/CodeInput/CodeInput.vue.js +0 -8
- package/dist/components/CodeInput/CodeInput.vue2.js +0 -209
- package/dist/components/CodeInput/codeVariableWidget.js +0 -111
- package/dist/components/CommandPalette/CommandActionForm.vue.js +0 -44
- package/dist/components/CommandPalette/CommandActionForm.vue2.js +0 -4
- package/dist/components/CommandPalette/CommandActionInput.vue.js +0 -52
- package/dist/components/CommandPalette/CommandActionInput.vue2.js +0 -4
- package/dist/components/CommandPalette/CommandPaletteCollection.vue.js +0 -80
- package/dist/components/CommandPalette/CommandPaletteCollection.vue2.js +0 -4
- package/dist/components/CommandPalette/CommandPaletteExample.vue.js +0 -116
- package/dist/components/CommandPalette/CommandPaletteExample.vue2.js +0 -4
- package/dist/components/CommandPalette/CommandPaletteImport.vue.js +0 -217
- package/dist/components/CommandPalette/CommandPaletteImport.vue2.js +0 -4
- package/dist/components/CommandPalette/CommandPaletteImportCurl.vue.js +0 -7
- package/dist/components/CommandPalette/CommandPaletteImportCurl.vue2.js +0 -136
- package/dist/components/CommandPalette/CommandPaletteServer.vue.js +0 -123
- package/dist/components/CommandPalette/CommandPaletteServer.vue2.js +0 -4
- package/dist/components/CommandPalette/CommandPaletteTag.vue.js +0 -84
- package/dist/components/CommandPalette/CommandPaletteTag.vue2.js +0 -4
- package/dist/components/CommandPalette/CommandPaletteWorkspace.vue.js +0 -48
- package/dist/components/CommandPalette/CommandPaletteWorkspace.vue2.js +0 -4
- package/dist/components/CommandPalette/TheCommandPalette.vue.js +0 -7
- package/dist/components/CommandPalette/TheCommandPalette.vue2.js +0 -305
- package/dist/components/CommandPalette/WatchModeToggle.vue.js +0 -39
- package/dist/components/CommandPalette/WatchModeToggle.vue2.js +0 -4
- package/dist/components/DataTable/DataTable.vue.js +0 -38
- package/dist/components/DataTable/DataTable.vue2.js +0 -4
- package/dist/components/DataTable/DataTableCell.vue.js +0 -26
- package/dist/components/DataTable/DataTableCell.vue2.js +0 -4
- package/dist/components/DataTable/DataTableCheckbox.vue.js +0 -53
- package/dist/components/DataTable/DataTableCheckbox.vue2.js +0 -4
- package/dist/components/DataTable/DataTableHeader.vue.js +0 -18
- package/dist/components/DataTable/DataTableHeader.vue2.js +0 -4
- package/dist/components/DataTable/DataTableInput.vue.js +0 -7
- package/dist/components/DataTable/DataTableInput.vue2.js +0 -124
- package/dist/components/DataTable/DataTableInputSelect.vue.js +0 -146
- package/dist/components/DataTable/DataTableInputSelect.vue2.js +0 -4
- package/dist/components/DataTable/DataTableRow.vue.js +0 -12
- package/dist/components/DataTable/DataTableText.vue.js +0 -23
- package/dist/components/DataTable/DataTableText.vue2.js +0 -4
- package/dist/components/EmptyState.vue.js +0 -7
- package/dist/components/EmptyState.vue2.js +0 -42
- package/dist/components/EnvironmentSelector/EnvironmentSelector.vue.js +0 -113
- package/dist/components/EnvironmentSelector/EnvironmentSelector.vue2.js +0 -4
- package/dist/components/Form/Form.vue.js +0 -83
- package/dist/components/Form/Form.vue2.js +0 -4
- package/dist/components/Form/LabelInput.vue.js +0 -7
- package/dist/components/Form/LabelInput.vue2.js +0 -42
- package/dist/components/HelpfulLink.vue.js +0 -20
- package/dist/components/HelpfulLink.vue2.js +0 -4
- package/dist/components/HttpMethod/HttpMethod.vue.js +0 -7
- package/dist/components/HttpMethod/HttpMethod.vue2.js +0 -62
- package/dist/components/IconSelector.vue.js +0 -75
- package/dist/components/IconSelector.vue2.js +0 -4
- package/dist/components/ImportCollection/DropEventListener.vue.js +0 -81
- package/dist/components/ImportCollection/DropEventListener.vue2.js +0 -4
- package/dist/components/ImportCollection/ImportCollectionListener.vue.js +0 -77
- package/dist/components/ImportCollection/ImportCollectionListener.vue2.js +0 -4
- package/dist/components/ImportCollection/ImportCollectionModal.vue.js +0 -208
- package/dist/components/ImportCollection/ImportCollectionModal.vue3.js +0 -5
- package/dist/components/ImportCollection/ImportNowButton.vue.js +0 -73
- package/dist/components/ImportCollection/ImportNowButton.vue2.js +0 -4
- package/dist/components/ImportCollection/IntegrationLogo.vue.js +0 -44
- package/dist/components/ImportCollection/IntegrationLogo.vue2.js +0 -4
- package/dist/components/ImportCollection/PasteEventListener.vue.js +0 -24
- package/dist/components/ImportCollection/PasteEventListener.vue2.js +0 -4
- package/dist/components/ImportCollection/PrefetchError.vue.js +0 -27
- package/dist/components/ImportCollection/PrefetchError.vue2.js +0 -4
- package/dist/components/ImportCollection/UrlQueryParameterChecker.vue.js +0 -20
- package/dist/components/ImportCollection/UrlQueryParameterChecker.vue2.js +0 -4
- package/dist/components/ImportCollection/WorkspaceSelector.vue.js +0 -134
- package/dist/components/ImportCollection/WorkspaceSelector.vue2.js +0 -4
- package/dist/components/ImportCollection/hooks/useUrlPrefetcher.js +0 -106
- package/dist/components/ImportCollection/utils/get-openapi-version.js +0 -20
- package/dist/components/ImportCollection/utils/import-collection.js +0 -29
- package/dist/components/ImportCollection/utils/is-document.js +0 -9
- package/dist/components/ImportCollection/utils/is-url.js +0 -9
- package/dist/components/ImportCollection/utils/workspace-store-is-empty.js +0 -7
- package/dist/components/OpenApiClientButton.vue.js +0 -7
- package/dist/components/OpenApiClientButton.vue2.js +0 -48
- package/dist/components/ScalarAsciiArt.vue.js +0 -7
- package/dist/components/ScalarAsciiArt.vue2.js +0 -37
- package/dist/components/Search/useSearch.js +0 -78
- package/dist/components/SectionFilter.vue.js +0 -7
- package/dist/components/SectionFilter.vue2.js +0 -64
- package/dist/components/SectionFilterButton.vue.js +0 -23
- package/dist/components/SectionFilterButton.vue2.js +0 -4
- package/dist/components/Server/ServerDropdown.vue.js +0 -132
- package/dist/components/Server/ServerDropdown.vue2.js +0 -4
- package/dist/components/Server/ServerDropdownItem.vue.js +0 -7
- package/dist/components/Server/ServerDropdownItem.vue2.js +0 -84
- package/dist/components/Server/ServerSelector.vue.js +0 -82
- package/dist/components/Server/ServerSelector.vue2.js +0 -4
- package/dist/components/Server/ServerVariablesForm.vue.js +0 -49
- package/dist/components/Server/ServerVariablesForm.vue2.js +0 -4
- package/dist/components/Server/ServerVariablesSelect.vue.js +0 -54
- package/dist/components/Server/ServerVariablesSelect.vue2.js +0 -4
- package/dist/components/Server/ServerVariablesTextbox.vue.js +0 -29
- package/dist/components/Server/ServerVariablesTextbox.vue2.js +0 -4
- package/dist/components/SideNav/DownloadAppButton.vue.js +0 -7
- package/dist/components/SideNav/DownloadAppButton.vue2.js +0 -33
- package/dist/components/SideNav/SideHelp.vue.js +0 -127
- package/dist/components/SideNav/SideHelp.vue2.js +0 -4
- package/dist/components/SideNav/SideNav.vue.js +0 -96
- package/dist/components/SideNav/SideNav.vue2.js +0 -4
- package/dist/components/SideNav/SideNavGroup.vue.js +0 -16
- package/dist/components/SideNav/SideNavGroup.vue2.js +0 -4
- package/dist/components/SideNav/SideNavLink.vue.js +0 -39
- package/dist/components/SideNav/SideNavLink.vue2.js +0 -4
- package/dist/components/SideNav/SideNavRouterLink.vue.js +0 -27
- package/dist/components/SideNav/SideNavRouterLink.vue2.js +0 -4
- package/dist/components/Sidebar/Actions/DeleteSidebarListElement.vue.js +0 -30
- package/dist/components/Sidebar/Actions/DeleteSidebarListElement.vue2.js +0 -4
- package/dist/components/Sidebar/Actions/EditSidebarListCollection.vue.js +0 -58
- package/dist/components/Sidebar/Actions/EditSidebarListCollection.vue2.js +0 -4
- package/dist/components/Sidebar/Actions/EditSidebarListElement.vue.js +0 -29
- package/dist/components/Sidebar/Actions/EditSidebarListElement.vue2.js +0 -4
- package/dist/components/Sidebar/Actions/SidebarListElementForm.vue.js +0 -46
- package/dist/components/Sidebar/Actions/SidebarListElementForm.vue2.js +0 -4
- package/dist/components/Sidebar/Sidebar.vue.js +0 -7
- package/dist/components/Sidebar/Sidebar.vue2.js +0 -63
- package/dist/components/Sidebar/SidebarButton.vue.js +0 -33
- package/dist/components/Sidebar/SidebarButton.vue2.js +0 -4
- package/dist/components/Sidebar/SidebarList.vue.js +0 -12
- package/dist/components/Sidebar/SidebarListElement.vue.js +0 -8
- package/dist/components/Sidebar/SidebarListElement.vue2.js +0 -94
- package/dist/components/Sidebar/SidebarListElementActions.vue.js +0 -86
- package/dist/components/Sidebar/SidebarListElementActions.vue2.js +0 -4
- package/dist/components/Sidebar/SidebarToggle.vue.js +0 -49
- package/dist/components/Sidebar/SidebarToggle.vue2.js +0 -4
- package/dist/components/TopNav/TopNav.vue.js +0 -210
- package/dist/components/TopNav/TopNav.vue2.js +0 -4
- package/dist/components/TopNav/TopNavItem.vue.js +0 -7
- package/dist/components/TopNav/TopNavItem.vue2.js +0 -138
- package/dist/components/ViewLayout/ViewLayout.vue.js +0 -18
- package/dist/components/ViewLayout/ViewLayout.vue2.js +0 -4
- package/dist/components/ViewLayout/ViewLayoutCollapse.vue.js +0 -92
- package/dist/components/ViewLayout/ViewLayoutCollapse.vue2.js +0 -4
- package/dist/components/ViewLayout/ViewLayoutContent.vue.js +0 -12
- package/dist/components/ViewLayout/ViewLayoutSection.vue.js +0 -23
- package/dist/components/ViewLayout/ViewLayoutSection.vue2.js +0 -4
- package/dist/constants.js +0 -40
- package/dist/data/httpHeaders.js +0 -537
- package/dist/hooks/useAnalytics.js +0 -11
- package/dist/hooks/useClientConfig.js +0 -7
- package/dist/hooks/useFileDialog.js +0 -21
- package/dist/hooks/useLayout.js +0 -8
- package/dist/hooks/useResponseBody.js +0 -20
- package/dist/hooks/useSidebar.js +0 -28
- package/dist/layouts/App/ApiClientApp.vue.js +0 -70
- package/dist/layouts/App/ApiClientApp.vue3.js +0 -5
- package/dist/layouts/App/MainLayout.vue.js +0 -26
- package/dist/layouts/App/MainLayout.vue2.js +0 -4
- package/dist/layouts/App/create-api-client-app.js +0 -35
- package/dist/layouts/App/hotkeys.js +0 -21
- package/dist/layouts/Modal/ApiClientModal.vue.js +0 -30
- package/dist/layouts/Modal/ApiClientModal.vue2.js +0 -4
- package/dist/layouts/Modal/create-api-client-modal.js +0 -32
- package/dist/layouts/Web/ApiClientWeb.vue.js +0 -64
- package/dist/layouts/Web/ApiClientWeb.vue3.js +0 -5
- package/dist/layouts/Web/create-api-client-web.js +0 -32
- package/dist/libs/create-client.js +0 -189
- package/dist/libs/electron.js +0 -4
- package/dist/libs/env-helpers.js +0 -6
- package/dist/libs/environment-parser.js +0 -18
- package/dist/libs/errors.js +0 -16
- package/dist/libs/event-bus.js +0 -32
- package/dist/libs/extractAttachmentFilename.js +0 -18
- package/dist/libs/find-request.js +0 -23
- package/dist/libs/formatters.js +0 -10
- package/dist/libs/get-request-uid-by-path-method.js +0 -18
- package/dist/libs/getOpenApiDocumentDetails.js +0 -40
- package/dist/libs/hot-keys.js +0 -44
- package/dist/libs/importers/curl.js +0 -53
- package/dist/libs/isUrl.js +0 -7
- package/dist/libs/local-storage.js +0 -41
- package/dist/libs/normalize-headers.js +0 -27
- package/dist/libs/parse-curl.js +0 -59
- package/dist/libs/postman.js +0 -37
- package/dist/libs/send-request/build-request-security.js +0 -35
- package/dist/libs/send-request/create-fetch-body.js +0 -25
- package/dist/libs/send-request/create-fetch-headers.js +0 -11
- package/dist/libs/send-request/create-fetch-query-params.js +0 -33
- package/dist/libs/send-request/create-request-operation.js +0 -140
- package/dist/libs/send-request/decode-buffer.js +0 -9
- package/dist/libs/send-request/set-request-cookies.js +0 -58
- package/dist/libs/string-template.js +0 -42
- package/dist/libs/validate-parameters.js +0 -16
- package/dist/plugins/hooks/usePluginManager.js +0 -10
- package/dist/plugins/plugin-manager.js +0 -26
- package/dist/routes.js +0 -210
- package/dist/store/active-entities.js +0 -118
- package/dist/store/collections.js +0 -73
- package/dist/store/cookies.js +0 -13
- package/dist/store/environment.js +0 -32
- package/dist/store/events.js +0 -35
- package/dist/store/import-spec.js +0 -55
- package/dist/store/request-example.js +0 -43
- package/dist/store/requests.js +0 -97
- package/dist/store/router-params.js +0 -22
- package/dist/store/security-schemes.js +0 -55
- package/dist/store/servers.js +0 -39
- package/dist/store/store.js +0 -144
- package/dist/store/tags.js +0 -45
- package/dist/store/workspace.js +0 -52
- package/dist/v2/blocks/operation-block/OperationBlock.vue.js +0 -242
- package/dist/v2/blocks/operation-block/OperationBlock.vue2.js +0 -4
- package/dist/v2/blocks/operation-block/components/Header.vue.js +0 -7
- package/dist/v2/blocks/operation-block/components/Header.vue2.js +0 -100
- package/dist/v2/blocks/operation-block/helpers/build-request-body.js +0 -40
- package/dist/v2/blocks/operation-block/helpers/build-request-cookie-header.js +0 -31
- package/dist/v2/blocks/operation-block/helpers/build-request-parameters.js +0 -107
- package/dist/v2/blocks/operation-block/helpers/build-request-security.js +0 -46
- package/dist/v2/blocks/operation-block/helpers/build-request.js +0 -70
- package/dist/v2/blocks/operation-block/helpers/de-serialize-parameter.js +0 -25
- package/dist/v2/blocks/operation-block/helpers/decode-buffer.js +0 -9
- package/dist/v2/blocks/operation-block/helpers/filter-global-cookies.js +0 -14
- package/dist/v2/blocks/operation-block/helpers/get-cookie-header-keys.js +0 -4
- package/dist/v2/blocks/operation-block/helpers/get-environment-variables.js +0 -7
- package/dist/v2/blocks/operation-block/helpers/get-example.js +0 -36
- package/dist/v2/blocks/operation-block/helpers/get-resolved-url.js +0 -17
- package/dist/v2/blocks/operation-block/helpers/get-selected-body-content-type.js +0 -4
- package/dist/v2/blocks/operation-block/helpers/get-server-url.js +0 -12
- package/dist/v2/blocks/operation-block/helpers/har-to-fetch-request.js +0 -31
- package/dist/v2/blocks/operation-block/helpers/har-to-fetch-response.js +0 -43
- package/dist/v2/blocks/operation-block/helpers/response-cache.js +0 -12
- package/dist/v2/blocks/operation-block/helpers/send-request.js +0 -122
- package/dist/v2/blocks/operation-block/helpers/serialize-parameter.js +0 -49
- package/dist/v2/blocks/operation-block/helpers/validate-path-parameters.js +0 -17
- package/dist/v2/blocks/operation-code-sample/components/ExamplePicker.vue.js +0 -56
- package/dist/v2/blocks/operation-code-sample/components/ExamplePicker.vue2.js +0 -4
- package/dist/v2/blocks/operation-code-sample/components/HttpMethod.vue.js +0 -30
- package/dist/v2/blocks/operation-code-sample/components/HttpMethod.vue2.js +0 -4
- package/dist/v2/blocks/operation-code-sample/components/OperationCodeSample.vue.js +0 -7
- package/dist/v2/blocks/operation-code-sample/components/OperationCodeSample.vue2.js +0 -227
- package/dist/v2/blocks/operation-code-sample/helpers/find-client.js +0 -22
- package/dist/v2/blocks/operation-code-sample/helpers/generate-client-options.js +0 -27
- package/dist/v2/blocks/operation-code-sample/helpers/generate-code-snippet.js +0 -40
- package/dist/v2/blocks/operation-code-sample/helpers/get-clients.js +0 -20
- package/dist/v2/blocks/operation-code-sample/helpers/get-custom-code-samples.js +0 -4
- package/dist/v2/blocks/operation-code-sample/helpers/get-example-from-schema.js +0 -302
- package/dist/v2/blocks/operation-code-sample/helpers/get-resolved-ref-deep.js +0 -28
- package/dist/v2/blocks/operation-code-sample/helpers/get-secrets.js +0 -10
- package/dist/v2/blocks/operation-code-sample/helpers/operation-to-har/operation-to-har.js +0 -67
- package/dist/v2/blocks/operation-code-sample/helpers/operation-to-har/process-body.js +0 -66
- package/dist/v2/blocks/operation-code-sample/helpers/operation-to-har/process-parameters.js +0 -172
- package/dist/v2/blocks/operation-code-sample/helpers/operation-to-har/process-security-schemes.js +0 -55
- package/dist/v2/blocks/operation-code-sample/helpers/operation-to-har/process-server-url.js +0 -18
- package/dist/v2/blocks/request-block/RequestBlock.vue.js +0 -7
- package/dist/v2/blocks/request-block/RequestBlock.vue2.js +0 -347
- package/dist/v2/blocks/request-block/components/RequestBody.vue.js +0 -7
- package/dist/v2/blocks/request-block/components/RequestBody.vue2.js +0 -191
- package/dist/v2/blocks/request-block/components/RequestBodyForm.vue.js +0 -84
- package/dist/v2/blocks/request-block/components/RequestBodyForm.vue2.js +0 -4
- package/dist/v2/blocks/request-block/components/RequestCodeSnippet.vue.js +0 -135
- package/dist/v2/blocks/request-block/components/RequestCodeSnippet.vue2.js +0 -4
- package/dist/v2/blocks/request-block/components/RequestParams.vue.js +0 -78
- package/dist/v2/blocks/request-block/components/RequestParams.vue2.js +0 -4
- package/dist/v2/blocks/request-block/components/RequestTable.vue.js +0 -7
- package/dist/v2/blocks/request-block/components/RequestTable.vue2.js +0 -74
- package/dist/v2/blocks/request-block/components/RequestTableRow.vue.js +0 -204
- package/dist/v2/blocks/request-block/components/RequestTableRow.vue2.js +0 -4
- package/dist/v2/blocks/request-block/components/RequestTableTooltip.vue.js +0 -7
- package/dist/v2/blocks/request-block/components/RequestTableTooltip.vue2.js +0 -63
- package/dist/v2/blocks/request-block/helpers/create-parameter-handlers.js +0 -55
- package/dist/v2/blocks/request-block/helpers/files.js +0 -7
- package/dist/v2/blocks/request-block/helpers/get-default-headers.js +0 -26
- package/dist/v2/blocks/request-block/helpers/get-form-body-rows.js +0 -29
- package/dist/v2/blocks/request-block/helpers/get-parameter-content.js +0 -9
- package/dist/v2/blocks/request-block/helpers/get-parameter-schema.js +0 -6
- package/dist/v2/blocks/request-block/helpers/get-request-body-example.js +0 -16
- package/dist/v2/blocks/request-block/helpers/group-by.js +0 -10
- package/dist/v2/blocks/request-block/helpers/is-param-disabled.js +0 -7
- package/dist/v2/blocks/request-block/helpers/validate-parameter.js +0 -32
- package/dist/v2/blocks/response-block/ResponseBlock.vue.js +0 -7
- package/dist/v2/blocks/response-block/ResponseBlock.vue2.js +0 -180
- package/dist/v2/blocks/response-block/components/Headers.vue.js +0 -96
- package/dist/v2/blocks/response-block/components/Headers.vue2.js +0 -4
- package/dist/v2/blocks/response-block/components/ResponseBody.vue.js +0 -7
- package/dist/v2/blocks/response-block/components/ResponseBody.vue2.js +0 -87
- package/dist/v2/blocks/response-block/components/ResponseBodyDownload.vue.js +0 -36
- package/dist/v2/blocks/response-block/components/ResponseBodyDownload.vue2.js +0 -4
- package/dist/v2/blocks/response-block/components/ResponseBodyInfo.vue.js +0 -14
- package/dist/v2/blocks/response-block/components/ResponseBodyPreview.vue.js +0 -7
- package/dist/v2/blocks/response-block/components/ResponseBodyPreview.vue2.js +0 -63
- package/dist/v2/blocks/response-block/components/ResponseBodyRaw.vue.js +0 -7
- package/dist/v2/blocks/response-block/components/ResponseBodyRaw.vue2.js +0 -41
- package/dist/v2/blocks/response-block/components/ResponseBodyStreaming.vue.js +0 -94
- package/dist/v2/blocks/response-block/components/ResponseBodyStreaming.vue2.js +0 -4
- package/dist/v2/blocks/response-block/components/ResponseBodyToggle.vue.js +0 -25
- package/dist/v2/blocks/response-block/components/ResponseBodyToggle.vue2.js +0 -4
- package/dist/v2/blocks/response-block/components/ResponseBodyVirtual.vue.js +0 -52
- package/dist/v2/blocks/response-block/components/ResponseBodyVirtual.vue3.js +0 -5
- package/dist/v2/blocks/response-block/components/ResponseCookies.vue.js +0 -54
- package/dist/v2/blocks/response-block/components/ResponseCookies.vue2.js +0 -4
- package/dist/v2/blocks/response-block/components/ResponseEmpty.vue.js +0 -7
- package/dist/v2/blocks/response-block/components/ResponseEmpty.vue2.js +0 -79
- package/dist/v2/blocks/response-block/components/ResponseLoadingOverlay.vue.js +0 -7
- package/dist/v2/blocks/response-block/components/ResponseLoadingOverlay.vue2.js +0 -46
- package/dist/v2/blocks/response-block/components/ResponseMetaInformation.vue.js +0 -67
- package/dist/v2/blocks/response-block/components/ResponseMetaInformation.vue2.js +0 -4
- package/dist/v2/blocks/response-block/helpers/extract-filename.js +0 -18
- package/dist/v2/blocks/response-block/helpers/get-content-length.js +0 -12
- package/dist/v2/blocks/response-block/helpers/media-types.js +0 -126
- package/dist/v2/blocks/response-block/helpers/parse-set-cookie.js +0 -12
- package/dist/v2/blocks/response-block/helpers/process-response-body.js +0 -16
- package/dist/v2/blocks/scalar-address-bar-block/components/AddressBar.vue.js +0 -7
- package/dist/v2/blocks/scalar-address-bar-block/components/AddressBar.vue2.js +0 -208
- package/dist/v2/blocks/scalar-address-bar-block/components/AddressBarHistory.vue.js +0 -7
- package/dist/v2/blocks/scalar-address-bar-block/components/AddressBarHistory.vue2.js +0 -95
- package/dist/v2/blocks/scalar-address-bar-block/components/EnvironmentSelector.vue.js +0 -145
- package/dist/v2/blocks/scalar-address-bar-block/components/EnvironmentSelector.vue2.js +0 -4
- package/dist/v2/blocks/scalar-address-bar-block/components/httpStatusCodeColors.js +0 -38
- package/dist/v2/blocks/scalar-address-bar-block/hooks/use-loading-animation.js +0 -25
- package/dist/v2/blocks/scalar-auth-selector-block/components/AuthSelector.vue.js +0 -184
- package/dist/v2/blocks/scalar-auth-selector-block/components/AuthSelector.vue2.js +0 -4
- package/dist/v2/blocks/scalar-auth-selector-block/components/DeleteRequestAuthModal.vue.js +0 -51
- package/dist/v2/blocks/scalar-auth-selector-block/components/DeleteRequestAuthModal.vue2.js +0 -4
- package/dist/v2/blocks/scalar-auth-selector-block/components/OAuth2.vue.js +0 -330
- package/dist/v2/blocks/scalar-auth-selector-block/components/OAuth2.vue2.js +0 -4
- package/dist/v2/blocks/scalar-auth-selector-block/components/OAuthScopesAddModal.vue.js +0 -7
- package/dist/v2/blocks/scalar-auth-selector-block/components/OAuthScopesAddModal.vue2.js +0 -76
- package/dist/v2/blocks/scalar-auth-selector-block/components/OAuthScopesInput.vue.js +0 -165
- package/dist/v2/blocks/scalar-auth-selector-block/components/OAuthScopesInput.vue3.js +0 -5
- package/dist/v2/blocks/scalar-auth-selector-block/components/OpenIDConnect.vue.js +0 -91
- package/dist/v2/blocks/scalar-auth-selector-block/components/OpenIDConnect.vue2.js +0 -4
- package/dist/v2/blocks/scalar-auth-selector-block/components/RequestAuthDataTable.vue.js +0 -83
- package/dist/v2/blocks/scalar-auth-selector-block/components/RequestAuthDataTable.vue2.js +0 -4
- package/dist/v2/blocks/scalar-auth-selector-block/components/RequestAuthDataTableInput.vue.js +0 -46
- package/dist/v2/blocks/scalar-auth-selector-block/components/RequestAuthDataTableInput.vue2.js +0 -4
- package/dist/v2/blocks/scalar-auth-selector-block/components/RequestAuthTab.vue.js +0 -244
- package/dist/v2/blocks/scalar-auth-selector-block/components/RequestAuthTab.vue2.js +0 -4
- package/dist/v2/blocks/scalar-auth-selector-block/helpers/auth-options.js +0 -97
- package/dist/v2/blocks/scalar-auth-selector-block/helpers/extract-security-scheme-secrets.js +0 -135
- package/dist/v2/blocks/scalar-auth-selector-block/helpers/fetch-openid-connect-discovery.js +0 -35
- package/dist/v2/blocks/scalar-auth-selector-block/helpers/is-auth-optional.js +0 -7
- package/dist/v2/blocks/scalar-auth-selector-block/helpers/merge-security.js +0 -23
- package/dist/v2/blocks/scalar-auth-selector-block/helpers/oauth.js +0 -139
- package/dist/v2/blocks/scalar-auth-selector-block/helpers/openid-discovery-to-flows.js +0 -27
- package/dist/v2/blocks/scalar-auth-selector-block/helpers/security-scheme.js +0 -64
- package/dist/v2/components/callout/Callout.vue.js +0 -7
- package/dist/v2/components/callout/Callout.vue2.js +0 -43
- package/dist/v2/components/code-input/CodeInput.vue.js +0 -8
- package/dist/v2/components/code-input/CodeInput.vue2.js +0 -213
- package/dist/v2/components/code-input/code-variable-widget.js +0 -106
- package/dist/v2/components/data-table/DataTable.vue.js +0 -38
- package/dist/v2/components/data-table/DataTable.vue2.js +0 -4
- package/dist/v2/components/data-table/DataTableCell.vue.js +0 -26
- package/dist/v2/components/data-table/DataTableCell.vue2.js +0 -4
- package/dist/v2/components/data-table/DataTableCheckbox.vue.js +0 -53
- package/dist/v2/components/data-table/DataTableCheckbox.vue2.js +0 -4
- package/dist/v2/components/data-table/DataTableHeader.vue.js +0 -18
- package/dist/v2/components/data-table/DataTableHeader.vue2.js +0 -4
- package/dist/v2/components/data-table/DataTableInput.vue.js +0 -7
- package/dist/v2/components/data-table/DataTableInput.vue2.js +0 -121
- package/dist/v2/components/data-table/DataTableInputSelect.vue.js +0 -149
- package/dist/v2/components/data-table/DataTableInputSelect.vue2.js +0 -4
- package/dist/v2/components/data-table/DataTableRow.vue.js +0 -12
- package/dist/v2/components/data-table/DataTableText.vue.js +0 -23
- package/dist/v2/components/data-table/DataTableText.vue2.js +0 -4
- package/dist/v2/components/forms/ConfirmationForm.vue.js +0 -45
- package/dist/v2/components/forms/ConfirmationForm.vue2.js +0 -4
- package/dist/v2/components/layout/CollapsibleSection.vue.js +0 -89
- package/dist/v2/components/layout/CollapsibleSection.vue2.js +0 -4
- package/dist/v2/components/layout/ValueEmitter.vue.js +0 -21
- package/dist/v2/components/layout/ValueEmitter.vue2.js +0 -4
- package/dist/v2/components/modals/DeleteModal.vue.js +0 -31
- package/dist/v2/components/modals/DeleteModal.vue2.js +0 -4
- package/dist/v2/components/modals/ModalClientContainer.vue.js +0 -7
- package/dist/v2/components/modals/ModalClientContainer.vue2.js +0 -60
- package/dist/v2/components/resize/Resize.vue.js +0 -8
- package/dist/v2/components/resize/Resize.vue2.js +0 -36
- package/dist/v2/components/resize/use-split-resize.js +0 -57
- package/dist/v2/components/server/ServerDropdown.vue.js +0 -91
- package/dist/v2/components/server/ServerDropdown.vue2.js +0 -4
- package/dist/v2/components/server/ServerDropdownItem.vue.js +0 -7
- package/dist/v2/components/server/ServerDropdownItem.vue2.js +0 -49
- package/dist/v2/components/sidebar/Sidebar.vue.js +0 -115
- package/dist/v2/components/sidebar/Sidebar.vue2.js +0 -4
- package/dist/v2/components/sidebar/SidebarMenu.vue.js +0 -52
- package/dist/v2/components/sidebar/SidebarMenu.vue2.js +0 -4
- package/dist/v2/components/sidebar/SidebarToggle.vue.js +0 -52
- package/dist/v2/components/sidebar/SidebarToggle.vue2.js +0 -4
- package/dist/v2/features/app/App.vue.js +0 -152
- package/dist/v2/features/app/App.vue3.js +0 -5
- package/dist/v2/features/app/app-events.js +0 -251
- package/dist/v2/features/app/app-state.js +0 -415
- package/dist/v2/features/app/components/AppSidebar.vue.js +0 -7
- package/dist/v2/features/app/components/AppSidebar.vue2.js +0 -304
- package/dist/v2/features/app/components/CreateWorkspaceModal.vue.js +0 -56
- package/dist/v2/features/app/components/CreateWorkspaceModal.vue2.js +0 -4
- package/dist/v2/features/app/components/DesktopTab.vue.js +0 -7
- package/dist/v2/features/app/components/DesktopTab.vue2.js +0 -134
- package/dist/v2/features/app/components/DesktopTabs.vue.js +0 -56
- package/dist/v2/features/app/components/DesktopTabs.vue2.js +0 -4
- package/dist/v2/features/app/components/DownloadAppButton.vue.js +0 -7
- package/dist/v2/features/app/components/DownloadAppButton.vue2.js +0 -19
- package/dist/v2/features/app/components/SidebarItemMenu.vue.js +0 -185
- package/dist/v2/features/app/components/SidebarItemMenu.vue2.js +0 -4
- package/dist/v2/features/app/components/SplashScreen.vue.js +0 -7
- package/dist/v2/features/app/components/SplashScreen.vue2.js +0 -18
- package/dist/v2/features/app/helpers/create-api-client-app.js +0 -36
- package/dist/v2/features/app/helpers/filter-workspaces.js +0 -5
- package/dist/v2/features/app/helpers/get-route-param.js +0 -9
- package/dist/v2/features/app/helpers/group-workspaces.js +0 -23
- package/dist/v2/features/app/helpers/routes.js +0 -157
- package/dist/v2/features/app/hooks/use-document-watcher.js +0 -66
- package/dist/v2/features/app/hooks/use-theme.js +0 -48
- package/dist/v2/features/collection/DocumentCollection.vue.js +0 -336
- package/dist/v2/features/collection/DocumentCollection.vue3.js +0 -5
- package/dist/v2/features/collection/OperationCollection.vue.js +0 -86
- package/dist/v2/features/collection/OperationCollection.vue2.js +0 -4
- package/dist/v2/features/collection/WorkspaceCollection.vue.js +0 -68
- package/dist/v2/features/collection/WorkspaceCollection.vue2.js +0 -4
- package/dist/v2/features/collection/components/Authentication.vue.js +0 -7
- package/dist/v2/features/collection/components/Authentication.vue2.js +0 -154
- package/dist/v2/features/collection/components/Cookies.vue.js +0 -52
- package/dist/v2/features/collection/components/Cookies.vue2.js +0 -4
- package/dist/v2/features/collection/components/Editor/Editor.vue.js +0 -7
- package/dist/v2/features/collection/components/Editor/Editor.vue2.js +0 -344
- package/dist/v2/features/collection/components/Editor/components/EditorDiagnosticsPanel.vue.js +0 -78
- package/dist/v2/features/collection/components/Editor/components/EditorDiagnosticsPanel.vue2.js +0 -4
- package/dist/v2/features/collection/components/Editor/components/EditorSavePanel.vue.js +0 -83
- package/dist/v2/features/collection/components/Editor/components/EditorSavePanel.vue2.js +0 -4
- package/dist/v2/features/collection/components/Editor/helpers/get-diagnostic-counts.js +0 -10
- package/dist/v2/features/collection/components/Editor/helpers/get-operation-context.js +0 -5
- package/dist/v2/features/collection/components/Editor/helpers/get-visible-diagnostics.js +0 -5
- package/dist/v2/features/collection/components/Editor/helpers/parse-editor-object.js +0 -21
- package/dist/v2/features/collection/components/Editor/helpers/stringify-document.js +0 -5
- package/dist/v2/features/collection/components/Editor/hooks/use-editor-state.js +0 -25
- package/dist/v2/features/collection/components/Environment.vue.js +0 -54
- package/dist/v2/features/collection/components/Environment.vue2.js +0 -4
- package/dist/v2/features/collection/components/Form.vue.js +0 -78
- package/dist/v2/features/collection/components/Form.vue2.js +0 -4
- package/dist/v2/features/collection/components/LabelInput.vue.js +0 -7
- package/dist/v2/features/collection/components/LabelInput.vue2.js +0 -35
- package/dist/v2/features/collection/components/Overview.vue.js +0 -7
- package/dist/v2/features/collection/components/Overview.vue2.js +0 -208
- package/dist/v2/features/collection/components/Servers.vue.js +0 -210
- package/dist/v2/features/collection/components/Servers.vue2.js +0 -4
- package/dist/v2/features/collection/components/Settings.vue.js +0 -61
- package/dist/v2/features/collection/components/Settings.vue2.js +0 -4
- package/dist/v2/features/collection/components/SyncConflictResolutionEditor.vue.js +0 -7
- package/dist/v2/features/collection/components/SyncConflictResolutionEditor.vue2.js +0 -136
- package/dist/v2/features/collection/components/Tabs.vue.js +0 -44
- package/dist/v2/features/collection/components/Tabs.vue2.js +0 -4
- package/dist/v2/features/collection/helpers/get-default-operation-security-toggle.js +0 -13
- package/dist/v2/features/command-palette/TheCommandPalette.vue.js +0 -7
- package/dist/v2/features/command-palette/TheCommandPalette.vue2.js +0 -152
- package/dist/v2/features/command-palette/components/CommandActionForm.vue.js +0 -48
- package/dist/v2/features/command-palette/components/CommandActionForm.vue2.js +0 -4
- package/dist/v2/features/command-palette/components/CommandActionInput.vue.js +0 -52
- package/dist/v2/features/command-palette/components/CommandActionInput.vue2.js +0 -4
- package/dist/v2/features/command-palette/components/CommandPaletteExample.vue.js +0 -211
- package/dist/v2/features/command-palette/components/CommandPaletteExample.vue2.js +0 -4
- package/dist/v2/features/command-palette/components/CommandPaletteImport.vue.js +0 -182
- package/dist/v2/features/command-palette/components/CommandPaletteImport.vue2.js +0 -4
- package/dist/v2/features/command-palette/components/CommandPaletteImportCurl.vue.js +0 -7
- package/dist/v2/features/command-palette/components/CommandPaletteImportCurl.vue2.js +0 -115
- package/dist/v2/features/command-palette/components/CommandPaletteOpenApiDocument.vue.js +0 -78
- package/dist/v2/features/command-palette/components/CommandPaletteOpenApiDocument.vue2.js +0 -4
- package/dist/v2/features/command-palette/components/CommandPaletteRequest.vue.js +0 -221
- package/dist/v2/features/command-palette/components/CommandPaletteRequest.vue2.js +0 -4
- package/dist/v2/features/command-palette/components/CommandPaletteTag.vue.js +0 -114
- package/dist/v2/features/command-palette/components/CommandPaletteTag.vue2.js +0 -4
- package/dist/v2/features/command-palette/components/WatchModeToggle.vue.js +0 -40
- package/dist/v2/features/command-palette/components/WatchModeToggle.vue2.js +0 -4
- package/dist/v2/features/command-palette/helpers/generate-unique-slug.js +0 -11
- package/dist/v2/features/command-palette/helpers/get-openapi-document-details.js +0 -31
- package/dist/v2/features/command-palette/helpers/get-openapi-from-postman.js +0 -11
- package/dist/v2/features/command-palette/helpers/get-operation-from-curl.js +0 -76
- package/dist/v2/features/command-palette/helpers/get-postman-document-details.js +0 -18
- package/dist/v2/features/command-palette/helpers/import-document-to-workspace.js +0 -33
- package/dist/v2/features/command-palette/helpers/is-postman-collection.js +0 -11
- package/dist/v2/features/command-palette/helpers/load-document-from-source.js +0 -52
- package/dist/v2/features/command-palette/hooks/use-command-palette-state.js +0 -139
- package/dist/v2/features/editor/config.js +0 -16
- package/dist/v2/features/editor/helpers/configure-language-support.js +0 -39
- package/dist/v2/features/editor/helpers/ensure-monaco-environment.js +0 -20
- package/dist/v2/features/editor/helpers/json/create-json-model.js +0 -19
- package/dist/v2/features/editor/helpers/json/get-json-ast-node-from-path.js +0 -9
- package/dist/v2/features/editor/helpers/json/json-ast.js +0 -24
- package/dist/v2/features/editor/helpers/json/json-pointer-links.js +0 -72
- package/dist/v2/features/editor/helpers/json/json-pointer-path.js +0 -21
- package/dist/v2/features/editor/helpers/range-to-whole-line.js +0 -8
- package/dist/v2/features/editor/helpers/theme/apply-scalar-theme.js +0 -56
- package/dist/v2/features/editor/helpers/theme/load-css-variables.js +0 -21
- package/dist/v2/features/editor/helpers/yaml/create-yaml-model.js +0 -19
- package/dist/v2/features/editor/helpers/yaml/get-yaml-node-range-from-path.js +0 -50
- package/dist/v2/features/editor/hooks/use-editor-markers.js +0 -34
- package/dist/v2/features/editor/hooks/use-editor.js +0 -107
- package/dist/v2/features/editor/hooks/use-json-pointer-link-support.js +0 -27
- package/dist/v2/features/editor/hooks/use-three-way-merge-editor.js +0 -316
- package/dist/v2/features/editor/schemas/openapi-3.1-schema.json.js +0 -25
- package/dist/v2/features/environments/EnvironmentsList.vue.js +0 -68
- package/dist/v2/features/environments/EnvironmentsList.vue2.js +0 -4
- package/dist/v2/features/environments/components/Environment.vue.js +0 -66
- package/dist/v2/features/environments/components/Environment.vue2.js +0 -4
- package/dist/v2/features/environments/components/EnvironmentColors.vue.js +0 -121
- package/dist/v2/features/environments/components/EnvironmentColors.vue2.js +0 -4
- package/dist/v2/features/environments/components/EnvironmentCreateModal.vue.js +0 -85
- package/dist/v2/features/environments/components/EnvironmentCreateModal.vue2.js +0 -4
- package/dist/v2/features/environments/components/EnvironmentDeleteModal.vue.js +0 -53
- package/dist/v2/features/environments/components/EnvironmentDeleteModal.vue2.js +0 -4
- package/dist/v2/features/environments/components/EnvironmentVariablesDropdown.vue.js +0 -109
- package/dist/v2/features/environments/components/EnvironmentVariablesDropdown.vue2.js +0 -4
- package/dist/v2/features/environments/components/EnvironmentVariablesTable.vue.js +0 -7
- package/dist/v2/features/environments/components/EnvironmentVariablesTable.vue2.js +0 -136
- package/dist/v2/features/global-cookies/components/CookiesTable.vue.js +0 -7
- package/dist/v2/features/global-cookies/components/CookiesTable.vue2.js +0 -189
- package/dist/v2/features/modal/Modal.vue.js +0 -122
- package/dist/v2/features/modal/Modal.vue2.js +0 -4
- package/dist/v2/features/modal/helpers/create-api-client-modal.js +0 -89
- package/dist/v2/features/modal/helpers/map-hidden-clients-config.js +0 -36
- package/dist/v2/features/modal/helpers/resolve-route-parameters.js +0 -29
- package/dist/v2/features/modal/helpers/restore-workspace-state.js +0 -36
- package/dist/v2/features/modal/hooks/use-modal-sidebar.js +0 -93
- package/dist/v2/features/modal/modal-events.js +0 -44
- package/dist/v2/features/operation/Operation.vue.js +0 -126
- package/dist/v2/features/operation/Operation.vue2.js +0 -4
- package/dist/v2/features/operation/helpers/combine-params.js +0 -14
- package/dist/v2/features/operation/helpers/get-security-requirements.js +0 -4
- package/dist/v2/features/operation/helpers/get-selected-security.js +0 -18
- package/dist/v2/features/operation/helpers/get-selected-server.js +0 -4
- package/dist/v2/features/search/helpers/create-fuse-instance.js +0 -43
- package/dist/v2/features/search/helpers/create-search-index.js +0 -63
- package/dist/v2/features/search/hooks/use-search-index.js +0 -18
- package/dist/v2/features/settings/CollectionSettings.vue.js +0 -275
- package/dist/v2/features/settings/CollectionSettings.vue2.js +0 -4
- package/dist/v2/features/settings/DocumentSettings.vue.js +0 -115
- package/dist/v2/features/settings/DocumentSettings.vue2.js +0 -4
- package/dist/v2/features/settings/components/Appearance.vue.js +0 -88
- package/dist/v2/features/settings/components/Appearance.vue2.js +0 -4
- package/dist/v2/features/settings/components/Section.vue.js +0 -35
- package/dist/v2/features/settings/components/Section.vue2.js +0 -4
- package/dist/v2/features/settings/helpers/get-theme-colors.js +0 -16
- package/dist/v2/helpers/drag-handle-factory.js +0 -120
- package/dist/v2/helpers/generate-location-id.js +0 -10
- package/dist/v2/helpers/get-active-environment.js +0 -22
- package/dist/v2/helpers/get-active-proxy-url.js +0 -5
- package/dist/v2/helpers/get-servers.js +0 -66
- package/dist/v2/helpers/get-tab-details.js +0 -34
- package/dist/v2/helpers/handle-hotkeys.js +0 -54
- package/dist/v2/helpers/is-url.js +0 -5
- package/dist/v2/helpers/slugify.js +0 -4
- package/dist/v2/helpers/storage.js +0 -16
- package/dist/v2/hooks/use-color-mode.js +0 -24
- package/dist/v2/hooks/use-global-hot-keys.js +0 -11
- package/dist/v2/hooks/use-scroll-lock.js +0 -21
- package/dist/v2/workspace-events.js +0 -252
- package/dist/views/Collection/Collection.vue.js +0 -4
- package/dist/views/Collection/Collection.vue2.js +0 -49
- package/dist/views/Collection/CollectionAuthentication.vue.js +0 -7
- package/dist/views/Collection/CollectionAuthentication.vue2.js +0 -56
- package/dist/views/Collection/CollectionCookies.vue.js +0 -4
- package/dist/views/Collection/CollectionCookies.vue2.js +0 -16
- package/dist/views/Collection/CollectionEnvironment.vue.js +0 -5
- package/dist/views/Collection/CollectionEnvironment.vue2.js +0 -229
- package/dist/views/Collection/CollectionInfoForm.vue.js +0 -7
- package/dist/views/Collection/CollectionInfoForm.vue2.js +0 -63
- package/dist/views/Collection/CollectionNavigation.vue.js +0 -133
- package/dist/views/Collection/CollectionNavigation.vue2.js +0 -4
- package/dist/views/Collection/CollectionOverview.vue.js +0 -4
- package/dist/views/Collection/CollectionOverview.vue2.js +0 -34
- package/dist/views/Collection/CollectionScripts.vue.js +0 -4
- package/dist/views/Collection/CollectionScripts.vue2.js +0 -16
- package/dist/views/Collection/CollectionServerForm.vue.js +0 -75
- package/dist/views/Collection/CollectionServerForm.vue2.js +0 -4
- package/dist/views/Collection/CollectionServers.vue.js +0 -4
- package/dist/views/Collection/CollectionServers.vue2.js +0 -94
- package/dist/views/Collection/CollectionSettings.vue.js +0 -4
- package/dist/views/Collection/CollectionSettings.vue2.js +0 -118
- package/dist/views/Collection/CollectionSync.vue.js +0 -4
- package/dist/views/Collection/CollectionSync.vue2.js +0 -16
- package/dist/views/Collection/components/EnvironmentForm.vue.js +0 -7
- package/dist/views/Collection/components/EnvironmentForm.vue2.js +0 -270
- package/dist/views/Collection/components/MarkdownInput.vue.js +0 -7
- package/dist/views/Collection/components/MarkdownInput.vue2.js +0 -100
- package/dist/views/Components/CodeSnippet/CodeSnippet.vue.js +0 -50
- package/dist/views/Components/CodeSnippet/CodeSnippet.vue2.js +0 -4
- package/dist/views/Components/CodeSnippet/helpers/convert-to-har-request.js +0 -62
- package/dist/views/Components/CodeSnippet/helpers/get-har-request.js +0 -82
- package/dist/views/Components/CodeSnippet/helpers/get-snippet.js +0 -30
- package/dist/views/Cookies/CookieForm.vue.js +0 -34
- package/dist/views/Cookies/CookieForm.vue2.js +0 -4
- package/dist/views/Cookies/CookieModal.vue.js +0 -7
- package/dist/views/Cookies/CookieModal.vue2.js +0 -88
- package/dist/views/Cookies/Cookies.vue.js +0 -4
- package/dist/views/Cookies/Cookies.vue2.js +0 -162
- package/dist/views/Environment/Environment.vue.js +0 -4
- package/dist/views/Environment/Environment.vue2.js +0 -402
- package/dist/views/Environment/EnvironmentColorModal.vue.js +0 -42
- package/dist/views/Environment/EnvironmentColorModal.vue2.js +0 -4
- package/dist/views/Environment/EnvironmentColors.vue.js +0 -118
- package/dist/views/Environment/EnvironmentColors.vue2.js +0 -4
- package/dist/views/Environment/EnvironmentModal.vue.js +0 -131
- package/dist/views/Environment/EnvironmentModal.vue2.js +0 -4
- package/dist/views/Environment/EnvironmentVariableDropdown.vue.js +0 -129
- package/dist/views/Environment/EnvironmentVariableDropdown.vue2.js +0 -4
- package/dist/views/Environment/handle-drag.js +0 -32
- package/dist/views/Request/Request.vue.js +0 -7
- package/dist/views/Request/Request.vue2.js +0 -105
- package/dist/views/Request/RequestRoot.vue.js +0 -7
- package/dist/views/Request/RequestRoot.vue2.js +0 -123
- package/dist/views/Request/RequestSection/RequestAuth/DeleteRequestAuthModal.vue.js +0 -52
- package/dist/views/Request/RequestSection/RequestAuth/DeleteRequestAuthModal.vue2.js +0 -4
- package/dist/views/Request/RequestSection/RequestAuth/OAuth2.vue.js +0 -246
- package/dist/views/Request/RequestSection/RequestAuth/OAuth2.vue2.js +0 -4
- package/dist/views/Request/RequestSection/RequestAuth/OAuthScopesInput.vue.js +0 -135
- package/dist/views/Request/RequestSection/RequestAuth/OAuthScopesInput.vue2.js +0 -4
- package/dist/views/Request/RequestSection/RequestAuth/RequestAuth.vue.js +0 -7
- package/dist/views/Request/RequestSection/RequestAuth/RequestAuth.vue2.js +0 -209
- package/dist/views/Request/RequestSection/RequestAuth/RequestAuthDataTable.vue.js +0 -7
- package/dist/views/Request/RequestSection/RequestAuth/RequestAuthDataTable.vue2.js +0 -116
- package/dist/views/Request/RequestSection/RequestAuth/RequestAuthDataTableInput.vue.js +0 -50
- package/dist/views/Request/RequestSection/RequestAuth/RequestAuthDataTableInput.vue2.js +0 -4
- package/dist/views/Request/RequestSection/RequestAuth/RequestAuthTab.vue.js +0 -219
- package/dist/views/Request/RequestSection/RequestAuth/RequestAuthTab.vue2.js +0 -4
- package/dist/views/Request/RequestSection/RequestAuth/helpers/restore-auth-from-local-storage.js +0 -28
- package/dist/views/Request/RequestSection/RequestBody.vue.js +0 -7
- package/dist/views/Request/RequestSection/RequestBody.vue2.js +0 -451
- package/dist/views/Request/RequestSection/RequestCodeExample.vue.js +0 -7
- package/dist/views/Request/RequestSection/RequestCodeExample.vue2.js +0 -170
- package/dist/views/Request/RequestSection/RequestParams.vue.js +0 -162
- package/dist/views/Request/RequestSection/RequestParams.vue2.js +0 -4
- package/dist/views/Request/RequestSection/RequestPathParams.vue.js +0 -96
- package/dist/views/Request/RequestSection/RequestPathParams.vue2.js +0 -4
- package/dist/views/Request/RequestSection/RequestSection.vue.js +0 -7
- package/dist/views/Request/RequestSection/RequestSection.vue2.js +0 -247
- package/dist/views/Request/RequestSection/RequestTable.vue.js +0 -7
- package/dist/views/Request/RequestSection/RequestTable.vue2.js +0 -227
- package/dist/views/Request/RequestSection/RequestTableTooltip.vue.js +0 -7
- package/dist/views/Request/RequestSection/RequestTableTooltip.vue2.js +0 -61
- package/dist/views/Request/RequestSection/helpers/filter-security-requirements.js +0 -29
- package/dist/views/Request/RequestSection/helpers/getting-started.js +0 -13
- package/dist/views/Request/RequestSection/helpers/update-scheme.js +0 -16
- package/dist/views/Request/RequestSidebar.vue.js +0 -7
- package/dist/views/Request/RequestSidebar.vue2.js +0 -341
- package/dist/views/Request/RequestSidebarItem.vue.js +0 -8
- package/dist/views/Request/RequestSidebarItem.vue2.js +0 -464
- package/dist/views/Request/RequestSidebarItemMenu.vue.js +0 -7
- package/dist/views/Request/RequestSidebarItemMenu.vue2.js +0 -236
- package/dist/views/Request/RequestSubpageHeader.vue.js +0 -7
- package/dist/views/Request/RequestSubpageHeader.vue2.js +0 -79
- package/dist/views/Request/ResponseSection/RequestHeaders.vue.js +0 -96
- package/dist/views/Request/ResponseSection/RequestHeaders.vue2.js +0 -4
- package/dist/views/Request/ResponseSection/ResponseBody.vue.js +0 -7
- package/dist/views/Request/ResponseSection/ResponseBody.vue2.js +0 -83
- package/dist/views/Request/ResponseSection/ResponseBodyDownload.vue.js +0 -36
- package/dist/views/Request/ResponseSection/ResponseBodyDownload.vue2.js +0 -4
- package/dist/views/Request/ResponseSection/ResponseBodyInfo.vue.js +0 -14
- package/dist/views/Request/ResponseSection/ResponseBodyPreview.vue.js +0 -7
- package/dist/views/Request/ResponseSection/ResponseBodyPreview.vue2.js +0 -63
- package/dist/views/Request/ResponseSection/ResponseBodyRaw.vue.js +0 -7
- package/dist/views/Request/ResponseSection/ResponseBodyRaw.vue2.js +0 -42
- package/dist/views/Request/ResponseSection/ResponseBodyStreaming.vue.js +0 -74
- package/dist/views/Request/ResponseSection/ResponseBodyStreaming.vue2.js +0 -4
- package/dist/views/Request/ResponseSection/ResponseBodyToggle.vue.js +0 -25
- package/dist/views/Request/ResponseSection/ResponseBodyToggle.vue2.js +0 -4
- package/dist/views/Request/ResponseSection/ResponseBodyVirtual.vue.js +0 -50
- package/dist/views/Request/ResponseSection/ResponseBodyVirtual.vue3.js +0 -5
- package/dist/views/Request/ResponseSection/ResponseCookies.vue.js +0 -51
- package/dist/views/Request/ResponseSection/ResponseCookies.vue2.js +0 -4
- package/dist/views/Request/ResponseSection/ResponseEmpty.vue.js +0 -7
- package/dist/views/Request/ResponseSection/ResponseEmpty.vue2.js +0 -103
- package/dist/views/Request/ResponseSection/ResponseHeaders.vue.js +0 -96
- package/dist/views/Request/ResponseSection/ResponseHeaders.vue2.js +0 -4
- package/dist/views/Request/ResponseSection/ResponseLoadingOverlay.vue.js +0 -7
- package/dist/views/Request/ResponseSection/ResponseLoadingOverlay.vue2.js +0 -38
- package/dist/views/Request/ResponseSection/ResponseMetaInformation.vue.js +0 -67
- package/dist/views/Request/ResponseSection/ResponseMetaInformation.vue2.js +0 -4
- package/dist/views/Request/ResponseSection/ResponseSection.vue.js +0 -7
- package/dist/views/Request/ResponseSection/ResponseSection.vue2.js +0 -189
- package/dist/views/Request/components/WorkspaceDropdown.vue.js +0 -182
- package/dist/views/Request/components/WorkspaceDropdown.vue2.js +0 -4
- package/dist/views/Request/consts/mediaTypes.js +0 -131
- package/dist/views/Request/consts/new-auth-options.js +0 -100
- package/dist/views/Request/handle-drag.js +0 -42
- package/dist/views/Request/hooks/useOpenApiWatcher.js +0 -57
- package/dist/views/Request/libs/auth.js +0 -52
- package/dist/views/Request/libs/oauth2.js +0 -127
- package/dist/views/Request/libs/request.js +0 -40
- package/dist/views/Request/libs/watch-mode.js +0 -337
- package/dist/views/Settings/Settings.vue.js +0 -4
- package/dist/views/Settings/Settings.vue2.js +0 -29
- package/dist/views/Settings/SettingsGeneral.vue.js +0 -286
- package/dist/views/Settings/SettingsGeneral.vue2.js +0 -4
- package/dist/views/Settings/components/SettingsAppearance.vue.js +0 -85
- package/dist/views/Settings/components/SettingsAppearance.vue2.js +0 -4
- package/dist/views/Settings/components/SettingsSection.vue.js +0 -24
- package/dist/views/Settings/components/SettingsSection.vue2.js +0 -4
|
@@ -0,0 +1,1188 @@
|
|
|
1
|
+
import { r as getMediaTypeConfig$1 } from "./consts-CyGRb9dl.js";
|
|
2
|
+
import { t as _plugin_vue_export_helper_default } from "./_plugin-vue_export-helper-BmmBcIzD.js";
|
|
3
|
+
import { r as DataTable_default, t as DataTableRow_default } from "./DataTableRow-c3XveEUO.js";
|
|
4
|
+
import { t as DataTableText_default } from "./DataTable-BqbZKW3K.js";
|
|
5
|
+
import { t as DataTableHeader_default } from "./DataTableHeader-DJVB0jCZ.js";
|
|
6
|
+
import { t as SectionFilter_default } from "./SectionFilter-hrtoRLwj.js";
|
|
7
|
+
import { t as ViewLayoutSection_default } from "./ViewLayoutSection-mUqKbQry.js";
|
|
8
|
+
import { t as CollapsibleSection_default } from "./layout-BWiL7dfb.js";
|
|
9
|
+
import { n as httpHeaders, r as HelpfulLink_default, t as computer_default } from "./computer-D7VW3Ruy.js";
|
|
10
|
+
import { t as ScalarAsciiArt_default } from "./ScalarAsciiArt-BjuSnj8e.js";
|
|
11
|
+
import { Fragment, Transition, computed, createBlock, createCommentVNode, createElementBlock, createElementVNode, createSlots, createTextVNode, createVNode, defineComponent, mergeProps, nextTick, normalizeClass, normalizeStyle, onBeforeUnmount, onMounted, openBlock, ref, renderList, renderSlot, resolveDynamicComponent, toDisplayString, toRef, unref, useId, vShow, watch, withCtx, withDirectives, withModifiers } from "vue";
|
|
12
|
+
import { ScalarButton, ScalarCodeBlockCopy, ScalarErrorBoundary, ScalarHotkey, ScalarIcon, ScalarLoading, ScalarVirtualText, useLoadingState } from "@scalar/components";
|
|
13
|
+
import { formatJsonOrYamlString, httpStatusCodes } from "@scalar/oas-utils/helpers";
|
|
14
|
+
import { prettyPrintJson } from "@scalar/helpers/json/pretty-print-json";
|
|
15
|
+
import { isDefined as isDefined$1 } from "@scalar/helpers/array/is-defined";
|
|
16
|
+
import MimeTypeParser from "whatwg-mimetype";
|
|
17
|
+
import { useCodeMirror } from "@scalar/use-codemirror";
|
|
18
|
+
import prettyMilliseconds from "pretty-ms";
|
|
19
|
+
import prettyBytes from "pretty-bytes";
|
|
20
|
+
//#region src/v2/blocks/response-block/components/Headers.vue?vue&type=script&setup=true&lang.ts
|
|
21
|
+
var _hoisted_1$12 = {
|
|
22
|
+
key: 0,
|
|
23
|
+
class: "max-h-[calc(100%-32px)] overflow-y-auto"
|
|
24
|
+
};
|
|
25
|
+
var _hoisted_2$8 = {
|
|
26
|
+
key: 1,
|
|
27
|
+
class: "text-c-3 bg-b-1 flex min-h-[64px] items-center justify-center border-t px-4 text-sm"
|
|
28
|
+
};
|
|
29
|
+
//#endregion
|
|
30
|
+
//#region src/v2/blocks/response-block/components/Headers.vue
|
|
31
|
+
var Headers_default = /* @__PURE__ */ defineComponent({
|
|
32
|
+
__name: "Headers",
|
|
33
|
+
props: { headers: {} },
|
|
34
|
+
setup(__props) {
|
|
35
|
+
const findHeaderInfo = (name) => {
|
|
36
|
+
return httpHeaders.find((header) => header.name.toLowerCase() === name.toLowerCase());
|
|
37
|
+
};
|
|
38
|
+
return (_ctx, _cache) => {
|
|
39
|
+
return openBlock(), createBlock(unref(CollapsibleSection_default), {
|
|
40
|
+
class: "overflow-auto",
|
|
41
|
+
defaultOpen: false,
|
|
42
|
+
itemCount: __props.headers.length
|
|
43
|
+
}, {
|
|
44
|
+
title: withCtx(() => [renderSlot(_ctx.$slots, "title")]),
|
|
45
|
+
default: withCtx(() => [__props.headers.length ? (openBlock(), createElementBlock("div", _hoisted_1$12, [createVNode(DataTable_default, {
|
|
46
|
+
columns: ["minmax(auto, min-content)", "minmax(50%, 1fr)"],
|
|
47
|
+
scroll: ""
|
|
48
|
+
}, {
|
|
49
|
+
default: withCtx(() => [createVNode(DataTableRow_default, { class: "sr-only !block" }, {
|
|
50
|
+
default: withCtx(() => [createVNode(unref(DataTableHeader_default), null, {
|
|
51
|
+
default: withCtx(() => [..._cache[0] || (_cache[0] = [createTextVNode("Header Key", -1)])]),
|
|
52
|
+
_: 1
|
|
53
|
+
}), createVNode(unref(DataTableHeader_default), null, {
|
|
54
|
+
default: withCtx(() => [..._cache[1] || (_cache[1] = [createTextVNode("Header Value", -1)])]),
|
|
55
|
+
_: 1
|
|
56
|
+
})]),
|
|
57
|
+
_: 1
|
|
58
|
+
}), (openBlock(true), createElementBlock(Fragment, null, renderList(__props.headers, (item) => {
|
|
59
|
+
return openBlock(), createBlock(DataTableRow_default, {
|
|
60
|
+
key: item.name,
|
|
61
|
+
class: "group/row text-c-1"
|
|
62
|
+
}, {
|
|
63
|
+
default: withCtx(() => [createVNode(DataTableText_default, { class: "bg-b-1 sticky left-0 z-1 max-w-full group-first/row:border-t-0" }, {
|
|
64
|
+
default: withCtx(() => [typeof findHeaderInfo(item.name)?.url === "string" ? (openBlock(), createBlock(HelpfulLink_default, {
|
|
65
|
+
key: 0,
|
|
66
|
+
class: "decoration-c-3",
|
|
67
|
+
href: findHeaderInfo(item.name).url
|
|
68
|
+
}, {
|
|
69
|
+
default: withCtx(() => [createTextVNode(toDisplayString(item.name), 1)]),
|
|
70
|
+
_: 2
|
|
71
|
+
}, 1032, ["href"])) : (openBlock(), createElementBlock(Fragment, { key: 1 }, [createTextVNode(toDisplayString(item.name), 1)], 64))]),
|
|
72
|
+
_: 2
|
|
73
|
+
}, 1024), createVNode(DataTableText_default, {
|
|
74
|
+
class: "z-0 group-first/row:border-t-0",
|
|
75
|
+
text: item.value
|
|
76
|
+
}, null, 8, ["text"])]),
|
|
77
|
+
_: 2
|
|
78
|
+
}, 1024);
|
|
79
|
+
}), 128))]),
|
|
80
|
+
_: 1
|
|
81
|
+
})])) : (openBlock(), createElementBlock("div", _hoisted_2$8, " No headers "))]),
|
|
82
|
+
_: 3
|
|
83
|
+
}, 8, ["itemCount"]);
|
|
84
|
+
};
|
|
85
|
+
}
|
|
86
|
+
});
|
|
87
|
+
//#endregion
|
|
88
|
+
//#region src/v2/blocks/response-block/helpers/media-types.ts
|
|
89
|
+
/** Media Type (MIME Type) Definitions */
|
|
90
|
+
var mediaTypes = {
|
|
91
|
+
"application/epub+zip": { extension: ".epub" },
|
|
92
|
+
"application/gzip": { extension: ".gz" },
|
|
93
|
+
"application/java-archive": { extension: ".jar" },
|
|
94
|
+
"application/javascript": {
|
|
95
|
+
extension: ".js",
|
|
96
|
+
raw: true
|
|
97
|
+
},
|
|
98
|
+
"application/json": {
|
|
99
|
+
extension: ".json",
|
|
100
|
+
raw: true,
|
|
101
|
+
language: "json"
|
|
102
|
+
},
|
|
103
|
+
"application/ld+json": {
|
|
104
|
+
extension: ".jsonld",
|
|
105
|
+
raw: true,
|
|
106
|
+
language: "json"
|
|
107
|
+
},
|
|
108
|
+
"application/problem+json": {
|
|
109
|
+
extension: ".json",
|
|
110
|
+
raw: true,
|
|
111
|
+
language: "json"
|
|
112
|
+
},
|
|
113
|
+
"application/vnd.api+json": {
|
|
114
|
+
extension: ".json",
|
|
115
|
+
raw: true,
|
|
116
|
+
language: "json"
|
|
117
|
+
},
|
|
118
|
+
"application/dns-json": {
|
|
119
|
+
extension: ".json",
|
|
120
|
+
raw: true,
|
|
121
|
+
language: "json"
|
|
122
|
+
},
|
|
123
|
+
"application/msword": { extension: ".doc" },
|
|
124
|
+
"application/octet-stream": { extension: ".bin" },
|
|
125
|
+
"application/ogg": { extension: ".ogx" },
|
|
126
|
+
"application/pdf": {
|
|
127
|
+
extension: ".pdf",
|
|
128
|
+
preview: "object"
|
|
129
|
+
},
|
|
130
|
+
"application/rtf": {
|
|
131
|
+
extension: ".rtf",
|
|
132
|
+
raw: true
|
|
133
|
+
},
|
|
134
|
+
"application/vnd.amazon.ebook": { extension: ".azw" },
|
|
135
|
+
"application/vnd.apple.installer+xml": {
|
|
136
|
+
extension: ".mpkg",
|
|
137
|
+
raw: true,
|
|
138
|
+
language: "xml"
|
|
139
|
+
},
|
|
140
|
+
"application/vnd.mozilla.xul+xml": {
|
|
141
|
+
extension: ".xul",
|
|
142
|
+
raw: true,
|
|
143
|
+
language: "xml"
|
|
144
|
+
},
|
|
145
|
+
"application/vnd.ms-excel": { extension: ".xls" },
|
|
146
|
+
"application/vnd.ms-fontobject": { extension: ".eot" },
|
|
147
|
+
"application/vnd.ms-powerpoint": { extension: ".ppt" },
|
|
148
|
+
"application/vnd.oasis.opendocument.presentation": { extension: ".odp" },
|
|
149
|
+
"application/vnd.oasis.opendocument.spreadsheet": { extension: ".ods" },
|
|
150
|
+
"application/vnd.oasis.opendocument.text": { extension: ".odt" },
|
|
151
|
+
"application/vnd.openxmlformats-officedocument.presentationml.presentation": { extension: ".pptx" },
|
|
152
|
+
"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet": { extension: ".xlsx" },
|
|
153
|
+
"application/vnd.openxmlformats-officedocument.wordprocessingml.document": { extension: ".docx" },
|
|
154
|
+
"application/vnd.rar": { extension: ".rar" },
|
|
155
|
+
"application/vnd.visio": { extension: ".vsd" },
|
|
156
|
+
"application/x-7z-compressed": { extension: ".7z" },
|
|
157
|
+
"application/x-abiword": { extension: ".abw" },
|
|
158
|
+
"application/x-bzip": { extension: ".bz" },
|
|
159
|
+
"application/x-bzip2": { extension: ".bz2" },
|
|
160
|
+
"application/x-cdf": { extension: ".cda" },
|
|
161
|
+
"application/x-csh": { extension: ".csh" },
|
|
162
|
+
"application/x-freearc": { extension: ".arc" },
|
|
163
|
+
"application/x-httpd-php": {
|
|
164
|
+
extension: ".php",
|
|
165
|
+
raw: true
|
|
166
|
+
},
|
|
167
|
+
"application/x-sh": {
|
|
168
|
+
extension: ".sh",
|
|
169
|
+
raw: true
|
|
170
|
+
},
|
|
171
|
+
"application/x-tar": { extension: ".tar" },
|
|
172
|
+
"application/xhtml+xml": {
|
|
173
|
+
extension: ".xhtml",
|
|
174
|
+
raw: true,
|
|
175
|
+
language: "html"
|
|
176
|
+
},
|
|
177
|
+
"application/xml": {
|
|
178
|
+
extension: ".xml",
|
|
179
|
+
raw: true,
|
|
180
|
+
language: "xml"
|
|
181
|
+
},
|
|
182
|
+
"application/yaml": {
|
|
183
|
+
extension: ".yaml",
|
|
184
|
+
raw: true,
|
|
185
|
+
language: "yaml"
|
|
186
|
+
},
|
|
187
|
+
"application/zip": { extension: ".zip" },
|
|
188
|
+
"audio/aac": { extension: ".aac" },
|
|
189
|
+
"audio/midi": { extension: ".midi" },
|
|
190
|
+
"audio/mpeg": {
|
|
191
|
+
extension: ".mp3",
|
|
192
|
+
preview: "audio"
|
|
193
|
+
},
|
|
194
|
+
"audio/ogg": { extension: ".oga" },
|
|
195
|
+
"audio/wav": { extension: ".wav" },
|
|
196
|
+
"audio/webm": { extension: ".weba" },
|
|
197
|
+
"font/otf": { extension: ".otf" },
|
|
198
|
+
"font/ttf": { extension: ".ttf" },
|
|
199
|
+
"font/woff": { extension: ".woff" },
|
|
200
|
+
"font/woff2": { extension: ".woff2" },
|
|
201
|
+
"image/apng": {
|
|
202
|
+
extension: ".apng",
|
|
203
|
+
preview: "image",
|
|
204
|
+
alpha: true
|
|
205
|
+
},
|
|
206
|
+
"image/avif": {
|
|
207
|
+
extension: ".avif",
|
|
208
|
+
preview: "image"
|
|
209
|
+
},
|
|
210
|
+
"image/bmp": {
|
|
211
|
+
extension: ".bmp",
|
|
212
|
+
preview: "image"
|
|
213
|
+
},
|
|
214
|
+
"image/gif": {
|
|
215
|
+
extension: ".gif",
|
|
216
|
+
preview: "image",
|
|
217
|
+
alpha: true
|
|
218
|
+
},
|
|
219
|
+
"image/jpeg": {
|
|
220
|
+
extension: ".jpg",
|
|
221
|
+
preview: "image"
|
|
222
|
+
},
|
|
223
|
+
"image/png": {
|
|
224
|
+
extension: ".png",
|
|
225
|
+
preview: "image",
|
|
226
|
+
alpha: true
|
|
227
|
+
},
|
|
228
|
+
"image/svg+xml": {
|
|
229
|
+
extension: ".svg",
|
|
230
|
+
raw: true,
|
|
231
|
+
language: "xml",
|
|
232
|
+
preview: "image",
|
|
233
|
+
alpha: true
|
|
234
|
+
},
|
|
235
|
+
"image/tiff": { extension: ".tiff" },
|
|
236
|
+
"image/vnd.microsoft.icon": {
|
|
237
|
+
extension: ".ico",
|
|
238
|
+
preview: "image"
|
|
239
|
+
},
|
|
240
|
+
"image/webp": {
|
|
241
|
+
extension: ".webp",
|
|
242
|
+
preview: "image",
|
|
243
|
+
alpha: true
|
|
244
|
+
},
|
|
245
|
+
"text/calendar": {
|
|
246
|
+
extension: ".ics",
|
|
247
|
+
raw: true
|
|
248
|
+
},
|
|
249
|
+
"text/css": {
|
|
250
|
+
extension: ".css",
|
|
251
|
+
raw: true,
|
|
252
|
+
language: "css"
|
|
253
|
+
},
|
|
254
|
+
"text/csv": {
|
|
255
|
+
extension: ".csv",
|
|
256
|
+
raw: true
|
|
257
|
+
},
|
|
258
|
+
"text/html": {
|
|
259
|
+
extension: ".html",
|
|
260
|
+
raw: true,
|
|
261
|
+
language: "html",
|
|
262
|
+
preview: "object"
|
|
263
|
+
},
|
|
264
|
+
"text/javascript": {
|
|
265
|
+
extension: ".js",
|
|
266
|
+
raw: true
|
|
267
|
+
},
|
|
268
|
+
"text/plain": {
|
|
269
|
+
extension: ".txt",
|
|
270
|
+
raw: true
|
|
271
|
+
},
|
|
272
|
+
"text/xml": {
|
|
273
|
+
extension: ".xml",
|
|
274
|
+
raw: true,
|
|
275
|
+
language: "xml"
|
|
276
|
+
},
|
|
277
|
+
"text/yaml": {
|
|
278
|
+
extension: ".yaml",
|
|
279
|
+
raw: true,
|
|
280
|
+
language: "yaml"
|
|
281
|
+
},
|
|
282
|
+
"video/3gpp": { extension: ".3gp" },
|
|
283
|
+
"audio/3gpp": { extension: ".3gp" },
|
|
284
|
+
"video/3gpp2": { extension: ".3g2" },
|
|
285
|
+
"audio/3gpp2": { extension: ".3g2" },
|
|
286
|
+
"video/mp2t": { extension: ".ts" },
|
|
287
|
+
"video/mp4": {
|
|
288
|
+
extension: ".mp4",
|
|
289
|
+
preview: "video"
|
|
290
|
+
},
|
|
291
|
+
"video/mpeg": { extension: ".mpeg" },
|
|
292
|
+
"video/ogg": { extension: ".ogv" },
|
|
293
|
+
"video/webm": {
|
|
294
|
+
extension: ".webm",
|
|
295
|
+
preview: "video"
|
|
296
|
+
},
|
|
297
|
+
"video/x-msvideo": { extension: ".avi" }
|
|
298
|
+
};
|
|
299
|
+
/** Media Types (MIME Types) that can be displayed as raw text */
|
|
300
|
+
var textMediaTypes = Object.entries(mediaTypes).filter(([, config]) => config?.raw).map(([type]) => type);
|
|
301
|
+
/** Get the config for a media type */
|
|
302
|
+
function getMediaTypeConfig(type) {
|
|
303
|
+
const config = mediaTypes[type];
|
|
304
|
+
if (config) return config;
|
|
305
|
+
if (type.endsWith("+json")) return {
|
|
306
|
+
extension: ".json",
|
|
307
|
+
raw: true,
|
|
308
|
+
language: "json"
|
|
309
|
+
};
|
|
310
|
+
}
|
|
311
|
+
//#endregion
|
|
312
|
+
//#region src/v2/blocks/response-block/helpers/extract-filename.ts
|
|
313
|
+
/**
|
|
314
|
+
* Safely decode a URI component, returning the original string if decoding fails
|
|
315
|
+
*/
|
|
316
|
+
var decodeURIComponentSafe = (str) => {
|
|
317
|
+
try {
|
|
318
|
+
return decodeURIComponent(str);
|
|
319
|
+
} catch {
|
|
320
|
+
return str;
|
|
321
|
+
}
|
|
322
|
+
};
|
|
323
|
+
/**
|
|
324
|
+
* Extract the filename from a content disposition header
|
|
325
|
+
*/
|
|
326
|
+
function extractFilename(contentDisposition) {
|
|
327
|
+
let filename = "";
|
|
328
|
+
if (contentDisposition) {
|
|
329
|
+
const fileNameMatch = contentDisposition.match(/filename\*=UTF-8''([^;]+)/)?.[1] ?? contentDisposition.match(/filename\s*=\s*"?([^";]+)"?/)?.[1];
|
|
330
|
+
if (fileNameMatch) filename = decodeURIComponentSafe(fileNameMatch.trim());
|
|
331
|
+
}
|
|
332
|
+
return filename;
|
|
333
|
+
}
|
|
334
|
+
//#endregion
|
|
335
|
+
//#region src/v2/blocks/response-block/helpers/process-response-body.ts
|
|
336
|
+
var isBlob = (b) => b instanceof Blob;
|
|
337
|
+
/**
|
|
338
|
+
* Processes the response body of an HTTP request.
|
|
339
|
+
* Extracts MIME type, attachment filename, and generates a data URL.
|
|
340
|
+
*/
|
|
341
|
+
function processResponseBody({ data, headers }) {
|
|
342
|
+
const contentType = headers.find((header) => header.name.toLowerCase() === "content-type");
|
|
343
|
+
const mimeType = contentType?.value ? new MimeTypeParser(contentType.value) : void 0;
|
|
344
|
+
return {
|
|
345
|
+
mimeType,
|
|
346
|
+
attachmentFilename: extractFilename(headers.find((header) => header.name.toLowerCase() === "content-disposition")?.value ?? ""),
|
|
347
|
+
dataUrl: (() => {
|
|
348
|
+
if (isBlob(data)) return URL.createObjectURL(data);
|
|
349
|
+
if (typeof data === "string") return URL.createObjectURL(new Blob([data], { type: mimeType ? mimeType.toString() : void 0 }));
|
|
350
|
+
if (data instanceof Object && Object.keys(data).length) return URL.createObjectURL(new Blob([JSON.stringify(data)], { type: mimeType ? mimeType.toString() : void 0 }));
|
|
351
|
+
return "";
|
|
352
|
+
})()
|
|
353
|
+
};
|
|
354
|
+
}
|
|
355
|
+
//#endregion
|
|
356
|
+
//#region src/v2/blocks/response-block/components/ResponseBodyDownload.vue?vue&type=script&setup=true&lang.ts
|
|
357
|
+
var _hoisted_1$11 = ["download", "href"];
|
|
358
|
+
//#endregion
|
|
359
|
+
//#region src/v2/blocks/response-block/components/ResponseBodyDownload.vue
|
|
360
|
+
var ResponseBodyDownload_default = /* @__PURE__ */ defineComponent({
|
|
361
|
+
__name: "ResponseBodyDownload",
|
|
362
|
+
props: {
|
|
363
|
+
href: {},
|
|
364
|
+
type: {},
|
|
365
|
+
filename: {}
|
|
366
|
+
},
|
|
367
|
+
setup(__props) {
|
|
368
|
+
const props = __props;
|
|
369
|
+
const filenameExtension = computed(() => {
|
|
370
|
+
const extension = getMediaTypeConfig$1(props.type ?? "")?.extension ?? ".unknown";
|
|
371
|
+
return props.filename ? props.filename : `response${extension}`;
|
|
372
|
+
});
|
|
373
|
+
return (_ctx, _cache) => {
|
|
374
|
+
return openBlock(), createElementBlock("a", {
|
|
375
|
+
class: "text-c-3 text-xxs hover:bg-b-3 flex items-center gap-1 rounded px-1.5 py-0.5 no-underline",
|
|
376
|
+
download: `${filenameExtension.value}`,
|
|
377
|
+
href: __props.href,
|
|
378
|
+
onClick: _cache[0] || (_cache[0] = withModifiers(() => {}, ["stop"]))
|
|
379
|
+
}, [createVNode(unref(ScalarIcon), {
|
|
380
|
+
icon: "Download",
|
|
381
|
+
size: "xs"
|
|
382
|
+
}), _cache[1] || (_cache[1] = createElementVNode("span", null, [createElementVNode("span", null, "Download"), createElementVNode("span", { class: "sr-only" }, "Response Body")], -1))], 8, _hoisted_1$11);
|
|
383
|
+
};
|
|
384
|
+
}
|
|
385
|
+
});
|
|
386
|
+
//#endregion
|
|
387
|
+
//#region src/v2/blocks/response-block/components/ResponseBodyInfo.vue
|
|
388
|
+
var _sfc_main = {};
|
|
389
|
+
var _hoisted_1$10 = { class: "flex justify-center px-2 py-3" };
|
|
390
|
+
var _hoisted_2$7 = { class: "text-c-3 p-2 text-sm" };
|
|
391
|
+
function _sfc_render(_ctx, _cache) {
|
|
392
|
+
return openBlock(), createElementBlock("div", _hoisted_1$10, [createElementVNode("div", _hoisted_2$7, [renderSlot(_ctx.$slots, "default")])]);
|
|
393
|
+
}
|
|
394
|
+
var ResponseBodyInfo_default = /* @__PURE__ */ _plugin_vue_export_helper_default(_sfc_main, [["render", _sfc_render]]);
|
|
395
|
+
//#endregion
|
|
396
|
+
//#region src/v2/blocks/response-block/components/ResponseBodyPreview.vue?vue&type=script&setup=true&lang.ts
|
|
397
|
+
var _hoisted_1$9 = ["src"];
|
|
398
|
+
var _hoisted_2$6 = ["src", "type"];
|
|
399
|
+
var _hoisted_3$4 = ["src", "type"];
|
|
400
|
+
var _hoisted_4$2 = ["data", "type"];
|
|
401
|
+
//#endregion
|
|
402
|
+
//#region src/v2/blocks/response-block/components/ResponseBodyPreview.vue
|
|
403
|
+
var ResponseBodyPreview_default = /* @__PURE__ */ _plugin_vue_export_helper_default(/* @__PURE__ */ defineComponent({
|
|
404
|
+
__name: "ResponseBodyPreview",
|
|
405
|
+
props: {
|
|
406
|
+
src: {},
|
|
407
|
+
type: {},
|
|
408
|
+
mode: {},
|
|
409
|
+
alpha: {
|
|
410
|
+
type: Boolean,
|
|
411
|
+
default: false
|
|
412
|
+
}
|
|
413
|
+
},
|
|
414
|
+
setup(__props) {
|
|
415
|
+
const error = ref(false);
|
|
416
|
+
watch(() => __props.src, () => error.value = false);
|
|
417
|
+
return (_ctx, _cache) => {
|
|
418
|
+
return !error.value && __props.src ? (openBlock(), createElementBlock("div", {
|
|
419
|
+
key: 0,
|
|
420
|
+
class: normalizeClass(["flex justify-center overflow-auto rounded-b", { "bg-preview p-2": __props.alpha }])
|
|
421
|
+
}, [__props.mode === "image" ? (openBlock(), createElementBlock("img", {
|
|
422
|
+
key: 0,
|
|
423
|
+
class: normalizeClass(["h-full max-w-full", { rounded: __props.alpha }]),
|
|
424
|
+
src: __props.src,
|
|
425
|
+
onError: _cache[0] || (_cache[0] = ($event) => error.value = true)
|
|
426
|
+
}, null, 42, _hoisted_1$9)) : __props.mode === "video" ? (openBlock(), createElementBlock("video", {
|
|
427
|
+
key: 1,
|
|
428
|
+
autoplay: "",
|
|
429
|
+
controls: "",
|
|
430
|
+
width: "100%",
|
|
431
|
+
onError: _cache[1] || (_cache[1] = ($event) => error.value = true)
|
|
432
|
+
}, [createElementVNode("source", {
|
|
433
|
+
src: __props.src,
|
|
434
|
+
type: __props.type
|
|
435
|
+
}, null, 8, _hoisted_2$6)], 32)) : __props.mode === "audio" ? (openBlock(), createElementBlock("audio", {
|
|
436
|
+
key: 2,
|
|
437
|
+
class: "my-12",
|
|
438
|
+
controls: "",
|
|
439
|
+
onError: _cache[2] || (_cache[2] = ($event) => error.value = true)
|
|
440
|
+
}, [createElementVNode("source", {
|
|
441
|
+
src: __props.src,
|
|
442
|
+
type: __props.type
|
|
443
|
+
}, null, 8, _hoisted_3$4)], 32)) : (openBlock(), createElementBlock("object", {
|
|
444
|
+
key: 3,
|
|
445
|
+
class: "aspect-[4/3] w-full",
|
|
446
|
+
data: __props.src,
|
|
447
|
+
type: __props.type,
|
|
448
|
+
onError: _cache[3] || (_cache[3] = ($event) => error.value = true)
|
|
449
|
+
}, null, 40, _hoisted_4$2))], 2)) : (openBlock(), createBlock(ResponseBodyInfo_default, { key: 1 }, {
|
|
450
|
+
default: withCtx(() => [..._cache[4] || (_cache[4] = [createTextVNode("Preview unavailable", -1)])]),
|
|
451
|
+
_: 1
|
|
452
|
+
}));
|
|
453
|
+
};
|
|
454
|
+
}
|
|
455
|
+
}), [["__scopeId", "data-v-c02b5bb8"]]);
|
|
456
|
+
//#endregion
|
|
457
|
+
//#region src/v2/blocks/response-block/components/ResponseBodyRaw.vue?vue&type=script&setup=true&lang.ts
|
|
458
|
+
var _hoisted_1$8 = { class: "scalar-code-block group/code-block body-raw relative grid min-h-0 overflow-hidden p-px outline-none has-focus-visible:outline" };
|
|
459
|
+
var _hoisted_2$5 = {
|
|
460
|
+
class: "body-raw-scroller custom-scroll relative pr-1",
|
|
461
|
+
tabindex: "0"
|
|
462
|
+
};
|
|
463
|
+
//#endregion
|
|
464
|
+
//#region src/v2/blocks/response-block/components/ResponseBodyRaw.vue
|
|
465
|
+
var ResponseBodyRaw_default = /* @__PURE__ */ _plugin_vue_export_helper_default(/* @__PURE__ */ defineComponent({
|
|
466
|
+
__name: "ResponseBodyRaw",
|
|
467
|
+
props: {
|
|
468
|
+
content: {},
|
|
469
|
+
language: {}
|
|
470
|
+
},
|
|
471
|
+
setup(__props) {
|
|
472
|
+
const props = __props;
|
|
473
|
+
const codeMirrorRef = ref(null);
|
|
474
|
+
/** Base id for the code block */
|
|
475
|
+
const id = useId();
|
|
476
|
+
const { codeMirror } = useCodeMirror({
|
|
477
|
+
codeMirrorRef,
|
|
478
|
+
readOnly: true,
|
|
479
|
+
lineNumbers: true,
|
|
480
|
+
content: toRef(() => prettyPrintJson(props.content)),
|
|
481
|
+
language: toRef(() => props.language),
|
|
482
|
+
forceFoldGutter: true
|
|
483
|
+
});
|
|
484
|
+
const getCurrentContent = () => {
|
|
485
|
+
return codeMirror.value?.state.doc.toString() || "";
|
|
486
|
+
};
|
|
487
|
+
return (_ctx, _cache) => {
|
|
488
|
+
return openBlock(), createElementBlock("div", _hoisted_1$8, [createElementVNode("div", _hoisted_2$5, [createElementVNode("div", {
|
|
489
|
+
ref_key: "codeMirrorRef",
|
|
490
|
+
ref: codeMirrorRef
|
|
491
|
+
}, null, 512)]), getCurrentContent() ? (openBlock(), createBlock(unref(ScalarCodeBlockCopy), {
|
|
492
|
+
key: 0,
|
|
493
|
+
class: "absolute top-2 right-2",
|
|
494
|
+
content: getCurrentContent(),
|
|
495
|
+
"aria-controls": unref(id)
|
|
496
|
+
}, null, 8, ["content", "aria-controls"])) : createCommentVNode("", true)]);
|
|
497
|
+
};
|
|
498
|
+
}
|
|
499
|
+
}), [["__scopeId", "data-v-194605f9"]]);
|
|
500
|
+
//#endregion
|
|
501
|
+
//#region src/v2/blocks/response-block/components/ResponseBodyToggle.vue?vue&type=script&setup=true&lang.ts
|
|
502
|
+
var _hoisted_1$7 = { class: "text-c-3 text-xxs -my-1 flex justify-center gap-0.5 rounded p-0.5" };
|
|
503
|
+
//#endregion
|
|
504
|
+
//#region src/v2/blocks/response-block/components/ResponseBodyToggle.vue
|
|
505
|
+
var ResponseBodyToggle_default = /* @__PURE__ */ defineComponent({
|
|
506
|
+
__name: "ResponseBodyToggle",
|
|
507
|
+
props: { modelValue: { type: Boolean } },
|
|
508
|
+
emits: ["update:modelValue"],
|
|
509
|
+
setup(__props) {
|
|
510
|
+
return (_ctx, _cache) => {
|
|
511
|
+
return openBlock(), createElementBlock("div", _hoisted_1$7, [createElementVNode("button", {
|
|
512
|
+
class: normalizeClass(["hover:bg-b-3 rounded px-1", { "bg-b-3 text-c-1 cursor-default": __props.modelValue }]),
|
|
513
|
+
type: "button",
|
|
514
|
+
onClick: _cache[0] || (_cache[0] = withModifiers(($event) => _ctx.$emit("update:modelValue", true), ["stop"]))
|
|
515
|
+
}, " Preview ", 2), createElementVNode("button", {
|
|
516
|
+
class: normalizeClass(["hover:bg-b-3 rounded px-1", { "bg-b-3 text-c-1 cursor-default": !__props.modelValue }]),
|
|
517
|
+
type: "button",
|
|
518
|
+
onClick: _cache[1] || (_cache[1] = withModifiers(($event) => _ctx.$emit("update:modelValue", false), ["stop"]))
|
|
519
|
+
}, " Raw ", 2)]);
|
|
520
|
+
};
|
|
521
|
+
}
|
|
522
|
+
});
|
|
523
|
+
//#endregion
|
|
524
|
+
//#region src/v2/blocks/response-block/components/ResponseBody.vue?vue&type=script&setup=true&lang.ts
|
|
525
|
+
var _hoisted_1$6 = {
|
|
526
|
+
key: 0,
|
|
527
|
+
class: "bg-b-1 flex max-h-[calc(100%-32px)] flex-col overflow-hidden"
|
|
528
|
+
};
|
|
529
|
+
var _hoisted_2$4 = { class: "box-content flex min-h-8 items-center justify-between border-y px-3" };
|
|
530
|
+
var _hoisted_3$3 = { class: "text-xxs font-code leading-5" };
|
|
531
|
+
//#endregion
|
|
532
|
+
//#region src/v2/blocks/response-block/components/ResponseBody.vue
|
|
533
|
+
var ResponseBody_default = /* @__PURE__ */ _plugin_vue_export_helper_default(/* @__PURE__ */ defineComponent({
|
|
534
|
+
__name: "ResponseBody",
|
|
535
|
+
props: {
|
|
536
|
+
title: {},
|
|
537
|
+
layout: {},
|
|
538
|
+
data: {},
|
|
539
|
+
headers: {}
|
|
540
|
+
},
|
|
541
|
+
setup(__props) {
|
|
542
|
+
/** Preview / Raw toggle */
|
|
543
|
+
const toggle = ref(true);
|
|
544
|
+
const showToggle = computed(() => !!(mediaConfig.value?.raw && mediaConfig.value.preview));
|
|
545
|
+
const showPreview = computed(() => toggle.value || !showToggle.value);
|
|
546
|
+
const showRaw = computed(() => !toggle.value || !showToggle.value);
|
|
547
|
+
const responseBody = computed(() => processResponseBody({
|
|
548
|
+
data: __props.data,
|
|
549
|
+
headers: __props.headers
|
|
550
|
+
}));
|
|
551
|
+
const mediaConfig = computed(() => getMediaTypeConfig(responseBody.value.mimeType?.essence ?? ""));
|
|
552
|
+
return (_ctx, _cache) => {
|
|
553
|
+
return openBlock(), createBlock(unref(CollapsibleSection_default), {
|
|
554
|
+
class: "max-h-content overflow-y-hidden",
|
|
555
|
+
isStatic: __props.layout === "reference"
|
|
556
|
+
}, createSlots({
|
|
557
|
+
title: withCtx(() => [createTextVNode(toDisplayString(__props.title), 1)]),
|
|
558
|
+
default: withCtx(() => [__props.data ? (openBlock(), createElementBlock("div", _hoisted_1$6, [
|
|
559
|
+
createElementVNode("div", _hoisted_2$4, [createElementVNode("span", _hoisted_3$3, toDisplayString(responseBody.value.mimeType?.essence), 1), showToggle.value ? (openBlock(), createBlock(ResponseBodyToggle_default, {
|
|
560
|
+
key: 0,
|
|
561
|
+
modelValue: toggle.value,
|
|
562
|
+
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => toggle.value = $event)
|
|
563
|
+
}, null, 8, ["modelValue"])) : createCommentVNode("", true)]),
|
|
564
|
+
mediaConfig.value?.raw && showRaw.value ? (openBlock(), createBlock(ResponseBodyRaw_default, {
|
|
565
|
+
key: responseBody.value.dataUrl,
|
|
566
|
+
content: __props.data,
|
|
567
|
+
language: mediaConfig.value.language
|
|
568
|
+
}, null, 8, ["content", "language"])) : createCommentVNode("", true),
|
|
569
|
+
mediaConfig.value?.preview && showPreview.value ? (openBlock(), createBlock(ResponseBodyPreview_default, {
|
|
570
|
+
key: responseBody.value.dataUrl,
|
|
571
|
+
alpha: mediaConfig.value.alpha,
|
|
572
|
+
mode: mediaConfig.value.preview,
|
|
573
|
+
src: responseBody.value.dataUrl,
|
|
574
|
+
type: responseBody.value.mimeType?.essence ?? ""
|
|
575
|
+
}, null, 8, [
|
|
576
|
+
"alpha",
|
|
577
|
+
"mode",
|
|
578
|
+
"src",
|
|
579
|
+
"type"
|
|
580
|
+
])) : createCommentVNode("", true),
|
|
581
|
+
!mediaConfig.value?.raw && !mediaConfig.value?.preview ? (openBlock(), createBlock(ResponseBodyInfo_default, { key: 2 }, {
|
|
582
|
+
default: withCtx(() => [..._cache[1] || (_cache[1] = [createTextVNode(" Binary file ", -1)])]),
|
|
583
|
+
_: 1
|
|
584
|
+
})) : createCommentVNode("", true)
|
|
585
|
+
])) : createCommentVNode("", true)]),
|
|
586
|
+
_: 2
|
|
587
|
+
}, [__props.data && responseBody.value.dataUrl ? {
|
|
588
|
+
name: "actions",
|
|
589
|
+
fn: withCtx(() => [createVNode(ResponseBodyDownload_default, {
|
|
590
|
+
filename: responseBody.value.attachmentFilename,
|
|
591
|
+
href: responseBody.value.dataUrl,
|
|
592
|
+
type: responseBody.value.mimeType?.essence
|
|
593
|
+
}, null, 8, [
|
|
594
|
+
"filename",
|
|
595
|
+
"href",
|
|
596
|
+
"type"
|
|
597
|
+
])]),
|
|
598
|
+
key: "0"
|
|
599
|
+
} : void 0]), 1032, ["isStatic"]);
|
|
600
|
+
};
|
|
601
|
+
}
|
|
602
|
+
}), [["__scopeId", "data-v-94c74c13"]]);
|
|
603
|
+
//#endregion
|
|
604
|
+
//#region src/v2/blocks/response-block/components/ResponseBodyStreaming.vue?vue&type=script&setup=true&lang.ts
|
|
605
|
+
var _hoisted_1$5 = { class: "flex w-full items-center justify-between" };
|
|
606
|
+
var _hoisted_2$3 = {
|
|
607
|
+
key: 0,
|
|
608
|
+
class: "mr-2 flex items-center gap-2"
|
|
609
|
+
};
|
|
610
|
+
var _hoisted_3$2 = {
|
|
611
|
+
key: 0,
|
|
612
|
+
class: "text-red bg-b-danger sticky top-0 border-b p-2"
|
|
613
|
+
};
|
|
614
|
+
var _hoisted_4$1 = {
|
|
615
|
+
key: 1,
|
|
616
|
+
class: "p-2"
|
|
617
|
+
};
|
|
618
|
+
//#endregion
|
|
619
|
+
//#region src/v2/blocks/response-block/components/ResponseBodyStreaming.vue
|
|
620
|
+
var ResponseBodyStreaming_default = /* @__PURE__ */ defineComponent({
|
|
621
|
+
__name: "ResponseBodyStreaming",
|
|
622
|
+
props: { reader: {} },
|
|
623
|
+
setup(__props) {
|
|
624
|
+
const loader = useLoadingState();
|
|
625
|
+
const textContent = ref("");
|
|
626
|
+
const errorRef = ref(null);
|
|
627
|
+
const contentContainer = ref(null);
|
|
628
|
+
/** Track the current reader to prevent race conditions when reader changes */
|
|
629
|
+
const currentReader = ref(null);
|
|
630
|
+
/** Current decoder instance - reset for each new stream to prevent buffer corruption */
|
|
631
|
+
const decoder = ref(null);
|
|
632
|
+
/**
|
|
633
|
+
* Scrolls the content container to the bottom
|
|
634
|
+
*/
|
|
635
|
+
const scrollToBottom = () => {
|
|
636
|
+
if (contentContainer.value) contentContainer.value.scrollTop = contentContainer.value.scrollHeight;
|
|
637
|
+
};
|
|
638
|
+
watch(textContent, async () => {
|
|
639
|
+
await nextTick(scrollToBottom);
|
|
640
|
+
});
|
|
641
|
+
/**
|
|
642
|
+
* Reads the stream and appends the content
|
|
643
|
+
*/
|
|
644
|
+
async function readStream(streamReader) {
|
|
645
|
+
try {
|
|
646
|
+
while (loader.isLoading && currentReader.value === streamReader) {
|
|
647
|
+
const { done, value } = await streamReader.read();
|
|
648
|
+
if (currentReader.value !== streamReader) break;
|
|
649
|
+
if (done) {
|
|
650
|
+
loader.clear();
|
|
651
|
+
break;
|
|
652
|
+
}
|
|
653
|
+
if (value && decoder.value) textContent.value += decoder.value.decode(value, { stream: true });
|
|
654
|
+
}
|
|
655
|
+
} catch (error) {
|
|
656
|
+
if (currentReader.value === streamReader) {
|
|
657
|
+
console.error("Error reading stream:", error);
|
|
658
|
+
loader.clear();
|
|
659
|
+
errorRef.value = error;
|
|
660
|
+
}
|
|
661
|
+
} finally {
|
|
662
|
+
if (currentReader.value === streamReader && decoder.value) textContent.value += decoder.value.decode();
|
|
663
|
+
}
|
|
664
|
+
}
|
|
665
|
+
const startStreaming = () => {
|
|
666
|
+
if (currentReader.value) currentReader.value.cancel();
|
|
667
|
+
currentReader.value = __props.reader;
|
|
668
|
+
decoder.value = new TextDecoder();
|
|
669
|
+
loader.start();
|
|
670
|
+
textContent.value = "";
|
|
671
|
+
errorRef.value = null;
|
|
672
|
+
readStream(__props.reader);
|
|
673
|
+
};
|
|
674
|
+
const stopStreaming = () => {
|
|
675
|
+
if (currentReader.value) {
|
|
676
|
+
currentReader.value.cancel();
|
|
677
|
+
currentReader.value = null;
|
|
678
|
+
}
|
|
679
|
+
loader.clear();
|
|
680
|
+
};
|
|
681
|
+
watch(() => __props.reader, startStreaming, { immediate: true });
|
|
682
|
+
onBeforeUnmount(stopStreaming);
|
|
683
|
+
return (_ctx, _cache) => {
|
|
684
|
+
return openBlock(), createBlock(unref(CollapsibleSection_default), { class: "max-h-content overflow-y-hidden" }, createSlots({
|
|
685
|
+
title: withCtx(() => [createElementVNode("div", _hoisted_1$5, [_cache[1] || (_cache[1] = createElementVNode("div", null, "Body", -1)), unref(loader).isLoading ? (openBlock(), createElementBlock("div", _hoisted_2$3, [createVNode(unref(ScalarLoading), {
|
|
686
|
+
loadingState: unref(loader),
|
|
687
|
+
size: "xs"
|
|
688
|
+
}, null, 8, ["loadingState"]), _cache[0] || (_cache[0] = createElementVNode("span", { class: "text-c-2" }, " Listening… ", -1))])) : createCommentVNode("", true)])]),
|
|
689
|
+
default: withCtx(() => [createElementVNode("div", {
|
|
690
|
+
ref_key: "contentContainer",
|
|
691
|
+
ref: contentContainer,
|
|
692
|
+
class: "text-xxs font-code h-full overflow-auto leading-6 whitespace-pre-wrap"
|
|
693
|
+
}, [errorRef.value ? (openBlock(), createElementBlock("div", _hoisted_3$2, toDisplayString(errorRef.value.message), 1)) : createCommentVNode("", true), textContent.value ? (openBlock(), createElementBlock("div", _hoisted_4$1, toDisplayString(textContent.value), 1)) : createCommentVNode("", true)], 512)]),
|
|
694
|
+
_: 2
|
|
695
|
+
}, [unref(loader).isLoading ? {
|
|
696
|
+
name: "actions",
|
|
697
|
+
fn: withCtx(() => [createVNode(unref(ScalarButton), {
|
|
698
|
+
size: "sm",
|
|
699
|
+
variant: "ghost",
|
|
700
|
+
onClick: stopStreaming
|
|
701
|
+
}, {
|
|
702
|
+
default: withCtx(() => [..._cache[2] || (_cache[2] = [createTextVNode(" Cancel ", -1)])]),
|
|
703
|
+
_: 1
|
|
704
|
+
})]),
|
|
705
|
+
key: "0"
|
|
706
|
+
} : void 0]), 1024);
|
|
707
|
+
};
|
|
708
|
+
}
|
|
709
|
+
});
|
|
710
|
+
//#endregion
|
|
711
|
+
//#region src/v2/blocks/response-block/components/ResponseBodyVirtual.vue
|
|
712
|
+
var ResponseBodyVirtual_default = /* @__PURE__ */ defineComponent({
|
|
713
|
+
__name: "ResponseBodyVirtual",
|
|
714
|
+
props: {
|
|
715
|
+
content: {},
|
|
716
|
+
data: {},
|
|
717
|
+
headers: {}
|
|
718
|
+
},
|
|
719
|
+
setup(__props) {
|
|
720
|
+
const textContent = computed(() => formatJsonOrYamlString(__props.content));
|
|
721
|
+
const responseBody = computed(() => processResponseBody({
|
|
722
|
+
data: __props.data,
|
|
723
|
+
headers: __props.headers
|
|
724
|
+
}));
|
|
725
|
+
return (_ctx, _cache) => {
|
|
726
|
+
return openBlock(), createBlock(unref(CollapsibleSection_default), { class: "!max-h-100% response-body-virtual overflow-x-auto" }, createSlots({
|
|
727
|
+
title: withCtx(() => [_cache[0] || (_cache[0] = createTextVNode("Body", -1))]),
|
|
728
|
+
default: withCtx(() => [_cache[1] || (_cache[1] = createElementVNode("div", { class: "font-code text-xxs rounded-t border border-b-0 px-2.5 py-1.5" }, " This response body is massive! Syntax highlighting won't work here. ", -1)), createVNode(unref(ScalarVirtualText), {
|
|
729
|
+
containerClass: "custom-scroll scalar-code-block border rounded-b flex flex-1 max-h-screen",
|
|
730
|
+
contentClass: "language-plaintext whitespace-pre font-code text-base",
|
|
731
|
+
lineHeight: 20,
|
|
732
|
+
text: textContent.value
|
|
733
|
+
}, null, 8, ["text"])]),
|
|
734
|
+
_: 2
|
|
735
|
+
}, [responseBody.value.dataUrl ? {
|
|
736
|
+
name: "actions",
|
|
737
|
+
fn: withCtx(() => [createVNode(ResponseBodyDownload_default, {
|
|
738
|
+
filename: responseBody.value.attachmentFilename,
|
|
739
|
+
href: responseBody.value.dataUrl,
|
|
740
|
+
type: responseBody.value.mimeType?.essence
|
|
741
|
+
}, null, 8, [
|
|
742
|
+
"filename",
|
|
743
|
+
"href",
|
|
744
|
+
"type"
|
|
745
|
+
])]),
|
|
746
|
+
key: "0"
|
|
747
|
+
} : void 0]), 1024);
|
|
748
|
+
};
|
|
749
|
+
}
|
|
750
|
+
});
|
|
751
|
+
//#endregion
|
|
752
|
+
//#region src/v2/blocks/response-block/components/ResponseCookies.vue?vue&type=script&setup=true&lang.ts
|
|
753
|
+
var _hoisted_1$4 = {
|
|
754
|
+
key: 1,
|
|
755
|
+
class: "text-c-3 bg-b-1 flex min-h-[64px] items-center justify-center border-t px-4 text-sm"
|
|
756
|
+
};
|
|
757
|
+
//#endregion
|
|
758
|
+
//#region src/v2/blocks/response-block/components/ResponseCookies.vue
|
|
759
|
+
var ResponseCookies_default = /* @__PURE__ */ defineComponent({
|
|
760
|
+
__name: "ResponseCookies",
|
|
761
|
+
props: { cookies: {} },
|
|
762
|
+
setup(__props) {
|
|
763
|
+
return (_ctx, _cache) => {
|
|
764
|
+
return openBlock(), createBlock(unref(CollapsibleSection_default), {
|
|
765
|
+
defaultOpen: false,
|
|
766
|
+
itemCount: __props.cookies.length
|
|
767
|
+
}, {
|
|
768
|
+
title: withCtx(() => [..._cache[0] || (_cache[0] = [createTextVNode("Cookies", -1)])]),
|
|
769
|
+
default: withCtx(() => [(openBlock(), createElementBlock(Fragment, { key: 0 }, [__props.cookies.length ? (openBlock(), createBlock(DataTable_default, {
|
|
770
|
+
key: 0,
|
|
771
|
+
class: "flex-1",
|
|
772
|
+
columns: ["", ""]
|
|
773
|
+
}, {
|
|
774
|
+
default: withCtx(() => [(openBlock(true), createElementBlock(Fragment, null, renderList(__props.cookies, (item) => {
|
|
775
|
+
return openBlock(), createBlock(DataTableRow_default, { key: item.name }, {
|
|
776
|
+
default: withCtx(() => [createVNode(DataTableText_default, { text: item.name }, null, 8, ["text"]), createVNode(DataTableText_default, { text: item.value }, null, 8, ["text"])]),
|
|
777
|
+
_: 2
|
|
778
|
+
}, 1024);
|
|
779
|
+
}), 128))]),
|
|
780
|
+
_: 1
|
|
781
|
+
})) : (openBlock(), createElementBlock("div", _hoisted_1$4, " No cookies "))], 64))]),
|
|
782
|
+
_: 1
|
|
783
|
+
}, 8, ["itemCount"]);
|
|
784
|
+
};
|
|
785
|
+
}
|
|
786
|
+
});
|
|
787
|
+
//#endregion
|
|
788
|
+
//#region src/v2/blocks/response-block/components/ResponseEmpty.vue?vue&type=script&setup=true&lang.ts
|
|
789
|
+
var _hoisted_1$3 = { class: "flex-center relative flex flex-1 flex-col gap-6 p-2 capitalize" };
|
|
790
|
+
var _hoisted_2$2 = {
|
|
791
|
+
key: 0,
|
|
792
|
+
class: "scalar-version-number"
|
|
793
|
+
};
|
|
794
|
+
var _hoisted_3$1 = { class: "text-c-3 right-4 mt-auto flex w-full flex-col items-end gap-2 text-sm" };
|
|
795
|
+
//#endregion
|
|
796
|
+
//#region src/v2/blocks/response-block/components/ResponseEmpty.vue
|
|
797
|
+
var ResponseEmpty_default = /* @__PURE__ */ _plugin_vue_export_helper_default(/* @__PURE__ */ defineComponent({
|
|
798
|
+
__name: "ResponseEmpty",
|
|
799
|
+
props: {
|
|
800
|
+
layout: {},
|
|
801
|
+
totalPerformedRequests: {},
|
|
802
|
+
appVersion: {}
|
|
803
|
+
},
|
|
804
|
+
emits: [
|
|
805
|
+
"addRequest",
|
|
806
|
+
"sendRequest",
|
|
807
|
+
"openCommandPalette"
|
|
808
|
+
],
|
|
809
|
+
setup(__props, { emit: __emit }) {
|
|
810
|
+
const emits = __emit;
|
|
811
|
+
return (_ctx, _cache) => {
|
|
812
|
+
return openBlock(), createElementBlock("div", _hoisted_1$3, [createElementVNode("div", { class: normalizeClass(["flex h-[calc(100%_-_50px)] flex-col items-center justify-center", { "hidden opacity-0": __props.totalPerformedRequests > 0 && __props.layout !== "modal" }]) }, [
|
|
813
|
+
__props.layout !== "modal" ? (openBlock(), createElementBlock("div", _hoisted_2$2, [createTextVNode(" Scalar App V" + toDisplayString(__props.appVersion) + " Beta ", 1), _cache[3] || (_cache[3] = createElementVNode("div", { class: "mt-2" }, [createElementVNode("a", {
|
|
814
|
+
href: "https://github.com/scalar/scalar/issues/2669",
|
|
815
|
+
target: "_blank"
|
|
816
|
+
}, " Roadmap ")], -1))])) : createCommentVNode("", true),
|
|
817
|
+
_cache[4] || (_cache[4] = createElementVNode("a", {
|
|
818
|
+
class: "gitbook-show scalar-version-number",
|
|
819
|
+
href: "https://www.scalar.com",
|
|
820
|
+
target: "_blank"
|
|
821
|
+
}, " Powered By Scalar.com ", -1)),
|
|
822
|
+
createVNode(ScalarAsciiArt_default, {
|
|
823
|
+
art: unref(computer_default),
|
|
824
|
+
class: "text-c-3"
|
|
825
|
+
}, null, 8, ["art"])
|
|
826
|
+
], 2), createElementVNode("div", _hoisted_3$1, [
|
|
827
|
+
__props.layout !== "modal" ? (openBlock(), createElementBlock("button", {
|
|
828
|
+
key: 0,
|
|
829
|
+
class: "flex items-center gap-1.5",
|
|
830
|
+
type: "button",
|
|
831
|
+
onClick: _cache[0] || (_cache[0] = ($event) => emits("openCommandPalette"))
|
|
832
|
+
}, [_cache[5] || (_cache[5] = createTextVNode(" Get Started ", -1)), createVNode(unref(ScalarHotkey), {
|
|
833
|
+
hotkey: "k",
|
|
834
|
+
modifier: ["default"]
|
|
835
|
+
})])) : createCommentVNode("", true),
|
|
836
|
+
__props.layout === "desktop" ? (openBlock(), createElementBlock("button", {
|
|
837
|
+
key: 1,
|
|
838
|
+
class: "flex items-center gap-1.5",
|
|
839
|
+
type: "button",
|
|
840
|
+
onClick: _cache[1] || (_cache[1] = ($event) => emits("addRequest"))
|
|
841
|
+
}, [_cache[6] || (_cache[6] = createTextVNode(" New Request ", -1)), createVNode(unref(ScalarHotkey), { hotkey: "N" })])) : createCommentVNode("", true),
|
|
842
|
+
createElementVNode("button", {
|
|
843
|
+
class: "flex items-center gap-1.5",
|
|
844
|
+
type: "button",
|
|
845
|
+
onClick: _cache[2] || (_cache[2] = ($event) => emits("sendRequest"))
|
|
846
|
+
}, [_cache[7] || (_cache[7] = createTextVNode(" Send Request ", -1)), createVNode(unref(ScalarHotkey), { hotkey: "↵" })])
|
|
847
|
+
])]);
|
|
848
|
+
};
|
|
849
|
+
}
|
|
850
|
+
}), [["__scopeId", "data-v-34b57d9d"]]);
|
|
851
|
+
//#endregion
|
|
852
|
+
//#region src/v2/blocks/response-block/components/ResponseLoadingOverlay.vue?vue&type=script&setup=true&lang.ts
|
|
853
|
+
var _hoisted_1$2 = {
|
|
854
|
+
key: 0,
|
|
855
|
+
class: "bg-b-1 z-overlay absolute inset-0 flex flex-col items-center justify-center gap-6"
|
|
856
|
+
};
|
|
857
|
+
//#endregion
|
|
858
|
+
//#region src/v2/blocks/response-block/components/ResponseLoadingOverlay.vue
|
|
859
|
+
var ResponseLoadingOverlay_default = /* @__PURE__ */ _plugin_vue_export_helper_default(/* @__PURE__ */ defineComponent({
|
|
860
|
+
__name: "ResponseLoadingOverlay",
|
|
861
|
+
props: { eventBus: {} },
|
|
862
|
+
setup(__props) {
|
|
863
|
+
const loader = useLoadingState();
|
|
864
|
+
const timeout = ref();
|
|
865
|
+
const startLoading = () => {
|
|
866
|
+
timeout.value = setTimeout(() => loader.start(), 1e3);
|
|
867
|
+
};
|
|
868
|
+
const stopLoading = () => {
|
|
869
|
+
clearTimeout(timeout.value);
|
|
870
|
+
timeout.value = void 0;
|
|
871
|
+
loader.clear();
|
|
872
|
+
};
|
|
873
|
+
onMounted(() => {
|
|
874
|
+
__props.eventBus.on("hooks:on:request:sent", startLoading);
|
|
875
|
+
__props.eventBus.on("hooks:on:request:complete", stopLoading);
|
|
876
|
+
});
|
|
877
|
+
onBeforeUnmount(() => {
|
|
878
|
+
__props.eventBus.off("hooks:on:request:sent", startLoading);
|
|
879
|
+
__props.eventBus.off("hooks:on:request:complete", stopLoading);
|
|
880
|
+
stopLoading();
|
|
881
|
+
});
|
|
882
|
+
return (_ctx, _cache) => {
|
|
883
|
+
return openBlock(), createBlock(Transition, null, {
|
|
884
|
+
default: withCtx(() => [unref(loader).isActive ? (openBlock(), createElementBlock("div", _hoisted_1$2, [createVNode(unref(ScalarLoading), {
|
|
885
|
+
class: "text-c-3",
|
|
886
|
+
loader: unref(loader),
|
|
887
|
+
size: "3xl"
|
|
888
|
+
}, null, 8, ["loader"]), createVNode(unref(ScalarButton), {
|
|
889
|
+
variant: "ghost",
|
|
890
|
+
onClick: _cache[0] || (_cache[0] = ($event) => __props.eventBus.emit("operation:cancel:request"))
|
|
891
|
+
}, {
|
|
892
|
+
default: withCtx(() => [..._cache[1] || (_cache[1] = [createTextVNode(" Cancel ", -1)])]),
|
|
893
|
+
_: 1
|
|
894
|
+
})])) : createCommentVNode("", true)]),
|
|
895
|
+
_: 1
|
|
896
|
+
});
|
|
897
|
+
};
|
|
898
|
+
}
|
|
899
|
+
}), [["__scopeId", "data-v-1f35725e"]]);
|
|
900
|
+
//#endregion
|
|
901
|
+
//#region src/v2/blocks/response-block/helpers/get-content-length.ts
|
|
902
|
+
/** Extract content length from headers */
|
|
903
|
+
var getContentLength = (response) => {
|
|
904
|
+
const contentLength = Number.parseInt(response.headers?.["Content-Length"] || response.headers?.["content-length"] || "0", 10);
|
|
905
|
+
if (isNaN(contentLength) || contentLength <= 0) return;
|
|
906
|
+
return prettyBytes(contentLength);
|
|
907
|
+
};
|
|
908
|
+
//#endregion
|
|
909
|
+
//#region src/v2/blocks/response-block/components/ResponseMetaInformation.vue?vue&type=script&setup=true&lang.ts
|
|
910
|
+
var _hoisted_1$1 = { class: "text-c-1 flex gap-1.5" };
|
|
911
|
+
var _hoisted_2$1 = { key: 0 };
|
|
912
|
+
var _hoisted_3 = { key: 0 };
|
|
913
|
+
var _hoisted_4 = { key: 1 };
|
|
914
|
+
//#endregion
|
|
915
|
+
//#region src/v2/blocks/response-block/components/ResponseMetaInformation.vue
|
|
916
|
+
var ResponseMetaInformation_default = /* @__PURE__ */ defineComponent({
|
|
917
|
+
__name: "ResponseMetaInformation",
|
|
918
|
+
props: {
|
|
919
|
+
response: {},
|
|
920
|
+
eventBus: {}
|
|
921
|
+
},
|
|
922
|
+
setup(__props) {
|
|
923
|
+
const interval = ref();
|
|
924
|
+
const stopwatch = ref(0);
|
|
925
|
+
const stopStopwatch = () => {
|
|
926
|
+
clearInterval(interval.value);
|
|
927
|
+
interval.value = void 0;
|
|
928
|
+
stopwatch.value = 0;
|
|
929
|
+
};
|
|
930
|
+
const startStopwatch = () => {
|
|
931
|
+
interval.value = setInterval(() => stopwatch.value += 1e3, 1e3);
|
|
932
|
+
};
|
|
933
|
+
onMounted(() => {
|
|
934
|
+
__props.eventBus.on("hooks:on:request:sent", startStopwatch);
|
|
935
|
+
__props.eventBus.on("hooks:on:request:complete", stopStopwatch);
|
|
936
|
+
});
|
|
937
|
+
onBeforeUnmount(() => {
|
|
938
|
+
__props.eventBus.off("hooks:on:request:sent", startStopwatch);
|
|
939
|
+
__props.eventBus.off("hooks:on:request:complete", stopStopwatch);
|
|
940
|
+
stopStopwatch();
|
|
941
|
+
});
|
|
942
|
+
/** Status text for the response */
|
|
943
|
+
const statusCodeInformation = computed(() => {
|
|
944
|
+
const responseStatusCode = __props.response?.status;
|
|
945
|
+
if (!responseStatusCode) return;
|
|
946
|
+
return httpStatusCodes[responseStatusCode] ?? void 0;
|
|
947
|
+
});
|
|
948
|
+
return (_ctx, _cache) => {
|
|
949
|
+
return openBlock(), createElementBlock("div", _hoisted_1$1, [interval.value && stopwatch.value ? (openBlock(), createElementBlock("span", _hoisted_2$1, toDisplayString(unref(prettyMilliseconds)(stopwatch.value)), 1)) : (openBlock(), createElementBlock(Fragment, { key: 1 }, [
|
|
950
|
+
createElementVNode("span", null, [_cache[0] || (_cache[0] = createElementVNode("span", { class: "sr-only" }, "Response Information, Duration:", -1)), createTextVNode(" " + toDisplayString(unref(prettyMilliseconds)(__props.response.duration)), 1)]),
|
|
951
|
+
unref(getContentLength)(__props.response) ? (openBlock(), createElementBlock("span", _hoisted_3, [_cache[1] || (_cache[1] = createElementVNode("span", { class: "sr-only" }, ", Size:", -1)), createTextVNode(" " + toDisplayString(unref(getContentLength)(__props.response)), 1)])) : createCommentVNode("", true),
|
|
952
|
+
statusCodeInformation.value ? (openBlock(), createElementBlock(Fragment, { key: 1 }, [_cache[2] || (_cache[2] = createElementVNode("span", { class: "sr-only" }, ", Status:", -1)), statusCodeInformation.value.url ? (openBlock(), createBlock(HelpfulLink_default, {
|
|
953
|
+
key: 0,
|
|
954
|
+
class: "flex items-center gap-1.5",
|
|
955
|
+
href: statusCodeInformation.value.url
|
|
956
|
+
}, {
|
|
957
|
+
default: withCtx(() => [createTextVNode(toDisplayString(__props.response.status) + " " + toDisplayString(statusCodeInformation.value.name) + " ", 1), createElementVNode("span", {
|
|
958
|
+
class: "block h-1.5 w-1.5 rounded-full",
|
|
959
|
+
style: normalizeStyle({ backgroundColor: statusCodeInformation.value.color })
|
|
960
|
+
}, null, 4)]),
|
|
961
|
+
_: 1
|
|
962
|
+
}, 8, ["href"])) : (openBlock(), createElementBlock("span", _hoisted_4, [createTextVNode(toDisplayString(__props.response.status) + " " + toDisplayString(statusCodeInformation.value.name) + " ", 1), createElementVNode("span", {
|
|
963
|
+
class: "block h-1.5 w-1.5 rounded-full",
|
|
964
|
+
style: normalizeStyle({ backgroundColor: statusCodeInformation.value.color })
|
|
965
|
+
}, null, 4)]))], 64)) : createCommentVNode("", true)
|
|
966
|
+
], 64))]);
|
|
967
|
+
};
|
|
968
|
+
}
|
|
969
|
+
});
|
|
970
|
+
//#endregion
|
|
971
|
+
//#region src/v2/blocks/response-block/helpers/parse-set-cookie.ts
|
|
972
|
+
/**
|
|
973
|
+
* Parse a Set-Cookie header value into name and value.
|
|
974
|
+
*
|
|
975
|
+
* Set-Cookie headers have the format: name=value; attribute1; attribute2=value2
|
|
976
|
+
* We extract just the cookie name and value (the part before the first semicolon).
|
|
977
|
+
*
|
|
978
|
+
* @param setCookieValue - The full Set-Cookie header value
|
|
979
|
+
* @returns Object with cookie name and value, or null if parsing fails
|
|
980
|
+
*
|
|
981
|
+
* @example
|
|
982
|
+
* parseSetCookie('sessionId=abc123; Path=/; HttpOnly')
|
|
983
|
+
* // Returns: { name: 'sessionId', value: 'abc123; Path=/; HttpOnly' }
|
|
984
|
+
*/
|
|
985
|
+
var parseSetCookie = (setCookieValue) => {
|
|
986
|
+
if (!setCookieValue || typeof setCookieValue !== "string") return null;
|
|
987
|
+
const firstEqualsIndex = setCookieValue.indexOf("=");
|
|
988
|
+
if (firstEqualsIndex === -1) return null;
|
|
989
|
+
const name = setCookieValue.substring(0, firstEqualsIndex).trim();
|
|
990
|
+
const value = setCookieValue.substring(firstEqualsIndex + 1).trim();
|
|
991
|
+
if (!name) return null;
|
|
992
|
+
return {
|
|
993
|
+
name,
|
|
994
|
+
value
|
|
995
|
+
};
|
|
996
|
+
};
|
|
997
|
+
//#endregion
|
|
998
|
+
//#region src/v2/blocks/response-block/ResponseBlock.vue?vue&type=script&setup=true&lang.ts
|
|
999
|
+
var _hoisted_1 = { class: "flex h-8 flex-1 items-center" };
|
|
1000
|
+
var _hoisted_2 = ["id", "role"];
|
|
1001
|
+
var VIRTUALIZATION_THRESHOLD = 2e5;
|
|
1002
|
+
//#endregion
|
|
1003
|
+
//#region src/v2/blocks/response-block/ResponseBlock.vue
|
|
1004
|
+
var ResponseBlock_default = /* @__PURE__ */ _plugin_vue_export_helper_default(/* @__PURE__ */ defineComponent({
|
|
1005
|
+
__name: "ResponseBlock",
|
|
1006
|
+
props: {
|
|
1007
|
+
response: {},
|
|
1008
|
+
request: {},
|
|
1009
|
+
layout: {},
|
|
1010
|
+
totalPerformedRequests: {},
|
|
1011
|
+
appVersion: {},
|
|
1012
|
+
plugins: {},
|
|
1013
|
+
eventBus: {}
|
|
1014
|
+
},
|
|
1015
|
+
setup(__props, { expose: __expose }) {
|
|
1016
|
+
const responseHeaders = computed(() => {
|
|
1017
|
+
const headers = __props.response?.headers;
|
|
1018
|
+
return headers ? Object.keys(headers).map((key) => ({
|
|
1019
|
+
name: key,
|
|
1020
|
+
value: headers[key] ?? ""
|
|
1021
|
+
})) : [];
|
|
1022
|
+
});
|
|
1023
|
+
const responseCookies = computed(() => __props.response?.cookieHeaderKeys.map((setCookieValue) => parseSetCookie(setCookieValue)).filter(isDefined$1) ?? []);
|
|
1024
|
+
const responseSections = [
|
|
1025
|
+
"Cookies",
|
|
1026
|
+
"Headers",
|
|
1027
|
+
"Body"
|
|
1028
|
+
];
|
|
1029
|
+
const activeFilter = ref("All");
|
|
1030
|
+
const filters = computed(() => ["All", ...responseSections]);
|
|
1031
|
+
const filterIds = computed(() => Object.fromEntries(filters.value.map((section) => [section, useId()])));
|
|
1032
|
+
/** Threshold for virtualizing response bodies in bytes */
|
|
1033
|
+
const shouldVirtualize = computed(() => {
|
|
1034
|
+
if (!__props.response || !("size" in __props.response)) return false;
|
|
1035
|
+
const contentType = __props.response.headers?.["content-type"] || __props.response.headers?.["Content-Type"];
|
|
1036
|
+
if (!contentType || (__props.response.size ?? 0) <= VIRTUALIZATION_THRESHOLD) return false;
|
|
1037
|
+
if (contentType.includes("text/html")) return false;
|
|
1038
|
+
return textMediaTypes.some((type) => contentType.includes(type)) && (__props.response.size ?? 0) > VIRTUALIZATION_THRESHOLD;
|
|
1039
|
+
});
|
|
1040
|
+
const requestHeaders = computed(() => __props.request?.headers ? [...__props.request.headers].map((header) => ({
|
|
1041
|
+
name: header[0],
|
|
1042
|
+
value: header[1],
|
|
1043
|
+
required: false
|
|
1044
|
+
})) : []);
|
|
1045
|
+
const isSectionVisible = (section) => {
|
|
1046
|
+
if (activeFilter.value === "All" || activeFilter.value === section) return true;
|
|
1047
|
+
return false;
|
|
1048
|
+
};
|
|
1049
|
+
__expose({
|
|
1050
|
+
responseHeaders,
|
|
1051
|
+
responseCookies,
|
|
1052
|
+
requestHeaders,
|
|
1053
|
+
shouldVirtualize,
|
|
1054
|
+
activeFilter,
|
|
1055
|
+
filters
|
|
1056
|
+
});
|
|
1057
|
+
return (_ctx, _cache) => {
|
|
1058
|
+
return openBlock(), createBlock(ViewLayoutSection_default, { "aria-label": "Response" }, {
|
|
1059
|
+
title: withCtx(() => [createElementVNode("div", _hoisted_1, [createElementVNode("div", {
|
|
1060
|
+
"aria-live": "polite",
|
|
1061
|
+
class: normalizeClass(["flex items-center", { "animate-response-heading": __props.response }])
|
|
1062
|
+
}, [_cache[4] || (_cache[4] = createElementVNode("span", { class: "response-heading pointer-events-none absolute" }, " Response ", -1)), __props.response ? (openBlock(), createBlock(ResponseMetaInformation_default, {
|
|
1063
|
+
key: 0,
|
|
1064
|
+
class: "animate-response-children",
|
|
1065
|
+
eventBus: __props.eventBus,
|
|
1066
|
+
response: __props.response
|
|
1067
|
+
}, null, 8, ["eventBus", "response"])) : createCommentVNode("", true)], 2), createVNode(SectionFilter_default, {
|
|
1068
|
+
modelValue: activeFilter.value,
|
|
1069
|
+
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => activeFilter.value = $event),
|
|
1070
|
+
filterIds: filterIds.value,
|
|
1071
|
+
filters: filters.value
|
|
1072
|
+
}, null, 8, [
|
|
1073
|
+
"modelValue",
|
|
1074
|
+
"filterIds",
|
|
1075
|
+
"filters"
|
|
1076
|
+
])])]),
|
|
1077
|
+
default: withCtx(() => [createElementVNode("div", {
|
|
1078
|
+
id: filterIds.value.All,
|
|
1079
|
+
class: normalizeClass(["custom-scroll response-section-content relative grid h-full justify-stretch", { "content-start": __props.response }]),
|
|
1080
|
+
role: activeFilter.value === "All" && __props.response ? "tabpanel" : "none"
|
|
1081
|
+
}, [!__props.response ? (openBlock(), createBlock(ResponseEmpty_default, {
|
|
1082
|
+
key: 0,
|
|
1083
|
+
appVersion: __props.appVersion,
|
|
1084
|
+
layout: __props.layout,
|
|
1085
|
+
totalPerformedRequests: __props.totalPerformedRequests,
|
|
1086
|
+
onAddRequest: _cache[1] || (_cache[1] = ($event) => __props.eventBus.emit("ui:open:command-palette", {
|
|
1087
|
+
action: "create-request",
|
|
1088
|
+
payload: void 0
|
|
1089
|
+
})),
|
|
1090
|
+
onOpenCommandPalette: _cache[2] || (_cache[2] = ($event) => __props.eventBus.emit("ui:open:command-palette")),
|
|
1091
|
+
onSendRequest: _cache[3] || (_cache[3] = ($event) => __props.eventBus.emit("operation:send:request:hotkey"))
|
|
1092
|
+
}, null, 8, [
|
|
1093
|
+
"appVersion",
|
|
1094
|
+
"layout",
|
|
1095
|
+
"totalPerformedRequests"
|
|
1096
|
+
])) : (openBlock(), createElementBlock(Fragment, { key: 1 }, [
|
|
1097
|
+
isSectionVisible("Cookies") ? (openBlock(), createBlock(ResponseCookies_default, {
|
|
1098
|
+
key: 0,
|
|
1099
|
+
id: filterIds.value.Cookies,
|
|
1100
|
+
class: "response-section-content-cookies",
|
|
1101
|
+
cookies: responseCookies.value,
|
|
1102
|
+
role: activeFilter.value === "All" ? "none" : "tabpanel"
|
|
1103
|
+
}, null, 8, [
|
|
1104
|
+
"id",
|
|
1105
|
+
"cookies",
|
|
1106
|
+
"role"
|
|
1107
|
+
])) : createCommentVNode("", true),
|
|
1108
|
+
isSectionVisible("Headers") ? (openBlock(), createBlock(Headers_default, {
|
|
1109
|
+
key: 1,
|
|
1110
|
+
id: filterIds.value.Headers,
|
|
1111
|
+
class: "response-section-content-headers",
|
|
1112
|
+
headers: requestHeaders.value,
|
|
1113
|
+
role: activeFilter.value === "All" ? "none" : "tabpanel"
|
|
1114
|
+
}, {
|
|
1115
|
+
title: withCtx(() => [..._cache[5] || (_cache[5] = [createTextVNode("Request Headers", -1)])]),
|
|
1116
|
+
_: 1
|
|
1117
|
+
}, 8, [
|
|
1118
|
+
"id",
|
|
1119
|
+
"headers",
|
|
1120
|
+
"role"
|
|
1121
|
+
])) : createCommentVNode("", true),
|
|
1122
|
+
isSectionVisible("Headers") ? (openBlock(), createBlock(Headers_default, {
|
|
1123
|
+
key: 2,
|
|
1124
|
+
id: filterIds.value.Headers,
|
|
1125
|
+
class: "response-section-content-headers",
|
|
1126
|
+
headers: responseHeaders.value,
|
|
1127
|
+
role: activeFilter.value === "All" ? "none" : "tabpanel"
|
|
1128
|
+
}, {
|
|
1129
|
+
title: withCtx(() => [..._cache[6] || (_cache[6] = [createTextVNode("Response Headers", -1)])]),
|
|
1130
|
+
_: 1
|
|
1131
|
+
}, 8, [
|
|
1132
|
+
"id",
|
|
1133
|
+
"headers",
|
|
1134
|
+
"role"
|
|
1135
|
+
])) : createCommentVNode("", true),
|
|
1136
|
+
(openBlock(true), createElementBlock(Fragment, null, renderList(__props.plugins, (plugin, index) => {
|
|
1137
|
+
return openBlock(), createBlock(unref(ScalarErrorBoundary), { key: index }, {
|
|
1138
|
+
default: withCtx(() => [plugin?.components?.response ? withDirectives((openBlock(), createBlock(resolveDynamicComponent(plugin.components.response.component), mergeProps({
|
|
1139
|
+
key: 0,
|
|
1140
|
+
ref_for: true
|
|
1141
|
+
}, plugin.components.response.additionalProps), null, 16)), [[vShow, activeFilter.value === "All"]]) : createCommentVNode("", true)]),
|
|
1142
|
+
_: 2
|
|
1143
|
+
}, 1024);
|
|
1144
|
+
}), 128)),
|
|
1145
|
+
activeFilter.value === "All" || activeFilter.value === "Body" ? (openBlock(), createElementBlock(Fragment, { key: 3 }, ["reader" in __props.response ? (openBlock(), createBlock(ResponseBodyStreaming_default, {
|
|
1146
|
+
key: 0,
|
|
1147
|
+
id: filterIds.value.Body,
|
|
1148
|
+
class: "response-section-content-body",
|
|
1149
|
+
reader: __props.response.reader
|
|
1150
|
+
}, null, 8, ["id", "reader"])) : shouldVirtualize.value && typeof __props.response?.data === "string" ? (openBlock(), createBlock(ResponseBodyVirtual_default, {
|
|
1151
|
+
key: 1,
|
|
1152
|
+
id: filterIds.value.Body,
|
|
1153
|
+
content: __props.response.data,
|
|
1154
|
+
data: __props.response?.data,
|
|
1155
|
+
headers: responseHeaders.value,
|
|
1156
|
+
role: activeFilter.value === "All" ? "none" : "tabpanel"
|
|
1157
|
+
}, null, 8, [
|
|
1158
|
+
"id",
|
|
1159
|
+
"content",
|
|
1160
|
+
"data",
|
|
1161
|
+
"headers",
|
|
1162
|
+
"role"
|
|
1163
|
+
])) : (openBlock(), createBlock(ResponseBody_default, {
|
|
1164
|
+
key: 2,
|
|
1165
|
+
id: filterIds.value.Body,
|
|
1166
|
+
active: true,
|
|
1167
|
+
class: "response-section-content-body",
|
|
1168
|
+
data: __props.response?.data,
|
|
1169
|
+
headers: responseHeaders.value,
|
|
1170
|
+
layout: "client",
|
|
1171
|
+
role: activeFilter.value === "All" ? "none" : "tabpanel",
|
|
1172
|
+
title: "Body"
|
|
1173
|
+
}, null, 8, [
|
|
1174
|
+
"id",
|
|
1175
|
+
"data",
|
|
1176
|
+
"headers",
|
|
1177
|
+
"role"
|
|
1178
|
+
]))], 64)) : createCommentVNode("", true)
|
|
1179
|
+
], 64)), createVNode(ResponseLoadingOverlay_default, { eventBus: __props.eventBus }, null, 8, ["eventBus"])], 10, _hoisted_2)]),
|
|
1180
|
+
_: 1
|
|
1181
|
+
});
|
|
1182
|
+
};
|
|
1183
|
+
}
|
|
1184
|
+
}), [["__scopeId", "data-v-9c1fd1c7"]]);
|
|
1185
|
+
//#endregion
|
|
1186
|
+
export { ResponseBlock_default as t };
|
|
1187
|
+
|
|
1188
|
+
//# sourceMappingURL=response-block-DmkaDZYs.js.map
|