@api-components/api-navigation 4.3.19 → 4.3.21

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-components/api-navigation",
3
3
  "description": "An element to display the response body",
4
- "version": "4.3.19",
4
+ "version": "4.3.21",
5
5
  "license": "Apache-2.0",
6
6
  "main": "index.js",
7
7
  "module": "index.js",
@@ -599,13 +599,6 @@ export class ApiNavigation extends AmfHelperMixin(LitElement) {
599
599
  this._types = data.types;
600
600
  this._security = data.securitySchemes;
601
601
  this._endpoints = data.endpoints;
602
- try {
603
- const webApi = this._computeApi(model);
604
- const apiName = webApi ? this._getValue(webApi, this.ns.aml.vocabularies.core.name) : undefined;
605
- if (this._renderSummary && apiName) {
606
- this.summaryLabel = `${apiName} Overview`;
607
- }
608
- } catch (_) {}
609
602
  this._closeCollapses();
610
603
  setTimeout(() => {
611
604
  this._selectedChanged(this.selected);
@@ -1019,7 +1012,11 @@ export class ApiNavigation extends AmfHelperMixin(LitElement) {
1019
1012
  _appendEndpointItem(item, target) {
1020
1013
  const result = {};
1021
1014
 
1022
- let name = this._getValue(item, this.ns.aml.vocabularies.core.name);
1015
+ const voc = this.ns.aml.vocabularies;
1016
+ let name = this._getValue(item, voc.core.displayName);
1017
+ if (!name) {
1018
+ name = this._getValue(item, voc.core.name);
1019
+ }
1023
1020
  let path = /** @type string */ (this._getValue(
1024
1021
  item,
1025
1022
  this.ns.raml.vocabularies.apiContract.path