@scalar/api-reference 1.24.15 → 1.24.17

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.
@@ -0,0 +1,26 @@
1
+ import { defineComponent as l, ref as p, onMounted as c, openBlock as s, createElementBlock as i } from "vue";
2
+ import { modalStateBus as m, apiClientBus as u } from "./api-client-bus.js";
3
+ const _ = /* @__PURE__ */ l({
4
+ __name: "ApiClientModal",
5
+ props: {
6
+ proxyUrl: {},
7
+ spec: {}
8
+ },
9
+ setup(n) {
10
+ const t = n, e = p(null);
11
+ return c(async () => {
12
+ if (!e.value) return;
13
+ const { createScalarApiClient: o } = await import("@scalar/api-client-modal"), { open: r, modalState: a } = await o(e.value, {
14
+ spec: t.spec ?? {},
15
+ proxyUrl: t.proxyUrl
16
+ });
17
+ m.emit(a), u.on(r);
18
+ }), (o, r) => (s(), i("div", {
19
+ ref_key: "el",
20
+ ref: e
21
+ }, null, 512));
22
+ }
23
+ });
24
+ export {
25
+ _ as default
26
+ };
@@ -0,0 +1,4 @@
1
+ import f from "./ApiClientModal.vue.js";
2
+ export {
3
+ f as default
4
+ };
@@ -1 +1 @@
1
- {"version":3,"file":"ApiReferenceLayout.vue.d.ts","sourceRoot":"","sources":["../../src/components/ApiReferenceLayout.vue"],"names":[],"mappings":"AAwjBA,OAAO,8BAA8B,CAAA;AAGrC,OAAO,EAAE,KAAK,OAAO,EAAkB,MAAM,gBAAgB,CAAA;AA0B7D,OAAO,KAAK,EACV,oBAAoB,EAEpB,kBAAkB,EACnB,MAAM,UAAU,CAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AA8iBjB,wBAAwG;AAOxG,KAAK,uBAAuB,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG;IACpC,QAAO;QACN,MAAM,EAAE,CAAC,CAAC;KAEV,CAAA;CACD,CAAC;AAEN,KAAK,sBAAsB,CAAC,CAAC,IAAI,CAAC,SAAS,SAAS,GAAG,KAA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KAAK,EAAE,QAAQ,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;QAAC,QAAQ,EAAE,IAAI,CAAA;KAAE;CACzD,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-c4323729"]]);
5
+ const a = /* @__PURE__ */ t(o, [["__scopeId", "data-v-d541778c"]]);
6
6
  export {
7
7
  a as default
8
8
  };
@@ -1,29 +1,30 @@
1
- import { defineComponent as G, defineAsyncComponent as j, ref as E, onBeforeMount as O, onMounted as K, computed as k, watch as Q, onServerPrefetch as q, useSSRContext as J, getCurrentInstance as X, provide as A, openBlock as v, createElementBlock as S, Fragment as F, createVNode as p, unref as i, withCtx as c, createTextVNode as Z, toDisplayString as _, createElementVNode as f, normalizeClass as x, normalizeStyle as ee, renderSlot as d, normalizeProps as l, guardReactiveProps as u, createCommentVNode as b, withDirectives as oe, vShow as te, createSlots as re } from "vue";
2
- import { provideUseId as ae } from "@headlessui/vue";
1
+ import { defineComponent as q, defineAsyncComponent as J, ref as b, onMounted as D, onBeforeMount as O, computed as A, watch as X, onServerPrefetch as Z, useSSRContext as _, getCurrentInstance as x, provide as B, openBlock as f, createElementBlock as h, Fragment as P, createVNode as v, unref as s, withCtx as p, createTextVNode as ee, toDisplayString as oe, createElementVNode as m, normalizeClass as te, normalizeStyle as re, renderSlot as d, normalizeProps as l, guardReactiveProps as c, createCommentVNode as y, withDirectives as ae, vShow as ne, createSlots as se, createBlock as U } from "vue";
2
+ import { provideUseId as ie } from "@headlessui/vue";
3
3
  import "@scalar/components/style.css";
