@scalar/api-reference 1.28.6 → 1.28.8

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 (43) hide show
  1. package/CHANGELOG.md +38 -0
  2. package/dist/browser/standalone.js +13884 -13880
  3. package/dist/browser/webpack-stats.json +1 -1
  4. package/dist/components/ApiReference.vue.d.ts +2 -2
  5. package/dist/components/ApiReference.vue.d.ts.map +1 -1
  6. package/dist/components/ApiReference.vue.js +26 -15
  7. package/dist/components/ApiReferenceLayout.vue.d.ts.map +1 -1
  8. package/dist/components/ApiReferenceLayout.vue.js +2 -2
  9. package/dist/components/ApiReferenceLayout.vue2.js +128 -129
  10. package/dist/components/Sidebar/Sidebar.vue.d.ts.map +1 -1
  11. package/dist/components/Sidebar/Sidebar.vue.js +1 -1
  12. package/dist/components/Sidebar/Sidebar.vue2.js +89 -76
  13. package/dist/components/Sidebar/SidebarElement.vue.d.ts.map +1 -1
  14. package/dist/components/Sidebar/SidebarElement.vue.js +2 -2
  15. package/dist/components/Sidebar/SidebarElement.vue2.js +38 -38
  16. package/dist/features/ExampleRequest/ExampleRequest.vue.d.ts +46 -1
  17. package/dist/features/ExampleRequest/ExampleRequest.vue.d.ts.map +1 -1
  18. package/dist/features/ExampleRequest/ExampleRequest.vue.js +2 -2
  19. package/dist/features/ExampleRequest/ExampleRequest.vue2.js +83 -74
  20. package/dist/features/Search/useSearchIndex.d.ts.map +1 -1
  21. package/dist/features/Search/useSearchIndex.js +9 -9
  22. package/dist/helpers/freeze-element.d.ts +11 -0
  23. package/dist/helpers/freeze-element.d.ts.map +1 -0
  24. package/dist/helpers/freeze-element.js +20 -0
  25. package/dist/hooks/index.d.ts +0 -2
  26. package/dist/hooks/index.d.ts.map +1 -1
  27. package/dist/hooks/useMultipleDocuments.d.ts +9 -4
  28. package/dist/hooks/useMultipleDocuments.d.ts.map +1 -1
  29. package/dist/hooks/useMultipleDocuments.js +63 -39
  30. package/dist/hooks/useNavState.d.ts +13 -4
  31. package/dist/hooks/useNavState.d.ts.map +1 -1
  32. package/dist/hooks/useNavState.js +52 -48
  33. package/dist/index.js +1 -1
  34. package/dist/standalone/lib/html-api.d.ts +5 -5
  35. package/dist/standalone/lib/html-api.d.ts.map +1 -1
  36. package/dist/style.css +1 -1
  37. package/dist/types.d.ts +3 -12
  38. package/dist/types.d.ts.map +1 -1
  39. package/package.json +12 -11
  40. package/dist/hooks/useClientStore.d.ts +0 -2
  41. package/dist/hooks/useClientStore.d.ts.map +0 -1
  42. package/dist/hooks/useRefOnMount.d.ts +0 -6
  43. package/dist/hooks/useRefOnMount.d.ts.map +0 -1
@@ -1,10 +1,10 @@
1
- import { defineComponent as B, ref as E, watch as F, onMounted as N, openBlock as r, createElementBlock as i, renderSlot as V, createElementVNode as w, createVNode as I, withCtx as b, Fragment as d, renderList as v, unref as a, toDisplayString as L, createBlock as u, createCommentVNode as h } from "vue";
2
- import y from "./SidebarElement.vue.js";
3
- import T from "./SidebarGroup.vue.js";
4
- import { useNavState as G } from "../../hooks/useNavState.js";
5
- import { useSidebar as D } from "../../hooks/useSidebar.js";
1
+ import { defineComponent as F, ref as E, watch as I, onMounted as N, onUnmounted as L, openBlock as r, createElementBlock as d, renderSlot as w, createElementVNode as V, createVNode as G, withCtx as h, Fragment as o, renderList as y, unref as n, toDisplayString as M, createBlock as f, createCommentVNode as v } from "vue";
2
+ import S from "./SidebarElement.vue.js";
3
+ import g from "./SidebarGroup.vue.js";
4
+ import { useNavState as D } from "../../hooks/useNavState.js";
5
+ import { useSidebar as H } from "../../hooks/useSidebar.js";
6
6
  import { sleep as C } from "../../helpers/sleep.js";
