@redocly/asyncapi-docs 0.4.0-rc.1 → 0.4.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (139) hide show
  1. package/lib/src/RedoclyAsyncAPIDocs.js +1 -1
  2. package/lib/src/RedoclyAsyncAPIDocs.js.map +1 -1
  3. package/lib/src/components/AsyncApiDocs.d.ts +2 -3
  4. package/lib/src/components/AsyncApiDocs.js +1 -1
  5. package/lib/src/components/AsyncApiDocs.js.map +1 -1
  6. package/lib/src/components/Breadcrumbs.d.ts +2 -2
  7. package/lib/src/components/Breadcrumbs.js +2 -1
  8. package/lib/src/components/Breadcrumbs.js.map +1 -1
  9. package/lib/src/components/ChannelLinkItem.d.ts +7 -0
  10. package/lib/src/components/ChannelLinkItem.js +21 -0
  11. package/lib/src/components/ChannelLinkItem.js.map +1 -0
  12. package/lib/src/components/ChannelParameters.js +2 -2
  13. package/lib/src/components/ChannelParameters.js.map +1 -1
  14. package/lib/src/components/ChannelSection.d.ts +2 -3
  15. package/lib/src/components/ChannelSection.js +5 -5
  16. package/lib/src/components/ChannelSection.js.map +1 -1
  17. package/lib/src/components/ItemsNavigation.d.ts +2 -3
  18. package/lib/src/components/ItemsNavigation.js +5 -5
  19. package/lib/src/components/ItemsNavigation.js.map +1 -1
  20. package/lib/src/components/JsonSchema.d.ts +3 -2
  21. package/lib/src/components/JsonSchema.js +1 -1
  22. package/lib/src/components/JsonSchema.js.map +1 -1
  23. package/lib/src/components/Message.d.ts +3 -1
  24. package/lib/src/components/Message.js +3 -3
  25. package/lib/src/components/Message.js.map +1 -1
  26. package/lib/src/components/MessageAMQPReferences.d.ts +6 -0
  27. package/lib/src/components/MessageAMQPReferences.js +25 -0
  28. package/lib/src/components/MessageAMQPReferences.js.map +1 -0
  29. package/lib/src/components/MessageReferences.d.ts +5 -0
  30. package/lib/src/components/MessageReferences.js +1 -0
  31. package/lib/src/components/MessageReferences.js.map +1 -0
  32. package/lib/src/components/MessageSection.js +6 -6
  33. package/lib/src/components/MessageSection.js.map +1 -1
  34. package/lib/src/components/Operation.d.ts +2 -3
  35. package/lib/src/components/Operation.js +10 -10
  36. package/lib/src/components/Operation.js.map +1 -1
  37. package/lib/src/components/OperationBinding.js +1 -1
  38. package/lib/src/components/OperationBinding.js.map +1 -1
  39. package/lib/src/components/OperationSection.d.ts +2 -3
  40. package/lib/src/components/OperationSection.js +4 -4
  41. package/lib/src/components/OperationSection.js.map +1 -1
  42. package/lib/src/components/TagBlock.d.ts +2 -3
  43. package/lib/src/components/TagBlock.js +6 -6
  44. package/lib/src/components/TagBlock.js.map +1 -1
  45. package/lib/src/components/common/ListIcon.d.ts +8 -0
  46. package/lib/src/components/common/ListIcon.js +10 -0
  47. package/lib/src/components/common/ListIcon.js.map +1 -0
  48. package/lib/src/hooks/use-auto-scroll.js +1 -1
  49. package/lib/src/hooks/use-auto-scroll.js.map +1 -1
  50. package/lib/src/jotai/Provider.d.ts +2 -1
  51. package/lib/src/jotai/Provider.js +1 -1
  52. package/lib/src/jotai/Provider.js.map +1 -1
  53. package/lib/src/jotai/app.d.ts +3 -1
  54. package/lib/src/jotai/app.js +1 -1
  55. package/lib/src/jotai/app.js.map +1 -1
  56. package/lib/src/types/async-api.d.ts +7 -0
  57. package/lib/src/utils/generate-channel-link.d.ts +2 -0
  58. package/lib/src/utils/generate-channel-link.js +1 -0
  59. package/lib/src/utils/generate-channel-link.js.map +1 -0
  60. package/lib/src/utils/generate-message-references-header.d.ts +7 -0
  61. package/lib/src/utils/generate-message-references-header.js +1 -0
  62. package/lib/src/utils/generate-message-references-header.js.map +1 -0
  63. package/lib/src/utils/index.d.ts +3 -0
  64. package/lib/src/utils/index.js +1 -1
  65. package/lib/src/utils/index.js.map +1 -1
  66. package/lib/src/utils/modify-payload.d.ts +9 -0
  67. package/lib/src/utils/modify-payload.js +1 -0
  68. package/lib/src/utils/modify-payload.js.map +1 -0
  69. package/lib/tsconfig.build.tsbuildinfo +1 -1
  70. package/lib-esm/src/RedoclyAsyncAPIDocs.js +1 -1
  71. package/lib-esm/src/RedoclyAsyncAPIDocs.js.map +1 -1
  72. package/lib-esm/src/components/AsyncApiDocs.d.ts +2 -3
  73. package/lib-esm/src/components/AsyncApiDocs.js +2 -2
  74. package/lib-esm/src/components/AsyncApiDocs.js.map +1 -1
  75. package/lib-esm/src/components/Breadcrumbs.d.ts +2 -2
  76. package/lib-esm/src/components/Breadcrumbs.js +3 -2
  77. package/lib-esm/src/components/Breadcrumbs.js.map +1 -1
  78. package/lib-esm/src/components/ChannelLinkItem.d.ts +7 -0
  79. package/lib-esm/src/components/ChannelLinkItem.js +21 -0
  80. package/lib-esm/src/components/ChannelLinkItem.js.map +1 -0
  81. package/lib-esm/src/components/ChannelParameters.js +3 -3
  82. package/lib-esm/src/components/ChannelParameters.js.map +1 -1
  83. package/lib-esm/src/components/ChannelSection.d.ts +2 -3
  84. package/lib-esm/src/components/ChannelSection.js +6 -6
  85. package/lib-esm/src/components/ChannelSection.js.map +1 -1
  86. package/lib-esm/src/components/ItemsNavigation.d.ts +2 -3
  87. package/lib-esm/src/components/ItemsNavigation.js +6 -6
  88. package/lib-esm/src/components/ItemsNavigation.js.map +1 -1
  89. package/lib-esm/src/components/JsonSchema.d.ts +3 -2
  90. package/lib-esm/src/components/JsonSchema.js +1 -1
  91. package/lib-esm/src/components/JsonSchema.js.map +1 -1
  92. package/lib-esm/src/components/Message.d.ts +3 -1
  93. package/lib-esm/src/components/Message.js +4 -4
  94. package/lib-esm/src/components/Message.js.map +1 -1
  95. package/lib-esm/src/components/MessageAMQPReferences.d.ts +6 -0
  96. package/lib-esm/src/components/MessageAMQPReferences.js +25 -0
  97. package/lib-esm/src/components/MessageAMQPReferences.js.map +1 -0
  98. package/lib-esm/src/components/MessageReferences.d.ts +5 -0
  99. package/lib-esm/src/components/MessageReferences.js +1 -0
  100. package/lib-esm/src/components/MessageReferences.js.map +1 -0
  101. package/lib-esm/src/components/MessageSection.js +7 -7
  102. package/lib-esm/src/components/MessageSection.js.map +1 -1
  103. package/lib-esm/src/components/Operation.d.ts +2 -3
  104. package/lib-esm/src/components/Operation.js +10 -10
  105. package/lib-esm/src/components/Operation.js.map +1 -1
  106. package/lib-esm/src/components/OperationBinding.js +1 -1
  107. package/lib-esm/src/components/OperationBinding.js.map +1 -1
  108. package/lib-esm/src/components/OperationSection.d.ts +2 -3
  109. package/lib-esm/src/components/OperationSection.js +3 -3
  110. package/lib-esm/src/components/OperationSection.js.map +1 -1
  111. package/lib-esm/src/components/TagBlock.d.ts +2 -3
  112. package/lib-esm/src/components/TagBlock.js +7 -7
  113. package/lib-esm/src/components/TagBlock.js.map +1 -1
  114. package/lib-esm/src/components/common/ListIcon.d.ts +8 -0
  115. package/lib-esm/src/components/common/ListIcon.js +10 -0
  116. package/lib-esm/src/components/common/ListIcon.js.map +1 -0
  117. package/lib-esm/src/hooks/use-auto-scroll.js +1 -1
  118. package/lib-esm/src/hooks/use-auto-scroll.js.map +1 -1
  119. package/lib-esm/src/jotai/Provider.d.ts +2 -1
  120. package/lib-esm/src/jotai/Provider.js +1 -1
  121. package/lib-esm/src/jotai/Provider.js.map +1 -1
  122. package/lib-esm/src/jotai/app.d.ts +3 -1
  123. package/lib-esm/src/jotai/app.js +1 -1
  124. package/lib-esm/src/jotai/app.js.map +1 -1
  125. package/lib-esm/src/types/async-api.d.ts +7 -0
  126. package/lib-esm/src/utils/generate-channel-link.d.ts +2 -0
  127. package/lib-esm/src/utils/generate-channel-link.js +1 -0
  128. package/lib-esm/src/utils/generate-channel-link.js.map +1 -0
  129. package/lib-esm/src/utils/generate-message-references-header.d.ts +7 -0
  130. package/lib-esm/src/utils/generate-message-references-header.js +1 -0
  131. package/lib-esm/src/utils/generate-message-references-header.js.map +1 -0
  132. package/lib-esm/src/utils/index.d.ts +3 -0
  133. package/lib-esm/src/utils/index.js +1 -1
  134. package/lib-esm/src/utils/index.js.map +1 -1
  135. package/lib-esm/src/utils/modify-payload.d.ts +9 -0
  136. package/lib-esm/src/utils/modify-payload.js +1 -0
  137. package/lib-esm/src/utils/modify-payload.js.map +1 -0
  138. package/lib-esm/tsconfig.esm.tsbuildinfo +1 -1
  139. package/package.json +5 -4
