@scalar/api-reference 1.22.36 → 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-DqoeU2ae.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-DqoeU2ae.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 = {
@@ -18481,7 +18481,8 @@ const aE = ["innerHTML"], Es = /* @__PURE__ */ Q({
18481
18481
  base: "scalar-icon-button grid aspect-square cursor-pointer rounded",
18482
18482
  variants: {
18483
18483
  size: {
18484
- xs: "size-3.5 p-0.5",
18484
+ xxs: "size-3.5 p-0.5",
18485
+ xs: "size-5 p-1",
18485
18486
  sm: "size-6 p-1",
18486
18487
  md: "size-10 p-3",
18487
18488
  full: "h-full w-full"
@@ -31338,10 +31339,6 @@ const ER = (r) => new Promise(async (e, t) => {
31338
31339
  typeof (($ = e.tags[y]) == null ? void 0 : $.operations) > "u" && (e.tags[y].operations = []), e.tags[y].operations.push(l);
31339
31340
  });
31340
31341
  });
31341
- }), e.tags.forEach((n, o) => {
31342
- var a;
31343
- const i = n["x-displayName"];
31344
- i && ((a = e.tags) != null && a[o]) && (e.tags[o].name = i);
31345
31342
  }), {
31346
31343
  ...e,
31347
31344
  webhooks: t
@@ -32172,6 +32169,7 @@ const fc = ie([]), Q3 = async (r) => {
32172
32169
  return {
32173
32170
  id: nw(_),
32174
32171
  title: _.name.toUpperCase(),
32172
+ displayTitle: (_["x-displayName"] ?? _.name).toUpperCase(),
32175
32173
  show: !0,
32176
32174
  children: (w = _.operations) == null ? void 0 : w.map(
32177
32175
  (x) => {
@@ -32381,7 +32379,7 @@ const tj = /* @__PURE__ */ Q({
32381
32379
  class: "toggle-nested-icon",
32382
32380
  icon: u.open ? "ChevronDown" : "ChevronRight",
32383
32381
  label: "Toggle group",
32384
- size: "sm",
32382
+ size: "xs",
32385
32383
  onClick: aa(a, ["stop"])
32386
32384
  }, null, 8, ["icon"]),
32387
32385
  J("   ")
@@ -32413,7 +32411,7 @@ const tj = /* @__PURE__ */ Q({
32413
32411
  ], 8, rj);
32414
32412
  };
32415
32413
  }
32416
- }), ml = /* @__PURE__ */ ne(lj, [["__scopeId", "data-v-17b23ea1"]]), cj = /* @__PURE__ */ Q({
32414
+ }), ml = /* @__PURE__ */ ne(lj, [["__scopeId", "data-v-9b628ae0"]]), cj = /* @__PURE__ */ Q({
32417
32415
  __name: "SidebarGroup",
32418
32416
  props: {
32419
32417
  level: {}
@@ -32463,7 +32461,7 @@ const tj = /* @__PURE__ */ Q({
32463
32461
  key: h.id
32464
32462
  }, [
32465
32463
  h.isGroup ? (S(), A(Z, { key: 0 }, [
32466
- F("li", dj, re(h.title), 1),
32464
+ F("li", dj, re(h.displayTitle ?? h.title), 1),
32467
32465
  (S(!0), A(Z, null, Se(h.children, (f) => (S(), z(ml, {
32468
32466
  key: f.id,
32469
32467
  id: `sidebar-${f.id}`,
@@ -32472,7 +32470,7 @@ const tj = /* @__PURE__ */ Q({
32472
32470
  isActive: k(t) === f.id,
32473
32471
  item: {
32474
32472
  id: f.id,
32475
- title: f.title,
32473
+ title: f.displayTitle ?? f.title,
32476
32474
  select: f.select,
32477
32475
  httpVerb: f.httpVerb,
32478
32476
  deprecated: f.deprecated ?? !1
@@ -32499,7 +32497,7 @@ const tj = /* @__PURE__ */ Q({
32499
32497
  isActive: k(t) === g.id,
32500
32498
  item: {
32501
32499
  id: g.id,
32502
- title: g.title,
32500
+ title: g.displayTitle ?? g.title,
32503
32501
  select: g.select,
32504
32502
  httpVerb: g.httpVerb,
32505
32503
  deprecated: g.deprecated ?? !1
@@ -32522,7 +32520,7 @@ const tj = /* @__PURE__ */ Q({
32522
32520
  isActive: k(t) === h.id,
32523
32521
  item: {
32524
32522
  id: h.id,
32525
- title: h.title,
32523
+ title: h.displayTitle ?? h.title,
32526
32524
  select: h.select,
32527
32525
  httpVerb: h.httpVerb,
32528
32526
  deprecated: h.deprecated ?? !1
@@ -32549,7 +32547,7 @@ const tj = /* @__PURE__ */ Q({
32549
32547
  isActive: k(t) === p.id,
32550
32548
  item: {
32551
32549
  id: p.id,
32552
- title: p.title,
32550
+ title: p.displayTitle ?? p.title,
32553
32551
  select: p.select,
32554
32552
  httpVerb: p.httpVerb,
32555
32553
  deprecated: p.deprecated ?? !1
@@ -32572,7 +32570,7 @@ const tj = /* @__PURE__ */ Q({
32572
32570
  ee(u.$slots, "sidebar-end", {}, void 0, !0)
32573
32571
  ]));
32574
32572
  }
32575
- }), lw = /* @__PURE__ */ ne(fj, [["__scopeId", "data-v-404804be"]]), pj = {
32573
+ }), lw = /* @__PURE__ */ ne(fj, [["__scopeId", "data-v-35ffc745"]]), pj = {
32576
32574
  key: 0,
32577
32575
  class: "api-client-drawer"
32578
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({
@@ -32586,7 +32584,7 @@ const tj = /* @__PURE__ */ Q({
32586
32584
  emits: ["toggleDarkMode"],
32587
32585
  setup(r) {
32588
32586
  const e = E0(
32589
- () => import("./index-2EFZIqk4.js").then((i) => i.ApiClient)
32587
+ () => import("./index-BGfYoeTi.js").then((i) => i.ApiClient)
32590
32588
  ), { hideApiClient: t, state: s } = Th(), n = Ah("(max-width: 1000px)"), o = ie(!1);
32591
32589
  return (i, a) => (S(), A(Z, null, [
32592
32590
  k(s).showApiClient || i.overloadShow ? (S(), A("div", pj, [
@@ -35412,7 +35410,7 @@ const _B = /* @__PURE__ */ Q({
35412
35410
  class: "endpoint-copy",
35413
35411
  icon: "Clipboard",
35414
35412
  label: "Copy endpoint URL",
35415
- size: "sm",
35413
+ size: "xs",
35416
35414
  variant: "ghost",
35417
35415
  onClick: s[0] || (s[0] = aa((o) => k(e)(t.operation.path), ["stop"]))
35418
35416
  })
@@ -35438,7 +35436,7 @@ const _B = /* @__PURE__ */ Q({
35438
35436
  } : void 0
35439
35437
  ]), 1032, ["id"]));
35440
35438
  }
35441
- }), s8 = /* @__PURE__ */ ne(r8, [["__scopeId", "data-v-3ee61fb6"]]), n8 = /* @__PURE__ */ Q({
35439
+ }), s8 = /* @__PURE__ */ ne(r8, [["__scopeId", "data-v-f61893df"]]), n8 = /* @__PURE__ */ Q({
35442
35440
  __name: "ShowMoreButton",
35443
35441
  props: {
35444
35442
  id: {}