@scalar/api-reference 1.24.20 → 1.24.23

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.
Files changed (225) hide show
  1. package/CHANGELOG.md +48 -0
  2. package/dist/browser/standalone.js +22673 -23143
  3. package/dist/browser/webpack-stats.json +1 -1
  4. package/dist/components/ApiClientModal.vue.d.ts.map +1 -1
  5. package/dist/components/ApiClientModal.vue.js +19 -18
  6. package/dist/components/ApiClientModal.vue3.js +5 -0
  7. package/dist/components/ApiReference.vue.js +14 -14
  8. package/dist/components/ApiReferenceLayout.vue.d.ts +2 -2
  9. package/dist/components/ApiReferenceLayout.vue.d.ts.map +1 -1
  10. package/dist/components/ApiReferenceLayout.vue.js +2 -2
  11. package/dist/components/ApiReferenceLayout.vue2.js +123 -155
  12. package/dist/components/Content/Authentication/Authentication.vue.d.ts.map +1 -1
  13. package/dist/components/Content/Authentication/Authentication.vue.js +2 -2
  14. package/dist/components/Content/Authentication/Authentication.vue2.js +20 -18
  15. package/dist/components/Content/Content.vue.d.ts +3 -3
  16. package/dist/components/Content/Content.vue.d.ts.map +1 -1
  17. package/dist/components/Content/Content.vue.js +2 -2
  18. package/dist/components/Content/Content.vue2.js +72 -93
  19. package/dist/components/Content/Lazy/Loading.vue.js +1 -1
  20. package/dist/components/Content/Operation/CustomRequestExamples.vue.d.ts.map +1 -1
  21. package/dist/components/Content/Operation/CustomRequestExamples.vue.js +1 -1
  22. package/dist/components/Content/Operation/CustomRequestExamples.vue2.js +19 -19
  23. package/dist/components/Content/Operation/ExampleRequest.vue.d.ts.map +1 -1
  24. package/dist/components/Content/Operation/ExampleRequest.vue.js +2 -2
  25. package/dist/components/Content/Operation/ExampleRequest.vue2.js +63 -59
  26. package/dist/components/Content/Operation/OperationAccordion.vue.d.ts.map +1 -1
  27. package/dist/components/Content/Operation/OperationAccordion.vue.js +1 -1
  28. package/dist/components/Content/Operation/OperationAccordion.vue2.js +26 -26
  29. package/dist/components/Content/Operation/TestRequestButton.vue.d.ts.map +1 -1
  30. package/dist/components/Content/Operation/TestRequestButton.vue.js +2 -2
  31. package/dist/components/Content/Operation/TestRequestButton.vue2.js +18 -36
  32. package/dist/components/Content/Schema/Schema.vue.d.ts +2 -2
  33. package/dist/components/Content/Schema/SchemaHeading.vue.d.ts +2 -2
  34. package/dist/components/Content/Tag/Endpoints.vue.d.ts.map +1 -1
  35. package/dist/components/Content/Tag/Endpoints.vue.js +2 -2
  36. package/dist/components/Content/Tag/Endpoints.vue2.js +23 -23
  37. package/dist/components/HttpMethod/HttpMethod.vue.d.ts +42 -0
  38. package/dist/components/HttpMethod/HttpMethod.vue.d.ts.map +1 -0
  39. package/dist/components/HttpMethod/HttpMethod.vue.js +28 -0
  40. package/dist/components/HttpMethod/HttpMethod.vue2.js +4 -0
  41. package/dist/components/HttpMethod/constants.d.ts +9 -0
  42. package/dist/components/HttpMethod/constants.d.ts.map +1 -0
  43. package/dist/components/HttpMethod/constants.js +36 -0
  44. package/dist/components/HttpMethod/index.d.ts +2 -0
  45. package/dist/components/HttpMethod/index.d.ts.map +1 -0
  46. package/dist/components/HttpMethod/utils/isRequestMethod.d.ts +4 -0
  47. package/dist/components/HttpMethod/utils/isRequestMethod.d.ts.map +1 -0
  48. package/dist/components/HttpMethod/utils/isRequestMethod.js +7 -0
  49. package/dist/components/Sidebar/SidebarHttpBadge.vue.js +1 -1
  50. package/dist/components/Sidebar/SidebarHttpBadge.vue2.js +6 -6
  51. package/dist/components/api-client-bus.d.ts +1 -1
  52. package/dist/components/api-client-bus.d.ts.map +1 -1
  53. package/dist/features/BaseUrl/BaseUrl.vue.d.ts +40 -0
  54. package/dist/features/BaseUrl/BaseUrl.vue.d.ts.map +1 -0
  55. package/dist/features/BaseUrl/BaseUrl.vue.js +97 -0
  56. package/dist/features/BaseUrl/BaseUrl.vue2.js +4 -0
  57. package/dist/features/BaseUrl/ServerForm.vue.d.ts +41 -0
  58. package/dist/features/BaseUrl/ServerForm.vue.d.ts.map +1 -0
  59. package/dist/features/BaseUrl/ServerForm.vue.js +7 -0
  60. package/dist/features/BaseUrl/ServerForm.vue2.js +66 -0
  61. package/dist/{components/Content/BaseUrl/ServerItem.vue.d.ts → features/BaseUrl/ServerUrl.vue.d.ts} +6 -6
  62. package/dist/features/BaseUrl/ServerUrl.vue.d.ts.map +1 -0
  63. package/dist/features/BaseUrl/ServerUrl.vue.js +8 -0
  64. package/dist/features/BaseUrl/ServerUrl.vue2.js +29 -0
  65. package/dist/{components/ApiClientModalOld.vue.d.ts → features/BaseUrl/ServerUrlSelect.vue.d.ts} +9 -15
  66. package/dist/features/BaseUrl/ServerUrlSelect.vue.d.ts.map +1 -0
  67. package/dist/features/BaseUrl/ServerUrlSelect.vue.js +7 -0
  68. package/dist/features/BaseUrl/ServerUrlSelect.vue2.js +56 -0
  69. package/dist/features/BaseUrl/ServerVariablesForm.vue.d.ts +23 -0
  70. package/dist/features/BaseUrl/ServerVariablesForm.vue.d.ts.map +1 -0
  71. package/dist/features/BaseUrl/ServerVariablesForm.vue.js +7 -0
  72. package/dist/features/BaseUrl/ServerVariablesForm.vue2.js +53 -0
  73. package/dist/{components/Content/BaseUrl/ServerVariableSelect.vue.d.ts → features/BaseUrl/ServerVariablesSelect.vue.d.ts} +1 -1
  74. package/dist/features/BaseUrl/ServerVariablesSelect.vue.d.ts.map +1 -0
  75. package/dist/features/BaseUrl/ServerVariablesSelect.vue.js +7 -0
  76. package/dist/{components/Content/BaseUrl/ServerVariableSelect.vue2.js → features/BaseUrl/ServerVariablesSelect.vue2.js} +1 -1
  77. package/dist/{components/Content/BaseUrl/ServerVariableTextbox.vue.d.ts → features/BaseUrl/ServerVariablesTextbox.vue.d.ts} +1 -1
  78. package/dist/features/BaseUrl/ServerVariablesTextbox.vue.d.ts.map +1 -0
  79. package/dist/features/BaseUrl/ServerVariablesTextbox.vue.js +7 -0
  80. package/dist/{components/Content/BaseUrl/ServerVariableTextbox.vue2.js → features/BaseUrl/ServerVariablesTextbox.vue2.js} +6 -6
  81. package/dist/features/BaseUrl/index.d.ts +3 -0
  82. package/dist/features/BaseUrl/index.d.ts.map +1 -0
  83. package/dist/features/BaseUrl/types.d.ts +10 -0
  84. package/dist/features/BaseUrl/types.d.ts.map +1 -0
  85. package/dist/features/BaseUrl/utils/getServers.d.ts +15 -0
  86. package/dist/features/BaseUrl/utils/getServers.d.ts.map +1 -0
  87. package/dist/features/BaseUrl/utils/getServers.js +29 -0
  88. package/dist/features/BaseUrl/utils/index.d.ts +2 -0
  89. package/dist/features/BaseUrl/utils/index.d.ts.map +1 -0
  90. package/dist/helpers/createEmptySpecification.d.ts +1 -1
  91. package/dist/helpers/createEmptySpecification.d.ts.map +1 -1
  92. package/dist/helpers/createEmptySpecification.js +5 -4
  93. package/dist/helpers/getApiClientRequest.d.ts +1 -1
  94. package/dist/helpers/getApiClientRequest.d.ts.map +1 -1
  95. package/dist/helpers/getApiClientRequest.js +12 -11
  96. package/dist/helpers/getModels.d.ts +1 -1
  97. package/dist/helpers/index.d.ts +1 -1
  98. package/dist/helpers/index.d.ts.map +1 -1
  99. package/dist/helpers/openClientFor.js +10 -7
  100. package/dist/helpers/parse.d.ts.map +1 -1
  101. package/dist/helpers/parse.js +33 -31
  102. package/dist/hooks/useReactiveSpec.d.ts +9 -9
  103. package/dist/hooks/useSidebar.js +18 -17
  104. package/dist/index.d.ts +0 -2
  105. package/dist/index.d.ts.map +1 -1
  106. package/dist/index.js +101 -102
  107. package/dist/legacy/components/CardForm.vue.d.ts +10 -0
  108. package/dist/legacy/components/CardForm.vue.d.ts.map +1 -0
  109. package/dist/legacy/components/CardForm.vue.js +13 -0
  110. package/dist/legacy/components/CardFormButton.vue.d.ts +12 -0
  111. package/dist/legacy/components/CardFormButton.vue.d.ts.map +1 -0
  112. package/dist/legacy/components/CardFormButton.vue.js +7 -0
  113. package/dist/legacy/components/CardFormButton.vue2.js +18 -0
  114. package/dist/legacy/components/CardFormGroup.vue.d.ts +10 -0
  115. package/dist/legacy/components/CardFormGroup.vue.d.ts.map +1 -0
  116. package/dist/legacy/components/CardFormGroup.vue.js +13 -0
  117. package/dist/legacy/components/CardFormRows.vue.d.ts +10 -0
  118. package/dist/legacy/components/CardFormRows.vue.d.ts.map +1 -0
  119. package/dist/legacy/components/CardFormRows.vue.js +13 -0
  120. package/dist/legacy/components/CardFormTextInput.vue.d.ts +25 -0
  121. package/dist/legacy/components/CardFormTextInput.vue.d.ts.map +1 -0
  122. package/dist/legacy/components/CardFormTextInput.vue.js +7 -0
  123. package/dist/legacy/components/CardFormTextInput.vue2.js +37 -0
  124. package/dist/{components/Content/BaseUrl/ServerVariables.vue.d.ts → legacy/components/SecurityScheme.vue.d.ts} +6 -4
  125. package/dist/legacy/components/SecurityScheme.vue.d.ts.map +1 -0
  126. package/dist/legacy/components/SecurityScheme.vue.js +7 -0
  127. package/dist/legacy/components/SecurityScheme.vue2.js +364 -0
  128. package/dist/legacy/components/SecuritySchemeScopes.vue.d.ts +26 -0
  129. package/dist/legacy/components/SecuritySchemeScopes.vue.d.ts.map +1 -0
  130. package/dist/legacy/components/SecuritySchemeScopes.vue.js +7 -0
  131. package/dist/legacy/components/SecuritySchemeScopes.vue2.js +91 -0
  132. package/dist/legacy/components/SecuritySchemeSelector.vue.d.ts +25 -0
  133. package/dist/legacy/components/SecuritySchemeSelector.vue.d.ts.map +1 -0
  134. package/dist/legacy/components/SecuritySchemeSelector.vue.js +7 -0
  135. package/dist/legacy/components/SecuritySchemeSelector.vue2.js +64 -0
  136. package/dist/legacy/fixtures/httpHeaders.d.ts +6 -0
  137. package/dist/legacy/fixtures/httpHeaders.d.ts.map +1 -0
  138. package/dist/legacy/fixtures/httpRequestMethods.d.ts +10 -0
  139. package/dist/legacy/fixtures/httpRequestMethods.d.ts.map +1 -0
  140. package/dist/legacy/fixtures/httpRequestMethods.js +18 -0
  141. package/dist/legacy/fixtures/index.d.ts +3 -0
  142. package/dist/legacy/fixtures/index.d.ts.map +1 -0
  143. package/dist/legacy/helpers/createPlaceholderRequest.d.ts +6 -0
  144. package/dist/legacy/helpers/createPlaceholderRequest.d.ts.map +1 -0
  145. package/dist/legacy/helpers/createPlaceholderRequest.js +14 -0
  146. package/dist/legacy/helpers/encodeStringAsBase64.d.ts +5 -0
  147. package/dist/legacy/helpers/encodeStringAsBase64.d.ts.map +1 -0
  148. package/dist/legacy/helpers/encodeStringAsBase64.js +6 -0
  149. package/dist/legacy/helpers/getRequestFromAuthentication.d.ts +10 -0
  150. package/dist/legacy/helpers/getRequestFromAuthentication.d.ts.map +1 -0
  151. package/dist/legacy/helpers/getRequestFromAuthentication.js +83 -0
  152. package/dist/legacy/helpers/getUrlFromServerState.d.ts +6 -0
  153. package/dist/legacy/helpers/getUrlFromServerState.d.ts.map +1 -0
  154. package/dist/legacy/helpers/getUrlFromServerState.js +9 -0
  155. package/dist/legacy/helpers/humanDiff.d.ts +5 -0
  156. package/dist/legacy/helpers/humanDiff.d.ts.map +1 -0
  157. package/dist/legacy/helpers/index.d.ts +12 -0
  158. package/dist/legacy/helpers/index.d.ts.map +1 -0
  159. package/dist/legacy/helpers/mapFromArray.d.ts +5 -0
  160. package/dist/legacy/helpers/mapFromArray.d.ts.map +1 -0
  161. package/dist/legacy/helpers/normalizeHeaders.d.ts +9 -0
  162. package/dist/legacy/helpers/normalizeHeaders.d.ts.map +1 -0
  163. package/dist/legacy/helpers/normalizePath.d.ts +5 -0
  164. package/dist/legacy/helpers/normalizePath.d.ts.map +1 -0
  165. package/dist/legacy/helpers/normalizeRequestMethod.d.ts +6 -0
  166. package/dist/legacy/helpers/normalizeRequestMethod.d.ts.map +1 -0
  167. package/dist/legacy/helpers/normalizeRequestMethod.js +14 -0
  168. package/dist/legacy/helpers/normalizeUrl.d.ts +5 -0
  169. package/dist/legacy/helpers/normalizeUrl.d.ts.map +1 -0
  170. package/dist/legacy/helpers/prepareClientRequestConfig.d.ts +24 -0
  171. package/dist/legacy/helpers/prepareClientRequestConfig.d.ts.map +1 -0
  172. package/dist/legacy/index.d.ts +5 -0
  173. package/dist/legacy/index.d.ts.map +1 -0
  174. package/dist/legacy/stores/index.d.ts +6 -0
  175. package/dist/legacy/stores/index.d.ts.map +1 -0
  176. package/dist/legacy/stores/useApiClientStore.d.ts +18 -0
  177. package/dist/legacy/stores/useApiClientStore.d.ts.map +1 -0
  178. package/dist/legacy/stores/useApiClientStore.js +32 -0
  179. package/dist/legacy/stores/useAuthenticationStore.d.ts +59 -0
  180. package/dist/legacy/stores/useAuthenticationStore.d.ts.map +1 -0
  181. package/dist/legacy/stores/useAuthenticationStore.js +36 -0
  182. package/dist/legacy/stores/useOpenApiStore.d.ts +95 -0
  183. package/dist/legacy/stores/useOpenApiStore.d.ts.map +1 -0
  184. package/dist/legacy/stores/useOpenApiStore.js +23 -0
  185. package/dist/legacy/stores/useRequestStore.d.ts +58 -0
  186. package/dist/legacy/stores/useRequestStore.d.ts.map +1 -0
  187. package/dist/legacy/stores/useRequestStore.js +33 -0
  188. package/dist/legacy/stores/useServerStore.d.ts +18 -0
  189. package/dist/legacy/stores/useServerStore.d.ts.map +1 -0
  190. package/dist/legacy/stores/useServerStore.js +18 -0
  191. package/dist/legacy/types.d.ts +117 -0
  192. package/dist/legacy/types.d.ts.map +1 -0
  193. package/dist/stores/index.d.ts +1 -0
  194. package/dist/stores/index.d.ts.map +1 -1
  195. package/dist/style.css +1 -1
  196. package/dist/types.d.ts +8 -11
  197. package/dist/types.d.ts.map +1 -1
  198. package/package.json +16 -15
  199. package/dist/components/ApiClientModal.vue2.js +0 -4
  200. package/dist/components/ApiClientModalOld.vue.d.ts.map +0 -1
  201. package/dist/components/ApiClientModalOld.vue.js +0 -7
  202. package/dist/components/ApiClientModalOld.vue2.js +0 -88
  203. package/dist/components/Content/BaseUrl/BaseUrl.vue.d.ts +0 -3
  204. package/dist/components/Content/BaseUrl/BaseUrl.vue.d.ts.map +0 -1
  205. package/dist/components/Content/BaseUrl/BaseUrl.vue.js +0 -7
  206. package/dist/components/Content/BaseUrl/BaseUrl.vue2.js +0 -90
  207. package/dist/components/Content/BaseUrl/ServerItem.vue.d.ts.map +0 -1
  208. package/dist/components/Content/BaseUrl/ServerItem.vue.js +0 -8
  209. package/dist/components/Content/BaseUrl/ServerItem.vue2.js +0 -35
  210. package/dist/components/Content/BaseUrl/ServerVariableSelect.vue.d.ts.map +0 -1
  211. package/dist/components/Content/BaseUrl/ServerVariableSelect.vue.js +0 -7
  212. package/dist/components/Content/BaseUrl/ServerVariableTextbox.vue.d.ts.map +0 -1
  213. package/dist/components/Content/BaseUrl/ServerVariableTextbox.vue.js +0 -7
  214. package/dist/components/Content/BaseUrl/ServerVariables.vue.d.ts.map +0 -1
  215. package/dist/components/Content/BaseUrl/ServerVariables.vue.js +0 -7
  216. package/dist/components/Content/BaseUrl/ServerVariables.vue2.js +0 -47
  217. package/dist/components/Content/BaseUrl/index.d.ts +0 -2
  218. package/dist/components/Content/BaseUrl/index.d.ts.map +0 -1
  219. package/dist/components/Content/Schema/SchemaProperty.spec.d.ts +0 -2
  220. package/dist/components/Content/Schema/SchemaProperty.spec.d.ts.map +0 -1
  221. package/dist/features.d.ts +0 -8
  222. package/dist/features.d.ts.map +0 -1
  223. package/dist/features.js +0 -5
  224. package/dist/standalone.spec.d.ts +0 -2
  225. package/dist/standalone.spec.d.ts.map +0 -1
