@redocly/asyncapi-docs 1.5.0-custom.4 → 1.5.0-custom.5

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
- var c=Object.defineProperty;var s=Object.getOwnPropertyDescriptor;var f=Object.getOwnPropertyNames;var h=Object.prototype.hasOwnProperty;var m=(t,r)=>{for(var n in r)c(t,n,{get:r[n],enumerable:!0})},u=(t,r,n,o)=>{if(r&&typeof r=="object"||typeof r=="function")for(let i of f(r))!h.call(t,i)&&i!==n&&c(t,i,{get:()=>r[i],enumerable:!(o=s(r,i))||o.enumerable});return t};var j=t=>u(c({},"__esModule",{value:!0}),t);var y={};m(y,{Metadata:()=>x});module.exports=j(y);var e=require("react/jsx-runtime"),l=require("react"),d=require("@redocly/theme/components/Markdown/Markdown"),p=require("@redocly/theme/components/Typography/H3"),a=require("@redocly/theme/core/openapi");const M=["title","description"];function b([t,r]){return M.includes(t)?null:Array.isArray(r)?{key:t,value:r.filter(n=>typeof n!="object").join(", ")}:typeof r=="object"?null:{key:t,value:r}}function x({metadata:t,translate:r}){const n=(0,l.useMemo)(()=>Object.entries(t||{}).map(b).filter(a.isNotNull),[t]);return t?(0,e.jsxs)(d.Markdown,{children:[(0,e.jsx)(p.H3,{children:r("openapi.info.metadata.title","Metadata")}),(0,e.jsxs)("table",{className:"md",children:[(0,e.jsx)("thead",{children:(0,e.jsxs)("tr",{children:[(0,e.jsx)("th",{scope:"col",children:r("openapi.key","Key")}),(0,e.jsx)("th",{scope:"col",children:r("openapi.value","Value")})]})}),(0,e.jsx)("tbody",{children:n.map(({key:o,value:i})=>(0,e.jsxs)("tr",{children:[(0,e.jsx)("td",{children:o}),(0,e.jsx)("td",{children:typeof i=="string"&&i.match(/^https?:\/\//)?(0,e.jsx)("a",{href:i,target:"_blank",rel:"noreferrer",children:i}):String(i)})]},o))})]})]}):null}0&&(module.exports={Metadata});
1
+ var c=Object.defineProperty;var s=Object.getOwnPropertyDescriptor;var f=Object.getOwnPropertyNames;var h=Object.prototype.hasOwnProperty;var m=(e,r)=>{for(var n in r)c(e,n,{get:r[n],enumerable:!0})},u=(e,r,n,o)=>{if(r&&typeof r=="object"||typeof r=="function")for(let i of f(r))!h.call(e,i)&&i!==n&&c(e,i,{get:()=>r[i],enumerable:!(o=s(r,i))||o.enumerable});return e};var j=e=>u(c({},"__esModule",{value:!0}),e);var x={};m(x,{Metadata:()=>b});module.exports=j(x);var t=require("react/jsx-runtime"),l=require("react"),a=require("@redocly/theme/components/Markdown/Markdown"),d=require("@redocly/theme/components/Typography/H3"),p=require("@redocly/theme/core/openapi");const y=["title","description"];function M([e,r]){return y.includes(e)?null:Array.isArray(r)?{key:e,value:r.filter(n=>typeof n!="object").join(", ")}:typeof r=="object"?null:{key:e,value:r}}function b({metadata:e,translate:r}){const n=(0,l.useMemo)(()=>Object.entries(e||{}).map(M).filter(p.isNotNull).sort((o,i)=>o.key.localeCompare(i.key)),[e]);return e?(0,t.jsxs)(a.Markdown,{children:[(0,t.jsx)(d.H3,{children:r("openapi.info.metadata.title","Metadata")}),(0,t.jsxs)("table",{className:"md",children:[(0,t.jsx)("thead",{children:(0,t.jsxs)("tr",{children:[(0,t.jsx)("th",{scope:"col",children:r("openapi.key","Key")}),(0,t.jsx)("th",{scope:"col",children:r("openapi.value","Value")})]})}),(0,t.jsx)("tbody",{children:n.map(({key:o,value:i})=>(0,t.jsxs)("tr",{children:[(0,t.jsx)("td",{children:o}),(0,t.jsx)("td",{children:typeof i=="string"&&i.match(/^https?:\/\//)?(0,t.jsx)("a",{href:i,target:"_blank",rel:"noreferrer",children:i}):String(i)})]},o))})]})]}):null}0&&(module.exports={Metadata});
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@redocly/asyncapi-docs",
3
- "version": "1.5.0-custom.4",
3
+ "version": "1.5.0-custom.5",
4
4
  "description": "Async API docs for Redocly Realm",
5
5
  "main": "lib/index.js",
6
6
  "module": "lib/index.js",
@@ -39,9 +39,9 @@
39
39
  "react-router-dom": "^6.21.1",
40
40
  "styled-components": "5.3.11",
41
41
  "web-vitals": "3.3.1",
42
- "@redocly/theme": "0.60.0-custom.2",
43
42
  "@redocly/config": "0.38.0-custom.0",
44
- "@redocly/openapi-docs": "3.16.0-custom.3"
43
+ "@redocly/openapi-docs": "3.16.0-custom.4",
44
+ "@redocly/theme": "0.60.0-custom.2"
45
45
  },
46
46
  "peerDependencies": {
47
47
  "react": "^19.1.0"