UNPKG

@redocly/portal-plugin-soap-api

Version:

SOAP API plugin for Redocly products

10 lines (9 loc) 1.37 kB
import e from"react";import l from"styled-components";import{saveAs as f}from"file-saver";import{Button as h,CodeBlock as i,H1 as o,useThemeHooks as g}from"@redocly/theme";import{DocumentationLayout as w}from"@redocly/theme/layouts/DocumentationLayout";const x=({pageProps:t})=>{const{useSidebarSiblingsData:a,useCodeHighlight:c}=g(),{nextPage:m,prevPage:r}=a()||{},{highlight:n}=c()||{},s=()=>{const d=t.wsdl||"",u=new Blob([d],{type:"application/wsdl+xml"});f(u,`${t.title||"wsdl"}.wsdl`)};return e.createElement(w,{tableOfContent:void 0,feedback:void 0,nextPage:m,prevPage:r},e.createElement(e.Fragment,null,t.request?e.createElement(e.Fragment,null,e.createElement(o,null,t.title),t.description?e.createElement(b,null,t.description):null,e.createElement(i,{header:{controls:{copy:{}},title:"Request example"},lang:"xml",source:t.request,highlightedHtml:n(t.request||"")})):e.createElement(e.Fragment,null,e.createElement(o,null,t.title),e.createElement(E,null,e.createElement(v,{variant:"primary",size:"small",onClick:s},"Download WSDL"),e.createElement(i,{header:{controls:{copy:{}},title:t.title},lang:"xml",source:t.wsdl,highlightedHtml:n(t.wsdl||"","xml")})))))};var q=x;const E=l.div` display: flex; flex-direction: column; gap: var(--spacing-base); `,b=l.div` margin-bottom: var(--spacing-base); `,v=l(h)` align-self: flex-end; `;export{q as default};