@@ -1,12 +1,11 @@
1
1
  import React from 'react';
2
- import type { AsyncApiOperation, AsyncApiDefinition } from '../types';
2
+ import type { AsyncApiOperation } from '../types';
3
3
  type OperationProps = {
4
4
  operation?: AsyncApiOperation;
5
5
  dataSectionId: string;
6
- definition?: AsyncApiDefinition;
7
6
  headerRow?: React.ReactNode;
8
7
  id?: string;
9
8
  showDivider?: boolean;
10
9
  };
11
- export declare const Operation: React.MemoExoticComponent<({ operation, dataSectionId, definition, headerRow, id, showDivider }: OperationProps) => import("react/jsx-runtime").JSX.Element | null>;
10
+ export declare const Operation: React.MemoExoticComponent<({ operation, dataSectionId, headerRow, id, showDivider }: OperationProps) => import("react/jsx-runtime").JSX.Element | null>;
12
11
  export {};
@@ -1,7 +1,7 @@
1
- var N=Object.create;var g=Object.defineProperty;var V=Object.getOwnPropertyDescriptor;var q=Object.getOwnPropertyNames;var K=Object.getPrototypeOf,U=Object.prototype.hasOwnProperty;var G=(e,n)=>{for(var i in n)g(e,i,{get:n[i],enumerable:!0})},M=(e,n,i,p)=>{if(n&&typeof n=="object"||typeof n=="function")for(let c of q(n))!U.call(e,c)&&c!==i&&g(e,c,{get:()=>n[c],enumerable:!(p=V(n,c))||p.enumerable});return e};var L=(e,n,i)=>(i=e!=null?N(K(e)):{},M(n||!e||!e.__esModule?g(i,"default",{value:e,enumerable:!0}):i,e)),J=e=>M(g({},"__esModule",{value:!0}),e);var le={};G(le,{Operation:()=>Q});module.exports=J(le);var s=require("react/jsx-runtime"),t=L(require("styled-components")),j=require("jotai"),a=require("@redocly/openapi-docs"),o=require("@redocly/theme"),m=L(require("react")),z=require("react-router-dom"),d=require("./common"),B=require("./OperationBinding"),v=require("../jotai/app"),h=require("../hooks"),C=require("../utils");const Q=m.default.memo(({operation:e,dataSectionId:n,definition:i,headerRow:p,id:c,showDivider:D})=>{var u,f,y,b;const O=(0,j.useAtomValue)(v.layoutAtom),x=(0,j.useAtomValue)(v.routingBasePathAtom),P=O===o.LayoutVariant.STACKED,{getProtocolLabel:H}=(0,h.useProtocolLabels)(),S=(0,h.useTelemetry)(),$=(0,m.useMemo)(()=>Object.entries(e?.bindings||{}).map(([l,r])=>({key:l,value:r})),[e?.bindings]),R=(0,m.useMemo)(()=>{var l;return(l=e?.["x-badges"])===null||l===void 0?void 0:l.map(r=>Object.assign(Object.assign({},r),{position:r.position||"after"}))},[e]),A=(0,z.useNavigate)(),W=(0,m.useCallback)(l=>{var r,k;const w=(k=Object.entries(((r=i?.components)===null||r===void 0?void 0:r.messages)||{}).find(([ae,F])=>(0,C.isEqual)(F,l)))===null||k===void 0?void 0:k[0];if(!w||!n)return;const I=n.replace(`/${x}/`,"").split("/operations")[0],E=`/${x}${(0,a.makeDeepLink)(I,`messages&m=${w}`)}`;S.send({type:"asyncapi_docs.message.clicked",payload:{message:w}}),A(E)},[n,(u=i?.components)===null||u===void 0?void 0:u.messages,A,x,S]);return e?(0,s.jsx)(s.Fragment,{children:(0,s.jsxs)(X,{sectionId:n,"data-component-name":"Operation/Operation",hasHeader:!!p,children:[p,(0,s.jsxs)(a.Row,{layout:O,children:[(0,s.jsxs)(ne,{isStacked:P,children:[(0,s.jsxs)("div",{children:[(0,s.jsx)(d.ActionTag,{color:e.action,children:H(e.action)}),(0,s.jsxs)(T,{children:[(0,s.jsx)(a.CustomBadges,{badges:R,children:e.title||c}),(0,s.jsx)(d.ShareLink,{to:`${n}`,"aria-label":`link to ${e.title||c}`})]}),(0,s.jsx)(d.Information,{summary:e.summary,description:e.description,externalDocs:e.externalDocs}),((f=e.messages)===null||f===void 0?void 0:f.length)&&(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(Y,{children:"Messages"}),(0,s.jsx)(Z,{children:(y=e.messages)===null||y===void 0?void 0:y.map((l,r)=>(0,s.jsxs)(ie,{icon:null,onClick:()=>W(l),children:[l.title||l.name,(0,s.jsx)(o.ArrowUpRightIcon,{size:"12px"})]},r))})]}),e.reply&&(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(T,{children:"Reply"}),(0,s.jsxs)(ee,{children:[e.reply.address&&(0,s.jsxs)(_,{children:[(0,s.jsx)("span",{children:"Address: "}),(0,s.jsx)("span",{children:e.reply.address.location})]}),e.reply.channel&&(0,s.jsxs)(_,{children:[(0,s.jsx)("span",{children:"Topic: "}),(0,s.jsx)("span",{children:e.reply.channel.address})]}),!!(!((b=e.reply.messages)===null||b===void 0)&&b.length)&&(0,s.jsxs)(_,{children:[(0,s.jsx)("span",{children:"Messages: "}),(0,s.jsx)("span",{children:e.reply.messages.map(l=>l.title||l.name).join(", ")})]})]})]})]}),D&&(0,s.jsx)(se,{})]}),(0,s.jsx)(a.OperationSamplesPanel,{isStacked:P,className:"panel-container-response-samples",children:!!$.length&&(0,s.jsx)(B.OperationBinding,{binding:$[0],id:n})})]})]})}):null}),X=(0,t.default)(a.Section)`
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/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
- `,T=(0,t.default)(o.H4)`
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 @@ var N=Object.create;var g=Object.defineProperty;var V=Object.getOwnPropertyDescr
12
12
  gap: var(--spacing-xs);
13
13
  flex-wrap: wrap;
14
14
  :hover {
15
- ${o.LinkIcon} {
15
+ ${l.LinkIcon} {
16
16
  opacity: 1;
17
17
  visibility: visible;
18
18
  }
19
19
  }
20
- `,Y=(0,t.default)(o.H4)`
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
- `,Z=t.default.div`
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
- `,ee=t.default.div`
30
+ `,ee=o.default.div`
31
31
  display: flex;
32
32
  flex-direction: column;
33
33
  padding: var(--spacing-xs) 0;
34
- `,_=(0,t.default)(o.H4)`
34
+ `,O=(0,o.default)(l.H4)`
35
35
  & > span:first-child {
36
36
  font-weight: var(--font-weight-medium);
37
37
  }
38
- `,se=t.default.div`
38
+ `,ie=o.default.div`
39
39
  border-bottom: 1px solid var(--border-color-secondary);
40
- `,ne=(0,t.default)(a.SamplesMiddlePanel)`
40
+ `,se=(0,o.default)(a.SamplesMiddlePanel)`
41
41
  display: flex;
42
42
  justify-content: space-between;
43
- `,ie=(0,t.default)(d.TagWithIcon)`
43
+ `,ne=(0,o.default)(c.TagWithIcon)`
44
44
  cursor: pointer;
45
45
  `;0&&(module.exports={Operation});
