openapi-explorer 0.8.299 → 0.8.300

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,6 +1,6 @@
1
1
  {
2
2
  "name": "openapi-explorer",
3
- "version": "0.8.299",
3
+ "version": "0.8.300",
4
4
  "description": "OpenAPI Explorer - API viewer with dynamically generated components, documentation, and interaction console",
5
5
  "author": "Rhosys Developers <developers@rhosys.ch>",
6
6
  "repository": {
@@ -463,6 +463,11 @@ export default class OpenApiExplorer extends LitElement {
463
463
  this.intersectionObserver.disconnect();
464
464
  }
465
465
  }
466
+ if (name === 'explorer-location') {
467
+ window.setTimeout(() => {
468
+ this.scrollTo(newVal);
469
+ }, 0);
470
+ }
466
471
  super.attributeChangedCallback(name, oldVal, newVal);
467
472
  }
468
473
 
@@ -524,10 +529,7 @@ export default class OpenApiExplorer extends LitElement {
524
529
  }
525
530
  }
526
531
 
527
- setSecuritySchemeToken(apiKeyId, token) {
528
- this.setAuthenticationConfiguration(apiKeyId, { token });
529
- }
530
-
532
+ // Public Method
531
533
  async setAuthenticationConfiguration(apiKeyId, { token, clientId, clientSecret, redirectUri }) {
532
534
  const securityObj = this.resolvedSpec && this.resolvedSpec.securitySchemes.find((v) => (v.apiKeyId === apiKeyId));
533
535
  if (!securityObj) {
@@ -107,23 +107,23 @@ export default function navbarTemplate() {
107
107
 
108
108
  <slot name="nav-section" class="custom-nav-section" data-content-id='section' @click = '${(e) => this.scrollToEventTarget(e, false)}'></slot>
109
109
 
110
- <slot name="operations-header">
111
- <div class="sticky-scroll-element">
112
- <div id='link-paths' class='nav-bar-section' part="navbar-operations-header">
113
- <div class='nav-bar-section-title'>OPERATIONS</div>
114
- <div style="display:flex; margin-left:10px;">
115
- ${this.renderStyle === 'focused' && this.resolvedSpec.tags.length > 1
116
- ? html`
117
- ${this.operationsCollapsed
118
- ? html`<div @click="${(e) => { expandCollapseAll.call(this, e, 'expand-all'); }}" style="font-size: 16px; transform: rotate(0deg); cursor: pointer;">▸</div>`
119
- : html`<div @click="${(e) => { expandCollapseAll.call(this, e, 'collapse-all'); }}" style="font-size: 16px; transform: rotate(90deg); cursor: pointer;">▸</div>`
120
- }`
121
- : ''
122
- }
123
- </div>
110
+ <div class="sticky-scroll-element">
111
+ <div class='nav-bar-section' part="navbar-operations-header">
112
+ <slot name="operations-header">
113
+ <div class='nav-bar-section-title'>OPERATIONS</div>
114
+ </slot>
115
+ <div style="" part="navbar-operations-header-collapse">
116
+ ${this.resolvedSpec.tags.length > 1
117
+ ? html`
118
+ ${this.operationsCollapsed
119
+ ? html`<div @click="${(e) => { expandCollapseAll.call(this, e, 'expand-all'); }}" style="font-size: 16px; transform: rotate(0deg); cursor: pointer;">▸</div>`
120
+ : html`<div @click="${(e) => { expandCollapseAll.call(this, e, 'collapse-all'); }}" style="font-size: 16px; transform: rotate(90deg); cursor: pointer;">▸</div>`
121
+ }`
122
+ : ''
123
+ }
124
124
  </div>
125
125
  </div>
126
- </slot>
126
+ </div>
127
127
 
128
128
  <!-- TAGS AND PATHS-->
129
129
  ${this.resolvedSpec.tags