@scalar/api-reference 1.24.41 → 1.24.43

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":"ApiReferenceLayout.vue.d.ts","sourceRoot":"","sources":["../../src/components/ApiReferenceLayout.vue"],"names":[],"mappings":"AAojBA,OAAO,KAAK,EACV,oBAAoB,EAEpB,kBAAkB,EACnB,MAAM,UAAU,CAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAggBjB,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":"AAsjBA,OAAO,KAAK,EACV,oBAAoB,EAEpB,kBAAkB,EACnB,MAAM,UAAU,CAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAkgBjB,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 e from "../_virtual/_plugin-vue_export-helper.js";
5
- const m = /* @__PURE__ */ e(o, [["__scopeId", "data-v-be93deac"]]);
5
+ const a = /* @__PURE__ */ e(o, [["__scopeId", "data-v-cb23ee71"]]);
6
6
  export {
7
- m as default
7
+ a as default
8
8
  };
@@ -1,29 +1,29 @@
1
- import { defineComponent as J, ref as h, onMounted as D, onBeforeMount as F, computed as b, watch as X, onServerPrefetch as Z, useSSRContext as _, getCurrentInstance as x, provide as M, openBlock as v, createElementBlock as S, Fragment as O, createElementVNode as i, normalizeClass as ee, unref as u, normalizeStyle as oe, renderSlot as l, normalizeProps as d, guardReactiveProps as c, createVNode as f, withCtx as m, createCommentVNode as w, withDirectives as te, vShow as re, createSlots as ae } from "vue";
2
- import { provideUseId as ne } from "@headlessui/vue";
3
- import { addScalarClassesToHeadless as se } from "@scalar/components";
1
+ import { defineComponent as X, ref as h, onMounted as B, onBeforeMount as D, computed as b, watch as Z, onServerPrefetch as _, useSSRContext as x, getCurrentInstance as ee, provide as F, openBlock as v, createElementBlock as S, Fragment as M, createElementVNode as i, normalizeClass as oe, unref as u, normalizeStyle as te, renderSlot as l, normalizeProps as d, guardReactiveProps as c, createVNode as f, withCtx as m, createCommentVNode as w, withDirectives as re, vShow as ae, createSlots as ne } from "vue";
2
+ import { provideUseId as se } from "@headlessui/vue";
3
+ import { addScalarClassesToHeadless as ie } from "@scalar/components";
4
4
  import { defaultStateFactory as P } from "@scalar/oas-utils/helpers";
5
- import { getThemeStyles as ie } from "@scalar/themes";
6
- import { useToasts as le, ScalarToasts as de } from "@scalar/use-toasts";
7
- import { useMediaQuery as ce, useResizeObserver as ue, useDebounceFn as pe } from "@vueuse/core";
8
- import fe from "./ApiClientModal.vue.js";
5
+ import { getThemeStyles as le } from "@scalar/themes";
6
+ import { useToasts as de, ScalarToasts as ce } from "@scalar/use-toasts";
7
+ import { useMediaQuery as ue, useResizeObserver as pe, useDebounceFn as fe } from "@vueuse/core";
8
+ import me from "./ApiClientModal.vue.js";
9
9
  /* empty css */
