@redocly/asyncapi-docs 0.5.0-rc.7 → 0.5.0-rc.9
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/lib/RedoclyAsyncAPIDocs.js +1 -1
- package/lib/components/ApiInfo.d.ts +2 -0
- package/lib/components/ApiInfo.js +1 -1
- package/lib/components/AppRouter.js +1 -1
- package/lib/components/AsyncApiDocs.js +1 -1
- package/lib/components/Breadcrumbs.js +2 -2
- package/lib/components/ChannelBinding.js +1 -1
- package/lib/components/ChannelLinkItem.js +3 -3
- package/lib/components/ChannelParameters.js +3 -3
- package/lib/components/ChannelSection.js +6 -6
- package/lib/components/DownloadSpecification.js +4 -4
- package/lib/components/ItemsNavigation.js +6 -6
- package/lib/components/JsonSchema.js +1 -1
- package/lib/components/MarkdownSection.js +2 -2
- package/lib/components/Message.js +4 -4
- package/lib/components/MessageAMQPReferences.js +6 -6
- package/lib/components/MessageBinding.js +1 -1
- package/lib/components/MessageReferences.js +1 -1
- package/lib/components/MessageSection.js +7 -7
- package/lib/components/Metadata.d.ts +8 -0
- package/lib/components/Metadata.js +1 -0
- package/lib/components/Operation.js +11 -11
- package/lib/components/OperationBinding.js +1 -1
- package/lib/components/OperationSection.js +5 -5
- package/lib/components/RightPanel.js +1 -1
- package/lib/components/SamplesPanel.js +5 -5
- package/lib/components/Server.js +7 -7
- package/lib/components/ServerBindingsSection.js +1 -1
- package/lib/components/ServerModal.js +7 -7
- package/lib/components/ServerOverviewSection.js +7 -7
- package/lib/components/ServersListPanel.js +3 -3
- package/lib/components/TagBlock.js +9 -9
- package/lib/components/common/BindingPanel.js +6 -6
- package/lib/components/common/Information.js +2 -2
- package/lib/components/common/Link.js +9 -9
- package/lib/components/common/ListIcon.d.ts +1 -1
- package/lib/components/common/ListIcon.js +6 -6
- package/lib/components/common/MoreDetailsButton.js +2 -2
- package/lib/components/common/SectionWrapper.js +1 -1
- package/lib/components/common/TagWithIcon.js +6 -6
- package/lib/components/common/index.js +1 -1
- package/lib/components/common/styles.js +18 -18
- package/lib/hooks/index.js +1 -1
- package/lib/hooks/use-auto-scroll.js +1 -1
- package/lib/hooks/use-performance-metrics.js +1 -1
- package/lib/hooks/use-protocol-labels.js +1 -1
- package/lib/hooks/use-telemetry.js +1 -1
- package/lib/hooks/use-translate.js +1 -1
- package/lib/index.js +1 -1
- package/lib/jotai-store/Provider.js +1 -1
- package/lib/jotai-store/app.js +1 -1
- package/lib/types/apiItem.js +1 -1
- package/lib/types/async-api.js +1 -1
- package/lib/types/index.js +1 -1
- package/lib/types/protocol.js +1 -1
- package/lib/utils/avro-to-json-schema.js +1 -1
- package/lib/utils/build-menu-items.js +1 -1
- package/lib/utils/find-first-binding.js +1 -1
- package/lib/utils/generate-ast.js +1 -1
- package/lib/utils/generate-channel-link.js +1 -1
- package/lib/utils/generate-message-references-header.js +1 -1
- package/lib/utils/get-schema.js +1 -1
- package/lib/utils/index.js +1 -1
- package/lib/utils/is-equal.js +1 -1
- package/lib/utils/map-channel-to-operations.js +1 -1
- package/lib/utils/modify-payload.js +1 -1
- package/lib/utils/nav-to-api-items.js +1 -1
- package/lib/utils/try-decode-url-component.js +1 -1
- package/package.json +1 -1
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
|
|
1
|
+
var N=Object.create;var f=Object.defineProperty;var U=Object.getOwnPropertyDescriptor;var V=Object.getOwnPropertyNames;var q=Object.getPrototypeOf,K=Object.prototype.hasOwnProperty;var G=(e,s)=>{for(var r in s)f(e,r,{get:s[r],enumerable:!0})},T=(e,s,r,v)=>{if(s&&typeof s=="object"||typeof s=="function")for(let d of V(s))!K.call(e,d)&&d!==r&&f(e,d,{get:()=>s[d],enumerable:!(v=U(s,d))||v.enumerable});return e};var z=(e,s,r)=>(r=e!=null?N(q(e)):{},T(s||!e||!e.__esModule?f(r,"default",{value:e,enumerable:!0}):r,e)),J=e=>T(f({},"__esModule",{value:!0}),e);var le={};G(le,{Operation:()=>Q});module.exports=J(le);var i=require("react/jsx-runtime"),o=z(require("styled-components")),u=require("jotai"),a=require("@redocly/openapi-docs"),l=require("@redocly/theme"),m=z(require("react")),C=require("react-router-dom"),c=require("./common"),D=require("./OperationBinding"),g=require("../jotai-store/app"),y=require("../hooks"),H=require("../utils");const Q=m.default.memo(({operation:e,dataSectionId:s,headerRow:r,id:v,showDivider:d})=>{var b,x,k,w;const A=(0,u.useAtomValue)(g.layoutAtom),h=(0,u.useAtomValue)(g.routingBasePathAtom),p=(0,u.useAtomValue)(g.definitionAtom),P=A===l.LayoutVariant.STACKED,{getProtocolLabel:R}=(0,y.useProtocolLabels)(),S=(0,y.useTelemetry)(),M=(0,m.useMemo)(()=>Object.entries(e?.bindings||{}).map(([n,t])=>({key:n,value:t})),[e?.bindings]),W=(0,m.useMemo)(()=>{var n;return(n=e?.["x-badges"])===null||n===void 0?void 0:n.map(t=>Object.assign(Object.assign({},t),{position:t.position||"after"}))},[e]),L=(0,C.useNavigate)(),$=(0,m.useCallback)(n=>{var t,_;const j=(_=Object.entries(((t=p?.components)===null||t===void 0?void 0:t.messages)||{}).find(([ae,F])=>(0,H.isEqual)(F,n)))===null||_===void 0?void 0:_[0];if(!j||!s)return;const I=s.substring(1).split("/operations")[0],E=(0,l.combineUrls)(h,(0,a.makeDeepLink)(I,`messages&m=${j}`));S.send({type:"asyncapi_docs.message.clicked",payload:{message:j}}),L(E)},[s,(b=p?.components)===null||b===void 0?void 0:b.messages,L,h,S]);return e?(0,i.jsx)(i.Fragment,{children:(0,i.jsxs)(X,{sectionId:(0,l.combineUrls)(h,s),"data-component-name":"Operation/Operation",hasHeader:!!r,children:[r,(0,i.jsxs)(a.Row,{layout:A,children:[(0,i.jsxs)(se,{isStacked:P,children:[(0,i.jsxs)("div",{children:[(0,i.jsx)(c.ActionTag,{color:e.action,children:R(e.action)}),(0,i.jsxs)(B,{children:[(0,i.jsx)(a.CustomBadges,{badges:W,children:e.title||v}),(0,i.jsx)(c.ShareLink,{to:(0,l.combineUrls)(h,s),"aria-label":`link to ${e.title||v}`})]}),(0,i.jsx)(c.Information,{summary:e.summary,description:e.description,externalDocs:e.externalDocs}),((x=e.messages)===null||x===void 0?void 0:x.length)&&(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(Y,{children:"Messages"}),(0,i.jsx)(Z,{children:(k=e.messages)===null||k===void 0?void 0:k.map((n,t)=>(0,i.jsxs)(ne,{icon:null,onClick:()=>$(n),children:[n.title||n.name,(0,i.jsx)(l.ArrowUpRightIcon,{size:"12px"})]},t))})]}),e.reply&&(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(B,{children:"Reply"}),(0,i.jsxs)(ee,{children:[e.reply.address&&(0,i.jsxs)(O,{children:[(0,i.jsx)("span",{children:"Address: "}),(0,i.jsx)("span",{children:e.reply.address.location})]}),e.reply.channel&&(0,i.jsxs)(O,{children:[(0,i.jsx)("span",{children:"Topic: "}),(0,i.jsx)("span",{children:e.reply.channel.address})]}),!!(!((w=e.reply.messages)===null||w===void 0)&&w.length)&&(0,i.jsxs)(O,{children:[(0,i.jsx)("span",{children:"Messages: "}),(0,i.jsx)("span",{children:e.reply.messages.map(n=>n.title||n.name).join(", ")})]})]})]})]}),d&&(0,i.jsx)(ie,{})]}),(0,i.jsx)(a.OperationSamplesPanel,{isStacked:P,className:"panel-container-response-samples",children:!!M.length&&(0,i.jsx)(D.OperationBinding,{binding:M[0],id:s})})]})]})}):null}),X=(0,o.default)(a.Section)`
|
|
2
2
|
padding: var(--spacing-lg) 0;
|
|
3
3
|
scroll-margin-top: ${e=>e.hasHeader?"calc(var(--navbar-height) - var(--spacing-xl)*2)":"var(--navbar-height)"} !important;
|
|
4
|
-
`,
|
|
4
|
+
`,B=(0,o.default)(l.H4)`
|
|
5
5
|
font-size: var(--font-size-lg);
|
|
6
6
|
font-weight: var(--font-weight-semibold);
|
|
7
7
|
margin: 0 0 var(--spacing-xxs) 0;
|
|
@@ -12,34 +12,34 @@
|
|
|
12
12
|
gap: var(--spacing-xs);
|
|
13
13
|
flex-wrap: wrap;
|
|
14
14
|
:hover {
|
|
15
|
-
${
|
|
15
|
+
${l.LinkIcon} {
|
|
16
16
|
opacity: 1;
|
|
17
17
|
visibility: visible;
|
|
18
18
|
}
|
|
19
19
|
}
|
|
20
|
-
`,
|
|
20
|
+
`,Y=(0,o.default)(l.H4)`
|
|
21
21
|
font-size: var(--font-size-base);
|
|
22
22
|
font-weight: var(--font-weight-medium);
|
|
23
23
|
margin: var(--spacing-sm) 0 0 0;
|
|
24
|
-
`,
|
|
24
|
+
`,Z=o.default.div`
|
|
25
25
|
display: flex;
|
|
26
26
|
flex-direction: row;
|
|
27
27
|
flex-wrap: wrap;
|
|
28
28
|
gap: var(--spacing-xs);
|
|
29
29
|
padding: var(--spacing-xs) 0;
|
|
30
|
-
`,
|
|
30
|
+
`,ee=o.default.div`
|
|
31
31
|
display: flex;
|
|
32
32
|
flex-direction: column;
|
|
33
33
|
padding: var(--spacing-xs) 0;
|
|
34
|
-
`,O=(0,
|
|
34
|
+
`,O=(0,o.default)(l.H4)`
|
|
35
35
|
& > span:first-child {
|
|
36
36
|
font-weight: var(--font-weight-medium);
|
|
37
37
|
}
|
|
38
|
-
`,
|
|
38
|
+
`,ie=o.default.div`
|
|
39
39
|
border-bottom: 1px solid var(--border-color-secondary);
|
|
40
|
-
`,
|
|
40
|
+
`,se=(0,o.default)(a.SamplesMiddlePanel)`
|
|
41
41
|
display: flex;
|
|
42
42
|
justify-content: space-between;
|
|
43
|
-
`,
|
|
43
|
+
`,ne=(0,o.default)(c.TagWithIcon)`
|
|
44
44
|
cursor: pointer;
|
|
45
|
-
`;
|
|
45
|
+
`;0&&(module.exports={Operation});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
var c=Object.defineProperty;var O=Object.getOwnPropertyDescriptor;var j=Object.getOwnPropertyNames;var I=Object.prototype.hasOwnProperty;var x=(e,t)=>{for(var o in t)c(e,o,{get:t[o],enumerable:!0})},_=(e,t,o,r)=>{if(t&&typeof t=="object"||typeof t=="function")for(let n of j(t))!I.call(e,n)&&n!==o&&c(e,n,{get:()=>t[n],enumerable:!(r=O(t,n))||r.enumerable});return e};var B=e=>_(c({},"__esModule",{value:!0}),e);var V={};x(V,{OperationBinding:()=>w});module.exports=B(V);var i=require("react/jsx-runtime"),a=require("@redocly/theme"),d=require("jotai"),f=require("@redocly/openapi-docs"),g=require("./common"),p=require("./JsonSchema"),m=require("../utils"),l=require("../jotai-store/app"),P=function(e,t){var o={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(o[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var n=0,r=Object.getOwnPropertySymbols(e);n<r.length;n++)t.indexOf(r[n])<0&&Object.prototype.propertyIsEnumerable.call(e,r[n])&&(o[r[n]]=e[r[n]]);return o};const w=({binding:e,id:t})=>{const o=(0,d.useAtomValue)(l.routingBasePathAtom),r=(0,a.combineUrls)(o,(0,f.makeDeepLink)(t,""));return(0,i.jsx)(g.BindingPanel,{header:"Operation configuration",children:(({key:u,value:s})=>{const{bindingVersion:k}=s,h=P(s,["bindingVersion"]);switch(u){case"kafka":const b={type:"object",properties:{groupId:(0,m.getSchema)(s.groupId)}},y={type:"object",properties:{clientId:(0,m.getSchema)(s.clientId)}};return(0,i.jsxs)(i.Fragment,{children:[s.groupId&&(0,i.jsx)(p.JsonSchema,{schema:b,slug:r}),s.clientId&&(0,i.jsx)(p.JsonSchema,{schema:y,slug:r})]});default:return(0,i.jsx)(a.JsonViewer,{data:h,expandLevel:3,hideHeader:!0})}})(e)})};0&&(module.exports={OperationBinding});
|
|
@@ -1,17 +1,17 @@
|
|
|
1
|
-
|
|
1
|
+
var P=Object.create;var c=Object.defineProperty;var j=Object.getOwnPropertyDescriptor;var D=Object.getOwnPropertyNames;var O=Object.getPrototypeOf,R=Object.prototype.hasOwnProperty;var I=(o,t)=>{for(var i in t)c(o,i,{get:t[i],enumerable:!0})},g=(o,t,i,l)=>{if(t&&typeof t=="object"||typeof t=="function")for(let r of D(t))!R.call(o,r)&&r!==i&&c(o,r,{get:()=>t[r],enumerable:!(l=j(t,r))||l.enumerable});return o};var v=(o,t,i)=>(i=o!=null?P(O(o)):{},g(t||!o||!o.__esModule?c(i,"default",{value:o,enumerable:!0}):i,o)),_=o=>g(c({},"__esModule",{value:!0}),o);var T={};I(T,{OperationSection:()=>$});module.exports=_(T);var a=require("react/jsx-runtime"),u=v(require("styled-components")),e=require("@redocly/theme"),n=require("@redocly/openapi-docs"),d=require("jotai"),S=v(require("react")),b=require("./Operation"),k=require("../hooks"),m=require("../jotai-store/app"),L=require("./common");const $=S.default.memo(({operations:o,type:t,id:i})=>{const{getProtocolLabel:l}=(0,k.useProtocolLabels)(),r=(0,d.useAtomValue)(m.layoutAtom),w=(0,d.useAtomValue)(m.definitionAtom),x=(0,d.useAtomValue)(m.routingBasePathAtom),y=r===e.LayoutVariant.STACKED,A=o.length?(0,a.jsx)(n.Row,{layout:r,children:(0,a.jsx)(n.SamplesMiddlePanel,{isStacked:y,children:(0,a.jsxs)(H,{children:[(0,a.jsx)(L.LinkToField,{to:(0,e.combineUrls)(x,(0,n.makeDeepLink)(i,t))}),l(`${t}Label`)]})})}):null;return(0,a.jsx)(B,{"data-component-name":"OperationSection/OperationSection",children:o.map((s,f)=>{var p;const h=(p=w.operations)===null||p===void 0?void 0:p[s.id];return h?(0,a.jsx)(b.Operation,{operation:h,dataSectionId:s.dataSectionId,headerRow:f===0?A:null,id:s.id,showDivider:f!==o.length-1},s.id):null})})}),B=u.default.div`
|
|
2
2
|
width: 100%;
|
|
3
|
-
`,
|
|
3
|
+
`,H=(0,u.default)(e.H4)`
|
|
4
4
|
margin-bottom: var(--spacing-lg);
|
|
5
5
|
text-transform: capitalize;
|
|
6
6
|
position: relative;
|
|
7
7
|
:hover {
|
|
8
|
-
${
|
|
8
|
+
${e.LinkIcon} {
|
|
9
9
|
opacity: 1;
|
|
10
10
|
visibility: visible;
|
|
11
11
|
}
|
|
12
12
|
}
|
|
13
13
|
|
|
14
|
-
@media screen and (max-width: ${
|
|
14
|
+
@media screen and (max-width: ${e.breakpoints.large}) {
|
|
15
15
|
margin: 0;
|
|
16
16
|
}
|
|
17
|
-
`;
|
|
17
|
+
`;0&&(module.exports={OperationSection});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
var P=Object.create;var s=Object.defineProperty;var S=Object.getOwnPropertyDescriptor;var f=Object.getOwnPropertyNames;var g=Object.getPrototypeOf,j=Object.prototype.hasOwnProperty;var A=(e,a)=>{for(var t in a)s(e,t,{get:a[t],enumerable:!0})},d=(e,a,t,r)=>{if(a&&typeof a=="object"||typeof a=="function")for(let l of f(a))!j.call(e,l)&&l!==t&&s(e,l,{get:()=>a[l],enumerable:!(r=S(a,l))||r.enumerable});return e};var R=(e,a,t)=>(t=e!=null?P(g(e)):{},d(a||!e||!e.__esModule?s(t,"default",{value:e,enumerable:!0}):t,e)),D=e=>d(s({},"__esModule",{value:!0}),e);var b={};A(b,{RightPanel:()=>O});module.exports=D(b);var o=require("react/jsx-runtime"),c=require("jotai"),n=require("@redocly/openapi-docs"),i=require("@redocly/theme"),m=R(require("react")),p=require("./ServersListPanel"),v=require("./DownloadSpecification"),u=require("../jotai-store/app"),h=require("../hooks");const O=m.default.memo(({info:e,servers:a})=>{const t=(0,h.useTranslate)(),r=(0,m.useMemo)(()=>Object.entries(a||{}).map(([x,y])=>({key:x,value:y})),[a]),w=(0,c.useAtomValue)(u.layoutAtom)===i.LayoutVariant.STACKED;return(0,o.jsxs)(n.RightPanelContainer,{isStacked:w,"data-component-name":"RightPanel/RightPanel",children:[(0,o.jsx)(i.Panel,{className:"panel-download",header:t("asyncapi.download.description.title","Download AsycAPI description"),isExpandable:!1,children:(0,o.jsx)(v.DownloadSpecification,{})}),(e?.license||e?.contact||e?.termsOfService)&&(0,o.jsx)(i.Panel,{className:"panel-overview",header:t("asyncapi.info.title","Overview"),isExpandable:!1,children:(0,o.jsx)(i.Markdown,{children:(0,o.jsx)(n.Overview,{info:e,translate:t})})}),!!r?.length&&(0,o.jsx)(p.ServersListPanel,{servers:r,showDetails:!0})]})});0&&(module.exports={RightPanel});
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
|
|
2
|
-
${
|
|
1
|
+
var y=Object.create;var c=Object.defineProperty;var w=Object.getOwnPropertyDescriptor;var x=Object.getOwnPropertyNames;var E=Object.getPrototypeOf,P=Object.prototype.hasOwnProperty;var S=(e,o)=>{for(var n in o)c(e,n,{get:o[n],enumerable:!0})},f=(e,o,n,r)=>{if(o&&typeof o=="object"||typeof o=="function")for(let a of x(o))!P.call(e,a)&&a!==n&&c(e,a,{get:()=>o[a],enumerable:!(r=w(o,a))||r.enumerable});return e};var _=(e,o,n)=>(n=e!=null?y(E(e)):{},f(o||!e||!e.__esModule?c(n,"default",{value:e,enumerable:!0}):n,e)),b=e=>f(c({},"__esModule",{value:!0}),e);var B={};S(B,{SamplesPanel:()=>j});module.exports=b(B);var l=require("react/jsx-runtime"),t=require("@redocly/theme"),m=_(require("styled-components")),u=require("@redocly/openapi-docs"),s=require("react"),p=require("../hooks");const j=({examples:e})=>{const[o,n]=(0,s.useState)(e[0]),{getProtocolLabel:r}=(0,p.useProtocolLabels)(),a=(0,p.useTelemetry)();(0,s.useEffect)(()=>{n(e[0])},[e,n]);const g=d=>{const i=e?.find(h=>h.name===d);i&&(n(i),a.send({type:"asyncapi_docs.switch_example.clicked",payload:{example:d,number_of_examples:e.length}}))},v=(0,s.useMemo)(()=>e?.reduce((d,i,h)=>(d[i.name||`Example ${h+1}`]=Object.assign({},i),d),{}),[e]);return(0,l.jsxs)(C,{className:"panel-messages-samples",header:()=>(0,l.jsx)(L,{isExpandable:!1,children:r("payload")}),children:[(0,l.jsx)(k,{examples:v,exampleKey:o?.name,onChange:g}),(0,l.jsx)(t.JsonViewer,{data:o?.payload,expandLevel:3})]})},C=(0,m.default)(t.Panel)`
|
|
2
|
+
${t.PanelBody} {
|
|
3
3
|
padding: var(--spacing-sm) 0 0;
|
|
4
4
|
line-height: var(--line-height-md);
|
|
5
5
|
}
|
|
6
|
-
`,
|
|
6
|
+
`,L=(0,m.default)(t.PanelHeader)`
|
|
7
7
|
font-weight: var(--font-weight-regular);
|
|
8
|
-
`,
|
|
8
|
+
`,k=(0,m.default)(u.ExampleSwitch)`
|
|
9
9
|
overflow: hidden;
|
|
10
|
-
`;
|
|
10
|
+
`;0&&(module.exports={SamplesPanel});
|
package/lib/components/Server.js
CHANGED
|
@@ -1,28 +1,28 @@
|
|
|
1
|
-
|
|
1
|
+
var g=Object.create;var l=Object.defineProperty;var h=Object.getOwnPropertyDescriptor;var u=Object.getOwnPropertyNames;var v=Object.getPrototypeOf,y=Object.prototype.hasOwnProperty;var S=(e,a)=>{for(var i in a)l(e,i,{get:a[i],enumerable:!0})},d=(e,a,i,r)=>{if(a&&typeof a=="object"||typeof a=="function")for(let s of u(a))!y.call(e,s)&&s!==i&&l(e,s,{get:()=>a[s],enumerable:!(r=h(a,s))||r.enumerable});return e};var b=(e,a,i)=>(i=e!=null?g(v(e)):{},d(a||!e||!e.__esModule?l(i,"default",{value:e,enumerable:!0}):i,e)),I=e=>d(l({},"__esModule",{value:!0}),e);var L={};S(L,{Server:()=>j});module.exports=I(L);var t=require("react/jsx-runtime"),o=b(require("styled-components")),n=require("@redocly/theme"),m=require("react"),f=require("./ServerModal"),c=require("./common");const j=({server:e,showDetails:a})=>{const[i,r]=(0,m.useState)(!1);return(0,n.useModalScrollLock)(i),(0,t.jsxs)(k,{"data-component-name":"Server/Server",children:[(0,t.jsxs)(M,{children:[(0,t.jsx)(w,{children:(p=>{switch(p){case"kafka":return(0,t.jsx)(n.KafkaIcon,{size:"20px"});case"amqp":return(0,t.jsx)(n.RabbitMQIcon,{size:"20px"});default:return(0,t.jsx)(n.DatabaseIcon,{size:"20px"})}})(e.value.protocol)}),(0,t.jsx)(B,{children:e.key})]}),(0,t.jsxs)(z,{children:[(0,t.jsx)(c.HostList,{children:e.value.host.split(" ").map((p,x)=>(0,t.jsx)("span",{children:p},x))}),(0,t.jsx)(n.CopyButton,{data:e.value.host},e.value.host)]}),a&&(0,t.jsx)(C,{onClick:()=>r(!0),children:(0,t.jsx)(c.MoreDetailsButton,{expanded:!1})}),i&&(0,t.jsx)(n.Portal,{mountId:"api-content",children:(0,t.jsx)(f.ServerModal,{server:e,onClose:()=>r(!1)})})]})},k=o.default.div`
|
|
2
2
|
display: flex;
|
|
3
3
|
flex-direction: column;
|
|
4
4
|
gap: var(--spacing-xxs);
|
|
5
5
|
padding: var(--spacing-sm) var(--spacing-md);
|
|
6
|
-
`,
|
|
6
|
+
`,w=o.default.div`
|
|
7
7
|
width: 20px;
|
|
8
8
|
height: 20px;
|
|
9
9
|
display: flex;
|
|
10
10
|
align-items: center;
|
|
11
11
|
justify-content: center;
|
|
12
|
-
`,
|
|
12
|
+
`,M=o.default.div`
|
|
13
13
|
display: flex;
|
|
14
14
|
flex-direction: row;
|
|
15
15
|
align-items: center;
|
|
16
16
|
gap: var(--spacing-xxs);
|
|
17
|
-
`,
|
|
17
|
+
`,z=o.default.span`
|
|
18
18
|
padding-left: var(--spacing-lg);
|
|
19
19
|
min-height: 24px;
|
|
20
20
|
display: flex;
|
|
21
21
|
align-items: center;
|
|
22
22
|
justify-content: space-between;
|
|
23
|
-
`,
|
|
23
|
+
`,B=o.default.span`
|
|
24
24
|
font-weight: var(--font-weight-semibold);
|
|
25
25
|
text-transform: capitalize;
|
|
26
|
-
`,
|
|
26
|
+
`,C=o.default.div`
|
|
27
27
|
padding-left: var(--spacing-lg);
|
|
28
|
-
`;
|
|
28
|
+
`;0&&(module.exports={Server});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
var a=Object.defineProperty;var g=Object.getOwnPropertyDescriptor;var h=Object.getOwnPropertyNames;var b=Object.prototype.hasOwnProperty;var p=(r,e)=>{for(var s in e)a(r,s,{get:e[s],enumerable:!0})},f=(r,e,s,t)=>{if(e&&typeof e=="object"||typeof e=="function")for(let o of h(e))!b.call(r,o)&&o!==s&&a(r,o,{get:()=>e[o],enumerable:!(t=g(e,o))||t.enumerable});return r};var y=r=>f(a({},"__esModule",{value:!0}),r);var O={};p(O,{ServerBindingsSection:()=>S});module.exports=y(O);var n=require("react/jsx-runtime"),d=require("@redocly/openapi-docs"),c=require("@redocly/theme"),l=require("react"),i=require("./common"),m=require("../hooks"),u=function(r,e){var s={};for(var t in r)Object.prototype.hasOwnProperty.call(r,t)&&e.indexOf(t)<0&&(s[t]=r[t]);if(r!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,t=Object.getOwnPropertySymbols(r);o<t.length;o++)e.indexOf(t[o])<0&&Object.prototype.propertyIsEnumerable.call(r,t[o])&&(s[t[o]]=r[t[o]]);return s};const x=({key:r,value:e})=>{const{bindingVersion:s}=e,t=u(e,["bindingVersion"]);switch(r){case"kafka":return(0,n.jsxs)(n.Fragment,{children:[e.schemaRegistryUrl&&(0,n.jsxs)(i.Section,{children:[(0,n.jsx)(i.Label,{"data-testid":"schema-registry-url-label",children:"Schema Registry URL:"}),(0,n.jsx)(i.ExternalDocumentationWrapper,{children:(0,n.jsx)(d.ExternalDocumentation,{externalDocs:{url:e.schemaRegistryUrl},compact:!0})})]}),e.schemaRegistryUrl&&(0,n.jsxs)(i.Section,{children:[(0,n.jsx)(i.Label,{"data-testid":"schema-registry-vendor-label",children:"Schema Registry Vendor:"}),(0,n.jsx)(i.Value,{"data-testid":"schema-registry-vendor-value",children:e.schemaRegistryVendor})]}),e.bindingVersion&&(0,n.jsxs)(i.Section,{children:[(0,n.jsx)(i.Label,{"data-testid":"binding-version-label",children:"Binding Version:"}),(0,n.jsx)(i.Value,{"data-testid":"binding-version-value",children:e.bindingVersion})]})]});default:return(0,n.jsx)(c.JsonViewer,{data:t,expandLevel:3,hideHeader:!0})}},S=({server:r})=>{const{getProtocolLabel:e}=(0,m.useProtocolLabels)(),s=(0,l.useMemo)(()=>Object.entries(r.bindings||{}).map(([t,o])=>({key:t,value:o}))[0],[r.bindings]);return(0,n.jsxs)(i.Block,{"data-component-name":"ServerBindingsSection/ServerBindingsSection",children:[(0,n.jsxs)(i.Header,{children:[e("server")," Configuration"]}),x(s)]})};0&&(module.exports={ServerBindingsSection});
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
|
|
1
|
+
var u=Object.create;var l=Object.defineProperty;var m=Object.getOwnPropertyDescriptor;var f=Object.getOwnPropertyNames;var x=Object.getPrototypeOf,b=Object.prototype.hasOwnProperty;var S=(e,a)=>{for(var r in a)l(e,r,{get:a[r],enumerable:!0})},p=(e,a,r,s)=>{if(a&&typeof a=="object"||typeof a=="function")for(let i of f(a))!b.call(e,i)&&i!==r&&l(e,i,{get:()=>a[i],enumerable:!(s=m(a,i))||s.enumerable});return e};var w=(e,a,r)=>(r=e!=null?u(x(e)):{},p(a||!e||!e.__esModule?l(r,"default",{value:e,enumerable:!0}):r,e)),k=e=>p(l({},"__esModule",{value:!0}),e);var R={};S(R,{ServerModal:()=>I});module.exports=k(R);var t=require("react/jsx-runtime"),o=require("@redocly/theme"),n=w(require("styled-components")),c=require("react"),g=require("./ServerOverviewSection"),v=require("./ServerBindingsSection");const y=[{label:"Overview",value:0}],z=({protocol:e})=>{switch(e){case"kafka":return(0,t.jsx)(o.KafkaIcon,{size:"24px"});case"amqp":return(0,t.jsx)(o.RabbitMQIcon,{size:"24px"});default:return(0,t.jsx)(o.DatabaseIcon,{size:"24px"})}},I=({server:e,onClose:a})=>{const[r,s]=(0,c.useState)(0),i=(0,c.useRef)(null);(0,o.useOutsideClick)(i,a),(0,o.useFocusTrap)(i);const d=[...y];return e.value.bindings&&d.push({label:"Configuration",value:2}),(0,t.jsx)(B,{"data-component-name":"ServerModal/ServerModal",children:(0,t.jsxs)(C,{ref:i,tabIndex:0,children:[(0,t.jsx)(M,{onClick:a,"data-testid":"close",variant:"ghost",icon:(0,t.jsx)(o.CloseIcon,{})}),(0,t.jsxs)(O,{children:[(0,t.jsx)(z,{protocol:e.value.protocol}),(0,t.jsx)(T,{children:e.value.protocol}),": ",e.key]}),(0,t.jsx)(o.Segmented,{value:r,onChange:({value:h})=>s(h),options:d}),(0,t.jsxs)(j,{children:[r===0&&(0,t.jsx)(g.ServerOverviewSection,{server:e.value}),r===2&&(0,t.jsx)(v.ServerBindingsSection,{server:e.value})]})]})})},B=n.default.div`
|
|
2
2
|
background: var(--bg-color-modal-overlay);
|
|
3
3
|
position: fixed;
|
|
4
4
|
width: 100vw;
|
|
@@ -7,7 +7,7 @@
|
|
|
7
7
|
left: 0;
|
|
8
8
|
top: 0;
|
|
9
9
|
pointer-events: auto;
|
|
10
|
-
`,
|
|
10
|
+
`,C=n.default.div`
|
|
11
11
|
background: var(--bg-color);
|
|
12
12
|
box-shadow: var(--bg-raised-shadow);
|
|
13
13
|
border-radius: var(--border-radius-lg);
|
|
@@ -28,11 +28,11 @@
|
|
|
28
28
|
font-size: var(--font-size-base);
|
|
29
29
|
line-height: var(--line-height-base);
|
|
30
30
|
}
|
|
31
|
-
`,
|
|
31
|
+
`,M=(0,n.default)(o.Button)`
|
|
32
32
|
position: absolute;
|
|
33
33
|
right: var(--spacing-md);
|
|
34
34
|
top: var(--spacing-md);
|
|
35
|
-
`,
|
|
35
|
+
`,O=(0,n.default)(o.Typography)`
|
|
36
36
|
display: flex;
|
|
37
37
|
align-items: center;
|
|
38
38
|
font-size: var(--h4-font-size);
|
|
@@ -41,9 +41,9 @@
|
|
|
41
41
|
svg {
|
|
42
42
|
margin-right: var(--spacing-xs);
|
|
43
43
|
}
|
|
44
|
-
`,
|
|
44
|
+
`,T=n.default.span`
|
|
45
45
|
text-transform: capitalize;
|
|
46
|
-
`,j=
|
|
46
|
+
`,j=n.default.div`
|
|
47
47
|
padding-top: var(--spacing-base);
|
|
48
48
|
width: 100%;
|
|
49
|
-
`;
|
|
49
|
+
`;0&&(module.exports={ServerModal});
|
|
@@ -1,25 +1,25 @@
|
|
|
1
|
-
|
|
1
|
+
var f=Object.create;var d=Object.defineProperty;var b=Object.getOwnPropertyDescriptor;var u=Object.getOwnPropertyNames;var S=Object.getPrototypeOf,y=Object.prototype.hasOwnProperty;var D=(n,r)=>{for(var o in r)d(n,o,{get:r[o],enumerable:!0})},g=(n,r,o,t)=>{if(r&&typeof r=="object"||typeof r=="function")for(let c of u(r))!y.call(n,c)&&c!==o&&d(n,c,{get:()=>r[c],enumerable:!(t=b(r,c))||t.enumerable});return n};var V=(n,r,o)=>(o=n!=null?f(S(n)):{},g(r||!n||!n.__esModule?d(o,"default",{value:n,enumerable:!0}):o,n)),w=n=>g(d({},"__esModule",{value:!0}),n);var I={};D(I,{ServerOverviewSection:()=>v});module.exports=w(I);var i=require("react/jsx-runtime"),p=require("@redocly/theme"),x=require("@redocly/openapi-docs"),l=V(require("styled-components")),m=require("react/jsx-runtime"),e=require("./common");const z=n=>{const r=n.title||n.summary||n.description;return(0,i.jsxs)(e.Block,{children:[(0,i.jsx)(e.Header,{children:"Info"}),(0,i.jsxs)(e.Section,{children:[(0,i.jsx)(e.Label,{children:"Host:"}),(0,i.jsx)(e.Value,{children:(0,i.jsx)(e.HostList,{children:n.host.split(" ").map((o,t)=>(0,i.jsx)("span",{children:o},t))})})]}),(0,i.jsxs)(e.Section,{children:[(0,i.jsxs)(e.Label,{children:["Protocol",n.protocolVersion?" and version":"",":"]}),(0,i.jsxs)(e.Value,{children:[n.protocol,n.protocolVersion&&`, ${n.protocolVersion}`]})]}),r&&(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(a,{}),n.title&&(0,i.jsxs)(e.Section,{children:[(0,i.jsx)(e.Label,{children:"Title:"}),(0,i.jsx)(e.Value,{children:n.title})]}),n.summary&&(0,i.jsxs)(e.Section,{children:[(0,i.jsx)(e.Label,{children:"Summary:"}),(0,i.jsx)(e.Value,{children:n.summary})]}),n.description&&(0,i.jsxs)(e.Section,{children:[(0,i.jsx)(e.Label,{children:"Description:"}),(0,i.jsx)(e.Value,{children:n.description})]})]})]})},T=n=>(0,i.jsxs)(e.Block,{children:[(0,i.jsx)(e.Header,{children:"Variables"}),n.map(({key:r,value:o},t,c)=>(0,i.jsxs)(m.Fragment,{children:[(0,i.jsxs)(e.Section,{children:[(0,i.jsx)(E,{children:r}),o.default&&(0,i.jsxs)(h,{children:["Default",(0,i.jsx)(p.Tag,{size:"small",borderless:!0,children:o.default})]}),o.description&&(0,i.jsx)(F,{children:o.description}),o.enum&&(0,i.jsxs)(h,{children:["Enum",(0,i.jsx)(H,{children:o.enum.map(s=>(0,i.jsx)(p.Tag,{size:"small",borderless:!0,children:s},s))})]})]}),t<c.length-1&&(0,i.jsx)(a,{})]},r))]}),j=n=>(0,i.jsxs)(e.Block,{children:[(0,i.jsx)(e.Header,{children:"Tags"}),n.map((r,o,t)=>(0,i.jsxs)(m.Fragment,{children:[(0,i.jsxs)(e.Section,{children:[(0,i.jsx)(e.Value,{children:r.name}),r.description&&(0,i.jsx)(e.Label,{children:r.description}),r.externalDocs&&(0,i.jsx)(e.ExternalDocumentationWrapper,{children:(0,i.jsx)(x.ExternalDocumentation,{externalDocs:r.externalDocs,compact:!0})})]}),o<t.length-1&&(0,i.jsx)(a,{})]},r.name))]}),v=({server:n})=>{const r=Object.entries(n.variables||{}).map(([c,s])=>({key:c,value:s})),o=n.tags&&n.tags.length>0,t=r.length>0;return(0,i.jsxs)(O,{"data-component-name":"ServerOverviewSection/ServerOverviewSection",children:[z(n),t&&(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(a,{}),T(r)]}),o&&(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(a,{}),n.tags&&j(n.tags)]})]})},O=l.default.div`
|
|
2
2
|
display: flex;
|
|
3
3
|
flex-direction: column;
|
|
4
4
|
gap: var(--spacing-base);
|
|
5
|
-
`,
|
|
5
|
+
`,a=l.default.div`
|
|
6
6
|
border-bottom: 1px solid var(--border-color-secondary);
|
|
7
|
-
`,
|
|
7
|
+
`,h=l.default.span`
|
|
8
8
|
display: flex;
|
|
9
9
|
gap: var(--spacing-xxs);
|
|
10
10
|
font-size: var(--font-size-sm);
|
|
11
11
|
line-height: var(--line-height-sm);
|
|
12
12
|
color: var(--text-color-primary);
|
|
13
|
-
`,
|
|
13
|
+
`,E=(0,l.default)(h)`
|
|
14
14
|
padding-bottom: var(--spacing-xxs);
|
|
15
15
|
font-weight: var(--font-weight-semibold);
|
|
16
|
-
`,
|
|
16
|
+
`,F=l.default.p`
|
|
17
17
|
font-size: var(--font-size-sm);
|
|
18
18
|
line-height: var(--line-height-sm);
|
|
19
19
|
color: var(--text-color-primary);
|
|
20
20
|
margin: 0;
|
|
21
|
-
`,
|
|
21
|
+
`,H=l.default.span`
|
|
22
22
|
display: flex;
|
|
23
23
|
gap: var(--spacing-xxs);
|
|
24
24
|
flex-wrap: wrap;
|
|
25
|
-
`;
|
|
25
|
+
`;0&&(module.exports={ServerOverviewSection});
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
|
|
2
|
-
${
|
|
1
|
+
var b=Object.create;var t=Object.defineProperty;var h=Object.getOwnPropertyDescriptor;var v=Object.getOwnPropertyNames;var x=Object.getPrototypeOf,g=Object.prototype.hasOwnProperty;var u=(e,r)=>{for(var o in r)t(e,o,{get:r[o],enumerable:!0})},n=(e,r,o,s)=>{if(r&&typeof r=="object"||typeof r=="function")for(let a of v(r))!g.call(e,a)&&a!==o&&t(e,a,{get:()=>r[a],enumerable:!(s=h(r,a))||s.enumerable});return e};var d=(e,r,o)=>(o=e!=null?b(x(e)):{},n(r||!e||!e.__esModule?t(o,"default",{value:e,enumerable:!0}):o,e)),L=e=>n(t({},"__esModule",{value:!0}),e);var B={};u(B,{ServersListPanel:()=>j});module.exports=L(B);var m=require("react/jsx-runtime"),l=require("@redocly/theme"),i=d(require("styled-components")),p=d(require("react")),c=require("./Server"),f=require("../hooks");const j=p.default.memo(({servers:e,showDetails:r,hideHeader:o})=>{const{getProtocolLabel:s}=(0,f.useProtocolLabels)();return(0,m.jsx)(y,{className:"panel-messages-samples",header:()=>o?null:(0,m.jsx)(l.PanelHeader,{isExpandable:!1,children:s("servers")}),children:e.map((a,P)=>(0,m.jsx)(c.Server,{server:a,showDetails:r},P))})}),y=(0,i.default)(l.Panel)`
|
|
2
|
+
${l.PanelBody} {
|
|
3
3
|
padding: 0;
|
|
4
4
|
> *:not(:last-child) {
|
|
5
5
|
border-bottom: var(--panel-border-local);
|
|
6
6
|
}
|
|
7
7
|
}
|
|
8
|
-
`;
|
|
8
|
+
`;0&&(module.exports={ServersListPanel});
|
|
@@ -1,24 +1,24 @@
|
|
|
1
|
-
|
|
1
|
+
var j=Object.create;var b=Object.defineProperty;var I=Object.getOwnPropertyDescriptor;var F=Object.getOwnPropertyNames;var H=Object.getPrototypeOf,O=Object.prototype.hasOwnProperty;var T=(n,o)=>{for(var a in o)b(n,a,{get:o[a],enumerable:!0})},B=(n,o,a,u)=>{if(o&&typeof o=="object"||typeof o=="function")for(let l of F(o))!O.call(n,l)&&l!==a&&b(n,l,{get:()=>o[l],enumerable:!(u=I(o,l))||u.enumerable});return n};var _=(n,o,a)=>(a=n!=null?j(H(n)):{},B(o||!n||!n.__esModule?b(a,"default",{value:n,enumerable:!0}):a,n)),V=n=>B(b({},"__esModule",{value:!0}),n);var q={};T(q,{TagBlock:()=>N});module.exports=V(q);var i=require("react/jsx-runtime"),k=_(require("styled-components")),x=require("jotai"),t=require("@redocly/openapi-docs"),r=require("@redocly/theme"),g=require("react-router-dom"),p=_(require("react")),m=require("../jotai-store/app"),h=require("./common"),A=require("./ItemsNavigation"),D=require("./ChannelSection"),L=require("./MarkdownSection");const N=p.default.memo(({tag:n})=>{var o,a,u,l;const S=(0,x.useAtomValue)(m.layoutAtom),w=(0,x.useAtomValue)(m.routingBasePathAtom),s=(0,x.useAtomValue)(m.definitionAtom),E=(0,x.useAtomValue)(m.markdocOptionsAtom),y=(0,g.useLocation)(),C=(0,g.useNavigate)(),d=!!(!((o=n.items)===null||o===void 0)&&o.length),M=S===r.LayoutVariant.STACKED,c=(u=(a=s?.components)===null||a===void 0?void 0:a.tags)===null||u===void 0?void 0:u[n.label],P=(0,p.useMemo)(()=>{var e,v;return d?(v=(e=s?.channels)===null||e===void 0?void 0:e[n.items[0].id])===null||v===void 0?void 0:v.bindings:void 0},[d,s?.channels,n.items]),f=(0,p.useMemo)(()=>{if(!d)return!1;const e=y.pathname;return e.endsWith(n.link||"")||n.items.some(v=>v.link&&e.toLowerCase().includes(v.link.toLowerCase()))},[d,y.pathname,n.link,n.items]),W=(0,p.useCallback)(()=>{n.link&&C(n.link)},[C,n.link]),$=(0,t.saveTextBeforeHeading)((0,t.getValueFromMdParsedExtension)(c,"description")||"");return(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(R,{expanded:d&&!f,sectionId:(0,r.combineUrls)(w,n.dataSectionId),children:(0,i.jsxs)(z,{expanded:f,children:[(0,i.jsxs)(t.Row,{layout:S,children:[(0,i.jsxs)(t.SamplesMiddlePanel,{fullWidth:!d,isStacked:M,children:[(0,i.jsxs)(U,{children:[n.label,(0,i.jsx)(h.ShareLink,{to:(0,r.combineUrls)(w,n.link),"aria-label":`link to ${n.label}`})]}),c?.description&&(0,i.jsx)(t.Markdown,{source:$,markdocOptions:E}),c?.externalDocs&&(0,i.jsx)(h.ExternalDocumentationWrapper,{children:(0,i.jsx)(t.ExternalDocumentation,{externalDocs:c.externalDocs})})]}),d&&n.items&&(0,i.jsx)(A.ItemsNavigation,{items:n.items,firstChannelBinding:P})]}),d&&!f&&(0,i.jsx)(K,{type:"button",variant:"text",size:"medium",onClick:W,children:"+ Show"})]})}),f&&((l=n.items)===null||l===void 0?void 0:l.map(e=>e.type==="channel"?(0,i.jsx)(D.ChannelSection,{item:e},e.link):e.type==="markdown"?(0,i.jsx)(h.SectionWrapper,{children:(0,i.jsx)(L.MarkdownSection,{item:e})},e.link):null))]})}),R=(0,k.default)(t.Section)`
|
|
2
2
|
scroll-margin-top: calc(var(--navbar-height)) !important;
|
|
3
|
-
`,
|
|
4
|
-
padding-bottom: ${({expanded:
|
|
5
|
-
padding-bottom: ${({expanded:
|
|
6
|
-
`,
|
|
3
|
+
`,z=k.default.div`
|
|
4
|
+
padding-bottom: ${({expanded:n})=>n?"var(--spacing-xxl)":""};
|
|
5
|
+
padding-bottom: ${({expanded:n})=>n?"var(--spacing-xxl)":""};
|
|
6
|
+
`,K=(0,k.default)(r.Button)`
|
|
7
7
|
margin: var(--spacing-md) var(--spacing-xl) var(--spacing-xxs);
|
|
8
8
|
width: calc(100% - var(--spacing-xl) * 2);
|
|
9
9
|
|
|
10
|
-
@media screen and (min-width: ${
|
|
10
|
+
@media screen and (min-width: ${r.breakpoints.medium}) {
|
|
11
11
|
--button-margin-md: calc(var(--spacing-xl) * 2);
|
|
12
12
|
|
|
13
13
|
margin-left: var(--button-margin-md);
|
|
14
14
|
margin-right: var(--button-margin-md);
|
|
15
15
|
width: calc(100% - var(--button-margin-md) * 2);
|
|
16
16
|
}
|
|
17
|
-
|
|
17
|
+
`,U=(0,k.default)(r.H2)`
|
|
18
18
|
:hover {
|
|
19
|
-
${
|
|
19
|
+
${r.LinkIcon} {
|
|
20
20
|
opacity: 1;
|
|
21
21
|
visibility: visible;
|
|
22
22
|
}
|
|
23
23
|
}
|
|
24
|
-
`;
|
|
24
|
+
`;0&&(module.exports={TagBlock});
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
|
|
2
|
-
${
|
|
1
|
+
var m=Object.create;var l=Object.defineProperty;var g=Object.getOwnPropertyDescriptor;var x=Object.getOwnPropertyNames;var f=Object.getPrototypeOf,b=Object.prototype.hasOwnProperty;var v=(e,a)=>{for(var r in a)l(e,r,{get:a[r],enumerable:!0})},i=(e,a,r,d)=>{if(a&&typeof a=="object"||typeof a=="function")for(let n of x(a))!b.call(e,n)&&n!==r&&l(e,n,{get:()=>a[n],enumerable:!(d=g(a,n))||d.enumerable});return e};var y=(e,a,r)=>(r=e!=null?m(f(e)):{},i(a||!e||!e.__esModule?l(r,"default",{value:e,enumerable:!0}):r,e)),P=e=>i(l({},"__esModule",{value:!0}),e);var u={};v(u,{BindingPanel:()=>h,CodeBlockPanel:()=>c,Header:()=>j});module.exports=P(u);var s=require("react/jsx-runtime"),p=require("@redocly/openapi-docs"),o=require("@redocly/theme"),t=y(require("styled-components"));const h=({header:e,children:a})=>(0,s.jsx)(c,{className:"panel-messages-samples",header:()=>(0,s.jsx)(o.PanelHeader,{isExpandable:!1,children:e}),children:a}),c=(0,t.default)(o.Panel)`
|
|
2
|
+
${o.PanelBody} {
|
|
3
3
|
background-color: var(--layer-color-ontonal);
|
|
4
4
|
padding: 0;
|
|
5
5
|
|
|
@@ -12,19 +12,19 @@
|
|
|
12
12
|
}
|
|
13
13
|
}
|
|
14
14
|
|
|
15
|
-
${
|
|
15
|
+
${o.PanelHeader} {
|
|
16
16
|
display: flex;
|
|
17
17
|
justify-content: start;
|
|
18
18
|
align-items: center;
|
|
19
19
|
gap: var(--spacing-xs);
|
|
20
20
|
}
|
|
21
21
|
|
|
22
|
-
${
|
|
22
|
+
${p.SamplesMiddlePanel} {
|
|
23
23
|
padding: 0 var(--spacing-md);
|
|
24
24
|
}
|
|
25
|
-
`,
|
|
25
|
+
`,j=t.default.div`
|
|
26
26
|
display: flex;
|
|
27
27
|
flex-direction: row;
|
|
28
28
|
align-items: center;
|
|
29
29
|
gap: var(--spacing-xs);
|
|
30
|
-
`;
|
|
30
|
+
`;0&&(module.exports={BindingPanel,CodeBlockPanel,Header});
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
|
|
1
|
+
var l=Object.create;var i=Object.defineProperty;var x=Object.getOwnPropertyDescriptor;var u=Object.getOwnPropertyNames;var k=Object.getPrototypeOf,g=Object.prototype.hasOwnProperty;var j=(o,r)=>{for(var t in r)i(o,t,{get:r[t],enumerable:!0})},e=(o,r,t,s)=>{if(r&&typeof r=="object"||typeof r=="function")for(let n of u(r))!g.call(o,n)&&n!==t&&i(o,n,{get:()=>r[n],enumerable:!(s=x(r,n))||s.enumerable});return o};var I=(o,r,t)=>(t=o!=null?l(k(o)):{},e(r||!o||!o.__esModule?i(t,"default",{value:o,enumerable:!0}):t,o)),O=o=>e(i({},"__esModule",{value:!0}),o);var A={};j(A,{Information:()=>v});module.exports=O(A);var a=require("react/jsx-runtime"),c=I(require("styled-components")),p=require("jotai"),m=require("@redocly/openapi-docs"),f=require("./styles"),d=require("../../jotai-store/app");const v=({summary:o,description:r,externalDocs:t,className:s})=>{const n=(0,p.useAtomValue)(d.markdocOptionsAtom);return(0,a.jsxs)(h,{className:s,children:[o&&(0,a.jsx)(m.Markdown,{source:o,markdocOptions:n}),r&&(0,a.jsx)(m.Markdown,{source:r,markdocOptions:n}),t&&(0,a.jsx)(f.ExternalDocumentationWrapper,{children:(0,a.jsx)(m.ExternalDocumentation,{externalDocs:t,compact:!0})})]})},h=c.default.div.attrs(()=>({"data-component-name":"Information/Information"}))`
|
|
2
2
|
display: flex;
|
|
3
3
|
flex-direction: column;
|
|
4
4
|
gap: var(--spacing-xxs);
|
|
5
5
|
margin: var(--spacing-sm) 0 0;
|
|
6
|
-
`;
|
|
6
|
+
`;0&&(module.exports={Information});
|
|
@@ -1,22 +1,22 @@
|
|
|
1
|
-
|
|
1
|
+
var f=Object.create;var l=Object.defineProperty;var m=Object.getOwnPropertyDescriptor;var y=Object.getOwnPropertyNames;var k=Object.getPrototypeOf,p=Object.prototype.hasOwnProperty;var u=(i,o)=>{for(var t in o)l(i,t,{get:o[t],enumerable:!0})},d=(i,o,t,a)=>{if(o&&typeof o=="object"||typeof o=="function")for(let e of y(o))!p.call(i,e)&&e!==t&&l(i,e,{get:()=>o[e],enumerable:!(a=m(o,e))||a.enumerable});return i};var L=(i,o,t)=>(t=i!=null?f(k(i)):{},d(o||!i||!i.__esModule?l(t,"default",{value:i,enumerable:!0}):t,i)),$=i=>d(l({},"__esModule",{value:!0}),i);var N={};u(N,{LinkToField:()=>x,ShareLink:()=>v});module.exports=$(N);var r=require("react/jsx-runtime"),s=L(require("styled-components")),c=require("react-router-dom"),n=require("@redocly/theme"),h=require("../../utils");function g(i){const o=i.to;return(0,r.jsx)(c.Link,{"aria-label":i["aria-label"]||`link to ${o}`,id:(0,h.tryDecodeURIComponent)(i.id||""),className:i.className||"",to:o,children:i.children})}function v(i){return(0,r.jsx)(j,Object.assign({},i,{children:(0,r.jsx)(n.LinkIcon,{size:"13px",color:"--heading-anchor-color"})}))}const x=({to:i,className:o})=>{const t=i,a=(0,c.useLocation)(),e=t?.split("#")[1],b=a?a.hash===`#${e}`:!1;return(0,r.jsx)(S,{ariaLabel:`link to ${t}`,className:o,isActive:b,to:t||"",id:e})},S=(0,s.default)(v)`
|
|
2
2
|
display: flex;
|
|
3
|
-
${
|
|
3
|
+
${n.LinkIcon} {
|
|
4
4
|
visibility: hidden;
|
|
5
5
|
cursor: pointer;
|
|
6
6
|
background-color: var(--bg-color);
|
|
7
7
|
}
|
|
8
8
|
|
|
9
|
-
${({isActive:i})=>i&&
|
|
10
|
-
${
|
|
9
|
+
${({isActive:i})=>i&&s.css`
|
|
10
|
+
${n.LinkIcon} {
|
|
11
11
|
visibility: visible;
|
|
12
12
|
opacity: 1;
|
|
13
13
|
}
|
|
14
14
|
`}
|
|
15
|
-
:hover ${
|
|
15
|
+
:hover ${n.LinkIcon}, :focus ${n.LinkIcon} {
|
|
16
16
|
visibility: visible;
|
|
17
17
|
opacity: 1;
|
|
18
18
|
}
|
|
19
|
-
`,
|
|
19
|
+
`,j=(0,s.default)(g)`
|
|
20
20
|
position: absolute;
|
|
21
21
|
top: 50%;
|
|
22
22
|
left: 0;
|
|
@@ -24,15 +24,15 @@
|
|
|
24
24
|
padding-right: var(--heading-anchor-offset-right);
|
|
25
25
|
z-index: 1;
|
|
26
26
|
|
|
27
|
-
${
|
|
27
|
+
${n.LinkIcon} {
|
|
28
28
|
opacity: 0;
|
|
29
29
|
transition:
|
|
30
30
|
visibility 0.3s linear,
|
|
31
31
|
opacity 0.3s linear;
|
|
32
32
|
}
|
|
33
33
|
|
|
34
|
-
:hover ${
|
|
34
|
+
:hover ${n.LinkIcon}, :focus ${n.LinkIcon} {
|
|
35
35
|
visibility: visible;
|
|
36
36
|
opacity: 1;
|
|
37
37
|
}
|
|
38
|
-
`;
|
|
38
|
+
`;0&&(module.exports={LinkToField,ShareLink});
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { IconProps } from '@redocly/theme/
|
|
1
|
+
import type { IconProps } from '@redocly/theme/icons/types';
|
|
2
2
|
export declare const ListIcon: import("styled-components").StyledComponent<(props: IconProps) => import("react/jsx-runtime").JSX.Element, any, {
|
|
3
3
|
'data-component-name': string;
|
|
4
4
|
} & {
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
|
|
1
|
+
var p=Object.create;var e=Object.defineProperty;var a=Object.getOwnPropertyDescriptor;var d=Object.getOwnPropertyNames;var x=Object.getPrototypeOf,m=Object.prototype.hasOwnProperty;var g=(i,t)=>{for(var c in t)e(i,c,{get:t[c],enumerable:!0})},n=(i,t,c,l)=>{if(t&&typeof t=="object"||typeof t=="function")for(let o of d(t))!m.call(i,o)&&o!==c&&e(i,o,{get:()=>t[o],enumerable:!(l=a(t,o))||l.enumerable});return i};var w=(i,t,c)=>(c=i!=null?p(x(i)):{},n(t||!i||!i.__esModule?e(c,"default",{value:i,enumerable:!0}):c,i)),f=i=>n(e({},"__esModule",{value:!0}),i);var I={};g(I,{ListIcon:()=>j});module.exports=f(I);var s=require("react/jsx-runtime"),h=w(require("styled-components")),r=require("@redocly/theme");const _=i=>(0,s.jsxs)("svg",Object.assign({viewBox:"0 0 22 22",fill:"none",xmlns:"http://www.w3.org/2000/svg"},i,{children:[(0,s.jsxs)("g",{clipPath:"url(#clip0_10754_58823)",children:[(0,s.jsx)("path",{d:"M0 11H22",strokeLinecap:"round"}),(0,s.jsx)("circle",{cx:"4",cy:"11",r:"4"})]}),(0,s.jsx)("defs",{children:(0,s.jsx)("clipPath",{id:"clip0_10754_58823",children:(0,s.jsx)("rect",{width:"22",height:"22",fill:"white"})})})]})),j=(0,h.default)(_).attrs(()=>({"data-component-name":"icons/ListIcon/ListIcon"}))`
|
|
2
2
|
path,
|
|
3
3
|
circle {
|
|
4
|
-
fill: ${({color:
|
|
5
|
-
stroke: ${({color:
|
|
4
|
+
fill: ${({color:i})=>(0,r.getCssColorVariable)(i)};
|
|
5
|
+
stroke: ${({color:i})=>(0,r.getCssColorVariable)(i)};
|
|
6
6
|
}
|
|
7
7
|
|
|
8
|
-
height: ${({size:
|
|
9
|
-
width: ${({size:
|
|
10
|
-
`;
|
|
8
|
+
height: ${({size:i})=>i||"16px"};
|
|
9
|
+
width: ${({size:i})=>i||"16px"};
|
|
10
|
+
`;0&&(module.exports={ListIcon});
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
|
|
1
|
+
var c=Object.create;var e=Object.defineProperty;var m=Object.getOwnPropertyDescriptor;var h=Object.getOwnPropertyNames;var d=Object.getPrototypeOf,u=Object.prototype.hasOwnProperty;var x=(o,r)=>{for(var t in r)e(o,t,{get:r[t],enumerable:!0})},l=(o,r,t,i)=>{if(r&&typeof r=="object"||typeof r=="function")for(let a of h(r))!u.call(o,a)&&a!==t&&e(o,a,{get:()=>r[a],enumerable:!(i=m(r,a))||i.enumerable});return o};var f=(o,r,t)=>(t=o!=null?c(d(o)):{},l(r||!o||!o.__esModule?e(t,"default",{value:o,enumerable:!0}):t,o)),v=o=>l(e({},"__esModule",{value:!0}),o);var B={};x(B,{MoreDetailsButton:()=>j});module.exports=v(B);var n=require("react/jsx-runtime"),s=require("@redocly/theme"),p=f(require("styled-components"));const j=({expanded:o})=>(0,n.jsxs)(y,{children:[(0,n.jsx)("span",{children:"More details"}),(0,n.jsx)(s.Button,{icon:o?(0,n.jsx)(s.ChevronDownIcon,{}):(0,n.jsx)(s.ChevronRightIcon,{}),size:"small",variant:"ghost"})]}),y=p.default.span.attrs(()=>({"data-component-name":"MoreDetailsButton/MoreDetailsButton"}))`
|
|
2
2
|
cursor: pointer;
|
|
3
3
|
align-items: center;
|
|
4
4
|
display: flex;
|
|
@@ -9,4 +9,4 @@
|
|
|
9
9
|
& path {
|
|
10
10
|
fill: var(--link-color-primary);
|
|
11
11
|
}
|
|
12
|
-
`;
|
|
12
|
+
`;0&&(module.exports={MoreDetailsButton});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
var i=Object.defineProperty;var n=Object.getOwnPropertyDescriptor;var u=Object.getOwnPropertyNames;var p=Object.prototype.hasOwnProperty;var d=(o,t)=>{for(var r in t)i(o,r,{get:t[r],enumerable:!0})},f=(o,t,r,l)=>{if(t&&typeof t=="object"||typeof t=="function")for(let a of u(t))!p.call(o,a)&&a!==r&&i(o,a,{get:()=>t[a],enumerable:!(l=n(t,a))||l.enumerable});return o};var x=o=>f(i({},"__esModule",{value:!0}),o);var j={};d(j,{SectionWrapper:()=>h});module.exports=x(j);var s=require("react/jsx-runtime"),m=require("jotai"),e=require("@redocly/openapi-docs"),c=require("../../jotai-store/app");const h=({children:o,rightPanel:t})=>{const r=(0,m.useAtomValue)(c.layoutAtom);return(0,s.jsxs)(e.Row,{layout:r,children:[(0,s.jsx)(e.SectionContainer,{layout:r,children:(0,s.jsx)(e.SamplesMiddlePanel,{compact:!0,fullWidth:!0,isStacked:r==="stacked",children:o})}),t]})};0&&(module.exports={SectionWrapper});
|