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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "docula",
3
- "version": "1.11.0",
3
+ "version": "1.11.1",
4
4
  "description": "Beautiful Website for Your Projects",
5
5
  "type": "module",
6
6
  "main": "./dist/docula.js",
@@ -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
- var authTypeSelect = document.getElementById('api-auth-type');
111
- var authValueInput = document.getElementById('api-auth-value');
112
- var cookieStatusEl = document.getElementById('api-auth-cookie-status');
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.getElementById('api-auth-type');
277
- var authValue = document.getElementById('api-auth-value');
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];