@scalar/api-reference 1.25.87 → 1.25.89

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.
@@ -1 +1 @@
1
- {"version":3,"file":"ApiReference.vue.d.ts","sourceRoot":"","sources":["../../src/components/ApiReference.vue"],"names":[],"mappings":"AAuGA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,UAAU,CAAA;AAmE9C,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":"AAqGA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,UAAU,CAAA;AAiE9C,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,36 +1,34 @@
1
- import { defineComponent as x, watch as p, computed as i, toRef as m, openBlock as f, createElementBlock as h, Fragment as U, createBlock as V, resolveDynamicComponent as $, withCtx as s, createTextVNode as b, toDisplayString as B, createCommentVNode as N, createVNode as R, unref as a, renderSlot as g } from "vue";
1
+ import { defineComponent as w, watch as x, computed as n, toRef as d, openBlock as p, createElementBlock as h, Fragment as U, createBlock as V, resolveDynamicComponent as $, withCtx as i, createTextVNode as b, toDisplayString as B, createCommentVNode as N, createVNode as R, unref as a, renderSlot as m } from "vue";
2
2
  import { migrateThemeVariables as T } from "@scalar/themes";
3
3
  import { useColorMode as _ } from "@scalar/use-hooks/useColorMode";
4
4
  import { useSeoMeta as E } from "@unhead/vue";
5
5
  import { useFavicon as F } from "@vueuse/core";
6
6
  import { useReactiveSpec as A } from "../hooks/useReactiveSpec.js";
7
7
  import L from "./Layouts/Layouts.vue.js";
8
- const K = /* @__PURE__ */ x({
8
+ const K = /* @__PURE__ */ w({
9
9
  __name: "ApiReference",
10
10
  props: {
11
11
  configuration: {}
12
12
  },
13
13
  emits: ["updateContent"],
14
- setup(v) {
15
- var c, u, l;
16
- const t = v, { setColorMode: C, toggleColorMode: k, darkLightMode: S } = _({
17
- initialColorMode: (c = t.configuration) != null && c.darkMode ? "dark" : void 0,
18
- overrideColorMode: (u = t.configuration) == null ? void 0 : u.forceDarkModeState
14
+ setup(f) {
15
+ var s, c, u;
16
+ const t = f, { setColorMode: g, toggleColorMode: v, darkLightMode: C } = _({
17
+ initialColorMode: (s = t.configuration) != null && s.darkMode ? "dark" : void 0,
18
+ overrideColorMode: (c = t.configuration) == null ? void 0 : c.forceDarkModeState
19
19
  });
20
- p(
20
+ x(
21
21
  () => {
22
22
  var o;
23
23
  return (o = t.configuration) == null ? void 0 : o.darkMode;
24
24
  },
25
- (o) => C(o ? "dark" : "light")
25
+ (o) => g(o ? "dark" : "light")
26
26
  );
27
- const n = i(() => {
27
+ const k = n(() => {
28
28
  var o, r;
29
29
  if ((o = t.configuration) != null && o.customCss)
30
30
  return T((r = t.configuration) == null ? void 0 : r.customCss);
31
- });
32
- p(n, () => console.log(n.value));
33
- const e = i(() => {
31
+ }), e = n(() => {
34
32
  var o;
35
33
  return {
36
34
  spec: {
@@ -43,38 +41,38 @@ const K = /* @__PURE__ */ x({
43
41
  showSidebar: !0,
44
42
  isEditable: !1,
45
43
  ...t.configuration,
46
- customCss: n.value
44
+ customCss: k.value
47
45
  };
48
46
  });
49
- (l = e.value) != null && l.metaData && E(e.value.metaData);
50
- const { parsedSpec: M, rawSpec: y } = A({
51
- proxyUrl: m(
47
+ (u = e.value) != null && u.metaData && E(e.value.metaData);
48
+ const { parsedSpec: S, rawSpec: M } = A({
49
+ proxyUrl: d(
52
50
  () => e.value.proxyUrl || e.value.proxy || ""
53
51
  ),
54
- specConfig: m(() => e.value.spec || {})
55
- }), D = i(() => e.value.favicon);
56
- return F(D), (o, r) => {
57
- var d;
58
- return f(), h(U, null, [
59
- (d = e.value) != null && d.customCss ? (f(), V($("style"), { key: 0 }, {
60
- default: s(() => [
52
+ specConfig: d(() => e.value.spec || {})
53
+ }), y = n(() => e.value.favicon);
54
+ return F(y), (o, r) => {
55
+ var l;
56
+ return p(), h(U, null, [
57
+ (l = e.value) != null && l.customCss ? (p(), V($("style"), { key: 0 }, {
58
+ default: i(() => [
61
59
  b(B(e.value.customCss), 1)
62
60
  ]),
63
61
  _: 1
64
62
  })) : N("", !0),
65
63
  R(a(L), {
66
64
  configuration: e.value,
67
- isDark: a(S) === "dark",
68
- parsedSpec: a(M),
69
- rawSpec: a(y),
70
- onToggleDarkMode: r[0] || (r[0] = () => a(k)()),
71
- onUpdateContent: r[1] || (r[1] = (w) => o.$emit("updateContent", w))
65
+ isDark: a(C) === "dark",
66
+ parsedSpec: a(S),
67
+ rawSpec: a(M),
68
+ onToggleDarkMode: r[0] || (r[0] = () => a(v)()),
69
+ onUpdateContent: r[1] || (r[1] = (D) => o.$emit("updateContent", D))
72
70
  }, {
73
- footer: s(() => [
74
- g(o.$slots, "footer")
71
+ footer: i(() => [
72
+ m(o.$slots, "footer")
75
73
  ]),
76
- "content-end": s(() => [
77
- g(o.$slots, "footer")
74
+ "content-end": i(() => [
75
+ m(o.$slots, "footer")
78
76
  ]),
79
77
  _: 3
80
78
  }, 8, ["configuration", "isDark", "parsedSpec", "rawSpec"])
@@ -1 +1 @@
1
- {"version":3,"file":"ApiReferenceLayout.vue.d.ts","sourceRoot":"","sources":["../../src/components/ApiReferenceLayout.vue"],"names":[],"mappings":"AAooBA,OAAO,EACL,KAAK,OAAO,EAGb,MAAM,gBAAgB,CAAA;AA4BvB,OAAO,KAAK,EACV,oBAAoB,EAEpB,kBAAkB,EACnB,MAAM,UAAU,CAAA;AAOjB,KAAK,WAAW,GAAG,IAAI,CAAC,oBAAoB,EAAE,QAAQ,CAAC,CAAC;AAwRxD,iBAAS,cAAc;WAoPT,OAAO,IAA6B;;wBAvfZ,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;;;;;;EA4f/D;AAuBD,KAAK,oBAAoB,GAAG,UAAU,CAAC,OAAO,cAAc,CAAC,CAAC;AAC9D,QAAA,MAAM,eAAe;;YAriBqB,OAAO;eAAS,MAAM;;;;;;;;YAAtB,OAAO;eAAS,MAAM;;;;;;kFA4iB9D,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":"AAioBA,OAAO,EACL,KAAK,OAAO,EAGb,MAAM,gBAAgB,CAAA;AA4BvB,OAAO,KAAK,EACV,oBAAoB,EAEpB,kBAAkB,EACnB,MAAM,UAAU,CAAA;AAOjB,KAAK,WAAW,GAAG,IAAI,CAAC,oBAAoB,EAAE,QAAQ,CAAC,CAAC;AAuRxD,iBAAS,cAAc;WAoPT,OAAO,IAA6B;;wBAtfZ,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;;;;;;EA2f/D;AAuBD,KAAK,oBAAoB,GAAG,UAAU,CAAC,OAAO,cAAc,CAAC,CAAC;AAC9D,QAAA,MAAM,eAAe;;YApiBqB,OAAO;eAAS,MAAM;;;;;;;;YAAtB,OAAO;eAAS,MAAM;;;;;;kFA2iB9D,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"}
@@ -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 m = /* @__PURE__ */ t(o, [["__scopeId", "data-v-1b162cc2"]]);
5
+ const m = /* @__PURE__ */ t(o, [["__scopeId", "data-v-4fe5c650"]]);
6
6
  export {
7
7
  m as default
8
8
  };
@@ -1,23 +1,23 @@
1
- import { defineComponent as ie, ref as w, computed as h, onBeforeMount as P, onMounted as se, onUnmounted as le, watch as C, onServerPrefetch as de, useSSRContext as ue, getCurrentInstance as ce, provide as p, openBlock as b, createElementBlock as T, Fragment as U, createElementVNode as d, normalizeClass as fe, unref as s, normalizeStyle as pe, renderSlot as u, normalizeProps as c, guardReactiveProps as f, createVNode as g, withCtx as m, createCommentVNode as E, withDirectives as ge, vShow as me, createSlots as Se } from "vue";
1
+ import { defineComponent as ie, ref as w, computed as h, onBeforeMount as k, onMounted as se, onUnmounted as le, watch as C, onServerPrefetch as de, useSSRContext as ue, getCurrentInstance as ce, provide as p, openBlock as b, createElementBlock as y, Fragment as A, createElementVNode as d, normalizeClass as fe, unref as s, normalizeStyle as pe, renderSlot as u, normalizeProps as c, guardReactiveProps as f, createVNode as g, withCtx as m, createCommentVNode as E, withDirectives as ge, vShow as me, createSlots as Se } from "vue";
2
2
  import { useHttpClientStore as ve } from "../stores/useHttpClientStore.js";
3
3
  import { provideUseId as he } from "@headlessui/vue";
4
- import { createWorkspaceStore as be, WORKSPACE_SYMBOL as Te, createActiveEntitiesStore as ye, ACTIVE_ENTITIES_SYMBOL as we } from "@scalar/api-client/store";
4
+ import { createWorkspaceStore as be, WORKSPACE_SYMBOL as ye, createActiveEntitiesStore as Te, ACTIVE_ENTITIES_SYMBOL as we } from "@scalar/api-client/store";
5
5
  import { addScalarClassesToHeadless as Ce, ScalarErrorBoundary as Ee } from "@scalar/components";
6
- import { defaultStateFactory as N } from "@scalar/oas-utils/helpers";
6
+ import { defaultStateFactory as P } from "@scalar/oas-utils/helpers";
7
7
  import { hasObtrusiveScrollbars as Re, getThemeStyles as Oe } from "@scalar/themes";
8
8
  import { useToasts as $e, ScalarToasts as Ie } from "@scalar/use-toasts";
9
9
  import { useMediaQuery as Be, useResizeObserver as Le, useDebounceFn as De } from "@vueuse/core";
10
- import Ae from "./GettingStarted.vue.js";
11
- import { downloadSpecBus as F, downloadSpecFile as Me } from "../helpers/specDownloads.js";
12
- import { HIDE_DOWNLOAD_BUTTON_SYMBOL as ke, HIDE_TEST_REQUEST_BUTTON_SYMBOL as Pe, OPENAPI_DOCUMENT_URL_SYMBOL as Ue, INTEGRATION_SYMBOL as Ne } from "../helpers/provideSymbols.js";
13
- import { useDeprecationWarnings as Fe } from "../hooks/useDeprecationWarnings.js";
10
+ import Me from "./GettingStarted.vue.js";
11
+ import { downloadSpecBus as F, downloadSpecFile as Ue } from "../helpers/specDownloads.js";
12
+ import { HIDE_DOWNLOAD_BUTTON_SYMBOL as ke, HIDE_TEST_REQUEST_BUTTON_SYMBOL as Ae, OPENAPI_DOCUMENT_URL_SYMBOL as Pe, INTEGRATION_SYMBOL as Fe } from "../helpers/provideSymbols.js";
13
+ import { useDeprecationWarnings as Ne } from "../hooks/useDeprecationWarnings.js";
14
14
  import He from "./Sidebar/Sidebar.vue.js";
15
15
  import _e from "./Content/Content.vue.js";
16
16
  import Ye from "../features/ApiClientModal/ApiClientModal.vue.js";
17
17
  import { useSidebar as ze } from "../hooks/useSidebar.js";
18
18
  import { useNavState as We } from "../hooks/useNavState.js";
19
- import { sleep as Ge } from "../helpers/sleep.js";
20
- const Ve = ["innerHTML"], Ke = { class: "references-header" }, Qe = {
19
+ import { sleep as Ve } from "../helpers/sleep.js";
20
+ const Ge = ["innerHTML"], Ke = { class: "references-header" }, Qe = {
21
21
  key: 0,
22
22
  class: "references-navigation t-doc__sidebar"
23
23
  }, je = { class: "references-navigation-list" }, qe = { class: "references-editor" }, Je = { class: "references-editor-textarea" }, Xe = ["aria-label"], Ze = {
@@ -32,54 +32,54 @@ const Ve = ["innerHTML"], Ke = { class: "references-header" }, Qe = {
32
32
  rawSpec: {}
33
33
  },
34
34
  emits: ["changeTheme", "updateContent", "loadSwaggerFile", "linkSwaggerFile", "toggleDarkMode"],
35
- setup(H) {
36
- const o = H, { initializeToasts: _, toast: Y } = $e();
37
- _((e) => Y(e));
38
- const z = Be("(min-width: 1150px)"), W = w("100dvh"), S = w(null);
35
+ setup(N) {
36
+ const o = N, { initializeToasts: H, toast: _ } = $e();
37
+ H((e) => _(e));
38
+ const Y = Be("(min-width: 1150px)"), z = w("100dvh"), S = w(null);
39
39
  Le(S, (e) => {
40
- W.value = e[0].contentRect.height + "px";
40
+ z.value = e[0].contentRect.height + "px";
41
41
  });
42
- const G = h(Re), {
42
+ const W = h(Re), {
43
43
  breadcrumb: V,
44
44
  collapsedSidebarItems: v,
45
- isSidebarOpen: K,
45
+ isSidebarOpen: G,
46
46
  setCollapsedSidebarItem: R,
47
- hideModels: Q,
48
- defaultOpenAllTags: j,
49
- setParsedSpec: q,
50
- scrollToOperation: J
47
+ hideModels: K,
48
+ defaultOpenAllTags: Q,
49
+ setParsedSpec: j,
50
+ scrollToOperation: q
51
51
  } = ze(), {
52
- getReferenceHash: O,
53
- getPathRoutingId: $,
52
+ getReferenceHash: J,
53
+ getPathRoutingId: O,
54
54
  getSectionId: X,
55
55
  getTagId: Z,
56
56
  hash: x,
57
- isIntersectionEnabled: I,
58
- pathRouting: B,
59
- updateHash: L,
57
+ isIntersectionEnabled: $,
58
+ pathRouting: I,
59
+ updateHash: B,
60
60
  replaceUrlState: ee
61
61
  } = We();
62
- B.value = o.configuration.pathRouting, P(() => L());
63
- const D = async (e) => {
62
+ I.value = o.configuration.pathRouting, k(() => B());
63
+ const L = async (e) => {
64
64
  var t;
65
- I.value = !1, L(), e ? J(e) : (t = S.value) == null || t.scrollTo(0, 0), await Ge(100), I.value = !0;
66
- }, A = w(0);
67
- P(() => Ce()), se(() => {
65
+ $.value = !1, B(), e ? q(e) : (t = S.value) == null || t.scrollTo(0, 0), await Ve(100), $.value = !0;
66
+ }, D = w(0);
67
+ k(() => Ce()), se(() => {
68
68
  var r, n, a;
69
69
  history.scrollRestoration = "manual", F.on(({ specTitle: i }) => {
70
- Me(o.rawSpec, i);
70
+ Ue(o.rawSpec, i);
71
71
  });
72
72
  const e = (n = (r = S.value) == null ? void 0 : r.parentElement) == null ? void 0 : n.getBoundingClientRect(), t = (a = S.value) == null ? void 0 : a.getBoundingClientRect();
73
73
  if (e && t) {
74
74
  const i = t.top - e.top;
75
- A.value = i < 2 ? 0 : i;
75
+ D.value = i < 2 ? 0 : i;
76
76
  }
77
77
  window.onhashchange = () => {
78
- console.log("CHANGED TO: ", O()), D(O());
79
- }, window.onpopstate = () => B.value && D($(window.location.pathname));
78
+ L(J());
79
+ }, window.onpopstate = () => I.value && L(O(window.location.pathname));
80
80
  });
81
81
  const te = h(
82
- () => z.value || !o.configuration.isEditable
82
+ () => Y.value || !o.configuration.isEditable
83
83
  ), M = De((e) => {
84
84
  if ((e.target.scrollTop ?? 0) < 50) {
85
85
  const r = o.configuration.pathRouting ? o.configuration.pathRouting.basePath : window.location.pathname;
@@ -91,11 +91,11 @@ const Ve = ["innerHTML"], Ke = { class: "references-header" }, Qe = {
91
91
  }));
92
92
  le(() => {
93
93
  F.reset();
94
- }), C(() => o.parsedSpec, q, { deep: !0 }), de(() => {
94
+ }), C(() => o.parsedSpec, j, { deep: !0 }), de(() => {
95
95
  var t, r;
96
96
  const e = ue();
97
- if (e && (e.payload || (e.payload = { data: N() }), (t = e.payload).data || (t.data = N()), o.configuration.pathRouting)) {
98
- const n = $(e.url);
97
+ if (e && (e.payload || (e.payload = { data: P() }), (t = e.payload).data || (t.data = P()), o.configuration.pathRouting)) {
98
+ const n = O(e.url);
99
99
  x.value = n, e.payload.data.hash = n;
100
100
  for (const a in v)
101
101
  Object.hasOwn(v, a) && delete v[a];
@@ -114,9 +114,9 @@ const Ve = ["innerHTML"], Ke = { class: "references-header" }, Qe = {
114
114
  let r = e.uid;
115
115
  return typeof window > "u" ? (e.attrs || (e.attrs = {}), e.attrs[t] = r) : (n = e.vnode.el) != null && n.getAttribute && (r = e.vnode.el.getAttribute(t)), `${t}-${r}`;
116
116
  });
117
- const y = be({
117
+ const T = be({
118
118
  isReadOnly: !0,
119
- proxyUrl: o.configuration.proxy,
119
+ proxyUrl: o.configuration.proxyUrl || o.configuration.proxy,
120
120
  themeId: o.configuration.theme,
121
121
  useLocalStorage: !1,
122
122
  hideClientButton: o.configuration.hideClientButton
@@ -125,29 +125,29 @@ const Ve = ["innerHTML"], Ke = { class: "references-header" }, Qe = {
125
125
  () => o.rawSpec,
126
126
  (e) => {
127
127
  var t;
128
- return y.importSpecFile(e, "default", {
128
+ return T.importSpecFile(e, "default", {
129
129
  shouldLoad: !1,
130
130
  documentUrl: (t = o.configuration.spec) == null ? void 0 : t.url,
131
131
  setCollectionSecurity: !0,
132
132
  ...o.configuration
133
133
  });
134
134
  }
135
- ), p(Te, y);
136
- const oe = ye(y);
135
+ ), p(ye, T);
136
+ const oe = Te(T);
137
137
  p(we, oe), p(
138
138
  ke,
139
139
  () => o.configuration.hideDownloadButton
140
140
  ), p(
141
- Pe,
141
+ Ae,
142
142
  () => o.configuration.hideTestRequestButton
143
- ), p(Ue, () => {
143
+ ), p(Pe, () => {
144
144
  var e;
145
145
  return (e = o.configuration.spec) == null ? void 0 : e.url;
146
146
  }), p(
147
- Ne,
147
+ Fe,
148
148
  () => o.configuration._integration !== null ? o.configuration._integration : "vue"
149
149
  );
150
- function k(e, t) {
150
+ function U(e, t) {
151
151
  C(
152
152
  () => o.configuration[e],
153
153
  (r) => {
@@ -157,7 +157,7 @@ const Ve = ["innerHTML"], Ke = { class: "references-header" }, Qe = {
157
157
  );
158
158
  }
159
159
  const { setExcludedClients: re, setDefaultHttpClient: ne } = ve();
160
- k("defaultHttpClient", ne), k("hiddenClients", re), Q.value = o.configuration.hideModels ?? !1, j.value = o.configuration.defaultOpenAllTags ?? !1, Fe(o.configuration);
160
+ U("defaultHttpClient", ne), U("hiddenClients", re), K.value = o.configuration.hideModels ?? !1, Q.value = o.configuration.defaultOpenAllTags ?? !1, Ne(o.configuration);
161
161
  const ae = h(
162
162
  () => `<style>
163
163
  ${Oe(o.configuration.theme, {
@@ -166,23 +166,23 @@ const Ve = ["innerHTML"], Ke = { class: "references-header" }, Qe = {
166
166
  );
167
167
  return (e, t) => {
168
168
  var r, n;
169
- return b(), T(U, null, [
170
- d("div", { innerHTML: ae.value }, null, 8, Ve),
169
+ return b(), y(A, null, [
170
+ d("div", { innerHTML: ae.value }, null, 8, Ge),
171
171
  d("div", {
172
172
  ref_key: "documentEl",
173
173
  ref: S,
174
174
  class: fe(["scalar-app scalar-api-reference references-layout", [
175
175
  {
176
- "scalar-scrollbars-obtrusive": G.value,
176
+ "scalar-scrollbars-obtrusive": W.value,
177
177
  "references-editable": e.configuration.isEditable,
178
178
  "references-sidebar": e.configuration.showSidebar,
179
- "references-sidebar-mobile-open": s(K),
179
+ "references-sidebar-mobile-open": s(G),
180
180
  "references-classic": e.configuration.layout === "classic"
181
181
  },
182
182
  e.$attrs.class
183
183
  ]]),
184
184
  style: pe({
185
- "--scalar-y-offset": `var(--scalar-custom-header-height, ${A.value}px)`
185
+ "--scalar-y-offset": `var(--scalar-custom-header-height, ${D.value}px)`
186
186
  }),
187
187
  onScrollPassive: t[4] || (t[4] = //@ts-ignore
188
188
  (...a) => s(M) && s(M)(...a))
@@ -190,7 +190,7 @@ const Ve = ["innerHTML"], Ke = { class: "references-header" }, Qe = {
190
190
  d("div", Ke, [
191
191
  u(e.$slots, "header", c(f(l.value)), void 0, !0)
192
192
  ]),
193
- e.configuration.showSidebar ? (b(), T("aside", Qe, [
193
+ e.configuration.showSidebar ? (b(), y("aside", Qe, [
194
194
  d("div", je, [
195
195
  g(s(Ee), null, {
196
196
  default: m(() => [
@@ -219,7 +219,7 @@ const Ve = ["innerHTML"], Ke = { class: "references-header" }, Qe = {
219
219
  ], 512), [
220
220
  [me, e.configuration.isEditable]
221
221
  ]),
222
- te.value ? (b(), T(U, { key: 1 }, [
222
+ te.value ? (b(), y(A, { key: 1 }, [
223
223
  d("section", {
224
224
  "aria-label": `Open API Documentation for ${(r = e.parsedSpec.info) == null ? void 0 : r.title}`,
225
225
  class: "references-rendered"
@@ -243,7 +243,7 @@ const Ve = ["innerHTML"], Ke = { class: "references-header" }, Qe = {
243
243
  fn: m(() => {
244
244
  var a;
245
245
  return [
246
- g(Ae, {
246
+ g(Me, {
247
247
  theme: ((a = e.configuration) == null ? void 0 : a.theme) || "default",
248
248
  onChangeTheme: t[0] || (t[0] = (i) => e.$emit("changeTheme", i)),
249
249
  onLinkSwaggerFile: t[1] || (t[1] = (i) => e.$emit("linkSwaggerFile")),
@@ -256,7 +256,7 @@ const Ve = ["innerHTML"], Ke = { class: "references-header" }, Qe = {
256
256
  } : void 0
257
257
  ]), 1032, ["baseServerURL", "layout", "parsedSpec", "servers"])
258
258
  ], 8, Xe),
259
- e.$slots.footer ? (b(), T("div", Ze, [
259
+ e.$slots.footer ? (b(), y("div", Ze, [
260
260
  u(e.$slots, "footer", c(f(l.value)), void 0, !0)
261
261
  ])) : E("", !0)
262
262
  ], 64)) : E("", !0),
@@ -1 +1 @@
1
- {"version":3,"file":"Sidebar.vue.d.ts","sourceRoot":"","sources":["../../../src/components/Sidebar/Sidebar.vue"],"names":[],"mappings":"AAmOA,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,sBAAsB,CAAA;AAIhD,OAAO,EAAE,KAAK,YAAY,EAA2B,MAAM,aAAa,CAAA;AAMxE,KAAK,WAAW,GAAG;IACf,UAAU,EAAE,IAAI,CAAA;CACjB,GAAG,YAAY,CAAC;AAiEnB,iBAAS,cAAc;WA4NT,OAAO,IAA6B;;iCAVb,GAAG;+BACJ,GAAG;;;;;;EActC;AAiBD,KAAK,oBAAoB,GAAG,UAAU,CAAC,OAAO,cAAc,CAAC,CAAC;AAC9D,QAAA,MAAM,eAAe,6SAOnB,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":"Sidebar.vue.d.ts","sourceRoot":"","sources":["../../../src/components/Sidebar/Sidebar.vue"],"names":[],"mappings":"AAqOA,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,sBAAsB,CAAA;AAIhD,OAAO,EAAE,KAAK,YAAY,EAA2B,MAAM,aAAa,CAAA;AAMxE,KAAK,WAAW,GAAG;IACf,UAAU,EAAE,IAAI,CAAA;CACjB,GAAG,YAAY,CAAC;AAiEnB,iBAAS,cAAc;WA4NT,OAAO,IAA6B;;iCAVb,GAAG;+BACJ,GAAG;;;;;;EActC;AAiBD,KAAK,oBAAoB,GAAG,UAAU,CAAC,OAAO,cAAc,CAAC,CAAC;AAC9D,QAAA,MAAM,eAAe,6SAOnB,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,7 +1,7 @@
1
1
  import o from "./Sidebar.vue2.js";
2
2
  /* empty css */
3
3
  import r from "../../_virtual/_plugin-vue_export-helper.js";
4
- const m = /* @__PURE__ */ r(o, [["__scopeId", "data-v-37c6928e"]]);
4
+ const p = /* @__PURE__ */ r(o, [["__scopeId", "data-v-b863366c"]]);
5
5
  export {
6
- m as default
6
+ p as default
7
7
  };
@@ -1 +1 @@
1
- {"version":3,"file":"SidebarElement.vue.d.ts","sourceRoot":"","sources":["../../../src/components/Sidebar/SidebarElement.vue"],"names":[],"mappings":"AA0UA,KAAK,WAAW,GAAG;IACjB,EAAE,EAAE,MAAM,CAAA;IACV,IAAI,EAAE;QACJ,EAAE,EAAE,MAAM,CAAA;QACV,KAAK,EAAE,MAAM,CAAA;QACb,MAAM,CAAC,EAAE,MAAM,IAAI,CAAA;QACnB,IAAI,CAAC,EAAE,MAAM,CAAA;QACb,IAAI,CAAC,EAAE;YACL,GAAG,EAAE,MAAM,CAAA;SACZ,CAAA;QACD,QAAQ,CAAC,EAAE,MAAM,CAAA;QACjB,UAAU,CAAC,EAAE,OAAO,CAAA;KACrB,CAAA;IACD,QAAQ,CAAC,EAAE,OAAO,CAAA;IAClB,WAAW,CAAC,EAAE,OAAO,CAAA;IACrB,IAAI,CAAC,EAAE,OAAO,CAAA;CACf,CAAC;AAgEF,iBAAS,cAAc;WAyKT,OAAO,IAA6B;;yBATpB,GAAG;+BACG,GAAG;;;;EAatC;AAeD,KAAK,oBAAoB,GAAG,UAAU,CAAC,OAAO,cAAc,CAAC,CAAC;AAC9D,QAAA,MAAM,eAAe;;;;4FAQnB,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":"SidebarElement.vue.d.ts","sourceRoot":"","sources":["../../../src/components/Sidebar/SidebarElement.vue"],"names":[],"mappings":"AA8UA,KAAK,WAAW,GAAG;IACjB,EAAE,EAAE,MAAM,CAAA;IACV,IAAI,EAAE;QACJ,EAAE,EAAE,MAAM,CAAA;QACV,KAAK,EAAE,MAAM,CAAA;QACb,MAAM,CAAC,EAAE,MAAM,IAAI,CAAA;QACnB,IAAI,CAAC,EAAE,MAAM,CAAA;QACb,IAAI,CAAC,EAAE;YACL,GAAG,EAAE,MAAM,CAAA;SACZ,CAAA;QACD,QAAQ,CAAC,EAAE,MAAM,CAAA;QACjB,UAAU,CAAC,EAAE,OAAO,CAAA;KACrB,CAAA;IACD,QAAQ,CAAC,EAAE,OAAO,CAAA;IAClB,WAAW,CAAC,EAAE,OAAO,CAAA;IACrB,IAAI,CAAC,EAAE,OAAO,CAAA;CACf,CAAC;AAgEF,iBAAS,cAAc;WA2KT,OAAO,IAA6B;;yBATpB,GAAG;+BACG,GAAG;;;;EAatC;AAeD,KAAK,oBAAoB,GAAG,UAAU,CAAC,OAAO,cAAc,CAAC,CAAC;AAC9D,QAAA,MAAM,eAAe;;;;4FAQnB,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,7 +1,7 @@
1
1
  import o from "./SidebarElement.vue2.js";
2
2
  /* empty css */
3
3
  import t from "../../_virtual/_plugin-vue_export-helper.js";
4
- const a = /* @__PURE__ */ t(o, [["__scopeId", "data-v-10d3d1f0"]]);
4
+ const a = /* @__PURE__ */ t(o, [["__scopeId", "data-v-90ecd485"]]);
5
5
  export {
6
6
  a as default
7
7
  };
@@ -1 +1 @@
1
- {"version":3,"file":"ApiClientModal.vue.d.ts","sourceRoot":"","sources":["../../../src/features/ApiClientModal/ApiClientModal.vue"],"names":[],"mappings":"AAmEA,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,yBAAyB,CAAA;AAQlE,KAAK,WAAW,GAAG;IACjB,aAAa,EAAE,mBAAmB,CAAA;CACnC,CAAC;;AA0GF,wBAOG"}
1
+ {"version":3,"file":"ApiClientModal.vue.d.ts","sourceRoot":"","sources":["../../../src/features/ApiClientModal/ApiClientModal.vue"],"names":[],"mappings":"AAiEA,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,yBAAyB,CAAA;AAQlE,KAAK,WAAW,GAAG;IACjB,aAAa,EAAE,mBAAmB,CAAA;CACnC,CAAC;;AAwGF,wBAOG"}
@@ -4,27 +4,27 @@ import { useApiClient as C } from "./useApiClient.js";
4
4
  import { useServerStore as E } from "../../legacy/stores/useServerStore.js";
5
5
  import { getUrlFromServerState as U } from "../../legacy/helpers/getUrlFromServerState.js";
6
6
  import { useExampleStore as B } from "../../legacy/stores/useExampleStore.js";
7
- const w = /* @__PURE__ */ v({
7
+ const F = /* @__PURE__ */ v({
8
8
  __name: "ApiClientModal",
9
9
  props: {
10
10
  configuration: {}
11
11
  },
12
12
  setup(i) {
13
- const n = d(null), { server: o, setServer: s } = E(), { client: t, init: c } = C(), { selectedExampleKey: p, operationId: l } = B(), f = k();
13
+ const o = d(null), { server: n, setServer: c } = E(), { client: t, init: s } = C(), { selectedExampleKey: p, operationId: l } = B(), f = k();
14
14
  return S(async () => {
15
- if (!n.value) return;
16
- (await c({
17
- el: n.value,
15
+ if (!o.value) return;
16
+ (await s({
17
+ el: o.value,
18
18
  configuration: i.configuration,
19
19
  store: f
20
20
  })).onUpdateServer((r) => {
21
- if (!o.servers) return;
22
- const u = o.servers.findIndex((m) => m.url === r);
23
- u >= 0 && s({ selectedServer: u });
21
+ if (!n.servers) return;
22
+ const u = n.servers.findIndex((m) => m.url === r);
23
+ u >= 0 && c({ selectedServer: u });
24
24
  });
25
- }), a(o, (e) => {
25
+ }), a(n, (e) => {
26
26
  const { originalUrl: r } = U(e);
27
- r && t.value && t.value.updateServer(r, o.variables);
27
+ r && t.value && t.value.updateServer(r);
28
28
  }), a(
29
29
  () => i.configuration,
30
30
  (e) => {
@@ -39,10 +39,10 @@ const w = /* @__PURE__ */ v({
39
39
  return (e = t.value) == null ? void 0 : e.app.unmount();
40
40
  }), (e, r) => (g(), _("div", {
41
41
  ref_key: "el",
42
- ref: n
42
+ ref: o
43
43
  }, null, 512));
44
44
  }
45
45
  });
46
46
  export {
47
- w as default
47
+ F as default
48
48
  };
@@ -4,7 +4,7 @@ type Props = Pick<CreateApiClientParams, 'el' | 'configuration' | 'store'>;
4
4
  declare const client: import("vue").Ref<{
5
5
  updateSpec: (spec: import("@scalar/types").SpecConfiguration) => Promise<void>;
6
6
  updateConfig: (newConfig: import("@scalar/api-client/libs").ClientConfiguration, mergeConfigs?: boolean) => void;
7
- updateServer: (serverUrl: string, variables?: Record<string, string>) => void;
7
+ updateServer: (serverUrl: string) => void;
8
8
  onUpdateServer: (callback: (url: string) => void) => void;
9
9
  updateAuth: <P extends import("@scalar/object-utils/nested").Path<import("@scalar/oas-utils/entities/spec").SecurityScheme>>({ nameKey, propertyKey, value, }: {
10
10
  nameKey: string;
@@ -3559,7 +3559,7 @@ declare const client: import("vue").Ref<{
3559
3559
  } | null, ApiClient | {
3560
3560
  updateSpec: (spec: import("@scalar/types").SpecConfiguration) => Promise<void>;
3561
3561
  updateConfig: (newConfig: import("@scalar/api-client/libs").ClientConfiguration, mergeConfigs?: boolean) => void;
3562
- updateServer: (serverUrl: string, variables?: Record<string, string>) => void;
3562
+ updateServer: (serverUrl: string) => void;
3563
3563
  onUpdateServer: (callback: (url: string) => void) => void;
3564
3564
  updateAuth: <P extends import("@scalar/object-utils/nested").Path<import("@scalar/oas-utils/entities/spec").SecurityScheme>>({ nameKey, propertyKey, value, }: {
3565
3565
  nameKey: string;