@redocly/openapi-docs 3.20.0-next.5 → 3.20.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,11 +1,11 @@
|
|
|
1
|
-
import{jsx as t,jsxs as
|
|
1
|
+
import{jsx as t,jsxs as s,Fragment as l}from"react/jsx-runtime";import*as h from"react";import{NewTabButton as u}from"@redocly/theme/components/Buttons/NewTabButton";import{PageActions as f}from"@redocly/theme/components/PageActions/PageActions";import{Tag as p}from"@redocly/theme/components/Tag/Tag";import{CheckmarkIcon as g}from"@redocly/theme/icons/CheckmarkIcon/CheckmarkIcon";import{MCP_SERVER_CAPABILITIES as E,MCP_SERVER_EXPERIMENTAL_CAPABILITIES as P,PAGE_ACTIONS_MCP as C}from"../../utils/mcp.js";import{replaceVariables as _}from"../../utils/index.js";import{PanelItem as r}from"../PanelItem/PanelItem.js";import{PanelItemsList as j}from"../PanelItem/styled.js";import{useTranslate as x}from"../../hooks/index.js";import{styled as c}from"../../styled-components.js";function G({mcpInfo:e,mcpServers:a}){const o=x(),d=a[0]?_(a[0]):void 0;function m(i){return typeof e?.capabilities[i]=="object"&&e?.capabilities[i]?.listChanged}function b(i){return typeof e?.capabilities[i]=="object"&&e?.capabilities[i]?.subscribe}return s(j,{children:[e?.protocolVersion&&t(r,{header:o("openapi.mcp.protocolVersion","Protocol version"),title:e.protocolVersion}),e?.capabilities&&t(r,{header:o("openapi.mcp.capabilities","Capabilities"),title:t(l,{children:E.map(i=>e?.capabilities[i]?s(p,{size:"small",icon:t(g,{}),children:[i,m(i)?" (list changed)":"",b(i)?" (subscribe)":""]},i):null)})}),e?.capabilities[P]&&t(r,{header:o("openapi.mcp.experimentalCapabilities","Experimental capabilities"),title:t(T,{children:Object.entries(e?.capabilities.experimental||{}).map(([i,n])=>s(h.Fragment,{children:[s("span",{children:[i,":"]}),t(p,{children:typeof n=="object"?JSON.stringify(n):String(n)})]},i))})}),t(r,{header:o("openapi.mcp.endpoint","Endpoint"),title:t(l,{children:a[0]?.url}),actions:[t(u,{data:a[0]?.url},"NewTabButton")]}),t(r,{title:t(A,{children:t(f,{actions:C,mcpUrl:d})})})]})}const A=c.div`
|
|
2
2
|
& button {
|
|
3
3
|
width: 100%;
|
|
4
4
|
}
|
|
5
5
|
> div {
|
|
6
6
|
padding: 0;
|
|
7
7
|
}
|
|
8
|
-
`,
|
|
8
|
+
`,T=c.div`
|
|
9
9
|
display: grid;
|
|
10
10
|
grid-template-columns: 1fr 2fr;
|
|
11
11
|
gap: 10px;
|
|
@@ -13,4 +13,4 @@ import{jsx as t,jsxs as o,Fragment as l}from"react/jsx-runtime";import*as b from
|
|
|
13
13
|
> * {
|
|
14
14
|
justify-self: start;
|
|
15
15
|
}
|
|
16
|
-
`;export{
|
|
16
|
+
`;export{G as McpOverview};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{Telemetry as o}from"@redocly/redoc-opentelemetry";import c from"../../package.json"with{type:"json"};const p="https://otel.cloud.redocly.com/v1/traces";class n extends o{specType;constructor(e){super(),this.specType=e.specType,this.init({otel:{isProd:process.env.NODE_ENV==="production"||process.env.ENABLE_LOCAL_TELEMETRY==="true",serviceVersion:e.serviceVersion||`${c.name}@${c.version}`,version:"1.0.0",collectorTraceUrl:e.collectorUrl||p,serviceName:e.serviceName||"redoc-ce",tracerName:"client-telemetry"},disabled:e.disabled||!1})}send(e,r){r&&Array.isArray(r)&&r.length>0&&(r=r.map(s=>s&&typeof s=="object"?{...s,specType:this.specType}:s)),super.send(e,r)}}export{n as RedocTelemetry};
|
|
1
|
+
import{Telemetry as o}from"@redocly/redoc-opentelemetry";import c from"../../package.json"with{type:"json"};const p="https://otel.cloud.redocly.com/v1/traces";class n extends o{specType;constructor(e){super(),this.specType=e.specType,this.init({otel:{isProd:process.env.NODE_ENV==="production"||process.env.ENABLE_LOCAL_TELEMETRY==="true",serviceVersion:e.serviceVersion||`${c.name}@${c.version}`,version:"1.0.0",collectorTraceUrl:e.collectorUrl||p,serviceName:e.serviceName||"redoc-ce",tracerName:"client-telemetry"},disabled:e.disabled||!1})}send(e,r){r&&Array.isArray(r)&&r.length>0&&(r=r.map(s=>s&&typeof s=="object"?{...s,specType:this.specType}:s)),super.send(e,r,{env:process.env.NODE_ENV})}}export{n as RedocTelemetry};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@redocly/openapi-docs",
|
|
3
|
-
"version": "3.20.0-next.
|
|
3
|
+
"version": "3.20.0-next.7",
|
|
4
4
|
"description": "Redocly OpenAPI Docs",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "lib/index.js",
|
|
@@ -38,9 +38,9 @@
|
|
|
38
38
|
"url-template": "^2.0.8",
|
|
39
39
|
"util": "~0.12.5",
|
|
40
40
|
"web-vitals": "3.3.1",
|
|
41
|
-
"@redocly/config": "0.
|
|
41
|
+
"@redocly/config": "0.47.0",
|
|
42
42
|
"@redocly/redoc-opentelemetry": "0.0.8",
|
|
43
|
-
"@redocly/replay": "0.23.0-next.
|
|
43
|
+
"@redocly/replay": "0.23.0-next.5"
|
|
44
44
|
},
|
|
45
45
|
"devDependencies": {
|
|
46
46
|
"@shikijs/transformers": "3.21.0",
|
|
@@ -72,17 +72,17 @@
|
|
|
72
72
|
"url": "~0.11.0",
|
|
73
73
|
"vite": "7.2.6",
|
|
74
74
|
"vitest": "4.0.10",
|
|
75
|
-
"@redocly/theme": "0.64.0-next.
|
|
75
|
+
"@redocly/theme": "0.64.0-next.5"
|
|
76
76
|
},
|
|
77
77
|
"scripts": {
|
|
78
78
|
"start": "pnpm run copy-highlight-hook && vite",
|
|
79
79
|
"build": "pnpm run clean && pnpm run build:lib && pnpm run build:standalone",
|
|
80
80
|
"build:lib": "tsc -p tsconfig.build.json && node scripts/minify.js lib",
|
|
81
81
|
"build:standalone": "vite build && node scripts/minify.js dist",
|
|
82
|
-
"prepare:community-source": "
|
|
82
|
+
"prepare:community-source": "pnpm exec tsx scripts/prepare-community-source.ts --",
|
|
83
83
|
"prepare:community-source-only": "pnpm run prepare:community-source --ignore /src/* private-readme.md",
|
|
84
|
-
"prepare:community-dependencies": "
|
|
85
|
-
"apply:community-source": "
|
|
84
|
+
"prepare:community-dependencies": "pnpm exec tsx scripts/prepare-community-dependencies.ts",
|
|
85
|
+
"apply:community-source": "pnpm exec tsx scripts/apply-changes-from-community-source.ts",
|
|
86
86
|
"test": "vitest run",
|
|
87
87
|
"unit": "vitest run",
|
|
88
88
|
"unit:update": "vitest run -u",
|