@open-resource-discovery/metadata-renderer 1.0.0 → 1.1.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/README.md +1 -0
- package/dist/a2a/index.d.ts +1 -1
- package/dist/a2a.js +1 -1
- package/dist/asyncApi/asyncapi-browser.d.ts +10 -0
- package/dist/asyncApi/customAttributes/attributeLink.d.ts +1 -1
- package/dist/asyncApi/index.d.ts +2 -2
- package/dist/asyncapi.js +1 -1
- package/dist/chunks/{a2a-B5lkgqLU.js → a2a-BfdUdobQ.js} +1 -1
- package/dist/chunks/{asyncApi-K0uQpQwz.js → asyncApi-B7WZqXRI.js} +16 -153
- package/dist/chunks/{csn-D4GBs8tC.js → csn-CIBA2ds5.js} +58 -189
- package/dist/chunks/{mcp-qA5sYRAN.js → mcp-Yb3SHisP.js} +1 -1
- package/dist/chunks/{openApi-Ccp9Pa_k.js → openApi-sDysRKUP.js} +15 -323
- package/dist/chunks/overlay-CO0o6FYy.js +41 -0
- package/dist/chunks/{utils-BC3WF3-9.js → utils-BLQCpHkJ.js} +2 -0
- package/dist/core/ShadowRoot.d.ts +1 -1
- package/dist/core/dispatch.d.ts +3 -0
- package/dist/core/dispatch.test.d.ts +1 -0
- package/dist/core/index.d.ts +1 -1
- package/dist/core/utils.d.ts +1 -1
- package/dist/csn/customAttributes/postProcess.d.ts +1 -0
- package/dist/csn/customAttributes/postProcess.test.d.ts +1 -0
- package/dist/csn/index.d.ts +1 -2
- package/dist/csn.js +1 -1
- package/dist/entries/overlay.d.ts +2 -0
- package/dist/index.css +6815 -2141
- package/dist/index.d.ts +2 -0
- package/dist/index.js +650 -28
- package/dist/mcp/index.d.ts +1 -1
- package/dist/mcp.js +1 -1
- package/dist/openApi/customAttributes/attributeLink.d.ts +1 -1
- package/dist/openApi/index.d.ts +1 -2
- package/dist/openapi.js +1 -1
- package/dist/overlay/index.d.ts +7 -0
- package/dist/overlay.js +2 -0
- package/dist/styles.d.ts +1 -0
- package/dist/styles.js +1 -0
- package/dist/types.d.ts +1 -3
- package/dist/vendor.d.ts +1 -0
- package/package.json +30 -20
package/dist/mcp/index.d.ts
CHANGED
|
@@ -5,4 +5,4 @@ export type McpRendererProps = {
|
|
|
5
5
|
className?: string;
|
|
6
6
|
theme?: RendererTheme;
|
|
7
7
|
};
|
|
8
|
-
export declare function McpRenderer({ content, showValidation, className, theme }: McpRendererProps): import(
|
|
8
|
+
export declare function McpRenderer({ content, showValidation, className, theme }: McpRendererProps): import('react').JSX.Element;
|
package/dist/mcp.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { t as McpRenderer } from "./chunks/mcp-
|
|
1
|
+
import { t as McpRenderer } from "./chunks/mcp-Yb3SHisP.js";
|
|
2
2
|
export { McpRenderer };
|
package/dist/openApi/index.d.ts
CHANGED
|
@@ -2,9 +2,8 @@ import { RendererTheme } from '../types';
|
|
|
2
2
|
import { OpenApiCustomAttributesConfig } from './customAttributes/types';
|
|
3
3
|
export type OpenApiRendererProps = {
|
|
4
4
|
content: string;
|
|
5
|
-
showCustomAttributes?: boolean;
|
|
6
5
|
customAttributes?: OpenApiCustomAttributesConfig[];
|
|
7
6
|
className?: string;
|
|
8
7
|
theme?: RendererTheme;
|
|
9
8
|
};
|
|
10
|
-
export declare function OpenApiRenderer({ content,
|
|
9
|
+
export declare function OpenApiRenderer({ content, customAttributes, className, theme }: OpenApiRendererProps): import('react').JSX.Element;
|
package/dist/openapi.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { t as OpenApiRenderer } from "./chunks/openApi-
|
|
1
|
+
import { t as OpenApiRenderer } from "./chunks/openApi-sDysRKUP.js";
|
|
2
2
|
export { OpenApiRenderer };
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { RendererTheme } from '../types';
|
|
2
|
+
export type OverlayRendererProps = {
|
|
3
|
+
content: string;
|
|
4
|
+
className?: string;
|
|
5
|
+
theme?: RendererTheme;
|
|
6
|
+
};
|
|
7
|
+
export declare function OverlayRenderer({ content, className, theme }: OverlayRendererProps): import('react').JSX.Element;
|
package/dist/overlay.js
ADDED
package/dist/styles.d.ts
CHANGED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
package/dist/styles.js
CHANGED
package/dist/types.d.ts
CHANGED
|
@@ -28,9 +28,7 @@ export type MetadataRendererOptions = {
|
|
|
28
28
|
* show an error instead of passing content to the renderer. Default: true.
|
|
29
29
|
*/
|
|
30
30
|
strictTypeCheck?: boolean;
|
|
31
|
-
/**
|
|
32
|
-
showSAPCustomFields?: boolean;
|
|
33
|
-
/** Custom attribute renderers per protocol. Pass `false` to disable all. Default: SAP preset for OpenAPI. */
|
|
31
|
+
/** Custom attribute renderers per protocol. Pass `false` to disable all. Default: disabled. */
|
|
34
32
|
customAttributes?: CustomAttributesOptions | false;
|
|
35
33
|
/** Passed through to CsnRenderer. */
|
|
36
34
|
csn?: CsnRendererConfig;
|
package/dist/vendor.d.ts
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@open-resource-discovery/metadata-renderer",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.1.0",
|
|
4
4
|
"description": "React components that render OpenAPI, CSN, AsyncAPI, A2A, and MCP metadata documents.",
|
|
5
5
|
"author": "SAP SE",
|
|
6
6
|
"license": "Apache-2.0",
|
|
@@ -65,7 +65,15 @@
|
|
|
65
65
|
"import": "./dist/mcp.js",
|
|
66
66
|
"default": "./dist/mcp.js"
|
|
67
67
|
},
|
|
68
|
-
"./
|
|
68
|
+
"./overlay": {
|
|
69
|
+
"types": "./dist/entries/overlay.d.ts",
|
|
70
|
+
"import": "./dist/overlay.js",
|
|
71
|
+
"default": "./dist/overlay.js"
|
|
72
|
+
},
|
|
73
|
+
"./styles": {
|
|
74
|
+
"types": "./dist/styles.d.ts",
|
|
75
|
+
"default": "./dist/index.css"
|
|
76
|
+
}
|
|
69
77
|
},
|
|
70
78
|
"files": [
|
|
71
79
|
"dist",
|
|
@@ -100,12 +108,13 @@
|
|
|
100
108
|
},
|
|
101
109
|
"dependencies": {
|
|
102
110
|
"@asyncapi/react-component": "^3.1.3",
|
|
103
|
-
"@open-resource-discovery/a2a-editor": "^0.4.
|
|
104
|
-
"@open-resource-discovery/mcp-server-card-ui": "0.2.
|
|
111
|
+
"@open-resource-discovery/a2a-editor": "^0.4.6",
|
|
112
|
+
"@open-resource-discovery/mcp-server-card-ui": "^0.2.3",
|
|
113
|
+
"@open-resource-discovery/overlay-editor": "^0.2.3",
|
|
105
114
|
"@sap/csn-interop-renderer": "0.5.0",
|
|
106
115
|
"@scalar/api-reference-react": "^0.9.54",
|
|
107
116
|
"@scalar/react-renderer": "^0.4.1",
|
|
108
|
-
"@scalar/types": "^0.
|
|
117
|
+
"@scalar/types": "^0.24.0",
|
|
109
118
|
"react-error-boundary": "^6.0.0",
|
|
110
119
|
"react-markdown": "^10.1.0",
|
|
111
120
|
"yaml": "^2.8.1"
|
|
@@ -113,25 +122,26 @@
|
|
|
113
122
|
"overrides": {
|
|
114
123
|
"dompurify": ">=3.4.12",
|
|
115
124
|
"fast-uri": ">=3.1.5",
|
|
116
|
-
"undici": ">=7.29.0 <
|
|
125
|
+
"undici": ">=7.29.0 <9",
|
|
117
126
|
"postcss": ">=8.5.23",
|
|
118
|
-
"brace-expansion": ">=1.1.18"
|
|
127
|
+
"brace-expansion": ">=1.1.18",
|
|
128
|
+
"js-yaml": "4.3.2"
|
|
119
129
|
},
|
|
120
130
|
"devDependencies": {
|
|
121
131
|
"@sap/eslint-config": "0.5.2",
|
|
122
|
-
"@types/node": "
|
|
123
|
-
"@types/react": "19.
|
|
124
|
-
"@types/react-dom": "19.
|
|
125
|
-
"@vitejs/plugin-react": "6.
|
|
126
|
-
"eslint": "10.
|
|
127
|
-
"jsdom": "
|
|
128
|
-
"jsonc-eslint-parser": "3.
|
|
129
|
-
"prettier": "3.9.
|
|
130
|
-
"react": "19.
|
|
131
|
-
"react-dom": "19.
|
|
132
|
+
"@types/node": "26.6.5",
|
|
133
|
+
"@types/react": "19.3.0",
|
|
134
|
+
"@types/react-dom": "19.3.0",
|
|
135
|
+
"@vitejs/plugin-react": "6.1.2",
|
|
136
|
+
"eslint": "10.13.0",
|
|
137
|
+
"jsdom": "30.1.3",
|
|
138
|
+
"jsonc-eslint-parser": "3.3.0",
|
|
139
|
+
"prettier": "3.9.10",
|
|
140
|
+
"react": "19.3.1",
|
|
141
|
+
"react-dom": "19.3.1",
|
|
132
142
|
"typescript": "5.9.3",
|
|
133
|
-
"vite": "8.
|
|
134
|
-
"vite-plugin-dts": "
|
|
135
|
-
"vitest": "
|
|
143
|
+
"vite": "8.3.4",
|
|
144
|
+
"vite-plugin-dts": "5.1.2",
|
|
145
|
+
"vitest": "5.0.5"
|
|
136
146
|
}
|
|
137
147
|
}
|