@@ -1 +1 @@
1
- {"version":3,"file":"Operation.js","sourceRoot":"","sources":["../../../src/components/Operation.tsx"],"names":[],"mappings":";AAAA,OAAO,MAAM,MAAM,mBAAmB,CAAC;AACvC,OAAO,EAAE,YAAY,EAAE,MAAM,OAAO,CAAC;AACrC,OAAO,EACL,GAAG,EACH,kBAAkB,EAClB,qBAAqB,EACrB,OAAO,EACP,YAAY,EACZ,YAAY,GACb,MAAM,uBAAuB,CAAC;AAC/B,OAAO,EAAE,aAAa,EAAE,EAAE,EAAE,gBAAgB,EAAE,QAAQ,EAAE,MAAM,gBAAgB,CAAC;AAC/E,OAAO,KAAK,EAAE,EAAE,OAAO,EAAE,WAAW,EAAE,MAAM,OAAO,CAAC;AACpD,OAAO,EAAE,WAAW,EAAE,MAAM,kBAAkB,CAA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,OAAO,GAAG,MAAM,CAAC,GAAG,CAAA;;CAEzB,CAAC;AAEF,MAAM,wBAAwB,GAAG,MAAM,CAAC,kBAAkB,CAAC,CAAA;;;CAG1D,CAAC;AAEF,MAAM,iBAAiB,GAAG,MAAM,CAAC,WAAW,CAAC,CAAA;;CAE5C,CAAC"}
@@ -1 +1 @@
1
- var s=Object.defineProperty;var O=Object.getOwnPropertyDescriptor;var j=Object.getOwnPropertyNames;var I=Object.prototype.hasOwnProperty;var x=(e,r)=>{for(var n in r)s(e,n,{get:r[n],enumerable:!0})},_=(e,r,n,t)=>{if(r&&typeof r=="object"||typeof r=="function")for(let o of j(r))!I.call(e,o)&&o!==n&&s(e,o,{get:()=>r[o],enumerable:!(t=O(r,o))||t.enumerable});return e};var P=e=>_(s({},"__esModule",{value:!0}),e);var V={};x(V,{OperationBinding:()=>w});module.exports=P(V);var i=require("react/jsx-runtime"),m=require("@redocly/theme"),d=require("jotai"),l=require("@redocly/openapi-docs"),f=require("./common"),p=require("./JsonSchema"),c=require("../utils"),g=require("../jotai/app"),B=function(e,r){var n={};for(var t in e)Object.prototype.hasOwnProperty.call(e,t)&&r.indexOf(t)<0&&(n[t]=e[t]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,t=Object.getOwnPropertySymbols(e);o<t.length;o++)r.indexOf(t[o])<0&&Object.prototype.propertyIsEnumerable.call(e,t[o])&&(n[t[o]]=e[t[o]]);return n};const w=({binding:e,id:r})=>{const n=(0,d.useAtomValue)(g.routingBasePathAtom),t=r?.replace(`/${n}/`,""),o=`/${n}${(0,l.makeDeepLink)(t,"")}`;return(0,i.jsx)(f.BindingPanel,{header:"Operation configuration",children:(({key:u,value:a})=>{const{bindingVersion:S}=a,h=B(a,["bindingVersion"]);switch(u){case"kafka":const b={type:"object",properties:{groupId:(0,c.getSchema)(a.groupId)}},y={type:"object",properties:{clientId:(0,c.getSchema)(a.clientId)}};return(0,i.jsxs)(i.Fragment,{children:[a.groupId&&(0,i.jsx)(p.JsonSchema,{schema:b,slug:o}),a.clientId&&(0,i.jsx)(p.JsonSchema,{schema:y,slug:o})]});default:return(0,i.jsx)(m.JsonViewer,{data:h,expandLevel:3,hideHeader:!0})}})(e)})};0&&(module.exports={OperationBinding});
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/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 +1 @@
1
- {"version":3,"file":"OperationBinding.js","sourceRoot":"","sources":["../../../src/components/OperationBinding.tsx"],"names":[],"mappings":";;;;;;;;;;;;AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,gBAAgB,CAAC;AAC5C,OAAO,EAAE,YAAY,EAAE,MAAM,OAAO,CAAC;AACrC,OAAO,EAAE,YAAY,EAAE,MAAM,uBAAuB,CAAC;AAIrD,OAAO,EAAE,YAAY,EAAE,MAAM,UAAU,CAAC;AACxC,OAAO,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC;AAC1C,OAAO,EAAE,SAAS,EAAE,MAAM,UAAU,CAAC;AACrC,OAAO,EAAE,mBAAmB,EAAE,MAAM,cAAc,CAAC;AAUnD,MAAM,CAAC,MAAM,gBAAgB,GAAG,CAAC,EAAE,OAAO,EAAE,EAAE,EAAyB,EAAE,EAAE;IACzE,MAAM,eAAe,GAAG,YAAY,CAAC,mBAAmB,CAAC,CAAC;IAC1D,MAAM,aAAa,GAAG,EAAE,aAAF,EAAE,uBAAF,EAAE,CAAE,OAAO,CAAC,IAAI,eAAe,GAAG,EAAE,EAAE,CAAC,CAAC;IAC9D,MAAM,IAAI,GAAG,IAAI,eAAe,GAAG,YAAY,CAAC,aAAa,EAAE,EAAE,CAAC,EAAE,CAAC;IAErE,MAAM,aAAa,GAAG,CAAC,EAAE,GAAG,EAAE,KAAK,EAAyD,EAAE,EAAE;QAC9F,MAAM,EAAE,cAAc,EAAE,CAAC,KAAuB,KAAK,EAAvB,aAAa,UAAK,KAAK,EAA/C,kBAAuC,CAAQ,CAAC;QAEtD,QAAQ,GAAG,EAAE,CAAC;YACZ,KAAK,OAAO;gBACV,MAAM,OAAO,GAAG;oBACd,IAAI,EAAE,QAAQ;oBACd,UAAU,EAAE;wBACV,OAAO,EAAE,SAAS,CAAC,KAAK,CAAC,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OperationSectionProps = {
4
4
  operations: ApiItem[];
5
- definition: AsyncApiDefinition;
6
5
  type: 'send' | 'receive';
7
6
  id: string;
8
7
  };
9
- export declare const OperationSection: React.MemoExoticComponent<({ operations, definition, type, id }: OperationSectionProps) => import("react/jsx-runtime").JSX.Element>;
8
+ export declare const OperationSection: React.MemoExoticComponent<({ operations, type, id }: OperationSectionProps) => import("react/jsx-runtime").JSX.Element>;
10
9
  export {};
@@ -1,17 +1,17 @@
1
- var $=Object.create;var s=Object.defineProperty;var j=Object.getOwnPropertyDescriptor;var A=Object.getOwnPropertyNames;var D=Object.getPrototypeOf,O=Object.prototype.hasOwnProperty;var R=(o,t)=>{for(var i in t)s(o,i,{get:t[i],enumerable:!0})},v=(o,t,i,m)=>{if(t&&typeof t=="object"||typeof t=="function")for(let a of A(t))!O.call(o,a)&&a!==i&&s(o,a,{get:()=>t[a],enumerable:!(m=j(t,a))||m.enumerable});return o};var S=(o,t,i)=>(i=o!=null?$(D(o)):{},v(t||!o||!o.__esModule?s(i,"default",{value:o,enumerable:!0}):i,o)),I=o=>v(s({},"__esModule",{value:!0}),o);var T={};R(T,{OperationSection:()=>_});module.exports=I(T);var e=require("react/jsx-runtime"),p=S(require("styled-components")),r=require("@redocly/theme"),n=require("@redocly/openapi-docs"),u=require("jotai"),b=S(require("react")),k=require("./Operation"),L=require("../hooks"),c=require("../jotai/app"),w=require("./common");const _=b.default.memo(({operations:o,definition:t,type:i,id:m})=>{const{getProtocolLabel:a}=(0,L.useProtocolLabels)(),h=(0,u.useAtomValue)(c.layoutAtom),x=(0,u.useAtomValue)(c.routingBasePathAtom),y=h===r.LayoutVariant.STACKED,P=o.length?(0,e.jsx)(n.Row,{layout:h,children:(0,e.jsx)(n.SamplesMiddlePanel,{isStacked:y,children:(0,e.jsxs)(H,{children:[(0,e.jsx)(w.LinkToField,{to:`/${x}${(0,n.makeDeepLink)(m,i)}`}),a(`${i}Label`)]})})}):null;return(0,e.jsx)(B,{"data-component-name":"OperationSection/OperationSection",children:o.map((l,f)=>{var d;const g=(d=t.operations)===null||d===void 0?void 0:d[l.id];return g?(0,e.jsx)(k.Operation,{operation:g,dataSectionId:l.dataSectionId,definition:t,headerRow:f===0?P:null,id:l.id,showDivider:f!==o.length-1},l.id):null})})}),B=p.default.div`
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/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
- `,H=(0,p.default)(r.H4)`
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
- ${r.LinkIcon} {
8
+ ${e.LinkIcon} {
9
9
  opacity: 1;
10
10
  visibility: visible;
11
11
  }
12
12
  }
13
13
 
14
- @media screen and (max-width: ${r.breakpoints.large}) {
14
+ @media screen and (max-width: ${e.breakpoints.large}) {
15
15
  margin: 0;
16
16
  }
17
17
  `;0&&(module.exports={OperationSection});