7
- const H = { class: "sidebar" }, M = ["aria-label"], R = { class: "sidebar-group-title" }, j = -160, Q = /* @__PURE__ */ B({
7
+ const R = { class: "sidebar" }, U = ["aria-label"], j = { class: "sidebar-group-title" }, q = -160, W = /* @__PURE__ */ F({
8
8
  __name: "Sidebar",
9
9
  props: {
10
10
  parsedSpec: {},
@@ -12,49 +12,62 @@ const H = { class: "sidebar" }, M = ["aria-label"], R = { class: "sidebar-group-
12
12
  operationsSorter: { type: [String, Function] }
13
13
  },
14
14
  setup(A) {
15
- const S = A, { hash: c, isIntersectionEnabled: $ } = G(), { items: O, toggleCollapsedSidebarItem: g, collapsedSidebarItems: _ } = D(
15
+ const m = A, { hash: p, isIntersectionEnabled: $ } = D(), { items: O, toggleCollapsedSidebarItem: T, collapsedSidebarItems: _ } = H(
16
16
  {
17
- parsedSpec: S.parsedSpec,
18
- tagsSorter: S.tagsSorter,
19
- operationsSorter: S.operationsSorter
17
+ parsedSpec: m.parsedSpec,
18
+ tagsSorter: m.tagsSorter,
19
+ operationsSorter: m.operationsSorter
20
20
  }
21
- ), m = E(null), p = E(!0);
22
- F(c, (o) => {
23
- !$.value || p.value || typeof window > "u" || k(o);
21
+ ), b = E(null), u = E(!0);
22
+ I(p, (l) => {
23
+ !$.value || u.value || typeof window > "u" || k(l);
24
24
  });
25
- const k = (o) => {
26
- var e, t, l, s;
27
- const n = document.getElementById(`sidebar-${o}`);
28
- if (!n || !m.value)
25
+ const k = (l) => {
26
+ var e, t, s, a;
27
+ const i = document.getElementById(`sidebar-${l}`);
28
+ if (!i || !b.value)
29
29
  return;
30
- let f = j;
31
- n.getAttribute("data-sidebar-type") === "heading" ? f += n.offsetTop + ((e = n.getElementsByClassName("sidebar-heading")) == null ? void 0 : e[0]).offsetHeight : f += n.offsetTop + (((t = n.parentElement) == null ? void 0 : t.offsetTop) ?? 0) + (((s = (l = n.parentElement) == null ? void 0 : l.parentElement) == null ? void 0 : s.offsetTop) ?? 0), m.value.scrollTo({ top: f, behavior: "smooth" });
30
+ let c = q;
31
+ i.getAttribute("data-sidebar-type") === "heading" ? c += i.offsetTop + ((e = i.getElementsByClassName("sidebar-heading")) == null ? void 0 : e[0]).offsetHeight : c += i.offsetTop + (((t = i.parentElement) == null ? void 0 : t.offsetTop) ?? 0) + (((a = (s = i.parentElement) == null ? void 0 : s.parentElement) == null ? void 0 : a.offsetTop) ?? 0), b.value.scrollTo({ top: c, behavior: "smooth" });
32
+ }, B = (l) => {
33
+ if (!b.value)
34
+ return;
35
+ const i = new MutationObserver((c, e) => {
36
+ document.getElementById(`sidebar-${l}`) && (k(l), u.value = !1, e.disconnect());
37
+ });
38
+ return i.observe(b.value, {
39
+ childList: !0,
40
+ subtree: !0
41
+ }), i;
32
42
  };
33
43
  return N(() => {
34
- setTimeout(() => k(c.value), 500), p.value = !1;
35
- }), (o, n) => {
36
- var f;
37
- return r(), i("div", H, [
38
- V(o.$slots, "sidebar-start", {}, void 0, !0),
39
- w("nav", {
44
+ const l = B(p.value);
45
+ L(() => {
46
+ l == null || l.disconnect();
47
+ });
48
+ }), (l, i) => {
49
+ var c;
50
+ return r(), d("div", R, [
51
+ w(l.$slots, "sidebar-start", {}, void 0, !0),
52
+ V("nav", {
40
53
  ref_key: "scrollerEl",
41
- ref: m,
42
- "aria-label": `Table of contents for ${(f = o.parsedSpec.info) == null ? void 0 : f.title}`,
54
+ ref: b,
55
+ "aria-label": `Table of contents for ${(c = l.parsedSpec.info) == null ? void 0 : c.title}`,
43
56
  class: "sidebar-pages custom-scroll custom-scroll-self-contain-overflow"
44
57
  }, [
45
- I(T, { level: 0 }, {
46
- default: b(() => [
47
- (r(!0), i(d, null, v(a(O).entries, (e) => (r(), i(d, {
58
+ G(g, { level: 0 }, {
59
+ default: h(() => [
60
+ (r(!0), d(o, null, y(n(O).entries, (e) => (r(), d(o, {
48
61
  key: e.id
49
62
  }, [
50
- e.isGroup ? (r(), i(d, { key: 0 }, [
51
- w("li", R, L(e.displayTitle ?? e.title), 1),
52
- (r(!0), i(d, null, v(e.children, (t) => (r(), u(y, {
63
+ e.isGroup ? (r(), d(o, { key: 0 }, [
64
+ V("li", j, M(e.displayTitle ?? e.title), 1),
65
+ (r(!0), d(o, null, y(e.children, (t) => (r(), f(S, {
53
66
  key: t.id,
54
67
  id: `sidebar-${t.id}`,
55
68
  "data-sidebar-type": "heading",
56
69
  hasChildren: t.children && t.children.length > 0,
57
- isActive: a(c) === t.id,
70
+ isActive: n(p) === t.id,
58
71
  item: {
59
72
  id: t.id,
60
73
  title: t.displayTitle ?? t.title,
@@ -62,49 +75,49 @@ const H = { class: "sidebar" }, M = ["aria-label"], R = { class: "sidebar-group-
62
75
  httpVerb: t.httpVerb,
63
76
  deprecated: t.deprecated ?? !1
64
77
  },
65
- open: a(_)[t.id] ?? !1,
78
+ open: n(_)[t.id] ?? !1,
66
79
  onToggleOpen: async () => {
67
- p.value = !0, a(g)(t.id), await a(C)(100), p.value = !1;
80
+ u.value = !0, n(T)(t.id), await n(C)(100), u.value = !1;
68
81
  }
69
82
  }, {
70
- default: b(() => {
71
- var l;
83
+ default: h(() => {
84
+ var s;
72
85
  return [
73
- t.children && ((l = t.children) == null ? void 0 : l.length) > 0 ? (r(), u(T, {
86
+ t.children && ((s = t.children) == null ? void 0 : s.length) > 0 ? (r(), f(g, {
74
87
  key: 0,
75
88
  level: 1
76
89
  }, {
77
- default: b(() => [
78
- (r(!0), i(d, null, v(t.children, (s) => (r(), i(d, {
79
- key: s.id
90
+ default: h(() => [
91
+ (r(!0), d(o, null, y(t.children, (a) => (r(), d(o, {
92
+ key: a.id
80
93
  }, [
81
- e.show ? (r(), u(y, {
94
+ e.show ? (r(), f(S, {
82
95
  key: 0,
83
- id: `sidebar-${s.id}`,
84
- isActive: a(c) === s.id,
96
+ id: `sidebar-${a.id}`,
97
+ isActive: n(p) === a.id,
85
98
  item: {
86
- id: s.id,
87
- title: s.displayTitle ?? s.title,
88
- select: s.select,
89
- httpVerb: s.httpVerb,
90
- deprecated: s.deprecated ?? !1
99
+ id: a.id,
100
+ title: a.displayTitle ?? a.title,
101
+ select: a.select,
102
+ httpVerb: a.httpVerb,
103
+ deprecated: a.deprecated ?? !1
91
104
  }
92
- }, null, 8, ["id", "isActive", "item"])) : h("", !0)
105
+ }, null, 8, ["id", "isActive", "item"])) : v("", !0)
93
106
  ], 64))), 128))
94
107
  ]),
95
108
  _: 2
96
- }, 1024)) : h("", !0)
109
+ }, 1024)) : v("", !0)
97
110
  ];
98
111
  }),
99
112
  _: 2
100
113
  }, 1032, ["id", "hasChildren", "isActive", "item", "open", "onToggleOpen"]))), 128))
101
- ], 64)) : (r(), i(d, { key: 1 }, [
102
- e.show ? (r(), u(y, {
114
+ ], 64)) : (r(), d(o, { key: 1 }, [
115
+ e.show ? (r(), f(S, {
103
116
  key: 0,
104
117
  id: `sidebar-${e.id}`,
105
118
  "data-sidebar-type": "heading",
106
119
  hasChildren: e.children && e.children.length > 0,
107
- isActive: a(c) === e.id,
120
+ isActive: n(p) === e.id,
108
121
  item: {
109
122
  id: e.id,
110
123
  title: e.displayTitle ?? e.title,
@@ -112,53 +125,53 @@ const H = { class: "sidebar" }, M = ["aria-label"], R = { class: "sidebar-group-
112
125
  httpVerb: e.httpVerb,
113
126
  deprecated: e.deprecated ?? !1
114
127
  },
115
- open: a(_)[e.id] ?? !1,
128
+ open: n(_)[e.id] ?? !1,
116
129
  onToggleOpen: async () => {
117
- p.value = !0, a(g)(e.id), await a(C)(100), p.value = !1;
130
+ u.value = !0, n(T)(e.id), await n(C)(100), u.value = !1;
118
131
  }
119
132
  }, {
120
- default: b(() => {
133
+ default: h(() => {
121
134
  var t;
122
135
  return [
123
- e.children && ((t = e.children) == null ? void 0 : t.length) > 0 ? (r(), u(T, {
136
+ e.children && ((t = e.children) == null ? void 0 : t.length) > 0 ? (r(), f(g, {
124
137
  key: 0,
125
138
  level: 1
126
139
  }, {
127
- default: b(() => [
128
- (r(!0), i(d, null, v(e.children, (l) => (r(), i(d, {
129
- key: l.id
140
+ default: h(() => [
141
+ (r(!0), d(o, null, y(e.children, (s) => (r(), d(o, {
142
+ key: s.id
130
143
  }, [
131
- e.show ? (r(), u(y, {
144
+ e.show ? (r(), f(S, {
132
145
  key: 0,
133
- id: `sidebar-${l.id}`,
134
- isActive: a(c) === l.id,
146
+ id: `sidebar-${s.id}`,
147
+ isActive: n(p) === s.id,
135
148
  item: {
136
- id: l.id,
137
- title: l.displayTitle ?? l.title,
138
- select: l.select,
139
- httpVerb: l.httpVerb,
140
- deprecated: l.deprecated ?? !1
149
+ id: s.id,
150
+ title: s.displayTitle ?? s.title,
151
+ select: s.select,
152
+ httpVerb: s.httpVerb,
153
+ deprecated: s.deprecated ?? !1
141
154
  }
142
- }, null, 8, ["id", "isActive", "item"])) : h("", !0)
155
+ }, null, 8, ["id", "isActive", "item"])) : v("", !0)
143
156
  ], 64))), 128))
144
157
  ]),
145
158
  _: 2
146
- }, 1024)) : h("", !0)
159
+ }, 1024)) : v("", !0)
147
160
  ];
148
161
  }),
149
162
  _: 2
150
- }, 1032, ["id", "hasChildren", "isActive", "item", "open", "onToggleOpen"])) : h("", !0)
163
+ }, 1032, ["id", "hasChildren", "isActive", "item", "open", "onToggleOpen"])) : v("", !0)
151
164
  ], 64))
152
165
  ], 64))), 128))
153
166
  ]),
154
167
  _: 1
155
168
  })
156
- ], 8, M),
157
- V(o.$slots, "sidebar-end", {}, void 0, !0)
169
+ ], 8, U),
170
+ w(l.$slots, "sidebar-end", {}, void 0, !0)
158
171
  ]);
159
172
  };
160
173
  }
161
174
  });
162
175
  export {
163
- Q as default
176
+ W as default
164
177
  };
@@ -1 +1 @@
1
- {"version":3,"file":"SidebarElement.vue.d.ts","sourceRoot":"","sources":["../../../src/components/Sidebar/SidebarElement.vue"],"names":[],"mappings":"AAyWA,KAAK,WAAW,GAAG;IACjB,EAAE,EAAE,MAAM,CAAA;IACV,IAAI,EAAE;QACJ,EAAE,EAAE,MAAM,CAAA;QACV,KAAK,EAAE,MAAM,CAAA;QACb,MAAM,CAAC,EAAE,MAAM,IAAI,CAAA;QACnB,IAAI,CAAC,EAAE,MAAM,CAAA;QACb,IAAI,CAAC,EAAE;YACL,GAAG,EAAE,MAAM,CAAA;SACZ,CAAA;QACD,QAAQ,CAAC,EAAE,MAAM,CAAA;QACjB,UAAU,CAAC,EAAE,OAAO,CAAA;KACrB,CAAA;IACD,QAAQ,CAAC,EAAE,OAAO,CAAA;IAClB,WAAW,CAAC,EAAE,OAAO,CAAA;IACrB,IAAI,CAAC,EAAE,OAAO,CAAA;CACf,CAAC;AAwEF,iBAAS,cAAc;WAoKT,OAAO,IAA6B;;yBATpB,GAAG;+BACG,GAAG;;;;EAatC;AAgBD,KAAK,oBAAoB,GAAG,UAAU,CAAC,OAAO,cAAc,CAAC,CAAC;AAC9D,QAAA,MAAM,eAAe;;;;4FAQnB,CAAC;wBACkB,uBAAuB,CAAC,OAAO,eAAe,EAAE,oBAAoB,CAAC,OAAO,CAAC,CAAC;AAAnG,wBAAoG;AAWpG,KAAK,uBAAuB,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG;IACxC,QAAO;QACN,MAAM,EAAE,CAAC,CAAC;KAEV,CAAA;CACD,CAAC"}
1
+ {"version":3,"file":"SidebarElement.vue.d.ts","sourceRoot":"","sources":["../../../src/components/Sidebar/SidebarElement.vue"],"names":[],"mappings":"AAwWA,KAAK,WAAW,GAAG;IACjB,EAAE,EAAE,MAAM,CAAA;IACV,IAAI,EAAE;QACJ,EAAE,EAAE,MAAM,CAAA;QACV,KAAK,EAAE,MAAM,CAAA;QACb,MAAM,CAAC,EAAE,MAAM,IAAI,CAAA;QACnB,IAAI,CAAC,EAAE,MAAM,CAAA;QACb,IAAI,CAAC,EAAE;YACL,GAAG,EAAE,MAAM,CAAA;SACZ,CAAA;QACD,QAAQ,CAAC,EAAE,MAAM,CAAA;QACjB,UAAU,CAAC,EAAE,OAAO,CAAA;KACrB,CAAA;IACD,QAAQ,CAAC,EAAE,OAAO,CAAA;IAClB,WAAW,CAAC,EAAE,OAAO,CAAA;IACrB,IAAI,CAAC,EAAE,OAAO,CAAA;CACf,CAAC;AAuEF,iBAAS,cAAc;WAoKT,OAAO,IAA6B;;yBATpB,GAAG;+BACG,GAAG;;;;EAatC;AAgBD,KAAK,oBAAoB,GAAG,UAAU,CAAC,OAAO,cAAc,CAAC,CAAC;AAC9D,QAAA,MAAM,eAAe;;;;4FAQnB,CAAC;wBACkB,uBAAuB,CAAC,OAAO,eAAe,EAAE,oBAAoB,CAAC,OAAO,CAAC,CAAC;AAAnG,wBAAoG;AAWpG,KAAK,uBAAuB,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG;IACxC,QAAO;QACN,MAAM,EAAE,CAAC,CAAC;KAEV,CAAA;CACD,CAAC"}
@@ -1,7 +1,7 @@
1
1
  import o from "./SidebarElement.vue2.js";
2
2
  /* empty css */
3
3
  import t from "../../_virtual/_plugin-vue_export-helper.js";
4
- const a = /* @__PURE__ */ t(o, [["__scopeId", "data-v-3b154299"]]);
4
+ const m = /* @__PURE__ */ t(o, [["__scopeId", "data-v-eb72afb2"]]);
5
5
  export {
6
- a as default
6
+ m as default
7
7
  };
@@ -1,21 +1,21 @@
1
- import { defineComponent as A, openBlock as n, createElementBlock as l, createElementVNode as a, normalizeClass as T, unref as m, withModifiers as V, createVNode as b, withCtx as E, createTextVNode as c, toDisplayString as h, createCommentVNode as s, createBlock as N, renderSlot as v } from "vue";
2
- import { ScalarSidebarGroupToggle as O, ScalarIcon as U } from "@scalar/components";
3
- import { combineUrlAndPath as H } from "@scalar/oas-utils/helpers";
4
- import { useConfig as I } from "../../hooks/useConfig.js";
5
- import P from "./SidebarHttpBadge.vue.js";
1
+ import { defineComponent as $, openBlock as n, createElementBlock as d, createElementVNode as a, normalizeClass as A, unref as m, withModifiers as T, createVNode as b, withCtx as V, createTextVNode as h, toDisplayString as c, createCommentVNode as s, createBlock as E, renderSlot as v } from "vue";
2
+ import { ScalarSidebarGroupToggle as N, ScalarIcon as O } from "@scalar/components";
3
+ import { combineUrlAndPath as R } from "@scalar/oas-utils/helpers";
4
+ import { useConfig as U } from "../../hooks/useConfig.js";
5
+ import H from "./SidebarHttpBadge.vue.js";
6
6
  import { sleep as C } from "../../helpers/sleep.js";
7
- import { useNavState as D } from "../../hooks/useNavState.js";
8
- import { scrollToId as L } from "../../helpers/scrollToId.js";
9
- const M = ["id"], R = {
7
+ import { useNavState as I } from "../../hooks/useNavState.js";
8
+ import { scrollToId as P } from "../../helpers/scrollToId.js";
9
+ const D = ["id"], L = {
10
10
  key: 0,
11
11
  class: "sidebar-heading-chevron"
12
- }, z = ["aria-expanded"], F = ["href", "tabindex"], G = { class: "sidebar-heading-link-title" }, j = {
12
+ }, M = ["aria-expanded"], z = ["href", "tabindex"], F = { class: "sidebar-heading-link-title" }, G = {
13
13
  key: 1,
14
14
  class: "sidebar-heading-link-method"
15
- }, q = {
15
+ }, j = {
16
16
  key: 1,
17
17
  class: "action-menu"
18
- }, x = /* @__PURE__ */ A({
18
+ }, _ = /* @__PURE__ */ $({
19
19
  __name: "SidebarElement",
20
20
  props: {
21
21
  id: {},
@@ -26,81 +26,81 @@ const M = ["id"], R = {
26
26
  },
27
27
  emits: ["toggleOpen"],
28
28
  setup(k, { emit: y }) {
29
- const i = k, d = y, { getFullHash: u, isIntersectionEnabled: r, pathRouting: p, replaceUrlState: w } = D(), S = I(), f = async () => {
29
+ const i = k, p = y, { getFullHash: u, isIntersectionEnabled: r, replaceUrlState: w } = I(), l = U(), f = async () => {
30
30
  var e, t;
31
- i.hasChildren && d("toggleOpen"), (t = (e = i.item) == null ? void 0 : e.select) == null || t.call(e), i.open && (r.value = !1, await C(100), r.value = !0);
32
- }, B = () => {
33
- if (p.value)
34
- return H(p.value.basePath, i.item.id);
31
+ i.hasChildren && p("toggleOpen"), (t = (e = i.item) == null ? void 0 : e.select) == null || t.call(e), i.open && (r.value = !1, await C(100), r.value = !0);
32
+ }, S = () => {
33
+ if (l.value.pathRouting)
34
+ return R(l.value.pathRouting.basePath, i.item.id);
35
35
  if (typeof window < "u") {
36
36
  const e = new URL(window.location.href);
37
37
  return e.hash = u(i.item.id), `${e.pathname}${e.search}${e.hash}`;
38
38
  }
39
39
  return `#${u(i.item.id)}`;
40
- }, $ = async (e) => {
40
+ }, B = async (e) => {
41
41
  var t, o;
42
- p.value && (e.preventDefault(), i.hasChildren && d("toggleOpen"), (o = (t = i.item) == null ? void 0 : t.select) == null || o.call(t), d("toggleOpen"), r.value = !1, w(i.item.id), L(i.item.id), await C(100), r.value = !0);
42
+ l.value.pathRouting && (e.preventDefault(), i.hasChildren && p("toggleOpen"), (o = (t = i.item) == null ? void 0 : t.select) == null || o.call(t), p("toggleOpen"), r.value = !1, w(i.item.id), P(i.item.id), await C(100), r.value = !0);
43
43
  };
44
44
  return (e, t) => {
45
45
  var o, g;
46
- return n(), l("li", {
46
+ return n(), d("li", {
47
47
  id: e.id,
48
48
  class: "sidebar-group-item"
49
49
  }, [
50
50
  a("div", {
51
- class: T(["sidebar-heading", {
51
+ class: A(["sidebar-heading", {
52
52
  "sidebar-group-item__folder": e.hasChildren,
53
53
  active_page: e.isActive,
54
54
  deprecated: e.item.deprecated ?? !1
55
55
  }]),
56
56
  onClick: f
57
57
  }, [
58
- e.hasChildren && !m(S).defaultOpenAllTags ? (n(), l("p", R, [
58
+ e.hasChildren && !m(l).defaultOpenAllTags ? (n(), d("p", L, [
59
59
  a("button", {
60
60
  "aria-expanded": e.open,
61
61
  class: "toggle-nested-icon",
62
62
  type: "button",
63
- onClick: V(f, ["stop"])
63
+ onClick: T(f, ["stop"])
64
64
  }, [
65
- b(m(O), { open: e.open }, {
66
- label: E(() => [
67
- c(h(e.open ? "Collapse" : "Expand") + " " + h(e.item.title), 1)
65
+ b(m(N), { open: e.open }, {
66
+ label: V(() => [
67
+ h(c(e.open ? "Collapse" : "Expand") + " " + c(e.item.title), 1)
68
68
  ]),
69
69
  _: 1
70
70
  }, 8, ["open"])
71
- ], 8, z),
72
- t[0] || (t[0] = c("   "))
71
+ ], 8, M),
72
+ t[0] || (t[0] = h("   "))
73
73
  ])) : s("", !0),
74
74
  a("a", {
75
75
  class: "sidebar-heading-link",
76
- href: B(),
76
+ href: S(),
77
77
  tabindex: e.hasChildren ? -1 : 0,
78
- onClick: $
78
+ onClick: B
79
79
  }, [
80
- (g = (o = e.item) == null ? void 0 : o.icon) != null && g.src ? (n(), N(m(U), {
80
+ (g = (o = e.item) == null ? void 0 : o.icon) != null && g.src ? (n(), E(m(O), {
81
81
  key: 0,
82
82
  class: "sidebar-icon",
83
83
  icon: e.item.icon.src
84
84
  }, null, 8, ["icon"])) : s("", !0),
85
- a("p", G, h(e.item.title), 1),
86
- e.item.httpVerb && !e.hasChildren ? (n(), l("p", j, [
87
- t[1] || (t[1] = c("   ")),
85
+ a("p", F, c(e.item.title), 1),
86
+ e.item.httpVerb && !e.hasChildren ? (n(), d("p", G, [
87
+ t[1] || (t[1] = h("   ")),
88
88
  t[2] || (t[2] = a("span", { class: "sr-only" }, "HTTP Method: ", -1)),
89
- b(P, {
89
+ b(H, {
90
90
  active: e.isActive,
91
91
  method: e.item.httpVerb
92
92
  }, null, 8, ["active", "method"])
93
93
  ])) : s("", !0)
94
- ], 8, F)
94
+ ], 8, z)
95
95
  ], 2),
96
96
  e.open ? v(e.$slots, "default", { key: 0 }, void 0, !0) : s("", !0),
97
- e.$slots["action-menu"] ? (n(), l("div", q, [
97
+ e.$slots["action-menu"] ? (n(), d("div", j, [
98
98
  v(e.$slots, "action-menu", {}, void 0, !0)
99
99
  ])) : s("", !0)
100
- ], 8, M);
100
+ ], 8, D);
101
101
  };
102
102
  }
103
103
  });
104
104
  export {
105
- x as default
105
+ _ as default
106
106
  };
@@ -1,5 +1,6 @@
1
1
  import type { Collection, Operation, Server } from '@scalar/oas-utils/entities/spec';
2
2
  import type { TransformedOperation } from '@scalar/types/legacy';
3
+ import { type ComponentPublicInstance } from 'vue';
3
4
  type __VLS_Props = {
4
5
  operation: Operation;
5
6
  server: Server | undefined;
@@ -17,7 +18,51 @@ declare function __VLS_template(): {
17
18
  footer?(_: {}): any;
18
19
  footer?(_: {}): any;
19
20
  };
20
- refs: {};
21
+ refs: {
22
+ elem: ({
23
+ $: import("vue").ComponentInternalInstance;
24
+ $data: {};
25
+ $props: Partial<{}> & Omit<{} & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, never>;
26
+ $attrs: {
27
+ [x: string]: unknown;
28
+ };
29
+ $refs: {
30
+ [x: string]: unknown;
31
+ };
32
+ $slots: Readonly<{
33
+ [name: string]: import("vue").Slot<any> | undefined;
34
+ }>;
35
+ $root: ComponentPublicInstance | null;
36
+ $parent: ComponentPublicInstance | null;
37
+ $host: Element | null;
38
+ $emit: (event: string, ...args: any[]) => void;
39
+ $el: HTMLDivElement;
40
+ $options: import("vue").ComponentOptionsBase<Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, {}, {}, string, {}, import("vue").GlobalComponents, import("vue").GlobalDirectives, string, import("vue").ComponentProvideOptions> & {
41
+ beforeCreate?: (() => void) | (() => void)[];
42
+ created?: (() => void) | (() => void)[];
43
+ beforeMount?: (() => void) | (() => void)[];
44
+ mounted?: (() => void) | (() => void)[];
45
+ beforeUpdate?: (() => void) | (() => void)[];
46
+ updated?: (() => void) | (() => void)[];
47
+ activated?: (() => void) | (() => void)[];
48
+ deactivated?: (() => void) | (() => void)[];
49
+ beforeDestroy?: (() => void) | (() => void)[];
50
+ beforeUnmount?: (() => void) | (() => void)[];
51
+ destroyed?: (() => void) | (() => void)[];
52
+ unmounted?: (() => void) | (() => void)[];
53
+ renderTracked?: ((e: import("vue").DebuggerEvent) => void) | ((e: import("vue").DebuggerEvent) => void)[];
54
+ renderTriggered?: ((e: import("vue").DebuggerEvent) => void) | ((e: import("vue").DebuggerEvent) => void)[];
55
+ errorCaptured?: ((err: unknown, instance: ComponentPublicInstance | null, info: string) => boolean | void) | ((err: unknown, instance: ComponentPublicInstance | null, info: string) => boolean | void)[];
56
+ };
57
+ $forceUpdate: () => void;
58
+ $nextTick: typeof import("vue").nextTick;
59
+ $watch<T extends string | ((...args: any) => any)>(source: T, cb: T extends (...args: any) => infer R ? (...args: [R, R, import("@vue/reactivity").OnCleanup]) => any : (...args: [any, any, import("@vue/reactivity").OnCleanup]) => any, options?: import("vue").WatchOptions): import("vue").WatchStopHandle;
60
+ } & Readonly<{}> & Omit<Readonly<{}> & Readonly<{}>, never> & import("vue").ShallowUnwrapRef<{}> & {} & import("vue").ComponentCustomProperties & {} & {
61
+ $slots: {
62
+ default?(_: {}): any;
63
+ };
64
+ }) | null;
65
+ };
21
66
  rootEl: any;
22
67
  };
23
68
  type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
@@ -1 +1 @@
1
- {"version":3,"file":"ExampleRequest.vue.d.ts","sourceRoot":"","sources":["../../../src/features/ExampleRequest/ExampleRequest.vue"],"names":[],"mappings":"AAoYA,OAAO,KAAK,EACV,UAAU,EACV,SAAS,EACT,MAAM,EACP,MAAM,iCAAiC,CAAA;AAExC,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,sBAAsB,CAAA;AAehE,KAAK,WAAW,GAAG;IACjB,SAAS,EAAE,SAAS,CAAA;IACpB,MAAM,EAAE,MAAM,GAAG,SAAS,CAAA;IAC1B,UAAU,EAAE,UAAU,CAAA;IACtB,yDAAyD;IACzD,QAAQ,CAAC,EAAE,OAAO,CAAA;IAClB,0CAA0C;IAC1C,oBAAoB,EAAE,oBAAoB,CAAA;CAC3C,CAAC;AAmNF,iBAAS,cAAc;WA6OT,OAAO,IAA6B;;wBAXrB,GAAG;wBAEH,GAAG;wBADH,GAAG;wBAEH,GAAG;;;;EAa/B;AAgCD,KAAK,oBAAoB,GAAG,UAAU,CAAC,OAAO,cAAc,CAAC,CAAC;AAC9D,QAAA,MAAM,eAAe,kSAMnB,CAAC;wBACkB,uBAAuB,CAAC,OAAO,eAAe,EAAE,oBAAoB,CAAC,OAAO,CAAC,CAAC;AAAnG,wBAAoG;AAWpG,KAAK,uBAAuB,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG;IACxC,QAAO;QACN,MAAM,EAAE,CAAC,CAAC;KAEV,CAAA;CACD,CAAC"}
1
+ {"version":3,"file":"ExampleRequest.vue.d.ts","sourceRoot":"","sources":["../../../src/features/ExampleRequest/ExampleRequest.vue"],"names":[],"mappings":"AAuZA,OAAO,KAAK,EACV,UAAU,EACV,SAAS,EACT,MAAM,EACP,MAAM,iCAAiC,CAAA;AAExC,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,sBAAsB,CAAA;AAEhE,OAAO,EAML,KAAK,uBAAuB,EAC7B,MAAM,KAAK,CAAA;AAcZ,KAAK,WAAW,GAAG;IACjB,SAAS,EAAE,SAAS,CAAA;IACpB,MAAM,EAAE,MAAM,GAAG,SAAS,CAAA;IAC1B,UAAU,EAAE,UAAU,CAAA;IACtB,yDAAyD;IACzD,QAAQ,CAAC,EAAE,OAAO,CAAA;IAClB,0CAA0C;IAC1C,oBAAoB,EAAE,oBAAoB,CAAA;CAC3C,CAAC;AA6NF,iBAAS,cAAc;WAiPT,OAAO,IAA6B;;wBAZrB,GAAG;wBAEH,GAAG;wBADH,GAAG;wBAEH,GAAG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;wCA5F+E,GAAG,8CAC1F,GAAG,yBACZ,GAAG,6DAAmC,GAAG;;;;;;;;EAwGvD;AAiCD,KAAK,oBAAoB,GAAG,UAAU,CAAC,OAAO,cAAc,CAAC,CAAC;AAC9D,QAAA,MAAM,eAAe,kSAMnB,CAAC;wBACkB,uBAAuB,CAAC,OAAO,eAAe,EAAE,oBAAoB,CAAC,OAAO,CAAC,CAAC;AAAnG,wBAAoG;AAWpG,KAAK,uBAAuB,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG;IACxC,QAAO;QACN,MAAM,EAAE,CAAC,CAAC;KAEV,CAAA;CACD,CAAC"}
@@ -1,7 +1,7 @@
1
1
  import o from "./ExampleRequest.vue2.js";
2
2
  /* empty css */
3
3
  import t from "../../_virtual/_plugin-vue_export-helper.js";
4
- const r = /* @__PURE__ */ t(o, [["__scopeId", "data-v-588f5542"]]);
4
+ const p = /* @__PURE__ */ t(o, [["__scopeId", "data-v-ecaba69d"]]);
5
5
  export {
6
- r as default
6
+ p as default
7
7
  };