@scalar/api-reference 1.25.48 → 1.25.49

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 (64) hide show
  1. package/CHANGELOG.md +22 -0
  2. package/dist/browser/standalone.js +13698 -13755
  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 +1 -1
  6. package/dist/components/ApiReferenceLayout.vue2.js +136 -137
  7. package/dist/components/Content/Operation/TestRequestButton.vue.d.ts.map +1 -1
  8. package/dist/components/Content/Operation/TestRequestButton.vue.js +2 -2
  9. package/dist/components/Content/Operation/TestRequestButton.vue2.js +18 -17
  10. package/dist/components/DarkModeToggle/DarkModeToggle.vue.d.ts.map +1 -1
  11. package/dist/components/DarkModeToggle/DarkModeToggle.vue.js +1 -1
  12. package/dist/components/DarkModeToggle/DarkModeToggle.vue2.js +12 -11
  13. package/dist/components/Sidebar/Sidebar.vue.d.ts.map +1 -1
  14. package/dist/components/Sidebar/Sidebar.vue.js +2 -2
  15. package/dist/components/Sidebar/Sidebar.vue2.js +146 -142
  16. package/dist/components/Sidebar/SidebarElement.vue.d.ts.map +1 -1
  17. package/dist/components/Sidebar/SidebarElement.vue.js +1 -1
  18. package/dist/components/Sidebar/SidebarElement.vue2.js +37 -35
  19. package/dist/embeds/OpenApiDocument/OpenApiDocument.vue.d.ts.map +1 -1
  20. package/dist/{components → features/ApiClientModal}/ApiClientModal.vue.d.ts +3 -3
  21. package/dist/features/ApiClientModal/ApiClientModal.vue.d.ts.map +1 -0
  22. package/dist/features/ApiClientModal/ApiClientModal.vue.js +49 -0
  23. package/dist/features/ApiClientModal/index.d.ts +3 -0
  24. package/dist/features/ApiClientModal/index.d.ts.map +1 -0
  25. package/dist/features/ApiClientModal/useApiClient.d.ts +7734 -0
  26. package/dist/features/ApiClientModal/useApiClient.d.ts.map +1 -0
  27. package/dist/features/ApiClientModal/useApiClient.js +23 -0
  28. package/dist/features/BaseUrl/ServerUrlSelect.vue.d.ts.map +1 -1
  29. package/dist/features/BaseUrl/ServerUrlSelect.vue.js +2 -2
  30. package/dist/features/BaseUrl/ServerUrlSelect.vue2.js +10 -7
  31. package/dist/features/Search/SearchButton.vue.d.ts.map +1 -1
  32. package/dist/features/Search/SearchButton.vue.js +2 -2
  33. package/dist/features/Search/SearchButton.vue2.js +16 -20
  34. package/dist/helpers/index.d.ts +0 -1
  35. package/dist/helpers/index.d.ts.map +1 -1
  36. package/dist/hooks/useSidebar.d.ts.map +1 -1
  37. package/dist/hooks/useSidebar.js +148 -155
  38. package/dist/index.js +43 -45
  39. package/dist/legacy/components/SecurityScheme.vue.d.ts.map +1 -1
  40. package/dist/legacy/components/SecurityScheme.vue.js +2 -2
  41. package/dist/legacy/components/SecurityScheme.vue2.js +111 -115
  42. package/dist/legacy/components/SecuritySchemeSelector.vue.d.ts.map +1 -1
  43. package/dist/legacy/components/SecuritySchemeSelector.vue.js +1 -1
  44. package/dist/legacy/components/SecuritySchemeSelector.vue2.js +46 -36
  45. package/dist/legacy/helpers/index.d.ts +1 -1
  46. package/dist/legacy/stores/index.d.ts +1 -2
  47. package/dist/legacy/stores/index.d.ts.map +1 -1
  48. package/dist/legacy/stores/useOpenApiStore.js +4 -18
  49. package/dist/style.css +1 -1
  50. package/package.json +11 -11
  51. package/dist/components/ApiClientModal.vue.d.ts.map +0 -1
  52. package/dist/components/ApiClientModal.vue.js +0 -64
  53. package/dist/components/api-client-bus.d.ts +0 -22
  54. package/dist/components/api-client-bus.d.ts.map +0 -1
  55. package/dist/components/api-client-bus.js +0 -6
  56. package/dist/helpers/openClientFor.d.ts +0 -7
  57. package/dist/helpers/openClientFor.d.ts.map +0 -1
  58. package/dist/helpers/openClientFor.js +0 -19
  59. package/dist/legacy/helpers/createPlaceholderRequest.js +0 -14
  60. package/dist/legacy/stores/useApiClientStore.d.ts +0 -18
  61. package/dist/legacy/stores/useApiClientStore.d.ts.map +0 -1
  62. package/dist/legacy/stores/useApiClientStore.js +0 -32
  63. package/dist/legacy/stores/useRequestStore.js +0 -33
  64. /package/dist/{components → features/ApiClientModal}/ApiClientModal.vue2.js +0 -0
