@redocly/asyncapi-docs 1.4.0 → 1.5.0-custom.4
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.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 +7 -7
- package/lib/components/DownloadSpecification.js +4 -4
- package/lib/components/ItemsNavigation.js +6 -6
- package/lib/components/JsonSchema.js +2 -2
- 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 +12 -12
- package/lib/components/OperationBinding.js +1 -1
- package/lib/components/OperationSection.js +5 -5
- package/lib/components/RightPanel.js +5 -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 +4 -4
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
|
|
1
|
+
var K=Object.create;var u=Object.defineProperty;var N=Object.getOwnPropertyDescriptor;var U=Object.getOwnPropertyNames;var V=Object.getPrototypeOf,q=Object.prototype.hasOwnProperty;var G=(e,s)=>{for(var t in s)u(e,t,{get:s[t],enumerable:!0})},L=(e,s,t,v)=>{if(s&&typeof s=="object"||typeof s=="function")for(let m of U(s))!q.call(e,m)&&m!==t&&u(e,m,{get:()=>s[m],enumerable:!(v=N(s,m))||v.enumerable});return e};var T=(e,s,t)=>(t=e!=null?K(V(e)):{},L(s||!e||!e.__esModule?u(t,"default",{value:e,enumerable:!0}):t,e)),J=e=>L(u({},"__esModule",{value:!0}),e);var ae={};G(ae,{Operation:()=>Q});module.exports=J(ae);var i=require("react/jsx-runtime"),o=T(require("styled-components")),f=require("jotai"),r=require("@redocly/openapi-docs"),l=require("@redocly/theme"),c=T(require("react")),B=require("react-router-dom"),d=require("./common"),R=require("./OperationBinding"),g=require("../jotai-store/app"),y=require("../hooks"),W=require("../utils");const Q=c.default.memo(({operation:e,dataSectionId:s,headerRow:t,id:v,showDivider:m})=>{var b,x,k,w;const M=(0,f.useAtomValue)(g.layoutAtom),S=(0,f.useAtomValue)(g.routingBasePathAtom),p=(0,f.useAtomValue)(g.definitionAtom),O=M===l.LayoutVariant.STACKED,{getProtocolLabel:I}=(0,y.useProtocolLabels)(),P=(0,y.useTelemetry)(),C=(0,c.useMemo)(()=>Object.entries(e?.bindings||{}).map(([n,a])=>({key:n,value:a})),[e?.bindings]),$=(0,c.useMemo)(()=>{var n;return(n=e?.["x-badges"])===null||n===void 0?void 0:n.map(a=>Object.assign(Object.assign({},a),{position:a.position||"after"}))},[e]),D=(0,B.useNavigate)(),_=(0,c.useCallback)(n=>{var a,h;return(h=Object.entries(((a=p?.components)===null||a===void 0?void 0:a.messages)||{}).find(([H,F])=>(0,W.isEqual)(F,n)))===null||h===void 0?void 0:h[0]},[(b=p?.components)===null||b===void 0?void 0:b.messages]),E=(0,c.useCallback)(n=>{const a=_(n);if(!a||!s)return;const h=s.substring(1).split("/operations")[0],H=(0,l.combineUrls)(S,(0,r.makeDeepLink)(h,`messages&m=${a}`));P.sendAsyncapiDocsMessageClickedMessage({message:a}),D(H)},[s,_,D,S,P]);if(!e)return null;const j=(0,l.combineUrls)(S,s);return(0,i.jsx)(i.Fragment,{children:(0,i.jsxs)(X,{sectionId:j,"data-component-name":"Operation/Operation",hasHeader:!!t,children:[t,(0,i.jsxs)(r.Row,{layout:M,children:[(0,i.jsxs)(se,{isStacked:O,children:[(0,i.jsxs)("div",{children:[(0,i.jsxs)(le,{children:[(0,i.jsxs)("div",{children:[(0,i.jsx)(d.ActionTag,{color:e.action,children:I(e.action)}),(0,i.jsxs)(z,{children:[(0,i.jsx)(r.CustomBadges,{badges:$,children:e.title||v}),(0,i.jsx)(d.ShareLink,{to:j,"aria-label":`link to ${e.title||v}`})]})]}),(0,i.jsx)(l.PageActions,{pageSlug:j})]}),(0,i.jsx)(d.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,a)=>(0,i.jsxs)(ne,{icon:null,onClick:()=>E(n),children:[n.title||n.name||_(n),(0,i.jsx)(l.ArrowUpRightIcon,{size:"12px"})]},a))})]}),e.reply&&(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(z,{children:"Reply"}),(0,i.jsxs)(ee,{children:[e.reply.address&&(0,i.jsxs)(A,{children:[(0,i.jsx)("span",{children:"Address: "}),(0,i.jsx)("span",{children:e.reply.address.location})]}),e.reply.channel&&(0,i.jsxs)(A,{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)(A,{children:[(0,i.jsx)("span",{children:"Messages: "}),(0,i.jsx)("span",{children:e.reply.messages.map(n=>n.title||n.name).join(", ")})]})]})]})]}),m&&(0,i.jsx)(ie,{})]}),(0,i.jsx)(r.OperationSamplesPanel,{isStacked:O,className:"panel-container-response-samples",children:!!C.length&&(0,i.jsx)(R.OperationBinding,{binding:C[0],id:s})})]})]})})}),X=(0,o.default)(r.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
|
+
`,z=(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,37 +12,37 @@
|
|
|
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
|
-
`,
|
|
34
|
+
`,A=(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)(r.SamplesMiddlePanel)`
|
|
41
41
|
display: flex;
|
|
42
42
|
justify-content: space-between;
|
|
43
|
-
`,
|
|
43
|
+
`,ne=(0,o.default)(d.TagWithIcon)`
|
|
44
44
|
cursor: pointer;
|
|
45
|
-
`,
|
|
45
|
+
`,le=o.default.div`
|
|
46
46
|
display: flex;
|
|
47
47
|
align-items: center;
|
|
48
|
-
`;
|
|
48
|
+
`;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=(r,t)=>{for(var n in t)c(r,n,{get:t[n],enumerable:!0})},_=(r,t,n,e)=>{if(t&&typeof t=="object"||typeof t=="function")for(let o of j(t))!I.call(r,o)&&o!==n&&c(r,o,{get:()=>t[o],enumerable:!(e=O(t,o))||e.enumerable});return r};var B=r=>_(c({},"__esModule",{value:!0}),r);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"),l=require("./common"),p=require("./JsonSchema"),m=require("../utils"),g=require("../jotai-store/app"),P=function(r,t){var n={};for(var e in r)Object.prototype.hasOwnProperty.call(r,e)&&t.indexOf(e)<0&&(n[e]=r[e]);if(r!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,e=Object.getOwnPropertySymbols(r);o<e.length;o++)t.indexOf(e[o])<0&&Object.prototype.propertyIsEnumerable.call(r,e[o])&&(n[e[o]]=r[e[o]]);return n};const w=({binding:r,id:t})=>{const n=(0,d.useAtomValue)(g.routingBasePathAtom),e=(0,a.combineUrls)(n,(0,f.makeDeepLink)(t,""));return(0,i.jsx)(l.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:e}),s.clientId&&(0,i.jsx)(p.JsonSchema,{schema:y,slug:e})]});default:return(0,i.jsx)(a.JsonViewer,{data:h,expandLevel:3,controls:!1})}})(r)})};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,5 @@
|
|
|
1
|
-
|
|
1
|
+
var S=Object.create;var l=Object.defineProperty;var g=Object.getOwnPropertyDescriptor;var j=Object.getOwnPropertyNames;var A=Object.getPrototypeOf,R=Object.prototype.hasOwnProperty;var D=(e,a)=>{for(var t in a)l(e,t,{get:a[t],enumerable:!0})},d=(e,a,t,i)=>{if(a&&typeof a=="object"||typeof a=="function")for(let n of j(a))!R.call(e,n)&&n!==t&&l(e,n,{get:()=>a[n],enumerable:!(i=g(a,n))||i.enumerable});return e};var c=(e,a,t)=>(t=e!=null?S(A(e)):{},d(a||!e||!e.__esModule?l(t,"default",{value:e,enumerable:!0}):t,e)),O=e=>d(l({},"__esModule",{value:!0}),e);var E={};D(E,{RightPanel:()=>b});module.exports=O(E);var o=require("react/jsx-runtime"),p=require("jotai"),s=require("@redocly/openapi-docs"),r=require("@redocly/theme"),m=c(require("react")),v=c(require("styled-components")),u=require("./ServersListPanel"),h=require("./DownloadSpecification"),y=require("../jotai-store/app"),w=require("../hooks");const b=m.default.memo(({info:e,servers:a})=>{const t=(0,w.useTranslate)(),i=(0,m.useMemo)(()=>Object.entries(a||{}).map(([f,x])=>({key:f,value:x})),[a]),P=(0,p.useAtomValue)(y.layoutAtom)===r.LayoutVariant.STACKED;return(0,o.jsxs)(s.RightPanelContainer,{isStacked:P,"data-component-name":"RightPanel/RightPanel",children:[(0,o.jsx)(r.Panel,{className:"panel-download",header:t("asyncapi.download.description.title","Download AsycAPI description"),isExpandable:!1,children:(0,o.jsx)(h.DownloadSpecification,{})}),(e?.license||e?.contact||e?.termsOfService)&&(0,o.jsx)(k,{className:"panel-overview",header:t("asyncapi.info.title","Overview"),isExpandable:!1,children:(0,o.jsx)(r.Markdown,{children:(0,o.jsx)(s.Overview,{info:e,translate:t})})}),!!i?.length&&(0,o.jsx)(u.ServersListPanel,{servers:i,showDetails:!0})]})}),k=(0,v.default)(r.Panel)`
|
|
2
|
+
&:has(main > div:empty) {
|
|
3
|
+
display: none;
|
|
4
|
+
}
|
|
5
|
+
`;0&&(module.exports={RightPanel});
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
|
|
2
|
-
${
|
|
1
|
+
var E=Object.create;var m=Object.defineProperty;var y=Object.getOwnPropertyDescriptor;var S=Object.getOwnPropertyNames;var w=Object.getPrototypeOf,x=Object.prototype.hasOwnProperty;var P=(e,o)=>{for(var n in o)m(e,n,{get:o[n],enumerable:!0})},f=(e,o,n,r)=>{if(o&&typeof o=="object"||typeof o=="function")for(let a of S(o))!x.call(e,a)&&a!==n&&m(e,a,{get:()=>o[a],enumerable:!(r=y(o,a))||r.enumerable});return e};var b=(e,o,n)=>(n=e!=null?E(w(e)):{},f(o||!e||!e.__esModule?m(n,"default",{value:e,enumerable:!0}):n,e)),j=e=>f(m({},"__esModule",{value:!0}),e);var B={};P(B,{SamplesPanel:()=>C});module.exports=j(B);var l=require("react/jsx-runtime"),t=require("@redocly/theme"),c=b(require("styled-components")),g=require("@redocly/openapi-docs"),s=require("react"),p=require("../hooks");const C=({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 u=i=>{const d=e?.find(h=>h.name===i);d&&(n(d),a.sendAsyncapiDocsSwitchExampleClickedMessage({example:i,numberOfExamples:e.length}))},v=(0,s.useMemo)(()=>e?.reduce((i,d,h)=>(i[d.name||`Example ${h+1}`]=Object.assign({},d),i),{}),[e]);return(0,l.jsxs)(L,{className:"panel-messages-samples",header:()=>(0,l.jsx)(M,{isExpandable:!1,children:r("payload")}),children:[(0,l.jsx)(k,{examples:v,exampleKey:o?.name,onChange:u}),(0,l.jsx)(t.JsonViewer,{data:o?.payload,expandLevel:3})]})},L=(0,c.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
|
+
`,M=(0,c.default)(t.PanelHeader)`
|
|
7
7
|
font-weight: var(--font-weight-regular);
|
|
8
|
-
`,
|
|
8
|
+
`,k=(0,c.default)(g.ExampleSwitch)`
|
|
9
9
|
overflow: hidden;
|
|
10
|
-
`;
|
|
10
|
+
`;0&&(module.exports={SamplesPanel});
|
package/lib/components/Server.js
CHANGED
|
@@ -1,28 +1,28 @@
|
|
|
1
|
-
|
|
1
|
+
var v=Object.create;var l=Object.defineProperty;var y=Object.getOwnPropertyDescriptor;var S=Object.getOwnPropertyNames;var M=Object.getPrototypeOf,b=Object.prototype.hasOwnProperty;var I=(e,n)=>{for(var s in n)l(e,s,{get:n[s],enumerable:!0})},d=(e,n,s,r)=>{if(n&&typeof n=="object"||typeof n=="function")for(let i of S(n))!b.call(e,i)&&i!==s&&l(e,i,{get:()=>n[i],enumerable:!(r=y(n,i))||r.enumerable});return e};var j=(e,n,s)=>(s=e!=null?v(M(e)):{},d(n||!e||!e.__esModule?l(s,"default",{value:e,enumerable:!0}):s,e)),k=e=>d(l({},"__esModule",{value:!0}),e);var O={};I(O,{Server:()=>w});module.exports=k(O);var t=require("react/jsx-runtime"),o=j(require("styled-components")),a=require("@redocly/theme"),m=require("react"),f=require("./ServerModal"),c=require("./common"),x=require("../hooks");const w=({server:e,showDetails:n})=>{const[s,r]=(0,m.useState)(!1),i=(0,x.useTelemetry)();(0,a.useModalScrollLock)(s);const g=p=>{switch(p){case"kafka":return(0,t.jsx)(a.KafkaIcon,{size:"20px"});case"amqp":return(0,t.jsx)(a.RabbitMQIcon,{size:"20px"});default:return(0,t.jsx)(a.DatabaseIcon,{size:"20px"})}},h=()=>{r(!0),i.sendAsyncapiDocsServerModalOpenedMessage()};return(0,t.jsxs)(z,{"data-component-name":"Server/Server",children:[(0,t.jsxs)(C,{children:[(0,t.jsx)(B,{children:g(e.value.protocol)}),(0,t.jsx)(L,{children:e.key})]}),(0,t.jsxs)(D,{children:[(0,t.jsx)(c.HostList,{children:e.value.host.split(" ").map((p,u)=>(0,t.jsx)("span",{children:p},u))}),(0,t.jsx)(a.CopyButton,{data:e.value.host},e.value.host)]}),n&&(0,t.jsx)(H,{onClick:h,children:(0,t.jsx)(c.MoreDetailsButton,{expanded:!1})}),s&&(0,t.jsx)(a.Portal,{mountId:"api-content",children:(0,t.jsx)(f.ServerModal,{server:e,onClose:()=>r(!1)})})]})},z=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
|
+
`,B=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
|
+
`,C=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
|
+
`,D=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
|
+
`,L=o.default.span`
|
|
24
24
|
font-weight: var(--font-weight-semibold);
|
|
25
25
|
text-transform: capitalize;
|
|
26
|
-
`,
|
|
26
|
+
`,H=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 f=(r,e)=>{for(var s in e)a(r,s,{get:e[s],enumerable:!0})},p=(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=>p(a({},"__esModule",{value:!0}),r);var O={};f(O,{ServerBindingsSection:()=>S});module.exports=y(O);var n=require("react/jsx-runtime"),c=require("@redocly/openapi-docs"),d=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)(c.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)(d.JsonViewer,{data:t,expandLevel:3,controls:!1})}},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,25 +1,25 @@
|
|
|
1
|
-
|
|
1
|
+
var I=Object.create;var g=Object.defineProperty;var F=Object.getOwnPropertyDescriptor;var H=Object.getOwnPropertyNames;var O=Object.getPrototypeOf,T=Object.prototype.hasOwnProperty;var V=(n,o)=>{for(var r in o)g(n,r,{get:o[r],enumerable:!0})},_=(n,o,r,u)=>{if(o&&typeof o=="object"||typeof o=="function")for(let l of H(o))!T.call(n,l)&&l!==r&&g(n,l,{get:()=>o[l],enumerable:!(u=F(o,l))||u.enumerable});return n};var A=(n,o,r)=>(r=n!=null?I(O(n)):{},_(o||!n||!n.__esModule?g(r,"default",{value:n,enumerable:!0}):r,n)),N=n=>_(g({},"__esModule",{value:!0}),n);var G={};V(G,{TagBlock:()=>R});module.exports=N(G);var i=require("react/jsx-runtime"),k=A(require("styled-components")),x=require("jotai"),e=require("@redocly/openapi-docs"),t=require("@redocly/theme"),b=require("react-router-dom"),p=A(require("react")),m=require("../jotai-store/app"),h=require("./common"),D=require("./ItemsNavigation"),L=require("./ChannelSection"),P=require("./MarkdownSection");const R=p.default.memo(({tag:n})=>{var o,r,u,l;const S=(0,x.useAtomValue)(m.layoutAtom),y=(0,x.useAtomValue)(m.routingBasePathAtom),s=(0,x.useAtomValue)(m.definitionAtom),E=(0,x.useAtomValue)(m.markdocOptionsAtom),w=(0,b.useLocation)(),B=(0,b.useNavigate)(),d=!!(!((o=n.items)===null||o===void 0)&&o.length),M=S===t.LayoutVariant.STACKED,c=(u=(r=s?.components)===null||r===void 0?void 0:r.tags)===null||u===void 0?void 0:u[n.label],W=(0,p.useMemo)(()=>{var a,v;return d?(v=(a=s?.channels)===null||a===void 0?void 0:a[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 a=w.pathname;return a.endsWith(n.link||"")||n.items.some(v=>v.link&&a.toLowerCase().includes(v.link.toLowerCase()))},[d,w.pathname,n.link,n.items]),$=(0,p.useCallback)(()=>{n.link&&B(n.link)},[B,n.link]),j=(0,e.saveTextBeforeHeading)((0,e.getValueFromMdParsedExtension)(c,"description")||""),C=(0,t.combineUrls)(y,n.link);return(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(z,{expanded:d&&!f,sectionId:(0,t.combineUrls)(y,n.dataSectionId),children:(0,i.jsxs)(K,{expanded:f,children:[(0,i.jsxs)(e.Row,{layout:S,children:[(0,i.jsxs)(e.SamplesMiddlePanel,{fullWidth:!d,isStacked:M,children:[(0,i.jsxs)(q,{children:[n.label,(0,i.jsx)(h.ShareLink,{to:C,"aria-label":`link to ${n.label}`}),(0,i.jsx)(t.PageActions,{pageSlug:C})]}),c?.description&&(0,i.jsx)(e.Markdown,{source:j,markdocOptions:E}),c?.externalDocs&&(0,i.jsx)(h.ExternalDocumentationWrapper,{children:(0,i.jsx)(e.ExternalDocumentation,{externalDocs:c.externalDocs})})]}),d&&n.items&&(0,i.jsx)(D.ItemsNavigation,{items:n.items,firstChannelBinding:W})]}),d&&!f&&(0,i.jsx)(U,{type:"button",variant:"text",size:"medium",onClick:$,children:"+ Show"})]})}),f&&((l=n.items)===null||l===void 0?void 0:l.map(a=>a.type==="channel"?(0,i.jsx)(L.ChannelSection,{item:a},a.link):a.type==="markdown"?(0,i.jsx)(h.SectionWrapper,{children:(0,i.jsx)(P.MarkdownSection,{item:a})},a.link):null))]})}),z=(0,k.default)(e.Section)`
|
|
2
2
|
scroll-margin-top: calc(var(--navbar-height)) !important;
|
|
3
|
-
`,
|
|
4
|
-
padding-bottom: ${({expanded:
|
|
5
|
-
padding-bottom: ${({expanded:
|
|
6
|
-
|
|
3
|
+
`,K=k.default.div`
|
|
4
|
+
padding-bottom: ${({expanded:n})=>n?"var(--spacing-xxl)":""};
|
|
5
|
+
padding-bottom: ${({expanded:n})=>n?"var(--spacing-xxl)":""};
|
|
6
|
+
`,U=(0,k.default)(t.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: ${t.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
|
+
`,q=(0,k.default)(t.H2)`
|
|
18
18
|
display: flex;
|
|
19
19
|
:hover {
|
|
20
|
-
${
|
|
20
|
+
${t.LinkIcon} {
|
|
21
21
|
opacity: 1;
|
|
22
22
|
visibility: visible;
|
|
23
23
|
}
|
|
24
24
|
}
|
|
25
|
-
`;
|
|
25
|
+
`;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});
|