@redocly/marketing-pages 0.1.36 → 0.1.37

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,2 +1,7 @@
1
1
  import * as React from 'react';
2
- export default function Page(): React.JSX.Element;
2
+ interface PageProps {
3
+ RedoclyOpenAPIDocs: any;
4
+ safeSlugify: (str: string) => string;
5
+ }
6
+ export default function Page({ RedoclyOpenAPIDocs, safeSlugify }: PageProps): React.JSX.Element;
7
+ export {};
@@ -1,3 +1,3 @@
1
- import{useCommunicationManager as o}from"../hooks/useCommunicationManager";import r from"styled-components";import*as e from"react";import{RedoclyOpenAPIDocs as a,safeSlugify as s}from"@redocly/openapi-docs";import{useThemeManager as f}from"../hooks/useThemeManager";function d(){const[t,i]=e.useState(null);return o({definition:t,safeSlugify:s}),f(),e.useEffect(()=>{window.updateDefinition=n=>{i(n)},window.parent.onReady(window)},[t]),t?e.createElement(l,null,e.createElement(a,{store:{options:{routingBasePath:"/preview",disableRouter:!0,hideSidebar:!0,scrollYOffset:0,hideInfoMetadata:!0,feedback:{hide:!0}},definition:t}})):e.createElement("div",{style:{display:"flex",justifyContent:"center",alignItems:"center",height:"100vh",fontFamily:"system-ui, -apple-system, sans-serif",color:"#666"}},"No API definition available")}const l=r.div`
1
+ import{useCommunicationManager as a}from"../hooks/useCommunicationManager";import s from"styled-components";import*as e from"react";import{useThemeManager as d}from"../hooks/useThemeManager";function f({RedoclyOpenAPIDocs:i,safeSlugify:n}){const[t,r]=e.useState(null);return a({definition:t,safeSlugify:n}),d(),e.useEffect(()=>{window.updateDefinition=o=>{r(o)},window.parent.onReady(window)},[t]),t?e.createElement(l,null,e.createElement(i,{store:{options:{routingBasePath:"/preview",disableRouter:!0,hideSidebar:!0,scrollYOffset:0,hideInfoMetadata:!0,feedback:{hide:!0}},definition:t}})):e.createElement("div",{style:{display:"flex",justifyContent:"center",alignItems:"center",height:"100vh",fontFamily:"system-ui, -apple-system, sans-serif",color:"#666"}},"No API definition available")}const l=s.div`
2
2
  --sidebar-width: 0px;
3
- `;export{d as default};
3
+ `;export{f as default};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@redocly/marketing-pages",
3
- "version": "0.1.36",
3
+ "version": "0.1.37",
4
4
  "keywords": [],
5
5
  "author": "",
6
6
  "license": "UNLICENSED",
@@ -53,7 +53,6 @@
53
53
  "vitest": "^3.1.3"
54
54
  },
55
55
  "peerDependencies": {
56
- "@redocly/openapi-docs": "^3.14.1",
57
56
  "react": "^18.3.1",
58
57
  "react-dom": "^18.3.1",
59
58
  "styled-components": "^5.3.11 || ^6.0.0"
@@ -62,7 +61,6 @@
62
61
  "@changesets/cli": "^2.29.5",
63
62
  "@markdoc/markdoc": "0.5.1",
64
63
  "@redocly/config": "^0.24.0",
65
- "@redocly/openapi-docs": "^3.14.1",
66
64
  "@redocly/theme": "^0.53.0",
67
65
  "@shikijs/types": "3.4.0",
68
66
  "@types/js-yaml": "^4.0.9",