@scalar/api-reference 1.22.37 → 1.22.39

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.
@@ -16,7 +16,7 @@ import { availableTargets as gk, HTTPSnippet as yk } from "httpsnippet-lite";
16
16
  import { createHead as bk, useSeoMeta as vk } from "unhead";
17
17
  import wk from "rehype-external-links";
18
18
  import kk from "rehype-format";
19
- import Sk from "rehype-prism";
19
+ import Sk from "rehype-highlight";
20
20
  import $k from "rehype-raw";
21
21
  import _k, { defaultSchema as zp } from "rehype-sanitize";
22
22
  import xk from "rehype-stringify";
@@ -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-jBpHeRxZ.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, [
@@ -32652,7 +32649,7 @@ const tj = /* @__PURE__ */ Q({
32652
32649
  })) : H("", !0)
32653
32650
  ], 64));
32654
32651
  }
32655
- }), wj = /* @__PURE__ */ ne(vj, [["__scopeId", "data-v-5df46cc3"]]), cw = () => ({
32652
+ }), wj = /* @__PURE__ */ ne(vj, [["__scopeId", "data-v-206ad1a1"]]), cw = () => ({
32656
32653
  targetKey: "shell",
32657
32654
  clientKey: "curl"
32658
32655
  }), Co = Ur(cw());
@@ -32885,7 +32882,9 @@ const Pn = /* @__PURE__ */ ne(xj, [["render", Ej], ["__scopeId", "data-v-dcabb13
32885
32882
  tagNames: (o = zp.tagNames) == null ? void 0 : o.filter(
32886
32883
  (i) => !s.includes(i)
32887
32884
  )
32888
- }).use(Sk).use(wk, { target: "_blank" }).use(kk).use(xk).process(e.value);
32885
+ }).use(Sk, {
32886
+ detect: !0
32887
+ }).use(wk, { target: "_blank" }).use(kk).use(xk).process(e.value);
32889
32888
  t.value = String(n.value);
32890
32889
  },
32891
32890
  { immediate: !0 }
@@ -32894,7 +32893,7 @@ const Pn = /* @__PURE__ */ ne(xj, [["render", Ej], ["__scopeId", "data-v-dcabb13
32894
32893
  innerHTML: t.value
32895
32894
  }, null, 8, Fj));
32896
32895
  }
32897
- }), Ht = /* @__PURE__ */ ne(zj, [["__scopeId", "data-v-172b542f"]]), qj = ["title", "innerHTML"], Hj = /* @__PURE__ */ Q({
32896
+ }), Ht = /* @__PURE__ */ ne(zj, [["__scopeId", "data-v-bcae22de"]]), qj = ["title", "innerHTML"], Hj = /* @__PURE__ */ Q({
32898
32897
  __name: "ServerItem",
32899
32898
  props: {
32900
32899
  value: {},
@@ -35019,7 +35018,7 @@ const _B = /* @__PURE__ */ Q({
35019
35018
  ])) : (S(), A("div", MB, " No Body "));
35020
35019
  };
35021
35020
  }
