@redocly/asyncapi-docs 1.6.0-next.2 → 1.6.0-next.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -1 +1 @@
|
|
|
1
|
-
import{jsx as e,jsxs as f}from"react/jsx-runtime";import{useMemo as M,memo as b}from"react";import{IS_BROWSER as x}from"@redocly/theme/core/utils";import{useMount as D}from"@redocly/theme/core/hooks";import{AppProvider as l}from"./jotai-store/Provider.js";import{AsyncApiDocs as
|
|
1
|
+
import{jsx as e,jsxs as f}from"react/jsx-runtime";import{useMemo as M,memo as b}from"react";import{IS_BROWSER as x}from"@redocly/theme/core/utils";import{useMount as D}from"@redocly/theme/core/hooks";import{AppProvider as l}from"./jotai-store/Provider.js";import{AsyncApiDocs as u}from"./components/AsyncApiDocs.js";import{Breadcrumbs as y}from"./components/Breadcrumbs.js";import{AppRouter as O}from"./components/AppRouter.js";import{useTelemetry as R,usePerformanceMetrics as I}from"./hooks/index.js";const C=b(({pageProps:t,document:r,apiItems:i,routingBasePath:m,protocol:o,downloadUrls:c,markdocOptions:p})=>{const n=R(),a=M(()=>({layout:t.apiOptions.layout,protocol:o,routingBasePath:m,downloadUrls:c,definition:r,markdocOptions:p}),[t.apiOptions.layout,o,m,c,r,p]);return I({sendTelemetry:d=>{const s=Object.fromEntries(Object.entries(d).map(([A,j])=>[A.toLowerCase(),j]));n.sendAsyncapiDocsPerformanceMetricsMessage({cls:s.cls,lcp:s.lcp,fcp:s.fcp,ttfb:s.ttfb})}}),D(()=>{n.sendAsyncapiDocsViewedMessage({layout:t.apiOptions.layout,protocol:o||"default"})}),x?e(l,{store:a,children:f(O,{children:[e(y,{}),e(u,{apiItems:i})]})}):f(l,{store:a,children:[e(y,{}),e(u,{apiItems:i})]})});export{C as RedoclyAsyncAPIDocs};
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import{jsx as o,jsxs as
|
|
1
|
+
import{jsx as o,jsxs as a}from"react/jsx-runtime";import{useMemo as c}from"react";import{Link as l}from"react-router-dom";import i from"styled-components";import{generateChannelLink as d}from"../utils/index.js";import{ListIcon as m}from"./common/ListIcon.js";import{useTelemetry as p}from"../hooks/index.js";const j=({channel:r,isActive:e})=>{const n=c(()=>d(r),[r]),t=p(),s=()=>{t.sendAsyncapiDocsReferencedInClickedMessage({id:"asyncapi-docs-channel-link",object:"link",uri:`${window.location.href}#asyncapi-docs-channel-link`,referencedIn:r.title||r.address||r.key})};return a(k,{children:[o(m,{size:"22px",color:e?"var(--color-info-border)":"var(--border-color-primary)",style:{marginRight:"var(--spacing-xs)",flexShrink:0}}),o(v,{to:n,onClick:s,children:r.title||r.address||r.key})]})},k=i.div`
|
|
2
2
|
padding: var(--spacing-xxs) var(--spacing-md);
|
|
3
3
|
display: flex;
|
|
4
4
|
align-items: center;
|
|
5
5
|
font-size: var(--font-size-md);
|
|
6
6
|
cursor: pointer;
|
|
7
|
-
`,
|
|
7
|
+
`,v=i(l)`
|
|
8
8
|
text-decoration: var(--link-decoration);
|
|
9
9
|
color: var(--link-color-primary);
|
|
10
10
|
font-weight: var(--link-font-weight);
|
|
@@ -19,4 +19,4 @@ import{jsx as o,jsxs as n}from"react/jsx-runtime";import{useMemo as a}from"react
|
|
|
19
19
|
color: var(--link-color-primary-hover);
|
|
20
20
|
text-decoration: var(--link-decoration-hover);
|
|
21
21
|
}
|
|
22
|
-
`;export{
|
|
22
|
+
`;export{j as ChannelLinkItem};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@redocly/asyncapi-docs",
|
|
3
|
-
"version": "1.6.0-next.
|
|
3
|
+
"version": "1.6.0-next.4",
|
|
4
4
|
"description": "Async API docs for Redocly Realm",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "lib/index.js",
|
|
@@ -21,12 +21,12 @@
|
|
|
21
21
|
"@types/node": "22.18.13",
|
|
22
22
|
"@types/react": "^19.2.7",
|
|
23
23
|
"@types/styled-components": "5.1.34",
|
|
24
|
-
"@vitest/coverage-v8": "
|
|
24
|
+
"@vitest/coverage-v8": "4.0.10",
|
|
25
25
|
"@vitest/ui": "3.2.4",
|
|
26
26
|
"esbuild-minify-dir": "^0.0.1",
|
|
27
27
|
"jest-styled-components": "7.2.0",
|
|
28
28
|
"json-schema": "0.4.0",
|
|
29
|
-
"react": "
|
|
29
|
+
"react": "19.2.3",
|
|
30
30
|
"tsc-alias": "1.8.16",
|
|
31
31
|
"typescript": "5.9.3",
|
|
32
32
|
"vitest": "4.0.10",
|
|
@@ -40,11 +40,11 @@
|
|
|
40
40
|
"styled-components": "5.3.11",
|
|
41
41
|
"web-vitals": "3.3.1",
|
|
42
42
|
"@redocly/config": "0.41.1",
|
|
43
|
-
"@redocly/openapi-docs": "3.17.0-next.
|
|
44
|
-
"@redocly/theme": "0.61.0-next.
|
|
43
|
+
"@redocly/openapi-docs": "3.17.0-next.4",
|
|
44
|
+
"@redocly/theme": "0.61.0-next.3"
|
|
45
45
|
},
|
|
46
46
|
"peerDependencies": {
|
|
47
|
-
"react": "
|
|
47
|
+
"react": "19.2.3"
|
|
48
48
|
},
|
|
49
49
|
"scripts": {
|
|
50
50
|
"clean": "rm -rf lib",
|