@scalar/api-reference 1.25.70 → 1.25.72

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 (56) hide show
  1. package/CHANGELOG.md +42 -0
  2. package/dist/browser/standalone.js +10875 -10813
  3. package/dist/browser/webpack-stats.json +1 -1
  4. package/dist/components/ApiReference.vue.d.ts.map +1 -1
  5. package/dist/components/ApiReference.vue.js +56 -57
  6. package/dist/components/ApiReferenceLayout.vue.d.ts.map +1 -1
  7. package/dist/components/ApiReferenceLayout.vue.js +3 -3
  8. package/dist/components/ApiReferenceLayout.vue2.js +160 -143
  9. package/dist/components/Content/Authentication/Authentication.vue.d.ts +1 -1
  10. package/dist/components/Content/Authentication/Authentication.vue.d.ts.map +1 -1
  11. package/dist/components/Content/Authentication/Authentication.vue.js +2 -2
  12. package/dist/components/Content/Authentication/Authentication.vue2.js +20 -20
  13. package/dist/components/Content/Content.vue.d.ts +1 -1
  14. package/dist/components/Content/Content.vue.d.ts.map +1 -1
  15. package/dist/components/Content/Content.vue.js +1 -1
  16. package/dist/components/Content/Content.vue2.js +58 -52
  17. package/dist/components/Content/Models/Models.vue.d.ts.map +1 -1
  18. package/dist/components/Content/Models/Models.vue.js +2 -2
  19. package/dist/components/Content/Models/Models.vue2.js +42 -36
  20. package/dist/components/Content/Tag/TagList.vue.d.ts.map +1 -1
  21. package/dist/components/Content/Tag/TagList.vue.js +34 -28
  22. package/dist/embeds/OpenApiDocument/OpenApiDocument.vue.d.ts +22 -0
  23. package/dist/embeds/OpenApiDocument/OpenApiDocument.vue.d.ts.map +1 -1
  24. package/dist/embeds/OpenApiDocument/types.d.ts +1 -1
  25. package/dist/embeds/OpenApiDocument/types.d.ts.map +1 -1
  26. package/dist/features/ApiClientModal/useApiClient.d.ts +4 -4
  27. package/dist/features/ApiClientModal/useApiClient.d.ts.map +1 -1
  28. package/dist/features/ExampleRequest/ExampleRequest.vue.d.ts.map +1 -1
  29. package/dist/features/ExampleRequest/ExampleRequest.vue.js +2 -2
  30. package/dist/features/ExampleRequest/ExampleRequest.vue2.js +124 -120
  31. package/dist/features/Operation/layouts/ModernLayout.vue.d.ts.map +1 -1
  32. package/dist/features/Operation/layouts/ModernLayout.vue.js +2 -2
  33. package/dist/features/Operation/layouts/ModernLayout.vue2.js +73 -63
  34. package/dist/helpers/getExampleCode.d.ts +2 -2
  35. package/dist/helpers/getExampleCode.d.ts.map +1 -1
  36. package/dist/helpers/getExampleCode.js +12 -11
  37. package/dist/helpers/parse.d.ts +2 -2
  38. package/dist/helpers/parse.d.ts.map +1 -1
  39. package/dist/helpers/parse.js +3 -3
  40. package/dist/hooks/useDeprecationWarnings.d.ts.map +1 -1
  41. package/dist/hooks/useDeprecationWarnings.js +12 -15
  42. package/dist/hooks/useReactiveSpec.d.ts +24 -2
  43. package/dist/hooks/useReactiveSpec.d.ts.map +1 -1
  44. package/dist/hooks/useReactiveSpec.js +4 -4
  45. package/dist/index.js +1 -1
  46. package/dist/legacy/components/SecurityScheme.vue.d.ts +1 -1
  47. package/dist/legacy/components/SecurityScheme.vue.d.ts.map +1 -1
  48. package/dist/legacy/components/SecurityScheme.vue.js +2 -2
  49. package/dist/legacy/components/SecurityScheme.vue2.js +13 -13
  50. package/dist/legacy/helpers/getUrlFromServerState.d.ts +2 -1
  51. package/dist/legacy/helpers/getUrlFromServerState.d.ts.map +1 -1
  52. package/dist/legacy/helpers/getUrlFromServerState.js +14 -14
  53. package/dist/legacy/stores/useOpenApiStore.d.ts +22 -0
  54. package/dist/legacy/stores/useOpenApiStore.d.ts.map +1 -1
  55. package/dist/style.css +1 -1
  56. package/package.json +11 -11