35022
- }), x0 = /* @__PURE__ */ ne(DB, [["__scopeId", "data-v-800e8c7d"]]), RB = (r) => (Kt("data-v-469e6333"), r = r(), Ut(), r), jB = {
35021
+ }), x0 = /* @__PURE__ */ ne(DB, [["__scopeId", "data-v-800e8c7d"]]), RB = (r) => (Kt("data-v-314905de"), r = r(), Ut(), r), jB = {
35023
35022
  key: 1,
35024
35023
  class: "scalar-card-checkbox"
35025
35024
  }, LB = /* @__PURE__ */ RB(() => /* @__PURE__ */ F("span", { class: "scalar-card-checkbox-checkmark" }, null, -1)), BB = { class: "scalar-card-container custom-scroll" }, VB = {
@@ -35049,7 +35048,7 @@ const _B = /* @__PURE__ */ Q({
35049
35048
  );
35050
35049
  return (
35051
35050
  // OpenAPI 3.x
35052
- (h == null ? void 0 : h["application/json"]) ?? // Swagger 2.0
35051
+ (h == null ? void 0 : h["application/json"]) ?? (h == null ? void 0 : h["text/plain"]) ?? // Swagger 2.0
35053
35052
  a.value
35054
35053
  );
35055
35054
  }), c = oe(() => ({
@@ -35159,7 +35158,7 @@ const _B = /* @__PURE__ */ Q({
35159
35158
  _: 1
35160
35159
  })) : H("", !0);
35161
35160
  }
35162
- }), ww = /* @__PURE__ */ ne(FB, [["__scopeId", "data-v-469e6333"]]), zB = (r) => (Kt("data-v-f44e2b65"), r = r(), Ut(), r), qB = /* @__PURE__ */ zB(() => /* @__PURE__ */ F("span", null, "Test Request", -1)), HB = /* @__PURE__ */ Q({
35161
+ }), ww = /* @__PURE__ */ ne(FB, [["__scopeId", "data-v-314905de"]]), zB = (r) => (Kt("data-v-f44e2b65"), r = r(), Ut(), r), qB = /* @__PURE__ */ zB(() => /* @__PURE__ */ F("span", null, "Test Request", -1)), HB = /* @__PURE__ */ Q({
35163
35162
  __name: "TryRequestButton",
35164
35163
  props: {
35165
35164
  operation: {}
@@ -35489,7 +35488,7 @@ const _B = /* @__PURE__ */ Q({
35489
35488
  id: k(o)(c.tag)
35490
35489
  }, {
35491
35490
  default: T(() => [
35492
- J(re(c.tag.name), 1)
35491
+ J(re(c.tag["x-displayName"] ?? c.tag.name), 1)
35493
35492
  ]),
35494
35493
  _: 1
35495
35494
  }, 8, ["id"])
@@ -35555,7 +35554,7 @@ const _B = /* @__PURE__ */ Q({
35555
35554
  _: 1
35556
35555
  }, 8, ["id", "label"]));
35557
35556
  }
35558
- }), l8 = /* @__PURE__ */ ne(a8, [["__scopeId", "data-v-82b13b6d"]]), c8 = (r, e) => {
35557
+ }), l8 = /* @__PURE__ */ ne(a8, [["__scopeId", "data-v-b209ef2d"]]), c8 = (r, e) => {
35559
35558
  uk(r, e, { childList: !0, subtree: !0 });
35560
35559
  }, u8 = /* @__PURE__ */ Q({
35561
35560
  __name: "Tag",
@@ -36457,7 +36456,7 @@ function d9(r) {
36457
36456
  return !1;
36458
36457
  }
36459
36458
  }
36460
- const h9 = (r) => (Kt("data-v-8395f85c"), r = r(), Ut(), r), f9 = /* @__PURE__ */ h9(() => /* @__PURE__ */ F("div", { class: "ref-search-meta" }, [
36459
+ const h9 = (r) => (Kt("data-v-3445e6c6"), r = r(), Ut(), r), f9 = /* @__PURE__ */ h9(() => /* @__PURE__ */ F("div", { class: "ref-search-meta" }, [
36461
36460
  /* @__PURE__ */ F("span", null, "↑↓ Navigate"),
36462
36461
  /* @__PURE__ */ F("span", null, "⏎ Select")
36463
36462
  ], -1)), p9 = /* @__PURE__ */ Q({
@@ -36509,7 +36508,7 @@ const h9 = (r) => (Kt("data-v-8395f85c"), r = r(), Ut(), r), f9 = /* @__PURE__ *
36509
36508
  });
36510
36509
  }), o.value = o.value.concat(P)), (Le = e.parsedSpec.tags) == null || Le.forEach((ve) => {
36511
36510
  const Y = {
36512
- title: ve.name,
36511
+ title: ve["x-displayName"] ?? ve.name,
36513
36512
  href: `#${y(ve)}`,
36514
36513
  description: ve.description,
36515
36514
  type: "tag",
@@ -36661,7 +36660,7 @@ const h9 = (r) => (Kt("data-v-8395f85c"), r = r(), Ut(), r), f9 = /* @__PURE__ *
36661
36660
  _: 1
36662
36661
  }, 8, ["state"]));
36663
36662
  }
36664
- }), m9 = /* @__PURE__ */ ne(p9, [["__scopeId", "data-v-8395f85c"]]), g9 = (r) => (Kt("data-v-edb0a931"), r = r(), Ut(), r), y9 = { class: "sidebar-search-input" }, b9 = /* @__PURE__ */ g9(() => /* @__PURE__ */ F("span", { class: "sidebar-search-placeholder" }, "Search", -1)), v9 = { class: "sidebar-search-shortcut" }, w9 = { class: "sidebar-search-key" }, k9 = /* @__PURE__ */ Q({
36663
+ }), m9 = /* @__PURE__ */ ne(p9, [["__scopeId", "data-v-3445e6c6"]]), g9 = (r) => (Kt("data-v-edb0a931"), r = r(), Ut(), r), y9 = { class: "sidebar-search-input" }, b9 = /* @__PURE__ */ g9(() => /* @__PURE__ */ F("span", { class: "sidebar-search-placeholder" }, "Search", -1)), v9 = { class: "sidebar-search-shortcut" }, w9 = { class: "sidebar-search-key" }, k9 = /* @__PURE__ */ Q({
36665
36664
  __name: "SearchButton",
36666
36665
  props: {
36667
36666
  spec: {},
@@ -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-DBR-eSdE.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-DBR-eSdE.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 = {
package/dist/index.cjs CHANGED
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./index-v8YpoGN6.cjs");require("vue");require("@headlessui/vue");require("@vueuse/core");require("axios");exports.ApiClientModal=e.ApiClientModal;exports.ApiReference=e._sfc_main$2;exports.ApiReferenceLayout=e.ApiReferenceLayout;exports.Card=e.Card;exports.CardContent=e.CardContent;exports.CardFooter=e.CardFooter;exports.CardHeader=e.CardHeader;exports.CardTab=e.CardTab;exports.CardTabHeader=e.CardTabHeader;exports.DarkModeIconToggle=e.DarkModeIconToggle;exports.DarkModeToggle=e.DarkModeToggle;exports.GLOBAL_SECURITY_SYMBOL=e.GLOBAL_SECURITY_SYMBOL;exports.GettingStarted=e.GettingStarted;exports.HIDE_DOWNLOAD_BUTTON_SYMBOL=e.HIDE_DOWNLOAD_BUTTON_SYMBOL;exports.ModernLayout=e.ModernLayout;exports.RenderedReference=e.Content;exports.SearchButton=e.SearchButton;exports.SearchModal=e.SearchModal;exports.Sidebar=e.Sidebar;exports.createEmptyServerState=e.createEmptyServerState;exports.createEmptySpecification=e.createEmptySpecification;exports.deepMerge=e.deepMerge;exports.downloadSpecBus=e.downloadSpecBus;exports.downloadSpecFile=e.downloadSpecFile;exports.getApiClientRequest=e.getApiClientRequest;exports.getHeadingsFromMarkdown=e.getHeadingsFromMarkdown;exports.getLowestHeadingLevel=e.getLowestHeadingLevel;exports.getModels=e.getModels;exports.getUrlFromServerState=e.getUrlFromServerState;exports.getVariableNames=e.getVariableNames;exports.hasModels=e.hasModels;exports.hasSecuritySchemes=e.hasSecuritySchemes;exports.hasWebhooks=e.hasWebhooks;exports.isValidUrl=e.isValidUrl;exports.mapFromObject=e.mapFromObject;exports.mergeAllObjects=e.mergeAllObjects;exports.objectMerge=e.objectMerge;exports.openClientFor=e.openClientFor;exports.parse=e.parse;exports.replaceVariables=e.replaceVariables;exports.scrollToId=e.scrollToId;exports.sleep=e.sleep;exports.splitMarkdownInSections=e.splitMarkdownInSections;exports.useApiClientStore=e.useApiClientStore;exports.useHttpClientStore=e.useHttpClientStore;exports.useReactiveSpec=e.useReactiveSpec;exports.useServerStore=e.useServerStore;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./index-Co9WOrHR.cjs");require("vue");require("@headlessui/vue");require("@vueuse/core");require("axios");exports.ApiClientModal=e.ApiClientModal;exports.ApiReference=e._sfc_main$2;exports.ApiReferenceLayout=e.ApiReferenceLayout;exports.Card=e.Card;exports.CardContent=e.CardContent;exports.CardFooter=e.CardFooter;exports.CardHeader=e.CardHeader;exports.CardTab=e.CardTab;exports.CardTabHeader=e.CardTabHeader;exports.DarkModeIconToggle=e.DarkModeIconToggle;exports.DarkModeToggle=e.DarkModeToggle;exports.GLOBAL_SECURITY_SYMBOL=e.GLOBAL_SECURITY_SYMBOL;exports.GettingStarted=e.GettingStarted;exports.HIDE_DOWNLOAD_BUTTON_SYMBOL=e.HIDE_DOWNLOAD_BUTTON_SYMBOL;exports.ModernLayout=e.ModernLayout;exports.RenderedReference=e.Content;exports.SearchButton=e.SearchButton;exports.SearchModal=e.SearchModal;exports.Sidebar=e.Sidebar;exports.createEmptyServerState=e.createEmptyServerState;exports.createEmptySpecification=e.createEmptySpecification;exports.deepMerge=e.deepMerge;exports.downloadSpecBus=e.downloadSpecBus;exports.downloadSpecFile=e.downloadSpecFile;exports.getApiClientRequest=e.getApiClientRequest;exports.getHeadingsFromMarkdown=e.getHeadingsFromMarkdown;exports.getLowestHeadingLevel=e.getLowestHeadingLevel;exports.getModels=e.getModels;exports.getUrlFromServerState=e.getUrlFromServerState;exports.getVariableNames=e.getVariableNames;exports.hasModels=e.hasModels;exports.hasSecuritySchemes=e.hasSecuritySchemes;exports.hasWebhooks=e.hasWebhooks;exports.isValidUrl=e.isValidUrl;exports.mapFromObject=e.mapFromObject;exports.mergeAllObjects=e.mergeAllObjects;exports.objectMerge=e.objectMerge;exports.openClientFor=e.openClientFor;exports.parse=e.parse;exports.replaceVariables=e.replaceVariables;exports.scrollToId=e.scrollToId;exports.sleep=e.sleep;exports.splitMarkdownInSections=e.splitMarkdownInSections;exports.useApiClientStore=e.useApiClientStore;exports.useHttpClientStore=e.useHttpClientStore;exports.useReactiveSpec=e.useReactiveSpec;exports.useServerStore=e.useServerStore;