@scalar/api-reference 1.24.27 → 1.24.29

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1 +1 @@
1
- {"version":3,"file":"ApiClientModal.vue.d.ts","sourceRoot":"","sources":["../../src/components/ApiClientModal.vue"],"names":[],"mappings":"AAyEA,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,mBAAmB,CAAA;;;;;;;;AA+F1D,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":"ApiClientModal.vue.d.ts","sourceRoot":"","sources":["../../src/components/ApiClientModal.vue"],"names":[],"mappings":"AA+EA,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,mBAAmB,CAAA;;;;;;;;AAqG1D,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,37 +1,40 @@
1
- import { defineComponent as d, ref as S, onMounted as U, watch as _, onBeforeUnmount as h, openBlock as v, createElementBlock as x } from "vue";
2
- import { modalStateBus as y, apiClientBus as B } from "./api-client-bus.js";
3
- import { getUrlFromServerState as A } from "../legacy/helpers/getUrlFromServerState.js";
4
- import { useAuthenticationStore as C } from "../legacy/stores/useAuthenticationStore.js";
5
- import { useServerStore as k } from "../legacy/stores/useServerStore.js";
6
- const b = /* @__PURE__ */ d({
1
+ import { defineComponent as v, ref as u, onMounted as U, watch as _, onBeforeUnmount as h, openBlock as x, createElementBlock as y } from "vue";
2
+ import { modalStateBus as B, apiClientBus as A } from "./api-client-bus.js";
3
+ import { getUrlFromServerState as C } from "../legacy/helpers/getUrlFromServerState.js";
4
+ import { useAuthenticationStore as k } from "../legacy/stores/useAuthenticationStore.js";
5
+ import { useServerStore as w } from "../legacy/stores/useServerStore.js";
6
+ const b = /* @__PURE__ */ v({
7
7
  __name: "ApiClientModal",
8
8
  props: {
9
9
  proxyUrl: {},
10
10
  spec: {}
11
11
  },
12
12
  setup(c) {
13
- const t = c, r = S(null), { authentication: i } = C(), { server: u } = k();
13
+ const r = c, o = u(null), p = u(null), { authentication: i } = k(), { server: s } = w();
14
14
  return U(async () => {
15
- if (!r.value) return;
16
- const { createScalarApiClient: o } = await import("@scalar/api-client"), { app: p, open: l, updateAuth: s, updateServerUrl: m, modalState: f, updateSpec: n } = await o(r.value, {
17
- spec: t.spec ?? {},
18
- proxyUrl: t.proxyUrl
15
+ if (!o.value) return;
16
+ const { createScalarApiClient: t } = await import("@scalar/api-client"), { app: n, open: m, updateAuth: f, updateServerUrl: d, modalState: S, updateSpec: a } = await t(o.value, {
17
+ spec: r.spec ?? {},
18
+ proxyUrl: r.proxyUrl
19
19
  });
20
- y.emit(f), B.on((e) => {
20
+ B.emit(S), A.on((e) => {
21
21
  if (e.open) {
22
- s(i);
23
- const a = A(u);
24
- a && m(a), l(e.open);
22
+ f(i);
23
+ const l = C(s);
24
+ l && d(l), m(e.open);
25
25
  }
26
- e.updateSpec && n(e.updateSpec);
26
+ e.updateSpec && a(e.updateSpec);
27
27
  }), _(
28
- () => t.spec,
29
- (e) => e && n(e),
28
+ () => r.spec,
29
+ (e) => e && a(e),
30
30
  { deep: !0 }
31
- ), h(() => p.unmount());
32
- }), (o, p) => (v(), x("div", {
31
+ ), p.value = n;
32
+ }), h(() => {
33
+ var t;
34
+ return (t = p.value) == null ? void 0 : t.unmount();
35
+ }), (t, n) => (x(), y("div", {
33
36
  ref_key: "el",
34
- ref: r
37
+ ref: o
35
38
  }, null, 512));
36
39
  }
37
40
  });
@@ -1,6 +1,4 @@
1
- import '@scalar/components/style.css';
2
1
  import { type ThemeId } from '@scalar/themes';
3
- import '@scalar/themes/style.css';
4
2
  import type { ReferenceLayoutProps, ReferenceSlotProps } from '../types';
5
3
  declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__VLS_TypePropsToOption<Omit<ReferenceLayoutProps, "isDark">>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
6
4
  changeTheme: (args_0: {
@@ -1 +1 @@
1
- {"version":3,"file":"ApiReferenceLayout.vue.d.ts","sourceRoot":"","sources":["../../src/components/ApiReferenceLayout.vue"],"names":[],"mappings":"AAshBA,OAAO,8BAA8B,CAAA;AAGrC,OAAO,EAAE,KAAK,OAAO,EAAkB,MAAM,gBAAgB,CAAA;AAC7D,OAAO,0BAA0B,CAAA;AAwBjC,OAAO,KAAK,EACV,oBAAoB,EAEpB,kBAAkB,EACnB,MAAM,UAAU,CAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AA2gBjB,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":"ApiReferenceLayout.vue.d.ts","sourceRoot":"","sources":["../../src/components/ApiReferenceLayout.vue"],"names":[],"mappings":"AA4hBA,OAAO,EAAE,KAAK,OAAO,EAAkB,MAAM,gBAAgB,CAAA;AAwB7D,OAAO,KAAK,EACV,oBAAoB,EAEpB,kBAAkB,EACnB,MAAM,UAAU,CAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AA6gBjB,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"}
@@ -2,7 +2,7 @@ import o from "./ApiReferenceLayout.vue2.js";
2
2
  /* empty css */
3
3
  /* empty css */
4
4
  import t from "../_virtual/_plugin-vue_export-helper.js";
5
- const m = /* @__PURE__ */ t(o, [["__scopeId", "data-v-300a9075"]]);
5
+ const m = /* @__PURE__ */ t(o, [["__scopeId", "data-v-4ada381d"]]);
6
6
  export {
7
7
  m as default
8
8
  };
@@ -1,32 +1,30 @@
1
- import { defineComponent as Q, ref as h, onMounted as L, onBeforeMount as B, computed as F, watch as q, onServerPrefetch as J, useSSRContext as X, getCurrentInstance as Z, provide as O, openBlock as v, createElementBlock as S, Fragment as P, createVNode as u, unref as s, withCtx as p, createTextVNode as _, toDisplayString as x, createElementVNode as f, normalizeClass as ee, normalizeStyle as oe, renderSlot as l, normalizeProps as d, guardReactiveProps as c, createCommentVNode as b, withDirectives as te, vShow as re, createSlots as ae } from "vue";
2
- import { provideUseId as ne } from "@headlessui/vue";
1
+ import { defineComponent as Q, ref as b, onMounted as B, onBeforeMount as F, computed as L, watch as q, onServerPrefetch as J, useSSRContext as X, getCurrentInstance as Z, provide as O, openBlock as m, createElementBlock as S, Fragment as P, createBlock as _, unref as i, withCtx as u, createTextVNode as x, toDisplayString as ee, createCommentVNode as h, createElementVNode as p, normalizeClass as oe, normalizeStyle as te, renderSlot as l, normalizeProps as d, guardReactiveProps as c, createVNode as g, withDirectives as re, vShow as ae, createSlots as ne } from "vue";
2
+ import { provideUseId as ie } from "@headlessui/vue";
3
3
  import { addScalarClassesToHeadless as se } from "@scalar/components";
4
- import "@scalar/components/style.css";
5
- import { defaultStateFactory as ie } from "@scalar/oas-utils/helpers";
6
- import { getThemeStyles as le } from "@scalar/themes";
7
- import "@scalar/themes/style.css";
8
- import { useToasts as de, ScalarToasts as ce } from "@scalar/use-toasts";
9
- import { useMediaQuery as ue, useResizeObserver as pe, useDebounceFn as fe } from "@vueuse/core";
10
- import me from "./ApiClientModal.vue.js";
4
+ import { defaultStateFactory as le } from "@scalar/oas-utils/helpers";
5
+ import { getThemeStyles as de } from "@scalar/themes";
6
+ import { useToasts as ce, ScalarToasts as ue } from "@scalar/use-toasts";
7
+ import { useMediaQuery as pe, useResizeObserver as fe, useDebounceFn as me } from "@vueuse/core";
8
+ import ge from "./ApiClientModal.vue.js";
11
9
  /* empty css */
12
- import ge from "./GettingStarted.vue.js";
13
- import { downloadSpecBus as ve, downloadSpecFile as Se } from "../helpers/specDownloads.js";
14
- import { useDeprecationWarnings as he } from "../hooks/useDeprecationWarnings.js";
15
- import be from "./Util/Style.vue.js";
16
- import we from "./Sidebar/Sidebar.vue.js";
17
- import ye from "./Content/Content.vue.js";
18
- import { GLOBAL_SECURITY_SYMBOL as Re, HIDE_DOWNLOAD_BUTTON_SYMBOL as Te } from "../helpers/provideSymbols.js";
19
- import { useSidebar as Ce } from "../hooks/useSidebar.js";
20
- import { useNavState as $e } from "../hooks/useNavState.js";
10
+ import ve from "./GettingStarted.vue.js";
11
+ import { downloadSpecBus as Se, downloadSpecFile as he } from "../helpers/specDownloads.js";
12
+ import { useDeprecationWarnings as be } from "../hooks/useDeprecationWarnings.js";
13
+ import we from "./Util/Style.vue.js";
14
+ import ye from "./Sidebar/Sidebar.vue.js";
15
+ import Re from "./Content/Content.vue.js";
16
+ import { GLOBAL_SECURITY_SYMBOL as Te, HIDE_DOWNLOAD_BUTTON_SYMBOL as Ce } from "../helpers/provideSymbols.js";
17
+ import { useSidebar as $e } from "../hooks/useSidebar.js";
18
+ import { useNavState as ke } from "../hooks/useNavState.js";
21
19
  import { scrollToId as Ie } from "../helpers/scrollToId.js";
22
- import { sleep as Ee } from "../helpers/sleep.js";
23
- const ke = { class: "references-header" }, De = {
20
+ import { sleep as De } from "../helpers/sleep.js";
21
+ const Ee = { class: "references-header" }, Be = {
24
22
  key: 0,
25
23
  class: "references-navigation t-doc__sidebar"
26
- }, Le = { class: "references-navigation-list" }, Be = { class: "references-editor" }, Fe = { class: "references-editor-textarea" }, Oe = { class: "references-rendered" }, Pe = {
24
+ }, Fe = { class: "references-navigation-list" }, Le = { class: "references-editor" }, Oe = { class: "references-editor-textarea" }, Pe = { class: "references-rendered" }, Ue = {
27
25
  key: 0,
28
26
  class: "references-footer"
29
- }, ro = /* @__PURE__ */ Q({
27
+ }, to = /* @__PURE__ */ Q({
30
28
  inheritAttrs: !1,
31
29
  __name: "ApiReferenceLayout",
32
30
  props: {
@@ -36,163 +34,163 @@ const ke = { class: "references-header" }, De = {
36
34
  },
37
35
  emits: ["changeTheme", "updateContent", "loadSwaggerFile", "linkSwaggerFile", "toggleDarkMode"],
38
36
  setup(U) {
39
- const n = U, { initializeToasts: M, toast: A } = de();
37
+ const t = U, { initializeToasts: M, toast: A } = ce();
40
38
  M((e) => A(e));
41
- const N = ue("(min-width: 1150px)"), z = h("100dvh"), m = h(null);
42
- pe(m, (e) => {
39
+ const N = pe("(min-width: 1150px)"), z = b("100dvh"), f = b(null);
40
+ fe(f, (e) => {
43
41
  z.value = e[0].contentRect.height + "px";
44
42
  });
45
- const w = h(0);
46
- L(() => {
47
- var r, t, a;
48
- const e = (t = (r = m.value) == null ? void 0 : r.parentElement) == null ? void 0 : t.getBoundingClientRect(), o = (a = m.value) == null ? void 0 : a.getBoundingClientRect();
43
+ const w = b(0);
44
+ B(() => {
45
+ var a, r, n;
46
+ const e = (r = (a = f.value) == null ? void 0 : a.parentElement) == null ? void 0 : r.getBoundingClientRect(), o = (n = f.value) == null ? void 0 : n.getBoundingClientRect();
49
47
  if (e && o) {
50
- const D = o.top - e.top;
51
- w.value = D < 2 ? 0 : D;
48
+ const E = o.top - e.top;
49
+ w.value = E < 2 ? 0 : E;
52
50
  }
53
51
  });
54
52
  const {
55
53
  breadcrumb: H,
56
- collapsedSidebarItems: g,
54
+ collapsedSidebarItems: v,
57
55
  isSidebarOpen: V,
58
56
  setCollapsedSidebarItem: y,
59
57
  hideModels: Y,
60
58
  setParsedSpec: G
61
- } = Ce(), {
59
+ } = $e(), {
62
60
  getPathRoutingId: R,
63
61
  getSectionId: W,
64
62
  getTagId: j,
65
63
  hash: T,
66
64
  isIntersectionEnabled: C,
67
65
  pathRouting: $,
68
- updateHash: I
69
- } = $e();
70
- $.value = n.configuration.pathRouting, B(() => I());
71
- const E = async (e) => {
66
+ updateHash: k
67
+ } = ke();
68
+ $.value = t.configuration.pathRouting, F(() => k());
69
+ const I = async (e) => {
72
70
  var o;
73
- C.value = !1, I(), e ? Ie(e) : (o = m.value) == null || o.scrollTo(0, 0), await Ee(100), C.value = !0;
71
+ C.value = !1, k(), e ? Ie(e) : (o = f.value) == null || o.scrollTo(0, 0), await De(100), C.value = !0;
74
72
  };
75
- B(() => se()), L(() => {
76
- ve.on(({ specTitle: e }) => {
77
- Se(n.rawSpec, e);
78
- }), window.onhashchange = () => E(decodeURIComponent(window.location.hash.replace(/^#/, ""))), window.onpopstate = () => $.value && E(R(window.location.pathname));
73
+ F(() => se()), B(() => {
74
+ Se.on(({ specTitle: e }) => {
75
+ he(t.rawSpec, e);
76
+ }), window.onhashchange = () => I(decodeURIComponent(window.location.hash.replace(/^#/, ""))), window.onpopstate = () => $.value && I(R(window.location.pathname));
79
77
  });
80
- const K = F(
81
- () => N.value || !n.configuration.isEditable
82
- ), k = fe((e) => {
78
+ const K = L(
79
+ () => N.value || !t.configuration.isEditable
80
+ ), D = me((e) => {
83
81
  if ((e.target.scrollTop ?? 0) < 50) {
84
- const r = n.configuration.pathRouting ? n.configuration.pathRouting.basePath : window.location.pathname;
85
- window.history.replaceState({}, "", r + window.location.search), T.value = "";
82
+ const a = t.configuration.pathRouting ? t.configuration.pathRouting.basePath : window.location.pathname;
83
+ window.history.replaceState({}, "", a + window.location.search), T.value = "";
86
84
  }
87
- }), i = F(() => ({
85
+ }), s = L(() => ({
88
86
  breadcrumb: H.value,
89
- spec: n.parsedSpec
87
+ spec: t.parsedSpec
90
88
  }));
91
- return q(() => n.parsedSpec, G, { deep: !0 }), J(() => {
92
- var o, r;
89
+ return q(() => t.parsedSpec, G, { deep: !0 }), J(() => {
90
+ var o, a;
93
91
  const e = X();
94
- if (e && ((o = e.payload).data || (o.data = ie()), n.configuration.pathRouting)) {
95
- const t = R(e.url);
96
- T.value = t, e.payload.data.hash = t;
97
- for (const a in g)
98
- Object.hasOwn(g, a) && delete g[a];
99
- if (t)
100
- y(W(t), !0);
92
+ if (e && ((o = e.payload).data || (o.data = le()), t.configuration.pathRouting)) {
93
+ const r = R(e.url);
94
+ T.value = r, e.payload.data.hash = r;
95
+ for (const n in v)
96
+ Object.hasOwn(v, n) && delete v[n];
97
+ if (r)
98
+ y(W(r), !0);
101
99
  else {
102
- const a = (r = n.parsedSpec.tags) == null ? void 0 : r[0];
103
- a && y(j(a), !0);
100
+ const n = (a = t.parsedSpec.tags) == null ? void 0 : a[0];
101
+ n && y(j(n), !0);
104
102
  }
105
- e.payload.data["useSidebarContent-collapsedSidebarItems"] = g;
103
+ e.payload.data["useSidebarContent-collapsedSidebarItems"] = v;
106
104
  }
107
- }), ne(() => {
108
- var t;
105
+ }), ie(() => {
106
+ var r;
109
107
  const e = Z(), o = "scalar-instance-id";
110
108
  if (!e) return o;
111
- let r = e.uid;
112
- 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}`;
113
- }), O(Re, () => n.parsedSpec.security), O(
114
- Te,
115
- () => n.configuration.hideDownloadButton
116
- ), Y.value = n.configuration.hideModels ?? !1, he(n.configuration), (e, o) => {
117
- var r;
118
- return v(), S(P, null, [
119
- u(s(be), null, {
120
- default: p(() => [
121
- _(x(s(le)(e.configuration.theme, {
109
+ let a = e.uid;
110
+ return typeof window > "u" ? (e.attrs || (e.attrs = {}), e.attrs[o] = a) : (r = e.vnode.el) != null && r.getAttribute && (a = e.vnode.el.getAttribute(o)), `${o}-${a}`;
111
+ }), O(Te, () => t.parsedSpec.security), O(
112
+ Ce,
113
+ () => t.configuration.hideDownloadButton
114
+ ), Y.value = t.configuration.hideModels ?? !1, be(t.configuration), (e, o) => {
115
+ var a;
116
+ return m(), S(P, null, [
117
+ t.configuration.withDefaultFonts || t.configuration.theme ? (m(), _(i(we), { key: 0 }, {
118
+ default: u(() => [
119
+ x(ee(i(de)(e.configuration.theme, {
122
120
  fonts: e.configuration.withDefaultFonts
123
121
  })), 1)
124
122
  ]),
125
123
  _: 1
126
- }),
127
- f("div", {
124
+ })) : h("", !0),
125
+ p("div", {
128
126
  ref_key: "documentEl",
129
- ref: m,
130
- class: ee(["scalar-app scalar-api-reference references-layout", [
127
+ ref: f,
128
+ class: oe(["scalar-app scalar-api-reference references-layout", [
131
129
  {
132
130
  "references-editable": e.configuration.isEditable,
133
131
  "references-sidebar": e.configuration.showSidebar,
134
- "references-sidebar-mobile-open": s(V),
132
+ "references-sidebar-mobile-open": i(V),
135
133
  "references-classic": e.configuration.layout === "classic"
136
134
  },
137
135
  e.$attrs.class
138
136
  ]]),
139
- style: oe({
137
+ style: te({
140
138
  "--scalar-y-offset": `var(--scalar-custom-header-height, ${w.value}px)`
141
139
  }),
142
140
  onScrollPassive: o[4] || (o[4] = //@ts-ignore
143
- (...t) => s(k) && s(k)(...t))
141
+ (...r) => i(D) && i(D)(...r))
144
142
  }, [
145
- f("div", ke, [
146
- l(e.$slots, "header", d(c(i.value)), void 0, !0)
143
+ p("div", Ee, [
144
+ l(e.$slots, "header", d(c(s.value)), void 0, !0)
147
145
  ]),
148
- e.configuration.showSidebar ? (v(), S("aside", De, [
149
- f("div", Le, [
150
- u(s(we), { parsedSpec: e.parsedSpec }, {
151
- "sidebar-start": p(() => [
152
- l(e.$slots, "sidebar-start", d(c(i.value)), void 0, !0)
146
+ e.configuration.showSidebar ? (m(), S("aside", Be, [
147
+ p("div", Fe, [
148
+ g(i(ye), { parsedSpec: e.parsedSpec }, {
149
+ "sidebar-start": u(() => [
150
+ l(e.$slots, "sidebar-start", d(c(s.value)), void 0, !0)
153
151
  ]),
154
- "sidebar-end": p(() => [
155
- l(e.$slots, "sidebar-end", d(c(i.value)), void 0, !0)
152
+ "sidebar-end": u(() => [
153
+ l(e.$slots, "sidebar-end", d(c(s.value)), void 0, !0)
156
154
  ]),
157
155
  _: 3
158
156
  }, 8, ["parsedSpec"])
159
157
  ])
160
- ])) : b("", !0),
161
- te(f("div", Be, [
162
- f("div", Fe, [
163
- l(e.$slots, "editor", d(c(i.value)), void 0, !0)
158
+ ])) : h("", !0),
159
+ re(p("div", Le, [
160
+ p("div", Oe, [
161
+ l(e.$slots, "editor", d(c(s.value)), void 0, !0)
164
162
  ])
165
163
  ], 512), [
166
- [re, e.configuration.isEditable]
164
+ [ae, e.configuration.isEditable]
167
165
  ]),
168
- K.value ? (v(), S(P, { key: 1 }, [
169
- f("div", Oe, [
170
- u(s(ye), {
166
+ K.value ? (m(), S(P, { key: 1 }, [
167
+ p("div", Pe, [
168
+ g(i(Re), {
171
169
  baseServerURL: e.configuration.baseServerURL,
172
170
  layout: e.configuration.layout === "classic" ? "accordion" : "default",
173
171
  parsedSpec: e.parsedSpec,
174
172
  proxy: e.configuration.proxy,
175
173
  servers: e.configuration.servers
176
- }, ae({
177
- start: p(() => [
178
- l(e.$slots, "content-start", d(c(i.value)), void 0, !0)
174
+ }, ne({
175
+ start: u(() => [
176
+ l(e.$slots, "content-start", d(c(s.value)), void 0, !0)
179
177
  ]),
180
- end: p(() => [
181
- l(e.$slots, "content-end", d(c(i.value)), void 0, !0)
178
+ end: u(() => [
179
+ l(e.$slots, "content-end", d(c(s.value)), void 0, !0)
182
180
  ]),
183
181
  _: 2
184
182
  }, [
185
- (r = e.configuration) != null && r.isEditable ? {
183
+ (a = e.configuration) != null && a.isEditable ? {
186
184
  name: "empty-state",
187
- fn: p(() => {
188
- var t;
185
+ fn: u(() => {
186
+ var r;
189
187
  return [
190
- u(ge, {
191
- theme: ((t = e.configuration) == null ? void 0 : t.theme) || "default",
192
- onChangeTheme: o[0] || (o[0] = (a) => e.$emit("changeTheme", a)),
193
- onLinkSwaggerFile: o[1] || (o[1] = (a) => e.$emit("linkSwaggerFile")),
194
- onLoadSwaggerFile: o[2] || (o[2] = (a) => e.$emit("loadSwaggerFile")),
195
- onUpdateContent: o[3] || (o[3] = (a) => e.$emit("updateContent", a))
188
+ g(ve, {
189
+ theme: ((r = e.configuration) == null ? void 0 : r.theme) || "default",
190
+ onChangeTheme: o[0] || (o[0] = (n) => e.$emit("changeTheme", n)),
191
+ onLinkSwaggerFile: o[1] || (o[1] = (n) => e.$emit("linkSwaggerFile")),
192
+ onLoadSwaggerFile: o[2] || (o[2] = (n) => e.$emit("loadSwaggerFile")),
193
+ onUpdateContent: o[3] || (o[3] = (n) => e.$emit("updateContent", n))
196
194
  }, null, 8, ["theme"])
197
195
  ];
198
196
  }),
@@ -200,20 +198,20 @@ const ke = { class: "references-header" }, De = {
200
198
  } : void 0
201
199
  ]), 1032, ["baseServerURL", "layout", "parsedSpec", "proxy", "servers"])
202
200
  ]),
203
- e.$slots.footer ? (v(), S("div", Pe, [
204
- l(e.$slots, "footer", d(c(i.value)), void 0, !0)
205
- ])) : b("", !0)
206
- ], 64)) : b("", !0),
207
- u(me, {
201
+ e.$slots.footer ? (m(), S("div", Ue, [
202
+ l(e.$slots, "footer", d(c(s.value)), void 0, !0)
203
+ ])) : h("", !0)
204
+ ], 64)) : h("", !0),
205
+ g(ge, {
208
206
  proxyUrl: e.configuration.proxy,
209
207
  spec: e.configuration.spec
210
208
  }, null, 8, ["proxyUrl", "spec"])
211
209
  ], 38),
212
- u(s(ce))
210
+ g(i(ue))
213
211
  ], 64);
214
212
  };
215
213
  }
216
214
  });
217
215
  export {
218
- ro as default
216
+ to as default
219
217
  };
@@ -1,4 +1,4 @@
1
- import { defineComponent as E, ref as v, watch as K, onMounted as M, withDirectives as $, openBlock as n, createElementBlock as f, normalizeClass as j, Fragment as g, renderList as k, createBlock as m, unref as o, withCtx as p, createCommentVNode as T, createVNode as w, createTextVNode as A, toDisplayString as F, vShow as H } from "vue";
1
+ import { defineComponent as E, ref as v, watch as K, onMounted as M, withDirectives as $, openBlock as n, createElementBlock as f, normalizeClass as j, Fragment as g, renderList as k, createBlock as m, unref as o, withCtx as p, createCommentVNode as w, createVNode as T, createTextVNode as A, toDisplayString as F, vShow as H } from "vue";
2
2
  import { lazyBus as P } from "./lazyBus.js";
3
3
  import { scrollToId as x } from "../../../helpers/scrollToId.js";
4
4
  import q from "../Tag/Tag.vue.js";
@@ -54,7 +54,7 @@ const fe = /* @__PURE__ */ E({
54
54
  if (s === -1) return;
55
55
  y.value = t.slice(s, s + 3);
56
56
  } else
57
- x(a.value), setTimeout(() => I.value = !0, 1e3);
57
+ typeof window < "u" && x(a.value), setTimeout(() => I.value = !0, 1e3);
58
58
  },
59
59
  { immediate: !0 }
60
60
  );
@@ -88,7 +88,7 @@ const fe = /* @__PURE__ */ E({
88
88
  }, null, 8, ["operation", "tag"]))), 128))
89
89
  ]),
90
90
  _: 2
91
- }, 1032, ["spec", "tag"])) : T("", !0)
91
+ }, 1032, ["spec", "tag"])) : w("", !0)
92
92
  ], 64))), 128)),
93
93
  y.value.length ? (n(), m(o(J), { key: 0 }, {
94
94
  default: p(() => [
@@ -103,9 +103,9 @@ const fe = /* @__PURE__ */ E({
103
103
  default: p(() => {
104
104
  var t;
105
105
  return [
106
- w(o(U), { level: 2 }, {
106
+ T(o(U), { level: 2 }, {
107
107
  default: p(() => [
108
- w(o(X), {
108
+ T(o(X), {
109
109
  id: o(V)(e)
110
110
  }, {
111
111
  default: p(() => {
@@ -119,7 +119,7 @@ const fe = /* @__PURE__ */ E({
119
119
  ]),
120
120
  _: 2
121
121
  }, 1024),
122
- w(o(Y), {
122
+ T(o(Y), {
123
123
  name: e,
124
124
  noncollapsible: "",
125
125
  value: (t = o(h)(r.parsedSpec)) == null ? void 0 : t[e]
@@ -127,14 +127,14 @@ const fe = /* @__PURE__ */ E({
127
127
  ];
128
128
  }),
129
129
  _: 2
130
- }, 1024)) : T("", !0)
130
+ }, 1024)) : w("", !0)
131
131
  ];
132
132
  }),
133
133
  _: 2
134
134
  }, 1032, ["label"]))), 128))
135
135
  ]),
136
136
  _: 1
137
- })) : T("", !0)
137
+ })) : w("", !0)
138
138
  ], 2)), [
139
139
  [H, _.value]
140
140
  ]);
@@ -1,10 +1,3 @@
1
- declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{}>>, {}, {}>, {
2
- default?(_: {}): any;
3
- }>;
1
+ declare const _default: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{}>>, {}, {}>;
4
2
  export default _default;
5
- type __VLS_WithTemplateSlots<T, S> = T & {
6
- new (): {
7
- $slots: S;
8
- };
9
- };
10
3
  //# sourceMappingURL=Style.vue.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"Style.vue.d.ts","sourceRoot":"","sources":["../../../src/components/Util/Style.vue"],"names":[],"mappings":";;;AA4DA,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":"Style.vue.d.ts","sourceRoot":"","sources":["../../../src/components/Util/Style.vue"],"names":[],"mappings":";AA0DA,wBAKG"}
@@ -1,15 +1,12 @@
1
- import { openBlock as t, createBlock as o, resolveDynamicComponent as r, withCtx as n, renderSlot as c } from "vue";
2
- import l from "../../_virtual/_plugin-vue_export-helper.js";
3
- const s = {};
4
- function f(e, a) {
5
- return t(), o(r("style"), null, {
6
- default: n(() => [
7
- c(e.$slots, "default")
8
- ]),
9
- _: 3
10
- });
1
+ import { openBlock as n, createBlock as o, resolveDynamicComponent as r } from "vue";
2
+ import t from "../../_virtual/_plugin-vue_export-helper.js";
3
+ const c = {};
4
+ function l(e, s) {
5
+ return n(), o(r("style"), {
6
+ innerHTML: e.$slots.default
7
+ }, null, 8, ["innerHTML"]);
11
8
  }
12
- const d = /* @__PURE__ */ l(s, [["render", f]]);
9
+ const i = /* @__PURE__ */ t(c, [["render", l]]);
13
10
  export {
14
- d as default
11
+ i as default
15
12
  };