@redocly/asyncapi-docs 1.8.0-next.5 → 1.8.0-next.7
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.
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{jsx as o,Fragment as d,jsxs as a}from"react/jsx-runtime";import{memo as m,useCallback as p}from"react";import r from"styled-components";import{useDownloadInfo as f}from"@redocly/openapi-docs";import{useAtomValue as w}from"jotai";import{DocumentIcon as x}from"@redocly/theme/icons/DocumentIcon/DocumentIcon";import{JsonIcon as
|
|
1
|
+
import{jsx as o,Fragment as d,jsxs as a}from"react/jsx-runtime";import{memo as m,useCallback as p}from"react";import r from"styled-components";import{useDownloadInfo as f}from"@redocly/openapi-docs";import{useAtomValue as w}from"jotai";import{DocumentIcon as x}from"@redocly/theme/icons/DocumentIcon/DocumentIcon";import{JsonIcon as b}from"@redocly/theme/icons/JsonIcon/JsonIcon";import{FileIcon as u}from"@redocly/theme/icons/FileIcon/FileIcon";import{Button as g}from"@redocly/theme/components/Button/Button";import{DownloadIcon as h}from"@redocly/theme/icons/DownloadIcon/DownloadIcon";import{downloadUrlsAtom as y}from"../jotai-store/app.js";import{useTelemetry as v}from"../hooks/index.js";function D(){const i=v(),s=w(y),n=f({downloadUrls:s}),l=p(e=>{switch(e){case"yaml":return o(x,{});case"json":return o(b,{});default:return o(u,{})}},[]);return n?o(I,{children:(n||[]).map(({title:e,url:t,iconType:c})=>a(j,{onClick:()=>i.sendAsyncapiDocsDownloadDefinitionClickedMessage(),children:[a(k,{children:[l(c),o("a",{href:t,target:"_blank",download:!0,rel:"noreferrer",children:e})]}),o("a",{href:t,target:"_blank",download:!0,rel:"noreferrer",children:o(g,{variant:"text",size:"small","aria-label":"Download",icon:o(h,{})})})]},e))}):o(d,{})}const T=m(D),j=r.div`
|
|
2
2
|
display: flex;
|
|
3
3
|
align-items: baseline;
|
|
4
4
|
justify-content: space-between;
|
|
@@ -10,7 +10,7 @@ import{jsx as o,Fragment as d,jsxs as a}from"react/jsx-runtime";import{memo as m
|
|
|
10
10
|
padding-bottom: 0px;
|
|
11
11
|
border-bottom: none;
|
|
12
12
|
}
|
|
13
|
-
`,
|
|
13
|
+
`,k=r.span`
|
|
14
14
|
display: flex;
|
|
15
15
|
width: calc(100% - 25px);
|
|
16
16
|
gap: var(--spacing-xs);
|
|
@@ -1,5 +1,9 @@
|
|
|
1
|
-
import{jsx as e}from"react/jsx-runtime";import
|
|
1
|
+
import{jsx as e}from"react/jsx-runtime";import r,{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 f}from"../../utils/index.js";function m(i){const n=i.to;return e(d,{"aria-label":i["aria-label"]||`link to ${n}`,id:f(i.id||""),className:i.className||"",to:n,children:i.children})}function v(i){return e(p,Object.assign({},i,{children:e(o,{size:"13px",color:"--heading-anchor-color"})}))}const g=({to:i,className:n})=>{const t=i,s=h(),a=t?.split("#")[1],l=s?s.hash===`#${a}`:!1;return e(b,{ariaLabel:`link to ${t}`,className:n,isActive:l,to:t||"",id:a})},b=r(v)`
|
|
2
2
|
display: flex;
|
|
3
|
+
height: 24px;
|
|
4
|
+
width: 24px;
|
|
5
|
+
align-items: center;
|
|
6
|
+
justify-content: flex-end;
|
|
3
7
|
${o} {
|
|
4
8
|
visibility: hidden;
|
|
5
9
|
cursor: pointer;
|
|
@@ -16,7 +20,7 @@ import{jsx as e}from"react/jsx-runtime";import s,{css as c}from"styled-component
|
|
|
16
20
|
visibility: visible;
|
|
17
21
|
opacity: 1;
|
|
18
22
|
}
|
|
19
|
-
`,
|
|
23
|
+
`,p=r(m)`
|
|
20
24
|
position: absolute;
|
|
21
25
|
top: 50%;
|
|
22
26
|
left: 0;
|
|
@@ -35,4 +39,4 @@ import{jsx as e}from"react/jsx-runtime";import s,{css as c}from"styled-component
|
|
|
35
39
|
visibility: visible;
|
|
36
40
|
opacity: 1;
|
|
37
41
|
}
|
|
38
|
-
`;export{g as LinkToField,
|
|
42
|
+
`;export{g as LinkToField,v as ShareLink};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{jsx as
|
|
1
|
+
import{jsx as r,jsxs as t}from"react/jsx-runtime";import a from"styled-components";import{Button as e}from"@redocly/theme/components/Button/Button";import{ChevronDownIcon as n}from"@redocly/theme/icons/ChevronDownIcon/ChevronDownIcon";import{ChevronRightIcon as i}from"@redocly/theme/icons/ChevronRightIcon/ChevronRightIcon";const f=({expanded:o})=>t(s,{children:[r("span",{children:"More details"}),r(e,{icon:o?r(n,{}):r(i,{}),size:"small",variant:"ghost","aria-label":"More details"})]}),s=a.span.attrs(()=>({"data-component-name":"MoreDetailsButton/MoreDetailsButton"}))`
|
|
2
2
|
cursor: pointer;
|
|
3
3
|
align-items: center;
|
|
4
4
|
display: flex;
|
|
@@ -9,4 +9,4 @@ import{jsx as o,jsxs as t}from"react/jsx-runtime";import n from"styled-component
|
|
|
9
9
|
& path {
|
|
10
10
|
fill: var(--link-color-primary);
|
|
11
11
|
}
|
|
12
|
-
`;export{
|
|
12
|
+
`;export{f as MoreDetailsButton};
|
|
@@ -1,6 +1,7 @@
|
|
|
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
|
|
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 u=({icon:r,info:a,children:i,capitalize:n,className:s,onClick:t})=>c(d,{className:s,onClick:t,tabIndex:t?0:-1,children:[r&&o(p,{children:r}),o(g,{borderless:!0,capitalize:n,children:i}),a&&o(h,{children:a})]}),d=e.button`
|
|
2
2
|
display: flex;
|
|
3
3
|
gap: var(--spacing-xxs);
|
|
4
|
+
padding: 0;
|
|
4
5
|
`,p=e.div`
|
|
5
6
|
width: 24px;
|
|
6
7
|
height: 24px;
|
|
@@ -10,7 +11,7 @@ import{jsx as o,jsxs as c}from"react/jsx-runtime";import e from"styled-component
|
|
|
10
11
|
display: flex;
|
|
11
12
|
flex-shrink: 0;
|
|
12
13
|
background-color: var(--layer-color-hover);
|
|
13
|
-
`,
|
|
14
|
+
`,g=e(l)`
|
|
14
15
|
text-transform: ${({capitalize:r})=>r?"capitalize":"initial"};
|
|
15
16
|
margin: 0;
|
|
16
17
|
background-color: var(--layer-color-hover);
|
|
@@ -18,7 +19,7 @@ import{jsx as o,jsxs as c}from"react/jsx-runtime";import e from"styled-component
|
|
|
18
19
|
& span {
|
|
19
20
|
font-weight: 600;
|
|
20
21
|
}
|
|
21
|
-
`,
|
|
22
|
+
`,h=e.div`
|
|
22
23
|
width: 24px;
|
|
23
24
|
height: 24px;
|
|
24
25
|
border-radius: var(--border-radius);
|
|
@@ -27,4 +28,4 @@ import{jsx as o,jsxs as c}from"react/jsx-runtime";import e from"styled-component
|
|
|
27
28
|
background-color: var(--layer-color-hover);
|
|
28
29
|
display: flex;
|
|
29
30
|
cursor: pointer;
|
|
30
|
-
`;export{
|
|
31
|
+
`;export{u as TagWithIcon};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@redocly/asyncapi-docs",
|
|
3
|
-
"version": "1.8.0-next.
|
|
3
|
+
"version": "1.8.0-next.7",
|
|
4
4
|
"description": "Async API docs for Redocly Realm",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "lib/index.js",
|
|
@@ -39,9 +39,9 @@
|
|
|
39
39
|
"react-router-dom": "^6.30.3",
|
|
40
40
|
"styled-components": "5.3.11",
|
|
41
41
|
"web-vitals": "3.3.1",
|
|
42
|
-
"@redocly/config": "0.
|
|
43
|
-
"@redocly/openapi-docs": "3.19.0-next.
|
|
44
|
-
"@redocly/theme": "0.63.0-next.
|
|
42
|
+
"@redocly/config": "0.44.0",
|
|
43
|
+
"@redocly/openapi-docs": "3.19.0-next.7",
|
|
44
|
+
"@redocly/theme": "0.63.0-next.4"
|
|
45
45
|
},
|
|
46
46
|
"peerDependencies": {
|
|
47
47
|
"react": "^19.2.4"
|