diff --git a/packages/gatsby-theme-aio/package.json b/packages/gatsby-theme-aio/package.json index 1ddf159788..130fb6a1ce 100644 --- a/packages/gatsby-theme-aio/package.json +++ b/packages/gatsby-theme-aio/package.json @@ -1,6 +1,6 @@ { "name": "@adobe/gatsby-theme-aio", - "version": "4.14.10", + "version": "4.14.11-rc1", "description": "The Adobe I/O theme for building markdown powered sites", "main": "index.js", "license": "Apache-2.0", diff --git a/packages/gatsby-theme-aio/src/components/RedoclyAPIBlock/index.js b/packages/gatsby-theme-aio/src/components/RedoclyAPIBlock/index.js index c5d1614ef7..3af4a35e1d 100644 --- a/packages/gatsby-theme-aio/src/components/RedoclyAPIBlock/index.js +++ b/packages/gatsby-theme-aio/src/components/RedoclyAPIBlock/index.js @@ -31,6 +31,8 @@ const RedoclyAPIBlock = ({ jsonSampleExpandLevel = 2, generateCodeSamples = 'languages: [], skipOptionalParameters: false,', requestInterceptor = '', + tryItOpenEventHandler = '', + tryItSentEventHandler = '', }) => { const [isRedoclyLoading, setIsRedoclyLoading] = useState(true); @@ -75,6 +77,8 @@ const RedoclyAPIBlock = ({ jsonSampleExpandLevel: ${jsonSampleExpandLevel === all ? `'${jsonSampleExpandLevel}'` : jsonSampleExpandLevel}, ${generateCodeSamples ? "generateCodeSamples: { " + generateCodeSamples + "}," : ''} ${requestInterceptor ? "requestInterceptor: " + requestInterceptor + "," : ''} + ${tryItOpenEventHandler ? "tryItOpen: " + tryItOpenEventHandler + "," : ''} + ${tryItSentEventHandler ? "tryItSent: " + tryItSentEventHandler + "," : ''} hideLoading: true, theme: { ${typography ? "typography: { " + typography + "}," : ''} @@ -109,6 +113,8 @@ RedoclyAPIBlock.propTypes = { ]), generateCodeSamples: PropTypes.string, requestInterceptor: PropTypes.string, + tryItOpenEventHandler: PropTypes.string, + tryItSentEventHandler: PropTypes.string, }; export { RedoclyAPIBlock }; \ No newline at end of file