4
- import { defaultStateFactory as ne } from "@scalar/oas-utils/helpers";
5
- import { getThemeStyles as se } from "@scalar/themes";
6
- import { ScalarToasts as ie } from "@scalar/use-toasts";
7
- import { useMediaQuery as de, useResizeObserver as le, useDebounceFn as ue } from "@vueuse/core";
8
- import { NEW_API_MODAL as ce } from "../features.js";
9
- import pe from "./GettingStarted.vue.js";
10
- import { downloadSpecBus as fe, downloadSpecFile as me } from "../helpers/specDownloads.js";
11
- import { useDeprecationWarnings as ge } from "../hooks/useDeprecationWarnings.js";
12
- import ve from "./Util/Style.vue.js";
13
- import Se from "./Sidebar/Sidebar.vue.js";
14
- import he from "./Content/Content.vue.js";
15
- import { useSidebar as be } from "../hooks/useSidebar.js";
16
- import { GLOBAL_SECURITY_SYMBOL as we, HIDE_DOWNLOAD_BUTTON_SYMBOL as ye } from "../helpers/provideSymbols.js";
17
- import { useNavState as Re } from "../hooks/useNavState.js";
18
- import { scrollToId as $e } from "../helpers/scrollToId.js";
19
- import { sleep as Ce } from "../helpers/sleep.js";
20
- const Te = { class: "references-header" }, Ie = {
4
+ import { defaultStateFactory as de } from "@scalar/oas-utils/helpers";
5
+ import { getThemeStyles as le } from "@scalar/themes";
6
+ import { ScalarToasts as ce } from "@scalar/use-toasts";
7
+ import { useMediaQuery as ue, useResizeObserver as pe, useDebounceFn as fe } from "@vueuse/core";
8
+ import { NEW_API_MODAL as F } from "../features.js";
9
+ import me from "./ApiClientModal.vue.js";
10
+ import ge from "./GettingStarted.vue.js";
11
+ import { downloadSpecBus as ve, downloadSpecFile as Se } from "../helpers/specDownloads.js";
12
+ import { useDeprecationWarnings as he } from "../hooks/useDeprecationWarnings.js";
13
+ import be from "./Util/Style.vue.js";
14
+ import ye from "./Sidebar/Sidebar.vue.js";
15
+ import we from "./Content/Content.vue.js";
16
+ import { useSidebar as Re } from "../hooks/useSidebar.js";
17
+ import { GLOBAL_SECURITY_SYMBOL as $e, HIDE_DOWNLOAD_BUTTON_SYMBOL as Ce } from "../helpers/provideSymbols.js";
18
+ import { useNavState as Te } from "../hooks/useNavState.js";
19
+ import { scrollToId as Le } from "../helpers/scrollToId.js";
20
+ import { sleep as ke } from "../helpers/sleep.js";
21
+ const Ie = { class: "references-header" }, Ee = {
21
22
  key: 0,
22
23
  class: "references-navigation t-doc__sidebar"
23
- }, Le = { class: "references-navigation-list" }, De = { class: "references-editor" }, Ee = { class: "references-editor-textarea" }, Oe = { class: "references-rendered" }, ke = {
24
+ }, De = { class: "references-navigation-list" }, Oe = { class: "references-editor" }, Ae = { class: "references-editor-textarea" }, Be = { class: "references-rendered" }, Pe = {
24
25
  key: 0,
25
26
  class: "references-footer"
26
- }, Ze = /* @__PURE__ */ G({
27
+ }, oo = /* @__PURE__ */ q({
27
28
  inheritAttrs: !1,
28
29
  __name: "ApiReferenceLayout",
29
30
  props: {
@@ -33,7 +34,7 @@ const Te = { class: "references-header" }, Ie = {
33
34
  },
34
35
  emits: ["changeTheme", "updateContent", "loadSwaggerFile", "linkSwaggerFile", "toggleDarkMode"],
35
36
  setup(M) {
36
- const r = M, P = j(() => ce ? (
37
+ const n = M, N = J(() => F ? (
37
38
  // Empty component
38
39
  new Promise((e) => {
39
40
  e({ render: () => null });
@@ -41,161 +42,173 @@ const Te = { class: "references-header" }, Ie = {
41
42
  ) : (
42
43
  // Load component
43
44
  import("./ApiClientModalOld.vue.js")
44
- )), N = de("(min-width: 1150px)"), w = E("100dvh"), h = E(null);
45
- le(h, (e) => {
46
- w.value = e[0].contentRect.height + "px";
45
+ )), z = ue("(min-width: 1150px)"), V = b("100dvh"), g = b(null);
46
+ pe(g, (e) => {
47
+ V.value = e[0].contentRect.height + "px";
48
+ });
49
+ const w = b(0);
50
+ D(() => {
51
+ var r, t, a;
52
+ const e = (t = (r = g.value) == null ? void 0 : r.parentElement) == null ? void 0 : t.getBoundingClientRect(), o = (a = g.value) == null ? void 0 : a.getBoundingClientRect();
53
+ if (e && o) {
54
+ const u = o.top - e.top;
55
+ w.value = u < 2 ? 0 : u;
56
+ }
47
57
  });
48
58
  const {
49
- breadcrumb: U,
50
- collapsedSidebarItems: g,
51
- isSidebarOpen: B,
52
- setCollapsedSidebarItem: y,
53
- hideModels: z,
54
- setParsedSpec: V
55
- } = be(), {
56
- getPathRoutingId: R,
57
- getSectionId: Y,
58
- getTagId: H,
59
- hash: $,
60
- isIntersectionEnabled: C,
61
- pathRouting: T,
62
- updateHash: I
63
- } = Re();
64
- T.value = r.configuration.pathRouting, O(() => I());
65
- const L = async (e) => {
59
+ breadcrumb: Y,
60
+ collapsedSidebarItems: S,
61
+ isSidebarOpen: H,
62
+ setCollapsedSidebarItem: R,
63
+ hideModels: W,
64
+ setParsedSpec: G
65
+ } = Re(), {
66
+ getPathRoutingId: $,
67
+ getSectionId: j,
68
+ getTagId: K,
69
+ hash: C,
70
+ isIntersectionEnabled: T,
71
+ pathRouting: L,
72
+ updateHash: k
73
+ } = Te();
74
+ L.value = n.configuration.pathRouting, O(() => k());
75
+ const I = async (e) => {
66
76
  var o;
67
- C.value = !1, I(), e ? $e(e) : (o = h.value) == null || o.scrollTo(0, 0), await Ce(100), C.value = !0;
77
+ T.value = !1, k(), e ? Le(e) : (o = g.value) == null || o.scrollTo(0, 0), await ke(100), T.value = !0;
68
78
  };
69
79
  O(() => {
70
80
  const e = new MutationObserver((o) => {
71
- const t = o.find(
72
- (a) => Array.from(a.addedNodes).find(
73
- (n) => n.id === "headlessui-portal-root"
81
+ const r = o.find(
82
+ (t) => Array.from(t.addedNodes).find(
83
+ (a) => a.id === "headlessui-portal-root"
74
84
  )
75
85
  );
76
- t && (t.addedNodes[0].classList.add(
77
- "scalar-app"
78
- ), e.disconnect());
86
+ if (r) {
87
+ const t = r.addedNodes[0];
88
+ t.classList.add("scalar-app"), t.classList.add("scalar-client"), e.disconnect();
89
+ }
79
90
  });
80
91
  e.observe(document.body, { childList: !0 });
81
- }), K(() => {
82
- fe.on(({ specTitle: e }) => {
83
- me(r.rawSpec, e);
84
- }), window.onhashchange = () => L(decodeURIComponent(window.location.hash.replace(/^#/, ""))), window.onpopstate = () => T.value && L(R(window.location.pathname));
92
+ }), D(() => {
93
+ ve.on(({ specTitle: e }) => {
94
+ Se(n.rawSpec, e);
95
+ }), window.onhashchange = () => I(decodeURIComponent(window.location.hash.replace(/^#/, ""))), window.onpopstate = () => L.value && I($(window.location.pathname));
85
96
  });
86
- const W = k(
87
- () => N.value || !r.configuration.isEditable
88
- ), D = ue((e) => {
97
+ const Q = A(
98
+ () => z.value || !n.configuration.isEditable
99
+ ), E = fe((e) => {
89
100
  if ((e.target.scrollTop ?? 0) < 50) {
90
- const t = r.configuration.pathRouting ? r.configuration.pathRouting.basePath : window.location.pathname;
91
- window.history.replaceState({}, "", t + window.location.search), $.value = "";
101
+ const r = n.configuration.pathRouting ? n.configuration.pathRouting.basePath : window.location.pathname;
102
+ window.history.replaceState({}, "", r + window.location.search), C.value = "";
92
103
  }
93
- }), s = k(() => ({
94
- breadcrumb: U.value,
95
- spec: r.parsedSpec
104
+ }), i = A(() => ({
105
+ breadcrumb: Y.value,
106
+ spec: n.parsedSpec
96
107
  }));
97
- return Q(() => r.parsedSpec, V, { deep: !0 }), q(() => {
98
- var o, t;
99
- const e = J();
100
- if (e && ((o = e.payload).data || (o.data = ne()), r.configuration.pathRouting)) {
101
- const a = R(e.url);
102
- $.value = a, e.payload.data.hash = a;
103
- for (const n in g)
104
- Object.hasOwn(g, n) && delete g[n];
105
- if (a)
106
- y(Y(a), !0);
108
+ return X(() => n.parsedSpec, G, { deep: !0 }), Z(() => {
109
+ var o, r;
110
+ const e = _();
111
+ if (e && ((o = e.payload).data || (o.data = de()), n.configuration.pathRouting)) {
112
+ const t = $(e.url);
113
+ C.value = t, e.payload.data.hash = t;
114
+ for (const a in S)
115
+ Object.hasOwn(S, a) && delete S[a];
116
+ if (t)
117
+ R(j(t), !0);
107
118
  else {
108
- const n = (t = r.parsedSpec.tags) == null ? void 0 : t[0];
109
- n && y(H(n), !0);
119
+ const a = (r = n.parsedSpec.tags) == null ? void 0 : r[0];
120
+ a && R(K(a), !0);
110
121
  }
111
- e.payload.data["useSidebarContent-collapsedSidebarItems"] = g;
122
+ e.payload.data["useSidebarContent-collapsedSidebarItems"] = S;
112
123
  }
113
- }), ae(() => {
114
- var a;
115
- const e = X(), o = "scalar-instance-id";
124
+ }), ie(() => {
125
+ var t;
126
+ const e = x(), o = "scalar-instance-id";
116
127
  if (!e) return o;
117
- let t = e.uid;
118
- return typeof window > "u" ? (e.attrs || (e.attrs = {}), e.attrs[o] = t) : (a = e.vnode.el) != null && a.getAttribute && (t = e.vnode.el.getAttribute(o)), `${o}-${t}`;
119
- }), A(we, () => r.parsedSpec.security), A(
120
- ye,
121
- () => r.configuration.hideDownloadButton
122
- ), z.value = r.configuration.hideModels ?? !1, ge(r.configuration), (e, o) => {
123
- var t, a;
124
- return v(), S(F, null, [
125
- p(i(ve), null, {
126
- default: c(() => [
127
- Z(_(i(se)(e.configuration.theme, {
128
+ let r = e.uid;
129
+ return typeof window > "u" ? (e.attrs || (e.attrs = {}), e.attrs[o] = r) : (t = e.vnode.el) != null && t.getAttribute && (r = e.vnode.el.getAttribute(o)), `${o}-${r}`;
130
+ }), B($e, () => n.parsedSpec.security), B(
131
+ Ce,
132
+ () => n.configuration.hideDownloadButton
133
+ ), W.value = n.configuration.hideModels ?? !1, he(n.configuration), (e, o) => {
134
+ var r, t;
135
+ return f(), h(P, null, [
136
+ v(s(be), null, {
137
+ default: p(() => [
138
+ ee(oe(s(le)(e.configuration.theme, {
128
139
  fonts: e.configuration.withDefaultFonts
129
140
  })), 1)
130
141
  ]),
131
142
  _: 1
132
143
  }),
133
- f("div", {
144
+ m("div", {
134
145
  ref_key: "documentEl",
135
- ref: h,
136
- class: x(["scalar-app scalar-api-reference references-layout", [
146
+ ref: g,
147
+ class: te(["scalar-app scalar-api-reference references-layout", [
137
148
  {
138
149
  "references-editable": e.configuration.isEditable,
139
150
  "references-sidebar": e.configuration.showSidebar,
140
- "references-sidebar-mobile-open": i(B),
151
+ "references-sidebar-mobile-open": s(H),
141
152
  "references-classic": e.configuration.layout === "classic"
142
153
  },
143
154
  e.$attrs.class
144
155
  ]]),
145
- style: ee({ "--full-height": w.value }),
156
+ style: re({
157
+ "--scalar-y-offset": `var(--scalar-custom-header-height, ${w.value}px)`
158
+ }),
146
159
  onScrollPassive: o[4] || (o[4] = //@ts-ignore
147
- (...n) => i(D) && i(D)(...n))
160
+ (...a) => s(E) && s(E)(...a))
148
161
  }, [
149
- f("div", Te, [
150
- d(e.$slots, "header", l(u(s.value)), void 0, !0)
162
+ m("div", Ie, [
163
+ d(e.$slots, "header", l(c(i.value)), void 0, !0)
151
164
  ]),
152
- e.configuration.showSidebar ? (v(), S("aside", Ie, [
153
- f("div", Le, [
154
- p(i(Se), { parsedSpec: e.parsedSpec }, {
155
- "sidebar-start": c(() => [
156
- d(e.$slots, "sidebar-start", l(u(s.value)), void 0, !0)
165
+ e.configuration.showSidebar ? (f(), h("aside", Ee, [
166
+ m("div", De, [
167
+ v(s(ye), { parsedSpec: e.parsedSpec }, {
168
+ "sidebar-start": p(() => [
169
+ d(e.$slots, "sidebar-start", l(c(i.value)), void 0, !0)
157
170
  ]),
158
- "sidebar-end": c(() => [
159
- d(e.$slots, "sidebar-end", l(u(s.value)), void 0, !0)
171
+ "sidebar-end": p(() => [
172
+ d(e.$slots, "sidebar-end", l(c(i.value)), void 0, !0)
160
173
  ]),
161
174
  _: 3
162
175
  }, 8, ["parsedSpec"])
163
176
  ])
164
- ])) : b("", !0),
165
- oe(f("div", De, [
166
- f("div", Ee, [
167
- d(e.$slots, "editor", l(u(s.value)), void 0, !0)
177
+ ])) : y("", !0),
178
+ ae(m("div", Oe, [
179
+ m("div", Ae, [
180
+ d(e.$slots, "editor", l(c(i.value)), void 0, !0)
168
181
  ])
169
182
  ], 512), [
170
- [te, e.configuration.isEditable]
183
+ [ne, e.configuration.isEditable]
171
184
  ]),
172
- W.value ? (v(), S(F, { key: 1 }, [
173
- f("div", Oe, [
174
- p(i(he), {
185
+ Q.value ? (f(), h(P, { key: 1 }, [
186
+ m("div", Be, [
187
+ v(s(we), {
175
188
  baseServerURL: e.configuration.baseServerURL,
176
189
  layout: e.configuration.layout === "classic" ? "accordion" : "default",
177
190
  parsedSpec: e.parsedSpec,
178
191
  proxy: e.configuration.proxy
179
- }, re({
180
- start: c(() => [
181
- d(e.$slots, "content-start", l(u(s.value)), void 0, !0)
192
+ }, se({
193
+ start: p(() => [
194
+ d(e.$slots, "content-start", l(c(i.value)), void 0, !0)
182
195
  ]),
183
- end: c(() => [
184
- d(e.$slots, "content-end", l(u(s.value)), void 0, !0)
196
+ end: p(() => [
197
+ d(e.$slots, "content-end", l(c(i.value)), void 0, !0)
185
198
  ]),
186
199
  _: 2
187
200
  }, [
188
- (t = e.configuration) != null && t.isEditable ? {
201
+ (r = e.configuration) != null && r.isEditable ? {
189
202
  name: "empty-state",
190
- fn: c(() => {
191
- var n;
203
+ fn: p(() => {
204
+ var a;
192
205
  return [
193
- p(pe, {
194
- theme: ((n = e.configuration) == null ? void 0 : n.theme) || "default",
195
- onChangeTheme: o[0] || (o[0] = (m) => e.$emit("changeTheme", m)),
196
- onLinkSwaggerFile: o[1] || (o[1] = (m) => e.$emit("linkSwaggerFile")),
197
- onLoadSwaggerFile: o[2] || (o[2] = (m) => e.$emit("loadSwaggerFile")),
198
- onUpdateContent: o[3] || (o[3] = (m) => e.$emit("updateContent", m))
206
+ v(ge, {
207
+ theme: ((a = e.configuration) == null ? void 0 : a.theme) || "default",
208
+ onChangeTheme: o[0] || (o[0] = (u) => e.$emit("changeTheme", u)),
209
+ onLinkSwaggerFile: o[1] || (o[1] = (u) => e.$emit("linkSwaggerFile")),
210
+ onLoadSwaggerFile: o[2] || (o[2] = (u) => e.$emit("loadSwaggerFile")),
211
+ onUpdateContent: o[3] || (o[3] = (u) => e.$emit("updateContent", u))
199
212
  }, null, 8, ["theme"])
200
213
  ];
201
214
  }),
@@ -203,28 +216,33 @@ const Te = { class: "references-header" }, Ie = {
203
216
  } : void 0
204
217
  ]), 1032, ["baseServerURL", "layout", "parsedSpec", "proxy"])
205
218
  ]),
206
- e.$slots.footer ? (v(), S("div", ke, [
207
- d(e.$slots, "footer", l(u(s.value)), void 0, !0)
208
- ])) : b("", !0)
209
- ], 64)) : b("", !0),
210
- p(i(P), {
219
+ e.$slots.footer ? (f(), h("div", Pe, [
220
+ d(e.$slots, "footer", l(c(i.value)), void 0, !0)
221
+ ])) : y("", !0)
222
+ ], 64)) : y("", !0),
223
+ s(F) ? (f(), U(me, {
224
+ key: 2,
225
+ proxyUrl: e.configuration.proxy,
226
+ spec: e.configuration.spec
227
+ }, null, 8, ["proxyUrl", "spec"])) : (f(), U(s(N), {
228
+ key: 3,
211
229
  parsedSpec: e.parsedSpec,
212
- proxyUrl: (a = e.configuration) == null ? void 0 : a.proxy
230
+ proxyUrl: (t = e.configuration) == null ? void 0 : t.proxy
213
231
  }, {
214
- "sidebar-start": c(() => [
215
- d(e.$slots, "sidebar-start", l(u(s.value)), void 0, !0)
232
+ "sidebar-start": p(() => [
233
+ d(e.$slots, "sidebar-start", l(c(i.value)), void 0, !0)
216
234
  ]),
217
- "sidebar-end": c(() => [
218
- d(e.$slots, "sidebar-end", l(u(s.value)), void 0, !0)
235
+ "sidebar-end": p(() => [
236
+ d(e.$slots, "sidebar-end", l(c(i.value)), void 0, !0)
219
237
  ]),
220
238
  _: 3
221
- }, 8, ["parsedSpec", "proxyUrl"])
239
+ }, 8, ["parsedSpec", "proxyUrl"]))
222
240
  ], 38),
223
- p(i(ie))
241
+ v(s(ce))
224
242
  ], 64);
225
243
  };
226
244
  }
227
245
  });
228
246
  export {
229
- Ze as default
247
+ oo as default
230
248
  };
@@ -1 +1 @@
1
- {"version":3,"file":"ExampleResponse.vue.d.ts","sourceRoot":"","sources":["../../../../../src/components/Content/Operation/PathResponses/ExampleResponse.vue"],"names":[],"mappings":";;;;;;;;;;;AA0aA,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":"ExampleResponse.vue.d.ts","sourceRoot":"","sources":["../../../../../src/components/Content/Operation/PathResponses/ExampleResponse.vue"],"names":[],"mappings":";;;;;;;;;;;AAkeA,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 o from "./ExampleResponse.vue2.js";
2
2
  /* empty css */
3
3
  import p from "../../../../_virtual/_plugin-vue_export-helper.js";
4
- const f = /* @__PURE__ */ p(o, [["__scopeId", "data-v-a29f0b4f"]]);
4
+ const r = /* @__PURE__ */ p(o, [["__scopeId", "data-v-71404817"]]);
5
5
  export {
6
- f as default
6
+ r as default
7
7
  };
@@ -1,53 +1,43 @@
1
- import { defineComponent as D, openBlock as s, createElementBlock as t, createVNode as O, unref as o, createBlock as l, createCommentVNode as p, Fragment as c, renderList as E, createElementVNode as N, toDisplayString as J } from "vue";
1
+ import { defineComponent as L, openBlock as o, createElementBlock as t, createVNode as N, unref as s, Fragment as p, renderList as C, createElementVNode as V, toDisplayString as P, createBlock as m, createCommentVNode as F } from "vue";
2
2
  import { ScalarCodeBlock as r } from "@scalar/components";
3
- import { prettyPrintJson as C } from "@scalar/oas-utils/helpers";
4
- import { getExampleFromSchema as m } from "@scalar/oas-utils/spec-getters";
5
- const L = { key: 0 }, P = { key: 1 }, R = {
3
+ import { prettyPrintJson as b } from "@scalar/oas-utils/helpers";
4
+ import { getExampleFromSchema as a } from "@scalar/oas-utils/spec-getters";
5
+ const R = { key: 0 }, q = { key: 1 }, w = {
6
6
  key: 0,
7
7
  class: "rule"
8
- }, q = { class: "rule-title" }, w = { class: "rule-items" }, z = {
8
+ }, z = { class: "rule-title" }, G = { class: "rule-items" }, H = {
9
9
  key: 2,
10
10
  class: "empty-state"
11
- }, Q = /* @__PURE__ */ D({
11
+ }, U = /* @__PURE__ */ L({
12
12
  __name: "ExampleResponse",
13
13
  props: {
14
14
  response: {}
15
15
  },
16
- setup(G) {
17
- const V = ["oneOf", "anyOf", "not"], F = (e) => e.reduce((i, a) => ({
16
+ setup(I) {
17
+ const A = ["oneOf", "anyOf", "not"], c = (e) => e.reduce((i, l) => ({
18
18
  ...i,
19
- ...a
19
+ ...l
20
20
  }), {});
21
21
  return (e, i) => {
22
- var a, d, h, y, u, g, k;
23
- return (a = e.response) != null && a.example ? (s(), t("div", L, [
24
- O(o(r), {
25
- content: o(C)((d = e.response) == null ? void 0 : d.example),
22
+ var l, d, h, y, u, g, f, k, S;
23
+ return (l = e.response) != null && l.example ? (o(), t("div", R, [
24
+ N(s(r), {
25
+ content: s(b)((d = e.response) == null ? void 0 : d.example),
26
26
  lang: "json"
27
27
  }, null, 8, ["content"])
28
- ])) : (h = e.response) != null && h.schema ? (s(), t("div", P, [
29
- (y = e.response) != null && y.schema.type ? (s(), l(o(r), {
30
- key: 0,
31
- content: o(C)(
32
- o(m)((u = e.response) == null ? void 0 : u.schema, {
33
- emptyString: "",
34
- mode: "read"
35
- })
36
- ),
37
- lang: "json"
38
- }, null, 8, ["content"])) : p("", !0),
39
- (s(), t(c, null, E(V, (n) => {
40
- var f, S, _, j, v, B;
41
- return s(), t(c, { key: n }, [
42
- (f = e.response) != null && f.schema[n] && (((S = e.response) == null ? void 0 : S.schema[n].length) > 1 || n === "not") ? (s(), t("div", R, [
43
- N("div", q, J(n), 1),
44
- N("ol", w, [
45
- (s(!0), t(c, null, E((_ = e.response) == null ? void 0 : _.schema[n], (b, A) => (s(), t("li", {
46
- key: A,
28
+ ])) : (h = e.response) != null && h.schema ? (o(), t("div", q, [
29
+ (o(), t(p, null, C(A, (n) => {
30
+ var j, O, _, v, B, E;
31
+ return o(), t(p, { key: n }, [
32
+ (j = e.response) != null && j.schema[n] && (((O = e.response) == null ? void 0 : O.schema[n].length) > 1 || n === "not") ? (o(), t("div", w, [
33
+ V("div", z, P(n), 1),
34
+ V("ol", G, [
35
+ (o(!0), t(p, null, C((_ = e.response) == null ? void 0 : _.schema[n], (D, J) => (o(), t("li", {
36
+ key: J,
47
37
  class: "rule-item"
48
38
  }, [
49
- O(o(r), {
50
- content: o(m)(b, {
39
+ N(s(r), {
40
+ content: s(a)(D, {
51
41
  emptyString: "…",
52
42
  mode: "read"
53
43
  }),
@@ -55,32 +45,53 @@ const L = { key: 0 }, P = { key: 1 }, R = {
55
45
  }, null, 8, ["content"])
56
46
  ]))), 128))
57
47
  ])
58
- ])) : (j = e.response) != null && j.schema[n] && ((v = e.response) == null ? void 0 : v.schema[n].length) === 1 ? (s(), l(o(r), {
48
+ ])) : (v = e.response) != null && v.schema[n] && ((B = e.response) == null ? void 0 : B.schema[n].length) === 1 ? (o(), m(s(r), {
59
49
  key: 1,
60
- content: o(m)((B = e.response) == null ? void 0 : B.schema[n][0], {
50
+ content: s(a)((E = e.response) == null ? void 0 : E.schema[n][0], {
61
51
  emptyString: "…",
62
52
  mode: "read"
63
53
  }),
64
54
  lang: "json"
65
- }, null, 8, ["content"])) : p("", !0)
55
+ }, null, 8, ["content"])) : F("", !0)
66
56
  ], 64);
67
57
  }), 64)),
68
- (g = e.response) != null && g.schema.allOf ? (s(), l(o(r), {
58
+ (y = e.response) != null && y.schema.allOf ? (o(), m(s(r), {
59
+ key: 0,
60
+ content: c(
61
+ (u = e.response) == null ? void 0 : u.schema.allOf.map(
62
+ (n) => s(a)(n, {
63
+ emptyString: "…",
64
+ mode: "read"
65
+ })
66
+ )
67
+ ),
68
+ lang: "json"
69
+ }, null, 8, ["content"])) : F("", !0),
70
+ (f = (g = e.response) == null ? void 0 : g.schema.items) != null && f.allOf ? (o(), m(s(r), {
69
71
  key: 1,
70
- content: F(
71
- (k = e.response) == null ? void 0 : k.schema.allOf.map(
72
- (n) => o(m)(n, {
72
+ content: c(
73
+ (k = e.response) == null ? void 0 : k.schema.items.allOf.map(
74
+ (n) => s(a)(n, {
73
75
  emptyString: "…",
74
76
  mode: "read"
75
77
  })
76
78
  )
77
79
  ),
78
80
  lang: "json"
79
- }, null, 8, ["content"])) : p("", !0)
80
- ])) : (s(), t("div", z, " No Body "));
81
+ }, null, 8, ["content"])) : (o(), m(s(r), {
82
+ key: 2,
83
+ content: s(b)(
84
+ s(a)((S = e.response) == null ? void 0 : S.schema, {
85
+ emptyString: "…",
86
+ mode: "read"
87
+ })
88
+ ),
89
+ lang: "json"
90
+ }, null, 8, ["content"]))
91
+ ])) : (o(), t("div", H, " No Body "));
81
92
  };
82
93
  }
83
94
  });
84
95
  export {
85
- Q as default
96
+ U as default
86
97
  };
@@ -1 +1 @@
1
- {"version":3,"file":"MobileHeader.vue.d.ts","sourceRoot":"","sources":["../../src/components/MobileHeader.vue"],"names":[],"mappings":";;;;;;;;;;;AAiLA,wBAAwG;AAOxG,KAAK,uBAAuB,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG;IACpC,QAAO;QACN,MA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;KAAE;CACzD,CAAC"}
@@ -1,7 +1,7 @@
1
1
  import o from "./MobileHeader.vue2.js";
2
2
  /* empty css */
3
- import e from "../_virtual/_plugin-vue_export-helper.js";
4
- const m = /* @__PURE__ */ e(o, [["__scopeId", "data-v-0242e3de"]]);
3
+ import r from "../_virtual/_plugin-vue_export-helper.js";
4
+ const f = /* @__PURE__ */ r(o, [["__scopeId", "data-v-b5fb4b8b"]]);
5
5
  export {
6
- m as default
6
+ f as default
7
7
  };
@@ -1 +1 @@
1
- {"version":3,"file":"Sidebar.vue.d.ts","sourceRoot":"","sources":["../../../src/components/Sidebar/Sidebar.vue"],"names":[],"mappings":"AA4NA,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,mBAAmB,CAAA;;;;;;;;;AAoV7C,wBAAwG;AAOxG,KAAK,uBAAuB,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG;IACpC,QAAO;QACN,MAAM,EAAE,CAAC,CAAC;KAEV,CAAA;CACD,CAAC;AAEN,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":"Sidebar.vue.d.ts","sourceRoot":"","sources":["../../../src/components/Sidebar/Sidebar.vue"],"names":[],"mappings":"AA6NA,OAAO,KAAK,EAAE,IAAI,EAAE,MA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