openapi-explorer 2.2.772 → 2.2.773
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.
@@ -630,10 +630,11 @@ export default class OpenApiExplorer extends LitElement {
|
|
630
630
|
|
631
631
|
// explorerLocation will get validated in the focused-endpoint-template
|
632
632
|
this.explorerLocation = elementId;
|
633
|
-
const
|
634
|
-
if (
|
635
|
-
|
633
|
+
const tagFoundByPath = this.resolvedSpec.tags.find(t => t.paths.some(p => p.elementId === elementId));
|
634
|
+
if (tagFoundByPath) {
|
635
|
+
tagFoundByPath.expanded = true;
|
636
636
|
}
|
637
|
+
|
637
638
|
// Convert to Async and to the background, so that we can be sure that the operation has been expanded and put into view before trying to directly scroll to it (or it won't be found in the next line and even if it is, it might not be able to be scrolled into view)
|
638
639
|
await sleep(0);
|
639
640
|
|
@@ -684,7 +685,7 @@ export default class OpenApiExplorer extends LitElement {
|
|
684
685
|
// Update Location Hash
|
685
686
|
replaceState(elementId);
|
686
687
|
newNavEl = this.shadowRoot.getElementById(`link-${elementId}`);
|
687
|
-
} else if (!elementId.match('cmp--') && !elementId.match('tag--')) {
|
688
|
+
} else if (!elementId.match('cmp--') && !elementId.match('tag--') && !elementId.match(/--h[12]$/)) {
|
688
689
|
this.shadowRoot.getElementById('operations-root').scrollIntoView({
|
689
690
|
behavior: 'auto',
|
690
691
|
block: 'start'
|
@@ -636,10 +636,11 @@ class OpenApiExplorer extends _lit.LitElement {
|
|
636
636
|
|
637
637
|
// explorerLocation will get validated in the focused-endpoint-template
|
638
638
|
this.explorerLocation = elementId;
|
639
|
-
const
|
640
|
-
if (
|
641
|
-
|
639
|
+
const tagFoundByPath = this.resolvedSpec.tags.find(t => t.paths.some(p => p.elementId === elementId));
|
640
|
+
if (tagFoundByPath) {
|
641
|
+
tagFoundByPath.expanded = true;
|
642
642
|
}
|
643
|
+
|
643
644
|
// Convert to Async and to the background, so that we can be sure that the operation has been expanded and put into view before trying to directly scroll to it (or it won't be found in the next line and even if it is, it might not be able to be scrolled into view)
|
644
645
|
await (0, _commonUtils.sleep)(0);
|
645
646
|
|
@@ -690,7 +691,7 @@ class OpenApiExplorer extends _lit.LitElement {
|
|
690
691
|
// Update Location Hash
|
691
692
|
(0, _commonUtils.replaceState)(elementId);
|
692
693
|
newNavEl = this.shadowRoot.getElementById(`link-${elementId}`);
|
693
|
-
} else if (!elementId.match('cmp--') && !elementId.match('tag--')) {
|
694
|
+
} else if (!elementId.match('cmp--') && !elementId.match('tag--') && !elementId.match(/--h[12]$/)) {
|
694
695
|
this.shadowRoot.getElementById('operations-root').scrollIntoView({
|
695
696
|
behavior: 'auto',
|
696
697
|
block: 'start'
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "openapi-explorer",
|
3
|
-
"version": "2.2.
|
3
|
+
"version": "2.2.773",
|
4
4
|
"description": "OpenAPI Explorer - API viewer with dynamically generated components, documentation, and interaction console",
|
5
5
|
"author": "Authress Developers <developers@authress.io>",
|
6
6
|
"type": "module",
|