@scalar/api-reference 1.25.111 → 1.25.113

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 (63) hide show
  1. package/CHANGELOG.md +29 -0
  2. package/dist/browser/standalone.js +5991 -6107
  3. package/dist/browser/webpack-stats.json +1 -1
  4. package/dist/components/ApiReferenceLayout.vue.d.ts.map +1 -1
  5. package/dist/components/ApiReferenceLayout.vue.js +2 -2
  6. package/dist/components/ApiReferenceLayout.vue2.js +103 -104
  7. package/dist/components/Content/Content.vue.d.ts +1 -3
  8. package/dist/components/Content/Content.vue.d.ts.map +1 -1
  9. package/dist/components/Content/Content.vue.js +1 -1
  10. package/dist/components/Content/Content.vue2.js +53 -55
  11. package/dist/features/ApiClientModal/ApiClientModal.vue.d.ts.map +1 -1
  12. package/dist/features/ApiClientModal/ApiClientModal.vue.js +24 -34
  13. package/dist/features/ApiClientModal/useApiClient.d.ts +60 -80
  14. package/dist/features/ApiClientModal/useApiClient.d.ts.map +1 -1
  15. package/dist/features/BaseUrl/BaseUrl.vue.d.ts +1 -16
  16. package/dist/features/BaseUrl/BaseUrl.vue.d.ts.map +1 -1
  17. package/dist/features/BaseUrl/BaseUrl.vue.js +36 -29
  18. package/dist/features/BaseUrl/index.d.ts +0 -1
  19. package/dist/features/BaseUrl/index.d.ts.map +1 -1
  20. package/dist/features/Operation/hooks/useRequestExample.d.ts.map +1 -1
  21. package/dist/features/Operation/hooks/useRequestExample.js +39 -51
  22. package/dist/index.js +1 -1
  23. package/dist/legacy/helpers/index.d.ts +0 -1
  24. package/dist/legacy/helpers/index.d.ts.map +1 -1
  25. package/dist/legacy/stores/index.d.ts +1 -2
  26. package/dist/legacy/stores/index.d.ts.map +1 -1
  27. package/dist/style.css +1 -1
  28. package/package.json +8 -8
  29. package/dist/features/BaseUrl/ServerForm.vue.d.ts +0 -18
  30. package/dist/features/BaseUrl/ServerForm.vue.d.ts.map +0 -1
  31. package/dist/features/BaseUrl/ServerForm.vue.js +0 -7
  32. package/dist/features/BaseUrl/ServerForm.vue2.js +0 -76
  33. package/dist/features/BaseUrl/ServerUrl.vue.d.ts +0 -9
  34. package/dist/features/BaseUrl/ServerUrl.vue.d.ts.map +0 -1
  35. package/dist/features/BaseUrl/ServerUrl.vue.js +0 -7
  36. package/dist/features/BaseUrl/ServerUrl.vue2.js +0 -27
  37. package/dist/features/BaseUrl/ServerUrlSelect.vue.d.ts +0 -28
  38. package/dist/features/BaseUrl/ServerUrlSelect.vue.d.ts.map +0 -1
  39. package/dist/features/BaseUrl/ServerUrlSelect.vue.js +0 -7
  40. package/dist/features/BaseUrl/ServerUrlSelect.vue2.js +0 -61
  41. package/dist/features/BaseUrl/ServerVariablesForm.vue.d.ts +0 -14
  42. package/dist/features/BaseUrl/ServerVariablesForm.vue.d.ts.map +0 -1
  43. package/dist/features/BaseUrl/ServerVariablesForm.vue.js +0 -7
  44. package/dist/features/BaseUrl/ServerVariablesForm.vue2.js +0 -59
  45. package/dist/features/BaseUrl/ServerVariablesSelect.vue.d.ts +0 -12
  46. package/dist/features/BaseUrl/ServerVariablesSelect.vue.d.ts.map +0 -1
  47. package/dist/features/BaseUrl/ServerVariablesSelect.vue.js +0 -7
  48. package/dist/features/BaseUrl/ServerVariablesSelect.vue2.js +0 -54
  49. package/dist/features/BaseUrl/ServerVariablesTextbox.vue.d.ts +0 -11
  50. package/dist/features/BaseUrl/ServerVariablesTextbox.vue.d.ts.map +0 -1
  51. package/dist/features/BaseUrl/ServerVariablesTextbox.vue.js +0 -7
  52. package/dist/features/BaseUrl/ServerVariablesTextbox.vue2.js +0 -29
  53. package/dist/features/BaseUrl/types.d.ts +0 -9
  54. package/dist/features/BaseUrl/types.d.ts.map +0 -1
  55. package/dist/features/BaseUrl/utils/getServers.d.ts +0 -15
  56. package/dist/features/BaseUrl/utils/getServers.d.ts.map +0 -1
  57. package/dist/features/BaseUrl/utils/getServers.js +0 -31
  58. package/dist/legacy/helpers/getUrlFromServerState.d.ts +0 -10
  59. package/dist/legacy/helpers/getUrlFromServerState.d.ts.map +0 -1
  60. package/dist/legacy/helpers/getUrlFromServerState.js +0 -18
  61. package/dist/legacy/stores/useServerStore.d.ts +0 -44
  62. package/dist/legacy/stores/useServerStore.d.ts.map +0 -1
  63. package/dist/legacy/stores/useServerStore.js +0 -88
