@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 p=Object.create;var n=Object.defineProperty;var h=Object.getOwnPropertyDescriptor;var g=Object.getOwnPropertyNames;var x=Object.getPrototypeOf,f=Object.prototype.hasOwnProperty;var m=(r,e)=>{for(var o in e)n(r,o,{get:e[o],enumerable:!0})},c=(r,e,o,s)=>{if(e&&typeof e=="object"||typeof e=="function")for(let a of g(e))!f.call(r,a)&&a!==o&&n(r,a,{get:()=>e[a],enumerable:!(s=h(e,a))||s.enumerable});return r};var v=(r,e,o)=>(o=r!=null?p(x(r)):{},c(e||!r||!r.__esModule?n(o,"default",{value:r,enumerable:!0}):o,r)),u=r=>c(n({},"__esModule",{value:!0}),r);var W={};m(W,{TagWithIcon:()=>y});module.exports=u(W);var i=require("react/jsx-runtime"),t=v(require("styled-components")),l=require("@redocly/theme");const y=({icon:r,info:e,children:o,capitalize:s,className:a,onClick:d})=>(0,i.jsxs)(b,{className:a,onClick:d,children:[r&&(0,i.jsx)(j,{children:r}),(0,i.jsx)(k,{borderless:!0,capitalize:s,children:o}),e&&(0,i.jsx)(T,{children:e})]}),b=t.default.div`
|
|
2
2
|
display: flex;
|
|
3
3
|
gap: var(--spacing-xxs);
|
|
4
|
-
`,
|
|
4
|
+
`,j=t.default.div`
|
|
5
5
|
width: 24px;
|
|
6
6
|
height: 24px;
|
|
7
7
|
border-radius: 50%;
|
|
@@ -10,15 +10,15 @@
|
|
|
10
10
|
display: flex;
|
|
11
11
|
flex-shrink: 0;
|
|
12
12
|
background-color: var(--layer-color-hover);
|
|
13
|
-
`,
|
|
14
|
-
text-transform: ${({capitalize:
|
|
13
|
+
`,k=(0,t.default)(l.Tag)`
|
|
14
|
+
text-transform: ${({capitalize:r})=>r?"capitalize":"initial"};
|
|
15
15
|
margin: 0;
|
|
16
16
|
background-color: var(--layer-color-hover);
|
|
17
17
|
color: inherit;
|
|
18
18
|
& span {
|
|
19
19
|
font-weight: 600;
|
|
20
20
|
}
|
|
21
|
-
`,
|
|
21
|
+
`,T=t.default.div`
|
|
22
22
|
width: 24px;
|
|
23
23
|
height: 24px;
|
|
24
24
|
border-radius: var(--border-radius);
|
|
@@ -27,4 +27,4 @@
|
|
|
27
27
|
background-color: var(--layer-color-hover);
|
|
28
28
|
display: flex;
|
|
29
29
|
cursor: pointer;
|
|
30
|
-
`;
|
|
30
|
+
`;0&&(module.exports={TagWithIcon});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
var n=Object.defineProperty;var d=Object.getOwnPropertyDescriptor;var g=Object.getOwnPropertyNames;var T=Object.prototype.hasOwnProperty;var u=(e,r)=>{for(var a in r)n(e,a,{get:r[a],enumerable:!0})},W=(e,r,a,p)=>{if(r&&typeof r=="object"||typeof r=="function")for(let t of g(r))!T.call(e,t)&&t!==a&&n(e,t,{get:()=>r[t],enumerable:!(p=d(r,t))||p.enumerable});return e};var H=e=>W(n({},"__esModule",{value:!0}),e);var L={};u(L,{ActionTag:()=>o.ActionTag,ApiHeader:()=>o.ApiHeader,BindingPanel:()=>c.BindingPanel,Block:()=>o.Block,ExternalDocumentationWrapper:()=>o.ExternalDocumentationWrapper,Header:()=>o.Header,HeaderWrapper:()=>o.HeaderWrapper,HostList:()=>o.HostList,Information:()=>f.Information,Label:()=>o.Label,LinkToField:()=>i.LinkToField,MoreDetailsButton:()=>l.MoreDetailsButton,Section:()=>o.Section,SectionWrapper:()=>x.SectionWrapper,ShareLink:()=>i.ShareLink,TagStyled:()=>o.TagStyled,TagWithIcon:()=>m.TagWithIcon,TopicConfiguration:()=>o.TopicConfiguration,TopicConfigurationWrapper:()=>o.TopicConfigurationWrapper,Value:()=>o.Value});module.exports=H(L);var o=require("./styles"),f=require("./Information"),m=require("./TagWithIcon"),c=require("./BindingPanel"),l=require("./MoreDetailsButton"),x=require("./SectionWrapper"),i=require("./Link");0&&(module.exports={ActionTag,ApiHeader,BindingPanel,Block,ExternalDocumentationWrapper,Header,HeaderWrapper,HostList,Information,Label,LinkToField,MoreDetailsButton,Section,SectionWrapper,ShareLink,TagStyled,TagWithIcon,TopicConfiguration,TopicConfigurationWrapper,Value});
|
|
@@ -1,43 +1,43 @@
|
|
|
1
|
-
|
|
1
|
+
var p=Object.create;var r=Object.defineProperty;var c=Object.getOwnPropertyDescriptor;var g=Object.getOwnPropertyNames;var d=Object.getPrototypeOf,x=Object.prototype.hasOwnProperty;var f=(o,i)=>{for(var t in i)r(o,t,{get:i[t],enumerable:!0})},l=(o,i,t,s)=>{if(i&&typeof i=="object"||typeof i=="function")for(let n of g(i))!x.call(o,n)&&n!==t&&r(o,n,{get:()=>i[n],enumerable:!(s=c(i,n))||s.enumerable});return o};var h=(o,i,t)=>(t=o!=null?p(d(o)):{},l(i||!o||!o.__esModule?r(t,"default",{value:o,enumerable:!0}):t,o)),v=o=>l(r({},"__esModule",{value:!0}),o);var L={};f(L,{ActionTag:()=>A,ApiHeader:()=>m,Block:()=>b,ExternalDocumentationWrapper:()=>w,Header:()=>u,HeaderWrapper:()=>H,HostList:()=>C,Label:()=>z,Section:()=>y,TagStyled:()=>T,TopicConfiguration:()=>$,TopicConfigurationWrapper:()=>W,Value:()=>k});module.exports=v(L);var e=h(require("styled-components")),a=require("@redocly/theme");const m=(0,e.default)(a.H1)`
|
|
2
2
|
display: flex;
|
|
3
3
|
margin-top: 0;
|
|
4
4
|
margin-bottom: 0;
|
|
5
|
-
& + ${
|
|
5
|
+
& + ${a.Markdown} {
|
|
6
6
|
margin-top: var(--h1-margin-bottom);
|
|
7
7
|
}
|
|
8
|
-
`,
|
|
8
|
+
`,b=e.default.div`
|
|
9
9
|
display: flex;
|
|
10
10
|
flex-direction: column;
|
|
11
11
|
gap: var(--spacing-xs);
|
|
12
|
-
`,
|
|
12
|
+
`,u=e.default.span`
|
|
13
13
|
font-weight: var(--font-weight-semibold);
|
|
14
14
|
line-height: var(--line-height-lg);
|
|
15
|
-
`,
|
|
15
|
+
`,y=e.default.div`
|
|
16
16
|
display: flex;
|
|
17
17
|
flex-direction: column;
|
|
18
18
|
gap: calc(var(--spacing-xxs) / 2);
|
|
19
|
-
`,
|
|
19
|
+
`,z=e.default.span`
|
|
20
20
|
color: var(--text-color-description);
|
|
21
21
|
font-size: var(--font-size-base);
|
|
22
22
|
line-height: var(--line-height-base);
|
|
23
|
-
`,
|
|
23
|
+
`,k=e.default.span`
|
|
24
24
|
font-size: var(--font-size-base);
|
|
25
25
|
line-height: var(--line-height-base);
|
|
26
|
-
`,
|
|
26
|
+
`,w=e.default.div`
|
|
27
27
|
font-size: var(--font-size-base);
|
|
28
28
|
line-height: var(--line-height-base);
|
|
29
|
-
`,
|
|
29
|
+
`,H=e.default.div`
|
|
30
30
|
min-height: 40px;
|
|
31
31
|
padding: var(--spacing-xs) var(--spacing-md);
|
|
32
32
|
align-items: center;
|
|
33
33
|
display: flex;
|
|
34
34
|
width: 100%;
|
|
35
|
-
background-color: ${({expandable:
|
|
36
|
-
cursor: ${({expandable:
|
|
35
|
+
background-color: ${({expandable:o})=>o&&"var(--layer-color)"};
|
|
36
|
+
cursor: ${({expandable:o})=>o&&"pointer"};
|
|
37
37
|
gap: var(--spacing-md);
|
|
38
38
|
|
|
39
39
|
&:hover {
|
|
40
|
-
background-color: ${({expandable:
|
|
40
|
+
background-color: ${({expandable:o})=>o&&"var(--layer-color-ontonal-hover)"};
|
|
41
41
|
}
|
|
42
42
|
|
|
43
43
|
& > *:first-child {
|
|
@@ -47,9 +47,9 @@
|
|
|
47
47
|
& > *:nth-child(2) {
|
|
48
48
|
flex: 2;
|
|
49
49
|
}
|
|
50
|
-
`,
|
|
50
|
+
`,T=(0,e.default)(a.Tag)`
|
|
51
51
|
text-transform: none;
|
|
52
|
-
|
|
52
|
+
`,$=e.default.div`
|
|
53
53
|
min-height: 30px;
|
|
54
54
|
padding: var(--spacing-xs) var(--spacing-md);
|
|
55
55
|
align-items: start;
|
|
@@ -60,14 +60,14 @@
|
|
|
60
60
|
& > * {
|
|
61
61
|
flex: 1;
|
|
62
62
|
}
|
|
63
|
-
`,
|
|
63
|
+
`,W=e.default.div`
|
|
64
64
|
padding-left: var(--spacing-xs);
|
|
65
65
|
background-color: var(--layer-color);
|
|
66
66
|
|
|
67
67
|
& div {
|
|
68
68
|
border-bottom: none;
|
|
69
69
|
}
|
|
70
|
-
`,
|
|
70
|
+
`,A=(0,e.default)(a.Tag)`
|
|
71
71
|
text-transform: uppercase;
|
|
72
72
|
background-color: unset;
|
|
73
73
|
border: none;
|
|
@@ -78,7 +78,7 @@
|
|
|
78
78
|
font-size: var(--font-size-sm);
|
|
79
79
|
line-height: var(--line-height-sm);
|
|
80
80
|
display: block;
|
|
81
|
-
`,
|
|
81
|
+
`,C=e.default.span`
|
|
82
82
|
display: flex;
|
|
83
83
|
flex-direction: column;
|
|
84
|
-
`;
|
|
84
|
+
`;0&&(module.exports={ActionTag,ApiHeader,Block,ExternalDocumentationWrapper,Header,HeaderWrapper,HostList,Label,Section,TagStyled,TopicConfiguration,TopicConfigurationWrapper,Value});
|
package/lib/hooks/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
var s=Object.defineProperty;var a=Object.getOwnPropertyDescriptor;var c=Object.getOwnPropertyNames;var n=Object.prototype.hasOwnProperty;var P=(r,e)=>{for(var t in e)s(r,t,{get:e[t],enumerable:!0})},T=(r,e,t,m)=>{if(e&&typeof e=="object"||typeof e=="function")for(let o of c(e))!n.call(r,o)&&o!==t&&s(r,o,{get:()=>e[o],enumerable:!(m=a(e,o))||m.enumerable});return r};var b=r=>T(s({},"__esModule",{value:!0}),r);var i={};P(i,{useAutoScroll:()=>f.useAutoScroll,usePerformanceMetrics:()=>p.usePerformanceMetrics,useProtocolLabels:()=>l.useProtocolLabels,useTelemetry:()=>x.useTelemetry,useTranslate:()=>u.useTranslate});module.exports=b(i);var f=require("./use-auto-scroll"),l=require("./use-protocol-labels"),u=require("./use-translate"),p=require("./use-performance-metrics"),x=require("./use-telemetry");0&&(module.exports={useAutoScroll,usePerformanceMetrics,useProtocolLabels,useTelemetry,useTranslate});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
var a=Object.defineProperty;var m=Object.getOwnPropertyDescriptor;var u=Object.getOwnPropertyNames;var f=Object.prototype.hasOwnProperty;var p=(t,e)=>{for(var o in e)a(t,o,{get:e[o],enumerable:!0})},h=(t,e,o,i)=>{if(e&&typeof e=="object"||typeof e=="function")for(let n of u(e))!f.call(t,n)&&n!==o&&a(t,n,{get:()=>e[n],enumerable:!(i=m(e,n))||i.enumerable});return t};var I=t=>h(a({},"__esModule",{value:!0}),t);var T={};p(T,{useAutoScroll:()=>w});module.exports=I(T);var r=require("react"),l=require("react-router-dom"),s=require("@redocly/theme"),d=require("../utils");let c=!0;function w(t){const e=(0,l.useLocation)(),o=(0,s.useActiveSectionId)(e,!1,!1);(0,r.useEffect)(()=>{S({location:e,routingBasePath:t})},[e,t]),(0,r.useEffect)(()=>{if(o&&c){c=!1;return}s.IS_BROWSER&&window.location.pathname!==o&&window.history.replaceState({},"",o)},[o])}function S({location:t,routingBasePath:e}){if(t.pathname===e&&t.hash===""){window.scrollTo(0,0);return}const o=t.pathname,i=y(t.hash),n=E(i)||document.querySelector(`[data-section-id="${o}"]`);n?setTimeout(()=>{n.scrollIntoView()},0):window.scrollTo(0,0)}function y(t){const e=t.replace("#","");if(!e.includes("&m="))return e;const[o,i]=e.split("&m=");return i.includes("&")||i.includes("/")?e:o}function E(t){return document.getElementById((0,d.tryDecodeURIComponent)(t))}0&&(module.exports={useAutoScroll});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
var s=Object.defineProperty;var i=Object.getOwnPropertyDescriptor;var P=Object.getOwnPropertyNames;var c=Object.prototype.hasOwnProperty;var v=(a,o)=>{for(var m in o)s(a,m,{get:o[m],enumerable:!0})},f=(a,o,m,n)=>{if(o&&typeof o=="object"||typeof o=="function")for(let e of P(o))!c.call(a,e)&&e!==m&&s(a,e,{get:()=>o[e],enumerable:!(n=i(o,e))||n.enumerable});return a};var C=a=>f(s({},"__esModule",{value:!0}),a);var w={};v(w,{usePerformanceMetrics:()=>T});module.exports=C(w);var t=require("@redocly/theme"),r=require("web-vitals");function T({sendTelemetry:a}){(0,t.useMount)(()=>{const o={},m=[new Promise(n=>(0,r.onCLS)(e=>n({name:"CLS",value:e.value}))),new Promise(n=>(0,r.onLCP)(e=>n({name:"LCP",value:e.value}))),new Promise(n=>(0,r.onFCP)(e=>n({name:"FCP",value:e.value}))),new Promise(n=>(0,r.onTTFB)(e=>n({name:"TTFB",value:e.value})))];Promise.allSettled(m).then(n=>{n.forEach(e=>{if(e.status==="fulfilled"){const{name:u,value:l}=e.value;o[u]=Math.round(l)}}),a(o)})})}0&&(module.exports={usePerformanceMetrics});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
var o=Object.defineProperty;var i=Object.getOwnPropertyDescriptor;var u=Object.getOwnPropertyNames;var v=Object.prototype.hasOwnProperty;var d=(e,n)=>{for(var r in n)o(e,r,{get:n[r],enumerable:!0})},h=(e,n,r,a)=>{if(n&&typeof n=="object"||typeof n=="function")for(let s of u(n))!v.call(e,s)&&s!==r&&o(e,s,{get:()=>n[s],enumerable:!(a=i(n,s))||a.enumerable});return e};var t=e=>h(o({},"__esModule",{value:!0}),e);var A={};d(A,{useProtocolLabels:()=>P});module.exports=t(A);var c=require("jotai"),l=require("./../jotai-store/app");const b={channel:"Channel",channels:"Channels",servers:"Servers",server:"Server",send:"Send",receive:"Receive",sendLabel:"Send",receiveLabel:"Receive",channelBinding:"Channel binding",payload:"Payload"},L={channel:"Topic",channels:"Topics",servers:"Brokers",server:"Broker",send:"Pub",receive:"Sub",sendLabel:"Publish",receiveLabel:"Subscribe",channelBinding:"Topic configuration",payload:"Value"},E={channel:"Exchange",channels:"Exchanges",servers:"Brokers",server:"Broker",send:"Pub",receive:"Cons",sendLabel:"Publish",receiveLabel:"Consume",channelBinding:"Exchange configuration",payload:"Payload"},g={channel:"Queue",channels:"Queues",servers:"Brokers",server:"Broker",send:"Pub",receive:"Cons",sendLabel:"Publish",receiveLabel:"Consume",channelBinding:"Queue configuration",payload:"Payload"};function P(e){const n=(0,c.useAtomValue)(l.protocolAtom);return{getProtocolLabel:(r,a)=>{var s;switch(n){case"kafka":return L[r]||a||"";case"amqp":return(((s=e?.amqp)===null||s===void 0?void 0:s.is)==="routingKey"?E[r]:g[r])||a||"";default:return b[r]||a||""}}}}0&&(module.exports={useProtocolLabels});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
var m=Object.defineProperty;var n=Object.getOwnPropertyDescriptor;var T=Object.getOwnPropertyNames;var f=Object.prototype.hasOwnProperty;var i=(r,e)=>{for(var t in e)m(r,t,{get:e[t],enumerable:!0})},l=(r,e,t,u)=>{if(e&&typeof e=="object"||typeof e=="function")for(let o of T(e))!f.call(r,o)&&o!==t&&m(r,o,{get:()=>e[o],enumerable:!(u=n(e,o))||u.enumerable});return r};var p=r=>l(m({},"__esModule",{value:!0}),r);var c={};i(c,{useTelemetry:()=>y});module.exports=p(c);var s=require("@redocly/theme");function y(){return(0,s.useThemeHooks)().useTelemetry()}0&&(module.exports={useTelemetry});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
var n=Object.defineProperty;var u=Object.getOwnPropertyDescriptor;var l=Object.getOwnPropertyNames;var m=Object.prototype.hasOwnProperty;var T=(e,t)=>{for(var s in t)n(e,s,{get:t[s],enumerable:!0})},c=(e,t,s,o)=>{if(t&&typeof t=="object"||typeof t=="function")for(let r of l(t))!m.call(e,r)&&r!==s&&n(e,r,{get:()=>t[r],enumerable:!(o=u(t,r))||o.enumerable});return e};var f=e=>c(n({},"__esModule",{value:!0}),e);var p={};T(p,{useTranslate:()=>i});module.exports=f(p);var a=require("@redocly/theme");function i(){const{translate:e}=(0,a.useThemeHooks)().useTranslate();return e}0&&(module.exports={useTranslate});
|
package/lib/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
var m=Object.defineProperty;var c=Object.getOwnPropertyDescriptor;var l=Object.getOwnPropertyNames;var u=Object.prototype.hasOwnProperty;var y=(r,o)=>{for(var e in o)m(r,e,{get:o[e],enumerable:!0})},i=(r,o,e,d)=>{if(o&&typeof o=="object"||typeof o=="function")for(let t of l(o))!u.call(r,t)&&t!==e&&m(r,t,{get:()=>o[t],enumerable:!(d=c(o,t))||d.enumerable});return r},n=(r,o,e)=>(i(r,o,"default"),e&&i(e,o,"default"));var A=r=>i(m({},"__esModule",{value:!0}),r);var f={};y(f,{RedoclyAsyncAPIDocs:()=>p.RedoclyAsyncAPIDocs,buildMenuItems:()=>s.buildMenuItems,findFirstBinding:()=>x.findFirstBinding});module.exports=A(f);var p=require("./RedoclyAsyncAPIDocs");n(f,require("./types"),module.exports);var s=require("./utils/build-menu-items"),x=require("./utils/find-first-binding");0&&(module.exports={RedoclyAsyncAPIDocs,buildMenuItems,findFirstBinding,...require("./types")});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
var y=Object.create;var l=Object.defineProperty;var j=Object.getOwnPropertyDescriptor;var A=Object.getOwnPropertyNames;var S=Object.getPrototypeOf,P=Object.prototype.hasOwnProperty;var w=(i,o)=>{for(var a in o)l(i,a,{get:o[a],enumerable:!0})},O=(i,o,a,e)=>{if(o&&typeof o=="object"||typeof o=="function")for(let n of A(o))!P.call(i,n)&&n!==a&&l(i,n,{get:()=>o[n],enumerable:!(e=j(o,n))||e.enumerable});return i};var _=(i,o,a)=>(a=i!=null?y(S(i)):{},O(o||!i||!i.__esModule?l(a,"default",{value:i,enumerable:!0}):a,i)),B=i=>O(l({},"__esModule",{value:!0}),i);var D={};w(D,{AppProvider:()=>U});module.exports=B(D);var f=require("react/jsx-runtime"),s=require("react"),r=require("jotai"),c=require("@redocly/theme"),v=require("@redocly/openapi-docs/lib/components/RedoclyOpenAPIDocs/utils"),h=require("@redocly/openapi-docs/lib/components/SchemaDefinition"),b=_(require("@markdoc/markdoc")),k=require("../types"),t=require("./app");const d={markdocOptions:{tags:{schemaDefinition:{render:"SchemaDefinition",attributes:{schemaRef:{type:String},exampleRef:{type:String},showReadOnly:{type:Boolean},showWriteOnly:{type:Boolean},htmlWrap:{type:String,default:!1}}}},nodes:{heading:{children:["inline"],attributes:{id:{type:String},level:{type:Number,required:!0,default:1}},transform(i,o){const a=i.transformAttributes(o),e=i.transformChildren(o),n=typeof a.id=="string"?a.id:(0,v.getMarkdownHeaderId)(e);return new b.default.Tag("Heading",Object.assign(Object.assign({},a),{id:n,level:i.attributes.level}),e)}}},components:{SchemaDefinition:h.SchemaDefinition,Heading:c.markdoc.components.Heading}}},U=({children:i,store:o})=>{const a=(0,s.useMemo)(()=>{var n,m,p,u,g;return Object.assign(Object.assign(Object.assign({},d.markdocOptions),{components:Object.assign(Object.assign({},d.markdocOptions.components),(n=o?.markdocOptions)===null||n===void 0?void 0:n.components),tags:Object.assign(Object.assign({},d.markdocOptions.tags),(m=o?.markdocOptions)===null||m===void 0?void 0:m.tags),nodes:Object.assign(Object.assign(Object.assign({},d.markdocOptions.nodes),(p=o?.markdocOptions)===null||p===void 0?void 0:p.nodes),{heading:d.markdocOptions.nodes.heading||((g=(u=o?.markdocOptions)===null||u===void 0?void 0:u.nodes)===null||g===void 0?void 0:g.heading)})}),o?.markdocOptions)},[o?.markdocOptions]),e=(0,s.useMemo)(()=>{const n=(0,r.createStore)();return n.set(t.layoutAtom,o.layout||c.LayoutVariant.THREE_PANEL),n.set(t.protocolAtom,o.protocol||k.ProtocolVariant.DEFAULT),n.set(t.routingBasePathAtom,o.routingBasePath),n.set(t.downloadUrlsAtom,o.downloadUrls),n.set(t.definitionAtom,o.definition),n.set(t.markdocOptionsAtom,a),n},[o.layout,o.protocol,o.routingBasePath,o.downloadUrls,o.definition,a]);return(0,s.useEffect)(()=>{e.set(t.layoutAtom,o.layout),e.set(t.protocolAtom,o.protocol),e.set(t.routingBasePathAtom,o.routingBasePath),e.set(t.downloadUrlsAtom,o.downloadUrls),e.set(t.definitionAtom,o.definition),e.set(t.markdocOptionsAtom,a)},[e,o.layout,o.protocol,o.routingBasePath,o.downloadUrls,o.definition,a]),(0,f.jsx)(r.Provider,{store:e,children:i})};0&&(module.exports={AppProvider});
|
package/lib/jotai-store/app.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
var i=Object.defineProperty;var m=Object.getOwnPropertyDescriptor;var g=Object.getOwnPropertyNames;var O=Object.prototype.hasOwnProperty;var l=(t,o)=>{for(var n in o)i(t,n,{get:o[n],enumerable:!0})},b=(t,o,n,a)=>{if(o&&typeof o=="object"||typeof o=="function")for(let e of g(o))!O.call(t,e)&&e!==n&&i(t,e,{get:()=>o[e],enumerable:!(a=m(o,e))||a.enumerable});return t};var d=t=>b(i({},"__esModule",{value:!0}),t);var P={};l(P,{appStore:()=>s,definitionAtom:()=>f,downloadUrlsAtom:()=>x,layoutAtom:()=>j,markdocOptionsAtom:()=>E,protocolAtom:()=>A,routingBasePathAtom:()=>u});module.exports=d(P);var c=require("jotai"),r=require("@redocly/theme"),p=require("../types");const s=(0,c.atom)({layout:r.LayoutVariant.THREE_PANEL,protocol:p.ProtocolVariant.DEFAULT,routingBasePath:"",downloadUrls:[],definition:{},markdocOptions:{}}),j=(0,c.atom)(t=>t(s).layout,(t,o,n=r.LayoutVariant.STACKED)=>{const a=t(s);o(s,Object.assign(Object.assign({},a),{layout:n}))}),A=(0,c.atom)(t=>t(s).protocol,(t,o,n=p.ProtocolVariant.DEFAULT)=>{const a=t(s);o(s,Object.assign(Object.assign({},a),{protocol:n}))}),u=(0,c.atom)(t=>t(s).routingBasePath,(t,o,n="")=>{const a=t(s);o(s,Object.assign(Object.assign({},a),{routingBasePath:n}))}),x=(0,c.atom)(t=>t(s).downloadUrls,(t,o,n=[])=>{const a=t(s);o(s,Object.assign(Object.assign({},a),{downloadUrls:n}))}),f=(0,c.atom)(t=>t(s).definition,(t,o,n={})=>{const a=t(s);o(s,Object.assign(Object.assign({},a),{definition:n}))}),E=(0,c.atom)(t=>t(s).markdocOptions,(t,o,n={})=>{const a=t(s);o(s,Object.assign(Object.assign({},a),{markdocOptions:n}))});0&&(module.exports={appStore,definitionAtom,downloadUrlsAtom,layoutAtom,markdocOptionsAtom,protocolAtom,routingBasePathAtom});
|
package/lib/types/apiItem.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
var t=Object.defineProperty;var a=Object.getOwnPropertyDescriptor;var b=Object.getOwnPropertyNames;var c=Object.prototype.hasOwnProperty;var d=(o,e,x,r)=>{if(e&&typeof e=="object"||typeof e=="function")for(let p of b(e))!c.call(o,p)&&p!==x&&t(o,p,{get:()=>e[p],enumerable:!(r=a(e,p))||r.enumerable});return o};var f=o=>d(t({},"__esModule",{value:!0}),o);var g={};module.exports=f(g);
|
package/lib/types/async-api.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
var t=Object.defineProperty;var a=Object.getOwnPropertyDescriptor;var b=Object.getOwnPropertyNames;var c=Object.prototype.hasOwnProperty;var d=(o,e,x,r)=>{if(e&&typeof e=="object"||typeof e=="function")for(let p of b(e))!c.call(o,p)&&p!==x&&t(o,p,{get:()=>e[p],enumerable:!(r=a(e,p))||r.enumerable});return o};var f=o=>d(t({},"__esModule",{value:!0}),o);var g={};module.exports=f(g);
|
package/lib/types/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
var a=Object.defineProperty;var b=Object.getOwnPropertyDescriptor;var c=Object.getOwnPropertyNames;var d=Object.prototype.hasOwnProperty;var t=(f,r,p,x)=>{if(r&&typeof r=="object"||typeof r=="function")for(let m of c(r))!d.call(f,m)&&m!==p&&a(f,m,{get:()=>r[m],enumerable:!(x=b(r,m))||x.enumerable});return f},e=(f,r,p)=>(t(f,r,"default"),p&&t(p,r,"default"));var g=f=>t(a({},"__esModule",{value:!0}),f);var o={};module.exports=g(o);e(o,require("./async-api"),module.exports);e(o,require("./apiItem"),module.exports);e(o,require("./protocol"),module.exports);0&&(module.exports={...require("./async-api"),...require("./apiItem"),...require("./protocol")});
|
package/lib/types/protocol.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
var k=Object.defineProperty;var F=Object.getOwnPropertyDescriptor;var K=Object.getOwnPropertyNames;var d=Object.prototype.hasOwnProperty;var m=(A,a)=>{for(var e in a)k(A,e,{get:a[e],enumerable:!0})},n=(A,a,e,u)=>{if(a&&typeof a=="object"||typeof a=="function")for(let f of K(a))!d.call(A,f)&&f!==e&&k(A,f,{get:()=>a[f],enumerable:!(u=F(a,f))||u.enumerable});return A};var q=A=>n(k({},"__esModule",{value:!0}),A);var t={};m(t,{ProtocolVariant:()=>p});module.exports=q(t);var p;(function(A){A.DEFAULT="default",A.KAFKA="kafka",A.AMQP="amqp"})(p||(p={}));0&&(module.exports={ProtocolVariant});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
var o=Object.defineProperty;var a=Object.getOwnPropertyDescriptor;var b=Object.getOwnPropertyNames;var d=Object.prototype.hasOwnProperty;var g=(t,e)=>{for(var n in e)o(t,n,{get:e[n],enumerable:!0})},p=(t,e,n,r)=>{if(e&&typeof e=="object"||typeof e=="function")for(let i of b(e))!d.call(t,i)&&i!==n&&o(t,i,{get:()=>e[i],enumerable:!(r=a(e,i))||r.enumerable});return t};var j=t=>p(o({},"__esModule",{value:!0}),t);var x={};g(x,{avroToJsonSchema:()=>k});module.exports=j(x);function l(t,e){switch(t){case"null":return{type:"null"};case"boolean":return{type:"boolean"};case"int":case"long":return{type:"integer"};case"float":case"double":return{type:"number"};case"bytes":return{type:"string",contentEncoding:"base64"};case"string":return{type:"string"};default:return e[t]?e[t]:{type:"null"}}}function m(t){return{type:"string",enum:t.symbols,title:t.name,description:t.doc}}function y(t,e){var n;const r={},i=[];return(n=t.fields)===null||n===void 0||n.forEach(u=>{r[u.name]=c(u.type,e),u.doc&&(r[u.name].description=u.doc),u.default!==void 0&&(r[u.name].default=u.default),u.default===void 0&&!A(u.type)&&i.push(u.name)}),{type:"object",title:t.name,description:t.doc,properties:r,required:i.length>0?i:void 0,additionalProperties:!1}}function A(t){return Array.isArray(t)?t.some(e=>e==="null"||typeof e=="object"&&e.type==="null"):!1}function s(t,e){return{type:"array",items:c(t.items,e),description:t.doc}}function f(t,e){return{type:"object",additionalProperties:c(t.values,e),description:t.doc}}function O(t,e){const n=t.findIndex(r=>r==="null"||typeof r=="object"&&r.type==="null");if(n!==-1){const r=[...t];return r.splice(n,1),r.length===1?Object.assign(Object.assign({},c(r[0],e)),{nullable:!0}):{oneOf:r.map(i=>c(i,e)),nullable:!0}}return{oneOf:t.map(r=>c(r,e))}}function c(t,e){if(typeof t=="string")return l(t,e);let n={};if(Array.isArray(t))n=O(t,e);else if(typeof t=="object"&&typeof t.type=="string")switch(t.type){case"record":n=y(t,e);break;case"enum":n=m(t);break;case"array":n=s(t,e);break;case"map":n=f(t,e);break;default:n=l(t.type,e)}else typeof t=="object"&&t.items?n=s(t,e):typeof t=="object"&&t.values&&(n=f(t,e));return t.name&&(e[t.name]=n),n}function k(t){const n=c(t,{});return Object.assign({},n)}0&&(module.exports={avroToJsonSchema});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
var k=Object.defineProperty;var _=Object.getOwnPropertyDescriptor;var q=Object.getOwnPropertyNames;var L=Object.prototype.hasOwnProperty;var N=(n,o)=>{for(var s in o)k(n,s,{get:o[s],enumerable:!0})},P=(n,o,s,d)=>{if(o&&typeof o=="object"||typeof o=="function")for(let a of q(o))!L.call(n,a)&&a!==s&&k(n,a,{get:()=>o[a],enumerable:!(d=_(o,a))||d.enumerable});return n};var R=n=>P(k({},"__esModule",{value:!0}),n);var H={};N(H,{buildMenuItems:()=>F});module.exports=R(H);var f=require("@redocly/openapi-docs/lib/utils/string.js"),r=require("@redocly/config"),C=require("@redocly/openapi-docs/lib/services/menu/markdown"),E=require("@redocly/openapi-docs/lib/utils/helpers"),T=require("@redocly/theme"),V=require("./map-channel-to-operations"),w=require("./nav-to-api-items");function F({asyncApiDoc:n,protocol:o}){var s;const d=(0,V.mapChannelToOperations)(n),a={},x=[],j=n.channels||{},y=n.operations||{},S=((s=n.components)===null||s===void 0?void 0:s.tags)||{};for(const[t,l]of Object.entries(d)){const e=j[t],v=e.tags||[],c=l.length>0,u=G(o,e.bindings),b=`${u.channel}s`;for(const m of v){const i=m.name,M=(0,f.safeSlugify)(i).toLowerCase();a[i]||(a[i]=[]),a[i].push(Object.assign({label:e.title||e.address||t,type:c?"group":"link",link:M+"/"+b+"/"+t,badges:e?.["x-badges"]||[],httpVerb:u.channel,[r.REDOCLY_TEAMS_RBAC]:e?.[r.REDOCLY_TEAMS_RBAC],apiItemData:{type:"channel",id:t}},c?{items:l.map(h=>{const p=y[h];return{label:p.title||h,type:"link",link:M+"/"+b+"/"+t+"/operations/"+h,httpVerb:u[p.action]||"",action:p.action,badges:p?.["x-badges"]||[],[r.REDOCLY_TEAMS_RBAC]:p?.[r.REDOCLY_TEAMS_RBAC],apiItemData:{type:"operation",id:h}}})}:{}))}v.length||x.push(Object.assign({label:e.title||e.address||t,type:c?"group":"link",link:b+"/"+t,httpVerb:u.channel,badges:e?.["x-badges"]||[],[r.REDOCLY_TEAMS_RBAC]:e?.[r.REDOCLY_TEAMS_RBAC],apiItemData:{type:"channel",id:t}},c?{items:l.map(m=>{const i=y[m];return{label:i.title||m,type:"link",link:b+"/"+t+"/operations/"+m,httpVerb:u[i.action]||"",badges:i?.["x-badges"]||[],[r.REDOCLY_TEAMS_RBAC]:i?.[r.REDOCLY_TEAMS_RBAC],action:i.action,apiItemData:{type:"operation",id:m}}})}:{}))}for(const t in a){const l=O(S[t],(0,f.safeSlugify)(t).toLowerCase());a[t].unshift(...l)}const g=O(n.info),I=[...Object.entries(a).map(([t,l])=>({label:t,type:"group",link:(0,f.safeSlugify)(t).toLowerCase(),items:l})),...x];if(n["x-tagGroups"]&&n["x-tagGroups"].length>0){const t=[],l=new Map;return I.forEach(e=>{e.label&&l.set(e.label,e)}),n["x-tagGroups"].forEach(e=>{t.push({label:e.name,type:"separator",[r.REDOCLY_TEAMS_RBAC]:e[r.REDOCLY_TEAMS_RBAC]}),e.tags.forEach(v=>{const c=l.get(v);c&&t.push(c)})}),{navItems:[...g,...t],apiItems:(0,w.navToApiItems)([...g,...t])}}return{navItems:[...g,...I],apiItems:(0,w.navToApiItems)([...g,...I])}}function O(n,o=""){const s=(0,C.addMarkdownItems)((0,E.getValueFromMdParsedExtension)(n,"description")||"",o?{type:"tag",id:o}:void 0,1);function d(a){return{type:a.items.length?"group":"link",label:a.name,link:(0,T.combineUrls)(o,a.href),items:a.items.map(d),apiItemData:{type:"markdown",id:a.name},ast:a.ast}}return s.map(d)}const G=(n,o)=>{var s;switch(n){case"kafka":return{channel:"topic",send:"pub",receive:"sub"};case"amqp":return{channel:((s=o?.amqp)===null||s===void 0?void 0:s.is)==="routingKey"?"exch":"queue",send:"pub",receive:"cons"};default:return{channel:"channel",send:"send",receive:"receive"}}};0&&(module.exports={buildMenuItems});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
var l=Object.defineProperty;var f=Object.getOwnPropertyDescriptor;var s=Object.getOwnPropertyNames;var c=Object.prototype.hasOwnProperty;var a=(n,r)=>{for(var t in r)l(n,t,{get:r[t],enumerable:!0})},d=(n,r,t,e)=>{if(r&&typeof r=="object"||typeof r=="function")for(let i of s(r))!c.call(n,i)&&i!==t&&l(n,i,{get:()=>r[i],enumerable:!(e=f(r,i))||e.enumerable});return n};var p=n=>d(l({},"__esModule",{value:!0}),n);var y={};a(y,{findFirstBinding:()=>u});module.exports=p(y);function u(n,r=new Set){if(r.has(n))return null;r.add(n);for(let t in n)if(Object.prototype.hasOwnProperty.call(n,t)){if(n[t]&&n[t].bindings)return Object.keys(n[t].bindings)[0];const e=u(n[t],r);if(e)return e}return null}0&&(module.exports={findFirstBinding});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
var t=Object.create;var o=Object.defineProperty;var y=Object.getOwnPropertyDescriptor;var A=Object.getOwnPropertyNames;var u=Object.getPrototypeOf,N=Object.prototype.hasOwnProperty;var p=(r,e)=>{for(var i in e)o(r,i,{get:e[i],enumerable:!0})},m=(r,e,i,f)=>{if(e&&typeof e=="object"||typeof e=="function")for(let n of A(e))!N.call(r,n)&&n!==i&&o(r,n,{get:()=>e[n],enumerable:!(f=y(e,n))||f.enumerable});return r};var g=(r,e,i)=>(i=r!=null?t(u(r)):{},m(e||!r||!r.__esModule?o(i,"default",{value:r,enumerable:!0}):i,r)),l=r=>m(o({},"__esModule",{value:!0}),r);var O={};p(O,{generateAst:()=>J});module.exports=l(O);var d=g(require("@markdoc/markdoc"));function J(r){var e;if(Array.isArray(r)&&r.length>0&&((e=r[0])===null||e===void 0?void 0:e.$$mdtype)==="Node")return r.map(i=>d.default.Ast.fromJSON(JSON.stringify(i)));if(r&&!Array.isArray(r)&&r.$$mdtype==="Node")return[d.default.Ast.fromJSON(JSON.stringify(r))]}0&&(module.exports={generateAst});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
var a=Object.defineProperty;var r=Object.getOwnPropertyDescriptor;var c=Object.getOwnPropertyNames;var g=Object.prototype.hasOwnProperty;var _=(o,n)=>{for(var i in n)a(o,i,{get:n[i],enumerable:!0})},$=(o,n,i,t)=>{if(n&&typeof n=="object"||typeof n=="function")for(let e of c(n))!g.call(o,e)&&e!==i&&a(o,e,{get:()=>n[e],enumerable:!(t=r(n,e))||t.enumerable});return o};var h=o=>$(a({},"__esModule",{value:!0}),o);var p={};_(p,{generateChannelLink:()=>m});module.exports=h(p);function m(o){var n,i,t,e,d;const u=((i=(n=o.bindings)===null||n===void 0?void 0:n.amqp)===null||i===void 0?void 0:i.is)==="routingKey",s=(d=(e=(t=o.tags)===null||t===void 0?void 0:t[0])===null||e===void 0?void 0:e.name)===null||d===void 0?void 0:d.toLowerCase(),v=o.key,l=u?"exchs":"queues";return s?`${s}/${l}/${v}`:`${l}/${v}`}0&&(module.exports={generateChannelLink});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
var s=Object.defineProperty;var h=Object.getOwnPropertyDescriptor;var x=Object.getOwnPropertyNames;var i=Object.prototype.hasOwnProperty;var a=(e,t)=>{for(var g in t)s(e,g,{get:t[g],enumerable:!0})},c=(e,t,g,u)=>{if(t&&typeof t=="object"||typeof t=="function")for(let n of x(t))!i.call(e,n)&&n!==g&&s(e,n,{get:()=>t[n],enumerable:!(u=h(t,n))||u.enumerable});return e};var f=e=>c(s({},"__esModule",{value:!0}),e);var $={};a($,{generateMessageReferencesHeader:()=>q});module.exports=f($);function q(e){const t=[];if(e.exchanges.length>0){const g=`${e.exchanges.length} exchange${e.exchanges.length>1?"s":""}`;t.push(g)}if(e.queues.length>0){const g=`${e.queues.length} queue${e.queues.length>1?"s":""}`;t.push(g)}return t.length===0?"":`Used in ${t.join(" and ")}`}0&&(module.exports={generateMessageReferencesHeader});
|
package/lib/utils/get-schema.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
var t=Object.defineProperty;var e=Object.getOwnPropertyDescriptor;var s=Object.getOwnPropertyNames;var m=Object.prototype.hasOwnProperty;var p=(o,a)=>{for(var n in a)t(o,n,{get:a[n],enumerable:!0})},h=(o,a,n,c)=>{if(a&&typeof a=="object"||typeof a=="function")for(let r of s(a))!m.call(o,r)&&r!==n&&t(o,r,{get:()=>a[r],enumerable:!(c=e(a,r))||c.enumerable});return o};var f=o=>h(t({},"__esModule",{value:!0}),o);var A={};p(A,{getSchema:()=>v});module.exports=f(A);var i=require("./avro-to-json-schema");const d=["application/vnd.apache.avro","application/vnd.apache.avro+json","application/vnd.apache.avro+yaml"];function S(o){return o?d.some(a=>o.startsWith(a)):!1}const v=o=>o?.schema?S(o.schemaFormat)?(0,i.avroToJsonSchema)(o.schema):o.schema:o;0&&(module.exports={getSchema});
|
package/lib/utils/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
var m=Object.defineProperty;var y=Object.getOwnPropertyDescriptor;var C=Object.getOwnPropertyNames;var I=Object.prototype.hasOwnProperty;var T=(o,e)=>{for(var t in e)m(o,t,{get:e[t],enumerable:!0})},v=(o,e,t,n)=>{if(e&&typeof e=="object"||typeof e=="function")for(let r of C(e))!I.call(o,r)&&r!==t&&m(o,r,{get:()=>e[r],enumerable:!(n=y(e,r))||n.enumerable});return o};var A=o=>v(m({},"__esModule",{value:!0}),o);var M={};T(M,{avroToJsonSchema:()=>a.avroToJsonSchema,buildMenuItems:()=>l.buildMenuItems,findFirstBinding:()=>g.findFirstBinding,generateAst:()=>u.generateAst,generateChannelLink:()=>p.generateChannelLink,generateMessageReferencesHeader:()=>f.generateMessageReferencesHeader,getSchema:()=>x.getSchema,isEqual:()=>i.isEqual,mapChannelToOperations:()=>h.mapChannelToOperations,modifyPayload:()=>d.modifyPayload,navToApiItems:()=>c.navToApiItems,tryDecodeURIComponent:()=>s.tryDecodeURIComponent});module.exports=A(M);var a=require("./avro-to-json-schema"),p=require("./generate-channel-link"),f=require("./generate-message-references-header"),x=require("./get-schema"),i=require("./is-equal"),s=require("./try-decode-url-component"),d=require("./modify-payload"),g=require("./find-first-binding"),l=require("./build-menu-items"),c=require("./nav-to-api-items"),h=require("./map-channel-to-operations"),u=require("./generate-ast");0&&(module.exports={avroToJsonSchema,buildMenuItems,findFirstBinding,generateAst,generateChannelLink,generateMessageReferencesHeader,getSchema,isEqual,mapChannelToOperations,modifyPayload,navToApiItems,tryDecodeURIComponent});
|
package/lib/utils/is-equal.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
var s=Object.defineProperty;var o=Object.getOwnPropertyDescriptor;var u=Object.getOwnPropertyNames;var y=Object.prototype.hasOwnProperty;var c=(r,e)=>{for(var n in e)s(r,n,{get:e[n],enumerable:!0})},h=(r,e,n,f)=>{if(e&&typeof e=="object"||typeof e=="function")for(let t of u(e))!y.call(r,t)&&t!==n&&s(r,t,{get:()=>e[t],enumerable:!(f=o(e,t))||f.enumerable});return r};var g=r=>h(s({},"__esModule",{value:!0}),r);var p={};c(p,{isEqual:()=>i});module.exports=g(p);function i(r,e){if(r===e)return!0;if(r&&e&&typeof r=="object"&&typeof e=="object"){if(Array.isArray(r)&&Array.isArray(e)){if(r.length!==e.length)return!1;for(let t=0;t<r.length;t++)if(!i(r[t],e[t]))return!1;return!0}const n=Object.keys(r),f=Object.keys(e);if(n.length!==f.length)return!1;for(let t=0;t<n.length;t++){const l=n[t];if(!Object.prototype.hasOwnProperty.call(e,l)||!i(r[l],e[l]))return!1}return!0}return r!==r&&e!==e}0&&(module.exports={isEqual});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
var i=Object.defineProperty;var h=Object.getOwnPropertyDescriptor;var f=Object.getOwnPropertyNames;var u=Object.prototype.hasOwnProperty;var p=(e,n)=>{for(var s in n)i(e,s,{get:n[s],enumerable:!0})},I=(e,n,s,r)=>{if(n&&typeof n=="object"||typeof n=="function")for(let o of f(n))!u.call(e,o)&&o!==s&&i(e,o,{get:()=>n[o],enumerable:!(r=h(n,o))||r.enumerable});return e};var O=e=>I(i({},"__esModule",{value:!0}),e);var j={};p(j,{mapChannelToOperations:()=>b});module.exports=O(j);function b(e){const n=e.operations||{},s=e.channels||{},r=Object.keys(s),o={},a={};for(const[t,c]of Object.entries(s))c.address&&(o[c.address]=t);for(const[t,{channel:c}]of Object.entries(n)){if(!c?.address)continue;const d=o[c.address];!d||!r.includes(d)||(a[d]||(a[d]=[]),a[d].push(t))}const l=r.filter(t=>!a[t]);for(const t of l)a[t]=[];return a}0&&(module.exports={mapChannelToOperations});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
var c=Object.defineProperty;var u=Object.getOwnPropertyDescriptor;var m=Object.getOwnPropertyNames;var b=Object.prototype.hasOwnProperty;var g=(o,n)=>{for(var t in n)c(o,t,{get:n[t],enumerable:!0})},h=(o,n,t,i)=>{if(n&&typeof n=="object"||typeof n=="function")for(let e of m(n))!b.call(o,e)&&e!==t&&c(o,e,{get:()=>n[e],enumerable:!(i=u(n,e))||i.enumerable});return o};var A=o=>h(c({},"__esModule",{value:!0}),o);var J={};g(J,{modifyPayload:()=>j});module.exports=A(J);const j=(o,n)=>{if(!o||typeof o!="object")return null;try{return x(o,n.pointer,n.index)}catch(t){return console.error("Error modifying payload:",t),o}},x=(o,n,t)=>{const i=n.replace("#/x-root/","").split("/");if(i.length===0)return o;const e=JSON.parse(JSON.stringify(o));let r=e;for(const f of i){if(f in r){r=r[f];continue}const a=["allOf","anyOf","oneOf"];for(const l of a){const p=r[l];if(Array.isArray(p)){for(const s of p)if(s&&typeof s=="object"&&f in s){r=s[f];break}}}}const O=r&&typeof r=="object"&&"oneOf"in r&&Array.isArray(r.oneOf),y=t>=0&&t<r.oneOf.length;return O&&y&&(r.oneOf=[r.oneOf[t]]),e};0&&(module.exports={modifyPayload});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
var r=Object.defineProperty;var n=Object.getOwnPropertyDescriptor;var s=Object.getOwnPropertyNames;var u=Object.prototype.hasOwnProperty;var c=(t,i)=>{for(var o in i)r(t,o,{get:i[o],enumerable:!0})},k=(t,i,o,a)=>{if(i&&typeof i=="object"||typeof i=="function")for(let l of s(i))!u.call(t,l)&&l!==o&&r(t,l,{get:()=>i[l],enumerable:!(a=n(i,l))||a.enumerable});return t};var f=t=>k(r({},"__esModule",{value:!0}),t);var y={};c(y,{navToApiItems:()=>b});module.exports=f(y);var d=require("@redocly/openapi-docs/lib/utils/path.js");function b(t){return t.filter(i=>i.type!=="separator").map(i=>{var o,a,l;return i.type==="link"?p(i):{id:((o=i.apiItemData)===null||o===void 0?void 0:o.id)||"",label:i.label,link:i.link,dataSectionId:(0,d.normalizePath)(i.link||""),isGroup:!0,type:((a=i.apiItemData)===null||a===void 0?void 0:a.type)||"tag",ast:i.ast,items:((l=i.items)===null||l===void 0?void 0:l.map(e=>p(e)))||[]}})}function p(t){var i;const{id:o,type:a}=t.apiItemData;return{id:o,label:t.label,link:t.link,dataSectionId:(0,d.normalizePath)(t.link||""),type:a,action:t.action,items:((i=t.items)===null||i===void 0?void 0:i.map(l=>p(l)))||[],ast:t.ast}}0&&(module.exports={navToApiItems});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
var c=Object.defineProperty;var d=Object.getOwnPropertyDescriptor;var i=Object.getOwnPropertyNames;var p=Object.prototype.hasOwnProperty;var u=(e,o)=>{for(var r in o)c(e,r,{get:o[r],enumerable:!0})},a=(e,o,r,t)=>{if(o&&typeof o=="object"||typeof o=="function")for(let n of i(o))!p.call(e,n)&&n!==r&&c(e,n,{get:()=>o[n],enumerable:!(t=d(o,n))||t.enumerable});return e};var f=e=>a(c({},"__esModule",{value:!0}),e);var m={};u(m,{tryDecodeURIComponent:()=>l});module.exports=f(m);function l(e){try{return decodeURIComponent(e)}catch(o){return console.error(`Decoding failed: ${e}`,o),e}}0&&(module.exports={tryDecodeURIComponent});
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@redocly/asyncapi-docs",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.5.0-custom.4",
|
|
4
4
|
"description": "Async API docs for Redocly Realm",
|
|
5
5
|
"main": "lib/index.js",
|
|
6
6
|
"module": "lib/index.js",
|
|
@@ -39,9 +39,9 @@
|
|
|
39
39
|
"react-router-dom": "^6.21.1",
|
|
40
40
|
"styled-components": "5.3.11",
|
|
41
41
|
"web-vitals": "3.3.1",
|
|
42
|
-
"@redocly/
|
|
43
|
-
"@redocly/
|
|
44
|
-
"@redocly/
|
|
42
|
+
"@redocly/theme": "0.60.0-custom.2",
|
|
43
|
+
"@redocly/config": "0.38.0-custom.0",
|
|
44
|
+
"@redocly/openapi-docs": "3.16.0-custom.3"
|
|
45
45
|
},
|
|
46
46
|
"peerDependencies": {
|
|
47
47
|
"react": "^19.1.0"
|