@scalar/api-reference 1.25.34 → 1.25.36

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 (48) hide show
  1. package/CHANGELOG.md +10 -0
  2. package/dist/browser/standalone.js +6706 -6670
  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 +3 -3
  6. package/dist/components/ApiReferenceLayout.vue2.js +137 -133
  7. package/dist/components/Content/Authentication/Authentication.vue.d.ts.map +1 -1
  8. package/dist/components/Content/Authentication/Authentication.vue.js +2 -2
  9. package/dist/components/Content/ClientLibraries/ClientSelector.vue.d.ts.map +1 -1
  10. package/dist/components/Content/ClientLibraries/ClientSelector.vue.js +2 -2
  11. package/dist/components/Content/ClientLibraries/ClientSelector.vue2.js +61 -46
  12. package/dist/components/Content/Content.vue.js +1 -1
  13. package/dist/components/Content/Content.vue2.js +19 -19
  14. package/dist/features/BaseUrl/ServerForm.vue.d.ts.map +1 -1
  15. package/dist/features/BaseUrl/ServerForm.vue.js +2 -2
  16. package/dist/features/BaseUrl/ServerForm.vue2.js +39 -32
  17. package/dist/features/BaseUrl/ServerUrl.vue.d.ts.map +1 -1
  18. package/dist/features/BaseUrl/ServerUrl.vue.js +2 -3
  19. package/dist/features/BaseUrl/ServerUrl.vue2.js +13 -15
  20. package/dist/features/BaseUrl/ServerUrlSelect.vue.d.ts +2 -0
  21. package/dist/features/BaseUrl/ServerUrlSelect.vue.d.ts.map +1 -1
  22. package/dist/features/BaseUrl/ServerUrlSelect.vue.js +2 -2
  23. package/dist/features/BaseUrl/ServerUrlSelect.vue2.js +37 -36
  24. package/dist/features/BaseUrl/ServerVariablesForm.vue.d.ts +4 -0
  25. package/dist/features/BaseUrl/ServerVariablesForm.vue.d.ts.map +1 -1
  26. package/dist/features/BaseUrl/ServerVariablesForm.vue.js +1 -1
  27. package/dist/features/BaseUrl/ServerVariablesForm.vue2.js +37 -31
  28. package/dist/features/BaseUrl/ServerVariablesSelect.vue.d.ts +2 -0
  29. package/dist/features/BaseUrl/ServerVariablesSelect.vue.d.ts.map +1 -1
  30. package/dist/features/BaseUrl/ServerVariablesSelect.vue.js +3 -3
  31. package/dist/features/BaseUrl/ServerVariablesSelect.vue2.js +39 -35
  32. package/dist/features/BaseUrl/ServerVariablesTextbox.vue.d.ts +2 -0
  33. package/dist/features/BaseUrl/ServerVariablesTextbox.vue.d.ts.map +1 -1
  34. package/dist/features/BaseUrl/ServerVariablesTextbox.vue.js +4 -4
  35. package/dist/features/BaseUrl/ServerVariablesTextbox.vue2.js +11 -9
  36. package/dist/features/DownloadLink/DownloadLink.vue.d.ts.map +1 -1
  37. package/dist/features/DownloadLink/DownloadLink.vue.js +2 -2
  38. package/dist/features/DownloadLink/DownloadLink.vue2.js +12 -11
  39. package/dist/index.js +1 -1
  40. package/dist/legacy/components/CardFormTextInput.vue.d.ts +2 -0
  41. package/dist/legacy/components/CardFormTextInput.vue.d.ts.map +1 -1
  42. package/dist/legacy/components/CardFormTextInput.vue.js +1 -1
  43. package/dist/legacy/components/CardFormTextInput.vue2.js +39 -23
  44. package/dist/legacy/components/SecuritySchemeSelector.vue.d.ts.map +1 -1
  45. package/dist/legacy/components/SecuritySchemeSelector.vue.js +2 -2
  46. package/dist/legacy/components/SecuritySchemeSelector.vue2.js +67 -45
  47. package/dist/style.css +1 -1
  48. package/package.json +7 -7
@@ -1 +1 @@
1
- {"version":3,"file":"ApiReferenceLayout.vue.d.ts","sourceRoot":"","sources":["../../src/components/ApiReferenceLayout.vue"],"names":[],"mappings":"AA8jBA,OAAO,EACL,KAAK,OAAO,EAGb,MAAM,gBAAgB,CAAA;AA2BvB,OAAO,KAAK,EACV,oBAAoB,EAEpB,kBAAkB,EACnB,MAAM,UAAU,CAAA;AA0OjB,iBAAS,cAAc;oBA9Me,kBAAkB,KAAK,GAAG;oBAA1B,kBAAkB,KAAK,GAAG;oBAA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AC,CAAC,CAAA;KAAE,GAC9D;QAAE,IAAI,EAAE,OAAO,KAAK,EAAE,QAAQ,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;QAAC,QAAQ,EAAE,IAAI,CAAA;KAAE;CACzD,CAAC"}
@@ -1,8 +1,8 @@
1
1
  import o from "./ApiReferenceLayout.vue2.js";