@@ -1 +1 @@
1
- {"version":3,"file":"ApiReferenceLayout.vue.d.ts","sourceRoot":"","sources":["../../src/components/ApiReferenceLayout.vue"],"names":[],"mappings":"AAinBA,OAAO,EACL,KAAK,OAAO,EAGb,MAAM,gBAAgB,CAAA;AAoBvB,OAAO,KAAK,EACV,oBAAoB,EAEpB,kBAAkB,EACnB,MAAM,UAAU,CAAA;AAOjB,KAAK,WAAW,GAAG,IAAI,CAAC,oBAAoB,EAAE,QAAQ,CAAC,CAAC;AA6QxD,iBAAS,cAAc;WAoPT,OAAO,IAA6B;;wBA5eZ,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;;;;;;EAif/D;AAuBD,KAAK,oBAAoB,GAAG,UAAU,CAAC,OAAO,cAAc,CAAC,CAAC;AAC9D,QAAA,MAAM,eAAe;;YA1hBqB,OAAO;eAAS,MAAM;;;;;;;;YAAtB,OAAO;eAAS,MAAM;;;;;;kFAiiB9D,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":"AAonBA,OAAO,EACL,KAAK,OAAO,EAGb,MAAM,gBAAgB,CAAA;AAoBvB,OAAO,KAAK,EACV,oBAAoB,EAEpB,kBAAkB,EACnB,MAAM,UAAU,CAAA;AAOjB,KAAK,WAAW,GAAG,IAAI,CAAC,oBAAoB,EAAE,QAAQ,CAAC,CAAC;AAgRxD,iBAAS,cAAc;WAoPT,OAAO,IAA6B;;wBA/eZ,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;;;;;;EAof/D;AAuBD,KAAK,oBAAoB,GAAG,UAAU,CAAC,OAAO,cAAc,CAAC,CAAC;AAC9D,QAAA,MAAM,eAAe;;YA7hBqB,OAAO;eAAS,MAAM;;;;;;;;YAAtB,OAAO;eAAS,MAAM;;;;;;kFAoiB9D,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 a = /* @__PURE__ */ t(o, [["__scopeId", "data-v-22274001"]]);
5
+ const c = /* @__PURE__ */ t(o, [["__scopeId", "data-v-4351acc7"]]);
6
6
  export {
7
- a as default
7
+ c as default
8
8
  };
@@ -1,29 +1,30 @@
1
- import { defineComponent as ie, ref as w, computed as v, onBeforeMount as P, onMounted as se, onUnmounted as le, watch as C, onServerPrefetch as de, useSSRContext as ue, getCurrentInstance as ce, provide as T, openBlock as h, createElementBlock as b, Fragment as M, createElementVNode as d, normalizeClass as fe, unref as s, normalizeStyle as pe, renderSlot as u, normalizeProps as c, guardReactiveProps as f, createVNode as p, withCtx as g, createCommentVNode as R, withDirectives as ge, vShow as me, createSlots as Se } from "vue";
2
- import { CONFIGURATION_SYMBOL as ve } from "../hooks/useConfig.js";
3
- import { useHttpClientStore as he } from "../stores/useHttpClientStore.js";
1
+ import { defineComponent as ie, ref as C, computed as h, onBeforeMount as M, onMounted as se, onUnmounted as le, watch as T, onServerPrefetch as de, useSSRContext as ce, getCurrentInstance as ue, provide as v, openBlock as b, createElementBlock as y, Fragment as P, createElementVNode as d, normalizeClass as fe, unref as s, normalizeStyle as pe, renderSlot as c, normalizeProps as u, guardReactiveProps as f, createVNode as p, withCtx as m, createCommentVNode as $, withDirectives as me, vShow as ge, createSlots as Se } from "vue";
2
+ import { CONFIGURATION_SYMBOL as he } from "../hooks/useConfig.js";
3
+ import { useHttpClientStore as ve } from "../stores/useHttpClientStore.js";
4
4
  import { provideUseId as be } from "@headlessui/vue";
5
- import { createWorkspaceStore as ye, WORKSPACE_SYMBOL as we, createActiveEntitiesStore as Ce, ACTIVE_ENTITIES_SYMBOL as Te } from "@scalar/api-client/store";
6
- import { addScalarClassesToHeadless as Re, ScalarErrorBoundary as $e } from "@scalar/components";
7
- import { defaultStateFactory as U } from "@scalar/oas-utils/helpers";
8
- import { hasObtrusiveScrollbars as Ee, getThemeStyles as Ie } from "@scalar/themes";
9
- import { useToasts as Oe, ScalarToasts as ke } from "@scalar/use-toasts";
10
- import { useMediaQuery as Le, useResizeObserver as Fe, useDebounceFn as Ae } from "@vueuse/core";
11
- import Be from "./GettingStarted.vue.js";
12
- import { downloadSpecBus as D, downloadSpecFile as Pe } from "../helpers/specDownloads.js";
13
- import { useDeprecationWarnings as Me } from "../hooks/useDeprecationWarnings.js";
14
- import Ue from "./Sidebar/Sidebar.vue.js";
15
- import De from "./Content/Content.vue.js";
16
- import He from "../features/ApiClientModal/ApiClientModal.vue.js";
17
- import { useSidebar as Ne } from "../hooks/useSidebar.js";
5
+ import { LAYOUT_SYMBOL as ye } from "@scalar/api-client/hooks";
6
+ import { createWorkspaceStore as we, WORKSPACE_SYMBOL as Ce, createActiveEntitiesStore as Te, ACTIVE_ENTITIES_SYMBOL as $e } from "@scalar/api-client/store";
7
+ import { addScalarClassesToHeadless as Ee, ScalarErrorBoundary as Re } from "@scalar/components";
8
+ import { defaultStateFactory as D } from "@scalar/oas-utils/helpers";
9
+ import { hasObtrusiveScrollbars as Ie, getThemeStyles as Oe } from "@scalar/themes";
10
+ import { useToasts as ke, ScalarToasts as Ae } from "@scalar/use-toasts";
11
+ import { useMediaQuery as Be, useResizeObserver as Fe, useDebounceFn as Le } from "@vueuse/core";
12
+ import Me from "./GettingStarted.vue.js";
13
+ import { downloadSpecBus as H, downloadSpecFile as Pe } from "../helpers/specDownloads.js";
14
+ import { useDeprecationWarnings as De } from "../hooks/useDeprecationWarnings.js";
15
+ import He from "./Sidebar/Sidebar.vue.js";
16
+ import Ue from "./Content/Content.vue.js";
17
+ import Ne from "../features/ApiClientModal/ApiClientModal.vue.js";
18
+ import { useSidebar as Ye } from "../hooks/useSidebar.js";
18
19
  import { useNavState as ze } from "../hooks/useNavState.js";
19
- import { sleep as Ye } from "../helpers/sleep.js";
20
- const Ve = ["innerHTML"], We = { class: "references-header" }, Ge = {
20
+ import { sleep as Ve } from "../helpers/sleep.js";
21
+ const We = ["innerHTML"], Ge = { class: "references-header" }, Ke = {
21
22
  key: 0,
22
23
  class: "references-navigation t-doc__sidebar"
23
- }, Ke = { class: "references-navigation-list" }, je = { class: "references-editor" }, Qe = { class: "references-editor-textarea" }, qe = ["aria-label"], Je = {
24
+ }, je = { class: "references-navigation-list" }, Qe = { class: "references-editor" }, qe = { class: "references-editor-textarea" }, Je = ["aria-label"], Xe = {
24
25
  key: 0,
25
26
  class: "references-footer"
26
- }, mt = /* @__PURE__ */ ie({
27
+ }, ht = /* @__PURE__ */ ie({
27
28
  inheritAttrs: !1,
28
29
  __name: "ApiReferenceLayout",
29
30
  props: {
@@ -32,25 +33,25 @@ const Ve = ["innerHTML"], We = { class: "references-header" }, Ge = {
32
33
  rawSpec: {}
33
34
  },
34
35
  emits: ["changeTheme", "updateContent", "loadSwaggerFile", "linkSwaggerFile", "toggleDarkMode"],
35
- setup(H) {
36
- const o = H, { initializeToasts: N, toast: z } = Oe();
37
- N((e) => z(e));
38
- const Y = Le("(min-width: 1150px)"), V = w("100dvh"), m = w(null);
39
- Fe(m, (e) => {
36
+ setup(U) {
37
+ const o = U, { initializeToasts: N, toast: Y } = ke();
38
+ N((e) => Y(e));
39
+ const z = Be("(min-width: 1150px)"), V = C("100dvh"), g = C(null);
40
+ Fe(g, (e) => {
40
41
  V.value = e[0].contentRect.height + "px";
41
42
  });
42
- const W = v(Ee), {
43
+ const W = h(Ie), {
43
44
  breadcrumb: G,
44
45
  collapsedSidebarItems: S,
45
46
  isSidebarOpen: K,
46
- setCollapsedSidebarItem: $,
47
+ setCollapsedSidebarItem: E,
47
48
  hideModels: j,
48
49
  defaultOpenAllTags: Q,
49
50
  setParsedSpec: q,
50
51
  scrollToOperation: J
51
- } = Ne(), {
52
+ } = Ye(), {
52
53
  getReferenceHash: X,
53
- getPathRoutingId: E,
54
+ getPathRoutingId: R,
54
55
  getSectionId: Z,
55
56
  getTagId: _,
56
57
  hash: x,
@@ -59,73 +60,73 @@ const Ve = ["innerHTML"], We = { class: "references-header" }, Ge = {
59
60
  updateHash: k,
60
61
  replaceUrlState: ee
61
62
  } = ze();
62
- O.value = o.configuration.pathRouting, P(() => k());
63
- const L = async (e) => {
63
+ O.value = o.configuration.pathRouting, M(() => k());
64
+ const A = async (e) => {
64
65
  var t;
65
- I.value = !1, k(), e ? J(e) : (t = m.value) == null || t.scrollTo(0, 0), await Ye(100), I.value = !0;
66
- }, F = w(0);
67
- P(() => Re()), se(() => {
66
+ I.value = !1, k(), e ? J(e) : (t = g.value) == null || t.scrollTo(0, 0), await Ve(100), I.value = !0;
67
+ }, B = C(0);
68
+ M(() => Ee()), se(() => {
68
69
  var r, a, n;
69
- history.scrollRestoration = "manual", D.on(({ specTitle: i }) => {
70
+ history.scrollRestoration = "manual", H.on(({ specTitle: i }) => {
70
71
  Pe(o.rawSpec, i);
71
72
  });
72
- 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();
73
+ const e = (a = (r = g.value) == null ? void 0 : r.parentElement) == null ? void 0 : a.getBoundingClientRect(), t = (n = g.value) == null ? void 0 : n.getBoundingClientRect();
73
74
  if (e && t) {
74
75
  const i = t.top - e.top;
75
- F.value = i < 2 ? 0 : i;
76
+ B.value = i < 2 ? 0 : i;
76
77
  }
77
78
  window.onhashchange = () => {
78
- L(X());
79
- }, window.onpopstate = () => O.value && L(E(window.location.pathname));
79
+ A(X());
80
+ }, window.onpopstate = () => O.value && A(R(window.location.pathname));
80
81
  });
81
- const te = v(
82
- () => Y.value || !o.configuration.isEditable
83
- ), A = Ae((e) => {
82
+ const te = h(
83
+ () => z.value || !o.configuration.isEditable
84
+ ), F = Le((e) => {
84
85
  if ((e.target.scrollTop ?? 0) < 50) {
85
86
  const r = o.configuration.pathRouting ? o.configuration.pathRouting.basePath : window.location.pathname;
86
87
  ee("", r + window.location.search);
87
88
  }
88
- }), l = v(() => ({
89
+ }), l = h(() => ({
89
90
  breadcrumb: G.value,
90
91
  spec: o.parsedSpec
91
92
  }));
92
93
  le(() => {
93
- D.reset();
94
- }), C(() => o.parsedSpec, q, { deep: !0 }), de(() => {
94
+ H.reset();
95
+ }), T(() => o.parsedSpec, q, { deep: !0 }), de(() => {
95
96
  var t, r;
96
- const e = ue();
97
- if (e && (e.payload || (e.payload = { data: U() }), (t = e.payload).data || (t.data = U()), o.configuration.pathRouting)) {
98
- const a = E(e.url);
97
+ const e = ce();
98
+ if (e && (e.payload || (e.payload = { data: D() }), (t = e.payload).data || (t.data = D()), o.configuration.pathRouting)) {
99
+ const a = R(e.url);
99
100
  x.value = a, e.payload.data.hash = a;
100
101
  for (const n in S)
101
102
  Object.hasOwn(S, n) && delete S[n];
102
103
  if (a)
103
- $(Z(a), !0);
104
+ E(Z(a), !0);
104
105
  else {
105
106
  const n = (r = o.parsedSpec.tags) == null ? void 0 : r[0];
106
- n && $(_(n), !0);
107
+ n && E(_(n), !0);
107
108
  }
108
109
  e.payload.data["useSidebarContent-collapsedSidebarItems"] = S;
109
110
  }
110
111
  }), be(() => {
111
112
  var a;
112
- const e = ce(), t = "scalar-instance-id";
113
+ const e = ue(), t = "scalar-instance-id";
113
114
  if (!e) return t;
114
115
  let r = e.uid;
115
116
  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}`;
116
117
  });
117
- const y = ye({
118
+ const w = we({
118
119
  proxyUrl: o.configuration.proxyUrl || o.configuration.proxy,
119
120
  themeId: o.configuration.theme,
120
121
  useLocalStorage: !1,
121
122
  hideClientButton: o.configuration.hideClientButton,
122
123
  integration: o.configuration._integration
123
124
  });
124
- C(
125
+ T(
125
126
  () => o.rawSpec,
126
127
  (e) => {
127
128
  var t;
128
- return e && y.importSpecFile(e, "default", {
129
+ return e && w.importSpecFile(e, "default", {
129
130
  shouldLoad: !1,
130
131
  documentUrl: (t = o.configuration.spec) == null ? void 0 : t.url,
131
132
  setCollectionSecurity: !0,
@@ -133,11 +134,11 @@ const Ve = ["innerHTML"], We = { class: "references-header" }, Ge = {
133
134
  });
134
135
  },
135
136
  { immediate: !0 }
136
- ), T(we, y);
137
- const oe = Ce(y);
138
- T(Te, oe), T(ve, o.configuration);
139
- function B(e, t) {
140
- C(
137
+ ), v(Ce, w);
138
+ const oe = Te(w);
139
+ v($e, oe), v(ye, "modal"), v(he, o.configuration);
140
+ function L(e, t) {
141
+ T(
141
142
  () => o.configuration[e],
142
143
  (r) => {
143
144
  typeof r < "u" && t(r);
@@ -145,21 +146,21 @@ const Ve = ["innerHTML"], We = { class: "references-header" }, Ge = {
145
146
  { immediate: !0 }
146
147
  );
147
148
  }
148
- const { setExcludedClients: re, setDefaultHttpClient: ae } = he();
149
- B("defaultHttpClient", ae), B("hiddenClients", re), j.value = o.configuration.hideModels ?? !1, Q.value = o.configuration.defaultOpenAllTags ?? !1, Me(o.configuration);
150
- const ne = v(
149
+ const { setExcludedClients: re, setDefaultHttpClient: ae } = ve();
150
+ L("defaultHttpClient", ae), L("hiddenClients", re), j.value = o.configuration.hideModels ?? !1, Q.value = o.configuration.defaultOpenAllTags ?? !1, De(o.configuration);
151
+ const ne = h(
151
152
  () => `<style>
152
- ${Ie(o.configuration.theme, {
153
+ ${Oe(o.configuration.theme, {
153
154
  fonts: o.configuration.withDefaultFonts
154
155
  })}</style>`
155
156
  );
156
157
  return (e, t) => {
157
158
  var r, a;
158
- return h(), b(M, null, [
159
- d("div", { innerHTML: ne.value }, null, 8, Ve),
159
+ return b(), y(P, null, [
160
+ d("div", { innerHTML: ne.value }, null, 8, We),
160
161
  d("div", {
161
162
  ref_key: "documentEl",
162
- ref: m,
163
+ ref: g,
163
164
  class: fe(["scalar-app scalar-api-reference references-layout", [
164
165
  {
165
166
  "scalar-scrollbars-obtrusive": W.value,
@@ -171,28 +172,28 @@ const Ve = ["innerHTML"], We = { class: "references-header" }, Ge = {
171
172
  e.$attrs.class
172
173
  ]]),
173
174
  style: pe({
174
- "--scalar-y-offset": `var(--scalar-custom-header-height, ${F.value}px)`
175
+ "--scalar-y-offset": `var(--scalar-custom-header-height, ${B.value}px)`
175
176
  }),
176
177
  onScrollPassive: t[4] || (t[4] = //@ts-ignore
177
- (...n) => s(A) && s(A)(...n))
178
+ (...n) => s(F) && s(F)(...n))
178
179
  }, [
179
- d("div", We, [
180
- u(e.$slots, "header", c(f(l.value)), void 0, !0)
180
+ d("div", Ge, [
181
+ c(e.$slots, "header", u(f(l.value)), void 0, !0)
181
182
  ]),
182
- e.configuration.showSidebar ? (h(), b("aside", Ge, [
183
- d("div", Ke, [
184
- p(s($e), null, {
185
- default: g(() => [
186
- p(s(Ue), {
183
+ e.configuration.showSidebar ? (b(), y("aside", Ke, [
184
+ d("div", je, [
185
+ p(s(Re), null, {
186
+ default: m(() => [
187
+ p(s(He), {
187
188
  operationsSorter: e.configuration.operationsSorter,
188
189
  parsedSpec: e.parsedSpec,
189
190
  tagsSorter: e.configuration.tagsSorter
190
191
  }, {
191
- "sidebar-start": g(() => [
192
- u(e.$slots, "sidebar-start", c(f(l.value)), void 0, !0)
192
+ "sidebar-start": m(() => [
193
+ c(e.$slots, "sidebar-start", u(f(l.value)), void 0, !0)
193
194
  ]),
194
- "sidebar-end": g(() => [
195
- u(e.$slots, "sidebar-end", c(f(l.value)), void 0, !0)
195
+ "sidebar-end": m(() => [
196
+ c(e.$slots, "sidebar-end", u(f(l.value)), void 0, !0)
196
197
  ]),
197
198
  _: 3
198
199
  }, 8, ["operationsSorter", "parsedSpec", "tagsSorter"])
@@ -200,39 +201,37 @@ const Ve = ["innerHTML"], We = { class: "references-header" }, Ge = {
200
201
  _: 3
201
202
  })
202
203
  ])
203
- ])) : R("", !0),
204
- ge(d("div", je, [
205
- d("div", Qe, [
206
- u(e.$slots, "editor", c(f(l.value)), void 0, !0)
204
+ ])) : $("", !0),
205
+ me(d("div", Qe, [
206
+ d("div", qe, [
207
+ c(e.$slots, "editor", u(f(l.value)), void 0, !0)
207
208
  ])
208
209
  ], 512), [
209
- [me, e.configuration.isEditable]
210
+ [ge, e.configuration.isEditable]
210
211
  ]),
211
- te.value ? (h(), b(M, { key: 1 }, [
212
+ te.value ? (b(), y(P, { key: 1 }, [
212
213
  d("section", {
213
214
  "aria-label": `Open API Documentation for ${(r = e.parsedSpec.info) == null ? void 0 : r.title}`,
214
215
  class: "references-rendered"
215
216
  }, [
216
- p(s(De), {
217
- baseServerURL: e.configuration.baseServerURL,
217
+ p(s(Ue), {
218
218
  layout: e.configuration.layout,
219
- parsedSpec: e.parsedSpec,
220
- servers: e.configuration.servers
219
+ parsedSpec: e.parsedSpec
221
220
  }, Se({
222
- start: g(() => [
223
- u(e.$slots, "content-start", c(f(l.value)), void 0, !0)
221
+ start: m(() => [
222
+ c(e.$slots, "content-start", u(f(l.value)), void 0, !0)
224
223
  ]),
225
- end: g(() => [
226
- u(e.$slots, "content-end", c(f(l.value)), void 0, !0)
224
+ end: m(() => [
225
+ c(e.$slots, "content-end", u(f(l.value)), void 0, !0)
227
226
  ]),
228
227
  _: 2
229
228
  }, [
230
229
  (a = e.configuration) != null && a.isEditable ? {
231
230
  name: "empty-state",
232
- fn: g(() => {
231
+ fn: m(() => {
233
232
  var n;
234
233
  return [
235
- p(Be, {
234
+ p(Me, {
236
235
  theme: ((n = e.configuration) == null ? void 0 : n.theme) || "default",
237
236
  onChangeTheme: t[0] || (t[0] = (i) => e.$emit("changeTheme", i)),
238
237
  onLinkSwaggerFile: t[1] || (t[1] = (i) => e.$emit("linkSwaggerFile")),
@@ -243,19 +242,19 @@ const Ve = ["innerHTML"], We = { class: "references-header" }, Ge = {
243
242
  }),
244
243
  key: "0"
245
244
  } : void 0
246
- ]), 1032, ["baseServerURL", "layout", "parsedSpec", "servers"])
247
- ], 8, qe),
248
- e.$slots.footer ? (h(), b("div", Je, [
249
- u(e.$slots, "footer", c(f(l.value)), void 0, !0)
250
- ])) : R("", !0)
251
- ], 64)) : R("", !0),
252
- p(s(He), { configuration: e.configuration }, null, 8, ["configuration"])
245
+ ]), 1032, ["layout", "parsedSpec"])
246
+ ], 8, Je),
247
+ e.$slots.footer ? (b(), y("div", Xe, [
248
+ c(e.$slots, "footer", u(f(l.value)), void 0, !0)
249
+ ])) : $("", !0)
250
+ ], 64)) : $("", !0),
251
+ p(s(Ne), { configuration: e.configuration }, null, 8, ["configuration"])
253
252
  ], 38),
254
- p(s(ke))
253
+ p(s(Ae))
255
254
  ], 64);
256
255
  };
257
256
  }
258
257
  });
259
258
  export {
260
- mt as default
259
+ ht as default
261
260
  };
@@ -1,9 +1,7 @@
1
- import type { Server, Spec } from '@scalar/types/legacy';
1
+ import type { Spec } from '@scalar/types/legacy';
2
2
  type __VLS_Props = {
3
3
  parsedSpec: Spec;
4
4
  layout?: 'modern' | 'classic';
5
- baseServerURL?: string;
6
- servers?: Server[];
7
5
  };
8
6
  declare function __VLS_template(): {
9
7
  attrs: Partial<{}>;
@@ -1 +1 @@
1
- {"version":3,"file":"Content.vue.d.ts","sourceRoot":"","sources":["../../../src/components/Content/Content.vue"],"names":[],"mappings":"AAiOA,OAAO,KAAK,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM,sBAAsB,CAAA;AAexD,KAAK,WAAW,GAAG;IACf,UAAU,EAAE,IAAI,CAAA;IAChB,MAAM,CAAC,EAAE,QAAQ,GAAG,SAAS,CAAA;IAC7B,aAAa,CAAC,EAAE,MAAM,CAAA;IACtB,OAAO,CAAC,EAAE,MAAM,EAAE,CAAA;CACnB,CAAC;AAuBJ,iBAAS,cAAc;WA8MT,OAAO,IAA6B;;uBAVvB,GAAG;+BACM,GAAG;qBACb,GAAG;;;;EAa5B;AAwBD,KAAK,oBAAoB,GAAG,UAAU,CAAC,OAAO,cAAc,CAAC,CAAC;AAC9D,QAAA,MAAM,eAAe;YAtQR,QAAQ,GAAG,SAAS;6EA6Q/B,CAAC;wBACkB,uBAAuB,CAAC,OAAO,eAAe,EAAE,oBAAoB,CAAC,OAAO,CAAC,CAAC;AAAnG,wBAAoG;AAgBpG,KAAK,uBAAuB,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG;IACxC,QAAO;QACN,MAAM,EAAE,CAAC,CAAC;KAEV,CAAA;CACD,CAAC"}
1
+ {"version":3,"file":"Content.vue.d.ts","sourceRoot":"","sources":["../../../src/components/Content/Content.vue"],"names":[],"mappings":"AAgOA,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,sBAAsB,CAAA;AAchD,KAAK,WAAW,GAAG;IACf,UAAU,EAAE,IAAI,CAAA;IAChB,MAAM,CAAC,EAAE,QAAQ,GAAG,SAAS,CAAA;CAC9B,CAAC;AAuBJ,iBAAS,cAAc;WAqNT,OAAO,IAA6B;;uBAVvB,GAAG;+BACM,GAAG;qBACb,GAAG;;;;EAa5B;AAwBD,KAAK,oBAAoB,GAAG,UAAU,CAAC,OAAO,cAAc,CAAC,CAAC;AAC9D,QAAA,MAAM,eAAe;YA3QR,QAAQ,GAAG,SAAS;6EAkR/B,CAAC;wBACkB,uBAAuB,CAAC,OAAO,eAAe,EAAE,oBAAoB,CAAC,OAAO,CAAC,CAAC;AAAnG,wBAAoG;AAgBpG,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 "./Content.vue2.js";
2
2
  /* empty css */
3
3
  /* empty css */
4
4
  import t from "../../_virtual/_plugin-vue_export-helper.js";
5
- const _ = /* @__PURE__ */ t(o, [["__scopeId", "data-v-25d74a5d"]]);
5
+ const _ = /* @__PURE__ */ t(o, [["__scopeId", "data-v-2338e284"]]);
6
6
  export {
7
7
  _ as default
8
8
  };
@@ -1,12 +1,12 @@
1
- import { defineComponent as A, computed as B, openBlock as a, createElementBlock as i, Fragment as d, createStaticVNode as E, createElementVNode as c, renderSlot as n, createVNode as o, unref as s, createBlock as r, withCtx as k, normalizeClass as L, renderList as N, createCommentVNode as p } from "vue";
2
- import { useActiveEntities as V } from "@scalar/api-client/store";
3
- import { RequestAuth as R } from "@scalar/api-client/views/Request/RequestSection/RequestAuth";
4
- import { ScalarErrorBoundary as q } from "@scalar/components";
5
- import z from "./Lazy/Loading.vue.js";
1
+ import { defineComponent as B, computed as E, openBlock as t, createElementBlock as d, Fragment as c, createStaticVNode as N, createElementVNode as p, renderSlot as m, createVNode as l, unref as s, createBlock as r, withCtx as k, normalizeClass as V, createCommentVNode as n, renderList as U } from "vue";
2
+ import { useActiveEntities as L } from "@scalar/api-client/store";
3
+ import { RequestAuth as q } from "@scalar/api-client/views/Request/RequestSection/RequestAuth";
4
+ import { ScalarErrorBoundary as z } from "@scalar/components";
5
+ import F from "./Lazy/Loading.vue.js";
6
6
  /* empty css */
7
- import F from "./Introduction/Introduction.vue.js";
8
- import G from "../../features/BaseUrl/BaseUrl.vue.js";
9
- import I from "./ClientLibraries/ClientLibraries.vue.js";
7
+ import G from "./Introduction/Introduction.vue.js";
8
+ import I from "../../features/BaseUrl/BaseUrl.vue.js";
9
+ import R from "./ClientLibraries/ClientLibraries.vue.js";
10
10
  import g from "./Tag/TagList.vue.js";
11
11
  import W from "../../features/Operation/Webhooks.vue.js";
12
12
  import j from "./Models/ModelsAccordion.vue.js";
@@ -14,55 +14,53 @@ import D from "./Models/Models.vue.js";
14
14
  import { useSidebar as H } from "../../hooks/useSidebar.js";
15
15
  import { hasModels as J } from "../../helpers/hasModels.js";
16
16
  import { getModels as b } from "../../helpers/getModels.js";
17
- const K = { class: "narrow-references-container" }, O = { class: "scalar-client introduction-card-item" }, le = /* @__PURE__ */ A({
17
+ const K = { class: "narrow-references-container" }, O = {
18
+ key: 0,
19
+ class: "scalar-client introduction-card-item [--scalar-address-bar-height:0px] divide-y text-sm"
20
+ }, P = { class: "scalar-client introduction-card-item" }, ce = /* @__PURE__ */ B({
18
21
  __name: "Content",
19
22
  props: {
20
23
  parsedSpec: {},
21
- layout: { default: "modern" },
22
- baseServerURL: {},
23
- servers: {}
24
+ layout: { default: "modern" }
24
25
  },
25
26
  setup(C) {
26
- const m = C, { hideModels: w } = H(), { activeCollection: U } = V(), $ = B(
27
- () => m.layout === "classic" ? "after" : "aside"
27
+ const w = C, { hideModels: $ } = H(), { activeCollection: u } = L(), M = E(
28
+ () => w.layout === "classic" ? "after" : "aside"
28
29
  );
29
- return (e, u) => {
30
- var f, v, S, y;
31
- return a(), i(d, null, [
32
- u[0] || (u[0] = E('<div class="section-flare" data-v-25d74a5d><div class="section-flare-item" data-v-25d74a5d></div><div class="section-flare-item" data-v-25d74a5d></div><div class="section-flare-item" data-v-25d74a5d></div><div class="section-flare-item" data-v-25d74a5d></div><div class="section-flare-item" data-v-25d74a5d></div><div class="section-flare-item" data-v-25d74a5d></div><div class="section-flare-item" data-v-25d74a5d></div><div class="section-flare-item" data-v-25d74a5d></div></div>', 1)),
33
- c("div", K, [
34
- n(e.$slots, "start", {}, void 0, !0),
35
- o(s(z), {
30
+ return (e, f) => {
31
+ var v, S, y, h;
32
+ return t(), d(c, null, [
33
+ f[0] || (f[0] = N('<div class="section-flare" data-v-2338e284><div class="section-flare-item" data-v-2338e284></div><div class="section-flare-item" data-v-2338e284></div><div class="section-flare-item" data-v-2338e284></div><div class="section-flare-item" data-v-2338e284></div><div class="section-flare-item" data-v-2338e284></div><div class="section-flare-item" data-v-2338e284></div><div class="section-flare-item" data-v-2338e284></div><div class="section-flare-item" data-v-2338e284></div></div>', 1)),
34
+ p("div", K, [
35
+ m(e.$slots, "start", {}, void 0, !0),
36
+ l(s(F), {
36
37
  layout: e.layout,
37
38
  parsedSpec: e.parsedSpec
38
39
  }, null, 8, ["layout", "parsedSpec"]),
39
- (v = (f = e.parsedSpec) == null ? void 0 : f.info) != null && v.title || (y = (S = e.parsedSpec) == null ? void 0 : S.info) != null && y.description ? (a(), r(s(F), {
40
+ (S = (v = e.parsedSpec) == null ? void 0 : v.info) != null && S.title || (h = (y = e.parsedSpec) == null ? void 0 : y.info) != null && h.description ? (t(), r(s(G), {
40
41
  key: 0,
41
42
  info: e.parsedSpec.info,
42
43
  parsedSpec: e.parsedSpec
43
44
  }, {
44
- [$.value]: k(() => [
45
- o(s(q), null, {
45
+ [M.value]: k(() => [
46
+ l(s(z), null, {
46
47
  default: k(() => {
47
- var t;
48
+ var o, a, i;
48
49
  return [
49
- c("div", {
50
- class: L(["introduction-card", { "introduction-card-row": e.layout === "classic" }])
50
+ p("div", {
51
+ class: V(["introduction-card", { "introduction-card-row": e.layout === "classic" }])
51
52
  }, [
52
- o(s(G), {
53
- class: "introduction-card-item",
54
- defaultServerUrl: e.baseServerURL,
55
- servers: m.servers,
56
- specification: e.parsedSpec
57
- }, null, 8, ["defaultServerUrl", "servers", "specification"]),
58
- c("div", O, [
59
- o(s(R), {
53
+ (a = (o = s(u)) == null ? void 0 : o.servers) != null && a.length ? (t(), d("div", O, [
54
+ l(s(I))
55
+ ])) : n("", !0),
56
+ p("div", P, [
57
+ l(s(q), {
60
58
  layout: "reference",
61
- selectedSecuritySchemeUids: ((t = s(U)) == null ? void 0 : t.selectedSecuritySchemeUids) ?? [],
59
+ selectedSecuritySchemeUids: ((i = s(u)) == null ? void 0 : i.selectedSecuritySchemeUids) ?? [],
62
60
  title: "Authentication"
63
61
  }, null, 8, ["selectedSecuritySchemeUids"])
64
62
  ]),
65
- o(s(I), { class: "introduction-card-item" })
63
+ l(s(R), { class: "introduction-card-item" })
66
64
  ], 2)
67
65
  ];
68
66
  }),
@@ -70,42 +68,42 @@ const K = { class: "narrow-references-container" }, O = { class: "scalar-client
70
68
  })
71
69
  ]),
72
70
  _: 2
73
- }, 1032, ["info", "parsedSpec"])) : n(e.$slots, "empty-state", { key: 1 }, void 0, !0),
74
- e.parsedSpec.tags ? (a(), i(d, { key: 2 }, [
75
- e.parsedSpec["x-tagGroups"] ? (a(!0), i(d, { key: 0 }, N(e.parsedSpec["x-tagGroups"], (t) => (a(), r(s(g), {
76
- key: t.name,
71
+ }, 1032, ["info", "parsedSpec"])) : m(e.$slots, "empty-state", { key: 1 }, void 0, !0),
72
+ e.parsedSpec.tags ? (t(), d(c, { key: 2 }, [
73
+ e.parsedSpec["x-tagGroups"] ? (t(!0), d(c, { key: 0 }, U(e.parsedSpec["x-tagGroups"], (o) => (t(), r(s(g), {
74
+ key: o.name,
77
75
  layout: e.layout,
78
76
  spec: e.parsedSpec,
79
- tags: t.tags.map((l) => {
80
- var h;
81
- return (h = e.parsedSpec.tags) == null ? void 0 : h.find((M) => M.name === l);
82
- }).filter((l) => !!l)
83
- }, null, 8, ["layout", "spec", "tags"]))), 128)) : (a(), r(s(g), {
77
+ tags: o.tags.map((a) => {
78
+ var i;
79
+ return (i = e.parsedSpec.tags) == null ? void 0 : i.find((A) => A.name === a);
80
+ }).filter((a) => !!a)
81
+ }, null, 8, ["layout", "spec", "tags"]))), 128)) : (t(), r(s(g), {
84
82
  key: 1,
85
83
  layout: e.layout,
86
84
  spec: e.parsedSpec,
87
85
  tags: e.parsedSpec.tags
88
86
  }, null, 8, ["layout", "spec", "tags"]))
89
- ], 64)) : p("", !0),
90
- e.parsedSpec.webhooks ? (a(), r(s(W), {
87
+ ], 64)) : n("", !0),
88
+ e.parsedSpec.webhooks ? (t(), r(s(W), {
91
89
  key: 3,
92
90
  webhooks: e.parsedSpec.webhooks
93
- }, null, 8, ["webhooks"])) : p("", !0),
94
- s(J)(e.parsedSpec) && !s(w) ? (a(), i(d, { key: 4 }, [
95
- e.layout === "classic" ? (a(), r(s(j), {
91
+ }, null, 8, ["webhooks"])) : n("", !0),
92
+ s(J)(e.parsedSpec) && !s($) ? (t(), d(c, { key: 4 }, [
93
+ e.layout === "classic" ? (t(), r(s(j), {
96
94
  key: 0,
97
95
  schemas: s(b)(e.parsedSpec)
98
- }, null, 8, ["schemas"])) : (a(), r(s(D), {
96
+ }, null, 8, ["schemas"])) : (t(), r(s(D), {
99
97
  key: 1,
100
98
  schemas: s(b)(e.parsedSpec)
101
99
  }, null, 8, ["schemas"]))
102
- ], 64)) : p("", !0),
103
- n(e.$slots, "end", {}, void 0, !0)
100
+ ], 64)) : n("", !0),
101
+ m(e.$slots, "end", {}, void 0, !0)
104
102
  ])
105
103
  ], 64);
106
104
  };
107
105
  }
108
106
  });
109
107
  export {
110
- le as default
108
+ ce as default
111
109
  };
@@ -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;AASlE,KAAK,WAAW,GAAG;IACjB,aAAa,EAAE,mBAAmB,CAAA;CACnC,CAAC;;AAyGF,wBAOG"}
1
+ {"version":3,"file":"ApiClientModal.vue.d.ts","sourceRoot":"","sources":["../../../src/features/ApiClientModal/ApiClientModal.vue"],"names":[],"mappings":"AAqDA,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,yBAAyB,CAAA;AASlE,KAAK,WAAW,GAAG;IACjB,aAAa,EAAE,mBAAmB,CAAA;CACnC,CAAC;;AA2FF,wBAOG"}