@scalar/api-client 2.10.0 → 2.12.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +69 -0
- package/dist/components/AddressBar/AddressBar.vue.d.ts.map +1 -1
- package/dist/components/AddressBar/AddressBar.vue.js +1 -1
- package/dist/components/AddressBar/AddressBar.vue2.js +35 -29
- package/dist/components/CommandPalette/TheCommandPalette.vue.d.ts +2 -2
- package/dist/components/ImportCollection/IntegrationLogo.vue.d.ts.map +1 -1
- package/dist/components/ImportCollection/IntegrationLogo.vue.js +1 -0
- package/dist/components/Server/ServerVariablesForm.vue.d.ts.map +1 -1
- package/dist/components/Server/ServerVariablesForm.vue.js +6 -6
- package/dist/components/Sidebar/Actions/SidebarListElementForm.vue.d.ts.map +1 -1
- package/dist/components/Sidebar/Actions/SidebarListElementForm.vue.js +1 -1
- package/dist/components/Sidebar/Actions/SidebarListElementForm.vue2.js +14 -13
- package/dist/hooks/useClientConfig.d.ts +6 -3
- package/dist/hooks/useClientConfig.d.ts.map +1 -1
- package/dist/layouts/App/create-api-client-app.d.ts +18 -18
- package/dist/layouts/App/create-api-client-app.d.ts.map +1 -1
- package/dist/layouts/Web/create-api-client-web.d.ts +18 -18
- package/dist/layouts/Web/create-api-client-web.d.ts.map +1 -1
- package/dist/libs/create-client.d.ts +19 -19
- package/dist/libs/create-client.d.ts.map +1 -1
- package/dist/libs/errors.d.ts +1 -0
- package/dist/libs/errors.d.ts.map +1 -1
- package/dist/libs/errors.js +2 -1
- package/dist/libs/find-request.d.ts +1 -1
- package/dist/libs/send-request/create-request-operation.d.ts +4 -4
- package/dist/libs/send-request/create-request-operation.d.ts.map +1 -1
- package/dist/libs/send-request/create-request-operation.js +60 -51
- package/dist/store/active-entities.d.ts +1 -1
- package/dist/store/active-entities.d.ts.map +1 -1
- package/dist/store/collections.d.ts.map +1 -1
- package/dist/store/requests.d.ts +11 -11
- package/dist/store/security-schemes.d.ts.map +1 -1
- package/dist/store/store.d.ts +11 -11
- package/dist/store/store.d.ts.map +1 -1
- package/dist/style.css +1 -1
- package/dist/v2/blocks/operation-block/OperationBlock.vue.d.ts +82 -26
- package/dist/v2/blocks/operation-block/OperationBlock.vue.d.ts.map +1 -1
- package/dist/v2/blocks/operation-block/OperationBlock.vue.js +65 -65
- package/dist/v2/blocks/operation-block/components/Header.vue.d.ts +5 -8
- package/dist/v2/blocks/operation-block/components/Header.vue.d.ts.map +1 -1
- package/dist/v2/blocks/operation-block/components/Header.vue.js +3 -3
- package/dist/v2/blocks/operation-block/components/Header.vue2.js +33 -36
- package/dist/v2/blocks/operation-code-sample/components/ExamplePicker.vue.d.ts.map +1 -1
- package/dist/v2/blocks/operation-code-sample/components/ExamplePicker.vue.js +11 -10
- package/dist/v2/blocks/{scalar-operation-block/components/OperationBlock.vue.d.ts → request-block/RequestBlock.vue.d.ts} +5 -19
- package/dist/v2/blocks/request-block/RequestBlock.vue.d.ts.map +1 -0
- package/dist/v2/blocks/request-block/RequestBlock.vue.js +7 -0
- package/dist/v2/blocks/request-block/RequestBlock.vue2.js +223 -0
- package/dist/v2/blocks/{scalar-operation-block/components/OperationBody.vue.d.ts → request-block/components/RequestBody.vue.d.ts} +4 -6
- package/dist/v2/blocks/request-block/components/RequestBody.vue.d.ts.map +1 -0
- package/dist/v2/blocks/request-block/components/RequestBody.vue.js +7 -0
- package/dist/v2/blocks/{scalar-operation-block/components/OperationBody.vue2.js → request-block/components/RequestBody.vue2.js} +86 -90
- package/dist/v2/blocks/{scalar-operation-block/components/OperationParams.vue.d.ts → request-block/components/RequestParams.vue.d.ts} +3 -6
- package/dist/v2/blocks/request-block/components/RequestParams.vue.d.ts.map +1 -0
- package/dist/v2/blocks/{scalar-operation-block/components/OperationParams.vue.js → request-block/components/RequestParams.vue.js} +26 -28
- package/dist/v2/blocks/request-block/components/RequestParams.vue2.js +4 -0
- package/dist/v2/blocks/{scalar-operation-block/components/OperationTable.vue.d.ts → request-block/components/RequestTable.vue.d.ts} +4 -7
- package/dist/v2/blocks/request-block/components/RequestTable.vue.d.ts.map +1 -0
- package/dist/v2/blocks/request-block/components/RequestTable.vue.js +7 -0
- package/dist/v2/blocks/request-block/components/RequestTable.vue2.js +86 -0
- package/dist/v2/blocks/{scalar-operation-block/components/OperationTableRow.vue.d.ts → request-block/components/RequestTableRow.vue.d.ts} +3 -6
- package/dist/v2/blocks/request-block/components/RequestTableRow.vue.d.ts.map +1 -0
- package/dist/v2/blocks/{scalar-operation-block/components/OperationTableRow.vue.js → request-block/components/RequestTableRow.vue.js} +63 -67
- package/dist/v2/blocks/request-block/components/RequestTableRow.vue2.js +4 -0
- package/dist/v2/blocks/{scalar-operation-block/components/OperationTableTooltip.vue.d.ts → request-block/components/RequestTableTooltip.vue.d.ts} +1 -1
- package/dist/v2/blocks/request-block/components/RequestTableTooltip.vue.d.ts.map +1 -0
- package/dist/v2/blocks/request-block/components/RequestTableTooltip.vue.js +7 -0
- package/dist/v2/blocks/{scalar-operation-block/components/OperationTableTooltip.vue2.js → request-block/components/RequestTableTooltip.vue2.js} +7 -7
- package/dist/v2/blocks/request-block/helpers/create-parameter-handlers.d.ts +24 -0
- package/dist/v2/blocks/request-block/helpers/create-parameter-handlers.d.ts.map +1 -0
- package/dist/v2/blocks/request-block/helpers/create-parameter-handlers.js +29 -0
- package/dist/v2/blocks/request-block/helpers/files.d.ts.map +1 -0
- package/dist/v2/blocks/request-block/helpers/get-parameter-content.d.ts.map +1 -0
- package/dist/v2/blocks/request-block/helpers/get-parameter-example.d.ts.map +1 -0
- package/dist/v2/blocks/request-block/helpers/get-parameter-schema.d.ts.map +1 -0
- package/dist/v2/blocks/request-block/helpers/get-request-body-example.d.ts.map +1 -0
- package/dist/v2/blocks/request-block/helpers/group-by.d.ts.map +1 -0
- package/dist/v2/blocks/request-block/helpers/validate-parameter.d.ts.map +1 -0
- package/dist/v2/blocks/request-block/index.d.ts +2 -0
- package/dist/v2/blocks/request-block/index.d.ts.map +1 -0
- package/dist/v2/blocks/request-block/index.js +4 -0
- package/dist/v2/blocks/{scalar-response-block/components → response-block}/ResponseBlock.vue.d.ts +3 -3
- package/dist/v2/blocks/response-block/ResponseBlock.vue.d.ts.map +1 -0
- package/dist/v2/blocks/response-block/ResponseBlock.vue.js +7 -0
- package/dist/v2/blocks/{scalar-response-block/components → response-block}/ResponseBlock.vue2.js +25 -25
- package/dist/v2/blocks/{scalar-response-block → response-block}/components/Headers.vue.d.ts +2 -2
- package/dist/v2/blocks/response-block/components/Headers.vue.d.ts.map +1 -0
- package/dist/v2/blocks/{scalar-response-block → response-block}/components/Headers.vue.js +9 -9
- package/dist/v2/blocks/response-block/components/ResponseBody.vue.d.ts.map +1 -0
- package/dist/v2/blocks/{scalar-response-block → response-block}/components/ResponseBody.vue.js +2 -2
- package/dist/v2/blocks/{scalar-response-block → response-block}/components/ResponseBody.vue2.js +22 -22
- package/dist/v2/blocks/response-block/components/ResponseBodyDownload.vue.d.ts.map +1 -0
- package/dist/v2/blocks/response-block/components/ResponseBodyInfo.vue.d.ts.map +1 -0
- package/dist/v2/blocks/response-block/components/ResponseBodyPreview.vue.d.ts.map +1 -0
- package/dist/v2/blocks/{scalar-response-block → response-block}/components/ResponseBodyPreview.vue.js +1 -1
- package/dist/v2/blocks/response-block/components/ResponseBodyRaw.vue.d.ts.map +1 -0
- package/dist/v2/blocks/{scalar-response-block → response-block}/components/ResponseBodyRaw.vue.js +1 -1
- package/dist/v2/blocks/response-block/components/ResponseBodyStreaming.vue.d.ts.map +1 -0
- package/dist/v2/blocks/{scalar-response-block → response-block}/components/ResponseBodyStreaming.vue.js +14 -14
- package/dist/v2/blocks/response-block/components/ResponseBodyToggle.vue.d.ts.map +1 -0
- package/dist/v2/blocks/response-block/components/ResponseBodyVirtual.vue.d.ts.map +1 -0
- package/dist/v2/blocks/{scalar-response-block → response-block}/components/ResponseBodyVirtual.vue.js +12 -12
- package/dist/v2/blocks/response-block/components/ResponseCookies.vue.d.ts.map +1 -0
- package/dist/v2/blocks/{scalar-response-block → response-block}/components/ResponseCookies.vue.js +13 -13
- package/dist/v2/blocks/response-block/components/ResponseEmpty.vue.d.ts.map +1 -0
- package/dist/v2/blocks/{scalar-response-block → response-block}/components/ResponseEmpty.vue.js +2 -2
- package/dist/v2/blocks/response-block/components/ResponseLoadingOverlay.vue.d.ts.map +1 -0
- package/dist/v2/blocks/response-block/components/ResponseLoadingOverlay.vue.js +7 -0
- package/dist/v2/blocks/{scalar-response-block → response-block}/components/ResponseMetaInformation.vue.d.ts +0 -1
- package/dist/v2/blocks/response-block/components/ResponseMetaInformation.vue.d.ts.map +1 -0
- package/dist/v2/blocks/response-block/helpers/extract-filename.d.ts.map +1 -0
- package/dist/v2/blocks/response-block/helpers/get-content-length.d.ts.map +1 -0
- package/dist/v2/blocks/response-block/helpers/media-types.d.ts.map +1 -0
- package/dist/v2/blocks/response-block/helpers/process-response-body.d.ts.map +1 -0
- package/dist/v2/blocks/response-block/index.d.ts +2 -0
- package/dist/v2/blocks/response-block/index.d.ts.map +1 -0
- package/dist/v2/blocks/response-block/index.js +4 -0
- package/dist/v2/blocks/scalar-address-bar-block/components/AddressBar.vue.d.ts +6 -8
- package/dist/v2/blocks/scalar-address-bar-block/components/AddressBar.vue.d.ts.map +1 -1
- package/dist/v2/blocks/scalar-address-bar-block/components/AddressBar.vue.js +2 -2
- package/dist/v2/blocks/scalar-address-bar-block/components/AddressBar.vue2.js +68 -70
- package/dist/v2/blocks/scalar-auth-selector-block/components/AuthSelector.vue.d.ts +11 -9
- package/dist/v2/blocks/scalar-auth-selector-block/components/AuthSelector.vue.d.ts.map +1 -1
- package/dist/v2/blocks/scalar-auth-selector-block/components/AuthSelector.vue.js +179 -5
- package/dist/v2/blocks/scalar-auth-selector-block/components/AuthSelector.vue2.js +2 -179
- package/dist/v2/blocks/scalar-auth-selector-block/components/OAuth2.vue.js +201 -198
- package/dist/v2/blocks/scalar-auth-selector-block/components/RequestAuthDataTable.vue.d.ts +11 -6
- package/dist/v2/blocks/scalar-auth-selector-block/components/RequestAuthDataTable.vue.d.ts.map +1 -1
- package/dist/v2/blocks/scalar-auth-selector-block/components/RequestAuthDataTable.vue.js +82 -5
- package/dist/v2/blocks/scalar-auth-selector-block/components/RequestAuthDataTable.vue2.js +2 -85
- package/dist/v2/blocks/scalar-auth-selector-block/components/RequestAuthDataTableInput.vue.d.ts +3 -13
- package/dist/v2/blocks/scalar-auth-selector-block/components/RequestAuthDataTableInput.vue.d.ts.map +1 -1
- package/dist/v2/blocks/scalar-auth-selector-block/components/RequestAuthDataTableInput.vue.js +16 -18
- package/dist/v2/blocks/scalar-auth-selector-block/components/RequestAuthTab.vue.js +133 -142
- package/dist/v2/blocks/scalar-auth-selector-block/helpers/oauth.d.ts +1 -1
- package/dist/v2/blocks/scalar-auth-selector-block/helpers/oauth.d.ts.map +1 -1
- package/dist/v2/blocks/scalar-auth-selector-block/helpers/oauth.js +1 -1
- package/dist/v2/components/code-input/CodeInput.vue.d.ts +1 -0
- package/dist/v2/components/code-input/CodeInput.vue.d.ts.map +1 -1
- package/dist/v2/components/code-input/CodeInput.vue.js +1 -1
- package/dist/v2/components/code-input/CodeInput.vue2.js +29 -28
- package/dist/v2/components/data-table/DataTable.vue.d.ts.map +1 -1
- package/dist/v2/components/data-table/DataTable.vue.js +4 -4
- package/dist/v2/components/data-table/DataTableInput.vue.d.ts +5 -7
- package/dist/v2/components/data-table/DataTableInput.vue.d.ts.map +1 -1
- package/dist/v2/components/data-table/DataTableInput.vue.js +2 -2
- package/dist/v2/components/data-table/DataTableInput.vue2.js +32 -36
- package/dist/v2/components/forms/ConfirmationForm.vue.d.ts +25 -0
- package/dist/v2/components/forms/ConfirmationForm.vue.d.ts.map +1 -0
- package/dist/v2/components/forms/ConfirmationForm.vue.js +7 -0
- package/dist/v2/components/forms/ConfirmationForm.vue2.js +45 -0
- package/dist/v2/components/forms/index.d.ts +2 -0
- package/dist/v2/components/forms/index.d.ts.map +1 -0
- package/dist/v2/components/forms/index.js +4 -0
- package/dist/v2/components/layout/CollapsibleSection.vue.d.ts +43 -0
- package/dist/v2/components/layout/CollapsibleSection.vue.d.ts.map +1 -0
- package/dist/v2/components/layout/CollapsibleSection.vue.js +89 -0
- package/dist/v2/components/layout/CollapsibleSection.vue2.js +4 -0
- package/dist/v2/components/layout/ValueEmitter.vue.d.ts +23 -0
- package/dist/v2/components/layout/ValueEmitter.vue.d.ts.map +1 -0
- package/dist/v2/components/layout/ValueEmitter.vue.js +21 -0
- package/dist/v2/components/layout/ValueEmitter.vue2.js +4 -0
- package/dist/v2/components/layout/index.d.ts +2 -0
- package/dist/v2/components/layout/index.d.ts.map +1 -0
- package/dist/v2/components/layout/index.js +4 -0
- package/dist/v2/components/modals/DeleteModal.vue.d.ts +15 -0
- package/dist/v2/components/modals/DeleteModal.vue.d.ts.map +1 -0
- package/dist/v2/components/modals/DeleteModal.vue.js +31 -0
- package/dist/v2/components/modals/DeleteModal.vue2.js +4 -0
- package/dist/v2/components/modals/index.d.ts +2 -0
- package/dist/v2/components/modals/index.d.ts.map +1 -0
- package/dist/v2/components/modals/index.js +4 -0
- package/dist/v2/components/resize/Resize.vue.d.ts.map +1 -1
- package/dist/v2/components/resize/Resize.vue.js +2 -2
- package/dist/v2/components/server/ServerDropdown.vue.d.ts +7 -5
- package/dist/v2/components/server/ServerDropdown.vue.d.ts.map +1 -1
- package/dist/v2/components/server/ServerDropdown.vue.js +44 -49
- package/dist/v2/components/server/ServerDropdownItem.vue.d.ts +3 -7
- package/dist/v2/components/server/ServerDropdownItem.vue.d.ts.map +1 -1
- package/dist/v2/components/server/ServerDropdownItem.vue.js +2 -2
- package/dist/v2/components/server/ServerDropdownItem.vue2.js +24 -26
- package/dist/v2/components/server/index.d.ts.map +1 -1
- package/dist/v2/components/sidebar/Sidebar.vue.d.ts +30 -6
- package/dist/v2/components/sidebar/Sidebar.vue.d.ts.map +1 -1
- package/dist/v2/components/sidebar/Sidebar.vue.js +57 -62
- package/dist/v2/components/sidebar/SidebarMenu.vue.d.ts +18 -9
- package/dist/v2/components/sidebar/SidebarMenu.vue.d.ts.map +1 -1
- package/dist/v2/components/sidebar/SidebarMenu.vue.js +36 -43
- package/dist/v2/features/app/App.vue.d.ts +2 -5
- package/dist/v2/features/app/App.vue.d.ts.map +1 -1
- package/dist/v2/features/app/App.vue.js +134 -82
- package/dist/v2/features/app/components/AppSidebar.vue.d.ts +42 -6
- package/dist/v2/features/app/components/AppSidebar.vue.d.ts.map +1 -1
- package/dist/v2/features/app/components/AppSidebar.vue.js +1 -1
- package/dist/v2/features/app/components/AppSidebar.vue2.js +76 -64
- package/dist/v2/features/app/components/CreateWorkspaceModal.vue.d.ts +15 -0
- package/dist/v2/features/app/components/CreateWorkspaceModal.vue.d.ts.map +1 -0
- package/dist/v2/features/app/components/CreateWorkspaceModal.vue.js +56 -0
- package/dist/v2/features/app/components/CreateWorkspaceModal.vue2.js +4 -0
- package/dist/v2/{components/TempReplaceMe.vue.d.ts → features/app/components/SplashScreen.vue.d.ts} +1 -1
- package/dist/v2/features/app/components/SplashScreen.vue.d.ts.map +1 -0
- package/dist/v2/features/app/components/SplashScreen.vue.js +7 -0
- package/dist/v2/features/app/components/SplashScreen.vue2.js +18 -0
- package/dist/v2/features/app/components/WebTopNav.vue.d.ts +26 -5
- package/dist/v2/features/app/components/WebTopNav.vue.d.ts.map +1 -1
- package/dist/v2/features/app/components/WebTopNav.vue.js +18 -19
- package/dist/v2/features/app/helpers/create-api-client-app.d.ts +1 -2
- package/dist/v2/features/app/helpers/create-api-client-app.d.ts.map +1 -1
- package/dist/v2/features/app/helpers/create-api-client-app.js +8 -8
- package/dist/v2/features/app/helpers/routes.d.ts +6 -41
- package/dist/v2/features/app/helpers/routes.d.ts.map +1 -1
- package/dist/v2/features/app/helpers/routes.js +4 -9
- package/dist/v2/features/collection/DocumentCollection.vue.d.ts.map +1 -1
- package/dist/v2/features/collection/DocumentCollection.vue2.js +69 -74
- package/dist/v2/features/collection/WorkspaceCollection.vue.d.ts.map +1 -1
- package/dist/v2/features/collection/WorkspaceCollection.vue2.js +25 -25
- package/dist/v2/features/collection/components/Authentication.vue.d.ts +13 -25
- package/dist/v2/features/collection/components/Authentication.vue.d.ts.map +1 -1
- package/dist/v2/features/collection/components/Authentication.vue.js +2 -2
- package/dist/v2/features/collection/components/Authentication.vue2.js +49 -35
- package/dist/v2/features/collection/components/Cookies.vue.d.ts +13 -1
- package/dist/v2/features/collection/components/Cookies.vue.d.ts.map +1 -1
- package/dist/v2/features/collection/components/Cookies.vue.js +2 -7
- package/dist/v2/features/collection/components/Cookies.vue2.js +32 -0
- package/dist/v2/features/collection/components/Environment.vue2.js +2 -0
- package/dist/v2/features/collection/components/Form.vue.d.ts +3 -7
- package/dist/v2/features/collection/components/Form.vue.d.ts.map +1 -1
- package/dist/v2/features/collection/components/Form.vue.js +28 -33
- package/dist/v2/features/collection/components/Overview.vue2.js +10 -8
- package/dist/v2/features/collection/components/Servers.vue.d.ts +13 -31
- package/dist/v2/features/collection/components/Servers.vue.d.ts.map +1 -1
- package/dist/v2/features/collection/components/Servers.vue2.js +105 -82
- package/dist/v2/features/collection/components/Settings.vue.d.ts +13 -15
- package/dist/v2/features/collection/components/Settings.vue.d.ts.map +1 -1
- package/dist/v2/features/collection/components/Settings.vue.js +2 -5
- package/dist/v2/features/collection/components/Settings.vue2.js +51 -92
- package/dist/v2/features/environments/components/EnvironmentVariablesTable.vue.d.ts.map +1 -1
- package/dist/v2/features/environments/components/EnvironmentVariablesTable.vue.js +3 -3
- package/dist/v2/features/global-cookies/components/CookiesTable.vue.d.ts +6 -22
- package/dist/v2/features/global-cookies/components/CookiesTable.vue.d.ts.map +1 -1
- package/dist/v2/features/global-cookies/components/CookiesTable.vue.js +3 -3
- package/dist/v2/features/global-cookies/components/CookiesTable.vue2.js +121 -88
- package/dist/v2/features/global-cookies/index.d.ts +1 -1
- package/dist/v2/features/global-cookies/index.d.ts.map +1 -1
- package/dist/v2/features/global-cookies/index.js +2 -2
- package/dist/v2/features/modal/Modal.vue.d.ts +0 -2
- package/dist/v2/features/modal/Modal.vue.d.ts.map +1 -1
- package/dist/v2/features/modal/Modal.vue.js +2 -2
- package/dist/v2/features/modal/Modal.vue2.js +28 -53
- package/dist/v2/features/modal/helpers/create-api-client-modal.d.ts.map +1 -1
- package/dist/v2/features/modal/helpers/create-api-client-modal.js +8 -9
- package/dist/v2/features/operation/Operation.vue.d.ts.map +1 -1
- package/dist/v2/features/operation/Operation.vue.js +35 -34
- package/dist/v2/features/operation/helpers/get-security-requirements.d.ts +12 -0
- package/dist/v2/features/operation/helpers/get-security-requirements.d.ts.map +1 -0
- package/dist/v2/features/operation/helpers/get-security-requirements.js +4 -0
- package/dist/v2/features/search/components/SearchButton.vue.d.ts +12 -0
- package/dist/v2/features/search/components/SearchButton.vue.d.ts.map +1 -0
- package/dist/v2/features/search/components/SearchButton.vue.js +71 -0
- package/dist/v2/features/search/components/SearchButton.vue2.js +4 -0
- package/dist/v2/features/search/components/SearchModal.vue.d.ts +11 -0
- package/dist/v2/features/search/components/SearchModal.vue.d.ts.map +1 -0
- package/dist/v2/features/search/components/SearchModal.vue.js +7 -0
- package/dist/v2/features/search/components/SearchModal.vue2.js +101 -0
- package/dist/v2/features/search/components/SearchResult.vue.d.ts +10 -0
- package/dist/v2/features/search/components/SearchResult.vue.d.ts.map +1 -0
- package/dist/v2/features/search/components/SearchResult.vue.js +80 -0
- package/dist/v2/features/search/components/SearchResult.vue2.js +4 -0
- package/dist/v2/features/search/helpers/create-fuse-instance.d.ts +9 -0
- package/dist/v2/features/search/helpers/create-fuse-instance.d.ts.map +1 -0
- package/dist/v2/features/search/helpers/create-fuse-instance.js +43 -0
- package/dist/v2/features/search/helpers/create-search-index.d.ts +7 -0
- package/dist/v2/features/search/helpers/create-search-index.d.ts.map +1 -0
- package/dist/v2/features/search/helpers/create-search-index.js +63 -0
- package/dist/v2/features/search/hooks/use-search-index.d.ts +14 -0
- package/dist/v2/features/search/hooks/use-search-index.d.ts.map +1 -0
- package/dist/v2/features/search/hooks/use-search-index.js +24 -0
- package/dist/v2/features/search/index.d.ts +3 -0
- package/dist/v2/features/search/index.d.ts.map +1 -0
- package/dist/v2/features/search/index.js +6 -0
- package/dist/v2/features/search/types.d.ts +24 -0
- package/dist/v2/features/search/types.d.ts.map +1 -0
- package/dist/v2/features/settings/{Settings.vue.d.ts → CollectionSettings.vue.d.ts} +2 -2
- package/dist/v2/features/settings/CollectionSettings.vue.d.ts.map +1 -0
- package/dist/v2/features/settings/CollectionSettings.vue.js +266 -0
- package/dist/v2/features/settings/CollectionSettings.vue2.js +4 -0
- package/dist/v2/features/settings/DocumentSettings.vue.d.ts +19 -0
- package/dist/v2/features/settings/DocumentSettings.vue.d.ts.map +1 -0
- package/dist/v2/features/settings/DocumentSettings.vue.js +7 -0
- package/dist/v2/features/settings/DocumentSettings.vue2.js +106 -0
- package/dist/v2/features/settings/index.d.ts +2 -1
- package/dist/v2/features/settings/index.d.ts.map +1 -1
- package/dist/v2/features/settings/index.js +4 -2
- package/dist/v2/helpers/drag-handle-factory.d.ts +17 -0
- package/dist/v2/helpers/drag-handle-factory.d.ts.map +1 -0
- package/dist/v2/helpers/drag-handle-factory.js +135 -0
- package/dist/v2/helpers/handle-hotkeys.d.ts +23 -0
- package/dist/v2/helpers/handle-hotkeys.d.ts.map +1 -0
- package/dist/v2/helpers/handle-hotkeys.js +56 -0
- package/dist/v2/helpers/slugify.d.ts +9 -0
- package/dist/v2/helpers/slugify.d.ts.map +1 -0
- package/dist/v2/helpers/slugify.js +4 -0
- package/dist/v2/helpers/storage.d.ts +25 -0
- package/dist/v2/helpers/storage.d.ts.map +1 -0
- package/dist/v2/helpers/storage.js +20 -0
- package/dist/v2/hooks/use-color-mode.d.ts +20 -0
- package/dist/v2/hooks/use-color-mode.d.ts.map +1 -0
- package/dist/v2/hooks/use-color-mode.js +24 -0
- package/dist/v2/hooks/use-document-watcher.d.ts +9 -7
- package/dist/v2/hooks/use-document-watcher.d.ts.map +1 -1
- package/dist/v2/hooks/use-document-watcher.js +66 -0
- package/dist/v2/hooks/use-global-hot-keys.d.ts +10 -0
- package/dist/v2/hooks/use-global-hot-keys.d.ts.map +1 -0
- package/dist/v2/hooks/use-global-hot-keys.js +9 -0
- package/dist/v2/hooks/use-sidebar-state.d.ts +48 -0
- package/dist/v2/hooks/use-sidebar-state.d.ts.map +1 -0
- package/dist/v2/hooks/use-sidebar-state.js +128 -0
- package/dist/v2/hooks/use-workspace-client-events.d.ts +8 -2
- package/dist/v2/hooks/use-workspace-client-events.d.ts.map +1 -1
- package/dist/v2/hooks/use-workspace-client-events.js +52 -135
- package/dist/v2/hooks/use-workspace-selector.d.ts +18 -0
- package/dist/v2/hooks/use-workspace-selector.d.ts.map +1 -0
- package/dist/v2/hooks/use-workspace-selector.js +87 -0
- package/dist/views/Request/RequestRoot.vue.d.ts.map +1 -1
- package/dist/views/Request/RequestRoot.vue.js +2 -2
- package/dist/views/Request/RequestRoot.vue2.js +86 -77
- package/dist/views/Request/RequestSection/RequestAuth/RequestAuth.vue.d.ts.map +1 -1
- package/dist/views/Request/RequestSection/RequestAuth/RequestAuthDataTable.vue.d.ts.map +1 -1
- package/dist/views/Request/RequestSection/RequestBody.vue.d.ts.map +1 -1
- package/dist/views/Request/RequestSection/RequestBody.vue.js +2 -2
- package/dist/views/Request/RequestSection/RequestBody.vue2.js +29 -24
- package/dist/views/Request/ResponseSection/ResponseEmpty.vue2.js +1 -1
- package/package.json +29 -28
- package/dist/v2/blocks/scalar-auth-selector-block/components/OAuth2.vue.d.ts +0 -45
- package/dist/v2/blocks/scalar-auth-selector-block/components/OAuth2.vue.d.ts.map +0 -1
- package/dist/v2/blocks/scalar-auth-selector-block/components/RequestAuthTab.vue.d.ts +0 -29
- package/dist/v2/blocks/scalar-auth-selector-block/components/RequestAuthTab.vue.d.ts.map +0 -1
- package/dist/v2/blocks/scalar-auth-selector-block/event-types.d.ts +0 -29
- package/dist/v2/blocks/scalar-auth-selector-block/event-types.d.ts.map +0 -1
- package/dist/v2/blocks/scalar-operation-block/components/OperationBlock.vue.d.ts.map +0 -1
- package/dist/v2/blocks/scalar-operation-block/components/OperationBlock.vue.js +0 -7
- package/dist/v2/blocks/scalar-operation-block/components/OperationBlock.vue2.js +0 -289
- package/dist/v2/blocks/scalar-operation-block/components/OperationBody.vue.d.ts.map +0 -1
- package/dist/v2/blocks/scalar-operation-block/components/OperationBody.vue.js +0 -7
- package/dist/v2/blocks/scalar-operation-block/components/OperationParams.vue.d.ts.map +0 -1
- package/dist/v2/blocks/scalar-operation-block/components/OperationParams.vue2.js +0 -4
- package/dist/v2/blocks/scalar-operation-block/components/OperationTable.vue.d.ts.map +0 -1
- package/dist/v2/blocks/scalar-operation-block/components/OperationTable.vue.js +0 -7
- package/dist/v2/blocks/scalar-operation-block/components/OperationTable.vue2.js +0 -88
- package/dist/v2/blocks/scalar-operation-block/components/OperationTableRow.vue.d.ts.map +0 -1
- package/dist/v2/blocks/scalar-operation-block/components/OperationTableRow.vue2.js +0 -4
- package/dist/v2/blocks/scalar-operation-block/components/OperationTableTooltip.vue.d.ts.map +0 -1
- package/dist/v2/blocks/scalar-operation-block/components/OperationTableTooltip.vue.js +0 -7
- package/dist/v2/blocks/scalar-operation-block/helpers/files.d.ts.map +0 -1
- package/dist/v2/blocks/scalar-operation-block/helpers/get-parameter-content.d.ts.map +0 -1
- package/dist/v2/blocks/scalar-operation-block/helpers/get-parameter-example.d.ts.map +0 -1
- package/dist/v2/blocks/scalar-operation-block/helpers/get-parameter-schema.d.ts.map +0 -1
- package/dist/v2/blocks/scalar-operation-block/helpers/get-request-body-example.d.ts.map +0 -1
- package/dist/v2/blocks/scalar-operation-block/helpers/group-by.d.ts.map +0 -1
- package/dist/v2/blocks/scalar-operation-block/helpers/validate-parameter.d.ts.map +0 -1
- package/dist/v2/blocks/scalar-operation-block/index.d.ts +0 -2
- package/dist/v2/blocks/scalar-operation-block/index.d.ts.map +0 -1
- package/dist/v2/blocks/scalar-operation-block/index.js +0 -4
- package/dist/v2/blocks/scalar-response-block/components/Headers.vue.d.ts.map +0 -1
- package/dist/v2/blocks/scalar-response-block/components/ResponseBlock.vue.d.ts.map +0 -1
- package/dist/v2/blocks/scalar-response-block/components/ResponseBlock.vue.js +0 -7
- package/dist/v2/blocks/scalar-response-block/components/ResponseBody.vue.d.ts.map +0 -1
- package/dist/v2/blocks/scalar-response-block/components/ResponseBodyDownload.vue.d.ts.map +0 -1
- package/dist/v2/blocks/scalar-response-block/components/ResponseBodyInfo.vue.d.ts.map +0 -1
- package/dist/v2/blocks/scalar-response-block/components/ResponseBodyPreview.vue.d.ts.map +0 -1
- package/dist/v2/blocks/scalar-response-block/components/ResponseBodyRaw.vue.d.ts.map +0 -1
- package/dist/v2/blocks/scalar-response-block/components/ResponseBodyStreaming.vue.d.ts.map +0 -1
- package/dist/v2/blocks/scalar-response-block/components/ResponseBodyToggle.vue.d.ts.map +0 -1
- package/dist/v2/blocks/scalar-response-block/components/ResponseBodyVirtual.vue.d.ts.map +0 -1
- package/dist/v2/blocks/scalar-response-block/components/ResponseCookies.vue.d.ts.map +0 -1
- package/dist/v2/blocks/scalar-response-block/components/ResponseEmpty.vue.d.ts.map +0 -1
- package/dist/v2/blocks/scalar-response-block/components/ResponseLoadingOverlay.vue.d.ts.map +0 -1
- package/dist/v2/blocks/scalar-response-block/components/ResponseLoadingOverlay.vue.js +0 -7
- package/dist/v2/blocks/scalar-response-block/components/ResponseMetaInformation.vue.d.ts.map +0 -1
- package/dist/v2/blocks/scalar-response-block/helpers/extract-filename.d.ts.map +0 -1
- package/dist/v2/blocks/scalar-response-block/helpers/get-content-length.d.ts.map +0 -1
- package/dist/v2/blocks/scalar-response-block/helpers/media-types.d.ts.map +0 -1
- package/dist/v2/blocks/scalar-response-block/helpers/process-response-body.d.ts.map +0 -1
- package/dist/v2/blocks/scalar-response-block/index.d.ts +0 -2
- package/dist/v2/blocks/scalar-response-block/index.d.ts.map +0 -1
- package/dist/v2/blocks/scalar-response-block/index.js +0 -4
- package/dist/v2/components/TempReplaceMe.vue.d.ts.map +0 -1
- package/dist/v2/components/TempReplaceMe.vue.js +0 -12
- package/dist/v2/features/global-cookies/components/GlobalCookies.vue.d.ts +0 -32
- package/dist/v2/features/global-cookies/components/GlobalCookies.vue.d.ts.map +0 -1
- package/dist/v2/features/global-cookies/components/GlobalCookies.vue.js +0 -7
- package/dist/v2/features/global-cookies/components/GlobalCookies.vue2.js +0 -58
- package/dist/v2/features/settings/Settings.vue.d.ts.map +0 -1
- package/dist/v2/features/settings/Settings.vue.js +0 -268
- package/dist/v2/features/settings/Settings.vue2.js +0 -4
- /package/dist/v2/blocks/{scalar-operation-block → request-block}/helpers/files.d.ts +0 -0
- /package/dist/v2/blocks/{scalar-operation-block → request-block}/helpers/files.js +0 -0
- /package/dist/v2/blocks/{scalar-operation-block → request-block}/helpers/get-parameter-content.d.ts +0 -0
- /package/dist/v2/blocks/{scalar-operation-block → request-block}/helpers/get-parameter-content.js +0 -0
- /package/dist/v2/blocks/{scalar-operation-block → request-block}/helpers/get-parameter-example.d.ts +0 -0
- /package/dist/v2/blocks/{scalar-operation-block → request-block}/helpers/get-parameter-example.js +0 -0
- /package/dist/v2/blocks/{scalar-operation-block → request-block}/helpers/get-parameter-schema.d.ts +0 -0
- /package/dist/v2/blocks/{scalar-operation-block → request-block}/helpers/get-parameter-schema.js +0 -0
- /package/dist/v2/blocks/{scalar-operation-block → request-block}/helpers/get-request-body-example.d.ts +0 -0
- /package/dist/v2/blocks/{scalar-operation-block → request-block}/helpers/get-request-body-example.js +0 -0
- /package/dist/v2/blocks/{scalar-operation-block → request-block}/helpers/group-by.d.ts +0 -0
- /package/dist/v2/blocks/{scalar-operation-block → request-block}/helpers/group-by.js +0 -0
- /package/dist/v2/blocks/{scalar-operation-block → request-block}/helpers/validate-parameter.d.ts +0 -0
- /package/dist/v2/blocks/{scalar-operation-block → request-block}/helpers/validate-parameter.js +0 -0
- /package/dist/v2/blocks/{scalar-response-block → response-block}/components/Headers.vue2.js +0 -0
- /package/dist/v2/blocks/{scalar-response-block → response-block}/components/ResponseBody.vue.d.ts +0 -0
- /package/dist/v2/blocks/{scalar-response-block → response-block}/components/ResponseBodyDownload.vue.d.ts +0 -0
- /package/dist/v2/blocks/{scalar-response-block → response-block}/components/ResponseBodyDownload.vue.js +0 -0
- /package/dist/v2/blocks/{scalar-response-block → response-block}/components/ResponseBodyDownload.vue2.js +0 -0
- /package/dist/v2/blocks/{scalar-response-block → response-block}/components/ResponseBodyInfo.vue.d.ts +0 -0
- /package/dist/v2/blocks/{scalar-response-block → response-block}/components/ResponseBodyInfo.vue.js +0 -0
- /package/dist/v2/blocks/{scalar-response-block → response-block}/components/ResponseBodyPreview.vue.d.ts +0 -0
- /package/dist/v2/blocks/{scalar-response-block → response-block}/components/ResponseBodyPreview.vue2.js +0 -0
- /package/dist/v2/blocks/{scalar-response-block → response-block}/components/ResponseBodyRaw.vue.d.ts +0 -0
- /package/dist/v2/blocks/{scalar-response-block → response-block}/components/ResponseBodyRaw.vue2.js +0 -0
- /package/dist/v2/blocks/{scalar-response-block → response-block}/components/ResponseBodyStreaming.vue.d.ts +0 -0
- /package/dist/v2/blocks/{scalar-response-block → response-block}/components/ResponseBodyStreaming.vue2.js +0 -0
- /package/dist/v2/blocks/{scalar-response-block → response-block}/components/ResponseBodyToggle.vue.d.ts +0 -0
- /package/dist/v2/blocks/{scalar-response-block → response-block}/components/ResponseBodyToggle.vue.js +0 -0
- /package/dist/v2/blocks/{scalar-response-block → response-block}/components/ResponseBodyToggle.vue2.js +0 -0
- /package/dist/v2/blocks/{scalar-response-block → response-block}/components/ResponseBodyVirtual.vue.d.ts +0 -0
- /package/dist/v2/blocks/{scalar-response-block → response-block}/components/ResponseBodyVirtual.vue3.js +0 -0
- /package/dist/v2/blocks/{scalar-response-block → response-block}/components/ResponseCookies.vue.d.ts +0 -0
- /package/dist/v2/blocks/{scalar-response-block → response-block}/components/ResponseCookies.vue2.js +0 -0
- /package/dist/v2/blocks/{scalar-response-block → response-block}/components/ResponseEmpty.vue.d.ts +0 -0
- /package/dist/v2/blocks/{scalar-response-block → response-block}/components/ResponseEmpty.vue2.js +0 -0
- /package/dist/v2/blocks/{scalar-response-block → response-block}/components/ResponseLoadingOverlay.vue.d.ts +0 -0
- /package/dist/v2/blocks/{scalar-response-block → response-block}/components/ResponseLoadingOverlay.vue2.js +0 -0
- /package/dist/v2/blocks/{scalar-response-block → response-block}/components/ResponseMetaInformation.vue.js +0 -0
- /package/dist/v2/blocks/{scalar-response-block → response-block}/components/ResponseMetaInformation.vue2.js +0 -0
- /package/dist/v2/blocks/{scalar-response-block → response-block}/helpers/extract-filename.d.ts +0 -0
- /package/dist/v2/blocks/{scalar-response-block → response-block}/helpers/extract-filename.js +0 -0
- /package/dist/v2/blocks/{scalar-response-block → response-block}/helpers/get-content-length.d.ts +0 -0
- /package/dist/v2/blocks/{scalar-response-block → response-block}/helpers/get-content-length.js +0 -0
- /package/dist/v2/blocks/{scalar-response-block → response-block}/helpers/media-types.d.ts +0 -0
- /package/dist/v2/blocks/{scalar-response-block → response-block}/helpers/media-types.js +0 -0
- /package/dist/v2/blocks/{scalar-response-block → response-block}/helpers/process-response-body.d.ts +0 -0
- /package/dist/v2/blocks/{scalar-response-block → response-block}/helpers/process-response-body.js +0 -0
|
@@ -1,3 +1,14 @@
|
|
|
1
|
+
import type { HttpMethod as HttpMethodType } from '@scalar/helpers/http/http-methods';
|
|
2
|
+
import type { ResponseInstance } from '@scalar/oas-utils/entities/spec';
|
|
3
|
+
import type { WorkspaceEventBus } from '@scalar/workspace-store/events';
|
|
4
|
+
import type { AuthMeta } from '@scalar/workspace-store/mutators';
|
|
5
|
+
import type { XScalarEnvironment } from '@scalar/workspace-store/schemas/extensions/document/x-scalar-environments';
|
|
6
|
+
import type { OpenApiDocument } from '@scalar/workspace-store/schemas/v3.1/strict/openapi-document';
|
|
7
|
+
import type { OperationObject } from '@scalar/workspace-store/schemas/v3.1/strict/operation';
|
|
8
|
+
import type { ServerObject } from '@scalar/workspace-store/schemas/v3.1/strict/server';
|
|
9
|
+
import type { ClientLayout } from '../../../hooks/index.js';
|
|
10
|
+
import { type History } from '../../../v2/blocks/scalar-address-bar-block/index.js';
|
|
11
|
+
import type { ClientPlugin } from '../../../v2/plugins';
|
|
1
12
|
/**
|
|
2
13
|
* OperationBlock
|
|
3
14
|
*
|
|
@@ -11,20 +22,66 @@
|
|
|
11
22
|
* - Uses operation['x-scalar-method'] and operation['x-scalar-path'] to provide
|
|
12
23
|
* draft overrides for the UI when present.
|
|
13
24
|
*/
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
25
|
+
declare const _default: import("vue").DefineComponent<{
|
|
26
|
+
eventBus: WorkspaceEventBus;
|
|
27
|
+
/** Application version */
|
|
28
|
+
appVersion: string;
|
|
29
|
+
/** Current request path */
|
|
30
|
+
path: string;
|
|
31
|
+
/** Current request method */
|
|
32
|
+
method: HttpMethodType;
|
|
33
|
+
/** Client layout */
|
|
34
|
+
layout: ClientLayout;
|
|
35
|
+
/** Currently selected server */
|
|
36
|
+
server: ServerObject | null;
|
|
37
|
+
/** Server list available for operation/document */
|
|
38
|
+
servers: ServerObject[];
|
|
39
|
+
/** List of request history */
|
|
40
|
+
history: History[];
|
|
41
|
+
/**
|
|
42
|
+
* When the request is sent from the modal, this indicates the progress percentage
|
|
43
|
+
* of the request being sent.
|
|
44
|
+
*
|
|
45
|
+
* The amount remaining to load from 100 -> 0
|
|
46
|
+
*/
|
|
47
|
+
requestLoadingPercentage?: number;
|
|
48
|
+
/** Preprocessed response */
|
|
49
|
+
response?: ResponseInstance;
|
|
50
|
+
/** Original request instance */
|
|
51
|
+
request?: Request;
|
|
52
|
+
/** Total number of performed requests */
|
|
53
|
+
totalPerformedRequests: number;
|
|
54
|
+
/** Sidebar open state */
|
|
55
|
+
isSidebarOpen?: boolean;
|
|
56
|
+
/** Controls sidebar visibility */
|
|
57
|
+
showSidebar?: boolean;
|
|
58
|
+
/** Hides the client button on the header */
|
|
59
|
+
hideClientButton?: boolean;
|
|
60
|
+
/** Client integration */
|
|
61
|
+
integration?: string | null;
|
|
62
|
+
/** Openapi document url for `modal` mode to open the client app */
|
|
63
|
+
documentUrl?: string;
|
|
64
|
+
/** Client source */
|
|
65
|
+
source?: "gitbook" | "api-reference";
|
|
66
|
+
/** Operation object */
|
|
67
|
+
operation: OperationObject;
|
|
68
|
+
/** Currently selected example key for the current operation */
|
|
69
|
+
exampleKey: string;
|
|
70
|
+
/** Meta information for the auth update */
|
|
71
|
+
authMeta?: AuthMeta;
|
|
72
|
+
/** Document defined security schemes */
|
|
73
|
+
securitySchemes: NonNullable<OpenApiDocument["components"]>["securitySchemes"];
|
|
74
|
+
/** Currently selected security for the current operation */
|
|
75
|
+
selectedSecurity: OpenApiDocument["x-scalar-selected-security"];
|
|
76
|
+
/** Required security for the operation/document */
|
|
77
|
+
security: OpenApiDocument["security"];
|
|
78
|
+
/** Client plugins */
|
|
79
|
+
plugins?: ClientPlugin[];
|
|
80
|
+
/** For environment variables in the inputs */
|
|
81
|
+
environment: XScalarEnvironment;
|
|
82
|
+
}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {} & {
|
|
83
|
+
"update:servers": () => any;
|
|
84
|
+
}, string, import("vue").PublicProps, Readonly<{
|
|
28
85
|
eventBus: WorkspaceEventBus;
|
|
29
86
|
/** Application version */
|
|
30
87
|
appVersion: string;
|
|
@@ -35,7 +92,7 @@ type __VLS_Props = {
|
|
|
35
92
|
/** Client layout */
|
|
36
93
|
layout: ClientLayout;
|
|
37
94
|
/** Currently selected server */
|
|
38
|
-
server: ServerObject |
|
|
95
|
+
server: ServerObject | null;
|
|
39
96
|
/** Server list available for operation/document */
|
|
40
97
|
servers: ServerObject[];
|
|
41
98
|
/** List of request history */
|
|
@@ -64,7 +121,7 @@ type __VLS_Props = {
|
|
|
64
121
|
/** Openapi document url for `modal` mode to open the client app */
|
|
65
122
|
documentUrl?: string;
|
|
66
123
|
/** Client source */
|
|
67
|
-
source?:
|
|
124
|
+
source?: "gitbook" | "api-reference";
|
|
68
125
|
/** Operation object */
|
|
69
126
|
operation: OperationObject;
|
|
70
127
|
/** Currently selected example key for the current operation */
|
|
@@ -72,18 +129,17 @@ type __VLS_Props = {
|
|
|
72
129
|
/** Meta information for the auth update */
|
|
73
130
|
authMeta?: AuthMeta;
|
|
74
131
|
/** Document defined security schemes */
|
|
75
|
-
securitySchemes: NonNullable<OpenApiDocument[
|
|
132
|
+
securitySchemes: NonNullable<OpenApiDocument["components"]>["securitySchemes"];
|
|
76
133
|
/** Currently selected security for the current operation */
|
|
77
|
-
selectedSecurity: OpenApiDocument[
|
|
134
|
+
selectedSecurity: OpenApiDocument["x-scalar-selected-security"];
|
|
78
135
|
/** Required security for the operation/document */
|
|
79
|
-
security: OpenApiDocument[
|
|
80
|
-
/**
|
|
81
|
-
events: ReturnType<typeof createStoreEvents>;
|
|
136
|
+
security: OpenApiDocument["security"];
|
|
137
|
+
/** Client plugins */
|
|
82
138
|
plugins?: ClientPlugin[];
|
|
83
|
-
/**
|
|
84
|
-
environment:
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
139
|
+
/** For environment variables in the inputs */
|
|
140
|
+
environment: XScalarEnvironment;
|
|
141
|
+
}> & Readonly<{
|
|
142
|
+
"onUpdate:servers"?: (() => any) | undefined;
|
|
143
|
+
}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
88
144
|
export default _default;
|
|
89
145
|
//# sourceMappingURL=OperationBlock.vue.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"OperationBlock.vue.d.ts","sourceRoot":"","sources":["../../../../src/v2/blocks/operation-block/OperationBlock.vue"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"OperationBlock.vue.d.ts","sourceRoot":"","sources":["../../../../src/v2/blocks/operation-block/OperationBlock.vue"],"names":[],"mappings":"AAsMA,OAAO,KAAK,EAAE,UAAU,IAAI,cAAc,EAAE,MAAM,mCAAmC,CAAA;AACrF,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,iCAAiC,CAAA;AACvE,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,gCAAgC,CAAA;AACvE,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,kCAAkC,CAAA;AAChE,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,2EAA2E,CAAA;AACnH,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,8DAA8D,CAAA;AACnG,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,uDAAuD,CAAA;AAC5F,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,oDAAoD,CAAA;AAItF,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,SAAS,CAAA;AAI3C,OAAO,EAAE,KAAK,OAAO,EAAE,MAAM,sCAAsC,CAAA;AACnE,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,cAAc,CAAA;AAKhD;;;;;;;;;;;;GAYG;;cAGS,iBAAiB;IAC3B,0BAA0B;gBACd,MAAM;IAClB,2BAA2B;UACrB,MAAM;IACZ,6BAA6B;YACrB,cAAc;IACtB,oBAAoB;YACZ,YAAY;IACpB,gCAAgC;YACxB,YAAY,GAAG,IAAI;IAC3B,mDAAmD;aAC1C,YAAY,EAAE;IACvB,8BAA8B;aACrB,OAAO,EAAE;IAClB;;;;;OAKG;+BACwB,MAAM;IACjC,4BAA4B;eACjB,gBAAgB;IAC3B,gCAAgC;cACtB,OAAO;IACjB,yCAAyC;4BACjB,MAAM;IAC9B,yBAAyB;oBACT,OAAO;IACvB,kCAAkC;kBACpB,OAAO;IACrB,4CAA4C;uBACzB,OAAO;IAC1B,0BAA0B;kBACZ,MAAM,GAAG,IAAI;IAC3B,mEAAmE;kBACrD,MAAM;IACpB,oBAAoB;aACX,SAAS,GAAG,eAAe;IACpC,uBAAuB;eACZ,eAAe;IAC1B,+DAA+D;gBACnD,MAAM;IAClB,2CAA2C;eAChC,QAAQ;IACnB,wCAAwC;qBACvB,WAAW,CAAC,eAAe,CAAC,YAAY,CAAC,CAAC,CAAC,iBAAiB,CAAC;IAC9E,4DAA4D;sBAC1C,eAAe,CAAC,4BAA4B,CAAC;IAC/D,mDAAmD;cACzC,eAAe,CAAC,UAAU,CAAC;IACrC,qBAAqB;cACX,YAAY,EAAE;IACxB,8CAA8C;iBACjC,kBAAkB;;;;cAvDrB,iBAAiB;IAC3B,0BAA0B;gBACd,MAAM;IAClB,2BAA2B;UACrB,MAAM;IACZ,6BAA6B;YACrB,cAAc;IACtB,oBAAoB;YACZ,YAAY;IACpB,gCAAgC;YACxB,YAAY,GAAG,IAAI;IAC3B,mDAAmD;aAC1C,YAAY,EAAE;IACvB,8BAA8B;aACrB,OAAO,EAAE;IAClB;;;;;OAKG;+BACwB,MAAM;IACjC,4BAA4B;eACjB,gBAAgB;IAC3B,gCAAgC;cACtB,OAAO;IACjB,yCAAyC;4BACjB,MAAM;IAC9B,yBAAyB;oBACT,OAAO;IACvB,kCAAkC;kBACpB,OAAO;IACrB,4CAA4C;uBACzB,OAAO;IAC1B,0BAA0B;kBACZ,MAAM,GAAG,IAAI;IAC3B,mEAAmE;kBACrD,MAAM;IACpB,oBAAoB;aACX,SAAS,GAAG,eAAe;IACpC,uBAAuB;eACZ,eAAe;IAC1B,+DAA+D;gBACnD,MAAM;IAClB,2CAA2C;eAChC,QAAQ;IACnB,wCAAwC;qBACvB,WAAW,CAAC,eAAe,CAAC,YAAY,CAAC,CAAC,CAAC,iBAAiB,CAAC;IAC9E,4DAA4D;sBAC1C,eAAe,CAAC,4BAA4B,CAAC;IAC/D,mDAAmD;cACzC,eAAe,CAAC,UAAU,CAAC;IACrC,qBAAqB;cACX,YAAY,EAAE;IACxB,8CAA8C;iBACjC,kBAAkB;;;;AAzDjC,wBAsTC"}
|
|
@@ -1,11 +1,14 @@
|
|
|
1
|
-
import { defineComponent as m,
|
|
2
|
-
import
|
|
1
|
+
import { defineComponent as m, createElementBlock as p, openBlock as h, createElementVNode as y, createVNode as o, withCtx as s, unref as n } from "vue";
|
|
2
|
+
import v from "../../../components/ViewLayout/ViewLayout.vue.js";
|
|
3
3
|
import f from "../../../components/ViewLayout/ViewLayoutContent.vue.js";
|
|
4
|
+
import { createStoreEvents as c } from "../../../store/events.js";
|
|
4
5
|
import B from "./components/Header.vue.js";
|
|
5
|
-
import g from "../
|
|
6
|
-
import
|
|
7
|
-
const
|
|
8
|
-
|
|
6
|
+
import g from "../request-block/RequestBlock.vue.js";
|
|
7
|
+
import S from "../response-block/ResponseBlock.vue.js";
|
|
8
|
+
const q = { class: "bg-b-1 flex h-full flex-col" }, b = { class: "lg:min-h-header flex w-full flex-wrap items-center justify-center p-2 lg:p-1" }, U = {
|
|
9
|
+
name: "OperationBlock"
|
|
10
|
+
}, M = /* @__PURE__ */ m({
|
|
11
|
+
...U,
|
|
9
12
|
props: {
|
|
10
13
|
eventBus: {},
|
|
11
14
|
appVersion: {},
|
|
@@ -31,90 +34,87 @@ const S = { class: "bg-b-1 flex h-full flex-col" }, V = { class: "lg:min-h-heade
|
|
|
31
34
|
securitySchemes: {},
|
|
32
35
|
selectedSecurity: {},
|
|
33
36
|
security: {},
|
|
34
|
-
events: {},
|
|
35
37
|
plugins: {},
|
|
36
|
-
environment: {}
|
|
37
|
-
envVariables: {}
|
|
38
|
+
environment: {}
|
|
38
39
|
},
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
40
|
+
emits: ["update:servers"],
|
|
41
|
+
setup(t, { emit: i }) {
|
|
42
|
+
const u = i, r = () => t.eventBus.emit("operation:send:request", {
|
|
43
|
+
meta: { path: t.path, method: t.method, exampleKey: t.exampleKey }
|
|
44
|
+
}), l = (e) => t.eventBus.emit("operation:update:method", {
|
|
45
|
+
meta: {
|
|
46
|
+
method: t.method,
|
|
47
|
+
path: t.path
|
|
48
|
+
},
|
|
49
|
+
payload: {
|
|
50
|
+
method: e.value
|
|
51
|
+
}
|
|
52
|
+
}), d = (e) => t.eventBus.emit(
|
|
53
|
+
"operation:update:path",
|
|
54
|
+
{
|
|
55
|
+
meta: {
|
|
56
|
+
method: t.method,
|
|
57
|
+
path: t.path
|
|
58
|
+
},
|
|
59
|
+
payload: {
|
|
60
|
+
path: e.value
|
|
61
|
+
}
|
|
62
|
+
},
|
|
63
|
+
{ debounceKey: "operation-update-path" }
|
|
64
|
+
);
|
|
65
|
+
return (e, a) => (h(), p("div", q, [
|
|
66
|
+
y("div", b, [
|
|
45
67
|
o(B, {
|
|
46
|
-
|
|
68
|
+
documentUrl: e.documentUrl,
|
|
47
69
|
environment: e.environment,
|
|
48
|
-
|
|
70
|
+
eventBus: e.eventBus,
|
|
71
|
+
hideClientButton: e.hideClientButton,
|
|
49
72
|
history: e.history,
|
|
73
|
+
integration: e.integration,
|
|
74
|
+
isSidebarOpen: e.isSidebarOpen,
|
|
50
75
|
layout: e.layout,
|
|
51
|
-
method:
|
|
52
|
-
path:
|
|
76
|
+
method: e.method,
|
|
77
|
+
path: e.path,
|
|
53
78
|
percentage: e.requestLoadingPercentage,
|
|
54
79
|
server: e.server,
|
|
55
80
|
servers: e.servers,
|
|
56
|
-
isSidebarOpen: e.isSidebarOpen,
|
|
57
81
|
showSidebar: e.showSidebar,
|
|
58
|
-
hideClientButton: e.hideClientButton,
|
|
59
|
-
integration: e.integration,
|
|
60
|
-
documentUrl: e.documentUrl,
|
|
61
82
|
source: e.source,
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
meta: {
|
|
68
|
-
method: e.method,
|
|
69
|
-
path: e.path
|
|
70
|
-
},
|
|
71
|
-
payload: {
|
|
72
|
-
method: r.value
|
|
73
|
-
}
|
|
74
|
-
})),
|
|
75
|
-
"onUpdate:path": t[2] || (t[2] = (r) => e.eventBus.emit("operation:update:path", {
|
|
76
|
-
meta: {
|
|
77
|
-
method: e.method,
|
|
78
|
-
path: e.path
|
|
79
|
-
},
|
|
80
|
-
payload: {
|
|
81
|
-
path: r.value
|
|
82
|
-
}
|
|
83
|
-
}))
|
|
84
|
-
}, null, 8, ["envVariables", "environment", "events", "history", "layout", "method", "path", "percentage", "server", "servers", "isSidebarOpen", "showSidebar", "hideClientButton", "integration", "documentUrl", "source", "eventBus"])
|
|
83
|
+
onExecute: r,
|
|
84
|
+
"onUpdate:method": l,
|
|
85
|
+
"onUpdate:path": d,
|
|
86
|
+
"onUpdate:servers": a[0] || (a[0] = (w) => u("update:servers"))
|
|
87
|
+
}, null, 8, ["documentUrl", "environment", "eventBus", "hideClientButton", "history", "integration", "isSidebarOpen", "layout", "method", "path", "percentage", "server", "servers", "showSidebar", "source"])
|
|
85
88
|
]),
|
|
86
|
-
o(
|
|
87
|
-
default:
|
|
89
|
+
o(v, null, {
|
|
90
|
+
default: s(() => [
|
|
88
91
|
o(f, { class: "flex flex-1" }, {
|
|
89
|
-
default:
|
|
90
|
-
o(
|
|
91
|
-
|
|
92
|
+
default: s(() => [
|
|
93
|
+
o(n(g), {
|
|
94
|
+
authMeta: e.authMeta,
|
|
92
95
|
environment: e.environment,
|
|
96
|
+
eventBus: e.eventBus,
|
|
93
97
|
exampleKey: e.exampleKey,
|
|
94
98
|
layout: e.layout,
|
|
95
99
|
method: e.method,
|
|
96
100
|
operation: e.operation,
|
|
97
101
|
path: e.path,
|
|
98
|
-
|
|
102
|
+
plugins: e.plugins,
|
|
99
103
|
security: e.security,
|
|
100
|
-
eventBus: e.eventBus,
|
|
101
104
|
securitySchemes: e.securitySchemes,
|
|
102
|
-
selectedSecurity: e.selectedSecurity
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
o(i(b), {
|
|
105
|
+
selectedSecurity: e.selectedSecurity
|
|
106
|
+
}, null, 8, ["authMeta", "environment", "eventBus", "exampleKey", "layout", "method", "operation", "path", "plugins", "security", "securitySchemes", "selectedSecurity"]),
|
|
107
|
+
o(n(S), {
|
|
106
108
|
appVersion: e.appVersion,
|
|
107
|
-
|
|
109
|
+
eventBus: e.eventBus,
|
|
110
|
+
events: n(c)(),
|
|
108
111
|
layout: e.layout,
|
|
112
|
+
plugins: e.plugins,
|
|
109
113
|
request: e.request,
|
|
110
114
|
response: e.response,
|
|
111
|
-
plugins: e.plugins,
|
|
112
|
-
eventBus: e.eventBus,
|
|
113
115
|
totalPerformedRequests: e.totalPerformedRequests,
|
|
114
|
-
onSendRequest:
|
|
115
|
-
|
|
116
|
-
}))
|
|
117
|
-
}, null, 8, ["appVersion", "events", "layout", "request", "response", "plugins", "eventBus", "totalPerformedRequests"])
|
|
116
|
+
onSendRequest: r
|
|
117
|
+
}, null, 8, ["appVersion", "eventBus", "events", "layout", "plugins", "request", "response", "totalPerformedRequests"])
|
|
118
118
|
]),
|
|
119
119
|
_: 1
|
|
120
120
|
})
|
|
@@ -125,5 +125,5 @@ const S = { class: "bg-b-1 flex h-full flex-col" }, V = { class: "lg:min-h-heade
|
|
|
125
125
|
}
|
|
126
126
|
});
|
|
127
127
|
export {
|
|
128
|
-
|
|
128
|
+
M as default
|
|
129
129
|
};
|
|
@@ -1,10 +1,8 @@
|
|
|
1
1
|
import type { HttpMethod } from '@scalar/helpers/http/http-methods';
|
|
2
|
-
import type { Environment } from '@scalar/oas-utils/entities/environment';
|
|
3
2
|
import type { WorkspaceEventBus } from '@scalar/workspace-store/events';
|
|
3
|
+
import type { XScalarEnvironment } from '@scalar/workspace-store/schemas/extensions/document/x-scalar-environments';
|
|
4
4
|
import type { ServerObject } from '@scalar/workspace-store/schemas/v3.1/strict/server';
|
|
5
5
|
import type { ClientLayout } from '../../../../hooks/index.js';
|
|
6
|
-
import type { EnvVariable } from '../../../../store/index.js';
|
|
7
|
-
import type { createStoreEvents } from '../../../../store/events.js';
|
|
8
6
|
import { type History } from '../../../../v2/blocks/scalar-address-bar-block/index.js';
|
|
9
7
|
type __VLS_Props = {
|
|
10
8
|
/** Current request path */
|
|
@@ -26,7 +24,7 @@ type __VLS_Props = {
|
|
|
26
24
|
/** Client source */
|
|
27
25
|
source?: 'gitbook' | 'api-reference';
|
|
28
26
|
/** Currently selected server */
|
|
29
|
-
server: ServerObject |
|
|
27
|
+
server: ServerObject | null;
|
|
30
28
|
/** Server list available for operation/document */
|
|
31
29
|
servers: ServerObject[];
|
|
32
30
|
/** List of request history */
|
|
@@ -39,14 +37,12 @@ type __VLS_Props = {
|
|
|
39
37
|
*/
|
|
40
38
|
requestLoadingPercentage?: number;
|
|
41
39
|
/** Event bus */
|
|
42
|
-
events: ReturnType<typeof createStoreEvents>;
|
|
43
40
|
eventBus: WorkspaceEventBus;
|
|
44
|
-
|
|
45
|
-
environment: Environment;
|
|
46
|
-
envVariables: EnvVariable[];
|
|
41
|
+
environment: XScalarEnvironment;
|
|
47
42
|
};
|
|
48
43
|
declare const _default: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {} & {
|
|
49
44
|
execute: () => any;
|
|
45
|
+
"update:servers": () => any;
|
|
50
46
|
"update:path": (payload: {
|
|
51
47
|
value: string;
|
|
52
48
|
}) => any;
|
|
@@ -55,6 +51,7 @@ declare const _default: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {
|
|
|
55
51
|
}) => any;
|
|
56
52
|
}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{
|
|
57
53
|
onExecute?: (() => any) | undefined;
|
|
54
|
+
"onUpdate:servers"?: (() => any) | undefined;
|
|
58
55
|
"onUpdate:path"?: ((payload: {
|
|
59
56
|
value: string;
|
|
60
57
|
}) => any) | undefined;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Header.vue.d.ts","sourceRoot":"","sources":["../../../../../src/v2/blocks/operation-block/components/Header.vue"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"Header.vue.d.ts","sourceRoot":"","sources":["../../../../../src/v2/blocks/operation-block/components/Header.vue"],"names":[],"mappings":"AA+JA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,mCAAmC,CAAA;AACnE,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,gCAAgC,CAAA;AACvE,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,2EAA2E,CAAA;AACnH,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,oDAAoD,CAAA;AAGtF,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,SAAS,CAAA;AAC3C,OAAO,EAAc,KAAK,OAAO,EAAE,MAAM,sCAAsC,CAAA;AAE/E,KAAK,WAAW,GAAG;IACjB,2BAA2B;IAC3B,IAAI,EAAE,MAAM,CAAA;IACZ,6BAA6B;IAC7B,MAAM,EAAE,UAAU,CAAA;IAClB,oBAAoB;IACpB,MAAM,EAAE,YAAY,CAAA;IACpB,yBAAyB;IACzB,aAAa,CAAC,EAAE,OAAO,CAAA;IACvB,kCAAkC;IAClC,WAAW,CAAC,EAAE,OAAO,CAAA;IACrB,4CAA4C;IAC5C,gBAAgB,CAAC,EAAE,OAAO,CAAA;IAC1B,0BAA0B;IAC1B,WAAW,CAAC,EAAE,MAAM,GAAG,IAAI,CAAA;IAC3B,mEAAmE;IACnE,WAAW,CAAC,EAAE,MAAM,CAAA;IACpB,oBAAoB;IACpB,MAAM,CAAC,EAAE,SAAS,GAAG,eAAe,CAAA;IACpC,gCAAgC;IAChC,MAAM,EAAE,YAAY,GAAG,IAAI,CAAA;IAC3B,mDAAmD;IACnD,OAAO,EAAE,YAAY,EAAE,CAAA;IACvB,8BAA8B;IAC9B,OAAO,EAAE,OAAO,EAAE,CAAA;IAClB;;;;;OAKG;IACH,wBAAwB,CAAC,EAAE,MAAM,CAAA;IACjC,gBAAgB;IAChB,QAAQ,EAAE,iBAAiB,CAAA;IAC3B,WAAW,EAAE,kBAAkB,CAAA;CAChC,CAAC;;;;;eAQW,MAAM;;;eAMN,UAAU;;;;;;eANV,MAAM;;;eAMN,UAAU;;;AAsOvB,wBAOG"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import o from "./Header.vue2.js";
|
|
2
2
|
/* empty css */
|
|
3
|
-
import
|
|
4
|
-
const
|
|
3
|
+
import r from "../../../../_virtual/_plugin-vue_export-helper.js";
|
|
4
|
+
const f = /* @__PURE__ */ r(o, [["__scopeId", "data-v-32ef98d1"]]);
|
|
5
5
|
export {
|
|
6
|
-
|
|
6
|
+
f as default
|
|
7
7
|
};
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { defineComponent as m, createElementBlock as
|
|
2
|
-
import { ScalarIcon as
|
|
1
|
+
import { defineComponent as m, createElementBlock as s, openBlock as n, createElementVNode as l, createVNode as u, createCommentVNode as i, normalizeClass as v, unref as a, createBlock as g } from "vue";
|
|
2
|
+
import { ScalarIcon as d } from "@scalar/components";
|
|
3
3
|
import f from "../../scalar-address-bar-block/components/AddressBar.vue.js";
|
|
4
4
|
import y from "../../../../components/OpenApiClientButton.vue.js";
|
|
5
|
-
const b = { class: "lg:min-h-header t-app__top-container flex w-full flex-wrap items-center justify-center border-b p-2 pt-2 lg:p-1 lg:pt-1" }, h = { class: "mb-2 flex w-1/2 flex-row items-center gap-1 lg:mb-0 lg:flex-1 lg:px-1" }, B = { class: "mb-2 flex w-1/2 flex-row items-center justify-end gap-1 lg:mb-0 lg:flex-1 lg:px-2.5" },
|
|
5
|
+
const b = { class: "lg:min-h-header t-app__top-container flex w-full flex-wrap items-center justify-center border-b p-2 pt-2 lg:p-1 lg:pt-1" }, h = { class: "mb-2 flex w-1/2 flex-row items-center gap-1 lg:mb-0 lg:flex-1 lg:px-1" }, B = { class: "mb-2 flex w-1/2 flex-row items-center justify-end gap-1 lg:mb-0 lg:flex-1 lg:px-2.5" }, U = /* @__PURE__ */ m({
|
|
6
6
|
__name: "Header",
|
|
7
7
|
props: {
|
|
8
8
|
path: {},
|
|
@@ -18,27 +18,22 @@ const b = { class: "lg:min-h-header t-app__top-container flex w-full flex-wrap i
|
|
|
18
18
|
servers: {},
|
|
19
19
|
history: {},
|
|
20
20
|
requestLoadingPercentage: {},
|
|
21
|
-
events: {},
|
|
22
21
|
eventBus: {},
|
|
23
|
-
environment: {}
|
|
24
|
-
envVariables: {}
|
|
22
|
+
environment: {}
|
|
25
23
|
},
|
|
26
|
-
emits: ["execute", "update:path", "update:method"],
|
|
24
|
+
emits: ["execute", "update:path", "update:method", "update:servers"],
|
|
27
25
|
setup(C, { emit: p }) {
|
|
28
|
-
const
|
|
29
|
-
return (e, t) => (n(),
|
|
30
|
-
|
|
31
|
-
e.showSidebar ? (n(),
|
|
26
|
+
const r = p;
|
|
27
|
+
return (e, t) => (n(), s("div", b, [
|
|
28
|
+
l("div", h, [
|
|
29
|
+
e.showSidebar ? (n(), s("div", {
|
|
32
30
|
key: 0,
|
|
33
31
|
class: v(["size-8", { hidden: e.layout === "modal" && !e.isSidebarOpen }])
|
|
34
|
-
}, null, 2)) :
|
|
32
|
+
}, null, 2)) : i("", !0)
|
|
35
33
|
]),
|
|
36
|
-
|
|
37
|
-
"onUpdate:method": t[0] || (t[0] = (o) => a("update:method", o)),
|
|
38
|
-
"onUpdate:path": t[1] || (t[1] = (o) => a("update:path", o)),
|
|
39
|
-
envVariables: e.envVariables,
|
|
34
|
+
u(a(f), {
|
|
40
35
|
environment: e.environment,
|
|
41
|
-
|
|
36
|
+
eventBus: e.eventBus,
|
|
42
37
|
history: e.history,
|
|
43
38
|
layout: e.layout,
|
|
44
39
|
method: e.method,
|
|
@@ -46,48 +41,50 @@ const b = { class: "lg:min-h-header t-app__top-container flex w-full flex-wrap i
|
|
|
46
41
|
percentage: e.requestLoadingPercentage,
|
|
47
42
|
server: e.server,
|
|
48
43
|
servers: e.servers,
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
44
|
+
onExecute: t[0] || (t[0] = (o) => r("execute")),
|
|
45
|
+
"onUpdate:method": t[1] || (t[1] = (o) => r("update:method", o)),
|
|
46
|
+
"onUpdate:path": t[2] || (t[2] = (o) => r("update:path", o)),
|
|
47
|
+
"onUpdate:servers": t[3] || (t[3] = (o) => r("update:servers"))
|
|
48
|
+
}, null, 8, ["environment", "eventBus", "history", "layout", "method", "path", "percentage", "server", "servers"]),
|
|
49
|
+
l("div", B, [
|
|
50
|
+
e.layout === "modal" && e.documentUrl && !e.hideClientButton ? (n(), g(a(y), {
|
|
54
51
|
key: 0,
|
|
55
52
|
buttonSource: "modal",
|
|
56
53
|
class: "!w-fit lg:-mr-1",
|
|
57
54
|
integration: e.integration ?? null,
|
|
58
55
|
source: e.source ?? "api-reference",
|
|
59
56
|
url: e.documentUrl
|
|
60
|
-
}, null, 8, ["integration", "source", "url"])) :
|
|
61
|
-
e.layout === "modal" ? (n(),
|
|
57
|
+
}, null, 8, ["integration", "source", "url"])) : i("", !0),
|
|
58
|
+
e.layout === "modal" && e.source !== "gitbook" ? (n(), s("button", {
|
|
62
59
|
key: 1,
|
|
63
|
-
class: "app-exit-button
|
|
60
|
+
class: "app-exit-button zoomed:static zoomed:p-1 fixed top-2 right-2 rounded-full p-2",
|
|
64
61
|
type: "button",
|
|
65
|
-
onClick: t[
|
|
62
|
+
onClick: t[4] || (t[4] = (o) => e.eventBus.emit("hide:modal"))
|
|
66
63
|
}, [
|
|
67
|
-
|
|
64
|
+
u(a(d), {
|
|
68
65
|
icon: "Close",
|
|
69
66
|
size: "lg",
|
|
70
67
|
thickness: "2"
|
|
71
68
|
}),
|
|
72
|
-
t[
|
|
73
|
-
])) :
|
|
74
|
-
e.layout === "modal" ? (n(),
|
|
69
|
+
t[6] || (t[6] = l("span", { class: "sr-only" }, "Close Client", -1))
|
|
70
|
+
])) : i("", !0),
|
|
71
|
+
e.layout === "modal" && e.source === "gitbook" ? (n(), s("button", {
|
|
75
72
|
key: 2,
|
|
76
|
-
class: "text-c-1 hover:bg-b-2 active:text-c-1
|
|
73
|
+
class: "text-c-1 hover:bg-b-2 active:text-c-1 -mr-1.5 rounded p-2",
|
|
77
74
|
type: "button",
|
|
78
|
-
onClick: t[
|
|
75
|
+
onClick: t[5] || (t[5] = (o) => e.eventBus.emit("hide:modal"))
|
|
79
76
|
}, [
|
|
80
|
-
|
|
77
|
+
u(a(d), {
|
|
81
78
|
icon: "Close",
|
|
82
79
|
size: "md",
|
|
83
80
|
thickness: "1.75"
|
|
84
81
|
}),
|
|
85
|
-
t[
|
|
86
|
-
])) :
|
|
82
|
+
t[7] || (t[7] = l("span", { class: "sr-only" }, "Close Client", -1))
|
|
83
|
+
])) : i("", !0)
|
|
87
84
|
])
|
|
88
85
|
]));
|
|
89
86
|
}
|
|
90
87
|
});
|
|
91
88
|
export {
|
|
92
|
-
|
|
89
|
+
U as default
|
|
93
90
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ExamplePicker.vue.d.ts","sourceRoot":"","sources":["../../../../../src/v2/blocks/operation-code-sample/components/ExamplePicker.vue"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"ExamplePicker.vue.d.ts","sourceRoot":"","sources":["../../../../../src/v2/blocks/operation-code-sample/components/ExamplePicker.vue"],"names":[],"mappings":"AA4DA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,8DAA8D,CAAA;AAGnG,KAAK,WAAW,GAAG;IACjB,QAAQ,CAAC,EAAE,eAAe,CAAC,UAAU,CAAC,CAAA;CACvC,CAAC;AAwBF,KAAK,iBAAiB,GAAG,WAAW,GAAG;IACvC,UAAU,EAAE,MAAM,CAAC;CAClB,CAAC;;;;;;AA0GF,wBAOG"}
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { defineComponent as u, mergeModels as
|
|
1
|
+
import { defineComponent as u, mergeModels as p, useModel as c, computed as m, createBlock as f, openBlock as x, unref as l, withCtx as n, createVNode as i, createElementVNode as v, toDisplayString as w } from "vue";
|
|
2
2
|
import { ScalarListbox as V, ScalarButton as b } from "@scalar/components";
|
|
3
3
|
import { ScalarIconCaretDown as g } from "@scalar/icons";
|
|
4
4
|
const _ = { class: "min-w-0 flex-1 truncate" }, k = /* @__PURE__ */ u({
|
|
5
5
|
__name: "ExamplePicker",
|
|
6
|
-
props: /* @__PURE__ */
|
|
6
|
+
props: /* @__PURE__ */ p({
|
|
7
7
|
examples: { default: () => ({}) }
|
|
8
8
|
}, {
|
|
9
9
|
modelValue: {
|
|
@@ -13,29 +13,30 @@ const _ = { class: "min-w-0 flex-1 truncate" }, k = /* @__PURE__ */ u({
|
|
|
13
13
|
}),
|
|
14
14
|
emits: ["update:modelValue"],
|
|
15
15
|
setup(o) {
|
|
16
|
-
const
|
|
16
|
+
const r = c(o, "modelValue"), s = m(
|
|
17
17
|
() => Object.entries(o.examples).map(([e, t]) => ({
|
|
18
18
|
id: e,
|
|
19
19
|
label: t?.summary ?? e
|
|
20
20
|
}))
|
|
21
|
-
), a =
|
|
22
|
-
get: () =>
|
|
23
|
-
set: (e) =>
|
|
21
|
+
), a = m({
|
|
22
|
+
get: () => s.value.find(({ id: e }) => e === r.value),
|
|
23
|
+
set: (e) => r.value = e?.id ?? ""
|
|
24
24
|
});
|
|
25
25
|
return (e, t) => (x(), f(l(V), {
|
|
26
26
|
modelValue: a.value,
|
|
27
27
|
"onUpdate:modelValue": t[0] || (t[0] = (d) => a.value = d),
|
|
28
28
|
class: "w-fit min-w-32",
|
|
29
|
-
options:
|
|
30
|
-
placement: "bottom-start"
|
|
29
|
+
options: s.value,
|
|
30
|
+
placement: "bottom-start",
|
|
31
|
+
teleport: ""
|
|
31
32
|
}, {
|
|
32
|
-
default:
|
|
33
|
+
default: n(() => [
|
|
33
34
|
i(l(b), {
|
|
34
35
|
class: "text-c-2 hover:text-c-1 flex h-full w-fit min-w-0 gap-1.5 px-1.5 py-0.75 text-base font-normal",
|
|
35
36
|
"data-testid": "example-picker",
|
|
36
37
|
variant: "ghost"
|
|
37
38
|
}, {
|
|
38
|
-
default:
|
|
39
|
+
default: n(() => [
|
|
39
40
|
v("div", _, w(a.value?.label ?? "Select an example"), 1),
|
|
40
41
|
i(l(g), {
|
|
41
42
|
class: "ui-open:rotate-180 mt-0.25 size-3 transition-transform duration-100",
|
|
@@ -1,39 +1,25 @@
|
|
|
1
1
|
import type { HttpMethod } from '@scalar/helpers/http/http-methods';
|
|
2
|
-
import type { Environment } from '@scalar/oas-utils/entities/environment';
|
|
3
2
|
import type { WorkspaceEventBus } from '@scalar/workspace-store/events';
|
|
4
3
|
import type { AuthMeta } from '@scalar/workspace-store/mutators';
|
|
4
|
+
import type { XScalarEnvironment } from '@scalar/workspace-store/schemas/extensions/document/x-scalar-environments';
|
|
5
5
|
import type { OpenApiDocument, OperationObject, ServerObject } from '@scalar/workspace-store/schemas/v3.1/strict/openapi-document';
|
|
6
|
-
import type { ClientLayout } from '
|
|
7
|
-
import type {
|
|
8
|
-
import type { ClientPlugin } from '../../../../v2/plugins';
|
|
6
|
+
import type { ClientLayout } from '../../../hooks/index.js';
|
|
7
|
+
import type { ClientPlugin } from '../../../v2/plugins';
|
|
9
8
|
type __VLS_Props = {
|
|
10
|
-
/** Operation method */
|
|
11
9
|
method: HttpMethod;
|
|
12
|
-
/** Operation path */
|
|
13
10
|
path: string;
|
|
14
|
-
/** Operation object */
|
|
15
11
|
operation: OperationObject;
|
|
16
|
-
/** Meta information for the auth update */
|
|
17
12
|
authMeta?: AuthMeta;
|
|
18
|
-
/** Currently selected example key for the current operation */
|
|
19
13
|
exampleKey: string;
|
|
20
|
-
/** Document defined security schemes */
|
|
21
14
|
securitySchemes: NonNullable<OpenApiDocument['components']>['securitySchemes'];
|
|
22
|
-
/** Currently selected security for the current operation */
|
|
23
15
|
selectedSecurity: OpenApiDocument['x-scalar-selected-security'];
|
|
24
|
-
/** Required security for the operation/document */
|
|
25
16
|
security: OpenApiDocument['security'];
|
|
26
|
-
/** Currently selected server for the current operation/document/workspace */
|
|
27
17
|
server?: ServerObject;
|
|
28
|
-
/** Client layout */
|
|
29
18
|
layout: ClientLayout;
|
|
30
|
-
/** Registered app plugins */
|
|
31
19
|
plugins?: ClientPlugin[];
|
|
32
20
|
eventBus: WorkspaceEventBus;
|
|
33
|
-
|
|
34
|
-
environment: Environment;
|
|
35
|
-
envVariables: EnvVariable[];
|
|
21
|
+
environment: XScalarEnvironment;
|
|
36
22
|
};
|
|
37
23
|
declare const _default: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
38
24
|
export default _default;
|
|
39
|
-
//# sourceMappingURL=
|
|
25
|
+
//# sourceMappingURL=RequestBlock.vue.d.ts.map
|