docula 1.11.0 → 1.11.1
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
|
@@ -107,9 +107,10 @@ document.addEventListener('DOMContentLoaded', function() {
|
|
|
107
107
|
});
|
|
108
108
|
|
|
109
109
|
// Auth type selector: show/hide value input based on OpenAPI securitySchemes
|
|
110
|
-
|
|
111
|
-
var
|
|
112
|
-
var
|
|
110
|
+
// IDs are indexed for multi-spec (e.g. api-auth-type-0), so find by class
|
|
111
|
+
var authTypeSelect = document.querySelector('.api-auth__type');
|
|
112
|
+
var authValueInput = document.querySelector('.api-auth__value');
|
|
113
|
+
var cookieStatusEl = document.querySelector('.api-auth__cookie-status');
|
|
113
114
|
if (authTypeSelect && authValueInput) {
|
|
114
115
|
function getSelectedSchemeData() {
|
|
115
116
|
var option = authTypeSelect.options[authTypeSelect.selectedIndex];
|
|
@@ -273,8 +274,8 @@ document.addEventListener('DOMContentLoaded', function() {
|
|
|
273
274
|
});
|
|
274
275
|
|
|
275
276
|
// Inject global auth header from selected security scheme
|
|
276
|
-
var authType = document.
|
|
277
|
-
var authValue = document.
|
|
277
|
+
var authType = document.querySelector('.api-auth__type');
|
|
278
|
+
var authValue = document.querySelector('.api-auth__value');
|
|
278
279
|
var useCookieAuth = false;
|
|
279
280
|
if (authType && authType.value !== 'none') {
|
|
280
281
|
var authOption = authType.options[authType.selectedIndex];
|