@@ -1 +1 @@
1
- {"version":3,"file":"OperationSection.js","sourceRoot":"","sources":["../../../src/components/OperationSection.tsx"],"names":[],"mappings":";AAAA,OAAO,MAAM,MAAM,mBAAmB,CAAC;AACvC,OAAO,EAAE,WAAW,EAAE,EAAE,EAAE,aAAa,EAAE,QAAQ,EAAE,MAAM,gBAAgB,CAAC;AAC1E,OAAO,EAAE,GAAG,EAAE,kBAAkB,EAAE,YAAY,EAAE,MAAM,uBAAuB,CAAC;AAC9E,OAAO,EAAE,YAAY,EAAE,MAAM,OAAO,CAAC;AACrC,OAAO,KAAK,MAAM,OAAO,CAAC;AAI1B,OAAO,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AACxC,OAAO,EAAE,iBAAiB,EAAE,MAAM,UAAU,CAAC;AAC7C,OAAO,EAAE,UAAU,EAAE,mBAAmB,EAAE,MAAM,cAAc,CAAC;AAC/D,OAAO,EAAE,WAAW,EAAE,MAAM,UAAU,CAAC;AASvC,MAAM,CAAC,MAAM,gBAAgB,GAAG,KAAK,CAAC,IAAI,CACxC,CAAC,EAAE,UAAU,EAAE,UAAU,EAAE,IAAI,EAAE,EAAE,EAAyB,EAAE,EAAE;IAC9D,MAAM,EAAE,gBAAgB,EAAE,GAAG,iBAAiB,EAAE,CA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../types';
3
3
  type TagBlockProps = {
4
4
  tag: ApiItemsGroup;
5
- definition: AsyncApiDefinition;
6
5
  };
7
- export declare const TagBlock: React.MemoExoticComponent<({ tag, definition }: TagBlockProps) => import("react/jsx-runtime").JSX.Element>;
6
+ export declare const TagBlock: React.MemoExoticComponent<({ tag }: TagBlockProps) => import("react/jsx-runtime").JSX.Element>;
8
7
  export {};
@@ -1,22 +1,22 @@
1
- var E=Object.create;var h=Object.defineProperty;var I=Object.getOwnPropertyDescriptor;var P=Object.getOwnPropertyNames;var W=Object.getPrototypeOf,M=Object.prototype.hasOwnProperty;var F=(n,o)=>{for(var t in o)h(n,t,{get:o[t],enumerable:!0})},y=(n,o,t,m)=>{if(o&&typeof o=="object"||typeof o=="function")for(let r of P(o))!M.call(n,r)&&r!==t&&h(n,r,{get:()=>o[r],enumerable:!(m=I(o,r))||m.enumerable});return n};var _=(n,o,t)=>(t=n!=null?E(W(n)):{},y(o||!n||!n.__esModule?h(t,"default",{value:n,enumerable:!0}):t,n)),H=n=>y(h({},"__esModule",{value:!0}),n);var K={};F(K,{TagBlock:()=>N});module.exports=H(K);var i=require("react/jsx-runtime"),v=_(require("styled-components")),S=require("jotai"),e=require("@redocly/openapi-docs"),a=require("@redocly/theme"),x=require("react-router-dom"),d=_(require("react")),b=require("../jotai/app"),k=require("./common"),B=require("./ItemsNavigation"),$=require("./ChannelSection");const N=d.default.memo(({tag:n,definition:o})=>{var t,m,r,g;const f=(0,S.useAtomValue)(b.layoutAtom),D=(0,S.useAtomValue)(b.routingBasePathAtom),C=(0,x.useLocation)(),w=(0,x.useNavigate)(),s=!!(!((t=n.items)===null||t===void 0)&&t.length),L=f===a.LayoutVariant.STACKED,c=(r=(m=o?.components)===null||m===void 0?void 0:m.tags)===null||r===void 0?void 0:r[n.label],j=(0,d.useMemo)(()=>{var l,u;return s?(u=(l=o?.channels)===null||l===void 0?void 0:l[n.items[0].id])===null||u===void 0?void 0:u.bindings:void 0},[s,o?.channels,n.items]),p=(0,d.useMemo)(()=>{if(!s)return!1;const l=C.pathname;return l.endsWith(n.link||"")||n.items.some(u=>u.link&&l.toLowerCase().includes(u.link.toLowerCase()))},[s,C.pathname,n.link,n.items]),A=(0,d.useCallback)(()=>{n.link&&w(n.link)},[w,n.link]);return(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(R,{expanded:s&&!p,sectionId:n.dataSectionId,children:(0,i.jsxs)(T,{expanded:p,children:[(0,i.jsxs)(e.Row,{layout:f,children:[(0,i.jsxs)(e.SamplesMiddlePanel,{fullWidth:!s,isStacked:L,children:[(0,i.jsxs)(z,{children:[n.label,(0,i.jsx)(k.ShareLink,{to:`/${D||""}/${n.link}`,"aria-label":`link to ${n.label}`})]}),c?.description&&(0,i.jsx)(e.Markdown,{source:c.description}),c?.externalDocs&&(0,i.jsx)(k.ExternalDocumentationWrapper,{children:(0,i.jsx)(e.ExternalDocumentation,{externalDocs:c.externalDocs})})]}),s&&n.items&&(0,i.jsx)(B.ItemsNavigation,{items:n.items,firstChannelBinding:j,definition:o})]}),s&&!p&&(0,i.jsx)(V,{type:"button",variant:"text",size:"medium",onClick:A,children:"+ Show"})]})}),p&&((g=n.items)===null||g===void 0?void 0:g.map(l=>(0,i.jsx)($.ChannelSection,{item:l,definition:o},l.link)))]})}),R=(0,v.default)(e.Section)`
1
+ var E=Object.create;var b=Object.defineProperty;var I=Object.getOwnPropertyDescriptor;var P=Object.getOwnPropertyNames;var W=Object.getPrototypeOf,M=Object.prototype.hasOwnProperty;var F=(n,o)=>{for(var e in o)b(n,e,{get:o[e],enumerable:!0})},_=(n,o,e,u)=>{if(o&&typeof o=="object"||typeof o=="function")for(let r of P(o))!M.call(n,r)&&r!==e&&b(n,r,{get:()=>o[r],enumerable:!(u=I(o,r))||u.enumerable});return n};var B=(n,o,e)=>(e=n!=null?E(W(n)):{},_(o||!n||!n.__esModule?b(e,"default",{value:n,enumerable:!0}):e,n)),H=n=>_(b({},"__esModule",{value:!0}),n);var K={};F(K,{TagBlock:()=>N});module.exports=H(K);var i=require("react/jsx-runtime"),h=B(require("styled-components")),f=require("jotai"),a=require("@redocly/openapi-docs"),t=require("@redocly/theme"),k=require("react-router-dom"),m=B(require("react")),p=require("../jotai/app"),g=require("./common"),D=require("./ItemsNavigation"),L=require("./ChannelSection");const N=m.default.memo(({tag:n})=>{var o,e,u,r;const S=(0,f.useAtomValue)(p.layoutAtom),C=(0,f.useAtomValue)(p.routingBasePathAtom),l=(0,f.useAtomValue)(p.definitionAtom),w=(0,k.useLocation)(),y=(0,k.useNavigate)(),d=!!(!((o=n.items)===null||o===void 0)&&o.length),A=S===t.LayoutVariant.STACKED,c=(u=(e=l?.components)===null||e===void 0?void 0:e.tags)===null||u===void 0?void 0:u[n.label],$=(0,m.useMemo)(()=>{var s,v;return d?(v=(s=l?.channels)===null||s===void 0?void 0:s[n.items[0].id])===null||v===void 0?void 0:v.bindings:void 0},[d,l?.channels,n.items]),x=(0,m.useMemo)(()=>{if(!d)return!1;const s=w.pathname;return s.endsWith(n.link||"")||n.items.some(v=>v.link&&s.toLowerCase().includes(v.link.toLowerCase()))},[d,w.pathname,n.link,n.items]),j=(0,m.useCallback)(()=>{n.link&&y(n.link)},[y,n.link]);return(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(R,{expanded:d&&!x,sectionId:(0,t.combineUrls)(C,n.dataSectionId),children:(0,i.jsxs)(T,{expanded:x,children:[(0,i.jsxs)(a.Row,{layout:S,children:[(0,i.jsxs)(a.SamplesMiddlePanel,{fullWidth:!d,isStacked:A,children:[(0,i.jsxs)(z,{children:[n.label,(0,i.jsx)(g.ShareLink,{to:(0,t.combineUrls)(C,n.link),"aria-label":`link to ${n.label}`})]}),c?.description&&(0,i.jsx)(a.Markdown,{source:c.description}),c?.externalDocs&&(0,i.jsx)(g.ExternalDocumentationWrapper,{children:(0,i.jsx)(a.ExternalDocumentation,{externalDocs:c.externalDocs})})]}),d&&n.items&&(0,i.jsx)(D.ItemsNavigation,{items:n.items,firstChannelBinding:$})]}),d&&!x&&(0,i.jsx)(V,{type:"button",variant:"text",size:"medium",onClick:j,children:"+ Show"})]})}),x&&((r=n.items)===null||r===void 0?void 0:r.map(s=>(0,i.jsx)(L.ChannelSection,{item:s},s.link)))]})}),R=(0,h.default)(a.Section)`
2
2
  scroll-margin-top: calc(var(--navbar-height)) !important;
