@scalar/api-reference 1.25.22 → 1.25.23

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 (29) hide show
  1. package/CHANGELOG.md +15 -0
  2. package/dist/browser/standalone.js +8501 -8501
  3. package/dist/browser/webpack-stats.json +1 -1
  4. package/dist/components/ApiClientModal.vue.d.ts +2 -0
  5. package/dist/components/ApiClientModal.vue.d.ts.map +1 -1
  6. package/dist/components/ApiClientModal.vue.js +13 -11
  7. package/dist/components/ApiReferenceLayout.vue.d.ts.map +1 -1
  8. package/dist/components/ApiReferenceLayout.vue.js +1 -1
  9. package/dist/components/ApiReferenceLayout.vue2.js +92 -91
  10. package/dist/components/Content/Schema/SchemaProperty.vue.d.ts.map +1 -1
  11. package/dist/components/Content/Schema/SchemaProperty.vue.js +1 -1
  12. package/dist/components/Content/Schema/SchemaProperty.vue2.js +91 -81
  13. package/dist/features/Search/SearchButton.vue.js +2 -2
  14. package/dist/features/Search/SearchButton.vue2.js +14 -14
  15. package/dist/features/Search/SearchModal.vue.d.ts.map +1 -1
  16. package/dist/features/Search/SearchModal.vue.js +2 -2
  17. package/dist/features/Search/SearchModal.vue2.js +87 -74
  18. package/dist/features/Search/index.d.ts +0 -1
  19. package/dist/features/Search/index.d.ts.map +1 -1
  20. package/dist/index.js +98 -100
  21. package/dist/style.css +1 -1
  22. package/package.json +6 -6
  23. package/dist/features/Search/Search.vue.d.ts +0 -20
  24. package/dist/features/Search/Search.vue.d.ts.map +0 -1
  25. package/dist/features/Search/Search.vue.js +0 -18
  26. package/dist/features/Search/Search.vue2.js +0 -4
  27. package/dist/features/Search/useKeyboardNavigation.d.ts +0 -13
  28. package/dist/features/Search/useKeyboardNavigation.d.ts.map +0 -1
  29. package/dist/features/Search/useKeyboardNavigation.js +0 -30
@@ -1,10 +1,12 @@
1
1
  import type { Spec, SpecConfiguration } from '@scalar/types/legacy';
2
2
  declare const _default: import("vue").DefineComponent<__VLS_TypePropsToOption<{
3
3
  proxyUrl?: string;
4
+ preferredSecurityScheme?: string | null;
4
5
  spec?: SpecConfiguration;
5
6
  servers?: Spec["servers"];
6
7
  }>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<__VLS_TypePropsToOption<{
7
8
  proxyUrl?: string;
9
+ preferredSecurityScheme?: string | null;
8
10
  spec?: SpecConfiguration;
9
11
  servers?: Spec["servers"];
10
12
  }>>>, {}, {}>;