@@ -1 +1 @@
1
- {"version":3,"file":"ApiReferenceLayout.vue.d.ts","sourceRoot":"","sources":["../../src/components/ApiReferenceLayout.vue"],"names":[],"mappings":"AAukBA,OAAO,EACL,KAAK,OAAO,EAGb,MAAM,gBAAgB,CAAA;AA4BvB,OAAO,KAAK,EACV,oBAAoB,EAEpB,kBAAkB,EACnB,MAAM,UAAU,CAAA;AAqPjB,iBAAS,cAAc;oBAzNe,kBAAkB,KAAK,GAAG;oBAA1B,kBAAkB,KAAK,GAAG;oBAA1B,kBAAkB,KAAK,GAAG;6BAA1B,kBAAkB,KAAK,GAAG;2BAA1B,kBAAkB,KAAK,GAAG;6BAA1B,kBAAkB,KAAK,GAAG;2BAA1B,kBAAkB,KAAK,GAAG;;oBAA1B,kBAAkB,KAAK,GAAG;oBAA1B,kBAAkB,KAAK,GAAG;oBAA1B,kBAAkB,KAAK,GAAG;6BAA1B,kBAAkB,KAAK,GAAG;2BAA1B,kBAAkB,KAAK,GAAG;6BAA1B,kBAAkB,KAAK,GAAG;2BAA1B,kBAAkB,KAAK,GAAG;EA6gB/D;AACD,QAAA,MAAM,eAAe;;YAOqB,OAAO;eAAS,MAAM;;;;;;;;YAAtB,OAAO;eAAS,MAAM;;;;;;kFAM9D,CAAC;wBACkB,uBAAuB,CAAC,OAAO,eAAe,EAAE,UAAU,CAAC,OAAO,cAAc,CAAC,CAAC;AAAvG,wBAAwG;AAOxG,KAAK,uBAAuB,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG;IACpC,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":"AAokBA,OAAO,EACL,KAAK,OAAO,EAGb,MAAM,gBAAgB,CAAA;AA6BvB,OAAO,KAAK,EACV,oBAAoB,EAEpB,kBAAkB,EACnB,MAAM,UAAU,CAAA;AAoPjB,iBAAS,cAAc;oBAzNe,kBAAkB,KAAK,GAAG;oBAA1B,kBAAkB,KAAK,GAAG;oBAA1B,kBAAkB,KAAK,GAAG;6BAA1B,kBAAkB,KAAK,GAAG;2BAA1B,kBAAkB,KAAK,GAAG;6BAA1B,kBAAkB,KAAK,GAAG;2BAA1B,kBAAkB,KAAK,GAAG;;oBAA1B,kBAAkB,KAAK,GAAG;oBAA1B,kBAAkB,KAAK,GAAG;oBAA1B,kBAAkB,KAAK,GAAG;6BAA1B,kBAAkB,KAAK,GAAG;2BAA1B,kBAAkB,KAAK,GAAG;6BAA1B,kBAAkB,KAAK,GAAG;2BAA1B,kBAAkB,KAAK,GAAG;EA4gB/D;AACD,QAAA,MAAM,eAAe;;YAOqB,OAAO;eAAS,MAAM;;;;;;;;YAAtB,OAAO;eAAS,MAAM;;;;;;kFAM9D,CAAC;wBACkB,uBAAuB,CAAC,OAAO,eAAe,EAAE,UAAU,CAAC,OAAO,cAAc,CAAC,CAAC;AAAvG,wBAAwG;AAOxG,KAAK,uBAAuB,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG;IACpC,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-1f7a83f1"]]);
5
+ const a = /* @__PURE__ */ t(o, [["__scopeId", "data-v-e75c5db5"]]);
6
6
  export {
7
7
  a as default
8
8
  };
