@scalar/api-reference 1.25.32 → 1.25.34

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":"AA2FA,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;;AA6G3B,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":"AAuFA,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;;AA2G3B,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"}
@@ -0,0 +1,4 @@
1
+ import f from "./ApiClientModal.vue.js";
2
+ export {
3
+ f as default
4
+ };
@@ -1 +1 @@
1
- {"version":3,"file":"ApiReferenceLayout.vue.d.ts","sourceRoot":"","sources":["../../src/components/ApiReferenceLayout.vue"],"names":[],"mappings":"AAojBA,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,KAAK,GAAG;oBAA1B,kBAAkB,KAAK,GAAG;6BAA1B,kBAAkB,KAAK,GAAG;2BAA1B,kBAAkB,KAAK,GAAG;6BAA1B,kBAAkB,KAAK,GAAG;2BAA1B,kBAAkB,KAAK,GAAG;;oBAA1B,kBAAkB,KAAK,GAAG;oBAA1B,kBAAkB,KAAK,GAAG;oBAA1B,kBAAkB,KAAK,GAAG;6BAA1B,kBAAkB,KAAK,GAAG;2BAA1B,kBAAkB,KAAK,GAAG;6BAA1B,kBAAk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*/ t(o, [["__scopeId", "data-v-080d0f80"]]);
5
+ const m = /* @__PURE__ */ t(o, [["__scopeId", "data-v-ce34303a"]]);
6
6
  export {
7
7
  m as default
8
8
  };
@@ -1,25 +1,24 @@
1
- import { defineComponent as _, 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
- import { provideUseId as le } from "@headlessui/vue";
3
- import { addScalarClassesToHeadless as de } from "@scalar/components";
4
- import { defaultStateFactory as P } from "@scalar/oas-utils/helpers";
5
- import { hasObtrusiveScrollbars as ce, getThemeStyles as ue } from "@scalar/themes";
6
- import { useToasts as pe, ScalarToasts as fe } from "@scalar/use-toasts";
7
- import { useMediaQuery as ge, useResizeObserver as me, useDebounceFn as Se } from "@vueuse/core";
8
- import ve from "./ApiClientModal.vue.js";
9
- /* empty css */
10
- import he from "./GettingStarted.vue.js";
11
- import { downloadSpecBus as be, downloadSpecFile as ye } from "../helpers/specDownloads.js";
12
- import { useDeprecationWarnings as we } from "../hooks/useDeprecationWarnings.js";
13
- import Te from "./Sidebar/Sidebar.vue.js";
14
- import Re from "./Content/Content.vue.js";
15
- import { useSidebar as Ce } from "../hooks/useSidebar.js";
16
- import { GLOBAL_SECURITY_SYMBOL as $e, HIDE_DOWNLOAD_BUTTON_SYMBOL as Ee, HIDE_TEST_REQUEST_BUTTON_SYMBOL as Oe, OPENAPI_DOCUMENT_URL_SYMBOL as Le } from "../helpers/provideSymbols.js";
17
- import { useNavState as Be } from "../hooks/useNavState.js";
18
- import { sleep as Ie } from "../helpers/sleep.js";
19
- const Ue = ["innerHTML"], De = { class: "references-header" }, Me = {
1
+ import { defineComponent as _, ref as w, computed as v, onBeforeMount as D, onMounted as x, onUnmounted as ee, watch as oe, onServerPrefetch as te, useSSRContext as re, getCurrentInstance as ae, provide as h, openBlock as b, createElementBlock as y, Fragment as M, createElementVNode as l, normalizeClass as ne, unref as p, normalizeStyle as se, renderSlot as d, normalizeProps as c, guardReactiveProps as u, createVNode as g, withCtx as m, createCommentVNode as T, withDirectives as ie, vShow as le, createSlots as de } from "vue";
2
+ import { provideUseId as ce } from "@headlessui/vue";
3
+ import { addScalarClassesToHeadless as ue } from "@scalar/components";
4
+ import { defaultStateFactory as k } from "@scalar/oas-utils/helpers";
5
+ import { hasObtrusiveScrollbars as pe, getThemeStyles as fe } from "@scalar/themes";
6
+ import { useToasts as ge, ScalarToasts as me } from "@scalar/use-toasts";
7
+ import { useMediaQuery as Se, useResizeObserver as ve, useDebounceFn as he } from "@vueuse/core";
8
+ import be from "./ApiClientModal.vue.js";
9
+ import ye from "./GettingStarted.vue.js";
10
+ import { downloadSpecBus as P, downloadSpecFile as we } from "../helpers/specDownloads.js";
11
+ import { useDeprecationWarnings as Te } from "../hooks/useDeprecationWarnings.js";
12
+ import Re from "./Sidebar/Sidebar.vue.js";
13
+ import Ce from "./Content/Content.vue.js";
14
+ import { useSidebar as $e } from "../hooks/useSidebar.js";
15
+ import { GLOBAL_SECURITY_SYMBOL as Ee, HIDE_DOWNLOAD_BUTTON_SYMBOL as Oe, HIDE_TEST_REQUEST_BUTTON_SYMBOL as Le, OPENAPI_DOCUMENT_URL_SYMBOL as Be } from "../helpers/provideSymbols.js";
16
+ import { useNavState as Ie } from "../hooks/useNavState.js";
17
+ import { sleep as Ue } from "../helpers/sleep.js";
18
+ const De = ["innerHTML"], Me = { class: "references-header" }, ke = {
20
19
  key: 0,
21
20
  class: "references-navigation t-doc__sidebar"
22
- }, ke = { class: "references-navigation-list" }, Pe = { class: "references-editor" }, Fe = { class: "references-editor-textarea" }, Ae = { class: "references-rendered" }, Ne = {
21
+ }, Pe = { class: "references-navigation-list" }, Fe = { class: "references-editor" }, Ae = { class: "references-editor-textarea" }, Ne = { class: "references-rendered" }, He = {
23
22
  key: 0,
24
23
  class: "references-footer"
25
24
  }, ro = /* @__PURE__ */ _({
@@ -32,106 +31,106 @@ const Ue = ["innerHTML"], De = { class: "references-header" }, Me = {
32
31
  },
33
32
  emits: ["changeTheme", "updateContent", "loadSwaggerFile", "linkSwaggerFile", "toggleDarkMode"],
34
33
  setup(F) {
35
- const t = F, { initializeToasts: A, toast: N } = pe();
34
+ const t = F, { initializeToasts: A, toast: N } = ge();
36
35
  A((e) => N(e));
37
- const H = ge("(min-width: 1150px)"), Y = w("100dvh"), f = w(null);
38
- me(f, (e) => {
36
+ const H = Se("(min-width: 1150px)"), Y = w("100dvh"), f = w(null);
37
+ ve(f, (e) => {
39
38
  Y.value = e[0].contentRect.height + "px";
40
39
  });
41
- const R = w(0);
42
- D(() => {
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
- if (e && o) {
46
- const s = o.top - e.top;
47
- R.value = s < 2 ? 0 : s;
48
- }
49
- });
50
- const z = v(ce), {
40
+ const z = v(pe), {
51
41
  breadcrumb: V,
52
42
  collapsedSidebarItems: S,
53
43
  isSidebarOpen: G,
54
- setCollapsedSidebarItem: C,
44
+ setCollapsedSidebarItem: R,
55
45
  hideModels: Q,
56
46
  defaultOpenAllTags: W,
57
47
  setParsedSpec: j,
58
48
  scrollToOperation: q
59
- } = Ce(), {
60
- getPathRoutingId: $,
49
+ } = $e(), {
50
+ getPathRoutingId: C,
61
51
  getSectionId: K,
62
52
  getTagId: J,
63
- hash: E,
64
- isIntersectionEnabled: O,
65
- pathRouting: L,
66
- updateHash: B
67
- } = Be();
68
- L.value = t.configuration.pathRouting, M(() => B());
69
- const I = async (e) => {
53
+ hash: $,
54
+ isIntersectionEnabled: E,
55
+ pathRouting: O,
56
+ updateHash: L
57
+ } = Ie();
58
+ O.value = t.configuration.pathRouting, D(() => L());
59
+ const B = async (e) => {
70
60
  var o;
71
- O.value = !1, B(), e ? q(e) : (o = f.value) == null || o.scrollTo(0, 0), await Ie(100), O.value = !0;
72
- };
73
- M(() => de()), D(() => {
74
- be.on(({ specTitle: e }) => {
75
- ye(t.rawSpec, e);
76
- }), window.onhashchange = () => I(decodeURIComponent(window.location.hash.replace(/^#/, ""))), window.onpopstate = () => L.value && I($(window.location.pathname));
61
+ E.value = !1, L(), e ? q(e) : (o = f.value) == null || o.scrollTo(0, 0), await Ue(100), E.value = !0;
62
+ }, I = w(0);
63
+ D(() => ue()), x(() => {
64
+ var r, a, n;
65
+ history.scrollRestoration = "manual", P.on(({ specTitle: s }) => {
66
+ we(t.rawSpec, s);
67
+ });
68
+ 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();
69
+ if (e && o) {
70
+ const s = o.top - e.top;
71
+ I.value = s < 2 ? 0 : s;
72
+ }
73
+ window.onhashchange = () => B(decodeURIComponent(window.location.hash.replace(/^#/, ""))), window.onpopstate = () => O.value && B(C(window.location.pathname));
77
74
  });
78
75
  const X = v(
79
76
  () => H.value || !t.configuration.isEditable
80
- ), U = Se((e) => {
77
+ ), U = he((e) => {
81
78
  if ((e.target.scrollTop ?? 0) < 50) {
82
79
  const r = t.configuration.pathRouting ? t.configuration.pathRouting.basePath : window.location.pathname;
83
- window.history.replaceState({}, "", r + window.location.search), E.value = "";
80
+ window.history.replaceState({}, "", r + window.location.search), $.value = "";
84
81
  }
85
82
  }), i = v(() => ({
86
83
  breadcrumb: V.value,
87
84
  spec: t.parsedSpec
88
85
  }));
89
- x(() => t.parsedSpec, j, { deep: !0 }), ee(() => {
86
+ ee(() => {
87
+ P.reset();
88
+ }), oe(() => t.parsedSpec, j, { deep: !0 }), te(() => {
90
89
  var o, r;
91
- const e = oe();
92
- if (e && (e.payload || (e.payload = { data: P() }), (o = e.payload).data || (o.data = P()), t.configuration.pathRouting)) {
93
- const a = $(e.url);
94
- E.value = a, e.payload.data.hash = a;
90
+ const e = re();
91
+ if (e && (e.payload || (e.payload = { data: k() }), (o = e.payload).data || (o.data = k()), t.configuration.pathRouting)) {
92
+ const a = C(e.url);
93
+ $.value = a, e.payload.data.hash = a;
95
94
  for (const n in S)
96
95
  Object.hasOwn(S, n) && delete S[n];
97
96
  if (a)
98
- C(K(a), !0);
97
+ R(K(a), !0);
99
98
  else {
100
99
  const n = (r = t.parsedSpec.tags) == null ? void 0 : r[0];
101
- n && C(J(n), !0);
100
+ n && R(J(n), !0);
102
101
  }
103
102
  e.payload.data["useSidebarContent-collapsedSidebarItems"] = S;
104
103
  }
105
- }), le(() => {
104
+ }), ce(() => {
106
105
  var a;
107
- const e = te(), o = "scalar-instance-id";
106
+ const e = ae(), o = "scalar-instance-id";
108
107
  if (!e) return o;
109
108
  let r = e.uid;
110
109
  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
- Ee,
110
+ }), h(Ee, () => t.parsedSpec.security), h(
111
+ Oe,
113
112
  () => t.configuration.hideDownloadButton
114
113
  ), h(
115
- Oe,
114
+ Le,
116
115
  () => t.configuration.hideTestRequestButton
117
- ), h(Le, () => {
116
+ ), h(Be, () => {
118
117
  var e;
119
118
  return (e = t.configuration.spec) == null ? void 0 : e.url;
120
- }), Q.value = t.configuration.hideModels ?? !1, W.value = t.configuration.defaultOpenAllTags ?? !1, we(t.configuration);
119
+ }), Q.value = t.configuration.hideModels ?? !1, W.value = t.configuration.defaultOpenAllTags ?? !1, Te(t.configuration);
121
120
  const Z = v(
122
121
  () => `<style>
123
- ${ue(t.configuration.theme, {
122
+ ${fe(t.configuration.theme, {
124
123
  fonts: t.configuration.withDefaultFonts
125
124
  })}</style>`
126
125
  );
127
126
  return (e, o) => {
128
127
  var r, a;
129
- return b(), y(k, null, [
130
- l("div", { innerHTML: Z.value }, null, 8, Ue),
128
+ return b(), y(M, null, [
129
+ l("div", { innerHTML: Z.value }, null, 8, De),
131
130
  l("div", {
132
131
  ref_key: "documentEl",
133
132
  ref: f,
134
- class: re(["scalar-app scalar-api-reference references-layout", [
133
+ class: ne(["scalar-app scalar-api-reference references-layout", [
135
134
  {
136
135
  "scalar-scrollbars-obtrusive": z.value,
137
136
  "references-editable": e.configuration.isEditable,
@@ -141,18 +140,18 @@ const Ue = ["innerHTML"], De = { class: "references-header" }, Me = {
141
140
  },
142
141
  e.$attrs.class
143
142
  ]]),
144
- style: ae({
145
- "--scalar-y-offset": `var(--scalar-custom-header-height, ${R.value}px)`
143
+ style: se({
144
+ "--scalar-y-offset": `var(--scalar-custom-header-height, ${I.value}px)`
146
145
  }),
147
146
  onScrollPassive: o[4] || (o[4] = //@ts-ignore
148
147
  (...n) => p(U) && p(U)(...n))
149
148
  }, [
150
- l("div", De, [
149
+ l("div", Me, [
151
150
  d(e.$slots, "header", c(u(i.value)), void 0, !0)
152
151
  ]),
153
- e.configuration.showSidebar ? (b(), y("aside", Me, [
154
- l("div", ke, [
155
- g(p(Te), {
152
+ e.configuration.showSidebar ? (b(), y("aside", ke, [
153
+ l("div", Pe, [
154
+ g(p(Re), {
156
155
  operationsSorter: e.configuration.operationsSorter,
157
156
  parsedSpec: e.parsedSpec,
158
157
  tagsSorter: e.configuration.tagsSorter
@@ -167,22 +166,22 @@ const Ue = ["innerHTML"], De = { class: "references-header" }, Me = {
167
166
  }, 8, ["operationsSorter", "parsedSpec", "tagsSorter"])
168
167
  ])
169
168
  ])) : T("", !0),
170
- ne(l("div", Pe, [
171
- l("div", Fe, [
169
+ ie(l("div", Fe, [
170
+ l("div", Ae, [
172
171
  d(e.$slots, "editor", c(u(i.value)), void 0, !0)
173
172
  ])
174
173
  ], 512), [
175
- [se, e.configuration.isEditable]
174
+ [le, e.configuration.isEditable]
176
175
  ]),
177
- X.value ? (b(), y(k, { key: 1 }, [
178
- l("div", Ae, [
179
- g(p(Re), {
176
+ X.value ? (b(), y(M, { key: 1 }, [
177
+ l("div", Ne, [
178
+ g(p(Ce), {
180
179
  baseServerURL: e.configuration.baseServerURL,
181
180
  layout: e.configuration.layout === "classic" ? "accordion" : "default",
182
181
  parsedSpec: e.parsedSpec,
183
182
  proxy: e.configuration.proxy,
184
183
  servers: e.configuration.servers
185
- }, ie({
184
+ }, de({
186
185
  start: m(() => [
187
186
  d(e.$slots, "content-start", c(u(i.value)), void 0, !0)
188
187
  ]),
@@ -196,7 +195,7 @@ const Ue = ["innerHTML"], De = { class: "references-header" }, Me = {
196
195
  fn: m(() => {
197
196
  var n;
198
197
  return [
199
- g(he, {
198
+ g(ye, {
200
199
  theme: ((n = e.configuration) == null ? void 0 : n.theme) || "default",
201
200
  onChangeTheme: o[0] || (o[0] = (s) => e.$emit("changeTheme", s)),
202
201
  onLinkSwaggerFile: o[1] || (o[1] = (s) => e.$emit("linkSwaggerFile")),
@@ -209,18 +208,18 @@ const Ue = ["innerHTML"], De = { class: "references-header" }, Me = {
209
208
  } : void 0
210
209
  ]), 1032, ["baseServerURL", "layout", "parsedSpec", "proxy", "servers"])
211
210
  ]),
212
- e.$slots.footer ? (b(), y("div", Ne, [
211
+ e.$slots.footer ? (b(), y("div", He, [
213
212
  d(e.$slots, "footer", c(u(i.value)), void 0, !0)
214
213
  ])) : T("", !0)
215
214
  ], 64)) : T("", !0),
216
- g(ve, {
215
+ g(be, {
217
216
  preferredSecurityScheme: (a = e.configuration.authentication) == null ? void 0 : a.preferredSecurityScheme,
218
217
  proxyUrl: e.configuration.proxy,
219
218
  servers: e.configuration.servers,
220
219
  spec: e.configuration.spec
221
220
  }, null, 8, ["preferredSecurityScheme", "proxyUrl", "servers", "spec"])
222
221
  ], 38),
223
- g(p(fe))
222
+ g(p(me))
224
223
  ], 64);
225
224
  };
226
225
  }
@@ -1 +1 @@
1
- {"version":3,"file":"Content.vue.d.ts","sourceRoot":"","sources":["../../../src/components/Content/Content.vue"],"names":[],"mappings":"AA2NA,OAAO,KAAK,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM,sBAAsB,CAAA;AAiDxD,iBAAS,cAAc;mBAqPI,GAAG;2BACM,GAAG;iBACb,GAAG;EAiC5B;AACD,QAAA,MAAM,eAAe;gBAxTP,IAAI;aACP,SAAS,GAAG,WAAW;oBAChB,MAAM;cACZ,MAAM,EAAE;YACV,MAAM;;gBAJF,IAAI;aACP,SAAS,GAAG,WAAW;oBAChB,MAAM;cACZ,MAAM,EAAE;YACV,MAAM;aA0Td,CAAC;wBACkB,uBAAuB,CAAC,OAAO,eAAe,EAAE,UAAU,CAAC,OAAO,cAAc,CAAC,CAAC;AAAvG,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":"Content.vue.d.ts","sourceRoot":"","sources":["../../../src/components/Content/Content.vue"],"names":[],"mappings":"AAyMA,OAAO,KAAK,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM,sBAAsB,CAAA;AAoCxD,iBAAS,cAAc;mBAsPI,GAAG;2BACM,GAAG;iBACb,GAAG;EA2B5B;AACD,QAAA,MAAM,eAAe;gBAvSP,IAAI;aACP,SAAS,GAAG,WAAW;oBAChB,MAAM;cACZ,MAAM,EAAE;YACV,MAAM;;gBAJF,IAAI;aACP,SAAS,GAAG,WAAW;oBAChB,MAAM;cACZ,MAAM,EAAE;YACV,MAAM;aAySd,CAAC;wBACkB,uBAAuB,CAAC,OAAO,eAAe,EAAE,UAAU,CAAC,OAAO,cAAc,CAAC,CAAC;AAAvG,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 "./Content.vue2.js";
2
2
  /* empty css */
3
3
  /* empty css */
4
4
  import t from "../../_virtual/_plugin-vue_export-helper.js";
5
- const f = /* @__PURE__ */ t(o, [["__scopeId", "data-v-8d751fa0"]]);
5
+ const a = /* @__PURE__ */ t(o, [["__scopeId", "data-v-00242079"]]);
6
6
  export {
7
- f as default
7
+ a as default
8
8
  };
@@ -1,23 +1,18 @@
1
- import { defineComponent as O, computed as m, openBlock as r, createElementBlock as n, Fragment as c, createElementVNode as k, renderSlot as f, createVNode as l, unref as o, createBlock as s, withCtx as p, normalizeClass as T, renderList as b, resolveDynamicComponent as L, createCommentVNode as C, createStaticVNode as E } from "vue";
2
- import R from "./Tag/TagAccordion.vue.js";
3
- import W from "./Tag/Tag.vue.js";
4
- import D from "./Operation/OperationAccordion.vue.js";
5
- import F from "./Operation/Operation.vue.js";
6
- import j from "./Lazy/Loading.vue.js";
1
+ import { defineComponent as $, computed as M, openBlock as s, createElementBlock as o, Fragment as t, createElementVNode as y, renderSlot as p, createVNode as i, unref as r, createBlock as a, withCtx as L, normalizeClass as N, renderList as U, createCommentVNode as n, createStaticVNode as V } from "vue";
2
+ import B from "./Lazy/Loading.vue.js";
7
3
  /* empty css */
8
- import q from "./Introduction/Introduction.vue.js";
9
- import G from "../../features/BaseUrl/BaseUrl.vue.js";
10
- import H from "./Authentication/Authentication.vue.js";
11
- import J from "./ClientLibraries/ClientLibraries.vue.js";
12
- import $ from "./Lazy/Lazy.vue.js";
13
- import K from "./Webhooks/Webhooks.vue.js";
14
- import P from "./Models/ModelsAccordion.vue.js";
15
- import Q from "./Models/Models.vue.js";
16
- import { useSidebar as X } from "../../hooks/useSidebar.js";
17
- import { hasModels as Y } from "../../helpers/hasModels.js";
18
- import { getModels as w } from "../../helpers/getModels.js";
19
- import { useNavState as Z } from "../../hooks/useNavState.js";
20
- const _ = /* @__PURE__ */ E('<div class="section-flare" data-v-8d751fa0><div class="section-flare-item" data-v-8d751fa0></div><div class="section-flare-item" data-v-8d751fa0></div><div class="section-flare-item" data-v-8d751fa0></div><div class="section-flare-item" data-v-8d751fa0></div><div class="section-flare-item" data-v-8d751fa0></div><div class="section-flare-item" data-v-8d751fa0></div><div class="section-flare-item" data-v-8d751fa0></div><div class="section-flare-item" data-v-8d751fa0></div></div>', 1), x = { class: "narrow-references-container" }, be = /* @__PURE__ */ O({
4
+ import A from "./Introduction/Introduction.vue.js";
5
+ import E from "../../features/BaseUrl/BaseUrl.vue.js";
6
+ import R from "./Authentication/Authentication.vue.js";
7
+ import z from "./ClientLibraries/ClientLibraries.vue.js";
8
+ import k from "./Tag/TagList.vue.js";
9
+ import F from "./Webhooks/Webhooks.vue.js";
10
+ import G from "./Models/ModelsAccordion.vue.js";
11
+ import I from "./Models/Models.vue.js";
12
+ import { useSidebar as W } from "../../hooks/useSidebar.js";
13
+ import { hasModels as j } from "../../helpers/hasModels.js";
14
+ import { getModels as h } from "../../helpers/getModels.js";
15
+ const q = /* @__PURE__ */ V('<div class="section-flare" data-v-00242079><div class="section-flare-item" data-v-00242079></div><div class="section-flare-item" data-v-00242079></div><div class="section-flare-item" data-v-00242079></div><div class="section-flare-item" data-v-00242079></div><div class="section-flare-item" data-v-00242079></div><div class="section-flare-item" data-v-00242079></div><div class="section-flare-item" data-v-00242079></div><div class="section-flare-item" data-v-00242079></div></div>', 1), D = { class: "narrow-references-container" }, ae = /* @__PURE__ */ $({
21
16
  __name: "Content",
22
17
  props: {
23
18
  parsedSpec: {},
@@ -26,100 +21,80 @@ const _ = /* @__PURE__ */ E('<div class="section-flare" data-v-8d751fa0><div cla
26
21
  servers: {},
27
22
  proxy: {}
28
23
  },
29
- setup(z) {
30
- const i = z, { getOperationId: u, getTagId: d, hash: I } = Z(), { hideModels: M, collapsedSidebarItems: N } = X(), V = m(
31
- () => i.layout === "accordion" ? R : W
32
- ), A = m(
33
- () => i.layout === "accordion" ? D : F
34
- ), U = m(
35
- () => i.layout === "accordion" ? "after" : "aside"
36
- ), g = i.layout !== "accordion" && !I.value.startsWith("model");
37
- return (e, ee) => {
38
- var v, y, S, h;
39
- return r(), n(c, null, [
40
- _,
41
- k("div", x, [
42
- f(e.$slots, "start", {}, void 0, !0),
43
- l(o(j), {
24
+ setup(g) {
25
+ const l = g, { hideModels: b } = W(), w = M(
26
+ () => l.layout === "accordion" ? "after" : "aside"
27
+ );
28
+ return (e, H) => {
29
+ var c, m, u, f;
30
+ return s(), o(t, null, [
31
+ q,
32
+ y("div", D, [
33
+ p(e.$slots, "start", {}, void 0, !0),
34
+ i(r(B), {
44
35
  layout: e.layout,
45
36
  parsedSpec: e.parsedSpec
46
37
  }, null, 8, ["layout", "parsedSpec"]),
47
- (y = (v = e.parsedSpec) == null ? void 0 : v.info) != null && y.title || (h = (S = e.parsedSpec) == null ? void 0 : S.info) != null && h.description ? (r(), s(o(q), {
38
+ (m = (c = e.parsedSpec) == null ? void 0 : c.info) != null && m.title || (f = (u = e.parsedSpec) == null ? void 0 : u.info) != null && f.description ? (s(), a(r(A), {
48
39
  key: 0,
49
40
  info: e.parsedSpec.info,
50
41
  parsedSpec: e.parsedSpec
51
42
  }, {
52
- [U.value]: p(() => [
53
- k("div", {
54
- class: T(["introduction-card", { "introduction-card-row": e.layout === "accordion" }])
43
+ [w.value]: L(() => [
44
+ y("div", {
45
+ class: N(["introduction-card", { "introduction-card-row": e.layout === "accordion" }])
55
46
  }, [
56
- l(o(G), {
47
+ i(r(E), {
57
48
  class: "introduction-card-item",
58
49
  defaultServerUrl: e.baseServerURL,
59
- servers: i.servers,
50
+ servers: l.servers,
60
51
  specification: e.parsedSpec
61
52
  }, null, 8, ["defaultServerUrl", "servers", "specification"]),
62
- l(o(H), {
53
+ i(r(R), {
63
54
  class: "introduction-card-item",
64
55
  parsedSpec: e.parsedSpec,
65
56
  proxy: e.proxy
66
57
  }, null, 8, ["parsedSpec", "proxy"]),
67
- l(o(J), { class: "introduction-card-item" })
58
+ i(r(z), { class: "introduction-card-item" })
68
59
  ], 2)
69
60
  ]),
70
61
  _: 2
71
- }, 1032, ["info", "parsedSpec"])) : f(e.$slots, "empty-state", { key: 1 }, void 0, !0),
72
- (r(!0), n(c, null, b(e.parsedSpec.tags, (a) => (r(), s(o($), {
73
- id: o(d)(a),
74
- key: o(d)(a),
75
- isLazy: o(g) && !o(N)[o(d)(a)]
76
- }, {
77
- default: p(() => [
78
- (r(), s(L(V.value), {
79
- id: o(d)(a),
80
- spec: e.parsedSpec,
81
- tag: a
82
- }, {
83
- default: p(() => [
84
- (r(!0), n(c, null, b(a.operations, (t, B) => (r(), s(o($), {
85
- id: o(u)(t, a),
86
- key: `${t.httpVerb}-${t.operationId}`,
87
- isLazy: B > 0
88
- }, {
89
- default: p(() => [
90
- (r(), s(L(A.value), {
91
- id: o(u)(t, a),
92
- operation: t,
93
- tag: a
94
- }, null, 8, ["id", "operation", "tag"]))
95
- ]),
96
- _: 2
97
- }, 1032, ["id", "isLazy"]))), 128))
98
- ]),
99
- _: 2
100
- }, 1032, ["id", "spec", "tag"]))
101
- ]),
102
- _: 2
103
- }, 1032, ["id", "isLazy"]))), 128)),
104
- e.parsedSpec.webhooks ? (r(), s(o(K), {
105
- key: 2,
62
+ }, 1032, ["info", "parsedSpec"])) : p(e.$slots, "empty-state", { key: 1 }, void 0, !0),
63
+ e.parsedSpec.tags ? (s(), o(t, { key: 2 }, [
64
+ e.parsedSpec["x-tagGroups"] ? (s(!0), o(t, { key: 0 }, U(e.parsedSpec["x-tagGroups"], (v) => (s(), a(r(k), {
65
+ key: v.name,
66
+ layout: e.layout,
67
+ spec: e.parsedSpec,
68
+ tags: v.tags.map((d) => {
69
+ var S;
70
+ return (S = e.parsedSpec.tags) == null ? void 0 : S.find((C) => C.name === d);
71
+ }).filter((d) => !!d)
72
+ }, null, 8, ["layout", "spec", "tags"]))), 128)) : (s(), a(r(k), {
73
+ key: 1,
74
+ layout: e.layout,
75
+ spec: e.parsedSpec,
76
+ tags: e.parsedSpec.tags
77
+ }, null, 8, ["layout", "spec", "tags"]))
78
+ ], 64)) : n("", !0),
79
+ e.parsedSpec.webhooks ? (s(), a(r(F), {
80
+ key: 3,
106
81
  webhooks: e.parsedSpec.webhooks
107
- }, null, 8, ["webhooks"])) : C("", !0),
108
- o(Y)(e.parsedSpec) && !o(M) ? (r(), n(c, { key: 3 }, [
109
- e.layout === "accordion" ? (r(), s(o(P), {
82
+ }, null, 8, ["webhooks"])) : n("", !0),
83
+ r(j)(e.parsedSpec) && !r(b) ? (s(), o(t, { key: 4 }, [
84
+ e.layout === "accordion" ? (s(), a(r(G), {
110
85
  key: 0,
111
- schemas: o(w)(e.parsedSpec)
112
- }, null, 8, ["schemas"])) : (r(), s(o(Q), {
86
+ schemas: r(h)(e.parsedSpec)
87
+ }, null, 8, ["schemas"])) : (s(), a(r(I), {
113
88
  key: 1,
114
- schemas: o(w)(e.parsedSpec)
89
+ schemas: r(h)(e.parsedSpec)
115
90
  }, null, 8, ["schemas"]))
116
- ], 64)) : C("", !0),
117
- f(e.$slots, "end", {}, void 0, !0)
91
+ ], 64)) : n("", !0),
92
+ p(e.$slots, "end", {}, void 0, !0)
118
93
  ])
119
94
  ], 64);
120
95
  };
121
96
  }
122
97
  });
123
98
  export {
124
- be as default
99
+ ae as default
125
100
  };
@@ -1,22 +1,4 @@
1
- import { defineComponent as n, ref as s, nextTick as i, renderSlot as u, createCommentVNode as r } from "vue";
2
- import { lazyBus as a } from "./lazyBus.js";
3
- const y = /* @__PURE__ */ n({
4
- __name: "Lazy",
5
- props: {
6
- id: {},
7
- isLazy: { type: Boolean, default: !0 },
8
- lazyTimeout: { default: 0 }
9
- },
10
- setup(d) {
11
- const e = d, l = (t = () => {
12
- }) => {
13
- typeof window > "u" || ("requestIdleCallback" in window ? setTimeout(() => window.requestIdleCallback(t), e.lazyTimeout) : setTimeout(() => i(t), e.lazyTimeout ?? 300));
14
- }, o = s(!e.isLazy);
15
- return e.isLazy ? l(() => {
16
- o.value = !0, e.id && i(() => a.emit({ id: e.id }));
17
- }) : e.id && i(() => a.emit({ id: e.id })), (t, f) => o.value ? u(t.$slots, "default", { key: 0 }) : r("", !0);
18
- }
19
- });
1
+ import f from "./Lazy.vue2.js";
20
2
  export {
21
- y as default
3
+ f as default
22
4
  };
@@ -1,4 +1,22 @@
1
- import f from "./Lazy.vue.js";
1
+ import { defineComponent as n, ref as s, nextTick as i, renderSlot as u, createCommentVNode as r } from "vue";
2
+ import { lazyBus as a } from "./lazyBus.js";
3
+ const y = /* @__PURE__ */ n({
4
+ __name: "Lazy",
5
+ props: {
6
+ id: {},
7
+ isLazy: { type: Boolean, default: !0 },
8
+ lazyTimeout: { default: 0 }
9
+ },
10
+ setup(d) {
11
+ const e = d, l = (t = () => {
12
+ }) => {
13
+ typeof window > "u" || ("requestIdleCallback" in window ? setTimeout(() => window.requestIdleCallback(t), e.lazyTimeout) : setTimeout(() => i(t), e.lazyTimeout ?? 300));
14
+ }, o = s(!e.isLazy);
15
+ return e.isLazy ? l(() => {
16
+ o.value = !0, e.id && i(() => a.emit({ id: e.id }));
17
+ }) : e.id && i(() => a.emit({ id: e.id })), (t, f) => o.value ? u(t.$slots, "default", { key: 0 }) : r("", !0);
18
+ }
19
+ });
2
20
  export {
3
- f as default
21
+ y as default
4
22
  };
@@ -3,7 +3,7 @@ import g from "../../ShowMoreButton.vue.js";
3
3
  import C from "../../Section/SectionContainer.vue.js";
4
4
  import L from "../../Section/Section.vue.js";
5
5
  import I from "../../Section/SectionHeader.vue.js";
6
- import u from "../Lazy/Lazy.vue.js";
6
+ import u from "../Lazy/Lazy.vue2.js";
7
7
  import w from "../../Section/CompactSection.vue.js";
8
8
  import B from "../Schema/SchemaHeading.vue.js";
9
9
  import H from "../Schema/Schema.vue.js";
@@ -0,0 +1,21 @@
1
+ import type { Spec, Tag as tagType } from '@scalar/types/legacy';
2
+ declare const _default: import("vue").DefineComponent<__VLS_TypePropsToOption<{
3
+ tags: tagType[];
4
+ spec: Spec;
5
+ layout?: "default" | "accordion";
6
+ }>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<__VLS_TypePropsToOption<{
7
+ tags: tagType[];
8
+ spec: Spec;
9
+ layout?: "default" | "accordion";
10
+ }>>>, {}, {}>;
11
+ export default _default;
12
+ type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
13
+ type __VLS_TypePropsToOption<T> = {
14
+ [K in keyof T]-?: {} extends Pick<T, K> ? {
15
+ type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
16
+ } : {
17
+ type: import('vue').PropType<T[K]>;
18
+ required: true;
19
+ };
20
+ };
21
+ //# sourceMappingURL=TagList.vue.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"TagList.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/Content/Tag/TagList.vue"],"names":[],"mappings":"AAwDA,OAAO,KAAK,EAAE,IAAI,EAAE,GAAG,IAAI,OAAO,EAAE,MAAM,sBAAsB,CAAA;;UAWxD,OAAO,EAAE;UACT,IAAI;aACD,SAAS,GAAG,WAAW;;UAF1B,OAAO,EAAE;UACT,IAAI;aACD,SAAS,GAAG,WAAW;;AAyGlC,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"}