@redocly/openapi-docs 3.15.0-rc.2 → 3.15.0-rc.3
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,15 +1,15 @@
|
|
|
1
|
-
import{jsx as
|
|
2
|
-
${
|
|
1
|
+
import{jsx as i,jsxs as s,Fragment as c}from"react/jsx-runtime";import*as g from"react";import{NewTabButton as f}from"@redocly/theme/components/Buttons/NewTabButton";import{PageActions as p}from"@redocly/theme/components/PageActions/PageActions";import{Tag as d}from"@redocly/theme/components/Tag/Tag";import{CheckmarkIcon as P}from"@redocly/theme/icons/CheckmarkIcon/CheckmarkIcon";import{MCP_SERVER_CAPABILITIES as E,MCP_SERVER_EXPERIMENTAL_CAPABILITIES as C,PAGE_ACTIONS_MCP as m}from"../../utils/mcp.js";import{PanelItem as r}from"../PanelItem/PanelItem.js";import{Item as _,PanelItemsList as j,Title as x}from"../PanelItem/styled.js";import{useTranslate as A}from"../../hooks/index.js";import{styled as n}from"../../styled-components.js";function v({mcpInfo:e,mcpServers:a}){const o=A();function h(t){return typeof e?.capabilities[t]=="object"&&e?.capabilities[t]?.listChanged}function u(t){return typeof e?.capabilities[t]=="object"&&e?.capabilities[t]?.subscribe}return s(T,{children:[e?.protocolVersion&&i(r,{header:o("openapi.mcp.protocolVersion","Protocol version"),title:e.protocolVersion}),e?.capabilities&&i(r,{header:o("openapi.mcp.capabilities","Capabilities"),title:i(c,{children:E.map(t=>e?.capabilities[t]?s(d,{size:"small",icon:i(P,{}),children:[t,h(t)?" (list changed)":"",u(t)?" (subscribe)":""]},t):null)})}),e?.capabilities[C]&&i(r,{header:o("openapi.mcp.experimentalCapabilities","Experimental capabilities"),title:i(L,{children:Object.entries(e?.capabilities.experimental||{}).map(([t,l])=>s(g.Fragment,{children:[s("span",{children:[t,":"]}),i(d,{children:typeof l=="object"?JSON.stringify(l):String(l)})]},t))})}),i(r,{header:o("openapi.mcp.endpoint","Endpoint"),title:i(c,{children:a[0]?.url}),actions:[i(f,{data:a[0]?.url},"NewTabButton")]}),!!a[0]?.url&&i(r,{title:i(b,{children:i(p,{actions:m,mcpUrl:a[0]?.url})})}),i(r,{title:i(b,{children:i(p,{actions:m,mcpUrl:a[0]?.url})})})]})}const T=n(j)`
|
|
2
|
+
${_}, ${x} {
|
|
3
3
|
overflow: visible;
|
|
4
4
|
}
|
|
5
|
-
`,
|
|
5
|
+
`,b=n.div`
|
|
6
6
|
& button {
|
|
7
7
|
width: 100%;
|
|
8
8
|
}
|
|
9
9
|
> div {
|
|
10
10
|
padding: 0;
|
|
11
11
|
}
|
|
12
|
-
`,L=
|
|
12
|
+
`,L=n.div`
|
|
13
13
|
display: grid;
|
|
14
14
|
grid-template-columns: 1fr 2fr;
|
|
15
15
|
gap: 10px;
|
|
@@ -17,4 +17,4 @@ import{jsx as t,jsxs as o,Fragment as c}from"react/jsx-runtime";import*as b from
|
|
|
17
17
|
> * {
|
|
18
18
|
justify-self: start;
|
|
19
19
|
}
|
|
20
|
-
`;export{
|
|
20
|
+
`;export{v as McpOverview};
|
package/lib/utils/mcp.d.ts
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
export declare const MCP_SERVER_CAPABILITIES: string[];
|
|
2
2
|
export declare const MCP_SERVER_EXPERIMENTAL_CAPABILITIES = "experimental";
|
|
3
|
-
export declare const PAGE_ACTIONS_MCP:
|
|
3
|
+
export declare const PAGE_ACTIONS_MCP: "mcp-json"[];
|
package/lib/utils/mcp.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const o=["tools","resources","prompts","logging","subscribe","completions"],s="experimental",
|
|
1
|
+
const o=["tools","resources","prompts","logging","subscribe","completions"],s="experimental",e=["mcp-json"];export{o as MCP_SERVER_CAPABILITIES,s as MCP_SERVER_EXPERIMENTAL_CAPABILITIES,e as PAGE_ACTIONS_MCP};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@redocly/openapi-docs",
|
|
3
|
-
"version": "3.15.0-rc.
|
|
3
|
+
"version": "3.15.0-rc.3",
|
|
4
4
|
"description": "Redocly OpenAPI Docs",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "lib/index.js",
|
|
@@ -36,8 +36,8 @@
|
|
|
36
36
|
"url-template": "^2.0.8",
|
|
37
37
|
"util": "~0.12.5",
|
|
38
38
|
"web-vitals": "3.3.1",
|
|
39
|
-
"@redocly/
|
|
40
|
-
"@redocly/
|
|
39
|
+
"@redocly/replay": "0.18.0-rc.1",
|
|
40
|
+
"@redocly/config": "0.36.0-rc.1"
|
|
41
41
|
},
|
|
42
42
|
"devDependencies": {
|
|
43
43
|
"@jest/globals": "29.5.0",
|