@@ -1 +1 @@
1
- {"version":3,"file":"ApiReference.vue.d.ts","sourceRoot":"","sources":["../../src/components/ApiReference.vue"],"names":[],"mappings":"AAmIA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,UAAU,CAAA;AA2F9C,iBAAS,cAAc;WAyFT,OAAO,IAA6B;;wBATrB,GAAG;wBACH,GAAG;;;;EAa/B;AAeD,KAAK,oBAAoB,GAAG,UAAU,CAAC,OAAO,cAAc,CAAC,CAAC;AAC9D,QAAA,MAAM,eAAe;;;;kFAOnB,CAAC;wBACkB,uBAAuB,CAAC,OAAO,eAAe,EAAE,oBAAoB,CAAC,OAAO,CAAC,CAAC;AAAnG,wBAAoG;AAWpG,KAAK,uBAAuB,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG;IACxC,QAAO;QACN,MAAM,EAAE,CAAC,CAAC;KAEV,CAAA;CACD,CAAC"}
1
+ {"version":3,"file":"ApiReference.vue.d.ts","sourceRoot":"","sources":["../../src/components/ApiReference.vue"],"names":[],"mappings":"AA8HA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,UAAU,CAAA;AAwF9C,iBAAS,cAAc;WAyFT,OAAO,IAA6B;;wBATrB,GAAG;wBACH,GAAG;;;;EAa/B;AAeD,KAAK,oBAAoB,GAAG,UAAU,CAAC,OAAO,cAAc,CAAC,CAAC;AAC9D,QAAA,MAAM,eAAe;;;;kFAOnB,CAAC;wBACkB,uBAAuB,CAAC,OAAO,eAAe,EAAE,oBAAoB,CAAC,OAAO,CAAC,CAAC;AAAnG,wBAAoG;AAWpG,KAAK,uBAAuB,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG;IACxC,QAAO;QACN,MAAM,EAAE,CAAC,CAAC;KAEV,CAAA;CACD,CAAC"}
@@ -1,59 +1,58 @@
1
- import { defineComponent as b, watch as u, computed as c, toRef as m, openBlock as C, createElementBlock as A, Fragment as B, createBlock as E, resolveDynamicComponent as H, withCtx as d, createTextVNode as N, toDisplayString as R, createCommentVNode as V, createVNode as _, unref as i, renderSlot as g } from "vue";
2
- import { migrateThemeVariables as F } from "@scalar/themes";
3
- import { useColorMode as L } from "@scalar/use-hooks/useColorMode";
4
- import { useSeoMeta as U } from "@unhead/vue";
5
- import { useFavicon as j } from "@vueuse/core";
6
- import { useReactiveSpec as q } from "../hooks/useReactiveSpec.js";
7
- import z from "./Layouts/Layouts.vue.js";
8
- import { useHttpClientStore as G } from "../stores/useHttpClientStore.js";
9
- import { useAuthenticationStore as I } from "../legacy/stores/useAuthenticationStore.js";
10
- const ee = /* @__PURE__ */ b({
1
+ import { defineComponent as T, watch as s, computed as u, toRef as m, openBlock as p, createElementBlock as U, Fragment as $, createBlock as b, resolveDynamicComponent as A, withCtx as c, createTextVNode as B, toDisplayString as N, createCommentVNode as R, createVNode as V, unref as a, renderSlot as g } from "vue";
2
+ import { migrateThemeVariables as _ } from "@scalar/themes";
3
+ import { useColorMode as E } from "@scalar/use-hooks/useColorMode";
4
+ import { useSeoMeta as F } from "@unhead/vue";
5
+ import { useFavicon as L } from "@vueuse/core";
6
+ import { useReactiveSpec as j } from "../hooks/useReactiveSpec.js";
7
+ import q from "./Layouts/Layouts.vue.js";
8
+ import { useAuthenticationStore as z } from "../legacy/stores/useAuthenticationStore.js";
9
+ const W = /* @__PURE__ */ T({
11
10
  __name: "ApiReference",
12
11
  props: {
13
12
  configuration: {}
14
13
  },
15
14
  emits: ["updateContent"],
16
15
  setup(v) {
17
- var l, f, p;
18
- const n = v, { setColorMode: S, toggleColorMode: k, darkLightMode: M } = L({
16
+ var l, d, f;
17
+ const n = v, { setColorMode: C, toggleColorMode: k, darkLightMode: S } = E({
19
18
  initialColorMode: (l = n.configuration) != null && l.darkMode ? "dark" : void 0,
20
- overrideColorMode: (f = n.configuration) == null ? void 0 : f.forceDarkModeState
19
+ overrideColorMode: (d = n.configuration) == null ? void 0 : d.forceDarkModeState
21
20
  });
22
- u(
21
+ s(
23
22
  () => {
24
- var e;
25
- return (e = n.configuration) == null ? void 0 : e.darkMode;
23
+ var o;
24
+ return (o = n.configuration) == null ? void 0 : o.darkMode;
26
25
  },
27
- (e) => S(e ? "dark" : "light")
26
+ (o) => C(o ? "dark" : "light")
28
27
  );
29
- const a = c(() => {
30
- var e, t;
31
- if ((e = n.configuration) != null && e.customCss)
32
- return F((t = n.configuration) == null ? void 0 : t.customCss);
28
+ const i = u(() => {
29
+ var o, t;
30
+ if ((o = n.configuration) != null && o.customCss)
31
+ return _((t = n.configuration) == null ? void 0 : t.customCss);
33
32
  });
34
- u(a, () => console.log(a.value));
35
- const o = c(() => {
36
- var e;
33
+ s(i, () => console.log(i.value));
34
+ const e = u(() => {
35
+ var o;
37
36
  return {
38
37
  spec: {
39
38
  content: void 0,
40
39
  url: void 0,
41
- ...(e = n.configuration) == null ? void 0 : e.spec
40
+ ...(o = n.configuration) == null ? void 0 : o.spec
42
41
  },
43
- proxy: void 0,
42
+ proxyUrl: void 0,
44
43
  theme: "default",
45
44
  showSidebar: !0,
46
45
  isEditable: !1,
47
46
  ...n.configuration,
48
- customCss: a.value
47
+ customCss: i.value
49
48
  };
50
49
  });
51
- (p = o.value) != null && p.metaData && U(o.value.metaData);
52
- function s(e, t) {
53
- u(
50
+ (f = e.value) != null && f.metaData && F(e.value.metaData);
51
+ function M(o, t) {
52
+ s(
54
53
  () => {
55
54
  var r;
56
- return (r = o.value) == null ? void 0 : r[e];
55
+ return (r = e.value) == null ? void 0 : r[o];
57
56
  },
58
57
  (r) => {
59
58
  typeof r < "u" && t(r);
@@ -61,36 +60,36 @@ const ee = /* @__PURE__ */ b({
61
60
  { immediate: !0 }
62
61
  );
63
62
  }
64
- const { setAuthentication: D } = I();
65
- s("authentication", D);
66
- const { setExcludedClients: h, setDefaultHttpClient: y } = G();
67
- s("defaultHttpClient", y), s("hiddenClients", h);
68
- const { parsedSpec: w, rawSpec: x } = q({
69
- proxy: m(() => o.value.proxy || ""),
70
- specConfig: m(() => o.value.spec || {})
71
- }), T = c(() => o.value.favicon);
72
- return j(T), (e, t) => {
63
+ const { setAuthentication: y } = z();
64
+ M("authentication", y);
65
+ const { parsedSpec: D, rawSpec: h } = j({
66
+ proxyUrl: m(
67
+ () => e.value.proxyUrl || e.value.proxy || ""
68
+ ),
69
+ specConfig: m(() => e.value.spec || {})
70
+ }), w = u(() => e.value.favicon);
71
+ return L(w), (o, t) => {
73
72
  var r;
74
- return C(), A(B, null, [
75
- (r = o.value) != null && r.customCss ? (C(), E(H("style"), { key: 0 }, {
76
- default: d(() => [
77
- N(R(o.value.customCss), 1)
73
+ return p(), U($, null, [
74
+ (r = e.value) != null && r.customCss ? (p(), b(A("style"), { key: 0 }, {
75
+ default: c(() => [
76
+ B(N(e.value.customCss), 1)
78
77
  ]),
79
78
  _: 1
80
- })) : V("", !0),
81
- _(i(z), {
82
- configuration: o.value,
83
- isDark: i(M) === "dark",
84
- parsedSpec: i(w),
85
- rawSpec: i(x),
86
- onToggleDarkMode: t[0] || (t[0] = () => i(k)()),
87
- onUpdateContent: t[1] || (t[1] = ($) => e.$emit("updateContent", $))
79
+ })) : R("", !0),
80
+ V(a(q), {
81
+ configuration: e.value,
82
+ isDark: a(S) === "dark",
83
+ parsedSpec: a(D),
84
+ rawSpec: a(h),
85
+ onToggleDarkMode: t[0] || (t[0] = () => a(k)()),
86
+ onUpdateContent: t[1] || (t[1] = (x) => o.$emit("updateContent", x))
88
87
  }, {
89
- footer: d(() => [
90
- g(e.$slots, "footer")
88
+ footer: c(() => [
89
+ g(o.$slots, "footer")
91
90
  ]),
92
- "content-end": d(() => [
93
- g(e.$slots, "footer")
91
+ "content-end": c(() => [
92
+ g(o.$slots, "footer")
94
93
  ]),
95
94
  _: 3
96
95
  }, 8, ["configuration", "isDark", "parsedSpec", "rawSpec"])
@@ -99,5 +98,5 @@ const ee = /* @__PURE__ */ b({
99
98
  }
100
99
  });
101
100
  export {
102
- ee as default
101
+ W as default
103
102
  };
@@ -1 +1 @@
1
- {"version":3,"file":"ApiReferenceLayout.vue.d.ts","sourceRoot":"","sources":["../../src/components/ApiReferenceLayout.vue"],"names":[],"mappings":"AAgkBA,OAAO,EACL,KAAK,OAAO,EAGb,MAAM,gBAAgB,CAAA;AA6BvB,OAAO,KAAK,EACV,oBAAoB,EAEpB,kBAAkB,EACnB,MAAM,UAAU,CAAA;AAOjB,KAAK,WAAW,GAAG,IAAI,CAAC,oBAAoB,EAAE,QAAQ,CAAC,CAAC;AAwOxD,iBAAS,cAAc;WA4OT,OAAO,IAA6B;;wBA/bZ,kBAAkB,KAAK,GAAG;wBAA1B,kBAAkB,KAAK,GAAG;wBAA1B,kBAAkB,KAAK,GAAG;iCAA1B,kBAAkB,KAAK,GAAG;+BAA1B,kBAAkB,KAAK,GAAG;iCAA1B,kBAAkB,KAAK,GAAG;+BAA1B,kBAAkB,KAAK,GAAG;;wBAA1B,kBAAkB,KAAK,GAAG;wBAA1B,kBAAkB,KAAK,GAAG;wBAA1B,kBAAkB,KAAK,GAAG;iCAA1B,kBAAkB,KAAK,GAAG;+BAA1B,kBAAkB,KAAK,GAAG;iCAA1B,kBAAkB,KAAK,GAAG;+BAA1B,kBAAkB,KAAK,GAAG;;;;;;EAoc/D;AAsBD,KAAK,oBAAoB,GAAG,UAAU,CAAC,OAAO,cAAc,CAAC,CAAC;AAC9D,QAAA,MAAM,eAAe;;YA5eqB,OAAO;eAAS,MAAM;;;;;;;;YAAtB,OAAO;eAAS,MAAM;;;;;;kFAmf9D,CAAC;wBACkB,uBAAuB,CAAC,OAAO,eAAe,EAAE,oBAAoB,CAAC,OAAO,CAAC,CAAC;AAAnG,wBAAoG;AAWpG,KAAK,uBAAuB,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG;IACxC,QAAO;QACN,MAAM,EAAE,CAAC,CAAC;KAEV,CAAA;CACD,CAAC"}
1
+ {"version":3,"file":"ApiReferenceLayout.vue.d.ts","sourceRoot":"","sources":["../../src/components/ApiReferenceLayout.vue"],"names":[],"mappings":"AA4lBA,OAAO,EACL,KAAK,OAAO,EAGb,MAAM,gBAAgB,CAAA;AA6BvB,OAAO,KAAK,EACV,oBAAoB,EAEpB,kBAAkB,EACnB,MAAM,UAAU,CAAA;AAOjB,KAAK,WAAW,GAAG,IAAI,CAAC,oBAAoB,EAAE,QAAQ,CAAC,CAAC;AA8PxD,iBAAS,cAAc;WAoPT,OAAO,IAA6B;;wBA7dZ,kBAAkB,KAAK,GAAG;wBAA1B,kBAAkB,KAAK,GAAG;wBAA1B,kBAAkB,KAAK,GAAG;iCAA1B,kBAAkB,KAAK,GAAG;+BAA1B,kBAAkB,KAAK,GAAG;iCAA1B,kBAAkB,KAAK,GAAG;+BAA1B,kBAAkB,KAAK,GAAG;;wBAA1B,kBAAkB,KAAK,GAAG;wBAA1B,kBAAkB,KAAK,GAAG;wBAA1B,kBAAkB,KAAK,GAAG;iCAA1B,kBAAkB,KAAK,GAAG;+BAA1B,kBAAkB,KAAK,GAAG;iCAA1B,kBAAkB,KAAK,GAAG;+BAA1B,kBAAkB,KAAK,GAAG;;;;;;EAke/D;AAuBD,KAAK,oBAAoB,GAAG,UAAU,CAAC,OAAO,cAAc,CAAC,CAAC;AAC9D,QAAA,MAAM,eAAe;;YA3gBqB,OAAO;eAAS,MAAM;;;;;;;;YAAtB,OAAO;eAAS,MAAM;;;;;;kFAkhB9D,CAAC;wBACkB,uBAAuB,CAAC,OAAO,eAAe,EAAE,oBAAoB,CAAC,OAAO,CAAC,CAAC;AAAnG,wBAAoG;AAWpG,KAAK,uBAAuB,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG;IACxC,QAAO;QACN,MAAM,EAAE,CAAC,CAAC;KAEV,CAAA;CACD,CAAC"}
@@ -1,8 +1,8 @@
1
- import o from "./ApiReferenceLayout.vue2.js";
1
+ import e from "./ApiReferenceLayout.vue2.js";
2
2
  /* empty css */
3
3
  /* empty css */
4
- import t from "../_virtual/_plugin-vue_export-helper.js";
5
- const m = /* @__PURE__ */ t(o, [["__scopeId", "data-v-ef17564c"]]);
4
+ import o from "../_virtual/_plugin-vue_export-helper.js";
5
+ const m = /* @__PURE__ */ o(e, [["__scopeId", "data-v-72ceaee0"]]);
6
6
  export {
7
7
  m as default
8
8
  };
@@ -1,27 +1,28 @@
1
- import { defineComponent as Z, ref as y, computed as h, onBeforeMount as M, onMounted as x, onUnmounted as ee, watch as oe, onServerPrefetch as te, useSSRContext as re, getCurrentInstance as ae, provide as g, openBlock as b, createElementBlock as w, Fragment as P, createElementVNode as l, normalizeClass as ne, unref as d, normalizeStyle as ie, renderSlot as u, normalizeProps as c, guardReactiveProps as p, createVNode as m, withCtx as S, createCommentVNode as T, withDirectives as se, vShow as le, createSlots as de } from "vue";
2
- import { provideUseId as ue } from "@headlessui/vue";
3
- import { addScalarClassesToHeadless as ce } from "@scalar/components";
4
- import { defaultStateFactory as U } from "@scalar/oas-utils/helpers";
5
- import { hasObtrusiveScrollbars as pe, getThemeStyles as fe } from "@scalar/themes";
6
- import { useToasts as ge, ScalarToasts as me } from "@scalar/use-toasts";
7
- import { useMediaQuery as Se, useResizeObserver as ve, useDebounceFn as he } from "@vueuse/core";
8
- import be from "./GettingStarted.vue.js";
9
- import { downloadSpecBus as k, downloadSpecFile as we } from "../helpers/specDownloads.js";
10
- import { GLOBAL_SECURITY_SYMBOL as ye, HIDE_DOWNLOAD_BUTTON_SYMBOL as Te, HIDE_TEST_REQUEST_BUTTON_SYMBOL as Re, OPENAPI_DOCUMENT_URL_SYMBOL as Oe, INTEGRATION_SYMBOL as $e } from "../helpers/provideSymbols.js";
11
- import { useDeprecationWarnings as Ce } from "../hooks/useDeprecationWarnings.js";
12
- import Ee from "./Sidebar/Sidebar.vue.js";
13
- import Ie from "./Content/Content.vue.js";
14
- import Le from "../features/ApiClientModal/ApiClientModal.vue.js";
15
- import { useSidebar as Be } from "../hooks/useSidebar.js";
16
- import { useNavState as De } from "../hooks/useNavState.js";
17
- import { sleep as Me } from "../helpers/sleep.js";
18
- const Pe = ["innerHTML"], Ue = { class: "references-header" }, ke = {
1
+ import { defineComponent as oe, ref as w, computed as h, onBeforeMount as M, onMounted as re, onUnmounted as ae, watch as P, onServerPrefetch as ne, useSSRContext as ie, getCurrentInstance as se, provide as S, openBlock as b, createElementBlock as y, Fragment as k, createElementVNode as d, normalizeClass as le, unref as s, normalizeStyle as de, renderSlot as u, normalizeProps as c, guardReactiveProps as p, createVNode as f, withCtx as g, createCommentVNode as T, withDirectives as ue, vShow as ce, createSlots as pe } from "vue";
2
+ import { useHttpClientStore as fe } from "../stores/useHttpClientStore.js";
3
+ import { provideUseId as ge } from "@headlessui/vue";
4
+ import { addScalarClassesToHeadless as me, ScalarErrorBoundary as Se } from "@scalar/components";
5
+ import { defaultStateFactory as A } from "@scalar/oas-utils/helpers";
6
+ import { hasObtrusiveScrollbars as ve, getThemeStyles as he } from "@scalar/themes";
7
+ import { useToasts as be, ScalarToasts as ye } from "@scalar/use-toasts";
8
+ import { useMediaQuery as we, useResizeObserver as Te, useDebounceFn as Ce } from "@vueuse/core";
9
+ import Re from "./GettingStarted.vue.js";
10
+ import { downloadSpecBus as F, downloadSpecFile as Ee } from "../helpers/specDownloads.js";
11
+ import { GLOBAL_SECURITY_SYMBOL as Oe, HIDE_DOWNLOAD_BUTTON_SYMBOL as $e, HIDE_TEST_REQUEST_BUTTON_SYMBOL as Ie, OPENAPI_DOCUMENT_URL_SYMBOL as Le, INTEGRATION_SYMBOL as Be } from "../helpers/provideSymbols.js";
12
+ import { useDeprecationWarnings as Ue } from "../hooks/useDeprecationWarnings.js";
13
+ import De from "./Sidebar/Sidebar.vue.js";
14
+ import Me from "./Content/Content.vue.js";
15
+ import Pe from "../features/ApiClientModal/ApiClientModal.vue.js";
16
+ import { useSidebar as ke } from "../hooks/useSidebar.js";
17
+ import { useNavState as Ae } from "../hooks/useNavState.js";
18
+ import { sleep as Fe } from "../helpers/sleep.js";
19
+ const Ne = ["innerHTML"], He = { class: "references-header" }, Ye = {
19
20
  key: 0,
20
21
  class: "references-navigation t-doc__sidebar"
21
- }, Ae = { class: "references-navigation-list" }, Fe = { class: "references-editor" }, Ne = { class: "references-editor-textarea" }, He = ["aria-label"], Ye = {
22
+ }, ze = { class: "references-navigation-list" }, _e = { class: "references-editor" }, Ge = { class: "references-editor-textarea" }, Qe = ["aria-label"], Ve = {
22
23
  key: 0,
23
24
  class: "references-footer"
24
- }, ao = /* @__PURE__ */ Z({
25
+ }, ut = /* @__PURE__ */ oe({
25
26
  inheritAttrs: !1,
26
27
  __name: "ApiReferenceLayout",
27
28
  props: {
@@ -30,201 +31,217 @@ const Pe = ["innerHTML"], Ue = { class: "references-header" }, ke = {
30
31
  rawSpec: {}
31
32
  },
32
33
  emits: ["changeTheme", "updateContent", "loadSwaggerFile", "linkSwaggerFile", "toggleDarkMode"],
33
- setup(A) {
34
- const t = A, { initializeToasts: F, toast: N } = ge();
35
- F((e) => N(e));
36
- const H = Se("(min-width: 1150px)"), Y = y("100dvh"), f = y(null);
37
- ve(f, (e) => {
38
- Y.value = e[0].contentRect.height + "px";
34
+ setup(N) {
35
+ const o = N, { initializeToasts: H, toast: Y } = be();
36
+ H((e) => Y(e));
37
+ const z = we("(min-width: 1150px)"), _ = w("100dvh"), m = w(null);
38
+ Te(m, (e) => {
39
+ _.value = e[0].contentRect.height + "px";
39
40
  });
40
- const z = h(pe), {
41
- breadcrumb: _,
41
+ const G = h(ve), {
42
+ breadcrumb: Q,
42
43
  collapsedSidebarItems: v,
43
- isSidebarOpen: G,
44
- setCollapsedSidebarItem: R,
45
- hideModels: V,
46
- defaultOpenAllTags: Q,
47
- setParsedSpec: W,
48
- scrollToOperation: j
49
- } = Be(), {
50
- getPathRoutingId: O,
51
- getSectionId: q,
52
- getTagId: K,
53
- hash: $,
54
- isIntersectionEnabled: C,
55
- pathRouting: E,
44
+ isSidebarOpen: V,
45
+ setCollapsedSidebarItem: C,
46
+ hideModels: W,
47
+ defaultOpenAllTags: j,
48
+ setParsedSpec: q,
49
+ scrollToOperation: K
50
+ } = ke(), {
51
+ getPathRoutingId: R,
52
+ getSectionId: J,
53
+ getTagId: X,
54
+ hash: E,
55
+ isIntersectionEnabled: O,
56
+ pathRouting: $,
56
57
  updateHash: I
57
- } = De();
58
- E.value = t.configuration.pathRouting, M(() => I());
58
+ } = Ae();
59
+ $.value = o.configuration.pathRouting, M(() => I());
59
60
  const L = async (e) => {
60
- var o;
61
- C.value = !1, I(), e ? j(e) : (o = f.value) == null || o.scrollTo(0, 0), await Me(100), C.value = !0;
62
- }, B = y(0);
63
- M(() => ce()), x(() => {
61
+ var t;
62
+ O.value = !1, I(), e ? K(e) : (t = m.value) == null || t.scrollTo(0, 0), await Fe(100), O.value = !0;
63
+ }, B = w(0);
64
+ M(() => me()), re(() => {
64
65
  var r, a, n;
65
- history.scrollRestoration = "manual", k.on(({ specTitle: i }) => {
66
- we(t.rawSpec, i);
66
+ history.scrollRestoration = "manual", F.on(({ specTitle: i }) => {
67
+ Ee(o.rawSpec, i);
67
68
  });
68
- const e = (a = (r = f.value) == null ? void 0 : r.parentElement) == null ? void 0 : a.getBoundingClientRect(), o = (n = f.value) == null ? void 0 : n.getBoundingClientRect();
69
- if (e && o) {
70
- const i = o.top - e.top;
69
+ const e = (a = (r = m.value) == null ? void 0 : r.parentElement) == null ? void 0 : a.getBoundingClientRect(), t = (n = m.value) == null ? void 0 : n.getBoundingClientRect();
70
+ if (e && t) {
71
+ const i = t.top - e.top;
71
72
  B.value = i < 2 ? 0 : i;
72
73
  }
73
- window.onhashchange = () => L(decodeURIComponent(window.location.hash.replace(/^#/, ""))), window.onpopstate = () => E.value && L(O(window.location.pathname));
74
+ window.onhashchange = () => L(decodeURIComponent(window.location.hash.replace(/^#/, ""))), window.onpopstate = () => $.value && L(R(window.location.pathname));
74
75
  });
75
- const J = h(
76
- () => H.value || !t.configuration.isEditable
77
- ), D = he((e) => {
76
+ const Z = h(
77
+ () => z.value || !o.configuration.isEditable
78
+ ), U = Ce((e) => {
78
79
  if ((e.target.scrollTop ?? 0) < 50) {
79
- const r = t.configuration.pathRouting ? t.configuration.pathRouting.basePath : window.location.pathname;
80
- window.history.replaceState({}, "", r + window.location.search), $.value = "";
80
+ const r = o.configuration.pathRouting ? o.configuration.pathRouting.basePath : window.location.pathname;
81
+ window.history.replaceState({}, "", r + window.location.search), E.value = "";
81
82
  }
82
- }), s = h(() => ({
83
- breadcrumb: _.value,
84
- spec: t.parsedSpec
83
+ }), l = h(() => ({
84
+ breadcrumb: Q.value,
85
+ spec: o.parsedSpec
85
86
  }));
86
- ee(() => {
87
- k.reset();
88
- }), oe(() => t.parsedSpec, W, { deep: !0 }), te(() => {
89
- var o, r;
90
- const e = re();
91
- if (e && (e.payload || (e.payload = { data: U() }), (o = e.payload).data || (o.data = U()), t.configuration.pathRouting)) {
92
- const a = O(e.url);
93
- $.value = a, e.payload.data.hash = a;
87
+ ae(() => {
88
+ F.reset();
89
+ }), P(() => o.parsedSpec, q, { deep: !0 }), ne(() => {
90
+ var t, r;
91
+ const e = ie();
92
+ if (e && (e.payload || (e.payload = { data: A() }), (t = e.payload).data || (t.data = A()), o.configuration.pathRouting)) {
93
+ const a = R(e.url);
94
+ E.value = a, e.payload.data.hash = a;
94
95
  for (const n in v)
95
96
  Object.hasOwn(v, n) && delete v[n];
96
97
  if (a)
97
- R(q(a), !0);
98
+ C(J(a), !0);
98
99
  else {
99
- const n = (r = t.parsedSpec.tags) == null ? void 0 : r[0];
100
- n && R(K(n), !0);
100
+ const n = (r = o.parsedSpec.tags) == null ? void 0 : r[0];
101
+ n && C(X(n), !0);
101
102
  }
102
103
  e.payload.data["useSidebarContent-collapsedSidebarItems"] = v;
103
104
  }
104
- }), ue(() => {
105
+ }), ge(() => {
105
106
  var a;
106
- const e = ae(), o = "scalar-instance-id";
107
- if (!e) return o;
107
+ const e = se(), t = "scalar-instance-id";
108
+ if (!e) return t;
108
109
  let r = e.uid;
109
- return typeof window > "u" ? (e.attrs || (e.attrs = {}), e.attrs[o] = r) : (a = e.vnode.el) != null && a.getAttribute && (r = e.vnode.el.getAttribute(o)), `${o}-${r}`;
110
- }), g(ye, () => t.parsedSpec.security), g(
111
- Te,
112
- () => t.configuration.hideDownloadButton
113
- ), g(
114
- Re,
115
- () => t.configuration.hideTestRequestButton
116
- ), g(Oe, () => {
117
- var e;
118
- return (e = t.configuration.spec) == null ? void 0 : e.url;
119
- }), g(
110
+ return typeof window > "u" ? (e.attrs || (e.attrs = {}), e.attrs[t] = r) : (a = e.vnode.el) != null && a.getAttribute && (r = e.vnode.el.getAttribute(t)), `${t}-${r}`;
111
+ }), S(Oe, () => o.parsedSpec.security), S(
120
112
  $e,
121
- () => t.configuration._integration !== null ? t.configuration._integration : "vue"
122
- ), V.value = t.configuration.hideModels ?? !1, Q.value = t.configuration.defaultOpenAllTags ?? !1, Ce(t.configuration);
123
- const X = h(
113
+ () => o.configuration.hideDownloadButton
114
+ ), S(
115
+ Ie,
116
+ () => o.configuration.hideTestRequestButton
117
+ ), S(Le, () => {
118
+ var e;
119
+ return (e = o.configuration.spec) == null ? void 0 : e.url;
120
+ }), S(
121
+ Be,
122
+ () => o.configuration._integration !== null ? o.configuration._integration : "vue"
123
+ );
124
+ function D(e, t) {
125
+ P(
126
+ () => o.configuration[e],
127
+ (r) => {
128
+ typeof r < "u" && t(r);
129
+ },
130
+ { immediate: !0 }
131
+ );
132
+ }
133
+ const { setExcludedClients: x, setDefaultHttpClient: ee } = fe();
134
+ D("defaultHttpClient", ee), D("hiddenClients", x), W.value = o.configuration.hideModels ?? !1, j.value = o.configuration.defaultOpenAllTags ?? !1, Ue(o.configuration);
135
+ const te = h(
124
136
  () => `<style>
125
- ${fe(t.configuration.theme, {
126
- fonts: t.configuration.withDefaultFonts
137
+ ${he(o.configuration.theme, {
138
+ fonts: o.configuration.withDefaultFonts
127
139
  })}</style>`
128
140
  );
129
- return (e, o) => {
141
+ return (e, t) => {
130
142
  var r, a;
131
- return b(), w(P, null, [
132
- l("div", { innerHTML: X.value }, null, 8, Pe),
133
- l("div", {
143
+ return b(), y(k, null, [
144
+ d("div", { innerHTML: te.value }, null, 8, Ne),
145
+ d("div", {
134
146
  ref_key: "documentEl",
135
- ref: f,
136
- class: ne(["scalar-app scalar-api-reference references-layout", [
147
+ ref: m,
148
+ class: le(["scalar-app scalar-api-reference references-layout", [
137
149
  {
138
- "scalar-scrollbars-obtrusive": z.value,
150
+ "scalar-scrollbars-obtrusive": G.value,
139
151
  "references-editable": e.configuration.isEditable,
140
152
  "references-sidebar": e.configuration.showSidebar,
141
- "references-sidebar-mobile-open": d(G),
153
+ "references-sidebar-mobile-open": s(V),
142
154
  "references-classic": e.configuration.layout === "classic"
143
155
  },
144
156
  e.$attrs.class
145
157
  ]]),
146
- style: ie({
158
+ style: de({
147
159
  "--scalar-y-offset": `var(--scalar-custom-header-height, ${B.value}px)`
148
160
  }),
149
- onScrollPassive: o[4] || (o[4] = //@ts-ignore
150
- (...n) => d(D) && d(D)(...n))
161
+ onScrollPassive: t[4] || (t[4] = //@ts-ignore
162
+ (...n) => s(U) && s(U)(...n))
151
163
  }, [
152
- l("div", Ue, [
153
- u(e.$slots, "header", c(p(s.value)), void 0, !0)
164
+ d("div", He, [
165
+ u(e.$slots, "header", c(p(l.value)), void 0, !0)
154
166
  ]),
155
- e.configuration.showSidebar ? (b(), w("aside", ke, [
156
- l("div", Ae, [
157
- m(d(Ee), {
158
- operationsSorter: e.configuration.operationsSorter,
159
- parsedSpec: e.parsedSpec,
160
- tagsSorter: e.configuration.tagsSorter
161
- }, {
162
- "sidebar-start": S(() => [
163
- u(e.$slots, "sidebar-start", c(p(s.value)), void 0, !0)
164
- ]),
165
- "sidebar-end": S(() => [
166
- u(e.$slots, "sidebar-end", c(p(s.value)), void 0, !0)
167
+ e.configuration.showSidebar ? (b(), y("aside", Ye, [
168
+ d("div", ze, [
169
+ f(s(Se), null, {
170
+ default: g(() => [
171
+ f(s(De), {
172
+ operationsSorter: e.configuration.operationsSorter,
173
+ parsedSpec: e.parsedSpec,
174
+ tagsSorter: e.configuration.tagsSorter
175
+ }, {
176
+ "sidebar-start": g(() => [
177
+ u(e.$slots, "sidebar-start", c(p(l.value)), void 0, !0)
178
+ ]),
179
+ "sidebar-end": g(() => [
180
+ u(e.$slots, "sidebar-end", c(p(l.value)), void 0, !0)
181
+ ]),
182
+ _: 3
183
+ }, 8, ["operationsSorter", "parsedSpec", "tagsSorter"])
167
184
  ]),
168
185
  _: 3
169
- }, 8, ["operationsSorter", "parsedSpec", "tagsSorter"])
186
+ })
170
187
  ])
171
188
  ])) : T("", !0),
172
- se(l("div", Fe, [
173
- l("div", Ne, [
174
- u(e.$slots, "editor", c(p(s.value)), void 0, !0)
189
+ ue(d("div", _e, [
190
+ d("div", Ge, [
191
+ u(e.$slots, "editor", c(p(l.value)), void 0, !0)
175
192
  ])
176
193
  ], 512), [
177
- [le, e.configuration.isEditable]
194
+ [ce, e.configuration.isEditable]
178
195
  ]),
179
- J.value ? (b(), w(P, { key: 1 }, [
180
- l("section", {
196
+ Z.value ? (b(), y(k, { key: 1 }, [
197
+ d("section", {
181
198
  "aria-label": `Open API Documentation for ${(r = e.parsedSpec.info) == null ? void 0 : r.title}`,
182
199
  class: "references-rendered"
183
200
  }, [
184
- m(d(Ie), {
201
+ f(s(Me), {
185
202
  baseServerURL: e.configuration.baseServerURL,
186
203
  layout: e.configuration.layout,
187
204
  parsedSpec: e.parsedSpec,
188
- proxy: e.configuration.proxy,
205
+ proxyUrl: e.configuration.proxyUrl ?? e.configuration.proxy,
189
206
  servers: e.configuration.servers
190
- }, de({
191
- start: S(() => [
192
- u(e.$slots, "content-start", c(p(s.value)), void 0, !0)
207
+ }, pe({
208
+ start: g(() => [
209
+ u(e.$slots, "content-start", c(p(l.value)), void 0, !0)
193
210
  ]),
194
- end: S(() => [
195
- u(e.$slots, "content-end", c(p(s.value)), void 0, !0)
211
+ end: g(() => [
212
+ u(e.$slots, "content-end", c(p(l.value)), void 0, !0)
196
213
  ]),
197
214
  _: 2
198
215
  }, [
199
216
  (a = e.configuration) != null && a.isEditable ? {
200
217
  name: "empty-state",
201
- fn: S(() => {
218
+ fn: g(() => {
202
219
  var n;
203
220
  return [
204
- m(be, {
221
+ f(Re, {
205
222
  theme: ((n = e.configuration) == null ? void 0 : n.theme) || "default",
206
- onChangeTheme: o[0] || (o[0] = (i) => e.$emit("changeTheme", i)),
207
- onLinkSwaggerFile: o[1] || (o[1] = (i) => e.$emit("linkSwaggerFile")),
208
- onLoadSwaggerFile: o[2] || (o[2] = (i) => e.$emit("loadSwaggerFile")),
209
- onUpdateContent: o[3] || (o[3] = (i) => e.$emit("updateContent", i))
223
+ onChangeTheme: t[0] || (t[0] = (i) => e.$emit("changeTheme", i)),
224
+ onLinkSwaggerFile: t[1] || (t[1] = (i) => e.$emit("linkSwaggerFile")),
225
+ onLoadSwaggerFile: t[2] || (t[2] = (i) => e.$emit("loadSwaggerFile")),
226
+ onUpdateContent: t[3] || (t[3] = (i) => e.$emit("updateContent", i))
210
227
  }, null, 8, ["theme"])
211
228
  ];
212
229
  }),
213
230
  key: "0"
214
231
  } : void 0
215
- ]), 1032, ["baseServerURL", "layout", "parsedSpec", "proxy", "servers"])
216
- ], 8, He),
217
- e.$slots.footer ? (b(), w("div", Ye, [
218
- u(e.$slots, "footer", c(p(s.value)), void 0, !0)
232
+ ]), 1032, ["baseServerURL", "layout", "parsedSpec", "proxyUrl", "servers"])
233
+ ], 8, Qe),
234
+ e.$slots.footer ? (b(), y("div", Ve, [
235
+ u(e.$slots, "footer", c(p(l.value)), void 0, !0)
219
236
  ])) : T("", !0)
220
237
  ], 64)) : T("", !0),
221
- m(d(Le), { configuration: e.configuration }, null, 8, ["configuration"])
238
+ f(s(Pe), { configuration: e.configuration }, null, 8, ["configuration"])
222
239
  ], 38),
223
- m(d(me))
240
+ f(s(ye))
224
241
  ], 64);
225
242
  };
226
243
  }
227
244
  });
228
245
  export {
229
- ao as default
246
+ ut as default
230
247
  };
@@ -1,7 +1,7 @@
1
1
  import type { Spec } from '@scalar/types/legacy';
2
2
  type __VLS_Props = {
3
3
  parsedSpec?: Spec;
4
- proxy?: string;
4
+ proxyUrl?: string;
5
5
  };
6
6
  declare const _default: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
7
7
  export default _default;
@@ -1 +1 @@
1
- {"version":3,"file":"Authentication.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/Content/Authentication/Authentication.vue"],"names":[],"mappings":"AAgFA,OAAO,KAAK,EAAY,IAAI,EAAE,MAAM,sBAAsB,CAAA;AAS1D,KAAK,WAAW,GAAG;IAAE,UAAU,CAAC,EAAE,IAAI,CAAC;IAAC,KAAK,CAAC,EAAE,MAAM,CAAA;CAAE,CAAC;;AA+HzD,wBAMG"}
1
+ {"version":3,"file":"Authentication.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/Content/Authentication/Authentication.vue"],"names":[],"mappings":"AAgFA,OAAO,KAAK,EAAY,IAAI,EAAE,MAAM,sBAAsB,CAAA;AAS1D,KAAK,WAAW,GAAG;IAAE,UAAU,CAAC,EAAE,IAAI,CAAC;IAAC,QAAQ,CAAC,EAAE,MAAM,CAAA;CAAE,CAAC;;AA+H5D,wBAMG"}
@@ -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 m = /* @__PURE__ */ o(t, [["__scopeId", "data-v-244454d9"]]);
4
+ const i = /* @__PURE__ */ o(t, [["__scopeId", "data-v-a41bc2d4"]]);
5
5
  export {
6
- m as default
6
+ i as default
7
7
  };