api-console 6.6.37 → 6.6.39
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 +7 -3
- package/src/ApiConsole.js +11 -1
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.
|
|
4
|
+
"version": "6.6.39",
|
|
5
5
|
"license": "CPAL-1.0",
|
|
6
6
|
"main": "index.js",
|
|
7
7
|
"module": "index.js",
|
|
@@ -63,7 +63,7 @@
|
|
|
63
63
|
"@web/test-runner": "^0.12.5",
|
|
64
64
|
"@web/test-runner-playwright": "0.8.10",
|
|
65
65
|
"@web/test-runner-visual-regression": "^0.6.4",
|
|
66
|
-
"amf-client-js": "^4.
|
|
66
|
+
"amf-client-js": "^5.4.4",
|
|
67
67
|
"body-parser": "^1.19.0",
|
|
68
68
|
"deepmerge": "^4.2.1",
|
|
69
69
|
"es-dev-server": "^2.1.0",
|
|
@@ -148,6 +148,10 @@
|
|
|
148
148
|
]
|
|
149
149
|
},
|
|
150
150
|
"overrides": {
|
|
151
|
-
"playwright": "1.25.2"
|
|
151
|
+
"playwright": "1.25.2",
|
|
152
|
+
"unset-value": "2.0.1",
|
|
153
|
+
"semver": "7.5.4",
|
|
154
|
+
"decode-uri-component": "0.4.1",
|
|
155
|
+
"set-value": "4.1.0"
|
|
152
156
|
}
|
|
153
157
|
}
|
package/src/ApiConsole.js
CHANGED
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
/* eslint-disable lit-a11y/click-events-have-key-events */
|
|
2
1
|
/**
|
|
3
2
|
@license
|
|
4
3
|
Copyright 2018 The Advanced REST client authors <arc@mulesoft.com>
|
|
@@ -370,6 +369,7 @@ export class ApiConsole extends AmfHelperMixin(LitElement) {
|
|
|
370
369
|
super();
|
|
371
370
|
this._tryitHandler = this._tryitHandler.bind(this);
|
|
372
371
|
this._handleServerChange = this._handleServerChange.bind(this);
|
|
372
|
+
this._handleSelectionChange = this._handleSelectionChange.bind(this);
|
|
373
373
|
|
|
374
374
|
this.page = 'docs';
|
|
375
375
|
this.compatibility = false;
|
|
@@ -659,6 +659,15 @@ export class ApiConsole extends AmfHelperMixin(LitElement) {
|
|
|
659
659
|
this.serverValue = value;
|
|
660
660
|
}
|
|
661
661
|
|
|
662
|
+
/**
|
|
663
|
+
* Handler for the `apiselectionchange` event dispatched from the components.
|
|
664
|
+
* @param {CustomEvent} e
|
|
665
|
+
*/
|
|
666
|
+
_handleSelectionChange(e) {
|
|
667
|
+
const { value } = e.detail;
|
|
668
|
+
this.selectedShape = value;
|
|
669
|
+
}
|
|
670
|
+
|
|
662
671
|
render() {
|
|
663
672
|
return html`
|
|
664
673
|
${this._mainContentTemplate()}
|
|
@@ -769,6 +778,7 @@ export class ApiConsole extends AmfHelperMixin(LitElement) {
|
|
|
769
778
|
.eventsTarget="${eventsTarget}"
|
|
770
779
|
.credentialsSource="${credentialsSource}"
|
|
771
780
|
?persistCache="${persistCache}"
|
|
781
|
+
@api-request-panel-selection-changed="${this._handleSelectionChange}"
|
|
772
782
|
>
|
|
773
783
|
<slot name="custom-base-uri" slot="custom-base-uri"></slot>
|
|
774
784
|
</api-request-panel>`;
|