@@ -1 +1 @@
1
- {"version":3,"file":"ApiClientModal.vue.d.ts","sourceRoot":"","sources":["../../src/components/ApiClientModal.vue"],"names":[],"mappings":"AA2EA,OAAO,KAAK,EAAE,IAAI,EAAE,iBAAiB,EAAE,MAAM,sBAAsB,CAAA;;eAQtD,MAAM;WACV,iBAAiB;cACd,IAAI,CAAC,SAAS,CAAC;;eAFd,MAAM;WACV,iBAAiB;cACd,IAAI,CAAC,SAAS,CAAC;;AA8F3B,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":"AA6EA,OAAO,KAAK,EAAE,IAAI,EAAE,iBAAiB,EAAE,MAAM,sBAAsB,CAAA;;eAQtD,MAAM;8BACS,MAAM,GAAG,IAAI;WAChC,iBAAiB;cACd,IAAI,CAAC,SAAS,CAAC;;eAHd,MAAM;8BACS,MAAM,GAAG,IAAI;WAChC,iBAAiB;cACd,IAAI,CAAC,SAAS,CAAC;;AA+F3B,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,20 +1,22 @@
1
- import { defineComponent as v, ref as l, onMounted as S, watch as n, onBeforeUnmount as _, openBlock as U, createElementBlock as h } from "vue";
2
- import { modalStateBus as x, apiClientBus as y } from "./api-client-bus.js";
1
+ import { defineComponent as S, ref as c, onMounted as v, watch as l, onBeforeUnmount as h, openBlock as y, createElementBlock as _ } from "vue";
2
+ import { modalStateBus as U, apiClientBus as x } from "./api-client-bus.js";
3
3
  import { useServerStore as A } from "../legacy/stores/useServerStore.js";
4
4
  import { getUrlFromServerState as B } from "../legacy/helpers/getUrlFromServerState.js";
5
- const g = /* @__PURE__ */ v({
5
+ const g = /* @__PURE__ */ S({
6
6
  __name: "ApiClientModal",
7
7
  props: {
8
8
  proxyUrl: {},
9
+ preferredSecurityScheme: {},
9
10
  spec: {},
10
11
  servers: {}
11
12
  },
12
- setup(s) {
13
- const p = s, a = l(null), o = l(null), { server: c } = A();
14
- return S(async () => {
13
+ setup(n) {
14
+ const p = n, a = c(null), o = c(null), { server: s } = A();
15
+ return v(async () => {
15
16
  if (!a.value) return;
16
17
  const { createApiClientModal: e } = await import("@scalar/api-client"), { app: r, open: i, updateAuth: m, modalState: d, updateSpec: u, updateServer: f } = await e(a.value, {
17
18
  spec: p.spec ?? {},
19
+ preferredSecurityScheme: p.preferredSecurityScheme,
18
20
  proxyUrl: p.proxyUrl,
19
21
  servers: p.servers
20
22
  });
@@ -23,23 +25,23 @@ const g = /* @__PURE__ */ v({
23
25
  app: r,
24
26
  updateSpec: u,
25
27
  updateServer: f
26
- }, x.emit(d), y.on((t) => {
28
+ }, U.emit(d), x.on((t) => {
27
29
  t.open && i(t.open), t.updateSpec && u(t.updateSpec), t.updateAuth && m(t.updateAuth);
28
30
  });
29
- }), n(c, (e) => {
31
+ }), l(s, (e) => {
30
32
  const r = B(e);
31
33
  r && o.value && o.value.updateServer(r);
32
- }), n(
34
+ }), l(
33
35
  () => p.spec,
34
36
  (e) => {
35
37
  var r;
36
38
  return e && ((r = o.value) == null ? void 0 : r.updateSpec(e));
37
39
  },
38
40
  { deep: !0 }
39
- ), _(() => {
41
+ ), h(() => {
40
42
  var e;
41
43
  return (e = o.value) == null ? void 0 : e.app.unmount();
42
- }), (e, r) => (U(), h("div", {
44
+ }), (e, r) => (y(), _("div", {
43
45
  ref_key: "el",
44
46
  ref: a
45
47
  }, null, 512));
@@ -1 +1 @@
1
- {"version":3,"file":"ApiReferenceLayout.vue.d.ts","sourceRoot":"","sources":["../../src/components/ApiReferenceLayout.vue"],"names":[],"mappings":"AAgjBA,OAAO,EACL,KAAK,OAAO,EAGb,MAAM,gBAAgB,CAAA;AA0BvB,OAAO,KAAK,EACV,oBAAoB,EAEpB,kBAAkB,EACnB,MAAM,UAAU,CAAA;AAmOjB,iBAAS,cAAc;oBAvMe,kBAAkB,KAAK,GAAG;oBAA1B,kBAAkB,K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AC,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 a = /* @__PURE__ */ t(o, [["__scopeId", "data-v-7d487b49"]]);
5
+ const a = /* @__PURE__ */ t(o, [["__scopeId", "data-v-dc418317"]]);
6
6
  export {
7
7
  a as default
8
8
  };
@@ -1,15 +1,15 @@
1
- import { defineComponent as Z, ref as w, onMounted as D, computed as v, onBeforeMount as M, watch as x, onServerPrefetch as ee, useSSRContext as oe, getCurrentInstance as te, provide as S, openBlock as h, createElementBlock as b, Fragment as k, createElementVNode as i, normalizeClass as re, unref as u, normalizeStyle as ae, renderSlot as l, normalizeProps as d, guardReactiveProps as c, createVNode as f, withCtx as g, createCommentVNode as y, withDirectives as se, vShow as ne, createSlots as ie } from "vue";
1
+ import { defineComponent as Z, ref as w, onMounted as D, computed as v, onBeforeMount as M, watch as x, onServerPrefetch as ee, useSSRContext as oe, getCurrentInstance as te, provide as h, openBlock as b, createElementBlock as y, Fragment as k, createElementVNode as l, normalizeClass as re, unref as p, normalizeStyle as ae, renderSlot as d, normalizeProps as c, guardReactiveProps as u, createVNode as g, withCtx as m, createCommentVNode as T, withDirectives as ne, vShow as se, createSlots as ie } from "vue";
2
2
  import { provideUseId as le } from "@headlessui/vue";
3
3
  import { addScalarClassesToHeadless as de } from "@scalar/components";
4
4
  import { defaultStateFactory as P } from "@scalar/oas-utils/helpers";
5
5
  import { hasObtrusiveScrollbars as ce, getThemeStyles as ue } from "@scalar/themes";
6
6
  import { useToasts as pe, ScalarToasts as fe } from "@scalar/use-toasts";
7
- import { useMediaQuery as ge, useResizeObserver as me, useDebounceFn as ve } from "@vueuse/core";
8
- import Se from "./ApiClientModal.vue.js";
7
+ import { useMediaQuery as ge, useResizeObserver as me, useDebounceFn as Se } from "@vueuse/core";
8
+ import ve from "./ApiClientModal.vue.js";
9
9
  /* empty css */
10
10
  import he from "./GettingStarted.vue.js";
11
- import { downloadSpecBus as be, downloadSpecFile as we } from "../helpers/specDownloads.js";
12
- import { useDeprecationWarnings as ye } from "../hooks/useDeprecationWarnings.js";
11
+ import { downloadSpecBus as be, downloadSpecFile as ye } from "../helpers/specDownloads.js";
12
+ import { useDeprecationWarnings as we } from "../hooks/useDeprecationWarnings.js";
13
13
  import Te from "./Sidebar/Sidebar.vue.js";
14
14
  import Re from "./Content/Content.vue.js";
15
15
  import { useSidebar as Ce } from "../hooks/useSidebar.js";
@@ -34,90 +34,90 @@ const Ue = ["innerHTML"], De = { class: "references-header" }, Me = {
34
34
  setup(F) {
35
35
  const t = F, { initializeToasts: A, toast: N } = pe();
36
36
  A((e) => N(e));
37
- const H = ge("(min-width: 1150px)"), Y = w("100dvh"), p = w(null);
38
- me(p, (e) => {
37
+ const H = ge("(min-width: 1150px)"), Y = w("100dvh"), f = w(null);
38
+ me(f, (e) => {
39
39
  Y.value = e[0].contentRect.height + "px";
40
40
  });
41
- const T = w(0);
41
+ const R = w(0);
42
42
  D(() => {
43
- var a, r, s;
44
- const e = (r = (a = p.value) == null ? void 0 : a.parentElement) == null ? void 0 : r.getBoundingClientRect(), o = (s = p.value) == null ? void 0 : s.getBoundingClientRect();
43
+ var r, a, n;
44
+ 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();
45
45
  if (e && o) {
46
- const U = o.top - e.top;
47
- T.value = U < 2 ? 0 : U;
46
+ const s = o.top - e.top;
47
+ R.value = s < 2 ? 0 : s;
48
48
  }
49
49
  });
50
50
  const z = v(ce), {
51
51
  breadcrumb: V,
52
- collapsedSidebarItems: m,
52
+ collapsedSidebarItems: S,
53
53
  isSidebarOpen: G,
54
- setCollapsedSidebarItem: R,
54
+ setCollapsedSidebarItem: C,
55
55
  hideModels: Q,
56
56
  defaultOpenAllTags: W,
57
- setParsedSpec: _,
58
- scrollToOperation: j
57
+ setParsedSpec: j,
58
+ scrollToOperation: q
59
59
  } = Ce(), {
60
- getPathRoutingId: C,
61
- getSectionId: q,
62
- getTagId: K,
63
- hash: $,
64
- isIntersectionEnabled: E,
65
- pathRouting: O,
66
- updateHash: L
60
+ getPathRoutingId: $,
61
+ getSectionId: K,
62
+ getTagId: _,
63
+ hash: E,
64
+ isIntersectionEnabled: O,
65
+ pathRouting: L,
66
+ updateHash: B
67
67
  } = Be();
68
- O.value = t.configuration.pathRouting, M(() => L());
69
- const B = async (e) => {
68
+ L.value = t.configuration.pathRouting, M(() => B());
69
+ const I = async (e) => {
70
70
  var o;
71
- E.value = !1, L(), e ? j(e) : (o = p.value) == null || o.scrollTo(0, 0), await Ie(100), E.value = !0;
71
+ O.value = !1, B(), e ? q(e) : (o = f.value) == null || o.scrollTo(0, 0), await Ie(100), O.value = !0;
72
72
  };
73
73
  M(() => de()), D(() => {
74
74
  be.on(({ specTitle: e }) => {
75
- we(t.rawSpec, e);
76
- }), window.onhashchange = () => B(decodeURIComponent(window.location.hash.replace(/^#/, ""))), window.onpopstate = () => O.value && B(C(window.location.pathname));
75
+ ye(t.rawSpec, e);
76
+ }), window.onhashchange = () => I(decodeURIComponent(window.location.hash.replace(/^#/, ""))), window.onpopstate = () => L.value && I($(window.location.pathname));
77
77
  });
78
78
  const J = v(
79
79
  () => H.value || !t.configuration.isEditable
80
- ), I = ve((e) => {
80
+ ), U = Se((e) => {
81
81
  if ((e.target.scrollTop ?? 0) < 50) {
82
- const a = t.configuration.pathRouting ? t.configuration.pathRouting.basePath : window.location.pathname;
83
- window.history.replaceState({}, "", a + window.location.search), $.value = "";
82
+ const r = t.configuration.pathRouting ? t.configuration.pathRouting.basePath : window.location.pathname;
83
+ window.history.replaceState({}, "", r + window.location.search), E.value = "";
84
84
  }
85
- }), n = v(() => ({
85
+ }), i = v(() => ({
86
86
  breadcrumb: V.value,
87
87
  spec: t.parsedSpec
88
88
  }));
89
- x(() => t.parsedSpec, _, { deep: !0 }), ee(() => {
90
- var o, a;
89
+ x(() => t.parsedSpec, j, { deep: !0 }), ee(() => {
90
+ var o, r;
91
91
  const e = oe();
92
92
  if (e && (e.payload || (e.payload = { data: P() }), (o = e.payload).data || (o.data = P()), t.configuration.pathRouting)) {
93
- const r = C(e.url);
94
- $.value = r, e.payload.data.hash = r;
95
- for (const s in m)
96
- Object.hasOwn(m, s) && delete m[s];
97
- if (r)
98
- R(q(r), !0);
93
+ const a = $(e.url);
94
+ E.value = a, e.payload.data.hash = a;
95
+ for (const n in S)
96
+ Object.hasOwn(S, n) && delete S[n];
97
+ if (a)
98
+ C(K(a), !0);
99
99
  else {
100
- const s = (a = t.parsedSpec.tags) == null ? void 0 : a[0];
101
- s && R(K(s), !0);
100
+ const n = (r = t.parsedSpec.tags) == null ? void 0 : r[0];
101
+ n && C(_(n), !0);
102
102
  }
103
- e.payload.data["useSidebarContent-collapsedSidebarItems"] = m;
103
+ e.payload.data["useSidebarContent-collapsedSidebarItems"] = S;
104
104
  }
105
105
  }), le(() => {
106
- var r;
106
+ var a;
107
107
  const e = te(), o = "scalar-instance-id";
108
108
  if (!e) return o;
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
- }), S($e, () => t.parsedSpec.security), S(
109
+ let r = e.uid;
110
+ 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}`;
111
+ }), h($e, () => t.parsedSpec.security), h(
112
112
  Ee,
113
113
  () => t.configuration.hideDownloadButton
114
- ), S(
114
+ ), h(
115
115
  Oe,
116
116
  () => t.configuration.hideTestRequestButton
117
- ), S(Le, () => {
117
+ ), h(Le, () => {
118
118
  var e;
119
119
  return (e = t.configuration.spec) == null ? void 0 : e.url;
120
- }), Q.value = t.configuration.hideModels ?? !1, W.value = t.configuration.defaultOpenAllTags ?? !1, ye(t.configuration);
120
+ }), Q.value = t.configuration.hideModels ?? !1, W.value = t.configuration.defaultOpenAllTags ?? !1, we(t.configuration);
121
121
  const X = v(
122
122
  () => `<style>
123
123
  ${ue(t.configuration.theme, {
@@ -125,78 +125,78 @@ const Ue = ["innerHTML"], De = { class: "references-header" }, Me = {
125
125
  })}</style>`
126
126
  );
127
127
  return (e, o) => {
128
- var a;
129
- return h(), b(k, null, [
130
- i("div", { innerHTML: X.value }, null, 8, Ue),
131
- i("div", {
128
+ var r, a;
129
+ return b(), y(k, null, [
130
+ l("div", { innerHTML: X.value }, null, 8, Ue),
131
+ l("div", {
132
132
  ref_key: "documentEl",
133
- ref: p,
133
+ ref: f,
134
134
  class: re(["scalar-app scalar-api-reference references-layout", [
135
135
  {
136
136
  "scalar-scrollbars-obtrusive": z.value,
137
137
  "references-editable": e.configuration.isEditable,
138
138
  "references-sidebar": e.configuration.showSidebar,
139
- "references-sidebar-mobile-open": u(G),
139
+ "references-sidebar-mobile-open": p(G),
140
140
  "references-classic": e.configuration.layout === "classic"
141
141
  },
142
142
  e.$attrs.class
143
143
  ]]),
144
144
  style: ae({
145
- "--scalar-y-offset": `var(--scalar-custom-header-height, ${T.value}px)`
145
+ "--scalar-y-offset": `var(--scalar-custom-header-height, ${R.value}px)`
146
146
  }),
147
147
  onScrollPassive: o[4] || (o[4] = //@ts-ignore
148
- (...r) => u(I) && u(I)(...r))
148
+ (...n) => p(U) && p(U)(...n))
149
149
  }, [
150
- i("div", De, [
151
- l(e.$slots, "header", d(c(n.value)), void 0, !0)
150
+ l("div", De, [
151
+ d(e.$slots, "header", c(u(i.value)), void 0, !0)
152
152
  ]),
153
- e.configuration.showSidebar ? (h(), b("aside", Me, [
154
- i("div", ke, [
155
- f(u(Te), {
153
+ e.configuration.showSidebar ? (b(), y("aside", Me, [
154
+ l("div", ke, [
155
+ g(p(Te), {
156
156
  parsedSpec: e.parsedSpec,
157
157
  tagsSorter: e.configuration.tagsSorter
158
158
  }, {
159
- "sidebar-start": g(() => [
160
- l(e.$slots, "sidebar-start", d(c(n.value)), void 0, !0)
159
+ "sidebar-start": m(() => [
160
+ d(e.$slots, "sidebar-start", c(u(i.value)), void 0, !0)
161
161
  ]),
162
- "sidebar-end": g(() => [
163
- l(e.$slots, "sidebar-end", d(c(n.value)), void 0, !0)
162
+ "sidebar-end": m(() => [
163
+ d(e.$slots, "sidebar-end", c(u(i.value)), void 0, !0)
164
164
  ]),
165
165
  _: 3
166
166
  }, 8, ["parsedSpec", "tagsSorter"])
167
167
  ])
168
- ])) : y("", !0),
169
- se(i("div", Pe, [
170
- i("div", Fe, [
171
- l(e.$slots, "editor", d(c(n.value)), void 0, !0)
168
+ ])) : T("", !0),
169
+ ne(l("div", Pe, [
170
+ l("div", Fe, [
171
+ d(e.$slots, "editor", c(u(i.value)), void 0, !0)
172
172
  ])
173
173
  ], 512), [
174
- [ne, e.configuration.isEditable]
174
+ [se, e.configuration.isEditable]
175
175
  ]),
176
- J.value ? (h(), b(k, { key: 1 }, [
177
- i("div", Ae, [
178
- f(u(Re), {
176
+ J.value ? (b(), y(k, { key: 1 }, [
177
+ l("div", Ae, [
178
+ g(p(Re), {
179
179
  baseServerURL: e.configuration.baseServerURL,
180
180
  layout: e.configuration.layout === "classic" ? "accordion" : "default",
181
181
  parsedSpec: e.parsedSpec,
182
182
  proxy: e.configuration.proxy,
183
183
  servers: e.configuration.servers
184
184
  }, ie({
185
- start: g(() => [
186
- l(e.$slots, "content-start", d(c(n.value)), void 0, !0)
185
+ start: m(() => [
186
+ d(e.$slots, "content-start", c(u(i.value)), void 0, !0)
187
187
  ]),
188
- end: g(() => [
189
- l(e.$slots, "content-end", d(c(n.value)), void 0, !0)
188
+ end: m(() => [
189
+ d(e.$slots, "content-end", c(u(i.value)), void 0, !0)
190
190
  ]),
191
191
  _: 2
192
192
  }, [
193
- (a = e.configuration) != null && a.isEditable ? {
193
+ (r = e.configuration) != null && r.isEditable ? {
194
194
  name: "empty-state",
195
- fn: g(() => {
196
- var r;
195
+ fn: m(() => {
196
+ var n;
197
197
  return [
198
- f(he, {
199
- theme: ((r = e.configuration) == null ? void 0 : r.theme) || "default",
198
+ g(he, {
199
+ theme: ((n = e.configuration) == null ? void 0 : n.theme) || "default",
200
200
  onChangeTheme: o[0] || (o[0] = (s) => e.$emit("changeTheme", s)),
201
201
  onLinkSwaggerFile: o[1] || (o[1] = (s) => e.$emit("linkSwaggerFile")),
202
202
  onLoadSwaggerFile: o[2] || (o[2] = (s) => e.$emit("loadSwaggerFile")),
@@ -208,17 +208,18 @@ const Ue = ["innerHTML"], De = { class: "references-header" }, Me = {
208
208
  } : void 0
209
209
  ]), 1032, ["baseServerURL", "layout", "parsedSpec", "proxy", "servers"])
210
210
  ]),
211
- e.$slots.footer ? (h(), b("div", Ne, [
212
- l(e.$slots, "footer", d(c(n.value)), void 0, !0)
213
- ])) : y("", !0)
214
- ], 64)) : y("", !0),
215
- f(Se, {
211
+ e.$slots.footer ? (b(), y("div", Ne, [
212
+ d(e.$slots, "footer", c(u(i.value)), void 0, !0)
213
+ ])) : T("", !0)
214
+ ], 64)) : T("", !0),
215
+ g(ve, {
216
+ preferredSecurityScheme: (a = e.configuration.authentication) == null ? void 0 : a.preferredSecurityScheme,
216
217
  proxyUrl: e.configuration.proxy,
217
218
  servers: e.configuration.servers,
218
219
  spec: e.configuration.spec
219
- }, null, 8, ["proxyUrl", "servers", "spec"])
220
+ }, null, 8, ["preferredSecurityScheme", "proxyUrl", "servers", "spec"])
220
221
  ], 38),
221
- f(u(fe))
222
+ g(p(fe))
222
223
  ], 64);
223
224
  };
224
225
  }
@@ -1 +1 @@
1
- {"version":3,"file":"SchemaProperty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C,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;QAAC,QAAQ,EAAE,IAAI,CAAA;KAAE;CACzD,CAAC"}
@@ -1,7 +1,7 @@
1
1
  import o from "./SchemaProperty.vue2.js";
2
2
  /* empty css */
3
3
  import r from "../../../_virtual/_plugin-vue_export-helper.js";
4
- const m = /* @__PURE__ */ r(o, [["__scopeId", "data-v-d1d8e2ad"]]);
4
+ const m = /* @__PURE__ */ r(o, [["__scopeId", "data-v-bfe8efb1"]]);
5
5
  export {
6
6
  m as default
7
7
  };