@@ -1 +1 @@
1
- {"version":3,"file":"ApiClientModal.vue.d.ts","sourceRoot":"","sources":["../../src/components/ApiClientModal.vue"],"names":[],"mappings":"AA8CA,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,mBAAmB,CAAA;;;;;;;;AA+E1D,wBAMG;AAOH,KAAK,sBAAsB,CAAC,CAAC,IAAI,CAAC,SAAS,SAAS,GAAG,KAAK,GAAG,CAAC,CAAC;AAC5D,KAAK,uBAAuB,CAAC,CAAC,IAAI;KAChC,CAAC,IAAI,MAAM,CAAC,CAAC,CAAC,GAAG,EAAE,SAAS,IAAI,CAAC,CAAC,EAAE,CAAC,CAAC,GACpC;QAAE,IAAI,EAAE,OAAO,KAAK,EAAE,QAAQ,CAAC,sBAAsB,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAA;KAAE,GAC9D;QAAE,IAAI,EAAE,OAAO,KAAK,EAAE,QAAQ,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;QAAC,QAAQ,EAAE,IAAI,CAAA;KAAE;CACzD,CAAC"}
1
+ {"version":3,"file":"ApiClientModal.vue.d.ts","sourceRoot":"","sources":["../../src/components/ApiClientModal.vue"],"names":[],"mappings":"AA8DA,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,mBAAmB,CAAA;;;;;;;;AAoF1D,wBAMG;AAOH,KAAK,sBAAsB,CAAC,CAAC,IAAI,CAAC,SAAS,SAAS,GAAG,KAAK,GAAG,CAAC,CAAC;AAC5D,KAAK,uBAAuB,CAAC,CAAC,IAAI;KAChC,CAAC,IAAI,MAAM,CAAC,CAAC,CAAC,GAAG,EAAE,SAAS,IAAI,CAAC,CAAC,EAAE,CAAC,CAAC,GACpC;QAAE,IAAI,EAAE,OAAO,KAAK,EAAE,QAAQ,CAAC,sBAAsB,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAA;KAAE,GAC9D;QAAE,IAAI,EAAE,OAAO,KAAK,EAAE,QAAQ,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;QAAC,QAAQ,EAAE,IAAI,CAAA;KAAE;CACzD,CAAC"}
@@ -1,32 +1,33 @@
1
- import { defineComponent as c, ref as s, onMounted as u, openBlock as m, createElementBlock as f } from "vue";
2
- import { useAuthenticationStore as d } from "@scalar/api-client";
3
- import { modalStateBus as _, apiClientBus as x } from "./api-client-bus.js";
4
- const B = /* @__PURE__ */ c({
1
+ import { defineComponent as u, ref as f, onMounted as d, openBlock as S, createElementBlock as v } from "vue";
2
+ import { modalStateBus as _, apiClientBus as U } from "./api-client-bus.js";
3
+ import { getUrlFromServerState as x } from "../legacy/helpers/getUrlFromServerState.js";
4
+ import { useAuthenticationStore as y } from "../legacy/stores/useAuthenticationStore.js";
5
+ import { useServerStore as h } from "../legacy/stores/useServerStore.js";
6
+ const M = /* @__PURE__ */ u({
5
7
  __name: "ApiClientModal",
6
8
  props: {
7
9
  proxyUrl: {},
8
10
  spec: {}
9
11
  },
10
- setup(a) {
11
- const t = a, e = s(null), { authentication: p } = d();
12
- return u(async () => {
12
+ setup(p) {
13
+ const t = p, e = f(null), { authentication: i } = y(), { server: l } = h();
14
+ return d(async () => {
13
15
  if (!e.value) return;
14
- const { createScalarApiClient: o } = await import("@scalar/api-client-modal"), { modalState: n, open: i, updateAuth: l } = await o(
15
- e.value,
16
- {
17
- spec: t.spec ?? {},
18
- proxyUrl: t.proxyUrl
19
- }
20
- );
21
- _.emit(n), x.on((r) => {
22
- l(p), r.open && i(r.open);
16
+ const { createScalarApiClient: r } = await import("@scalar/api-client"), { modalState: o, open: c, updateAuth: s, updateServerUrl: m } = await r(e.value, {
17
+ spec: t.spec ?? {},
18
+ proxyUrl: t.proxyUrl
23
19
  });
24
- }), (o, n) => (m(), f("div", {
20
+ _.emit(o), U.on((n) => {
21
+ s(i);
22
+ const a = x(l);
23
+ a && m(a), n.open && c(n.open);
24
+ });
25
+ }), (r, o) => (S(), v("div", {
25
26
  ref_key: "el",
26
27
  ref: e
27
28
  }, null, 512));
28
29
  }
29
30
  });
30
31
  export {
31
- B as default
32
+ M as default
32
33
  };
@@ -0,0 +1,5 @@
1
+ import o from "./ApiClientModal.vue.js";
2
+ /* empty css */
3
+ export {
4
+ o as default
5
+ };
@@ -1,11 +1,11 @@
1
1
  import { defineComponent as w, watch as s, computed as d, toRef as g, openBlock as C, createElementBlock as x, Fragment as T, createBlock as $, resolveDynamicComponent as b, withCtx as u, createTextVNode as A, toDisplayString as B, createCommentVNode as E, createVNode as N, unref as a, renderSlot as v } from "vue";
2
- import { useAuthenticationStore as R } from "@scalar/api-client";
3
- import { migrateThemeVariables as V } from "@scalar/themes";
4
- import { useSeoMeta as _ } from "@unhead/vue";
5
- import { useDarkModeState as F } from "../hooks/useDarkModeState.js";
6
- import { useReactiveSpec as H } from "../hooks/useReactiveSpec.js";
7
- import U from "./Layouts/Layouts.vue.js";
8
- import { useHttpClientStore as j } from "../stores/useHttpClientStore.js";
2
+ import { migrateThemeVariables as R } from "@scalar/themes";
3
+ import { useSeoMeta as V } from "@unhead/vue";
4
+ import { useDarkModeState as _ } from "../hooks/useDarkModeState.js";
5
+ import { useReactiveSpec as F } from "../hooks/useReactiveSpec.js";
6
+ import H from "./Layouts/Layouts.vue.js";
7
+ import { useHttpClientStore as U } from "../stores/useHttpClientStore.js";
8
+ import { useAuthenticationStore as j } from "../legacy/stores/useAuthenticationStore.js";
9
9
  const P = /* @__PURE__ */ w({
10
10
  __name: "ApiReference",
11
11
  props: {
@@ -14,7 +14,7 @@ const P = /* @__PURE__ */ w({
14
14
  emits: ["updateContent"],
15
15
  setup(S) {
16
16
  var f, l;
17
- const r = S, { toggleDarkMode: c, isDark: m } = F(
17
+ const r = S, { toggleDarkMode: c, isDark: m } = _(
18
18
  (f = r.configuration) == null ? void 0 : f.darkMode
19
19
  );
20
20
  s(
@@ -29,7 +29,7 @@ const P = /* @__PURE__ */ w({
29
29
  const i = d(() => {
30
30
  var e, t;
31
31
  if ((e = r.configuration) != null && e.customCss)
32
- return V((t = r.configuration) == null ? void 0 : t.customCss);
32
+ return R((t = r.configuration) == null ? void 0 : t.customCss);
33
33
  });
34
34
  s(i, () => console.log(i.value));
35
35
  const o = d(() => {
@@ -48,7 +48,7 @@ const P = /* @__PURE__ */ w({
48
48
  customCss: i.value
49
49
  };
50
50
  });
51
- (l = o.value) != null && l.metaData && _(o.value.metaData);
51
+ (l = o.value) != null && l.metaData && V(o.value.metaData);
52
52
  function p(e, t) {
53
53
  s(
54
54
  () => {
@@ -61,11 +61,11 @@ const P = /* @__PURE__ */ w({
61
61
  { immediate: !0 }
62
62
  );
63
63
  }
64
- const { setAuthentication: k } = R();
64
+ const { setAuthentication: k } = j();
65
65
  p("authentication", k);
66
- const { setExcludedClients: D } = j();
66
+ const { setExcludedClients: D } = U();
67
67
  p("hiddenClients", D);
68
- const { parsedSpec: y, rawSpec: h } = H({
68
+ const { parsedSpec: y, rawSpec: h } = F({
69
69
  proxy: g(() => o.value.proxy || ""),
70
70
  specConfig: g(() => o.value.spec || {})
71
71
  });
@@ -78,7 +78,7 @@ const P = /* @__PURE__ */ w({
78
78
  ]),
79
79
  _: 1
80
80
  })) : E("", !0),
81
- N(a(U), {
81
+ N(a(H), {
82
82
  configuration: o.value,
83
83
  isDark: a(m),
84
84
  parsedSpec: a(y),
@@ -21,16 +21,16 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
21
21
  onLinkSwaggerFile?: (() => any) | undefined;
22
22
  onToggleDarkMode?: (() => any) | undefined;
23
23
  }, {}, {}>, Readonly<{
24
- footer: (props: ReferenceSlotProps) => any;
25
24
  header: (props: ReferenceSlotProps) => any;
25
+ footer: (props: ReferenceSlotProps) => any;
26
26
  editor: (props: ReferenceSlotProps) => any;
27
27
  "content-start": (props: ReferenceSlotProps) => any;
28
28
  "content-end": (props: ReferenceSlotProps) => any;
29
29
  "sidebar-start": (props: ReferenceSlotProps) => any;
30
30
  "sidebar-end": (props: ReferenceSlotProps) => any;
31
31
  }> & {
32
- footer: (props: ReferenceSlotProps) => any;
33
32
  header: (props: ReferenceSlotProps) => any;
33
+ footer: (props: ReferenceSlotProps) => any;
34
34
  editor: (props: ReferenceSlotProps) => any;
35
35
  "content-start": (props: ReferenceSlotProps) => any;
36
36
  "content-end": (props: ReferenceSlotProps) => any;
@@ -1 +1 @@
1
- {"version":3,"file":"ApiReferenceLayout.vue.d.ts","sourceRoot":"","sources":["../../src/components/ApiReferenceLayout.vue"],"names":[],"mappings":"AAokBA,OAAO,8BAA8B,CAAA;AAGrC,OAAO,EAAE,KAAK,OAAO,EAAkB,MAAM,gBAAgB,CAAA;AAC7D,OAAO,0BAA0B,CAAA;AA0BjC,OAAO,KAAK,EACV,oBAAoB,EAEpB,kBAAkB,EACnB,MAAM,UAAU,CAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AA2kBjB,wBAAwG;AAOxG,KAAK,uBAAuB,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG;IACpC,QAAO;QACN,MAAM,EAAE,CAAC,CAAC;KAEV,CAAA;CACD,CAAC;AAEN,KAAK,sBAAsB,CAAC,CAAC,IAAI,CAAC,SAAS,SAAS,GAAG,KAAK,GAAG,CAAC,CAAC;AAC5D,KAAK,uBAAuB,CAAC,CAAC,IAAI;KAChC,CAAC,IAAI,MAAM,CAAC,CAAC,CAAC,GAAG,EAAE,SAAS,IAAI,CAAC,CAAC,EAAE,CAAC,CAAC,GACpC;QAAE,IAAI,EAAE,OAAO,KAAK,EAAE,QAAQ,CAAC,sBAAsB,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAA;KAAE,GAC9D;QAAE,IAAI,EAAE,OAAO,KAAK,EAAE,QAAQ,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;QAAC,QAAQ,EAAE,IAAI,CAAA;KAAE;CACzD,CAAC"}
1
+ {"version":3,"file":"ApiReferenceLayout.vue.d.ts","sourceRoot":"","sources":["../../src/components/ApiReferenceLayout.vue"],"names":[],"mappings":"AAshBA,OAAO,8BAA8B,CAAA;AAGrC,OAAO,EAAE,KAAK,OAAO,EAAkB,MAAM,gBAAgB,CAAA;AAC7D,OAAO,0BAA0B,CAAA;AAwBjC,OAAO,KAAK,EACV,oBAAoB,EAEpB,kBAAkB,EACnB,MAAM,UAAU,CAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AA2gBjB,wBAAwG;AAOxG,KAAK,uBAAuB,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG;IACpC,QAAO;QACN,MAAM,EAAE,CAAC,CAAC;KAEV,CAAA;CACD,CAAC;AAEN,KAAK,sBAAsB,CAAC,CAAC,IAAI,CAAC,SAAS,SAAS,GAAG,KAAK,GAAG,CAAC,CAAC;AAC5D,KAAK,uBAAuB,CAAC,CAAC,IAAI;KAChC,CAAC,IAAI,MAAM,CAAC,CAAC,CAAC,GAAG,EAAE,SAAS,IAAI,CAAC,CAAC,EAAE,CAAC,CAAC,GACpC;QAAE,IAAI,EAAE,OAAO,KAAK,EAAE,QAAQ,CAAC,sBAAsB,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAA;KAAE,GAC9D;QAAE,IAAI,EAAE,OAAO,KAAK,EAAE,QAAQ,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;QAAC,QAAQ,EAAE,IAAI,CAAA;KAAE;CACzD,CAAC"}
@@ -2,7 +2,7 @@ import o from "./ApiReferenceLayout.vue2.js";
2
2
  /* empty css */
3
3
  /* empty css */
4
4
  import t from "../_virtual/_plugin-vue_export-helper.js";
5
- const a = /* @__PURE__ */ t(o, [["__scopeId", "data-v-c9906691"]]);
5
+ const m = /* @__PURE__ */ t(o, [["__scopeId", "data-v-300a9075"]]);
6
6
  export {
7
- a as default
7
+ m as default
8
8
  };
@@ -1,31 +1,32 @@
1
- import { defineComponent as X, defineAsyncComponent as Z, ref as b, onMounted as D, onBeforeMount as O, computed as A, watch as _, onServerPrefetch as x, useSSRContext as ee, getCurrentInstance as oe, provide as B, openBlock as f, createElementBlock as h, Fragment as P, createVNode as v, unref as s, withCtx as p, createTextVNode as te, toDisplayString as re, createElementVNode as m, normalizeClass as ae, normalizeStyle as ne, renderSlot as d, normalizeProps as l, guardReactiveProps as c, createCommentVNode as y, withDirectives as se, vShow as ie, createSlots as de, createBlock as U } from "vue";
2
- import { provideUseId as le } from "@headlessui/vue";
1
+ import { defineComponent as Q, ref as h, onMounted as L, onBeforeMount as B, computed as F, watch as q, onServerPrefetch as J, useSSRContext as X, getCurrentInstance as Z, provide as O, openBlock as v, createElementBlock as S, Fragment as P, createVNode as u, unref as s, withCtx as p, createTextVNode as _, toDisplayString as x, createElementVNode as f, normalizeClass as ee, normalizeStyle as oe, renderSlot as l, normalizeProps as d, guardReactiveProps as c, createCommentVNode as b, withDirectives as te, vShow as re, createSlots as ae } from "vue";
2
+ import { provideUseId as ne } from "@headlessui/vue";
3
+ import { addScalarClassesToHeadless as se } from "@scalar/components";
3
4
  import "@scalar/components/style.css";
4
- import { defaultStateFactory as ce } from "@scalar/oas-utils/helpers";
5
- import { getThemeStyles as ue } from "@scalar/themes";
5
+ import { defaultStateFactory as ie } from "@scalar/oas-utils/helpers";
6
+ import { getThemeStyles as le } from "@scalar/themes";
6
7
  import "@scalar/themes/style.css";
7
- import { useToasts as pe, ScalarToasts as fe } from "@scalar/use-toasts";
8
- import { useMediaQuery as me, useResizeObserver as ge, useDebounceFn as ve } from "@vueuse/core";
9
- import { NEW_API_MODAL as F } from "../features.js";
10
- import Se from "./ApiClientModal.vue.js";
11
- import he from "./GettingStarted.vue.js";
12
- import { downloadSpecBus as be, downloadSpecFile as ye } from "../helpers/specDownloads.js";
13
- import { useDeprecationWarnings as we } from "../hooks/useDeprecationWarnings.js";
14
- import Re from "./Util/Style.vue.js";
15
- import $e from "./Sidebar/Sidebar.vue.js";
16
- import Ce from "./Content/Content.vue.js";
17
- import { useSidebar as Te } from "../hooks/useSidebar.js";
18
- import { GLOBAL_SECURITY_SYMBOL as Le, HIDE_DOWNLOAD_BUTTON_SYMBOL as ke } from "../helpers/provideSymbols.js";
19
- import { useNavState as Ie } from "../hooks/useNavState.js";
20
- import { scrollToId as Ee } from "../helpers/scrollToId.js";
21
- import { sleep as De } from "../helpers/sleep.js";
22
- const Oe = { class: "references-header" }, Ae = {
8
+ import { useToasts as de, ScalarToasts as ce } from "@scalar/use-toasts";
9
+ import { useMediaQuery as ue, useResizeObserver as pe, useDebounceFn as fe } from "@vueuse/core";
10
+ import me from "./ApiClientModal.vue.js";
11
+ /* empty css */
12
+ import ge from "./GettingStarted.vue.js";
13
+ import { downloadSpecBus as ve, downloadSpecFile as Se } from "../helpers/specDownloads.js";
14
+ import { useDeprecationWarnings as he } from "../hooks/useDeprecationWarnings.js";
15
+ import be from "./Util/Style.vue.js";
16
+ import we from "./Sidebar/Sidebar.vue.js";
17
+ import ye from "./Content/Content.vue.js";
18
+ import { GLOBAL_SECURITY_SYMBOL as Re, HIDE_DOWNLOAD_BUTTON_SYMBOL as Te } from "../helpers/provideSymbols.js";
19
+ import { useSidebar as Ce } from "../hooks/useSidebar.js";
20
+ import { useNavState as $e } from "../hooks/useNavState.js";
21
+ import { scrollToId as Ie } from "../helpers/scrollToId.js";
22
+ import { sleep as Ee } from "../helpers/sleep.js";
23
+ const ke = { class: "references-header" }, De = {
23
24
  key: 0,
24
25
  class: "references-navigation t-doc__sidebar"
25
- }, Be = { class: "references-navigation-list" }, Pe = { class: "references-editor" }, Ue = { class: "references-editor-textarea" }, Fe = { class: "references-rendered" }, Me = {
26
+ }, Le = { class: "references-navigation-list" }, Be = { class: "references-editor" }, Fe = { class: "references-editor-textarea" }, Oe = { class: "references-rendered" }, Pe = {
26
27
  key: 0,
27
28
  class: "references-footer"
28
- }, no = /* @__PURE__ */ X({
29
+ }, ro = /* @__PURE__ */ Q({
29
30
  inheritAttrs: !1,
30
31
  __name: "ApiReferenceLayout",
31
32
  props: {
@@ -34,218 +35,185 @@ const Oe = { class: "references-header" }, Ae = {
34
35
  rawSpec: {}
35
36
  },
36
37
  emits: ["changeTheme", "updateContent", "loadSwaggerFile", "linkSwaggerFile", "toggleDarkMode"],
37
- setup(M) {
38
- const n = M, { initializeToasts: N, toast: z } = pe();
39
- N((e) => z(e));
40
- const V = Z(() => F ? (
41
- // Empty component
42
- new Promise((e) => {
43
- e({ render: () => null });
44
- })
45
- ) : (
46
- // Load component
47
- import("./ApiClientModalOld.vue.js")
48
- )), Y = me("(min-width: 1150px)"), H = b("100dvh"), g = b(null);
49
- ge(g, (e) => {
50
- H.value = e[0].contentRect.height + "px";
38
+ setup(U) {
39
+ const n = U, { initializeToasts: M, toast: A } = de();
40
+ M((e) => A(e));
41
+ const N = ue("(min-width: 1150px)"), z = h("100dvh"), m = h(null);
42
+ pe(m, (e) => {
43
+ z.value = e[0].contentRect.height + "px";
51
44
  });
52
- const w = b(0);
53
- D(() => {
45
+ const w = h(0);
46
+ L(() => {
54
47
  var r, t, a;
55
- const e = (t = (r = g.value) == null ? void 0 : r.parentElement) == null ? void 0 : t.getBoundingClientRect(), o = (a = g.value) == null ? void 0 : a.getBoundingClientRect();
48
+ const e = (t = (r = m.value) == null ? void 0 : r.parentElement) == null ? void 0 : t.getBoundingClientRect(), o = (a = m.value) == null ? void 0 : a.getBoundingClientRect();
56
49
  if (e && o) {
57
- const u = o.top - e.top;
58
- w.value = u < 2 ? 0 : u;
50
+ const D = o.top - e.top;
51
+ w.value = D < 2 ? 0 : D;
59
52
  }
60
53
  });
61
54
  const {
62
- breadcrumb: W,
63
- collapsedSidebarItems: S,
64
- isSidebarOpen: G,
65
- setCollapsedSidebarItem: R,
66
- hideModels: j,
67
- setParsedSpec: K
68
- } = Te(), {
69
- getPathRoutingId: $,
70
- getSectionId: Q,
71
- getTagId: q,
72
- hash: C,
73
- isIntersectionEnabled: T,
74
- pathRouting: L,
75
- updateHash: k
76
- } = Ie();
77
- L.value = n.configuration.pathRouting, O(() => k());
78
- const I = async (e) => {
55
+ breadcrumb: H,
56
+ collapsedSidebarItems: g,
57
+ isSidebarOpen: V,
58
+ setCollapsedSidebarItem: y,
59
+ hideModels: Y,
60
+ setParsedSpec: G
61
+ } = Ce(), {
62
+ getPathRoutingId: R,
63
+ getSectionId: W,
64
+ getTagId: j,
65
+ hash: T,
66
+ isIntersectionEnabled: C,
67
+ pathRouting: $,
68
+ updateHash: I
69
+ } = $e();
70
+ $.value = n.configuration.pathRouting, B(() => I());
71
+ const E = async (e) => {
79
72
  var o;
80
- T.value = !1, k(), e ? Ee(e) : (o = g.value) == null || o.scrollTo(0, 0), await De(100), T.value = !0;
73
+ C.value = !1, I(), e ? Ie(e) : (o = m.value) == null || o.scrollTo(0, 0), await Ee(100), C.value = !0;
81
74
  };
82
- O(() => {
83
- const e = new MutationObserver((o) => {
84
- const r = o.find(
85
- (t) => Array.from(t.addedNodes).find(
86
- (a) => a.id === "headlessui-portal-root"
87
- )
88
- );
89
- if (r) {
90
- const t = r.addedNodes[0];
91
- t.classList.add("scalar-app"), t.classList.add("scalar-client"), e.disconnect();
92
- }
93
- });
94
- e.observe(document.body, { childList: !0 });
95
- }), D(() => {
96
- be.on(({ specTitle: e }) => {
97
- ye(n.rawSpec, e);
98
- }), window.onhashchange = () => I(decodeURIComponent(window.location.hash.replace(/^#/, ""))), window.onpopstate = () => L.value && I($(window.location.pathname));
75
+ B(() => se()), L(() => {
76
+ ve.on(({ specTitle: e }) => {
77
+ Se(n.rawSpec, e);
78
+ }), window.onhashchange = () => E(decodeURIComponent(window.location.hash.replace(/^#/, ""))), window.onpopstate = () => $.value && E(R(window.location.pathname));
99
79
  });
100
- const J = A(
101
- () => Y.value || !n.configuration.isEditable
102
- ), E = ve((e) => {
80
+ const K = F(
81
+ () => N.value || !n.configuration.isEditable
82
+ ), k = fe((e) => {
103
83
  if ((e.target.scrollTop ?? 0) < 50) {
104
84
  const r = n.configuration.pathRouting ? n.configuration.pathRouting.basePath : window.location.pathname;
105
- window.history.replaceState({}, "", r + window.location.search), C.value = "";
85
+ window.history.replaceState({}, "", r + window.location.search), T.value = "";
106
86
  }
107
- }), i = A(() => ({
108
- breadcrumb: W.value,
87
+ }), i = F(() => ({
88
+ breadcrumb: H.value,
109
89
  spec: n.parsedSpec
110
90
  }));
111
- return _(() => n.parsedSpec, K, { deep: !0 }), x(() => {
91
+ return q(() => n.parsedSpec, G, { deep: !0 }), J(() => {
112
92
  var o, r;
113
- const e = ee();
114
- if (e && ((o = e.payload).data || (o.data = ce()), n.configuration.pathRouting)) {
115
- const t = $(e.url);
116
- C.value = t, e.payload.data.hash = t;
117
- for (const a in S)
118
- Object.hasOwn(S, a) && delete S[a];
93
+ const e = X();
94
+ if (e && ((o = e.payload).data || (o.data = ie()), n.configuration.pathRouting)) {
95
+ const t = R(e.url);
96
+ T.value = t, e.payload.data.hash = t;
97
+ for (const a in g)
98
+ Object.hasOwn(g, a) && delete g[a];
119
99
  if (t)
120
- R(Q(t), !0);
100
+ y(W(t), !0);
121
101
  else {
122
102
  const a = (r = n.parsedSpec.tags) == null ? void 0 : r[0];
123
- a && R(q(a), !0);
103
+ a && y(j(a), !0);
124
104
  }
125
- e.payload.data["useSidebarContent-collapsedSidebarItems"] = S;
105
+ e.payload.data["useSidebarContent-collapsedSidebarItems"] = g;
126
106
  }
127
- }), le(() => {
107
+ }), ne(() => {
128
108
  var t;
129
- const e = oe(), o = "scalar-instance-id";
109
+ const e = Z(), o = "scalar-instance-id";
130
110
  if (!e) return o;
131
111
  let r = e.uid;
132
112
  return typeof window > "u" ? (e.attrs || (e.attrs = {}), e.attrs[o] = r) : (t = e.vnode.el) != null && t.getAttribute && (r = e.vnode.el.getAttribute(o)), `${o}-${r}`;
133
- }), B(Le, () => n.parsedSpec.security), B(
134
- ke,
113
+ }), O(Re, () => n.parsedSpec.security), O(
114
+ Te,
135
115
  () => n.configuration.hideDownloadButton
136
- ), j.value = n.configuration.hideModels ?? !1, we(n.configuration), (e, o) => {
137
- var r, t;
138
- return f(), h(P, null, [
139
- v(s(Re), null, {
116
+ ), Y.value = n.configuration.hideModels ?? !1, he(n.configuration), (e, o) => {
117
+ var r;
118
+ return v(), S(P, null, [
119
+ u(s(be), null, {
140
120
  default: p(() => [
141
- te(re(s(ue)(e.configuration.theme, {
121
+ _(x(s(le)(e.configuration.theme, {
142
122
  fonts: e.configuration.withDefaultFonts
143
123
  })), 1)
144
124
  ]),
145
125
  _: 1
146
126
  }),
147
- m("div", {
127
+ f("div", {
148
128
  ref_key: "documentEl",
149
- ref: g,
150
- class: ae(["scalar-app scalar-api-reference references-layout", [
129
+ ref: m,
130
+ class: ee(["scalar-app scalar-api-reference references-layout", [
151
131
  {
152
132
  "references-editable": e.configuration.isEditable,
153
133
  "references-sidebar": e.configuration.showSidebar,
154
- "references-sidebar-mobile-open": s(G),
134
+ "references-sidebar-mobile-open": s(V),
155
135
  "references-classic": e.configuration.layout === "classic"
156
136
  },
157
137
  e.$attrs.class
158
138
  ]]),
159
- style: ne({
139
+ style: oe({
160
140
  "--scalar-y-offset": `var(--scalar-custom-header-height, ${w.value}px)`
161
141
  }),
162
142
  onScrollPassive: o[4] || (o[4] = //@ts-ignore
163
- (...a) => s(E) && s(E)(...a))
143
+ (...t) => s(k) && s(k)(...t))
164
144
  }, [
165
- m("div", Oe, [
166
- d(e.$slots, "header", l(c(i.value)), void 0, !0)
145
+ f("div", ke, [
146
+ l(e.$slots, "header", d(c(i.value)), void 0, !0)
167
147
  ]),
168
- e.configuration.showSidebar ? (f(), h("aside", Ae, [
169
- m("div", Be, [
170
- v(s($e), { parsedSpec: e.parsedSpec }, {
148
+ e.configuration.showSidebar ? (v(), S("aside", De, [
149
+ f("div", Le, [
150
+ u(s(we), { parsedSpec: e.parsedSpec }, {
171
151
  "sidebar-start": p(() => [
172
- d(e.$slots, "sidebar-start", l(c(i.value)), void 0, !0)
152
+ l(e.$slots, "sidebar-start", d(c(i.value)), void 0, !0)
173
153
  ]),
174
154
  "sidebar-end": p(() => [
175
- d(e.$slots, "sidebar-end", l(c(i.value)), void 0, !0)
155
+ l(e.$slots, "sidebar-end", d(c(i.value)), void 0, !0)
176
156
  ]),
177
157
  _: 3
178
158
  }, 8, ["parsedSpec"])
179
159
  ])
180
- ])) : y("", !0),
181
- se(m("div", Pe, [
182
- m("div", Ue, [
183
- d(e.$slots, "editor", l(c(i.value)), void 0, !0)
160
+ ])) : b("", !0),
161
+ te(f("div", Be, [
162
+ f("div", Fe, [
163
+ l(e.$slots, "editor", d(c(i.value)), void 0, !0)
184
164
  ])
185
165
  ], 512), [
186
- [ie, e.configuration.isEditable]
166
+ [re, e.configuration.isEditable]
187
167
  ]),
188
- J.value ? (f(), h(P, { key: 1 }, [
189
- m("div", Fe, [
190
- v(s(Ce), {
168
+ K.value ? (v(), S(P, { key: 1 }, [
169
+ f("div", Oe, [
170
+ u(s(ye), {
191
171
  baseServerURL: e.configuration.baseServerURL,
192
172
  layout: e.configuration.layout === "classic" ? "accordion" : "default",
193
173
  parsedSpec: e.parsedSpec,
194
- proxy: e.configuration.proxy
195
- }, de({
174
+ proxy: e.configuration.proxy,
175
+ servers: e.configuration.servers
176
+ }, ae({
196
177
  start: p(() => [
197
- d(e.$slots, "content-start", l(c(i.value)), void 0, !0)
178
+ l(e.$slots, "content-start", d(c(i.value)), void 0, !0)
198
179
  ]),
199
180
  end: p(() => [
200
- d(e.$slots, "content-end", l(c(i.value)), void 0, !0)
181
+ l(e.$slots, "content-end", d(c(i.value)), void 0, !0)
201
182
  ]),
202
183
  _: 2
203
184
  }, [
204
185
  (r = e.configuration) != null && r.isEditable ? {
205
186
  name: "empty-state",
206
187
  fn: p(() => {
207
- var a;
188
+ var t;
208
189
  return [
209
- v(he, {
210
- theme: ((a = e.configuration) == null ? void 0 : a.theme) || "default",
211
- onChangeTheme: o[0] || (o[0] = (u) => e.$emit("changeTheme", u)),
212
- onLinkSwaggerFile: o[1] || (o[1] = (u) => e.$emit("linkSwaggerFile")),
213
- onLoadSwaggerFile: o[2] || (o[2] = (u) => e.$emit("loadSwaggerFile")),
214
- onUpdateContent: o[3] || (o[3] = (u) => e.$emit("updateContent", u))
190
+ u(ge, {
191
+ theme: ((t = e.configuration) == null ? void 0 : t.theme) || "default",
192
+ onChangeTheme: o[0] || (o[0] = (a) => e.$emit("changeTheme", a)),
193
+ onLinkSwaggerFile: o[1] || (o[1] = (a) => e.$emit("linkSwaggerFile")),
194
+ onLoadSwaggerFile: o[2] || (o[2] = (a) => e.$emit("loadSwaggerFile")),
195
+ onUpdateContent: o[3] || (o[3] = (a) => e.$emit("updateContent", a))
215
196
  }, null, 8, ["theme"])
216
197
  ];
217
198
  }),
218
199
  key: "0"
219
200
  } : void 0
220
- ]), 1032, ["baseServerURL", "layout", "parsedSpec", "proxy"])
201
+ ]), 1032, ["baseServerURL", "layout", "parsedSpec", "proxy", "servers"])
221
202
  ]),
222
- e.$slots.footer ? (f(), h("div", Me, [
223
- d(e.$slots, "footer", l(c(i.value)), void 0, !0)
224
- ])) : y("", !0)
225
- ], 64)) : y("", !0),
226
- s(F) ? (f(), U(Se, {
227
- key: 2,
203
+ e.$slots.footer ? (v(), S("div", Pe, [
204
+ l(e.$slots, "footer", d(c(i.value)), void 0, !0)
205
+ ])) : b("", !0)
206
+ ], 64)) : b("", !0),
207
+ u(me, {
228
208
  proxyUrl: e.configuration.proxy,
229
209
  spec: e.configuration.spec
230
- }, null, 8, ["proxyUrl", "spec"])) : (f(), U(s(V), {
231
- key: 3,
232
- parsedSpec: e.parsedSpec,
233
- proxyUrl: (t = e.configuration) == null ? void 0 : t.proxy
234
- }, {
235
- "sidebar-start": p(() => [
236
- d(e.$slots, "sidebar-start", l(c(i.value)), void 0, !0)
237
- ]),
238
- "sidebar-end": p(() => [
239
- d(e.$slots, "sidebar-end", l(c(i.value)), void 0, !0)
240
- ]),
241
- _: 3
242
- }, 8, ["parsedSpec", "proxyUrl"]))
210
+ }, null, 8, ["proxyUrl", "spec"])
243
211
  ], 38),
244
- v(s(fe))
212
+ u(s(ce))
245
213
  ], 64);
246
214
  };
247
215
  }
248
216
  });
249
217
  export {
250
- no as default
218
+ ro as default
251
219
  };
@@ -1 +1 @@
1
- {"version":3,"file":"Authentication.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/Content/Authentication/Authentication.vue"],"names":[],"mappings":"AAyFA,OAAO,KAAK,EAAY,IAAI,EAAE,MAAM,mBAAmB,CAAA;;;;;;;;AAiJvD,wBAMG;AAOH,KAAK,sBAAsB,CAAC,CAAC,IAAI,CAAC,SAAS,SAAS,GAAG,KAAK,GAAG,CAAC,CAAC;AAC5D,KAAK,uBAAuB,CAAC,CAAC,IAAI;KAChC,CAAC,IAAI,MAAM,CAAC,CAAC,CAAC,GAAG,EAAE,SAAS,IAAI,CAAC,CAAC,EAAE,CAAC,CAAC,GACpC;QAAE,IAAI,EAAE,OAAO,KAAK,EAAE,QAAQ,CAAC,sBAAsB,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAA;KAAE,GAC9D;QAAE,IAAI,EAAE,OAAO,KAAK,EAAE,QAAQ,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;QAAC,QAAQ,EAAE,IAAI,CAAA;KAAE;CACzD,CAAC"}
1
+ {"version":3,"file":"Authentication.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/Content/Authentication/Authentication.vue"],"names":[],"mappings":"AAmFA,OAAO,KAAK,EAAY,IAAI,EAAE,MAAM,mBAAmB,CAAA;;;;;;;;AAwIvD,wBAMG;AAOH,KAAK,sBAAsB,CAAC,CAAC,IAAI,CAAC,SAAS,SAAS,GAAG,KAAK,GAAG,CAAC,CAAC;AAC5D,KAAK,uBAAuB,CAAC,CAAC,IAAI;KAChC,CAAC,IAAI,MAAM,CAAC,CAAC,CAAC,GAAG,EAAE,SAAS,IAAI,CAAC,CAAC,EAAE,CAAC,CAAC,GACpC;QAAE,IAAI,EAAE,OAAO,KAAK,EAAE,QAAQ,CAAC,sBAAsB,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAA;KAAE,GAC9D;QAAE,IAAI,EAAE,OAAO,KAAK,EAAE,QAAQ,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;QAAC,QAAQ,EAAE,IAAI,CAAA;KAAE;CACzD,CAAC"}
@@ -1,7 +1,7 @@
1
1
  import t from "./Authentication.vue2.js";
2
2
  /* empty css */
3
3
  import o from "../../../_virtual/_plugin-vue_export-helper.js";
4
- const i = /* @__PURE__ */ o(t, [["__scopeId", "data-v-4ada77f4"]]);
4
+ const m = /* @__PURE__ */ o(t, [["__scopeId", "data-v-9052a928"]]);
5
5
  export {
6
- i as default
6
+ m as default
7
7
  };