@@ -1,24 +1,27 @@
1
- import { defineComponent as ee, ref as R, computed as y, onBeforeMount as P, onMounted as oe, onUnmounted as te, watch as re, onServerPrefetch as ae, useSSRContext as ne, getCurrentInstance as ie, provide as m, openBlock as w, createElementBlock as T, Fragment as k, createElementVNode as l, normalizeClass as se, unref as p, normalizeStyle as le, renderSlot as d, normalizeProps as c, guardReactiveProps as u, createVNode as S, withCtx as v, createCommentVNode as O, withDirectives as de, vShow as ce, createSlots as ue } from "vue";
2
- import { provideUseId as pe } from "@headlessui/vue";
3
- import { addScalarClassesToHeadless as fe } from "@scalar/components";
4
- import { defaultStateFactory as A } from "@scalar/oas-utils/helpers";
5
- import { hasObtrusiveScrollbars as ge, getThemeStyles as me } from "@scalar/themes";
6
- import { useToasts as Se, ScalarToasts as ve } from "@scalar/use-toasts";
7
- import { useMediaQuery as he, useResizeObserver as be, useDebounceFn as ye } from "@vueuse/core";
8
- import we from "./ApiClientModal.vue.js";
9
- import Te from "./GettingStarted.vue.js";
10
- import { downloadSpecBus as F, downloadSpecFile as Re } from "../helpers/specDownloads.js";
11
- import { GLOBAL_SECURITY_SYMBOL as Oe, HIDE_DOWNLOAD_BUTTON_SYMBOL as $e, HIDE_TEST_REQUEST_BUTTON_SYMBOL as Ce, OPENAPI_DOCUMENT_URL_SYMBOL as Ee, INTEGRATION_SYMBOL as Ie } from "../helpers/provideSymbols.js";
12
- import { useDeprecationWarnings as Le } from "../hooks/useDeprecationWarnings.js";
13
- import Be from "./Sidebar/Sidebar.vue.js";
14
- import Ue from "./Content/Content.vue.js";
15
- import { useSidebar as De } from "../hooks/useSidebar.js";
16
- import { useNavState as Me } from "../hooks/useNavState.js";
17
- import { sleep as Pe } from "../helpers/sleep.js";
18
- const ke = ["innerHTML"], Ae = { class: "references-header" }, Fe = ["aria-label"], Ne = { class: "references-navigation-list" }, He = { class: "references-editor" }, Ye = { class: "references-editor-textarea" }, ze = ["aria-label"], Ge = {
1
+ import { defineComponent as Z, ref as y, computed as h, onBeforeMount as D, 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 M, 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 P } 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 Ue } from "../hooks/useNavState.js";
17
+ import { sleep as De } from "../helpers/sleep.js";
18
+ const Me = ["innerHTML"], Pe = { class: "references-header" }, ke = {
19
+ key: 0,
20
+ 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 = {
19
22
  key: 0,
20
23
  class: "references-footer"
21
- }, io = /* @__PURE__ */ ee({
24
+ }, ao = /* @__PURE__ */ Z({
22
25
  inheritAttrs: !1,
23
26
  __name: "ApiReferenceLayout",
24
27
  props: {
@@ -27,210 +30,206 @@ const ke = ["innerHTML"], Ae = { class: "references-header" }, Fe = ["aria-label
27
30
  rawSpec: {}
28
31
  },
29
32
  emits: ["changeTheme", "updateContent", "loadSwaggerFile", "linkSwaggerFile", "toggleDarkMode"],
30
- setup(N) {
31
- const t = N, { initializeToasts: H, toast: Y } = Se();
32
- H((e) => Y(e));
33
- const z = he("(min-width: 1150px)"), G = R("100dvh"), f = R(null);
34
- be(f, (e) => {
35
- G.value = e[0].contentRect.height + "px";
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";
36
39
  });
37
- const V = y(ge), {
38
- breadcrumb: Q,
39
- collapsedSidebarItems: h,
40
- isSidebarOpen: W,
41
- setCollapsedSidebarItem: $,
42
- hideModels: j,
43
- defaultOpenAllTags: q,
44
- setParsedSpec: K,
45
- scrollToOperation: _
46
- } = De(), {
47
- getPathRoutingId: C,
48
- getSectionId: J,
49
- getTagId: X,
50
- hash: E,
51
- isIntersectionEnabled: I,
52
- pathRouting: L,
53
- updateHash: B
54
- } = Me();
55
- L.value = t.configuration.pathRouting, P(() => B());
56
- const U = async (e) => {
40
+ const z = h(pe), {
41
+ breadcrumb: G,
42
+ collapsedSidebarItems: v,
43
+ isSidebarOpen: V,
44
+ setCollapsedSidebarItem: R,
45
+ hideModels: Q,
46
+ defaultOpenAllTags: W,
47
+ setParsedSpec: _,
48
+ scrollToOperation: j
49
+ } = Be(), {
50
+ getPathRoutingId: O,
51
+ getSectionId: q,
52
+ getTagId: K,
53
+ hash: $,
54
+ isIntersectionEnabled: C,
55
+ pathRouting: E,
56
+ updateHash: I
57
+ } = Ue();
58
+ E.value = t.configuration.pathRouting, D(() => I());
59
+ const L = async (e) => {
57
60
  var o;
58
- I.value = !1, B(), e ? _(e) : (o = f.value) == null || o.scrollTo(0, 0), await Pe(100), I.value = !0;
59
- }, D = R(0);
60
- P(() => fe()), oe(() => {
61
+ C.value = !1, I(), e ? j(e) : (o = f.value) == null || o.scrollTo(0, 0), await De(100), C.value = !0;
62
+ }, B = y(0);
63
+ D(() => ce()), x(() => {
61
64
  var r, a, n;
62
- history.scrollRestoration = "manual", F.on(({ specTitle: s }) => {
63
- Re(t.rawSpec, s);
65
+ history.scrollRestoration = "manual", k.on(({ specTitle: i }) => {
66
+ we(t.rawSpec, i);
64
67
  });
65
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();
66
69
  if (e && o) {
67
- const s = o.top - e.top;
68
- D.value = s < 2 ? 0 : s;
70
+ const i = o.top - e.top;
71
+ B.value = i < 2 ? 0 : i;
69
72
  }
70
- window.onhashchange = () => U(decodeURIComponent(window.location.hash.replace(/^#/, ""))), window.onpopstate = () => L.value && U(C(window.location.pathname));
73
+ window.onhashchange = () => L(decodeURIComponent(window.location.hash.replace(/^#/, ""))), window.onpopstate = () => E.value && L(O(window.location.pathname));
71
74
  });
72
- const Z = y(
73
- () => z.value || !t.configuration.isEditable
74
- ), M = ye((e) => {
75
+ const J = h(
76
+ () => H.value || !t.configuration.isEditable
77
+ ), U = he((e) => {
75
78
  if ((e.target.scrollTop ?? 0) < 50) {
76
79
  const r = t.configuration.pathRouting ? t.configuration.pathRouting.basePath : window.location.pathname;
77
- window.history.replaceState({}, "", r + window.location.search), E.value = "";
80
+ window.history.replaceState({}, "", r + window.location.search), $.value = "";
78
81
  }
79
- }), i = y(() => ({
80
- breadcrumb: Q.value,
82
+ }), s = h(() => ({
83
+ breadcrumb: G.value,
81
84
  spec: t.parsedSpec
82
85
  }));
83
- te(() => {
84
- F.reset();
85
- }), re(() => t.parsedSpec, K, { deep: !0 }), ae(() => {
86
+ ee(() => {
87
+ k.reset();
88
+ }), oe(() => t.parsedSpec, _, { deep: !0 }), te(() => {
86
89
  var o, r;
87
- const e = ne();
88
- if (e && (e.payload || (e.payload = { data: A() }), (o = e.payload).data || (o.data = A()), t.configuration.pathRouting)) {
89
- const a = C(e.url);
90
- E.value = a, e.payload.data.hash = a;
91
- for (const n in h)
92
- Object.hasOwn(h, n) && delete h[n];
90
+ const e = re();
91
+ if (e && (e.payload || (e.payload = { data: P() }), (o = e.payload).data || (o.data = P()), t.configuration.pathRouting)) {
92
+ const a = O(e.url);
93
+ $.value = a, e.payload.data.hash = a;
94
+ for (const n in v)
95
+ Object.hasOwn(v, n) && delete v[n];
93
96
  if (a)
94
- $(J(a), !0);
97
+ R(q(a), !0);
95
98
  else {
96
99
  const n = (r = t.parsedSpec.tags) == null ? void 0 : r[0];
97
- n && $(X(n), !0);
100
+ n && R(K(n), !0);
98
101
  }
99
- e.payload.data["useSidebarContent-collapsedSidebarItems"] = h;
102
+ e.payload.data["useSidebarContent-collapsedSidebarItems"] = v;
100
103
  }
101
- }), pe(() => {
104
+ }), ue(() => {
102
105
  var a;
103
- const e = ie(), o = "scalar-instance-id";
106
+ const e = ae(), o = "scalar-instance-id";
104
107
  if (!e) return o;
105
108
  let r = e.uid;
106
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}`;
107
- }), m(Oe, () => t.parsedSpec.security), m(
108
- $e,
110
+ }), g(ye, () => t.parsedSpec.security), g(
111
+ Te,
109
112
  () => t.configuration.hideDownloadButton
110
- ), m(
111
- Ce,
113
+ ), g(
114
+ Re,
112
115
  () => t.configuration.hideTestRequestButton
113
- ), m(Ee, () => {
116
+ ), g(Oe, () => {
114
117
  var e;
115
118
  return (e = t.configuration.spec) == null ? void 0 : e.url;
116
- }), m(
117
- Ie,
119
+ }), g(
120
+ $e,
118
121
  () => t.configuration._integration !== null ? t.configuration._integration : "vue"
119
- ), j.value = t.configuration.hideModels ?? !1, q.value = t.configuration.defaultOpenAllTags ?? !1, Le(t.configuration);
120
- const x = y(
122
+ ), Q.value = t.configuration.hideModels ?? !1, W.value = t.configuration.defaultOpenAllTags ?? !1, Ce(t.configuration);
123
+ const X = h(
121
124
  () => `<style>
122
- ${me(t.configuration.theme, {
125
+ ${fe(t.configuration.theme, {
123
126
  fonts: t.configuration.withDefaultFonts
124
127
  })}</style>`
125
128
  );
126
129
  return (e, o) => {
127
- var r, a, n, s;
128
- return w(), T(k, null, [
129
- l("div", { innerHTML: x.value }, null, 8, ke),
130
+ var r, a;
131
+ return b(), w(M, null, [
132
+ l("div", { innerHTML: X.value }, null, 8, Me),
130
133
  l("div", {
131
134
  ref_key: "documentEl",
132
135
  ref: f,
133
- class: se(["scalar-app scalar-api-reference references-layout", [
136
+ class: ne(["scalar-app scalar-api-reference references-layout", [
134
137
  {
135
- "scalar-scrollbars-obtrusive": V.value,
138
+ "scalar-scrollbars-obtrusive": z.value,
136
139
  "references-editable": e.configuration.isEditable,
137
140
  "references-sidebar": e.configuration.showSidebar,
138
- "references-sidebar-mobile-open": p(W),
141
+ "references-sidebar-mobile-open": d(V),
139
142
  "references-classic": e.configuration.layout === "classic"
140
143
  },
141
144
  e.$attrs.class
142
145
  ]]),
143
- style: le({
144
- "--scalar-y-offset": `var(--scalar-custom-header-height, ${D.value}px)`
146
+ style: ie({
147
+ "--scalar-y-offset": `var(--scalar-custom-header-height, ${B.value}px)`
145
148
  }),
146
149
  onScrollPassive: o[4] || (o[4] = //@ts-ignore
147
- (...b) => p(M) && p(M)(...b))
150
+ (...n) => d(U) && d(U)(...n))
148
151
  }, [
149
- l("div", Ae, [
150
- d(e.$slots, "header", c(u(i.value)), void 0, !0)
152
+ l("div", Pe, [
153
+ u(e.$slots, "header", c(p(s.value)), void 0, !0)
151
154
  ]),
152
- e.configuration.showSidebar ? (w(), T("nav", {
153
- key: 0,
154
- "aria-label": `Contents of ${(r = e.parsedSpec.info) == null ? void 0 : r.title}`,
155
- class: "references-navigation t-doc__sidebar"
156
- }, [
157
- l("div", Ne, [
158
- S(p(Be), {
155
+ e.configuration.showSidebar ? (b(), w("aside", ke, [
156
+ l("div", Ae, [
157
+ m(d(Ee), {
159
158
  operationsSorter: e.configuration.operationsSorter,
160
159
  parsedSpec: e.parsedSpec,
161
160
  tagsSorter: e.configuration.tagsSorter
162
161
  }, {
163
- "sidebar-start": v(() => [
164
- d(e.$slots, "sidebar-start", c(u(i.value)), void 0, !0)
162
+ "sidebar-start": S(() => [
163
+ u(e.$slots, "sidebar-start", c(p(s.value)), void 0, !0)
165
164
  ]),
166
- "sidebar-end": v(() => [
167
- d(e.$slots, "sidebar-end", c(u(i.value)), void 0, !0)
165
+ "sidebar-end": S(() => [
166
+ u(e.$slots, "sidebar-end", c(p(s.value)), void 0, !0)
168
167
  ]),
169
168
  _: 3
170
169
  }, 8, ["operationsSorter", "parsedSpec", "tagsSorter"])
171
170
  ])
172
- ], 8, Fe)) : O("", !0),
173
- de(l("div", He, [
174
- l("div", Ye, [
175
- d(e.$slots, "editor", c(u(i.value)), void 0, !0)
171
+ ])) : T("", !0),
172
+ se(l("div", Fe, [
173
+ l("div", Ne, [
174
+ u(e.$slots, "editor", c(p(s.value)), void 0, !0)
176
175
  ])
177
176
  ], 512), [
178
- [ce, e.configuration.isEditable]
177
+ [le, e.configuration.isEditable]
179
178
  ]),
180
- Z.value ? (w(), T(k, { key: 1 }, [
179
+ J.value ? (b(), w(M, { key: 1 }, [
181
180
  l("section", {
182
- "aria-label": `Open API Documentation for ${(a = e.parsedSpec.info) == null ? void 0 : a.title}`,
181
+ "aria-label": `Open API Documentation for ${(r = e.parsedSpec.info) == null ? void 0 : r.title}`,
183
182
  class: "references-rendered"
184
183
  }, [
185
- S(p(Ue), {
184
+ m(d(Ie), {
186
185
  baseServerURL: e.configuration.baseServerURL,
187
186
  layout: e.configuration.layout === "classic" ? "accordion" : "default",
188
187
  parsedSpec: e.parsedSpec,
189
188
  proxy: e.configuration.proxy,
190
189
  servers: e.configuration.servers
191
- }, ue({
192
- start: v(() => [
193
- d(e.$slots, "content-start", c(u(i.value)), void 0, !0)
190
+ }, de({
191
+ start: S(() => [
192
+ u(e.$slots, "content-start", c(p(s.value)), void 0, !0)
194
193
  ]),
195
- end: v(() => [
196
- d(e.$slots, "content-end", c(u(i.value)), void 0, !0)
194
+ end: S(() => [
195
+ u(e.$slots, "content-end", c(p(s.value)), void 0, !0)
197
196
  ]),
198
197
  _: 2
199
198
  }, [
200
- (n = e.configuration) != null && n.isEditable ? {
199
+ (a = e.configuration) != null && a.isEditable ? {
201
200
  name: "empty-state",
202
- fn: v(() => {
203
- var b;
201
+ fn: S(() => {
202
+ var n;
204
203
  return [
205
- S(Te, {
206
- theme: ((b = e.configuration) == null ? void 0 : b.theme) || "default",
207
- onChangeTheme: o[0] || (o[0] = (g) => e.$emit("changeTheme", g)),
208
- onLinkSwaggerFile: o[1] || (o[1] = (g) => e.$emit("linkSwaggerFile")),
209
- onLoadSwaggerFile: o[2] || (o[2] = (g) => e.$emit("loadSwaggerFile")),
210
- onUpdateContent: o[3] || (o[3] = (g) => e.$emit("updateContent", g))
204
+ m(be, {
205
+ 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))
211
210
  }, null, 8, ["theme"])
212
211
  ];
213
212
  }),
214
213
  key: "0"
215
214
  } : void 0
216
215
  ]), 1032, ["baseServerURL", "layout", "parsedSpec", "proxy", "servers"])
217
- ], 8, ze),
218
- e.$slots.footer ? (w(), T("div", Ge, [
219
- d(e.$slots, "footer", c(u(i.value)), void 0, !0)
220
- ])) : O("", !0)
221
- ], 64)) : O("", !0),
222
- S(we, {
223
- preferredSecurityScheme: (s = e.configuration.authentication) == null ? void 0 : s.preferredSecurityScheme,
216
+ ], 8, He),
217
+ e.$slots.footer ? (b(), w("div", Ye, [
218
+ u(e.$slots, "footer", c(p(s.value)), void 0, !0)
219
+ ])) : T("", !0)
220
+ ], 64)) : T("", !0),
221
+ m(d(Le), {
222
+ authentication: e.configuration.authentication,
224
223
  proxyUrl: e.configuration.proxy,
225
224
  servers: e.configuration.servers,
226
225
  spec: e.configuration.spec
227
- }, null, 8, ["preferredSecurityScheme", "proxyUrl", "servers", "spec"])
226
+ }, null, 8, ["authentication", "proxyUrl", "servers", "spec"])
228
227
  ], 38),
229
- S(p(ve))
228
+ m(d(me))
230
229
  ], 64);
231
230
  };
232
231
  }
233
232
  });
234
233
  export {
235
- io as default
234
+ ao as default
236
235
  };
@@ -1 +1 @@
1
- {"version":3,"file":"TestRequestButton.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/Content/Operation/TestRequestButton.vue"],"names":[],"mappings":"AAwEA,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,sBAAsB,CAAA;;eASnD,oBAAoB;;eAApB,oBAAoB;;AAkFjC,wBAMG"}
1
+ {"version":3,"file":"TestRequestButton.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/Content/Operation/TestRequestButton.vue"],"names":[],"mappings":"AAuEA,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,sBAAsB,CAAA;;eASnD,oBAAoB;;eAApB,oBAAoB;;AAiFjC,wBAMG"}
@@ -1,7 +1,7 @@
1
1
  import t from "./TestRequestButton.vue2.js";
2
2
  /* empty css */
3
3
  import o from "../../../_virtual/_plugin-vue_export-helper.js";
4
- const a = /* @__PURE__ */ o(t, [["__scopeId", "data-v-2e17b0a6"]]);
4
+ const s = /* @__PURE__ */ o(t, [["__scopeId", "data-v-ee2f87fc"]]);
5
5
  export {
6
- a as default
6
+ s as default
7
7
  };
@@ -1,39 +1,40 @@
1
- import { defineComponent as s, inject as a, unref as o, openBlock as r, createElementBlock as p, withModifiers as m, createVNode as u, createElementVNode as l, Fragment as d, createTextVNode as c } from "vue";
2
- import { ScalarIcon as f } from "@scalar/components";
3
- import { apiClientBus as T } from "../../api-client-bus.js";
4
- import { HIDE_TEST_REQUEST_BUTTON_SYMBOL as h } from "../../../helpers/provideSymbols.js";
5
- const B = ["method"], N = /* @__PURE__ */ s({
1
+ import { defineComponent as m, inject as u, unref as o, openBlock as p, createElementBlock as s, withModifiers as l, createVNode as c, createElementVNode as d, Fragment as f, createTextVNode as T } from "vue";
2
+ import { ScalarIcon as h } from "@scalar/components";
3
+ import { HIDE_TEST_REQUEST_BUTTON_SYMBOL as _ } from "../../../helpers/provideSymbols.js";
4
+ import { useApiClient as B } from "../../../features/ApiClientModal/useApiClient.js";
5
+ const E = ["method"], S = /* @__PURE__ */ m({
6
6
  __name: "TestRequestButton",
7
7
  props: {
8
8
  operation: {}
9
9
  },
10
- setup(_) {
11
- const i = a(h);
10
+ setup(b) {
11
+ const i = u(_), { client: a } = B();
12
12
  return (t, e) => {
13
13
  var n;
14
- return ((n = o(i)) == null ? void 0 : n()) !== !0 ? (r(), p("button", {
14
+ return ((n = o(i)) == null ? void 0 : n()) !== !0 ? (p(), s("button", {
15
15
  key: 0,
16
16
  class: "show-api-client-button",
17
17
  method: t.operation.httpVerb,
18
18
  type: "button",
19
- onClick: e[0] || (e[0] = m((E) => o(T).emit({
20
- open: {
19
+ onClick: e[0] || (e[0] = l((k) => {
20
+ var r;
21
+ return (r = o(a)) == null ? void 0 : r.open({
21
22
  path: t.operation.path,
22
23
  method: t.operation.httpVerb
23
- }
24
- }), ["stop"]))
24
+ });
25
+ }, ["stop"]))
25
26
  }, [
26
- u(o(f), {
27
+ c(o(h), {
27
28
  icon: "Play",
28
29
  size: "sm"
29
30
  }),
30
- e[1] || (e[1] = l("span", null, "Test Request", -1))
31
- ], 8, B)) : (r(), p(d, { key: 1 }, [
32
- c(" ")
31
+ e[1] || (e[1] = d("span", null, "Test Request", -1))
32
+ ], 8, E)) : (p(), s(f, { key: 1 }, [
33
+ T(" ")
33
34
  ], 64));
34
35
  };
35
36
  }
36
37
  });
37
38
  export {
38
- N as default
39
+ S as default
39
40
  };
@@ -1 +1 @@
1
- {"version":3,"file":"DarkModeToggle.vue.d.ts","sourceRoot":"","sources":["../../../src/components/DarkModeToggle/DarkModeToggle.vue"],"names":[],"mappings":";gBAqFc,OAAO;;;;gBAAP,OAAO;;;;AAsFrB,wBASG"}
1
+ {"version":3,"file":"DarkModeToggle.vue.d.ts","sourceRoot":"","sources":["../../../src/components/DarkModeToggle/DarkModeToggle.vue"],"names":[],"mappings":";gBAsFc,OAAO;;;;gBAAP,OAAO;;;;AAwFrB,wBASG"}
@@ -1,7 +1,7 @@
1
1
  import o from "./DarkModeToggle.vue2.js";
2
2
  /* empty css */
3
3
  import r from "../../_virtual/_plugin-vue_export-helper.js";
4
- const f = /* @__PURE__ */ r(o, [["__scopeId", "data-v-bfb18750"]]);
4
+ const f = /* @__PURE__ */ r(o, [["__scopeId", "data-v-57bfeb25"]]);
5
5
  export {
6
6
  f as default
7
7
  };
@@ -1,25 +1,26 @@
1
- import { defineComponent as n, openBlock as o, createElementBlock as t, createElementVNode as a, createVNode as s, unref as d } from "vue";
2
- import { ScalarIcon as l } from "@scalar/components";
3
- const i = { class: "darklight-reference" }, c = { key: 0 }, k = { key: 1 }, _ = /* @__PURE__ */ n({
1
+ import { defineComponent as a, openBlock as o, createElementBlock as t, createElementVNode as r, createVNode as n, unref as l } from "vue";
2
+ import { ScalarIcon as d } from "@scalar/components";
3
+ const i = { class: "darklight-reference" }, k = { key: 0 }, p = { key: 1 }, M = /* @__PURE__ */ a({
4
4
  __name: "DarkModeToggle",
5
5
  props: {
6
6
  isDarkMode: { type: Boolean }
7
7
  },
8
8
  emits: ["toggleDarkMode"],
9
- setup(p) {
10
- return (r, e) => (o(), t("div", i, [
11
- a("button", {
9
+ setup(m) {
10
+ return (s, e) => (o(), t("div", i, [
11
+ r("button", {
12
12
  class: "darklight",
13
13
  type: "button",
14
- onClick: e[0] || (e[0] = (m) => r.$emit("toggleDarkMode"))
14
+ onClick: e[0] || (e[0] = (g) => s.$emit("toggleDarkMode"))
15
15
  }, [
16
- s(d(l), {
16
+ n(l(d), {
17
17
  icon: "LightDarkModeToggle",
18
18
  size: "md"
19
19
  }),
20
- r.isDarkMode ? (o(), t("span", c, "Light Mode")) : (o(), t("span", k, "Dark Mode"))
20
+ e[1] || (e[1] = r("div", { class: "sr-only" }, "Set to", -1)),
21
+ s.isDarkMode ? (o(), t("span", k, "Light Mode")) : (o(), t("span", p, "Dark Mode"))
21
22
  ]),
22
- e[1] || (e[1] = a("a", {
23
+ e[2] || (e[2] = r("a", {
23
24
  class: "darklight-reference-promo",
24
25
  href: "https://www.scalar.com",
25
26
  target: "_blank"
@@ -28,5 +29,5 @@ const i = { class: "darklight-reference" }, c = { key: 0 }, k = { key: 1 }, _ =
28
29
  }
29
30
  });
30
31
  export {
31
- _ as default
32
+ M as default
32
33
  };
@@ -1 +1 @@
1
- {"version":3,"file":"Sidebar.vue.d.ts","sourceRoot":"","sources":["../../../src/components/Sidebar/Sidebar.vue"],"names":[],"mappings":"AAkOA,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,sBAAsB,CAAA;AAIhD,OAAO,EAAE,KAAK,YAAY,EAA2B,MAAM,aAAa,CAAA;AAyExE,iBAAS,cAAc;6BA8Oc,GAAG;2BACJ,GAAG;EAuBtC;AACD,QAAA,MAAM,eAAe;gBAzUL,IAAI;;gBAAJ,IAAI;gHA+UlB,CAAC;wBACkB,uBAAuB,CAAC,OAAO,eAAe,EAAE,UAAU,CAAC,OAAO,cAAc,CAAC,CAAC;AAAvG,wBAAwG;AAOxG,KAAK,uBAAuB,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG;IACpC,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":"AAmOA,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,sBAAsB,CAAA;AAIhD,OAAO,EAAE,KAAK,YAAY,EAA2B,MAAM,aAAa,CAAA;AAyExE,iBAAS,cAAc;6BA8Oc,GAAG;2BACJ,GAAG;EAuBtC;AACD,QAAA,MAAM,eAAe;gBAzUL,IAAI;;gBAAJ,IAAI;gHA+UlB,CAAC;wBACkB,uBAAuB,CAAC,OAAO,eAAe,EAAE,UAAU,CAAC,OAAO,cAAc,CAAC,CAAC;AAAvG,wBAAwG;AAOxG,KAAK,uBAAuB,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG;IACpC,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 f = /* @__PURE__ */ r(o, [["__scopeId", "data-v-42bebafe"]]);
4
+ const m = /* @__PURE__ */ r(o, [["__scopeId", "data-v-37c6928e"]]);
5
5
  export {
6
- f as default
6
+ m as default
7
7
  };