3
- `,T=v.default.div`
3
+ `,T=h.default.div`
4
4
  padding-bottom: ${({expanded:n})=>n?"var(--spacing-xxl)":""};
5
5
  padding-bottom: ${({expanded:n})=>n?"var(--spacing-xxl)":""};
6
- `,V=(0,v.default)(a.Button)`
6
+ `,V=(0,h.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: ${a.breakpoints.medium}) {
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
- `,z=(0,v.default)(a.H2)`
17
+ `,z=(0,h.default)(t.H2)`
18
18
  :hover {
19
- ${a.LinkIcon} {
19
+ ${t.LinkIcon} {
20
20
  opacity: 1;
21
21
  visibility: visible;
22
22
  }
@@ -1 +1 @@
1
- {"version":3,"file":"TagBlock.js","sourceRoot":"","sources":["../../../src/components/TagBlock.tsx"],"names":[],"mappings":";AAAA,OAAO,MAAM,MAAM,mBAAmB,CAAC;AACvC,OAAO,EAAE,YAAY,EAAE,MAAM,OAAO,CAAC;AACrC,OAAO,EACL,GAAG,EACH,kBAAkB,EAClB,QAAQ,EACR,qBAAqB,EACrB,OAAO,GACR,MAAM,uBAAuB,CAAC;AAC/B,OAAO,EAAE,EAAE,EAAE,aAAa,EAAE,MAAM,EAAE,WAAW,EAAE,QAAQ,EAAE,MAAM,gBAAgB,CAAC;AAClF,OAAO,EAA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me/src/icons/types';
2
+ export declare const ListIcon: import("styled-components").StyledComponent<(props: IconProps) => import("react/jsx-runtime").JSX.Element, any, {
3
+ 'data-component-name': string;
4
+ } & {
5
+ color?: string;
6
+ size?: string;
7
+ className?: string;
8
+ } & import("react").SVGProps<SVGSVGElement>, "data-component-name">;
@@ -0,0 +1,10 @@
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
+ path,
3
+ circle {
4
+ fill: ${({color:i})=>(0,r.getCssColorVariable)(i)};
5
+ stroke: ${({color:i})=>(0,r.getCssColorVariable)(i)};
6
+ }
7
+
8
+ height: ${({size:i})=>i||"16px"};
9
+ width: ${({size:i})=>i||"16px"};
10
+ `;0&&(module.exports={ListIcon});
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ListIcon.js","sourceRoot":"","sources":["../../../../src/components/common/ListIcon.tsx"],"names":[],"mappings":";AAAA,OAAO,MAAM,MAAM,mBAAmB,CAAC;AACvC,OAAO,EAAE,mBAAmB,EAAE,MAAM,gBAAgB,CAAC;AAIrD,MAAM,IAAI,GAAG,CAAC,KAAgB,EAAE,EAAE,CAAC,CACjC,6BAAK,OAAO,EAAC,WAAW,EAAC,IAAI,EAAC,MAAM,EAAC,KAAK,EAAC,4BAA4B,IAAK,KAAK,eAC/E,aAAG,QAAQ,EAAC,yBAAyB,aACnC,eAAM,CAAC,EAAC,UAAU,EAAC,aAAa,EAAC,OAAO,GAAG,EAC3C,iBAAQ,EAAE,EAAC,GAAG,EAAC,EAAE,EAAC,IAAI,EAAC,CAAC,EAAC,GAAG,GAAG,IAC7B,EACJ,yBACE,mBAAU,EAAE,EAAC,mBAAmB,YAC9B,eAAM,KAAK,EAAC,IAAI,EAAC,MAAM,EAAC,IAAI,EAAC,IAAI,EAAC,OAAO,GAAG,GACnC,GACN,KACH,CACP,CAAC;AAEF,MAAM,CAAC,MAAM,QAAQ,GAAG,MAAM,CAAC,IAAI,CAAC,CAAC,KAAK,CAAC,GAAG,EAAE,CAAC,CAAC;IAChD,qBAAqB,EAAE,yBAAyB;CACjD,CAAC,CAAC,CAAW;;;YAGF,CAAC,EAAE,KAAK,EAAE,EAAE,EAAE,CAAC,mBAAmB,CAAC,KAAK,CAAC;cACvC,CAAC,EAAE,KAAK,EAAE,EAAE,EAAE,CAAC,mBAAmB,CAAC,KAAK,CAAC;;;YAG3C,CAAC,EAAE,IAAI,EAAE,EAAE,EAAE,CAAC,IAAI,IAAI,MAAM;WAC7B,CAAC,EAAE,IAAI,EAAE,EAAE,EAAE,CAAC,IAAI,IAAI,MAAM;CACtC,CAAC"}
@@ -1 +1 @@
1
- var c=Object.defineProperty;var m=Object.getOwnPropertyDescriptor;var u=Object.getOwnPropertyNames;var f=Object.prototype.hasOwnProperty;var p=(e,t)=>{for(var o in t)c(e,o,{get:t[o],enumerable:!0})},h=(e,t,o,i)=>{if(t&&typeof t=="object"||typeof t=="function")for(let n of u(t))!f.call(e,n)&&n!==o&&c(e,n,{get:()=>t[n],enumerable:!(i=m(t,n))||i.enumerable});return e};var w=e=>h(c({},"__esModule",{value:!0}),e);var T={};p(T,{useAutoScroll:()=>I});module.exports=w(T);var s=require("react"),l=require("react-router-dom"),r=require("@redocly/theme"),d=require("../utils");let a=!0;function I(e){const t=(0,l.useLocation)(),o=(0,r.useActiveSectionId)(t,!0);(0,s.useEffect)(()=>{S({location:t,routingBasePath:e})},[t,e]),(0,s.useEffect)(()=>{if(o&&a){a=!1;return}r.IS_BROWSER&&window.location.pathname!==o&&window.history.replaceState({},"",o)},[o,e])}function S({location:e,routingBasePath:t}){if(e.pathname===t&&e.hash===""){window.scrollTo(0,0);return}const o=e.pathname,i=y(e.hash),n=E(i)||document.querySelector(`[data-section-id="${o}"]`);n?setTimeout(()=>{n.scrollIntoView()},0):window.scrollTo(0,0)}function y(e){const t=e.replace("#","").toLowerCase();if(!t.includes("&m="))return t;const[o,i]=t.split("&m=");return i.includes("&")||i.includes("/")?t:o}function E(e){return document.getElementById((0,d.tryDecodeURIComponent)(e))}0&&(module.exports={useAutoScroll});
1
+ var s=Object.defineProperty;var m=Object.getOwnPropertyDescriptor;var u=Object.getOwnPropertyNames;var f=Object.prototype.hasOwnProperty;var p=(t,e)=>{for(var o in e)s(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&&s(t,n,{get:()=>e[n],enumerable:!(i=m(e,n))||i.enumerable});return t};var w=t=>h(s({},"__esModule",{value:!0}),t);var T={};p(T,{useAutoScroll:()=>I});module.exports=w(T);var a=require("react"),l=require("react-router-dom"),r=require("@redocly/theme"),d=require("../utils");let c=!0;function I(t){const e=(0,l.useLocation)(),o=(0,r.useActiveSectionId)(e,!0);(0,a.useEffect)(()=>{S({location:e,routingBasePath:t})},[e,t]),(0,a.useEffect)(()=>{if(o&&c){c=!1;return}r.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("#","").toLowerCase();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
- {"version":3,"file":"use-auto-scroll.js","sourceRoot":"","sources":["../../../src/hooks/use-auto-scroll.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAClC,OAAO,EAAE,WAAW,EAAE,MAAM,kBAAkB,CAAC;AAC/C,OAAO,EAAE,UAAU,EAAE,kBAAkB,EAAE,MAAM,gBAAgB,CAAC;AAIhE,OAAO,EAAE,qBAAqB,EAAE,MAAM,UAAU,CAAC;AAEjD,IAAI,eAAe,GAAG,IAAI,CAAC;AAE3B,MAAM,UAAU,aAAa,CAAC,eAAuB;IACnD,MAAM,QAAQ,GAAG,WAAW,EAAE,CAAC;IAC/B,MAAM,eAAe,GAAG,kBAAkB,CAAC,QAAQ,EAAE,IAAI,CAAC,CAAC;IAE3D,SAAS,CAAC,GAAG,EAAE;QACb,yBAAyB,CAAC,EAAE,QAAQ,EAAE,eAAe,EAAE,CAAC,CAAC;IAC3D,CAAC,EAAE,CAAC,QAAQ,EAAE,eAAe,CAAC,CAAC,CAAC;IAEhC,SAAS,CAAC,GAAG,EAAE;QACb,IAAI,eAAe,IAAI,eAAe,EAAE,CAAC;YACvC,eAAe,GAA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AC;IAClD,MAAM,mBAAmB,GAAG,UAAU,CAAC,QAAQ,CAAC,GAAG,CAAC,IAAI,UAAU,CAAC,QAAQ,CAAC,GAAG,CAAC,CAAC;IAEjF,OAAO,mBAAmB,CAAC,CAAC,CAAC,OAAO,CAAC,CAAC,CAAC,MAAM,CAAC;AAChD,CAAC;AAED,SAAS,cAAc,CAAC,EAAU;IAChC,OAAO,QAAQ,CAAC,cAAc,CAAC,qBAAqB,CAAC,EAAE,CAAC,CAAC,CAAC;AAC5D,CAAC"}
@@ -1,6 +1,6 @@
1
1
  import { LayoutVariant } from '@redocly/theme';
2
2
  import type { PropsWithChildren } from 'react';
3
- import type { DownloadUrls } from '../types';
3
+ import type { DownloadUrls, AsyncApiDefinition } from '../types';
4
4
  import { ProtocolVariant } from '../types';
5
5
  type AppProviderStore = {
6
6
  store: {
@@ -8,6 +8,7 @@ type AppProviderStore = {
8
8
  protocol: ProtocolVariant;
9
9
  routingBasePath: string;
10
10
  downloadUrls: DownloadUrls[];
11
+ definition: AsyncApiDefinition;
11
12
  };
12
13
  };
13
14
  export declare const AppProvider: ({ children, store }: PropsWithChildren<AppProviderStore>) => import("react/jsx-runtime").JSX.Element;
@@ -1 +1 @@
1
- var s=Object.create;var n=Object.defineProperty;var P=Object.getOwnPropertyDescriptor;var f=Object.getOwnPropertyNames;var A=Object.getPrototypeOf,h=Object.prototype.hasOwnProperty;var y=(t,o)=>{for(var a in o)n(t,a,{get:o[a],enumerable:!0})},e=(t,o,a,l)=>{if(o&&typeof o=="object"||typeof o=="function")for(let i of f(o))!h.call(t,i)&&i!==a&&n(t,i,{get:()=>o[i],enumerable:!(l=P(o,i))||l.enumerable});return t};var U=(t,o,a)=>(a=t!=null?s(A(t)):{},e(o||!t||!t.__esModule?n(a,"default",{value:t,enumerable:!0}):a,t)),g=t=>e(n({},"__esModule",{value:!0}),t);var B={};y(B,{AppProvider:()=>w});module.exports=g(B);var u=require("react/jsx-runtime"),p=U(require("react")),m=require("jotai"),d=require("@redocly/theme"),c=require("../types"),r=require("./app");const w=({children:t,store:o})=>{const a=p.useMemo(()=>{const l=(0,m.createStore)();return l.set(r.layoutAtom,o.layout||d.LayoutVariant.THREE_PANEL),l.set(r.protocolAtom,o.protocol||c.ProtocolVariant.DEFAULT),l.set(r.routingBasePathAtom,o.routingBasePath),l.set(r.downloadUrlsAtom,o.downloadUrls),l},[o.layout,o.protocol,o.routingBasePath,o.downloadUrls]);return p.useEffect(()=>{a.set(r.layoutAtom,o.layout),a.set(r.protocolAtom,o.protocol),a.set(r.routingBasePathAtom,o.routingBasePath),a.set(r.downloadUrlsAtom,o.downloadUrls)},[a,o.layout,o.protocol,o.routingBasePath,o.downloadUrls]),(0,u.jsx)(m.Provider,{store:a,children:t})};0&&(module.exports={AppProvider});
1
+ var f=Object.create;var l=Object.defineProperty;var s=Object.getOwnPropertyDescriptor;var P=Object.getOwnPropertyNames;var A=Object.getPrototypeOf,h=Object.prototype.hasOwnProperty;var y=(t,o)=>{for(var i in o)l(t,i,{get:o[i],enumerable:!0})},e=(t,o,i,n)=>{if(o&&typeof o=="object"||typeof o=="function")for(let r of P(o))!h.call(t,r)&&r!==i&&l(t,r,{get:()=>o[r],enumerable:!(n=s(o,r))||n.enumerable});return t};var U=(t,o,i)=>(i=t!=null?f(A(t)):{},e(o||!t||!t.__esModule?l(i,"default",{value:t,enumerable:!0}):i,t)),g=t=>e(l({},"__esModule",{value:!0}),t);var B={};y(B,{AppProvider:()=>w});module.exports=g(B);var p=require("react/jsx-runtime"),m=U(require("react")),d=require("jotai"),u=require("@redocly/theme"),c=require("../types"),a=require("./app");const w=({children:t,store:o})=>{const i=m.useMemo(()=>{const n=(0,d.createStore)();return n.set(a.layoutAtom,o.layout||u.LayoutVariant.THREE_PANEL),n.set(a.protocolAtom,o.protocol||c.ProtocolVariant.DEFAULT),n.set(a.routingBasePathAtom,o.routingBasePath),n.set(a.downloadUrlsAtom,o.downloadUrls),n.set(a.definitionAtom,o.definition),n},[o.layout,o.protocol,o.routingBasePath,o.downloadUrls,o.definition]);return m.useEffect(()=>{i.set(a.layoutAtom,o.layout),i.set(a.protocolAtom,o.protocol),i.set(a.routingBasePathAtom,o.routingBasePath),i.set(a.downloadUrlsAtom,o.downloadUrls),i.set(a.definitionAtom,o.definition)},[i,o.layout,o.protocol,o.routingBasePath,o.downloadUrls,o.definition]),(0,p.jsx)(d.Provider,{store:i,children:t})};0&&(module.exports={AppProvider});
@@ -1 +1 @@
1
- {"version":3,"file":"Provider.js","sourceRoot":"","sources":["../../../src/jotai/Provider.tsx"],"names":[],"mappings":";AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,EAAE,QAAQ,EAAE,WAAW,EAAE,MAAM,OAAO,CAAC;AAC9C,OAAO,EAAE,aAAa,EAAE,MAAM,gBAAgB,CAAC;AAK/C,OAAO,EAAE,eAAe,EAAE,MAAM,UAAU,CAAC;AAC3C,OAAO,EAAE,UAAU,EAAE,YAAY,EAAE,mBAAmB,EAAE,gBAAgB,EAAE,MAAM,OAAO,CAAC;AAWxF,MAAM,CAAC,MAAM,WAAW,GAAG,CAAC,EAAE,QAAQ,EAAE,KAAK,EAAuC,EAAE,EAAE;IACtF,MAAM,gBAAgB,GAAG,KAAK,CAAC,OAAO,CAAC,GAAG,EAAE;QAC1C,MAAM,QAAQ,GAAG,WAAW,EAAE,CAAC;QAE/B,QAAQ,CAAC,GAAG,CAAC,UAAU,EAAE,KAAK,CAAC,MAAM,IAAI,aAAa,CAAC,WAAW,CAAC,CAAC;QACpE,QAAQ,CAAC,GAAG,CAAC,YAAY,EAAE,KAAK,CAAC,QAAQ,IAAI,eAAe,CAAC,OAAO,CAAC,CAAC;QACtE,QAAQ,CAAC,GAAG,CAAC,mBAAmB,EAAE,KAAK,CAAC,eAAe,CAAC,CAAC;QACzD,QAAQ,CAAC,GAAG,CAAC,gBAAgB,EAAE,KAAK,CAAC,YAAY,CAAC,CAAC;QAEnD,OAAO,QAAQ,CAAC;IAClB,CAA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CAAC,UAAU;KACjB,CAAC,CAAC;IAEH,OAAO,KAAC,QAAQ,IAAC,KAAK,EAAE,gBAAgB,YAAG,QAAQ,GAAY,CAAC;AAClE,CAAC,CAAC"}
@@ -1,11 +1,12 @@
1
1
  import { LayoutVariant } from '@redocly/theme';
2
- import type { DownloadUrls } from '../types';
2
+ import type { DownloadUrls, AsyncApiDefinition } from '../types';
3
3
  import { ProtocolVariant } from '../types';
4
4
  export type AppStore = {
5
5
  layout: LayoutVariant;
6
6
  protocol: ProtocolVariant;
7
7
  routingBasePath: string;
8
8
  downloadUrls: DownloadUrls[];
9
+ definition: AsyncApiDefinition;
9
10
  };
10
11
  export declare const appStore: import("jotai").PrimitiveAtom<AppStore> & {
11
12
  init: AppStore;
@@ -14,3 +15,4 @@ export declare const layoutAtom: import("jotai").WritableAtom<LayoutVariant, Lay
14
15
  export declare const protocolAtom: import("jotai").WritableAtom<ProtocolVariant, ProtocolVariant[], void>;
15
16
  export declare const routingBasePathAtom: import("jotai").WritableAtom<string, string[], void>;
16
17
  export declare const downloadUrlsAtom: import("jotai").WritableAtom<DownloadUrls[], DownloadUrls[][], void>;
18
+ export declare const definitionAtom: import("jotai").WritableAtom<AsyncApiDefinition, AsyncApiDefinition[], void>;
@@ -1 +1 @@
1
- var e=Object.defineProperty;var p=Object.getOwnPropertyDescriptor;var g=Object.getOwnPropertyNames;var m=Object.prototype.hasOwnProperty;var b=(t,o)=>{for(var a in o)e(t,a,{get:o[a],enumerable:!0})},j=(t,o,a,n)=>{if(o&&typeof o=="object"||typeof o=="function")for(let c of g(o))!m.call(t,c)&&c!==a&&e(t,c,{get:()=>o[c],enumerable:!(n=p(o,c))||n.enumerable});return t};var A=t=>j(e({},"__esModule",{value:!0}),t);var x={};b(x,{appStore:()=>s,downloadUrlsAtom:()=>E,layoutAtom:()=>O,protocolAtom:()=>u,routingBasePathAtom:()=>d});module.exports=A(x);var r=require("jotai"),i=require("@redocly/theme"),l=require("../types");const s=(0,r.atom)({layout:i.LayoutVariant.THREE_PANEL,protocol:l.ProtocolVariant.DEFAULT,routingBasePath:"",downloadUrls:[]}),O=(0,r.atom)(t=>t(s).layout,(t,o,a=i.LayoutVariant.STACKED)=>{const n=t(s);o(s,Object.assign(Object.assign({},n),{layout:a}))}),u=(0,r.atom)(t=>t(s).protocol,(t,o,a=l.ProtocolVariant.DEFAULT)=>{const n=t(s);o(s,Object.assign(Object.assign({},n),{protocol:a}))}),d=(0,r.atom)(t=>t(s).routingBasePath,(t,o,a="")=>{const n=t(s);o(s,Object.assign(Object.assign({},n),{routingBasePath:a}))}),E=(0,r.atom)(t=>t(s).downloadUrls,(t,o,a=[])=>{const n=t(s);o(s,Object.assign(Object.assign({},n),{downloadUrls:a}))});0&&(module.exports={appStore,downloadUrlsAtom,layoutAtom,protocolAtom,routingBasePathAtom});
1
+ var c=Object.defineProperty;var g=Object.getOwnPropertyDescriptor;var l=Object.getOwnPropertyNames;var m=Object.prototype.hasOwnProperty;var b=(t,o)=>{for(var n in o)c(t,n,{get:o[n],enumerable:!0})},j=(t,o,n,a)=>{if(o&&typeof o=="object"||typeof o=="function")for(let i of l(o))!m.call(t,i)&&i!==n&&c(t,i,{get:()=>o[i],enumerable:!(a=g(o,i))||a.enumerable});return t};var O=t=>j(c({},"__esModule",{value:!0}),t);var E={};b(E,{appStore:()=>s,definitionAtom:()=>x,downloadUrlsAtom:()=>f,layoutAtom:()=>d,protocolAtom:()=>A,routingBasePathAtom:()=>u});module.exports=O(E);var e=require("jotai"),r=require("@redocly/theme"),p=require("../types");const s=(0,e.atom)({layout:r.LayoutVariant.THREE_PANEL,protocol:p.ProtocolVariant.DEFAULT,routingBasePath:"",downloadUrls:[],definition:{}}),d=(0,e.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,e.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,e.atom)(t=>t(s).routingBasePath,(t,o,n="")=>{const a=t(s);o(s,Object.assign(Object.assign({},a),{routingBasePath:n}))}),f=(0,e.atom)(t=>t(s).downloadUrls,(t,o,n=[])=>{const a=t(s);o(s,Object.assign(Object.assign({},a),{downloadUrls:n}))}),x=(0,e.atom)(t=>t(s).definition,(t,o,n={})=>{const a=t(s);o(s,Object.assign(Object.assign({},a),{definition:n}))});0&&(module.exports={appStore,definitionAtom,downloadUrlsAtom,layoutAtom,protocolAtom,routingBasePathAtom});
@@ -1 +1 @@
1
- {"version":3,"file":"app.js","sourceRoot":"","sources":["../../../src/jotai/app.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAE,MAAM,OAAO,CAAC;AAC7B,OAAO,EAAE,aAAa,EAAE,MAAM,gBAAgB,CAAC;AAK/C,OAAO,EAAE,eAAe,EAAE,MAAM,UAAU,CAAC;AAS3C,MAAM,CAAC,MAAM,QAAQ,GAAG,IAAI,CAAW;IACrC,MAAM,EAAE,aAAa,CAAC,WAAW;IACjC,QAAQ,EAAE,eAAe,CAAC,OAAO;IACjC,eAAe,EAAE,EAAE;IACnB,YAAY,EAAE,EAAE;CACjB,CAAC,CAAC;AAEH,MAAM,CAAC,MAAM,UAAU,GAAG,IAAI,CAC5B,CAAC,GAAW,EAAE,EAAE,CAAC,GAAG,CAAC,QAAQ,CAAC,CAAC,MAAM,EACrC,CAAC,GAAW,EAAE,GAAW,EAAE,MAAM,GAAG,aAAa,CAAC,OAAO,EAAE,EAAE;IAC3D,MAAM,KAAK,GAAG,GAAG,CAAC,QAAQ,CAAC,CAAC;IAC5B,GAAG,CAAC,QAAQ,kCAAO,KAAK,KAAE,MAAM,IAAG,CAAC;AACtC,CAAC,CACF,CAAC;AAEF,MAAM,CAAC,MAAM,YAAY,GAAG,IAAI,CAC9B,CAAC,GAAW,EAAE,EAAE,CAAC,GAAG,CAAC,QAAQ,CAAC,CAAC,QAAQ,EACvC,CAA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E,eAA+B,EAAE,EAAE,EAAE;IAC9D,MAAM,KAAK,GAAG,GAAG,CAAC,QAAQ,CAAC,CAAC;IAC5B,GAAG,CAAC,QAAQ,kCAAO,KAAK,KAAE,YAAY,IAAG,CAAC;AAC5C,CAAC,CACF,CAAC;AAEF,MAAM,CAAC,MAAM,cAAc,GAAG,IAAI,CAChC,CAAC,GAAW,EAAE,EAAE,CAAC,GAAG,CAAC,QAAQ,CAAC,CAAC,UAAU,EACzC,CAAC,GAAW,EAAE,GAAW,EAAE,aAAiC,EAAwB,EAAE,EAAE;IACtF,MAAM,KAAK,GAAG,GAAG,CAAC,QAAQ,CAAC,CAAC;IAC5B,GAAG,CAAC,QAAQ,kCAAO,KAAK,KAAE,UAAU,IAAG,CAAC;AAC1C,CAAC,CACF,CAAC"}
@@ -93,6 +93,7 @@ export interface AsyncApiXBadges {
93
93
  }
94
94
  export interface AsyncApiChannelBinding {
95
95
  kafka?: AsyncApiChannelKafkaBinding;
96
+ amqp?: AsyncApiChannelAMQPBinding;
96
97
  }
97
98
  export interface AsyncApiChannelKafkaBinding {
98
99
  topic?: string;
@@ -111,6 +112,9 @@ export interface AsyncApiChannelKafkaBinding {
111
112
  'confluent.value.subject.name.strategy'?: string;
112
113
  };
113
114
  }
115
+ export interface AsyncApiChannelAMQPBinding {
116
+ is: 'routingKey' | 'queue';
117
+ }
114
118
  export interface AsyncApiMessages {
115
119
  [name: string]: AsyncApiMessage;
116
120
  }
@@ -235,3 +239,6 @@ export type ResolvedAsyncApiNavItem = ResolvedNavItem & {
235
239
  export type DownloadUrls = {
236
240
  url: string;
237
241
  };
242
+ export type ChannelWithKey = AsyncApiChannel & {
243
+ key: string;
244
+ };
@@ -0,0 +1,2 @@
1
+ import type { ChannelWithKey } from '../types';
2
+ export declare function generateChannelLink(channel: ChannelWithKey): string;
@@ -0,0 +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});
@@ -0,0 +1 @@
1
+ {"version":3,"file":"generate-channel-link.js","sourceRoot":"","sources":["../../../src/utils/generate-channel-link.ts"],"names":[],"mappings":"AAEA,MAAM,UAAU,mBAAmB,CAAC,OAAuB;;IACzD,MAAM,iBAAiB,GAAG,CAAA,MAAA,MAAA,OAAO,CAAC,QAAQ,0CAAE,IAAI,0CAAE,EAAE,MAAK,YAAY,CAAC;IACtE,MAAM,GAAG,GAAG,MAAA,MAAA,MAAA,OAAO,CAAC,IAAI,0CAAG,CAAC,CAAC,0CAAE,IAAI,0CAAE,WAAW,EAAE,CAAC;IACnD,MAAM,IAAI,GAAG,OAAO,CAAC,GAAG,CAAC;IACzB,MAAM,QAAQ,GAAG,iBAAiB,CAAC,CAAC,CAAC,OAAO,CAAC,CAAC,CAAC,QAAQ,CAAC;IAExD,OAAO,GAAG,CAAC,CAAC,CAAC,GAAG,GAAG,IAAI,QAAQ,IAAI,IAAI,EAAE,CAAC,CAAC,CAAC,GAAG,QAAQ,IAAI,IAAI,EAAE,CAAC;AACpE,CAAC"}
@@ -0,0 +1,7 @@
1
+ import type { ChannelWithKey } from '../types';
2
+ type ChannelGroup = {
3
+ exchanges: ChannelWithKey[];
4
+ queues: ChannelWithKey[];
5
+ };
6
+ export declare function generateMessageReferencesHeader(channelGroups: ChannelGroup): string;
7
+ export {};
@@ -0,0 +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});
@@ -0,0 +1 @@
1
+ {"version":3,"file":"generate-message-references-header.js","sourceRoot":"","sources":["../../../src/utils/generate-message-references-header.ts"],"names":[],"mappings":"AAOA,MAAM,UAAU,+BAA+B,CAAC,aAA2B;IACzE,MAAM,KAAK,GAAa,EAAE,CAAC;IAE3B,IAAI,aAAa,CAAC,SAAS,CAAC,MAAM,GAAG,CAAC,EAAE,CAAC;QACvC,MAAM,YAAY,GAAG,GAAG,aAAa,CAAC,SAAS,CAAC,MAAM,YAAY,aAAa,CAAC,SAAS,CAAC,MAAM,GAAG,CAAC,CAAC,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC;QAClH,KAAK,CAAC,IAAI,CAAC,YAAY,CAAC,CAAC;IAC3B,CAAC;IAED,IAAI,aAAa,CAAC,MAAM,CAAC,MAAM,GAAG,CAAC,EAAE,CAAC;QACpC,MAAM,SAAS,GAAG,GAAG,aAAa,CAAC,MAAM,CAAC,MAAM,SAAS,aAAa,CAAC,MAAM,CAAC,MAAM,GAAG,CAAC,CAAC,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC;QACtG,KAAK,CAAC,IAAI,CAAC,SAAS,CAAC,CAAC;IACxB,CAAC;IAED,IAAI,KAAK,CAAC,MAAM,KAAK,CAAC;QAAE,OAAO,EAAE,CAAC;IAElC,OAAO,WAAW,KAAK,CAAC,IAAI,CAAC,OAAO,CAAC,EAAE,CAAC;AAC1C,CAAC"}
@@ -1,4 +1,7 @@
1
1
  export { avroToJsonSchema } from './avro-to-json-schema';
2
+ export { generateChannelLink } from './generate-channel-link';
3
+ export { generateMessageReferencesHeader } from './generate-message-references-header';
2
4
  export { getSchema } from './get-schema';
3
5
  export { isEqual } from './is-equal';
4
6
  export { tryDecodeURIComponent } from './try-decode-url-component';
7
+ export { modifyPayload } from './modify-payload';
@@ -1 +1 @@
1
- var t=Object.defineProperty;var n=Object.getOwnPropertyDescriptor;var h=Object.getOwnPropertyNames;var s=Object.prototype.hasOwnProperty;var S=(e,o)=>{for(var m in o)t(e,m,{get:o[m],enumerable:!0})},d=(e,o,m,p)=>{if(o&&typeof o=="object"||typeof o=="function")for(let r of h(o))!s.call(e,r)&&r!==m&&t(e,r,{get:()=>o[r],enumerable:!(p=n(o,r))||p.enumerable});return e};var g=e=>d(t({},"__esModule",{value:!0}),e);var i={};S(i,{avroToJsonSchema:()=>a.avroToJsonSchema,getSchema:()=>f.getSchema,isEqual:()=>x.isEqual,tryDecodeURIComponent:()=>c.tryDecodeURIComponent});module.exports=g(i);var a=require("./avro-to-json-schema"),f=require("./get-schema"),x=require("./is-equal"),c=require("./try-decode-url-component");0&&(module.exports={avroToJsonSchema,getSchema,isEqual,tryDecodeURIComponent});
1
+ var a=Object.defineProperty;var g=Object.getOwnPropertyDescriptor;var h=Object.getOwnPropertyNames;var i=Object.prototype.hasOwnProperty;var l=(o,e)=>{for(var t in e)a(o,t,{get:e[t],enumerable:!0})},y=(o,e,t,m)=>{if(e&&typeof e=="object"||typeof e=="function")for(let r of h(e))!i.call(o,r)&&r!==t&&a(o,r,{get:()=>e[r],enumerable:!(m=g(e,r))||m.enumerable});return o};var C=o=>y(a({},"__esModule",{value:!0}),o);var R={};l(R,{avroToJsonSchema:()=>f.avroToJsonSchema,generateChannelLink:()=>n.generateChannelLink,generateMessageReferencesHeader:()=>p.generateMessageReferencesHeader,getSchema:()=>x.getSchema,isEqual:()=>s.isEqual,modifyPayload:()=>d.modifyPayload,tryDecodeURIComponent:()=>c.tryDecodeURIComponent});module.exports=C(R);var f=require("./avro-to-json-schema"),n=require("./generate-channel-link"),p=require("./generate-message-references-header"),x=require("./get-schema"),s=require("./is-equal"),c=require("./try-decode-url-component"),d=require("./modify-payload");0&&(module.exports={avroToJsonSchema,generateChannelLink,generateMessageReferencesHeader,getSchema,isEqual,modifyPayload,tryDecodeURIComponent});
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/utils/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,gBAAgB,EAAE,MAAM,uBAAuB,CAAC;AACzD,OAAO,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AACzC,OAAO,EAAE,OAAO,EAAE,MAAM,YAAY,CAAC;AACrC,OAAO,EAAE,qBAAqB,EAAE,MAAM,4BAA4B,CAAC"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/utils/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,gBAAgB,EAAE,MAAM,uBAAuB,CAAC;AACzD,OAAO,EAAE,mBAAmB,EAAE,MAAM,yBAAyB,CAAC;AAC9D,OAAO,EAAE,+BAA+B,EAAE,MAAM,sCAAsC,CAAC;AACvF,OAAO,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AACzC,OAAO,EAAE,OAAO,EAAE,MAAM,YAAY,CAAC;AACrC,OAAO,EAAE,qBAAqB,EAAE,MAAM,4BAA4B,CAAC;AACnE,OAAO,EAAE,aAAa,EAAE,MAAM,kBAAkB,CAAC"}
@@ -0,0 +1,9 @@
1
+ import type { JSONSchema7 } from 'json-schema';
2
+ import type { MultiFormatSchemaObject } from '../types';
3
+ type SchemaObject = JSONSchema7 | MultiFormatSchemaObject;
4
+ type ChangeRequest = {
5
+ pointer: string;
6
+ index: number;
7
+ };
8
+ export declare const modifyPayload: (currentPayload: SchemaObject | undefined, changes: ChangeRequest) => Record<string, unknown> | null;
9
+ export {};
@@ -0,0 +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});
@@ -0,0 +1 @@
1
+ {"version":3,"file":"modify-payload.js","sourceRoot":"","sources":["../../../src/utils/modify-payload.ts"],"names":[],"mappings":"AAMA,MAAM,CAAC,MAAM,aAAa,GAAG,CAC3B,cAAwC,EACxC,OAAsB,EACU,EAAE;IAClC,IAAI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