From 5fb12aaf21b78a2237552014861dcc5fa4f45f15 Mon Sep 17 00:00:00 2001 From: melissag-ensemble <120194874+melissag-ensemble@users.noreply.github.com> Date: Wed, 20 Mar 2024 15:44:43 -0700 Subject: [PATCH] chore(release): publish@4.11.8 (#1568) * hideTryItPanel optional param * chore(release): publish@4.11.8 --- README.md | 13 +++++++++++++ packages/gatsby-theme-aio/CHANGELOG.md | 6 ++++++ packages/gatsby-theme-aio/package.json | 2 +- .../src/components/RedoclyAPIBlock/index.js | 5 ++++- 4 files changed, 24 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 414bd90dde..143107fe49 100644 --- a/README.md +++ b/README.md @@ -104,6 +104,7 @@ Using a theme, all of your default configuration lives in an npm package. - [codeblock (optional)](#codeblock-optional) - [disableSidebar (optional)](#disablesidebar-optional) - [disableSearch (optional)](#disablesearch-optional) + - [hideTryItPanel (optional)](#hidetryitpanel-optional) - [JSDoc](#jsdoc) - [MDX](#mdx) - [Modular Content System](#modular-content-system) @@ -1163,6 +1164,18 @@ Defaults to ```false``` https://redocly.com/docs/api-reference-docs/configuration/functionality/#theme-object-openapi-schema +#### hideTryItPanel (optional) + +```js + +``` + +Disables the Try it console in the right panel. + +Defaults to ```false``` + +https://redocly.com/docs/api-reference-docs/configuration/functionality/#theme-object-openapi-schema + ### JSDoc We currently recommend to use the [JSDoc to markdown](https://github.com/jsdoc2md/jsdoc-to-markdown) converter. diff --git a/packages/gatsby-theme-aio/CHANGELOG.md b/packages/gatsby-theme-aio/CHANGELOG.md index 5a234c7e60..d601c1dff6 100644 --- a/packages/gatsby-theme-aio/CHANGELOG.md +++ b/packages/gatsby-theme-aio/CHANGELOG.md @@ -3,6 +3,12 @@ All notable changes to this project will be documented in this file. See [Conventional Commits](https://conventionalcommits.org) for commit guidelines. +## [4.11.8](https://github.com/adobe/aio-theme/compare/@adobe/gatsby-theme-aio@4.11.7...@adobe/gatsby-theme-aio@4.11.8) (2024-03-20) + +### Features + +* Add option to disable Try It widget [eef5338](https://github.com/adobe/aio-theme/commit/eef53381ba865693b311a43974f119e5b7a7419d) + ## [4.11.7](https://github.com/adobe/aio-theme/compare/@adobe/gatsby-theme-aio@4.11.4...@adobe/gatsby-theme-aio@4.11.7) (2024-03-13) ### Features diff --git a/packages/gatsby-theme-aio/package.json b/packages/gatsby-theme-aio/package.json index b7b16ae582..f6a9852f88 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.11.7", + "version": "4.11.8", "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 8f9de3e93b..8ee4d51540 100644 --- a/packages/gatsby-theme-aio/src/components/RedoclyAPIBlock/index.js +++ b/packages/gatsby-theme-aio/src/components/RedoclyAPIBlock/index.js @@ -23,7 +23,8 @@ const RedoclyAPIBlock = ({ typography = 'fontFamily: `adobe-clean, "Source Sans Pro", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Ubuntu, "Trebuchet MS", "Lucida Grande", sans-serif`', codeBlock = "tokens: { punctuation: { color: 'white' }}", disableSidebar = false, - disableSearch = false + disableSearch = false, + hideTryItPanel = false, }) => { const [isRedoclyLoading, setIsRedoclyLoading] = useState(true); @@ -62,6 +63,7 @@ const RedoclyAPIBlock = ({ {licenseKey: '${licenseKey}', disableSidebar: ${disableSidebar}, disableSearch: ${disableSearch}, + hideTryItPanel: ${hideTryItPanel}, hideLoading: true, theme: { ${typography ? "typography: { " + typography + "}," : ''} @@ -87,6 +89,7 @@ RedoclyAPIBlock.propTypes = { codeBlock: PropTypes.string, disableSidebar: PropTypes.bool, disableSearch: PropTypes.bool, + hideTryItPanel: PropTypes.bool, }; export { RedoclyAPIBlock }; \ No newline at end of file