10
- import me from "./GettingStarted.vue.js";
11
- import { downloadSpecBus as ge, downloadSpecFile as ve } from "../helpers/specDownloads.js";
12
- import { useDeprecationWarnings as Se } from "../hooks/useDeprecationWarnings.js";
13
- import he from "./Sidebar/Sidebar.vue.js";
14
- import be from "./Content/Content.vue.js";
15
- import { GLOBAL_SECURITY_SYMBOL as we, HIDE_DOWNLOAD_BUTTON_SYMBOL as ye } from "../helpers/provideSymbols.js";
16
- import { useSidebar as Te } from "../hooks/useSidebar.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 Ie = ["innerHTML"], Le = { class: "references-header" }, Ee = {
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 "./Sidebar/Sidebar.vue.js";
14
+ import we from "./Content/Content.vue.js";
15
+ import { GLOBAL_SECURITY_SYMBOL as ye, HIDE_DOWNLOAD_BUTTON_SYMBOL as Te } from "../helpers/provideSymbols.js";
16
+ import { useSidebar as Re } from "../hooks/useSidebar.js";
17
+ import { useNavState as $e } from "../hooks/useNavState.js";
18
+ import { scrollToId as Ce } from "../helpers/scrollToId.js";
19
+ import { sleep as Ie } from "../helpers/sleep.js";
20
+ const Le = ["innerHTML"], Ee = { class: "references-header" }, ke = {
21
21
  key: 0,
22
22
  class: "references-navigation t-doc__sidebar"
23
- }, ke = { class: "references-navigation-list" }, Be = { class: "references-editor" }, De = { class: "references-editor-textarea" }, Fe = { class: "references-rendered" }, Me = {
23
+ }, Oe = { class: "references-navigation-list" }, Be = { class: "references-editor" }, De = { class: "references-editor-textarea" }, Fe = { class: "references-rendered" }, Me = {
24
24
  key: 0,
25
25
  class: "references-footer"
26
- }, xe = /* @__PURE__ */ J({
26
+ }, eo = /* @__PURE__ */ X({
27
27
  inheritAttrs: !1,
28
28
  __name: "ApiReferenceLayout",
29
29
  props: {
@@ -33,19 +33,19 @@ const Ie = ["innerHTML"], Le = { class: "references-header" }, Ee = {
33
33
  },
34
34
  emits: ["changeTheme", "updateContent", "loadSwaggerFile", "linkSwaggerFile", "toggleDarkMode"],
35
35
  setup(U) {
36
- const t = U, { initializeToasts: A, toast: H } = le();
36
+ const t = U, { initializeToasts: A, toast: H } = de();
37
37
  A((e) => H(e));
38
- const N = ce("(min-width: 1150px)"), z = h("100dvh"), p = h(null);
39
- ue(p, (e) => {
38
+ const N = ue("(min-width: 1150px)"), z = h("100dvh"), p = h(null);
39
+ pe(p, (e) => {
40
40
  z.value = e[0].contentRect.height + "px";
41
41
  });
42
42
  const y = h(0);
43
- D(() => {
43
+ B(() => {
44
44
  var a, r, n;
45
45
  const e = (r = (a = p.value) == null ? void 0 : a.parentElement) == null ? void 0 : r.getBoundingClientRect(), o = (n = p.value) == null ? void 0 : n.getBoundingClientRect();
46
46
  if (e && o) {
47
- const B = o.top - e.top;
48
- y.value = B < 2 ? 0 : B;
47
+ const O = o.top - e.top;
48
+ y.value = O < 2 ? 0 : O;
49
49
  }
50
50
  });
51
51
  const {
@@ -54,29 +54,30 @@ const Ie = ["innerHTML"], Le = { class: "references-header" }, Ee = {
54
54
  isSidebarOpen: V,
55
55
  setCollapsedSidebarItem: T,
56
56
  hideModels: G,
57
- setParsedSpec: W
58
- } = Te(), {
57
+ defaultOpenAllTags: W,
58
+ setParsedSpec: j
59
+ } = Re(), {
59
60
  getPathRoutingId: R,
60
- getSectionId: j,
61
- getTagId: K,
61
+ getSectionId: K,
62
+ getTagId: Q,
62
63
  hash: $,
63
64
  isIntersectionEnabled: C,
64
65
  pathRouting: I,
65
66
  updateHash: L
66
- } = Re();
67
- I.value = t.configuration.pathRouting, F(() => L());
67
+ } = $e();
68
+ I.value = t.configuration.pathRouting, D(() => L());
68
69
  const E = async (e) => {
69
70
  var o;
70
- C.value = !1, L(), e ? $e(e) : (o = p.value) == null || o.scrollTo(0, 0), await Ce(100), C.value = !0;
71
+ C.value = !1, L(), e ? Ce(e) : (o = p.value) == null || o.scrollTo(0, 0), await Ie(100), C.value = !0;
71
72
  };
72
- F(() => se()), D(() => {
73
- ge.on(({ specTitle: e }) => {
74
- ve(t.rawSpec, e);
73
+ D(() => ie()), B(() => {
74
+ ve.on(({ specTitle: e }) => {
75
+ Se(t.rawSpec, e);
75
76
  }), window.onhashchange = () => E(decodeURIComponent(window.location.hash.replace(/^#/, ""))), window.onpopstate = () => I.value && E(R(window.location.pathname));
76
77
  });
77
- const Q = b(
78
+ const q = b(
78
79
  () => N.value || !t.configuration.isEditable
79
- ), k = pe((e) => {
80
+ ), k = fe((e) => {
80
81
  if ((e.target.scrollTop ?? 0) < 50) {
81
82
  const a = t.configuration.pathRouting ? t.configuration.pathRouting.basePath : window.location.pathname;
82
83
  window.history.replaceState({}, "", a + window.location.search), $.value = "";
@@ -85,46 +86,46 @@ const Ie = ["innerHTML"], Le = { class: "references-header" }, Ee = {
85
86
  breadcrumb: Y.value,
86
87
  spec: t.parsedSpec
87
88
  }));
88
- X(() => t.parsedSpec, W, { deep: !0 }), Z(() => {
89
+ Z(() => t.parsedSpec, j, { deep: !0 }), _(() => {
89
90
  var o, a;
90
- const e = _();
91
+ const e = x();
91
92
  if (e && (e.payload || (e.payload = { data: P() }), (o = e.payload).data || (o.data = P()), t.configuration.pathRouting)) {
92
93
  const r = R(e.url);
93
94
  $.value = r, e.payload.data.hash = r;
94
95
  for (const n in g)
95
96
  Object.hasOwn(g, n) && delete g[n];
96
97
  if (r)
97
- T(j(r), !0);
98
+ T(K(r), !0);
98
99
  else {
99
100
  const n = (a = t.parsedSpec.tags) == null ? void 0 : a[0];
100
- n && T(K(n), !0);
101
+ n && T(Q(n), !0);
101
102
  }
102
103
  e.payload.data["useSidebarContent-collapsedSidebarItems"] = g;
103
104
  }
104
- }), ne(() => {
105
+ }), se(() => {
105
106
  var r;
106
- const e = x(), o = "scalar-instance-id";
107
+ const e = ee(), o = "scalar-instance-id";
107
108
  if (!e) return o;
108
109
  let a = e.uid;
109
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}`;
110
- }), M(we, () => t.parsedSpec.security), M(
111
- ye,
111
+ }), F(ye, () => t.parsedSpec.security), F(
112
+ Te,
112
113
  () => t.configuration.hideDownloadButton
113
- ), G.value = t.configuration.hideModels ?? !1, Se(t.configuration);
114
- const q = b(
114
+ ), G.value = t.configuration.hideModels ?? !1, W.value = t.configuration.defaultOpenAllTags ?? !1, he(t.configuration);
115
+ const J = b(
115
116
  () => `<style>
116
- ${ie(t.configuration.theme, {
117
+ ${le(t.configuration.theme, {
117
118
  fonts: t.configuration.withDefaultFonts
118
119
  })}</style>`
119
120
  );
120
121
  return (e, o) => {
121
122
  var a;
122
- return v(), S(O, null, [
123
- i("div", { innerHTML: q.value }, null, 8, Ie),
123
+ return v(), S(M, null, [
124
+ i("div", { innerHTML: J.value }, null, 8, Le),
124
125
  i("div", {
125
126
  ref_key: "documentEl",
126
127
  ref: p,
127
- class: ee(["scalar-app scalar-api-reference references-layout", [
128
+ class: oe(["scalar-app scalar-api-reference references-layout", [
128
129
  {
129
130
  "references-editable": e.configuration.isEditable,
130
131
  "references-sidebar": e.configuration.showSidebar,
@@ -133,18 +134,18 @@ const Ie = ["innerHTML"], Le = { class: "references-header" }, Ee = {
133
134
  },
134
135
  e.$attrs.class
135
136
  ]]),
136
- style: oe({
137
+ style: te({
137
138
  "--scalar-y-offset": `var(--scalar-custom-header-height, ${y.value}px)`
138
139
  }),
139
140
  onScrollPassive: o[4] || (o[4] = //@ts-ignore
140
141
  (...r) => u(k) && u(k)(...r))
141
142
  }, [
142
- i("div", Le, [
143
+ i("div", Ee, [
143
144
  l(e.$slots, "header", d(c(s.value)), void 0, !0)
144
145
  ]),
145
- e.configuration.showSidebar ? (v(), S("aside", Ee, [
146
- i("div", ke, [
147
- f(u(he), { parsedSpec: e.parsedSpec }, {
146
+ e.configuration.showSidebar ? (v(), S("aside", ke, [
147
+ i("div", Oe, [
148
+ f(u(be), { parsedSpec: e.parsedSpec }, {
148
149
  "sidebar-start": m(() => [
149
150
  l(e.$slots, "sidebar-start", d(c(s.value)), void 0, !0)
150
151
  ]),
@@ -155,22 +156,22 @@ const Ie = ["innerHTML"], Le = { class: "references-header" }, Ee = {
155
156
  }, 8, ["parsedSpec"])
156
157
  ])
157
158
  ])) : w("", !0),
158
- te(i("div", Be, [
159
+ re(i("div", Be, [
159
160
  i("div", De, [
160
161
  l(e.$slots, "editor", d(c(s.value)), void 0, !0)
161
162
  ])
162
163
  ], 512), [
163
- [re, e.configuration.isEditable]
164
+ [ae, e.configuration.isEditable]
164
165
  ]),
165
- Q.value ? (v(), S(O, { key: 1 }, [
166
+ q.value ? (v(), S(M, { key: 1 }, [
166
167
  i("div", Fe, [
167
- f(u(be), {
168
+ f(u(we), {
168
169
  baseServerURL: e.configuration.baseServerURL,
169
170
  layout: e.configuration.layout === "classic" ? "accordion" : "default",
170
171
  parsedSpec: e.parsedSpec,
171
172
  proxy: e.configuration.proxy,
172
173
  servers: e.configuration.servers
173
- }, ae({
174
+ }, ne({
174
175
  start: m(() => [
175
176
  l(e.$slots, "content-start", d(c(s.value)), void 0, !0)
176
177
  ]),
@@ -184,7 +185,7 @@ const Ie = ["innerHTML"], Le = { class: "references-header" }, Ee = {
184
185
  fn: m(() => {
185
186
  var r;
186
187
  return [
187
- f(me, {
188
+ f(ge, {
188
189
  theme: ((r = e.configuration) == null ? void 0 : r.theme) || "default",
189
190
  onChangeTheme: o[0] || (o[0] = (n) => e.$emit("changeTheme", n)),
190
191
  onLinkSwaggerFile: o[1] || (o[1] = (n) => e.$emit("linkSwaggerFile")),
@@ -201,16 +202,16 @@ const Ie = ["innerHTML"], Le = { class: "references-header" }, Ee = {
201
202
  l(e.$slots, "footer", d(c(s.value)), void 0, !0)
202
203
  ])) : w("", !0)
203
204
  ], 64)) : w("", !0),
204
- f(fe, {
205
+ f(me, {
205
206
  proxyUrl: e.configuration.proxy,
206
207
  spec: e.configuration.spec
207
208
  }, null, 8, ["proxyUrl", "spec"])
208
209
  ], 38),
209
- f(u(de))
210
+ f(u(ce))
210
211
  ], 64);
211
212
  };
212
213
  }
213
214
  });
214
215
  export {
215
- xe as default
216
+ eo as default
216
217
  };
@@ -1 +1 @@
1
- {"version":3,"file":"Tag.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/Content/Tag/Tag.vue"],"names":[],"mappings":"AA6EA,OAAO,KAAK,EAAE,IAAI,EAAE,GAAG,EAAE,MAAM,mBAAmB,CAAA;;;;;;;;;;;;AAkKlD,wBAAwG;AAOxG,KAAK,uBAAuB,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG;IACpC,QAAO;QACN,MAAM,EAAE,CA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AC,CAAC,CAAC,CAAC,CAAC,CAAC;QAAC,QAAQ,EAAE,IAAI,CAAA;KAAE;CACzD,CAAC"}
@@ -1,7 +1,7 @@
1
1
  import o from "./Tag.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-f193be30"]]);
4
+ const p = /* @__PURE__ */ t(o, [["__scopeId", "data-v-e7d35918"]]);
5
5
  export {
6
- m as default
6
+ p as default
7
7
  };
@@ -1,50 +1,52 @@
1
- import { defineComponent as h, ref as v, openBlock as n, createBlock as r, unref as i, withCtx as S, createCommentVNode as k, renderSlot as y } from "vue";
2
- import C from "../../ShowMoreButton.vue.js";
3
- import T from "./Endpoints.vue.js";
4
- import { observeMutations as A } from "./mutationObserver.js";
5
- import N from "../../Section/SectionContainer.vue.js";
6
- import { useSidebar as w } from "../../../hooks/useSidebar.js";
7
- import { useNavState as B } from "../../../hooks/useNavState.js";
8
- const H = /* @__PURE__ */ h({
1
+ import { defineComponent as b, ref as h, computed as S, openBlock as r, createBlock as a, unref as i, withCtx as k, createCommentVNode as y, renderSlot as C } from "vue";
2
+ import T from "../../ShowMoreButton.vue.js";
3
+ import A from "./Endpoints.vue.js";
4
+ import { observeMutations as N } from "./mutationObserver.js";
5
+ import w from "../../Section/SectionContainer.vue.js";
6
+ import { useSidebar as B } from "../../../hooks/useSidebar.js";
7
+ import { useNavState as E } from "../../../hooks/useNavState.js";
8
+ const H = /* @__PURE__ */ b({
9
9
  __name: "Tag",
10
10
  props: {
11
11
  id: {},
12
12
  tag: {},
13
13
  spec: {}
14
14
  },
15
- setup(c) {
16
- const m = c, s = v(null), { collapsedSidebarItems: f } = w(), { getTagId: l } = B(), p = (e) => {
17
- var o;
18
- return ((o = m.spec.tags) == null ? void 0 : o.length) !== 1 || (e == null ? void 0 : e.name) !== "default" || (e == null ? void 0 : e.description) !== "";
19
- }, a = (e) => {
15
+ setup(m) {
16
+ const n = m, s = h(null), { collapsedSidebarItems: l } = B(), { getTagId: f } = E(), p = S(
17
+ () => {
18
+ var e, o, t;
19
+ return ((e = n.spec.tags) == null ? void 0 : e.length) !== 1 || ((o = n.tag) == null ? void 0 : o.name) !== "default" || ((t = n.tag) == null ? void 0 : t.description) !== "";
20
+ }
21
+ ), d = (e) => {
20
22
  window.location.href = `#${e}`;
21
23
  }, u = (e) => {
22
- A(s, (o, t) => {
23
- o.forEach((b) => {
24
- Array.from(b.addedNodes).some((d) => d instanceof HTMLElement && d.id === e) && (a(e), t.disconnect());
24
+ N(s, (o, t) => {
25
+ o.forEach((v) => {
26
+ Array.from(v.addedNodes).some((c) => c instanceof HTMLElement && c.id === e) && (d(e), t.disconnect());
25
27
  });
26
28
  });
27
29
  }, g = (e) => {
28
- document.getElementById(e) ? a(e) : u(e);
30
+ document.getElementById(e) ? d(e) : u(e);
29
31
  };
30
- return (e, o) => (n(), r(i(N), {
32
+ return (e, o) => (r(), a(i(w), {
31
33
  ref_key: "sectionContainerRef",
32
34
  ref: s,
33
35
  class: "tag-section-container"
34
36
  }, {
35
- default: S(() => {
37
+ default: k(() => {
36
38
  var t;
37
39
  return [
38
- p(e.tag) ? (n(), r(T, {
40
+ p.value ? (r(), a(A, {
39
41
  key: 0,
40
42
  id: e.id,
41
43
  tag: e.tag,
42
44
  onObserveAndNavigate: g
43
- }, null, 8, ["id", "tag"])) : k("", !0),
44
- !i(f)[i(l)(e.tag)] && ((t = e.tag.operations) == null ? void 0 : t.length) > 1 ? (n(), r(C, {
45
+ }, null, 8, ["id", "tag"])) : y("", !0),
46
+ !i(l)[i(f)(e.tag)] && ((t = e.tag.operations) == null ? void 0 : t.length) > 1 ? (r(), a(T, {
45
47
  key: 1,
46
48
  id: e.id ?? ""
47
- }, null, 8, ["id"])) : y(e.$slots, "default", { key: 2 }, void 0, !0)
49
+ }, null, 8, ["id"])) : C(e.$slots, "default", { key: 2 }, void 0, !0)
48
50
  ];
49
51
  }),
50
52
  _: 3
@@ -31,6 +31,7 @@ export declare function useSidebar(options?: {
31
31
  setCollapsedSidebarItem: typeof setCollapsedSidebarItem;
32
32
  hideModels: import("vue").Ref<boolean>;
33
33
  setParsedSpec: typeof setParsedSpec;
34
+ defaultOpenAllTags: import("vue").Ref<boolean>;
34
35
  };
35
36
  export {};
36
37
  //# sourceMappingURL=useSidebar.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"useSidebar.d.ts","sourceRoot":"","sources":["../../src/hooks/useSidebar.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,IAAI,EAA6B,MAAM,mBAAmB,CAAA;AAexE,MAAM,MAAM,YAAY,GAAG;IACzB,EAAE,EAAE,MAAM,CAAA;IACV,KAAK,EAAE,MAAM,CAAA;IACb,YAAY,CAAC,EAAE,MAAM,CAAA;IACrB,QAAQ,CAAC,EAAE,YAAY,EAAE,CAAA;IACzB,MAAM,CAAC,EAAE,MAAM,IAAI,CAAA;IACnB,QAAQ,CAAC,EAAE,MAAM,CAAA;IACjB,IAAI,EAAE,OAAO,CAAA;IACb,UAAU,CAAC,EAAE,OAAO,CAAA;IACpB,OAAO,CAAC,EAAE,OAAO,CAAA;CAClB,CAAA;AAeD,iBAAS,aAAa,CAAC,IAAI,EAAE,IAAI,QAEhC;AAKD,KAAK,qBAAqB,GAAG,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAA;AAMpD,iBAAS,0BAA0B,CAAC,GAAG,EAAE,MAAM,QAE9C;AAED,iBAAS,uBAAuB,CAAC,GAAG,EAAE,MAAM,EAAE,KAAK,EAAE,OAAO,QAE3D;AAkOD;;GAEG;AACH,wBAAgB,UAAU,CAAC,OAAO,CAAC,EAAE;IAAE,UAAU,EAAE,IAAI,CAAA;CAAE;;;;;;;;;;;;EA2CxD"}
1
+ {"version":3,"file":"useSidebar.d.ts","sourceRoot":"","sources":["../../src/hooks/useSidebar.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,IAAI,EAA6B,MAAM,mBAA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