@scalar/api-reference 1.22.37 → 1.22.38

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.
@@ -2,6 +2,7 @@ import type { Spec } from '../types';
2
2
  export type SidebarEntry = {
3
3
  id: string;
4
4
  title: string;
5
+ displayTitle?: string;
5
6
  children?: SidebarEntry[];
6
7
  select?: () => void;
7
8
  httpVerb?: string;
@@ -1 +1 @@
1
- {"version":3,"file":"useSidebar.d.ts","sourceRoot":"","sources":["../../src/hooks/useSidebar.ts"],"names":[],"mappings":"AAaA,OAAO,KAAK,EAAE,IAAI,EAAO,MAAM,UAAU,CAAA;AAGzC,MAAM,MAAM,YAAY,GAAG;IACzB,EAAE,EAAE,MAAM,CAAA;IACV,KAAK,EAAE,MAAM,CAAA;IACb,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;AAsND,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":"AAaA,OAAO,KAAK,EAAE,IAAI,EAAO,MAAM,UAAU,CAAA;AAGzC,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;AAuND,wBAAgB,UAAU,CAAC,OAAO,CAAC,EAAE;IAAE,UAAU,EAAE,IAAI,CAAA;CAAE;;;;;;;;;;;;EA2CxD"}
@@ -3,8 +3,8 @@ var vr = (t, e, a) => e in t ? yr(t, e, { enumerable: !0, configurable: !0, writ
3
3
  var ca = (t, e, a) => (vr(t, typeof e != "symbol" ? e + "" : e, a), a);
4
4
  import { ref as F, watch as Se, onBeforeUnmount as wr, toValue as q, computed as x, defineComponent as w, toRef as ce, openBlock as Q, createElementBlock as P, normalizeClass as J, unref as m, createElementVNode as u, toDisplayString as X, createTextVNode as U, Fragment as j, renderList as fe, createBlock as v, createStaticVNode as Nt, createCommentVNode as M, createVNode as Z, withCtx as b, pushScopeId as ut, popScopeId as ht, renderSlot as E, withDirectives as pe, vModelText as Me, vModelCheckbox as kr, vShow as sO, normalizeStyle as Tr, toRaw as Xr, withKeys as xr } from "vue";
5
5
  import { Disclosure as _r, DisclosureButton as Wr, DisclosurePanel as Yr, TabGroup as Rr, TabList as qr, Tab as da, TabPanels as Cr, TabPanel as pa } from "@headlessui/vue";
6
- import { E as N, c as ie, a as L, b as C, C as Wt, s as Oe, P as oO, k as et, F as iO, d as Ur, S as Mt, e as jr, g as nO, V as zr, l as Yt, f as re, M as Rt, R as Vr, h as Gr, i as lO, D as Ar, A as Er, T as Hr, j as Br, m as cO, n as ft, W as Ir, o as Dr, p as Nr, q as Mr, r as Lr, N as Fr, t as Jr, u as Kr, v as Lt, w as Le, I as Ft, x as Ue, y as p, L as je, z as ze, B as Ve, G as $e, H as Ge, J as mt, K as dO, O as es, Q as ts, U as qt, X as pO, Y as as, Z as Os, _ as rs, $ as ss, a0 as os, a1 as is, a2 as ns, a3 as ls, a4 as cs, a5 as ds, a6 as R, a7 as ps, a8 as uO, a9 as Ct, aa as Jt, ab as hO, ac as K, ad as us, ae as hs, af as fs, ag as fO, ah as ms, ai as Qs, aj as gs, ak as ua, al as Ss, am as Ps, an as $s, ao as bs } from "./index-c-Dc2xX9.js";
7
- import { av as Qp, aw as gp, ap as Sp, aq as Pp, ar as $p, as as bp, at as Zp, az as yp, ay as vp, au as wp, ax as kp } from "./index-c-Dc2xX9.js";
6
+ import { E as N, c as ie, a as L, b as C, C as Wt, s as Oe, P as oO, k as et, F as iO, d as Ur, S as Mt, e as jr, g as nO, V as zr, l as Yt, f as re, M as Rt, R as Vr, h as Gr, i as lO, D as Ar, A as Er, T as Hr, j as Br, m as cO, n as ft, W as Ir, o as Dr, p as Nr, q as Mr, r as Lr, N as Fr, t as Jr, u as Kr, v as Lt, w as Le, I as Ft, x as Ue, y as p, L as je, z as ze, B as Ve, G as $e, H as Ge, J as mt, K as dO, O as es, Q as ts, U as qt, X as pO, Y as as, Z as Os, _ as rs, $ as ss, a0 as os, a1 as is, a2 as ns, a3 as ls, a4 as cs, a5 as ds, a6 as R, a7 as ps, a8 as uO, a9 as Ct, aa as Jt, ab as hO, ac as K, ad as us, ae as hs, af as fs, ag as fO, ah as ms, ai as Qs, aj as gs, ak as ua, al as Ss, am as Ps, an as $s, ao as bs } from "./index-CKcLrZQi.js";
7
+ import { av as Qp, aw as gp, ap as Sp, aq as Pp, ar as $p, as as bp, at as Zp, az as yp, ay as vp, au as wp, ax as kp } from "./index-CKcLrZQi.js";
8
8
  import { useMagicKeys as mO, whenever as Ut, useMediaQuery as Zs } from "@vueuse/core";
9
9
  import ys from "axios";
10
10
  const vs = {
@@ -31339,10 +31339,6 @@ const ER = (r) => new Promise(async (e, t) => {
31339
31339
  typeof (($ = e.tags[y]) == null ? void 0 : $.operations) > "u" && (e.tags[y].operations = []), e.tags[y].operations.push(l);
31340
31340
  });
31341
31341
  });
31342
- }), e.tags.forEach((n, o) => {
31343
- var a;
31344
- const i = n["x-displayName"];
31345
- i && ((a = e.tags) != null && a[o]) && (e.tags[o].name = i);
31346
31342
  }), {
31347
31343
  ...e,
31348
31344
  webhooks: t
@@ -32173,6 +32169,7 @@ const fc = ie([]), Q3 = async (r) => {
32173
32169
  return {
32174
32170
  id: nw(_),
32175
32171
  title: _.name.toUpperCase(),
32172
+ displayTitle: (_["x-displayName"] ?? _.name).toUpperCase(),
32176
32173
  show: !0,
32177
32174
  children: (w = _.operations) == null ? void 0 : w.map(
32178
32175
  (x) => {
@@ -32464,7 +32461,7 @@ const tj = /* @__PURE__ */ Q({
32464
32461
  key: h.id
32465
32462
  }, [
32466
32463
  h.isGroup ? (S(), A(Z, { key: 0 }, [
32467
- F("li", dj, re(h.title), 1),
32464
+ F("li", dj, re(h.displayTitle ?? h.title), 1),
32468
32465
  (S(!0), A(Z, null, Se(h.children, (f) => (S(), z(ml, {
32469
32466
  key: f.id,
32470
32467
  id: `sidebar-${f.id}`,
@@ -32473,7 +32470,7 @@ const tj = /* @__PURE__ */ Q({
32473
32470
  isActive: k(t) === f.id,
32474
32471
  item: {
32475
32472
  id: f.id,
32476
- title: f.title,
32473
+ title: f.displayTitle ?? f.title,
32477
32474
  select: f.select,
32478
32475
  httpVerb: f.httpVerb,
32479
32476
  deprecated: f.deprecated ?? !1
@@ -32500,7 +32497,7 @@ const tj = /* @__PURE__ */ Q({
32500
32497
  isActive: k(t) === g.id,
32501
32498
  item: {
32502
32499
  id: g.id,
32503
- title: g.title,
32500
+ title: g.displayTitle ?? g.title,
32504
32501
  select: g.select,
32505
32502
  httpVerb: g.httpVerb,
32506
32503
  deprecated: g.deprecated ?? !1
@@ -32523,7 +32520,7 @@ const tj = /* @__PURE__ */ Q({
32523
32520
  isActive: k(t) === h.id,
32524
32521
  item: {
32525
32522
  id: h.id,
32526
- title: h.title,
32523
+ title: h.displayTitle ?? h.title,
32527
32524
  select: h.select,
32528
32525
  httpVerb: h.httpVerb,
32529
32526
  deprecated: h.deprecated ?? !1
@@ -32550,7 +32547,7 @@ const tj = /* @__PURE__ */ Q({
32550
32547
  isActive: k(t) === p.id,
32551
32548
  item: {
32552
32549
  id: p.id,
32553
- title: p.title,
32550
+ title: p.displayTitle ?? p.title,
32554
32551
  select: p.select,
32555
32552
  httpVerb: p.httpVerb,
32556
32553
  deprecated: p.deprecated ?? !1
@@ -32573,7 +32570,7 @@ const tj = /* @__PURE__ */ Q({
32573
32570
  ee(u.$slots, "sidebar-end", {}, void 0, !0)
32574
32571
  ]));
32575
32572
  }
32576
- }), lw = /* @__PURE__ */ ne(fj, [["__scopeId", "data-v-404804be"]]), pj = {
32573
+ }), lw = /* @__PURE__ */ ne(fj, [["__scopeId", "data-v-35ffc745"]]), pj = {
32577
32574
  key: 0,
32578
32575
  class: "api-client-drawer"
32579
32576
  }, mj = { class: "api-client-container" }, gj = { class: "scalar-api-client-height" }, yj = { class: "scalar-api-client-states" }, bj = { class: "t-doc__sidebar" }, vj = /* @__PURE__ */ Q({
@@ -32587,7 +32584,7 @@ const tj = /* @__PURE__ */ Q({
32587
32584
  emits: ["toggleDarkMode"],
32588
32585
  setup(r) {
32589
32586
  const e = E0(
32590
- () => import("./index-CIaJvRSU.js").then((i) => i.ApiClient)
32587
+ () => import("./index-BGfYoeTi.js").then((i) => i.ApiClient)
32591
32588
  ), { hideApiClient: t, state: s } = Th(), n = Ah("(max-width: 1000px)"), o = ie(!1);
32592
32589
  return (i, a) => (S(), A(Z, null, [
32593
32590
  k(s).showApiClient || i.overloadShow ? (S(), A("div", pj, [