@redocly/asyncapi-docs 1.5.0-next.8 → 1.5.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.
- package/lib/RedoclyAsyncAPIDocs.d.ts +3 -4
- package/lib/RedoclyAsyncAPIDocs.js +1 -1
- package/lib/components/ApiInfo.js +1 -1
- package/lib/components/AppRouter.d.ts +1 -2
- package/lib/components/AppRouter.js +1 -1
- package/lib/components/AsyncApiDocs.d.ts +1 -1
- package/lib/components/AsyncApiDocs.js +1 -1
- package/lib/components/Breadcrumbs.d.ts +1 -2
- package/lib/components/Breadcrumbs.js +2 -2
- package/lib/components/ChannelBinding.d.ts +1 -1
- package/lib/components/ChannelBinding.js +1 -1
- package/lib/components/ChannelLinkItem.d.ts +1 -1
- package/lib/components/ChannelLinkItem.js +3 -3
- package/lib/components/ChannelParameters.d.ts +1 -1
- package/lib/components/ChannelParameters.js +3 -3
- package/lib/components/ChannelSection.d.ts +2 -3
- package/lib/components/ChannelSection.js +7 -7
- package/lib/components/DownloadSpecification.js +4 -4
- package/lib/components/ItemsNavigation.d.ts +1 -1
- package/lib/components/ItemsNavigation.js +6 -6
- package/lib/components/JsonSchema.js +2 -2
- package/lib/components/MarkdownSection.d.ts +1 -1
- package/lib/components/MarkdownSection.js +2 -2
- package/lib/components/Message.d.ts +1 -1
- package/lib/components/Message.js +4 -4
- package/lib/components/MessageAMQPReferences.d.ts +1 -2
- package/lib/components/MessageAMQPReferences.js +6 -6
- package/lib/components/MessageBinding.d.ts +1 -1
- package/lib/components/MessageBinding.js +1 -1
- package/lib/components/MessageReferences.js +1 -1
- package/lib/components/MessageSection.d.ts +2 -3
- package/lib/components/MessageSection.js +7 -7
- package/lib/components/Operation.d.ts +4 -4
- package/lib/components/Operation.js +12 -12
- package/lib/components/OperationBinding.d.ts +1 -1
- package/lib/components/OperationBinding.js +1 -1
- package/lib/components/OperationSection.d.ts +2 -3
- package/lib/components/OperationSection.js +5 -5
- package/lib/components/RightPanel.d.ts +2 -3
- package/lib/components/RightPanel.js +1 -1
- package/lib/components/SamplesPanel.d.ts +1 -1
- package/lib/components/SamplesPanel.js +5 -5
- package/lib/components/Server.d.ts +1 -1
- package/lib/components/Server.js +7 -7
- package/lib/components/ServerBindingsSection.d.ts +1 -1
- package/lib/components/ServerBindingsSection.js +1 -1
- package/lib/components/ServerModal.d.ts +1 -1
- package/lib/components/ServerModal.js +7 -7
- package/lib/components/ServerOverviewSection.d.ts +1 -1
- package/lib/components/ServerOverviewSection.js +7 -7
- package/lib/components/ServersListPanel.d.ts +2 -3
- package/lib/components/ServersListPanel.js +3 -3
- package/lib/components/TagBlock.d.ts +2 -3
- package/lib/components/TagBlock.js +9 -9
- package/lib/components/common/BindingPanel.d.ts +1 -1
- 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.d.ts +7 -7
- package/lib/components/common/index.js +1 -1
- package/lib/components/common/styles.d.ts +1 -1
- package/lib/components/common/styles.js +18 -18
- package/lib/hooks/index.d.ts +5 -5
- 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.d.ts +1 -1
- package/lib/hooks/use-telemetry.js +1 -1
- package/lib/hooks/use-translate.d.ts +1 -1
- package/lib/hooks/use-translate.js +1 -1
- package/lib/index.d.ts +4 -4
- package/lib/index.js +1 -1
- package/lib/jotai-store/Provider.d.ts +3 -3
- package/lib/jotai-store/Provider.js +1 -1
- package/lib/jotai-store/app.d.ts +3 -3
- package/lib/jotai-store/app.js +1 -1
- package/lib/types/apiItem.js +0 -1
- package/lib/types/async-api.d.ts +1 -1
- package/lib/types/async-api.js +0 -1
- package/lib/types/index.d.ts +3 -3
- 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.d.ts +2 -2
- package/lib/utils/build-menu-items.js +1 -1
- package/lib/utils/find-first-binding.d.ts +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.d.ts +1 -1
- package/lib/utils/generate-channel-link.js +1 -1
- package/lib/utils/generate-message-references-header.d.ts +1 -1
- package/lib/utils/generate-message-references-header.js +1 -1
- package/lib/utils/get-schema.js +1 -1
- package/lib/utils/index.d.ts +12 -12
- package/lib/utils/index.js +1 -1
- package/lib/utils/is-equal.js +1 -1
- package/lib/utils/map-channel-to-operations.d.ts +1 -1
- package/lib/utils/map-channel-to-operations.js +1 -1
- package/lib/utils/modify-payload.d.ts +1 -1
- package/lib/utils/modify-payload.js +1 -1
- package/lib/utils/nav-to-api-items.d.ts +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 +20 -20
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
|
|
2
|
-
${
|
|
1
|
+
import{jsx as e}from"react/jsx-runtime";import{SamplesMiddlePanel as l}from"@redocly/openapi-docs";import a from"styled-components";import{Panel as t}from"@redocly/theme/components/Panel/Panel";import{PanelBody as i}from"@redocly/theme/components/Panel/PanelBody";import{PanelHeader as r}from"@redocly/theme/components/Panel/PanelHeader";const x=({header:o,children:n})=>e(s,{className:"panel-messages-samples",header:()=>e(r,{isExpandable:!1,children:o}),children:n}),s=a(t)`
|
|
2
|
+
${i} {
|
|
3
3
|
background-color: var(--layer-color-ontonal);
|
|
4
4
|
padding: 0;
|
|
5
5
|
|
|
@@ -12,19 +12,19 @@
|
|
|
12
12
|
}
|
|
13
13
|
}
|
|
14
14
|
|
|
15
|
-
${
|
|
15
|
+
${r} {
|
|
16
16
|
display: flex;
|
|
17
17
|
justify-content: start;
|
|
18
18
|
align-items: center;
|
|
19
19
|
gap: var(--spacing-xs);
|
|
20
20
|
}
|
|
21
21
|
|
|
22
|
-
${
|
|
22
|
+
${l} {
|
|
23
23
|
padding: 0 var(--spacing-md);
|
|
24
24
|
}
|
|
25
|
-
`,
|
|
25
|
+
`,b=a.div`
|
|
26
26
|
display: flex;
|
|
27
27
|
flex-direction: row;
|
|
28
28
|
align-items: center;
|
|
29
29
|
gap: var(--spacing-xs);
|
|
30
|
-
`;
|
|
30
|
+
`;export{x as BindingPanel,s as CodeBlockPanel,b as Header};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
|
|
1
|
+
import{jsx as o,jsxs as i}from"react/jsx-runtime";import e from"styled-components";import{useAtomValue as c}from"jotai";import{Markdown as m,ExternalDocumentation as p}from"@redocly/openapi-docs";import{ExternalDocumentationWrapper as f}from"./styles.js";import{markdocOptionsAtom as d}from"../../jotai-store/app.js";const O=({summary:r,description:t,externalDocs:n,className:s})=>{const a=c(d);return i(l,{className:s,children:[r&&o(m,{source:r,markdocOptions:a}),t&&o(m,{source:t,markdocOptions:a}),n&&o(f,{children:o(p,{externalDocs:n,compact:!0})})]})},l=e.div.attrs(()=>({"data-component-name":"Information/Information"}))`
|
|
2
2
|
display: flex;
|
|
3
3
|
flex-direction: column;
|
|
4
4
|
gap: var(--spacing-xxs);
|
|
5
5
|
margin: var(--spacing-sm) 0 0;
|
|
6
|
-
`;
|
|
6
|
+
`;export{O as Information};
|
|
@@ -1,22 +1,22 @@
|
|
|
1
|
-
|
|
1
|
+
import{jsx as e}from"react/jsx-runtime";import s,{css as c}from"styled-components";import{Link as d,useLocation as h}from"react-router-dom";import{LinkIcon as o}from"@redocly/theme/icons/LinkIcon/LinkIcon";import{tryDecodeURIComponent as v}from"../../utils/index.js";function b(i){const n=i.to;return e(d,{"aria-label":i["aria-label"]||`link to ${n}`,id:v(i.id||""),className:i.className||"",to:n,children:i.children})}function f(i){return e(y,Object.assign({},i,{children:e(o,{size:"13px",color:"--heading-anchor-color"})}))}const g=({to:i,className:n})=>{const t=i,a=h(),r=t?.split("#")[1],l=a?a.hash===`#${r}`:!1;return e(m,{ariaLabel:`link to ${t}`,className:n,isActive:l,to:t||"",id:r})},m=s(f)`
|
|
2
2
|
display: flex;
|
|
3
|
-
${o
|
|
3
|
+
${o} {
|
|
4
4
|
visibility: hidden;
|
|
5
5
|
cursor: pointer;
|
|
6
6
|
background-color: var(--bg-color);
|
|
7
7
|
}
|
|
8
8
|
|
|
9
|
-
${({isActive:i})=>i&&
|
|
10
|
-
${o
|
|
9
|
+
${({isActive:i})=>i&&c`
|
|
10
|
+
${o} {
|
|
11
11
|
visibility: visible;
|
|
12
12
|
opacity: 1;
|
|
13
13
|
}
|
|
14
14
|
`}
|
|
15
|
-
:hover ${o
|
|
15
|
+
:hover ${o}, :focus ${o} {
|
|
16
16
|
visibility: visible;
|
|
17
17
|
opacity: 1;
|
|
18
18
|
}
|
|
19
|
-
`,
|
|
19
|
+
`,y=s(b)`
|
|
20
20
|
position: absolute;
|
|
21
21
|
top: 50%;
|
|
22
22
|
left: 0;
|
|
@@ -24,15 +24,15 @@
|
|
|
24
24
|
padding-right: var(--heading-anchor-offset-right);
|
|
25
25
|
z-index: 1;
|
|
26
26
|
|
|
27
|
-
${o
|
|
27
|
+
${o} {
|
|
28
28
|
opacity: 0;
|
|
29
29
|
transition:
|
|
30
30
|
visibility 0.3s linear,
|
|
31
31
|
opacity 0.3s linear;
|
|
32
32
|
}
|
|
33
33
|
|
|
34
|
-
:hover ${o
|
|
34
|
+
:hover ${o}, :focus ${o} {
|
|
35
35
|
visibility: visible;
|
|
36
36
|
opacity: 1;
|
|
37
37
|
}
|
|
38
|
-
`;
|
|
38
|
+
`;export{g as LinkToField,f as ShareLink};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { IconProps } from '@redocly/theme/
|
|
1
|
+
import type { IconProps } from '@redocly/theme/icons/types';
|
|
2
2
|
export declare const ListIcon: import("styled-components").StyledComponent<(props: IconProps) => import("react/jsx-runtime").JSX.Element, any, {
|
|
3
3
|
'data-component-name': string;
|
|
4
4
|
} & {
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
|
|
1
|
+
import{jsx as t,jsxs as s}from"react/jsx-runtime";import o from"styled-components";import{getCssColorVariable as c}from"@redocly/theme/core/utils";const e=i=>s("svg",Object.assign({viewBox:"0 0 22 22",fill:"none",xmlns:"http://www.w3.org/2000/svg"},i,{children:[s("g",{clipPath:"url(#clip0_10754_58823)",children:[t("path",{d:"M0 11H22",strokeLinecap:"round"}),t("circle",{cx:"4",cy:"11",r:"4"})]}),t("defs",{children:t("clipPath",{id:"clip0_10754_58823",children:t("rect",{width:"22",height:"22",fill:"white"})})})]})),h=o(e).attrs(()=>({"data-component-name":"icons/ListIcon/ListIcon"}))`
|
|
2
2
|
path,
|
|
3
3
|
circle {
|
|
4
|
-
fill: ${({color:
|
|
5
|
-
stroke: ${({color:
|
|
4
|
+
fill: ${({color:i})=>c(i)};
|
|
5
|
+
stroke: ${({color:i})=>c(i)};
|
|
6
6
|
}
|
|
7
7
|
|
|
8
|
-
height: ${({size:
|
|
9
|
-
width: ${({size:
|
|
10
|
-
`;
|
|
8
|
+
height: ${({size:i})=>i||"16px"};
|
|
9
|
+
width: ${({size:i})=>i||"16px"};
|
|
10
|
+
`;export{h as ListIcon};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
|
|
1
|
+
import{jsx as o,jsxs as t}from"react/jsx-runtime";import n from"styled-components";import{Button as s}from"@redocly/theme/components/Button/Button";import{ChevronDownIcon as a}from"@redocly/theme/icons/ChevronDownIcon/ChevronDownIcon";import{ChevronRightIcon as e}from"@redocly/theme/icons/ChevronRightIcon/ChevronRightIcon";const h=({expanded:r})=>t(i,{children:[o("span",{children:"More details"}),o(s,{icon:r?o(a,{}):o(e,{}),size:"small",variant:"ghost"})]}),i=n.span.attrs(()=>({"data-component-name":"MoreDetailsButton/MoreDetailsButton"}))`
|
|
2
2
|
cursor: pointer;
|
|
3
3
|
align-items: center;
|
|
4
4
|
display: flex;
|
|
@@ -9,4 +9,4 @@
|
|
|
9
9
|
& path {
|
|
10
10
|
fill: var(--link-color-primary);
|
|
11
11
|
}
|
|
12
|
-
`;
|
|
12
|
+
`;export{h as MoreDetailsButton};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
import{jsx as o,jsxs as a}from"react/jsx-runtime";import{useAtomValue as s}from"jotai";import{SectionContainer as i,Row as l,SamplesMiddlePanel as m}from"@redocly/openapi-docs";import{layoutAtom as c}from"../../jotai-store/app.js";const f=({children:r,rightPanel:e})=>{const t=s(c);return a(l,{layout:t,children:[o(i,{layout:t,children:o(m,{compact:!0,fullWidth:!0,isStacked:t==="stacked",children:r})}),e]})};export{f as SectionWrapper};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
|
|
1
|
+
import{jsx as o,jsxs as c}from"react/jsx-runtime";import e from"styled-components";import{Tag as l}from"@redocly/theme/components/Tag/Tag";const v=({icon:r,info:a,children:i,capitalize:t,className:s,onClick:n})=>c(d,{className:s,onClick:n,children:[r&&o(p,{children:r}),o(h,{borderless:!0,capitalize:t,children:i}),a&&o(g,{children:a})]}),d=e.div`
|
|
2
2
|
display: flex;
|
|
3
3
|
gap: var(--spacing-xxs);
|
|
4
|
-
`,
|
|
4
|
+
`,p=e.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
|
+
`,h=e(l)`
|
|
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
|
-
`,g=
|
|
21
|
+
`,g=e.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
|
+
`;export{v as TagWithIcon};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
export { Block, Header, Section, Label, Value, ExternalDocumentationWrapper, HeaderWrapper, TagStyled, TopicConfiguration, TopicConfigurationWrapper, ActionTag, HostList, ApiHeader, } from './styles';
|
|
2
|
-
export { Information } from './Information';
|
|
3
|
-
export { TagWithIcon } from './TagWithIcon';
|
|
4
|
-
export { BindingPanel } from './BindingPanel';
|
|
5
|
-
export { MoreDetailsButton } from './MoreDetailsButton';
|
|
6
|
-
export { SectionWrapper } from './SectionWrapper';
|
|
7
|
-
export { ShareLink, LinkToField } from './Link';
|
|
1
|
+
export { Block, Header, Section, Label, Value, ExternalDocumentationWrapper, HeaderWrapper, TagStyled, TopicConfiguration, TopicConfigurationWrapper, ActionTag, HostList, ApiHeader, } from './styles.js';
|
|
2
|
+
export { Information } from './Information.js';
|
|
3
|
+
export { TagWithIcon } from './TagWithIcon.js';
|
|
4
|
+
export { BindingPanel } from './BindingPanel.js';
|
|
5
|
+
export { MoreDetailsButton } from './MoreDetailsButton.js';
|
|
6
|
+
export { SectionWrapper } from './SectionWrapper.js';
|
|
7
|
+
export { ShareLink, LinkToField } from './Link.js';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
import{Block as e,Header as t,Section as a,Label as i,Value as n,ExternalDocumentationWrapper as p,HeaderWrapper as f,TagStyled as m,TopicConfiguration as c,TopicConfigurationWrapper as l,ActionTag as x,HostList as d,ApiHeader as g}from"./styles.js";import{Information as u}from"./Information.js";import{TagWithIcon as H}from"./TagWithIcon.js";import{BindingPanel as S}from"./BindingPanel.js";import{MoreDetailsButton as s}from"./MoreDetailsButton.js";import{SectionWrapper as h}from"./SectionWrapper.js";import{ShareLink as C,LinkToField as D}from"./Link.js";export{x as ActionTag,g as ApiHeader,S as BindingPanel,e as Block,p as ExternalDocumentationWrapper,t as Header,f as HeaderWrapper,d as HostList,u as Information,i as Label,D as LinkToField,s as MoreDetailsButton,a as Section,h as SectionWrapper,C as ShareLink,m as TagStyled,H as TagWithIcon,c as TopicConfiguration,l as TopicConfigurationWrapper,n as Value};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Tag } from '@redocly/theme';
|
|
1
|
+
import { Tag } from '@redocly/theme/components/Tag/Tag';
|
|
2
2
|
export declare const ApiHeader: import("styled-components").StyledComponent<"h1", any, {}, never>;
|
|
3
3
|
export declare const Block: import("styled-components").StyledComponent<"div", any, {}, never>;
|
|
4
4
|
export declare const Header: import("styled-components").StyledComponent<"span", any, {}, never>;
|
|
@@ -1,43 +1,43 @@
|
|
|
1
|
-
|
|
1
|
+
import o from"styled-components";import{H1 as t}from"@redocly/theme/components/Typography/H1";import{Markdown as r}from"@redocly/theme/components/Markdown/Markdown";import{Tag as i}from"@redocly/theme/components/Tag/Tag";const p=o(t)`
|
|
2
2
|
display: flex;
|
|
3
3
|
margin-top: 0;
|
|
4
4
|
margin-bottom: 0;
|
|
5
|
-
& + ${
|
|
5
|
+
& + ${r} {
|
|
6
6
|
margin-top: var(--h1-margin-bottom);
|
|
7
7
|
}
|
|
8
|
-
`,
|
|
8
|
+
`,c=o.div`
|
|
9
9
|
display: flex;
|
|
10
10
|
flex-direction: column;
|
|
11
11
|
gap: var(--spacing-xs);
|
|
12
|
-
`,
|
|
12
|
+
`,g=o.span`
|
|
13
13
|
font-weight: var(--font-weight-semibold);
|
|
14
14
|
line-height: var(--line-height-lg);
|
|
15
|
-
`,
|
|
15
|
+
`,d=o.div`
|
|
16
16
|
display: flex;
|
|
17
17
|
flex-direction: column;
|
|
18
18
|
gap: calc(var(--spacing-xxs) / 2);
|
|
19
|
-
`,
|
|
19
|
+
`,f=o.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
|
+
`,m=o.span`
|
|
24
24
|
font-size: var(--font-size-base);
|
|
25
25
|
line-height: var(--line-height-base);
|
|
26
|
-
`,
|
|
26
|
+
`,x=o.div`
|
|
27
27
|
font-size: var(--font-size-base);
|
|
28
28
|
line-height: var(--line-height-base);
|
|
29
|
-
`,
|
|
29
|
+
`,h=o.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:e})=>e&&"var(--layer-color)"};
|
|
36
|
+
cursor: ${({expandable:e})=>e&&"pointer"};
|
|
37
37
|
gap: var(--spacing-md);
|
|
38
38
|
|
|
39
39
|
&:hover {
|
|
40
|
-
background-color: ${({expandable:
|
|
40
|
+
background-color: ${({expandable:e})=>e&&"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
|
+
`,v=o(i)`
|
|
51
51
|
text-transform: none;
|
|
52
|
-
`,
|
|
52
|
+
`,b=o.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
|
+
`,u=o.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
|
+
`,y=o(i)`
|
|
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
|
+
`,z=o.span`
|
|
82
82
|
display: flex;
|
|
83
83
|
flex-direction: column;
|
|
84
|
-
`;
|
|
84
|
+
`;export{y as ActionTag,p as ApiHeader,c as Block,x as ExternalDocumentationWrapper,g as Header,h as HeaderWrapper,z as HostList,f as Label,d as Section,v as TagStyled,b as TopicConfiguration,u as TopicConfigurationWrapper,m as Value};
|
package/lib/hooks/index.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
export { useAutoScroll } from './use-auto-scroll';
|
|
2
|
-
export { useProtocolLabels } from './use-protocol-labels';
|
|
3
|
-
export { useTranslate } from './use-translate';
|
|
4
|
-
export { usePerformanceMetrics } from './use-performance-metrics';
|
|
5
|
-
export { useTelemetry } from './use-telemetry';
|
|
1
|
+
export { useAutoScroll } from './use-auto-scroll.js';
|
|
2
|
+
export { useProtocolLabels } from './use-protocol-labels.js';
|
|
3
|
+
export { useTranslate } from './use-translate.js';
|
|
4
|
+
export { usePerformanceMetrics } from './use-performance-metrics.js';
|
|
5
|
+
export { useTelemetry } from './use-telemetry.js';
|
package/lib/hooks/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
import{useAutoScroll as o}from"./use-auto-scroll.js";import{useProtocolLabels as s}from"./use-protocol-labels.js";import{useTranslate as f}from"./use-translate.js";import{usePerformanceMetrics as u}from"./use-performance-metrics.js";import{useTelemetry as x}from"./use-telemetry.js";export{o as useAutoScroll,u as usePerformanceMetrics,s as useProtocolLabels,x as useTelemetry,f as useTranslate};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
import{useEffect as r}from"react";import{useLocation as a}from"react-router-dom";import{useActiveSectionId as c}from"@redocly/theme/core/openapi";import{IS_BROWSER as l}from"@redocly/theme/core/utils";import{tryDecodeURIComponent as m}from"../utils/index.js";let s=!0;function y(e){const t=a(),o=c(t,!1,!1);r(()=>{d({location:t,routingBasePath:e})},[t,e]),r(()=>{if(o&&s){s=!1;return}l&&window.location.pathname!==o&&window.history.replaceState({},"",o)},[o])}function d({location:e,routingBasePath:t}){if(e.pathname===t&&e.hash===""){window.scrollTo(0,0);return}const o=e.pathname,n=u(e.hash),i=f(n)||document.querySelector(`[data-section-id="${o}"]`);i?setTimeout(()=>{i.scrollIntoView()},0):window.scrollTo(0,0)}function u(e){const t=e.replace("#","");if(!t.includes("&m="))return t;const[o,n]=t.split("&m=");return n.includes("&")||n.includes("/")?t:o}function f(e){return document.getElementById(m(e))}export{y as useAutoScroll};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
import{onCLS as t,onLCP as u,onFCP as l,onTTFB as i}from"web-vitals";import{useMount as P}from"@redocly/theme/core/hooks";function f({sendTelemetry:a}){P(()=>{const n={},r=[new Promise(o=>t(e=>o({name:"CLS",value:e.value}))),new Promise(o=>u(e=>o({name:"LCP",value:e.value}))),new Promise(o=>l(e=>o({name:"FCP",value:e.value}))),new Promise(o=>i(e=>o({name:"TTFB",value:e.value})))];Promise.allSettled(r).then(o=>{o.forEach(e=>{if(e.status==="fulfilled"){const{name:m,value:s}=e.value;n[m]=Math.round(s)}}),a(n)})})}export{f as usePerformanceMetrics};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
import{useAtomValue as o}from"jotai";import{protocolAtom as c}from"./../jotai-store/app.js";const l={channel:"Channel",channels:"Channels",servers:"Servers",server:"Server",send:"Send",receive:"Receive",sendLabel:"Send",receiveLabel:"Receive",channelBinding:"Channel binding",payload:"Payload"},i={channel:"Topic",channels:"Topics",servers:"Brokers",server:"Broker",send:"Pub",receive:"Sub",sendLabel:"Publish",receiveLabel:"Subscribe",channelBinding:"Topic configuration",payload:"Value"},u={channel:"Exchange",channels:"Exchanges",servers:"Brokers",server:"Broker",send:"Pub",receive:"Cons",sendLabel:"Publish",receiveLabel:"Consume",channelBinding:"Exchange configuration",payload:"Payload"},v={channel:"Queue",channels:"Queues",servers:"Brokers",server:"Broker",send:"Pub",receive:"Cons",sendLabel:"Publish",receiveLabel:"Consume",channelBinding:"Queue configuration",payload:"Payload"};function b(n){const a=o(c);return{getProtocolLabel:(e,r)=>{var s;switch(a){case"kafka":return i[e]||r||"";case"amqp":return(((s=n?.amqp)===null||s===void 0?void 0:s.is)==="routingKey"?u[e]:v[e])||r||"";default:return l[e]||r||""}}}}export{b as useProtocolLabels};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { useThemeHooks } from '@redocly/theme';
|
|
1
|
+
import { useThemeHooks } from '@redocly/theme/core/openapi';
|
|
2
2
|
export declare function useTelemetry(): ReturnType<ReturnType<typeof useThemeHooks>['useTelemetry']>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
import{useThemeHooks as e}from"@redocly/theme/core/openapi";function o(){return e().useTelemetry()}export{o as useTelemetry};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import type { TFunction } from '@redocly/theme';
|
|
1
|
+
import type { TFunction } from '@redocly/theme/core/openapi';
|
|
2
2
|
export declare function useTranslate(): TFunction;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
import{useThemeHooks as t}from"@redocly/theme/core/openapi";function s(){const{translate:e}=t().useTranslate();return e}export{s as useTranslate};
|
package/lib/index.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { RedoclyAsyncAPIDocs } from './RedoclyAsyncAPIDocs';
|
|
2
|
-
export * from './types';
|
|
3
|
-
export { buildMenuItems } from './utils/build-menu-items';
|
|
4
|
-
export { findFirstBinding } from './utils/find-first-binding';
|
|
1
|
+
export { RedoclyAsyncAPIDocs } from './RedoclyAsyncAPIDocs.js';
|
|
2
|
+
export * from './types/index.js';
|
|
3
|
+
export { buildMenuItems } from './utils/build-menu-items.js';
|
|
4
|
+
export { findFirstBinding } from './utils/find-first-binding.js';
|
package/lib/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
import{RedoclyAsyncAPIDocs as e}from"./RedoclyAsyncAPIDocs.js";export*from"./types/index.js";import{buildMenuItems as i}from"./utils/build-menu-items.js";import{findFirstBinding as n}from"./utils/find-first-binding.js";export{e as RedoclyAsyncAPIDocs,i as buildMenuItems,n as findFirstBinding};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { LayoutVariant } from '@redocly/
|
|
1
|
+
import { LayoutVariant } from '@redocly/config';
|
|
2
2
|
import type { PropsWithChildren } from 'react';
|
|
3
|
-
import type { DownloadUrls, AsyncApiDefinition } from '../types';
|
|
4
|
-
import { ProtocolVariant } from '../types';
|
|
3
|
+
import type { DownloadUrls, AsyncApiDefinition } from '../types/index.js';
|
|
4
|
+
import { ProtocolVariant } from '../types/index.js';
|
|
5
5
|
type AppProviderStore = {
|
|
6
6
|
store: {
|
|
7
7
|
layout: LayoutVariant;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
import{jsx as v}from"react/jsx-runtime";import{useMemo as m,useEffect as h}from"react";import{Provider as b,createStore as k}from"jotai";import{LayoutVariant as y}from"@redocly/config";import{getMarkdownHeaderId as j}from"@redocly/openapi-docs/lib/components/RedoclyOpenAPIDocs/utils.js";import{SchemaDefinition as A}from"@redocly/openapi-docs/lib/components/SchemaDefinition/index.js";import S from"@markdoc/markdoc";import{Heading as P}from"@redocly/theme/markdoc/components/Heading/Heading";import{ProtocolVariant as w}from"../types/index.js";import{layoutAtom as c,protocolAtom as p,routingBasePathAtom as u,downloadUrlsAtom as g,definitionAtom as O,markdocOptionsAtom as f}from"./app.js";const e={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(a,i){const t=a.transformAttributes(i),n=a.transformChildren(i),o=typeof t.id=="string"?t.id:j(n);return new S.Tag("Heading",Object.assign(Object.assign({},t),{id:o,level:a.attributes.level}),n)}}},components:{SchemaDefinition:A,Heading:P}}},N=({children:a,store:i})=>{const t=m(()=>{var o,d,r,s,l;return Object.assign(Object.assign(Object.assign({},e.markdocOptions),{components:Object.assign(Object.assign({},e.markdocOptions.components),(o=i?.markdocOptions)===null||o===void 0?void 0:o.components),tags:Object.assign(Object.assign({},e.markdocOptions.tags),(d=i?.markdocOptions)===null||d===void 0?void 0:d.tags),nodes:Object.assign(Object.assign(Object.assign({},e.markdocOptions.nodes),(r=i?.markdocOptions)===null||r===void 0?void 0:r.nodes),{heading:e.markdocOptions.nodes.heading||((l=(s=i?.markdocOptions)===null||s===void 0?void 0:s.nodes)===null||l===void 0?void 0:l.heading)})}),i?.markdocOptions)},[i?.markdocOptions]),n=m(()=>{const o=k();return o.set(c,i.layout||y.THREE_PANEL),o.set(p,i.protocol||w.DEFAULT),o.set(u,i.routingBasePath),o.set(g,i.downloadUrls),o.set(O,i.definition),o.set(f,t),o},[i.layout,i.protocol,i.routingBasePath,i.downloadUrls,i.definition,t]);return h(()=>{n.set(c,i.layout),n.set(p,i.protocol),n.set(u,i.routingBasePath),n.set(g,i.downloadUrls),n.set(O,i.definition),n.set(f,t)},[n,i.layout,i.protocol,i.routingBasePath,i.downloadUrls,i.definition,t]),v(b,{store:n,children:a})};export{N as AppProvider};
|
package/lib/jotai-store/app.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { LayoutVariant } from '@redocly/
|
|
2
|
-
import type { DownloadUrls, AsyncApiDefinition } from '../types';
|
|
3
|
-
import { ProtocolVariant } from '../types';
|
|
1
|
+
import { LayoutVariant } from '@redocly/config';
|
|
2
|
+
import type { DownloadUrls, AsyncApiDefinition } from '../types/index.js';
|
|
3
|
+
import { ProtocolVariant } from '../types/index.js';
|
|
4
4
|
export type AppStore = {
|
|
5
5
|
layout: LayoutVariant;
|
|
6
6
|
protocol: ProtocolVariant;
|
package/lib/jotai-store/app.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
import{atom as c}from"jotai";import{LayoutVariant as e}from"@redocly/config";import{ProtocolVariant as i}from"../types/index.js";const o=c({layout:e.THREE_PANEL,protocol:i.DEFAULT,routingBasePath:"",downloadUrls:[],definition:{},markdocOptions:{}}),g=c(t=>t(o).layout,(t,s,n=e.STACKED)=>{const a=t(o);s(o,Object.assign(Object.assign({},a),{layout:n}))}),O=c(t=>t(o).protocol,(t,s,n=i.DEFAULT)=>{const a=t(o);s(o,Object.assign(Object.assign({},a),{protocol:n}))}),l=c(t=>t(o).routingBasePath,(t,s,n="")=>{const a=t(o);s(o,Object.assign(Object.assign({},a),{routingBasePath:n}))}),b=c(t=>t(o).downloadUrls,(t,s,n=[])=>{const a=t(o);s(o,Object.assign(Object.assign({},a),{downloadUrls:n}))}),d=c(t=>t(o).definition,(t,s,n={})=>{const a=t(o);s(o,Object.assign(Object.assign({},a),{definition:n}))}),j=c(t=>t(o).markdocOptions,(t,s,n={})=>{const a=t(o);s(o,Object.assign(Object.assign({},a),{markdocOptions:n}))});export{o as appStore,d as definitionAtom,b as downloadUrlsAtom,g as layoutAtom,j as markdocOptionsAtom,O as protocolAtom,l as routingBasePathAtom};
|
package/lib/types/apiItem.js
CHANGED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});
|
package/lib/types/async-api.d.ts
CHANGED
|
@@ -2,7 +2,7 @@ import type { ENTITY_RELATION_TYPES } from '@redocly/config';
|
|
|
2
2
|
import type { Node } from '@markdoc/markdoc';
|
|
3
3
|
import type { ResolvedNavItem, REDOCLY_TEAMS_RBAC } from '@redocly/config';
|
|
4
4
|
import type { JSONSchema7 } from 'json-schema';
|
|
5
|
-
import type { ApiItemData } from './apiItem';
|
|
5
|
+
import type { ApiItemData } from './apiItem.js';
|
|
6
6
|
export type Referenced<T> = T | {
|
|
7
7
|
$ref: string;
|
|
8
8
|
};
|
package/lib/types/async-api.js
CHANGED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});
|
package/lib/types/index.d.ts
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
export * from './async-api';
|
|
2
|
-
export * from './apiItem';
|
|
3
|
-
export * from './protocol';
|
|
1
|
+
export * from './async-api.js';
|
|
2
|
+
export * from './apiItem.js';
|
|
3
|
+
export * from './protocol.js';
|
package/lib/types/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"
|
|
1
|
+
export*from"./async-api.js";export*from"./apiItem.js";export*from"./protocol.js";
|
package/lib/types/protocol.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
var a;(function(A){A.DEFAULT="default",A.KAFKA="kafka",A.AMQP="amqp"})(a||(a={}));export{a as ProtocolVariant};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
function o(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 f(t){return{type:"string",enum:t.symbols,title:t.name,description:t.doc}}function a(t,e){var n;const r={},c=[];return(n=t.fields)===null||n===void 0||n.forEach(i=>{r[i.name]=u(i.type,e),i.doc&&(r[i.name].description=i.doc),i.default!==void 0&&(r[i.name].default=i.default),i.default===void 0&&!b(i.type)&&c.push(i.name)}),{type:"object",title:t.name,description:t.doc,properties:r,required:c.length>0?c:void 0,additionalProperties:!1}}function b(t){return Array.isArray(t)?t.some(e=>e==="null"||typeof e=="object"&&e.type==="null"):!1}function l(t,e){return{type:"array",items:u(t.items,e),description:t.doc}}function s(t,e){return{type:"object",additionalProperties:u(t.values,e),description:t.doc}}function d(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({},u(r[0],e)),{nullable:!0}):{oneOf:r.map(c=>u(c,e)),nullable:!0}}return{oneOf:t.map(r=>u(r,e))}}function u(t,e){if(typeof t=="string")return o(t,e);let n={};if(Array.isArray(t))n=d(t,e);else if(typeof t=="object"&&typeof t.type=="string")switch(t.type){case"record":n=a(t,e);break;case"enum":n=f(t);break;case"array":n=l(t,e);break;case"map":n=s(t,e);break;default:n=o(t.type,e)}else typeof t=="object"&&t.items?n=l(t,e):typeof t=="object"&&t.values&&(n=s(t,e));return t.name&&(e[t.name]=n),n}function g(t){const n=u(t,{});return Object.assign({},n)}export{g as avroToJsonSchema};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import type { ResolvedAsyncApiNavItem, AsyncApiDefinition } from '../types';
|
|
2
|
-
import type { ApiItems } from './nav-to-api-items';
|
|
1
|
+
import type { ResolvedAsyncApiNavItem, AsyncApiDefinition } from '../types/index.js';
|
|
2
|
+
import type { ApiItems } from './nav-to-api-items.js';
|
|
3
3
|
export declare function buildMenuItems({ asyncApiDoc, protocol, }: {
|
|
4
4
|
asyncApiDoc: AsyncApiDefinition;
|
|
5
5
|
protocol?: string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
import{safeSlugify as I}from"@redocly/openapi-docs/lib/utils/string.js";import{REDOCLY_TEAMS_RBAC as i}from"@redocly/config";import{addMarkdownItems as E}from"@redocly/openapi-docs/lib/services/menu/markdown.js";import{getValueFromMdParsedExtension as T}from"@redocly/openapi-docs/lib/utils/helpers.js";import{combineUrls as V}from"@redocly/theme/core/openapi";import{mapChannelToOperations as j}from"./map-channel-to-operations.js";import{navToApiItems as y}from"./nav-to-api-items.js";function G({asyncApiDoc:a,protocol:r}){var l;const u=j(a),o={},k=[],O=a.channels||{},w=a.operations||{},C=((l=a.components)===null||l===void 0?void 0:l.tags)||{};for(const[t,s]of Object.entries(u)){const e=O[t],v=e.tags||[],d=s.length>0,m=S(r,e.bindings),b=`${m.channel}s`;for(const c of v){const n=c.name,x=I(n).toLowerCase();o[n]||(o[n]=[]),o[n].push(Object.assign({label:e.title||e.address||t,type:d?"group":"link",link:x+"/"+b+"/"+t,badges:e?.["x-badges"]||[],httpVerb:m.channel,[i]:e?.[i],apiItemData:{type:"channel",id:t}},d?{items:s.map(h=>{const p=w[h];return{label:p.title||h,type:"link",link:x+"/"+b+"/"+t+"/operations/"+h,httpVerb:m[p.action]||"",action:p.action,badges:p?.["x-badges"]||[],[i]:p?.[i],apiItemData:{type:"operation",id:h}}})}:{}))}v.length||k.push(Object.assign({label:e.title||e.address||t,type:d?"group":"link",link:b+"/"+t,httpVerb:m.channel,badges:e?.["x-badges"]||[],[i]:e?.[i],apiItemData:{type:"channel",id:t}},d?{items:s.map(c=>{const n=w[c];return{label:n.title||c,type:"link",link:b+"/"+t+"/operations/"+c,httpVerb:m[n.action]||"",badges:n?.["x-badges"]||[],[i]:n?.[i],action:n.action,apiItemData:{type:"operation",id:c}}})}:{}))}for(const t in o){const s=M(C[t],I(t).toLowerCase());o[t].unshift(...s)}const g=M(a.info),f=[...Object.entries(o).map(([t,s])=>({label:t,type:"group",link:I(t).toLowerCase(),items:s})),...k];if(a["x-tagGroups"]&&a["x-tagGroups"].length>0){const t=[],s=new Map;return f.forEach(e=>{e.label&&s.set(e.label,e)}),a["x-tagGroups"].forEach(e=>{t.push({label:e.name,type:"separator",[i]:e[i]}),e.tags.forEach(v=>{const d=s.get(v);d&&t.push(d)})}),{navItems:[...g,...t],apiItems:y([...g,...t])}}return{navItems:[...g,...f],apiItems:y([...g,...f])}}function M(a,r=""){const l=E(T(a,"description")||"",r?{type:"tag",id:r}:void 0,1);function u(o){return{type:o.items.length?"group":"link",label:o.name,link:V(r,o.href),items:o.items.map(u),apiItemData:{type:"markdown",id:o.name},ast:o.ast}}return l.map(u)}const S=(a,r)=>{var l;switch(a){case"kafka":return{channel:"topic",send:"pub",receive:"sub"};case"amqp":return{channel:((l=r?.amqp)===null||l===void 0?void 0:l.is)==="routingKey"?"exch":"queue",send:"pub",receive:"cons"};default:return{channel:"channel",send:"send",receive:"receive"}}};export{G as buildMenuItems};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import type { ProtocolVariant } from '../types';
|
|
1
|
+
import type { ProtocolVariant } from '../types/index.js';
|
|
2
2
|
export declare function findFirstBinding(obj: any, visited?: Set<any>): ProtocolVariant | null;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
function i(n,t=new Set){if(t.has(n))return null;t.add(n);for(let r in n)if(Object.prototype.hasOwnProperty.call(n,r)){if(n[r]&&n[r].bindings)return Object.keys(n[r].bindings)[0];const e=i(n[r],t);if(e)return e}return null}export{i as findFirstBinding};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
import i from"@markdoc/markdoc";function d(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(n=>i.Ast.fromJSON(JSON.stringify(n)));if(r&&!Array.isArray(r)&&r.$$mdtype==="Node")return[i.Ast.fromJSON(JSON.stringify(r))]}export{d as generateAst};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import type { ChannelWithKey } from '../types';
|
|
1
|
+
import type { ChannelWithKey } from '../types/index.js';
|
|
2
2
|
export declare function generateChannelLink(channel: ChannelWithKey): string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
function u(n){var o,e,i,t,d;const l=((e=(o=n.bindings)===null||o===void 0?void 0:o.amqp)===null||e===void 0?void 0:e.is)==="routingKey",a=(d=(t=(i=n.tags)===null||i===void 0?void 0:i[0])===null||t===void 0?void 0:t.name)===null||d===void 0?void 0:d.toLowerCase(),s=n.key,v=l?"exchs":"queues";return a?`${a}/${v}/${s}`:`${v}/${s}`}export{u as generateChannelLink};
|