api-console 6.6.57 → 6.6.58

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/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "api-console",
3
3
  "description": "The API Console to automatically generate API documentation from RAML and OAS files.",
4
- "version": "6.6.57",
4
+ "version": "6.6.58",
5
5
  "license": "CPAL-1.0",
6
6
  "main": "index.js",
7
7
  "module": "index.js",
@@ -39,7 +39,7 @@
39
39
  "@anypoint-web-components/anypoint-button": "^1.1.1",
40
40
  "@api-components/amf-helper-mixin": "^4.5.36",
41
41
  "@api-components/api-console-ext-comm": "^3.0.0",
42
- "@api-components/api-documentation": "^6.1.7",
42
+ "@api-components/api-documentation": "^6.1.8",
43
43
  "@api-components/api-navigation": "^4.3.20",
44
44
  "@api-components/api-request": "^0.3.8",
45
45
  "@api-components/api-summary": "^4.6.16",
package/src/ApiConsole.js CHANGED
@@ -463,7 +463,8 @@ export class ApiConsole extends AmfHelperMixin(LitElement) {
463
463
  const webApi = this._computeApi(amf);
464
464
  this.webApi = webApi;
465
465
  this.methodName = this._computeMethodName(this.selectedShape, webApi);
466
- if (!this._isWebAPI(amf)) {
466
+ // Hide try-it panel for gRPC APIs or non-WebAPI models
467
+ if (!this._isWebAPI(amf) || this._isGrpcApi(amf)) {
467
468
  this._noTryItValue = true;
468
469
  }
469
470
  }
@@ -268,6 +268,8 @@ export class ApiConsoleApp extends ApiConsole {
268
268
  */
269
269
  async _processModelChange() {
270
270
  super._processModelChange();
271
+ // Update try-it panel visibility based on API type (gRPC detection)
272
+ this._updateRenderInlineTyit();
271
273
  this.apiTitle = this._computeApiTitle(this.webApi);
272
274
  await this.updateComplete;
273
275
  if (window.history.state) {