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/CHANGELOG.md +1 -1
- package/dist/openapi-explorer.min.js +2 -2
- package/dist/openapi-explorer.min.js.LICENSE.txt +1 -1
- package/dist/openapi-explorer.min.js.LICENSE.txt.gz +0 -0
- package/dist/openapi-explorer.min.js.gz +0 -0
- package/dist/report.html +2 -2
- package/package.json +1 -1
- package/src/openapi-explorer.js +6 -4
- package/src/templates/navbar-template.js +15 -15
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "openapi-explorer",
|
|
3
|
-
"version": "0.8.
|
|
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": {
|
package/src/openapi-explorer.js
CHANGED
|
@@ -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
|
-
|
|
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
|
-
<
|
|
111
|
-
<div class="
|
|
112
|
-
<
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
}
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
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
|
-
</
|
|
126
|
+
</div>
|
|
127
127
|
|
|
128
128
|
<!-- TAGS AND PATHS-->
|
|
129
129
|
${this.resolvedSpec.tags
|