2
2
  /* empty css */
3
3
  /* empty css */
4
- import t from "../_virtual/_plugin-vue_export-helper.js";
5
- const m = /* @__PURE__ */ t(o, [["__scopeId", "data-v-ce34303a"]]);
4
+ import e from "../_virtual/_plugin-vue_export-helper.js";
5
+ const c = /* @__PURE__ */ e(o, [["__scopeId", "data-v-c9ecea2a"]]);
6
6
  export {
7
- m as default
7
+ c as default
8
8
  };
@@ -1,27 +1,24 @@
1
- import { defineComponent as _, ref as w, computed as v, onBeforeMount as D, onMounted as x, onUnmounted as ee, watch as oe, onServerPrefetch as te, useSSRContext as re, getCurrentInstance as ae, provide as h, openBlock as b, createElementBlock as y, Fragment as M, createElementVNode as l, normalizeClass as ne, unref as p, normalizeStyle as se, renderSlot as d, normalizeProps as c, guardReactiveProps as u, createVNode as g, withCtx as m, createCommentVNode as T, withDirectives as ie, vShow as le, createSlots as de } from "vue";
2
- import { provideUseId as ce } from "@headlessui/vue";
3
- import { addScalarClassesToHeadless as ue } from "@scalar/components";
4
- import { defaultStateFactory as k } 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 "./ApiClientModal.vue.js";
9
- import ye from "./GettingStarted.vue.js";
10
- import { downloadSpecBus as P, downloadSpecFile as we } from "../helpers/specDownloads.js";
11
- import { useDeprecationWarnings as Te } from "../hooks/useDeprecationWarnings.js";
12
- import Re from "./Sidebar/Sidebar.vue.js";
13
- import Ce from "./Content/Content.vue.js";
14
- import { useSidebar as $e } from "../hooks/useSidebar.js";
15
- import { GLOBAL_SECURITY_SYMBOL as Ee, HIDE_DOWNLOAD_BUTTON_SYMBOL as Oe, HIDE_TEST_REQUEST_BUTTON_SYMBOL as Le, OPENAPI_DOCUMENT_URL_SYMBOL as Be } from "../helpers/provideSymbols.js";
16
- import { useNavState as Ie } from "../hooks/useNavState.js";
17
- import { sleep as Ue } from "../helpers/sleep.js";
18
- const De = ["innerHTML"], Me = { class: "references-header" }, ke = {
19
- key: 0,
20
- class: "references-navigation t-doc__sidebar"
21
- }, Pe = { class: "references-navigation-list" }, Fe = { class: "references-editor" }, Ae = { class: "references-editor-textarea" }, Ne = { class: "references-rendered" }, He = {
1
+ import { defineComponent as ee, ref as R, computed as b, onBeforeMount as P, onMounted as oe, onUnmounted as te, watch as re, onServerPrefetch as ae, useSSRContext as ne, getCurrentInstance as se, provide as y, openBlock as w, createElementBlock as T, Fragment as k, createElementVNode as l, normalizeClass as ie, unref as p, normalizeStyle as le, renderSlot as d, normalizeProps as c, guardReactiveProps as u, createVNode as m, withCtx as S, createCommentVNode as $, 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 { useDeprecationWarnings as $e } from "../hooks/useDeprecationWarnings.js";
12
+ import Ce from "./Sidebar/Sidebar.vue.js";
13
+ import Oe from "./Content/Content.vue.js";
14
+ import { useSidebar as Ee } from "../hooks/useSidebar.js";
15
+ import { GLOBAL_SECURITY_SYMBOL as Le, HIDE_DOWNLOAD_BUTTON_SYMBOL as Ie, HIDE_TEST_REQUEST_BUTTON_SYMBOL as Be, OPENAPI_DOCUMENT_URL_SYMBOL as Ue } from "../helpers/provideSymbols.js";
16
+ import { useNavState as De } from "../hooks/useNavState.js";
17
+ import { sleep as Me } from "../helpers/sleep.js";
18
+ const Pe = ["innerHTML"], ke = { class: "references-header" }, Ae = ["aria-label"], Fe = { class: "references-navigation-list" }, Ne = { class: "references-editor" }, He = { class: "references-editor-textarea" }, Ye = ["aria-label"], ze = {
22
19
  key: 0,
23
20
  class: "references-footer"
24
- }, ro = /* @__PURE__ */ _({
21
+ }, no = /* @__PURE__ */ ee({
25
22
  inheritAttrs: !1,
26
23
  __name: "ApiReferenceLayout",
27
24
  props: {
@@ -30,200 +27,207 @@ const De = ["innerHTML"], Me = { class: "references-header" }, ke = {
30
27
  rawSpec: {}
31
28
  },
32
29
  emits: ["changeTheme", "updateContent", "loadSwaggerFile", "linkSwaggerFile", "toggleDarkMode"],
33
- setup(F) {
34
- const t = F, { initializeToasts: A, toast: N } = ge();
35
- A((e) => N(e));
36
- const H = Se("(min-width: 1150px)"), Y = w("100dvh"), f = w(null);
37
- ve(f, (e) => {
38
- Y.value = e[0].contentRect.height + "px";
30
+ setup(N) {
31
+ const t = N, { initializeToasts: H, toast: Y } = Se();
32
+ H((e) => Y(e));
33
+ const z = he("(min-width: 1150px)"), V = R("100dvh"), f = R(null);
34
+ be(f, (e) => {
35
+ V.value = e[0].contentRect.height + "px";
39
36
  });
40
- const z = v(pe), {
41
- breadcrumb: V,
42
- collapsedSidebarItems: S,
43
- isSidebarOpen: G,
44
- setCollapsedSidebarItem: R,
45
- hideModels: Q,
46
- defaultOpenAllTags: W,
47
- setParsedSpec: j,
48
- scrollToOperation: q
49
- } = $e(), {
50
- getPathRoutingId: C,
51
- getSectionId: K,
52
- getTagId: J,
53
- hash: $,
54
- isIntersectionEnabled: E,
55
- pathRouting: O,
56
- updateHash: L
57
- } = Ie();
58
- O.value = t.configuration.pathRouting, D(() => L());
59
- const B = async (e) => {
37
+ const G = b(ge), {
38
+ breadcrumb: Q,
39
+ collapsedSidebarItems: v,
40
+ isSidebarOpen: W,
41
+ setCollapsedSidebarItem: C,
42
+ hideModels: j,
43
+ defaultOpenAllTags: q,
44
+ setParsedSpec: K,
45
+ scrollToOperation: J
46
+ } = Ee(), {
47
+ getPathRoutingId: O,
48
+ getSectionId: X,
49
+ getTagId: Z,
50
+ hash: E,
51
+ isIntersectionEnabled: L,
52
+ pathRouting: I,
53
+ updateHash: B
54
+ } = De();
55
+ I.value = t.configuration.pathRouting, P(() => B());
56
+ const U = async (e) => {
60
57
  var o;
61
- E.value = !1, L(), e ? q(e) : (o = f.value) == null || o.scrollTo(0, 0), await Ue(100), E.value = !0;
62
- }, I = w(0);
63
- D(() => ue()), x(() => {
58
+ L.value = !1, B(), e ? J(e) : (o = f.value) == null || o.scrollTo(0, 0), await Me(100), L.value = !0;
59
+ }, D = R(0);
60
+ P(() => fe()), oe(() => {
64
61
  var r, a, n;
65
- history.scrollRestoration = "manual", P.on(({ specTitle: s }) => {
66
- we(t.rawSpec, s);
62
+ history.scrollRestoration = "manual", F.on(({ specTitle: i }) => {
63
+ Re(t.rawSpec, i);
67
64
  });
68
65
  const e = (a = (r = f.value) == null ? void 0 : r.parentElement) == null ? void 0 : a.getBoundingClientRect(), o = (n = f.value) == null ? void 0 : n.getBoundingClientRect();
69
66
  if (e && o) {
70
- const s = o.top - e.top;
71
- I.value = s < 2 ? 0 : s;
67
+ const i = o.top - e.top;
68
+ D.value = i < 2 ? 0 : i;
72
69
  }
73
- window.onhashchange = () => B(decodeURIComponent(window.location.hash.replace(/^#/, ""))), window.onpopstate = () => O.value && B(C(window.location.pathname));
70
+ window.onhashchange = () => U(decodeURIComponent(window.location.hash.replace(/^#/, ""))), window.onpopstate = () => I.value && U(O(window.location.pathname));
74
71
  });
75
- const X = v(
76
- () => H.value || !t.configuration.isEditable
77
- ), U = he((e) => {
72
+ const _ = b(
73
+ () => z.value || !t.configuration.isEditable
74
+ ), M = ye((e) => {
78
75
  if ((e.target.scrollTop ?? 0) < 50) {
79
76
  const r = t.configuration.pathRouting ? t.configuration.pathRouting.basePath : window.location.pathname;
80
- window.history.replaceState({}, "", r + window.location.search), $.value = "";
77
+ window.history.replaceState({}, "", r + window.location.search), E.value = "";
81
78
  }
82
- }), i = v(() => ({
83
- breadcrumb: V.value,
79
+ }), s = b(() => ({
80
+ breadcrumb: Q.value,
84
81
  spec: t.parsedSpec
85
82
  }));
86
- ee(() => {
87
- P.reset();
88
- }), oe(() => t.parsedSpec, j, { deep: !0 }), te(() => {
83
+ te(() => {
84
+ F.reset();
85
+ }), re(() => t.parsedSpec, K, { deep: !0 }), ae(() => {
89
86
  var o, r;
90
- const e = re();
91
- if (e && (e.payload || (e.payload = { data: k() }), (o = e.payload).data || (o.data = k()), t.configuration.pathRouting)) {
92
- const a = C(e.url);
93
- $.value = a, e.payload.data.hash = a;
94
- for (const n in S)
95
- Object.hasOwn(S, n) && delete S[n];
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 = O(e.url);
90
+ E.value = a, e.payload.data.hash = a;
91
+ for (const n in v)
92
+ Object.hasOwn(v, n) && delete v[n];
96
93
  if (a)
97
- R(K(a), !0);
94
+ C(X(a), !0);
98
95
  else {
99
96
  const n = (r = t.parsedSpec.tags) == null ? void 0 : r[0];
100
- n && R(J(n), !0);
97
+ n && C(Z(n), !0);
101
98
  }
102
- e.payload.data["useSidebarContent-collapsedSidebarItems"] = S;
99
+ e.payload.data["useSidebarContent-collapsedSidebarItems"] = v;
103
100
  }
104
- }), ce(() => {
101
+ }), pe(() => {
105
102
  var a;
106
- const e = ae(), o = "scalar-instance-id";
103
+ const e = se(), o = "scalar-instance-id";
107
104
  if (!e) return o;
108
105
  let r = e.uid;
109
106
  return typeof window > "u" ? (e.attrs || (e.attrs = {}), e.attrs[o] = r) : (a = e.vnode.el) != null && a.getAttribute && (r = e.vnode.el.getAttribute(o)), `${o}-${r}`;
110
- }), h(Ee, () => t.parsedSpec.security), h(
111
- Oe,
107
+ }), y(Le, () => t.parsedSpec.security), y(
108
+ Ie,
112
109
  () => t.configuration.hideDownloadButton
113
- ), h(
114
- Le,
110
+ ), y(
111
+ Be,
115
112
  () => t.configuration.hideTestRequestButton
116
- ), h(Be, () => {
113
+ ), y(Ue, () => {
117
114
  var e;
118
115
  return (e = t.configuration.spec) == null ? void 0 : e.url;
119
- }), Q.value = t.configuration.hideModels ?? !1, W.value = t.configuration.defaultOpenAllTags ?? !1, Te(t.configuration);
120
- const Z = v(
116
+ }), j.value = t.configuration.hideModels ?? !1, q.value = t.configuration.defaultOpenAllTags ?? !1, $e(t.configuration);
117
+ const x = b(
121
118
  () => `<style>
122
- ${fe(t.configuration.theme, {
119
+ ${me(t.configuration.theme, {
123
120
  fonts: t.configuration.withDefaultFonts
124
121
  })}</style>`
125
122
  );
126
123
  return (e, o) => {
127
- var r, a;
128
- return b(), y(M, null, [
129
- l("div", { innerHTML: Z.value }, null, 8, De),
124
+ var r, a, n, i;
125
+ return w(), T(k, null, [
126
+ l("div", { innerHTML: x.value }, null, 8, Pe),
130
127
  l("div", {
131
128
  ref_key: "documentEl",
132
129
  ref: f,
133
- class: ne(["scalar-app scalar-api-reference references-layout", [
130
+ class: ie(["scalar-app scalar-api-reference references-layout", [
134
131
  {
135
- "scalar-scrollbars-obtrusive": z.value,
132
+ "scalar-scrollbars-obtrusive": G.value,
136
133
  "references-editable": e.configuration.isEditable,
137
134
  "references-sidebar": e.configuration.showSidebar,
138
- "references-sidebar-mobile-open": p(G),
135
+ "references-sidebar-mobile-open": p(W),
139
136
  "references-classic": e.configuration.layout === "classic"
140
137
  },
141
138
  e.$attrs.class
142
139
  ]]),
143
- style: se({
144
- "--scalar-y-offset": `var(--scalar-custom-header-height, ${I.value}px)`
140
+ style: le({
141
+ "--scalar-y-offset": `var(--scalar-custom-header-height, ${D.value}px)`
145
142
  }),
146
143
  onScrollPassive: o[4] || (o[4] = //@ts-ignore
147
- (...n) => p(U) && p(U)(...n))
144
+ (...h) => p(M) && p(M)(...h))
148
145
  }, [
149
- l("div", Me, [
150
- d(e.$slots, "header", c(u(i.value)), void 0, !0)
146
+ l("div", ke, [
147
+ d(e.$slots, "header", c(u(s.value)), void 0, !0)
151
148
  ]),
152
- e.configuration.showSidebar ? (b(), y("aside", ke, [
153
- l("div", Pe, [
154
- g(p(Re), {
149
+ e.configuration.showSidebar ? (w(), T("nav", {
150
+ key: 0,
151
+ "aria-label": `Contents of ${(r = e.parsedSpec.info) == null ? void 0 : r.title}`,
152
+ class: "references-navigation t-doc__sidebar"
153
+ }, [
154
+ l("div", Fe, [
155
+ m(p(Ce), {
155
156
  operationsSorter: e.configuration.operationsSorter,
156
157
  parsedSpec: e.parsedSpec,
157
158
  tagsSorter: e.configuration.tagsSorter
158
159
  }, {
159
- "sidebar-start": m(() => [
160
- d(e.$slots, "sidebar-start", c(u(i.value)), void 0, !0)
160
+ "sidebar-start": S(() => [
161
+ d(e.$slots, "sidebar-start", c(u(s.value)), void 0, !0)
161
162
  ]),
162
- "sidebar-end": m(() => [
163
- d(e.$slots, "sidebar-end", c(u(i.value)), void 0, !0)
163
+ "sidebar-end": S(() => [
164
+ d(e.$slots, "sidebar-end", c(u(s.value)), void 0, !0)
164
165
  ]),
165
166
  _: 3
166
167
  }, 8, ["operationsSorter", "parsedSpec", "tagsSorter"])
167
168
  ])
168
- ])) : T("", !0),
169
- ie(l("div", Fe, [
170
- l("div", Ae, [
171
- d(e.$slots, "editor", c(u(i.value)), void 0, !0)
169
+ ], 8, Ae)) : $("", !0),
170
+ de(l("div", Ne, [
171
+ l("div", He, [
172
+ d(e.$slots, "editor", c(u(s.value)), void 0, !0)
172
173
  ])
173
174
  ], 512), [
174
- [le, e.configuration.isEditable]
175
+ [ce, e.configuration.isEditable]
175
176
  ]),
176
- X.value ? (b(), y(M, { key: 1 }, [
177
- l("div", Ne, [
178
- g(p(Ce), {
177
+ _.value ? (w(), T(k, { key: 1 }, [
178
+ l("section", {
179
+ "aria-label": `Open API Documentation for ${(a = e.parsedSpec.info) == null ? void 0 : a.title}`,
180
+ class: "references-rendered"
181
+ }, [
182
+ m(p(Oe), {
179
183
  baseServerURL: e.configuration.baseServerURL,
180
184
  layout: e.configuration.layout === "classic" ? "accordion" : "default",
181
185
  parsedSpec: e.parsedSpec,
182
186
  proxy: e.configuration.proxy,
183
187
  servers: e.configuration.servers
184
- }, de({
185
- start: m(() => [
186
- d(e.$slots, "content-start", c(u(i.value)), void 0, !0)
188
+ }, ue({
189
+ start: S(() => [
190
+ d(e.$slots, "content-start", c(u(s.value)), void 0, !0)
187
191
  ]),
188
- end: m(() => [
189
- d(e.$slots, "content-end", c(u(i.value)), void 0, !0)
192
+ end: S(() => [
193
+ d(e.$slots, "content-end", c(u(s.value)), void 0, !0)
190
194
  ]),
191
195
  _: 2
192
196
  }, [
193
- (r = e.configuration) != null && r.isEditable ? {
197
+ (n = e.configuration) != null && n.isEditable ? {
194
198
  name: "empty-state",
195
- fn: m(() => {
196
- var n;
199
+ fn: S(() => {
200
+ var h;
197
201
  return [
198
- g(ye, {
199
- theme: ((n = e.configuration) == null ? void 0 : n.theme) || "default",
200
- onChangeTheme: o[0] || (o[0] = (s) => e.$emit("changeTheme", s)),
201
- onLinkSwaggerFile: o[1] || (o[1] = (s) => e.$emit("linkSwaggerFile")),
202
- onLoadSwaggerFile: o[2] || (o[2] = (s) => e.$emit("loadSwaggerFile")),
203
- onUpdateContent: o[3] || (o[3] = (s) => e.$emit("updateContent", s))
202
+ m(Te, {
203
+ theme: ((h = e.configuration) == null ? void 0 : h.theme) || "default",
204
+ onChangeTheme: o[0] || (o[0] = (g) => e.$emit("changeTheme", g)),
205
+ onLinkSwaggerFile: o[1] || (o[1] = (g) => e.$emit("linkSwaggerFile")),
206
+ onLoadSwaggerFile: o[2] || (o[2] = (g) => e.$emit("loadSwaggerFile")),
207
+ onUpdateContent: o[3] || (o[3] = (g) => e.$emit("updateContent", g))
204
208
  }, null, 8, ["theme"])
205
209
  ];
206
210
  }),
207
211
  key: "0"
208
212
  } : void 0
209
213
  ]), 1032, ["baseServerURL", "layout", "parsedSpec", "proxy", "servers"])
210
- ]),
211
- e.$slots.footer ? (b(), y("div", He, [
212
- d(e.$slots, "footer", c(u(i.value)), void 0, !0)
213
- ])) : T("", !0)
214
- ], 64)) : T("", !0),
215
- g(be, {
216
- preferredSecurityScheme: (a = e.configuration.authentication) == null ? void 0 : a.preferredSecurityScheme,
214
+ ], 8, Ye),
215
+ e.$slots.footer ? (w(), T("div", ze, [
216
+ d(e.$slots, "footer", c(u(s.value)), void 0, !0)
217
+ ])) : $("", !0)
218
+ ], 64)) : $("", !0),
219
+ m(we, {
220
+ preferredSecurityScheme: (i = e.configuration.authentication) == null ? void 0 : i.preferredSecurityScheme,
217
221
  proxyUrl: e.configuration.proxy,
218
222
  servers: e.configuration.servers,
219
223
  spec: e.configuration.spec
220
224
  }, null, 8, ["preferredSecurityScheme", "proxyUrl", "servers", "spec"])
221
225
  ], 38),
222
- g(p(me))
226
+ m(p(ve))
223
227
  ], 64);
224
228
  };
225
229
  }
226
230
  });
227
231
  export {
228
- ro as default
232
+ no as default
229
233
  };
@@ -1 +1 @@
1
- {"version":3,"file":"Authentication.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/Content/Authentication/Authentication.vue"],"names":[],"mappings":"AAoFA,OAAO,KAAK,EAAY,IAAI,EAAE,MAAM,sBAAsB,CAAA;;iBASrB,IAAI;YAAU,MAAM;;iBAApB,IAAI;YAAU,MAAM;;AA+HzD,wBAMG;AAOH,KAAK,sBAAsB,CAAC,CAAC,IAAI,CAAC,SAAS,SAAS,GAAG,KAAK,GAAG,CAAC,CAAC;AAC5D,KAAK,uBAAuB,CAAC,CAAC,IAAI;KAChC,CAAC,IAAI,MAAM,CAAC,CAAC,CAAC,GAAG,EAAE,SAAS,IAAI,CAAC,CAAC,EAAE,CAAC,CAAC,GACpC;QAAE,IAAI,EAAE,OAAO,KAAK,EAAE,QAAQ,CAAC,sBAAsB,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAA;KAAE,GAC9D;QAAE,IAAI,EAAE,OAAO,KAAK,EAAE,QAAQ,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;QAAC,QAAQ,EAAE,IAAI,CAAA;KAAE;CACzD,CAAC"}
1
+ {"version":3,"file":"Authentication.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/Content/Authentication/Authentication.vue"],"names":[],"mappings":"AAgFA,OAAO,KAAK,EAAY,IAAI,EAAE,MAAM,sBAAsB,CAAA;;iBASrB,IAAI;YAAU,MAAM;;iBAApB,IAAI;YAAU,MAAM;;AAyHzD,wBAMG;AAOH,KAAK,sBAAsB,CAAC,CAAC,IAAI,CAAC,SAAS,SAAS,GAAG,KAAK,GAAG,CAAC,CAAC;AAC5D,KAAK,uBAAuB,CAAC,CAAC,IAAI;KAChC,CAAC,IAAI,MAAM,CAAC,CAAC,CAAC,GAAG,EAAE,SAAS,IAAI,CAAC,CAAC,EAAE,CAAC,CAAC,GACpC;QAAE,IAAI,EAAE,OAAO,KAAK,EAAE,QAAQ,CAAC,sBAAsB,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAA;KAAE,GAC9D;QAAE,IAAI,EAAE,OAAO,KAAK,EAAE,QAAQ,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;QAAC,QAAQ,EAAE,IAAI,CAAA;KAAE;CACzD,CAAC"}
@@ -1,7 +1,7 @@
1
1
  import t from "./Authentication.vue2.js";
2
2
  /* empty css */
3
3
  import o from "../../../_virtual/_plugin-vue_export-helper.js";
4
- const c = /* @__PURE__ */ o(t, [["__scopeId", "data-v-25fd5cfd"]]);
4
+ const m = /* @__PURE__ */ o(t, [["__scopeId", "data-v-244454d9"]]);
5
5
  export {
6
- c as default
6
+ m as default
7
7
  };
@@ -1 +1 @@
1
- {"version":3,"file":"ClientSelector.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/Content/ClientLibraries/ClientSelector.vue"],"names":[],"mappings":";AA6gBA,wBAKG"}
1
+ {"version":3,"file":"ClientSelector.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/Content/ClientLibraries/ClientSelector.vue"],"names":[],"mappings":";AA8iBA,wBAKG"}
@@ -1,7 +1,7 @@
1
1
  import o from "./ClientSelector.vue2.js";
2
2
  /* empty css */
3
3
  import t from "../../../_virtual/_plugin-vue_export-helper.js";
4
- const m = /* @__PURE__ */ t(o, [["__scopeId", "data-v-4951736c"]]);
4
+ const p = /* @__PURE__ */ t(o, [["__scopeId", "data-v-10825810"]]);
5
5
  export {
6
- m as default
6
+ p as default
7
7
  };
@@ -1,30 +1,37 @@
1
- import { defineComponent as I, ref as w, openBlock as n, createElementBlock as l, Fragment as _, renderList as d, unref as t, normalizeClass as a, createElementVNode as c, createVNode as k, toDisplayString as f, createCommentVNode as N, pushScopeId as x, popScopeId as z } from "vue";
2
- import { ScalarIcon as v } from "@scalar/components";
1
+ import { defineComponent as w, ref as N, openBlock as n, createElementBlock as l, Fragment as d, renderList as _, unref as t, normalizeClass as y, createElementVNode as s, createVNode as k, toDisplayString as f, createCommentVNode as x, pushScopeId as $, popScopeId as z } from "vue";
2
+ import { ScalarIcon as m } from "@scalar/components";
3
3
  import { useHttpClientStore as B } from "../../../stores/useHttpClientStore.js";
4
- const M = (o) => (x("data-v-4951736c"), o = o(), z(), o), T = ["onClick"], J = ["value"], O = ["label"], V = ["value"], $ = { class: "client-libraries-icon__more" }, E = {
4
+ const v = (o) => ($("data-v-10825810"), o = o(), z(), o), M = ["onClick"], T = /* @__PURE__ */ v(() => /* @__PURE__ */ s("span", { class: "sr-only" }, "Select Client Library", -1)), J = ["value"], L = ["label"], O = ["aria-label", "value"], V = {
5
+ "aria-hidden": "true",
6
+ class: "client-libraries-icon__more"
7
+ }, E = {
5
8
  key: 1,
6
9
  class: "client-libraries-icon",
7
10
  height: "50",
11
+ role: "presentation",
8
12
  viewBox: "0 0 50 50",
9
13
  width: "50",
10
14
  xmlns: "http://www.w3.org/2000/svg"
11
- }, F = /* @__PURE__ */ M(() => /* @__PURE__ */ c("g", {
15
+ }, F = /* @__PURE__ */ v(() => /* @__PURE__ */ s("g", {
12
16
  fill: "currentColor",
13
17
  "fill-rule": "nonzero"
14
18
  }, [
15
- /* @__PURE__ */ c("path", { d: "M10.71 25.3a3.87 3.87 0 1 0 7.74 0 3.87 3.87 0 0 0-7.74 0M21.13 25.3a3.87 3.87 0 1 0 7.74 0 3.87 3.87 0 0 0-7.74 0M31.55 25.3a3.87 3.87 0 1 0 7.74 0 3.87 3.87 0 0 0-7.74 0" })
19
+ /* @__PURE__ */ s("path", { d: "M10.71 25.3a3.87 3.87 0 1 0 7.74 0 3.87 3.87 0 0 0-7.74 0M21.13 25.3a3.87 3.87 0 1 0 7.74 0 3.87 3.87 0 0 0-7.74 0M31.55 25.3a3.87 3.87 0 1 0 7.74 0 3.87 3.87 0 0 0-7.74 0" })
16
20
  ], -1)), H = [
17
21
  F
18
- ], L = { key: 0 }, q = /* @__PURE__ */ I({
22
+ ], R = {
23
+ key: 0,
24
+ "aria-hidden": "true"
25
+ }, A = /* @__PURE__ */ w({
19
26
  __name: "ClientSelector",
20
27
  setup(o) {
21
28
  const {
22
29
  httpClient: r,
23
- setHttpClient: g,
24
- availableTargets: y,
25
- getClientTitle: m,
26
- getTargetTitle: b
27
- } = B(), C = w(), p = [
30
+ setHttpClient: p,
31
+ availableTargets: u,
32
+ getClientTitle: g,
33
+ getTargetTitle: C
34
+ } = B(), S = N(), K = [
28
35
  {
29
36
  targetKey: "shell",
30
37
  clientKey: "curl"
@@ -46,74 +53,82 @@ const M = (o) => (x("data-v-4951736c"), o = o(), z(), o), T = ["onClick"], J = [
46
53
  clientKey: "python3"
47
54
  }
48
55
  ].filter(
49
- (i) => y.value.find((s) => s.key === i.targetKey && s.clients.find((e) => e.key === i.clientKey))
50
- ), K = (i) => `programming-language-${i}`, S = (i) => i.targetKey === r.targetKey && i.clientKey === r.clientKey, h = (i) => p.some(
51
- (s) => s.targetKey === i.targetKey && s.clientKey === i.clientKey
56
+ (i) => u.value.find((a) => a.key === i.targetKey && a.clients.find((e) => e.key === i.clientKey))
57
+ ), h = (i) => `programming-language-${i}`, I = (i) => i.targetKey === r.targetKey && i.clientKey === r.clientKey, b = (i) => K.some(
58
+ (a) => a.targetKey === i.targetKey && a.clientKey === i.clientKey
52
59
  );
53
- return (i, s) => (n(), l("div", {
60
+ return (i, a) => (n(), l("div", {
54
61
  ref_key: "containerRef",
55
- ref: C,
62
+ ref: S,
56
63
  class: "client-libraries-content"
57
64
  }, [
58
- (n(!0), l(_, null, d(t(p), (e) => (n(), l("div", {
65
+ (n(!0), l(d, null, _(t(K), (e) => (n(), l("button", {
59
66
  key: e.clientKey,
60
- class: a(["client-libraries rendered-code-sdks", {
61
- "client-libraries__active": S(e)
67
+ "aria-hidden": "true",
68
+ class: y(["client-libraries rendered-code-sdks", {
69
+ "client-libraries__active": I(e)
62
70
  }]),
63
- onClick: () => t(g)(e)
71
+ tabindex: "-1",
72
+ type: "button",
73
+ onClick: () => t(p)(e)
64
74
  }, [
65
- c("div", {
66
- class: a(`client-libraries-icon__${e.targetKey}`)
75
+ s("div", {
76
+ class: y(`client-libraries-icon__${e.targetKey}`)
67
77
  }, [
68
- k(t(v), {
78
+ k(t(m), {
69
79
  class: "client-libraries-icon",
70
- icon: K(e.targetKey)
80
+ icon: h(e.targetKey)
71
81
  }, null, 8, ["icon"])
72
82
  ], 2),
73
- c("span", null, f(t(b)(e)), 1)
74
- ], 10, T))), 128)),
75
- c("div", {
76
- class: a(["client-libraries client-libraries__select", {
77
- "client-libraries__active": t(r) && !h(t(r))
83
+ s("span", null, f(t(C)(e)), 1)
84
+ ], 10, M))), 128)),
85
+ s("label", {
86
+ class: y(["client-libraries client-libraries__select", {
87
+ "client-libraries__active": t(r) && !b(t(r))
78
88
  }])
79
89
  }, [
80
- c("select", {
90
+ T,
91
+ s("select", {
81
92
  class: "language-select",
82
93
  value: JSON.stringify(t(r)),
83
- onInput: s[0] || (s[0] = (e) => t(g)(JSON.parse(e.target.value)))
94
+ onInput: a[0] || (a[0] = (e) => t(p)(JSON.parse(e.target.value)))
84
95
  }, [
85
- (n(!0), l(_, null, d(t(y), (e) => (n(), l("optgroup", {
96
+ (n(!0), l(d, null, _(t(u), (e) => (n(), l("optgroup", {
86
97
  key: e.key,
87
98
  label: e.title
88
99
  }, [
89
- (n(!0), l(_, null, d(e.clients, (u) => (n(), l("option", {
90
- key: u.key,
100
+ (n(!0), l(d, null, _(e.clients, (c) => (n(), l("option", {
101
+ key: c.key,
102
+ "aria-label": `${e.title} ${t(g)({
103
+ targetKey: e.key,
104
+ clientKey: c.key
105
+ })}`,
91
106
  value: JSON.stringify({
92
107
  targetKey: e.key,
93
- clientKey: u.key
108
+ clientKey: c.key
94
109
  })
95
- }, f(t(m)({
110
+ }, f(t(g)({
96
111
  targetKey: e.key,
97
- clientKey: u.key
98
- })), 9, V))), 128))
99
- ], 8, O))), 128))
112
+ clientKey: c.key
113
+ })), 9, O))), 128))
114
+ ], 8, L))), 128))
100
115
  ], 40, J),
101
- c("div", $, [
102
- t(r) && !h(t(r)) ? (n(), l("div", {
116
+ s("div", V, [
117
+ t(r) && !b(t(r)) ? (n(), l("div", {
103
118
  key: 0,
104
- class: a(`client-libraries-icon__${t(r).targetKey}`)
119
+ class: y(`client-libraries-icon__${t(r).targetKey}`)
105
120
  }, [
106
- k(t(v), {
121
+ k(t(m), {
107
122
  class: "client-libraries-icon",
108
- icon: K(t(r).targetKey)
123
+ icon: h(t(r).targetKey)
109
124
  }, null, 8, ["icon"])
110
125
  ], 2)) : (n(), l("svg", E, H))
111
126
  ]),
112
- t(y).length ? (n(), l("span", L, "More")) : N("", !0)
127
+ t(u).length ? (n(), l("span", R, " More ")) : x("", !0)
113
128
  ], 2)
114
129
  ], 512));
115
130
  }
116
131
  });
117
132
  export {
118
- q as default
133
+ A as default
119
134
  };
@@ -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 a = /* @__PURE__ */ t(o, [["__scopeId", "data-v-00242079"]]);
5
+ const a = /* @__PURE__ */ t(o, [["__scopeId", "data-v-2ffda479"]]);
6
6
  export {
7
7
  a as default
8
8
  };