@scalar/api-reference 1.24.73 → 1.24.74

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 (53) hide show
  1. package/CHANGELOG.md +16 -0
  2. package/dist/browser/standalone.js +12271 -12358
  3. package/dist/browser/webpack-stats.json +1 -1
  4. package/dist/components/ApiReference.vue.d.ts.map +1 -1
  5. package/dist/components/ApiReference.vue.js +37 -36
  6. package/dist/components/Card/Card.vue.js +4 -4
  7. package/dist/components/Card/CardContent.vue.js +2 -2
  8. package/dist/components/Content/ClientLibraries/ClientLibraries.vue.js +2 -2
  9. package/dist/components/Content/ClientLibraries/ClientLibraries.vue2.js +4 -4
  10. package/dist/components/Content/ClientLibraries/ClientSelector.vue.js +2 -2
  11. package/dist/components/Content/ClientLibraries/ClientSelector.vue2.js +9 -9
  12. package/dist/components/Content/Content.vue.js +1 -1
  13. package/dist/components/Content/Content.vue2.js +11 -11
  14. package/dist/components/Content/Operation/ParameterItem.vue.js +3 -3
  15. package/dist/components/Content/Operation/PathResponses/PathResponses.vue.js +1 -1
  16. package/dist/components/Content/Operation/PathResponses/PathResponses.vue2.js +1 -1
  17. package/dist/components/Content/Operation/RequestBody.vue.js +1 -1
  18. package/dist/components/Content/Operation/RequestBodyPropertiesChild.vue.d.ts.map +1 -1
  19. package/dist/components/Content/Schema/Schema.vue.d.ts.map +1 -1
  20. package/dist/components/Content/Schema/Schema.vue.js +3 -3
  21. package/dist/components/Content/Schema/Schema.vue2.js +57 -65
  22. package/dist/components/Content/Schema/SchemaProperty.vue.js +2 -2
  23. package/dist/components/Content/Schema/SchemaProperty.vue2.js +1 -1
  24. package/dist/components/Content/Tag/Endpoints.vue.d.ts.map +1 -1
  25. package/dist/components/Content/Tag/Endpoints.vue.js +2 -2
  26. package/dist/components/Content/Tag/Endpoints.vue2.js +63 -58
  27. package/dist/components/Content/Tag/Tag.vue.js +2 -2
  28. package/dist/components/DarkModeToggle/DarkModeToggle.vue.js +2 -2
  29. package/dist/components/DarkModeToggle/DarkModeToggle.vue2.js +3 -3
  30. package/dist/components/Layouts/ClassicLayout.vue.d.ts.map +1 -1
  31. package/dist/components/Layouts/ClassicLayout.vue.js +16 -15
  32. package/dist/components/Layouts/ModernLayout.vue.d.ts.map +1 -1
  33. package/dist/components/Layouts/ModernLayout.vue.js +2 -2
  34. package/dist/components/Layouts/ModernLayout.vue2.js +22 -21
  35. package/dist/components/Section/Section.vue.js +1 -1
  36. package/dist/components/ShowMoreButton.vue.js +2 -2
  37. package/dist/components/Sidebar/Sidebar.vue.d.ts.map +1 -1
  38. package/dist/components/Sidebar/Sidebar.vue.js +2 -2
  39. package/dist/features/BaseUrl/ServerForm.vue.js +2 -2
  40. package/dist/features/BaseUrl/ServerForm.vue2.js +1 -1
  41. package/dist/features/Search/SearchButton.vue.js +2 -2
  42. package/dist/features/Search/SearchButton.vue2.js +1 -1
  43. package/dist/hooks/useDarkModeState.d.ts +1 -1
  44. package/dist/hooks/useDarkModeState.d.ts.map +1 -1
  45. package/dist/hooks/useDarkModeState.js +12 -12
  46. package/dist/index.js +1 -1
  47. package/dist/legacy/components/CardForm.vue.js +2 -2
  48. package/dist/legacy/components/CardFormTextInput.vue.d.ts.map +1 -1
  49. package/dist/legacy/components/CardFormTextInput.vue.js +1 -1
  50. package/dist/style.css +1 -1
  51. package/dist/types.d.ts +4 -0
  52. package/dist/types.d.ts.map +1 -1
  53. package/package.json +8 -8
@@ -1,17 +1,12 @@
1
- import { defineComponent as j, computed as D, openBlock as l, createBlock as i, unref as p, withCtx as y, createElementVNode as f, normalizeClass as d, createElementBlock as a, createVNode as v, createCommentVNode as r, withDirectives as O, normalizeStyle as q, Fragment as t, createTextVNode as C, toDisplayString as P, vShow as z, renderList as I, pushScopeId as N, popScopeId as V } from "vue";
1
+ import { defineComponent as D, computed as O, openBlock as l, createBlock as t, unref as r, withCtx as h, createElementVNode as P, normalizeClass as p, createElementBlock as o, createVNode as d, createCommentVNode as s, withDirectives as q, normalizeStyle as N, Fragment as i, createTextVNode as C, toDisplayString as S, vShow as V, renderList as z } from "vue";
2
2
  import { Disclosure as A, DisclosureButton as E, DisclosurePanel as H } from "@headlessui/vue";
3
- import { ScalarMarkdown as T, ScalarIcon as $ } from "@scalar/components";
4
- import F from "./SchemaHeading.vue.js";
3
+ import { ScalarMarkdown as T, ScalarIcon as w } from "@scalar/components";
4
+ import $ from "./SchemaHeading.vue.js";
5
5
  import m from "./SchemaProperty.vue.js";
6
- const L = (s) => (N("data-v-ba8edff4"), s = s(), V(), s), M = {
6
+ const F = {
7
7
  key: 0,
8
8
  class: "schema-card-description"
9
- }, R = /* @__PURE__ */ L(() => /* @__PURE__ */ f("polygon", {
10
- "fill-rule": "nonzero",
11
- points: "14 8 8 8 8 14 6 14 6 8 0 8 0 6 6 6 6 0 8 0 8 6 14 6"
12
- }, null, -1)), G = [
13
- R
14
- ], Y = /* @__PURE__ */ j({
9
+ }, K = /* @__PURE__ */ D({
15
10
  __name: "Schema",
16
11
  props: {
17
12
  value: {},
@@ -20,63 +15,60 @@ const L = (s) => (N("data-v-ba8edff4"), s = s(), V(), s), M = {
20
15
  compact: { type: Boolean },
21
16
  noncollapsible: { type: Boolean }
22
17
  },
23
- setup(s) {
24
- const h = s, k = D(() => !(h.noncollapsible || h.level === 0)), B = (e) => h.noncollapsible && e.stopPropagation();
25
- return (e, J) => typeof e.value == "object" && Object.keys(e.value).length ? (l(), i(p(A), {
18
+ setup(B) {
19
+ const v = B, y = O(() => !(v.noncollapsible || v.level === 0)), j = (e) => v.noncollapsible && e.stopPropagation();
20
+ return (e, I) => typeof e.value == "object" && Object.keys(e.value).length ? (l(), t(r(A), {
26
21
  key: 0,
27
22
  defaultOpen: e.noncollapsible
28
23
  }, {
29
- default: y(({ open: n }) => {
30
- var b;
24
+ default: h(({ open: n }) => {
25
+ var k;
31
26
  return [
32
- f("div", {
33
- class: d(["schema-card", [
27
+ P("div", {
28
+ class: p(["schema-card", [
34
29
  `schema-card--level-${e.level}`,
35
30
  { "schema-card--compact": e.compact, "schema-card--open": n }
36
31
  ]])
37
32
  }, [
38
- (b = e.value) != null && b.description && typeof e.value.description == "string" ? (l(), a("div", M, [
39
- v(p(T), {
33
+ (k = e.value) != null && k.description && typeof e.value.description == "string" ? (l(), o("div", F, [
34
+ d(r(T), {
40
35
  value: e.value.description
41
36
  }, null, 8, ["value"])
42
- ])) : r("", !0),
43
- f("div", {
44
- class: d(["schema-properties", { "schema-properties-open": n }])
37
+ ])) : s("", !0),
38
+ P("div", {
39
+ class: p(["schema-properties", { "schema-properties-open": n }])
45
40
  }, [
46
- O(v(p(E), {
41
+ q(d(r(E), {
47
42
  as: e.noncollapsible ? "div" : "button",
48
- class: d(["schema-card-title", { "schema-card-title--compact": e.compact }]),
49
- style: q({
43
+ class: p(["schema-card-title", { "schema-card-title--compact": e.compact }]),
44
+ style: N({
50
45
  top: `calc(var(--refs-header-height) + calc(var(--schema-title-height) * ${e.level}))`
51
46
  }),
52
- onClickCapture: B
47
+ onClickCapture: j
53
48
  }, {
54
- default: y(() => {
55
- var c, o, u;
49
+ default: h(() => {
50
+ var c, a, u;
56
51
  return [
57
- e.compact ? (l(), a(t, { key: 0 }, [
58
- k.value ? (l(), a("svg", {
52
+ e.compact ? (l(), o(i, { key: 0 }, [
53
+ y.value ? (l(), t(r(w), {
59
54
  key: 0,
60
- class: d(["schema-card-title-icon", { "schema-card-title-icon--open": n }]),
61
- fill: "currentColor",
62
- height: "14",
63
- viewBox: "0 0 14 14",
64
- width: "14",
65
- xmlns: "http://www.w3.org/2000/svg"
66
- }, G, 2)) : r("", !0),
67
- n ? (l(), a(t, { key: 1 }, [
68
- C(" Hide " + P(((c = e.value) == null ? void 0 : c.title) ?? "Child Attributes"), 1)
69
- ], 64)) : (l(), a(t, { key: 2 }, [
70
- C(" Show " + P(((o = e.value) == null ? void 0 : o.title) ?? "Child Attributes"), 1)
55
+ class: p(["schema-card-title-icon h-2.5", { "schema-card-title-icon--open": n }]),
56
+ icon: "Add",
57
+ thickness: "3"
58
+ }, null, 8, ["class"])) : s("", !0),
59
+ n ? (l(), o(i, { key: 1 }, [
60
+ C(" Hide " + S(((c = e.value) == null ? void 0 : c.title) ?? "Child Attributes"), 1)
61
+ ], 64)) : (l(), o(i, { key: 2 }, [
62
+ C(" Show " + S(((a = e.value) == null ? void 0 : a.title) ?? "Child Attributes"), 1)
71
63
  ], 64))
72
- ], 64)) : (l(), a(t, { key: 1 }, [
73
- k.value ? (l(), i(p($), {
64
+ ], 64)) : (l(), o(i, { key: 1 }, [
65
+ y.value ? (l(), t(r(w), {
74
66
  key: 0,
75
- class: d(["schema-card-title-icon", { "schema-card-title-icon--open": n }]),
67
+ class: p(["schema-card-title-icon", { "schema-card-title-icon--open": n }]),
76
68
  icon: "ChevronRight",
77
69
  size: "md"
78
- }, null, 8, ["class"])) : r("", !0),
79
- v(F, {
70
+ }, null, 8, ["class"])) : s("", !0),
71
+ d($, {
80
72
  name: ((u = e.value) == null ? void 0 : u.title) ?? e.name,
81
73
  value: e.value
82
74
  }, null, 8, ["name", "value"])
@@ -85,26 +77,26 @@ const L = (s) => (N("data-v-ba8edff4"), s = s(), V(), s), M = {
85
77
  }),
86
78
  _: 2
87
79
  }, 1032, ["as", "class", "style"]), [
88
- [z, !(e.noncollapsible && e.compact)]
80
+ [V, !(e.noncollapsible && e.compact)]
89
81
  ]),
90
- v(p(H), { static: e.noncollapsible }, {
91
- default: y(() => {
82
+ d(r(H), { static: e.noncollapsible }, {
83
+ default: h(() => {
92
84
  var c;
93
85
  return [
94
- e.value.properties || e.value.additionalProperties ? (l(), a(t, { key: 0 }, [
95
- e.value.properties ? (l(!0), a(t, { key: 0 }, I(Object.keys((c = e.value) == null ? void 0 : c.properties), (o) => {
96
- var u, g, w, S;
97
- return l(), i(m, {
98
- key: o,
86
+ e.value.properties || e.value.additionalProperties ? (l(), o(i, { key: 0 }, [
87
+ e.value.properties ? (l(!0), o(i, { key: 0 }, z(Object.keys((c = e.value) == null ? void 0 : c.properties), (a) => {
88
+ var u, f, b, g;
89
+ return l(), t(m, {
90
+ key: a,
99
91
  compact: e.compact,
100
92
  level: e.level,
101
- name: o,
102
- required: ((u = e.value.required) == null ? void 0 : u.includes(o)) || ((w = (g = e.value.properties) == null ? void 0 : g[o]) == null ? void 0 : w.required) === !0,
103
- value: (S = e.value.properties) == null ? void 0 : S[o]
93
+ name: a,
94
+ required: ((u = e.value.required) == null ? void 0 : u.includes(a)) || ((b = (f = e.value.properties) == null ? void 0 : f[a]) == null ? void 0 : b.required) === !0,
95
+ value: (g = e.value.properties) == null ? void 0 : g[a]
104
96
  }, null, 8, ["compact", "level", "name", "required", "value"]);
105
- }), 128)) : r("", !0),
106
- e.value.additionalProperties ? (l(), a(t, { key: 1 }, [
107
- e.value.additionalProperties === !0 || Object.keys(e.value.additionalProperties).length === 0 || !e.value.additionalProperties.type ? (l(), i(m, {
97
+ }), 128)) : s("", !0),
98
+ e.value.additionalProperties ? (l(), o(i, { key: 1 }, [
99
+ e.value.additionalProperties === !0 || Object.keys(e.value.additionalProperties).length === 0 || !e.value.additionalProperties.type ? (l(), t(m, {
108
100
  key: 0,
109
101
  additional: "",
110
102
  compact: e.compact,
@@ -114,7 +106,7 @@ const L = (s) => (N("data-v-ba8edff4"), s = s(), V(), s), M = {
114
106
  type: "anything",
115
107
  ...typeof e.value.additionalProperties == "object" ? e.value.additionalProperties : {}
116
108
  }
117
- }, null, 8, ["compact", "level", "value"])) : (l(), i(m, {
109
+ }, null, 8, ["compact", "level", "value"])) : (l(), t(m, {
118
110
  key: 1,
119
111
  additional: "",
120
112
  compact: e.compact,
@@ -122,8 +114,8 @@ const L = (s) => (N("data-v-ba8edff4"), s = s(), V(), s), M = {
122
114
  noncollapsible: "",
123
115
  value: e.value.additionalProperties
124
116
  }, null, 8, ["compact", "level", "value"]))
125
- ], 64)) : r("", !0)
126
- ], 64)) : (l(), i(m, {
117
+ ], 64)) : s("", !0)
118
+ ], 64)) : (l(), t(m, {
127
119
  key: 1,
128
120
  compact: e.compact,
129
121
  level: e.level,
@@ -139,9 +131,9 @@ const L = (s) => (N("data-v-ba8edff4"), s = s(), V(), s), M = {
139
131
  ];
140
132
  }),
141
133
  _: 1
142
- }, 8, ["defaultOpen"])) : r("", !0);
134
+ }, 8, ["defaultOpen"])) : s("", !0);
143
135
  }
144
136
  });
145
137
  export {
146
- Y as default
138
+ K as default
147
139
  };
@@ -1,7 +1,7 @@
1
1
  import o from "./SchemaProperty.vue2.js";
2
2
  /* empty css */
3
3
  import r from "../../../_virtual/_plugin-vue_export-helper.js";
4
- const p = /* @__PURE__ */ r(o, [["__scopeId", "data-v-fb06e93b"]]);
4
+ const m = /* @__PURE__ */ r(o, [["__scopeId", "data-v-d1d8e2ad"]]);
5
5
  export {
6
- p as default
6
+ m as default
7
7
  };
@@ -2,7 +2,7 @@ import { defineComponent as V, openBlock as t, createElementBlock as l, normaliz
2
2
  import { ScalarMarkdown as h } from "@scalar/components";
3
3
  import m from "./Schema.vue.js";
4
4
  import A from "./SchemaPropertyHeading.vue.js";
5
- const G = (d) => (M("data-v-fb06e93b"), d = d(), $(), d), J = {
5
+ const G = (d) => (M("data-v-d1d8e2ad"), d = d(), $(), d), J = {
6
6
  key: 0,
7
7
  class: "property-description"
8
8
  }, K = {
@@ -1 +1 @@
1
- {"version":3,"file":"Endpoints.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/Content/Tag/Endpoints.vue"],"names":[],"mappings":"AAyHA,OAAO,KAAK,EAAE,GAAG,EAAwB,MAAM,mBAAmB,CAAA;;SAgBrC,MAAM;SAAO,GAAG;;;;SAAhB,MAAM;SAAO,GAAG;;;;AAmR7C,wBAOG;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":"Endpoints.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/Content/Tag/Endpoints.vue"],"names":[],"mappings":"AA+HA,OAAO,KAAK,EAAE,GAAG,EAAwB,MAAM,mBAAmB,CAAA;;SAgBrC,MAAM;SAAO,GAAG;;;;SAAhB,MAAM;SAAO,GAAG;;;;AAqR7C,wBAOG;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,7 +1,7 @@
1
1
  import o from "./Endpoints.vue2.js";
2
2
  /* empty css */
3
3
  import t from "../../../_virtual/_plugin-vue_export-helper.js";
4
- const m = /* @__PURE__ */ t(o, [["__scopeId", "data-v-f0ef5b24"]]);
4
+ const d = /* @__PURE__ */ t(o, [["__scopeId", "data-v-5a5d90da"]]);
5
5
  export {
6
- m as default
6
+ d as default
7
7
  };
@@ -1,100 +1,105 @@
1
- import { defineComponent as N, openBlock as n, createBlock as s, unref as e, withCtx as o, createVNode as a, createTextVNode as u, toDisplayString as p, createElementVNode as c, createElementBlock as f, Fragment as b, renderList as y, createCommentVNode as V } from "vue";
2
- import { ScalarMarkdown as E } from "@scalar/components";
3
- import I from "../../Section/Section.vue.js";
4
- import w from "../../Section/SectionContent.vue.js";
5
- import A from "../../Section/SectionColumns.vue.js";
6
- import g from "../../Section/SectionColumn.vue.js";
7
- import B from "../../Section/SectionHeader.vue.js";
8
- import H from "../../Anchor/Anchor.vue.js";
9
- import T from "../../Card/Card.vue.js";
10
- import O from "../../Card/CardHeader.vue.js";
11
- import $ from "../../Card/CardContent.vue.js";
12
- import D from "../../HttpMethod/HttpMethod.vue.js";
13
- import { useSidebar as F } from "../../../hooks/useSidebar.js";
14
- import { useNavState as L } from "../../../hooks/useNavState.js";
15
- const M = { class: "endpoints" }, U = ["onClick"], oe = /* @__PURE__ */ N({
1
+ import { defineComponent as b, openBlock as n, createBlock as c, unref as e, withCtx as a, createVNode as o, createTextVNode as p, toDisplayString as u, createElementVNode as f, createElementBlock as g, Fragment as y, renderList as V, normalizeClass as E, createCommentVNode as I } from "vue";
2
+ import { ScalarMarkdown as w } from "@scalar/components";
3
+ import A from "../../Section/Section.vue.js";
4
+ import B from "../../Section/SectionContent.vue.js";
5
+ import H from "../../Section/SectionColumns.vue.js";
6
+ import C from "../../Section/SectionColumn.vue.js";
7
+ import T from "../../Section/SectionHeader.vue.js";
8
+ import O from "../../Anchor/Anchor.vue.js";
9
+ import $ from "../../Card/Card.vue.js";
10
+ import z from "../../Card/CardHeader.vue.js";
11
+ import D from "../../Card/CardContent.vue.js";
12
+ import F from "../../HttpMethod/HttpMethod.vue.js";
13
+ import { useSidebar as L } from "../../../hooks/useSidebar.js";
14
+ import { useNavState as M } from "../../../hooks/useNavState.js";
15
+ const U = { class: "endpoints" }, j = ["onClick"], re = /* @__PURE__ */ b({
16
16
  __name: "Endpoints",
17
17
  props: {
18
18
  id: {},
19
19
  tag: {}
20
20
  },
21
21
  emits: ["observeAndNavigate"],
22
- setup(C, { emit: _ }) {
23
- const l = C, h = _, { getOperationId: i, getTagId: m } = L(), { setCollapsedSidebarItem: v } = F(), S = (t) => {
24
- h("observeAndNavigate", t);
22
+ setup(_, { emit: h }) {
23
+ const l = _, v = h, { getOperationId: i, getTagId: d } = M(), { setCollapsedSidebarItem: S } = L(), k = (t) => {
24
+ v("observeAndNavigate", t);
25
25
  };
26
- async function k(t) {
27
- S(i(t, l.tag)), v(m(l.tag), !0);
26
+ async function N(t) {
27
+ k(i(t, l.tag)), S(d(l.tag), !0);
28
28
  }
29
- return (t, j) => (n(), s(e(I), {
29
+ return (t, q) => (n(), c(e(A), {
30
30
  id: t.id,
31
31
  label: t.tag.name.toUpperCase()
32
32
  }, {
33
- default: o(() => [
34
- a(e(w), null, {
35
- default: o(() => [
36
- a(e(A), null, {
37
- default: o(() => [
38
- a(e(g), null, {
39
- default: o(() => [
40
- a(e(B), { level: 2 }, {
41
- default: o(() => [
42
- a(e(H), {
43
- id: e(m)(t.tag)
33
+ default: a(() => [
34
+ o(e(B), null, {
35
+ default: a(() => [
36
+ o(e(H), null, {
37
+ default: a(() => [
38
+ o(e(C), null, {
39
+ default: a(() => [
40
+ o(e(T), { level: 2 }, {
41
+ default: a(() => [
42
+ o(e(O), {
43
+ id: e(d)(t.tag)
44
44
  }, {
45
- default: o(() => [
46
- u(p(t.tag["x-displayName"] ?? t.tag.name), 1)
45
+ default: a(() => [
46
+ p(u(t.tag["x-displayName"] ?? t.tag.name), 1)
47
47
  ]),
48
48
  _: 1
49
49
  }, 8, ["id"])
50
50
  ]),
51
51
  _: 1
52
52
  }),
53
- a(e(E), {
53
+ o(e(w), {
54
54
  value: t.tag.description,
55
55
  withImages: ""
56
56
  }, null, 8, ["value"])
57
57
  ]),
58
58
  _: 1
59
59
  }),
60
- a(e(g), null, {
61
- default: o(() => {
62
- var d;
60
+ o(e(C), null, {
61
+ default: a(() => {
62
+ var m;
63
63
  return [
64
- ((d = t.tag.operations) == null ? void 0 : d.length) > 0 ? (n(), s(e(T), {
64
+ ((m = t.tag.operations) == null ? void 0 : m.length) > 0 ? (n(), c(e($), {
65
65
  key: 0,
66
66
  class: "scalar-card-sticky"
67
67
  }, {
68
- default: o(() => [
69
- a(e(O), { muted: "" }, {
70
- default: o(() => [
71
- u("Endpoints")
68
+ default: a(() => [
69
+ o(e(z), { muted: "" }, {
70
+ default: a(() => [
71
+ p("Endpoints")
72
72
  ]),
73
73
  _: 1
74
74
  }),
75
- a(e($), {
75
+ o(e(D), {
76
76
  class: "custom-scroll",
77
77
  muted: ""
78
78
  }, {
79
- default: o(() => [
80
- c("div", M, [
81
- (n(!0), f(b, null, y(t.tag.operations, (r) => (n(), f("a", {
82
- key: e(i)(r, t.tag),
83
- class: "endpoint",
84
- onClick: (q) => k(r)
85
- }, [
86
- a(e(D), {
87
- method: r.httpVerb
88
- }, null, 8, ["method"]),
89
- c("span", null, p(r.path), 1)
90
- ], 8, U))), 128))
79
+ default: a(() => [
80
+ f("div", U, [
81
+ (n(!0), g(y, null, V(t.tag.operations, (r) => {
82
+ var s;
83
+ return n(), g("a", {
84
+ key: e(i)(r, t.tag),
85
+ class: "endpoint",
86
+ onClick: (G) => N(r)
87
+ }, [
88
+ o(e(F), {
89
+ method: r.httpVerb
90
+ }, null, 8, ["method"]),
91
+ f("span", {
92
+ class: E({ deprecated: (s = r.information) == null ? void 0 : s.deprecated })
93
+ }, u(r.path), 3)
94
+ ], 8, j);
95
+ }), 128))
91
96
  ])
92
97
  ]),
93
98
  _: 1
94
99
  })
95
100
  ]),
96
101
  _: 1
97
- })) : V("", !0)
102
+ })) : I("", !0)
98
103
  ];
99
104
  }),
100
105
  _: 1
@@ -111,5 +116,5 @@ const M = { class: "endpoints" }, U = ["onClick"], oe = /* @__PURE__ */ N({
111
116
  }
112
117
  });
113
118
  export {
114
- oe as default
119
+ re as default
115
120
  };
@@ -1,7 +1,7 @@
1
1
  import o from "./Tag.vue2.js";
2
2
  /* empty css */
3
3
  import t from "../../../_virtual/_plugin-vue_export-helper.js";
4
- const p = /* @__PURE__ */ t(o, [["__scopeId", "data-v-e7d35918"]]);
4
+ const m = /* @__PURE__ */ t(o, [["__scopeId", "data-v-b0022b7f"]]);
5
5
  export {
6
- p as default
6
+ m as default
7
7
  };
@@ -1,7 +1,7 @@
1
1
  import o from "./DarkModeToggle.vue2.js";
2
2
  /* empty css */
3
3
  import r from "../../_virtual/_plugin-vue_export-helper.js";
4
- const m = /* @__PURE__ */ r(o, [["__scopeId", "data-v-c2022750"]]);
4
+ const f = /* @__PURE__ */ r(o, [["__scopeId", "data-v-bfb18750"]]);
5
5
  export {
6
- m as default
6
+ f as default
7
7
  };
@@ -1,6 +1,6 @@
1
- import { defineComponent as n, openBlock as o, createElementBlock as t, createElementVNode as s, createVNode as c, unref as d, pushScopeId as i, popScopeId as p } from "vue";
1
+ import { defineComponent as n, openBlock as o, createElementBlock as t, createElementVNode as s, createVNode as d, unref as c, pushScopeId as i, popScopeId as p } from "vue";
2
2
  import { ScalarIcon as l } from "@scalar/components";
3
- const k = (e) => (i("data-v-c2022750"), e = e(), p(), e), m = { class: "darklight-reference" }, g = { key: 0 }, _ = { key: 1 }, h = /* @__PURE__ */ k(() => /* @__PURE__ */ s("a", {
3
+ const k = (e) => (i("data-v-bfb18750"), e = e(), p(), e), m = { class: "darklight-reference" }, g = { key: 0 }, _ = { key: 1 }, h = /* @__PURE__ */ k(() => /* @__PURE__ */ s("a", {
4
4
  class: "darklight-reference-promo",
5
5
  href: "https://www.scalar.com",
6
6
  target: "_blank"
@@ -17,7 +17,7 @@ const k = (e) => (i("data-v-c2022750"), e = e(), p(), e), m = { class: "darkligh
17
17
  type: "button",
18
18
  onClick: a[0] || (a[0] = (f) => r.$emit("toggleDarkMode"))
19
19
  }, [
20
- c(d(l), {
20
+ d(c(l), {
21
21
  icon: "LightDarkModeToggle",
22
22
  size: "md"
23
23
  }),
@@ -1 +1 @@
1
- {"version":3,"file":"ClassicLayout.vue.d.ts","sourceRoot":"","sources":["../../../src/components/Layouts/ClassicLayout.vue"],"names":[],"mappings":"AAuDA,OAAO,KAAK,EAAE,oBAAoB,EAAE,oBAAoB,EAAE,MAAM,aAAa,CAAA;AA0B7E,iBAAS,cAAc,0DA8HtB;AACD,QAAA,MAAM,eAAe;;;;;;UAOnB,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":"ClassicLayout.vue.d.ts","sourceRoot":"","sources":["../../../src/components/Layouts/ClassicLayout.vue"],"names":[],"mappings":"AAwDA,OAAO,KAAK,EAAE,oBAAoB,EAAE,oBAAoB,EAAE,MAAM,aAAa,CAAA;AA0B7E,iBAAS,cAAc,0DAiItB;AACD,QAAA,MAAM,eAAe;;;;;;UAOnB,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,9 +1,9 @@
1
- import { defineComponent as u, useSlots as f, computed as m, openBlock as g, createBlock as S, createSlots as k, withCtx as t, createVNode as n, unref as p, renderList as D, renderSlot as C, normalizeProps as w, guardReactiveProps as y } from "vue";
2
- import M from "../ApiReferenceLayout.vue.js";
1
+ import { defineComponent as f, useSlots as g, computed as k, openBlock as i, createBlock as p, createSlots as S, withCtx as t, createVNode as d, unref as l, createCommentVNode as D, renderList as C, renderSlot as y, normalizeProps as M, guardReactiveProps as w } from "vue";
2
+ import h from "../ApiReferenceLayout.vue.js";
3
3
  import v from "../ClassicHeader.vue.js";
4
4
  import B from "../DarkModeToggle/DarkModeIconToggle.vue.js";
5
5
  import H from "../../features/Search/SearchButton.vue.js";
6
- const P = /* @__PURE__ */ u({
6
+ const N = /* @__PURE__ */ f({
7
7
  __name: "ClassicLayout",
8
8
  props: {
9
9
  configuration: {},
@@ -12,24 +12,25 @@ const P = /* @__PURE__ */ u({
12
12
  isDark: { type: Boolean }
13
13
  },
14
14
  emits: ["toggleDarkMode", "updateContent"],
15
- setup(i) {
16
- const l = i, d = f(), s = m(() => ({ ...l.configuration, showSidebar: !1 }));
17
- return (e, o) => (g(), S(M, {
15
+ setup(c) {
16
+ const n = c, u = g(), s = k(() => ({ ...n.configuration, showSidebar: !1 }));
17
+ return (e, o) => (i(), p(h, {
18
18
  configuration: s.value,
19
19
  parsedSpec: e.parsedSpec,
20
20
  rawSpec: e.rawSpec,
21
21
  onUpdateContent: o[1] || (o[1] = (r) => e.$emit("updateContent", r))
22
- }, k({
22
+ }, S({
23
23
  "content-start": t(({ spec: r }) => [
24
- n(v, null, {
24
+ d(v, null, {
25
25
  "dark-mode-toggle": t(() => [
26
- n(p(B), {
26
+ n.configuration.hideDarkModeToggle ? D("", !0) : (i(), p(l(B), {
27
+ key: 0,
27
28
  isDarkMode: e.isDark,
28
29
  onToggleDarkMode: o[0] || (o[0] = (a) => e.$emit("toggleDarkMode"))
29
- }, null, 8, ["isDarkMode"])
30
+ }, null, 8, ["isDarkMode"]))
30
31
  ]),
31
32
  default: t(() => [
32
- n(p(H), {
33
+ d(l(H), {
33
34
  class: "t-doc__sidebar",
34
35
  searchHotKey: s.value.searchHotKey,
35
36
  spec: r
@@ -40,15 +41,15 @@ const P = /* @__PURE__ */ u({
40
41
  ]),
41
42
  _: 2
42
43
  }, [
43
- D(d, (r, a) => ({
44
+ C(u, (r, a) => ({
44
45
  name: a,
45
- fn: t((c) => [
46
- C(e.$slots, a, w(y(c || {})))
46
+ fn: t((m) => [
47
+ y(e.$slots, a, M(w(m || {})))
47
48
  ])
48
49
  }))
49
50
  ]), 1032, ["configuration", "parsedSpec", "rawSpec"]));
50
51
  }
51
52
  });
52
53
  export {
53
- P as default
54
+ N as default
54
55
  };
@@ -1 +1 @@
1
- {"version":3,"file":"ModernLayout.vue.d.ts","sourceRoot":"","sources":["../../../src/components/Layouts/ModernLayout.vue"],"names":[],"mappings":"AA0FA,OAAO,KAAK,EAAE,oBAAoB,EAAE,oBAAoB,EAAE,MAAM,aAAa,CAAA;AAqC7E,iBAAS,cAAc,0DAiJtB;AACD,QAAA,MAAM,eAAe;;;;;;UAOnB,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":"ModernLayout.vue.d.ts","sourceRoot":"","sources":["../../../src/components/Layouts/ModernLayout.vue"],"names":[],"mappings":"AA2FA,OAAO,KAAK,EAAE,oBAAoB,EAAE,oBAAoB,EAAE,MAAM,aAAa,CAAA;AAqC7E,iBAAS,cAAc,0DAoJtB;AACD,QAAA,MAAM,eAAe;;;;;;UAOnB,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 "./ModernLayout.vue2.js";
2
2
  /* empty css */
3
3
  /* empty css */
4
4
  import t from "../../_virtual/_plugin-vue_export-helper.js";
5
- const e = /* @__PURE__ */ t(o, [["__scopeId", "data-v-29ebaf8d"]]);
5
+ const a = /* @__PURE__ */ t(o, [["__scopeId", "data-v-9fe2e3b4"]]);
6
6
  export {
7
- e as default
7
+ a as default
8
8
  };
@@ -1,12 +1,12 @@
1
- import { defineComponent as k, useSlots as M, watch as p, openBlock as l, createBlock as d, normalizeClass as b, createSlots as h, withCtx as n, unref as s, isRef as v, createCommentVNode as w, createElementVNode as y, createVNode as u, renderList as D, renderSlot as C, normalizeProps as B, guardReactiveProps as N } from "vue";
1
+ import { defineComponent as k, useSlots as M, watch as l, openBlock as i, createBlock as p, normalizeClass as b, createSlots as h, withCtx as n, unref as d, isRef as y, createCommentVNode as u, createElementVNode as D, createVNode as v, renderList as w, renderSlot as C, normalizeProps as B, guardReactiveProps as N } from "vue";
2
2
  import { useMediaQuery as $ } from "@vueuse/core";
3
3
  import H from "../ApiReferenceLayout.vue.js";
4
4
  import K from "../MobileHeader.vue.js";
5
5
  import L from "../../features/Search/SearchButton.vue.js";
6
6
  import R from "../DarkModeToggle/DarkModeToggle.vue.js";
7
- import { useSidebar as V } from "../../hooks/useSidebar.js";
8
- import { useNavState as z } from "../../hooks/useNavState.js";
9
- const P = { class: "scalar-api-references-standalone-search" }, F = /* @__PURE__ */ k({
7
+ import { useSidebar as T } from "../../hooks/useSidebar.js";
8
+ import { useNavState as V } from "../../hooks/useNavState.js";
9
+ const z = { class: "scalar-api-references-standalone-search" }, F = /* @__PURE__ */ k({
10
10
  __name: "ModernLayout",
11
11
  props: {
12
12
  configuration: {},
@@ -16,14 +16,14 @@ const P = { class: "scalar-api-references-standalone-search" }, F = /* @__PURE__
16
16
  },
17
17
  emits: ["toggleDarkMode", "updateContent"],
18
18
  setup(c) {
19
- const i = c, f = M(), m = $("(max-width: 1000px)"), { isSidebarOpen: a } = V();
20
- p(m, (e, o) => {
19
+ const s = c, f = M(), m = $("(max-width: 1000px)"), { isSidebarOpen: a } = T();
20
+ l(m, (e, o) => {
21
21
  e && !o && (a.value = !1);
22
22
  });
23
- const { hash: S } = z();
24
- return p(S, (e, o) => {
23
+ const { hash: g } = V();
24
+ return l(g, (e, o) => {
25
25
  e && e !== o && (a.value = !1);
26
- }), (e, o) => (l(), d(H, {
26
+ }), (e, o) => (i(), p(H, {
27
27
  class: b({
28
28
  "scalar-api-references-standalone-mobile": e.configuration.showSidebar
29
29
  }),
@@ -33,35 +33,36 @@ const P = { class: "scalar-api-references-standalone-search" }, F = /* @__PURE__
33
33
  onUpdateContent: o[2] || (o[2] = (r) => e.$emit("updateContent", r))
34
34
  }, h({
35
35
  header: n(() => [
36
- i.configuration.showSidebar ? (l(), d(K, {
36
+ s.configuration.showSidebar ? (i(), p(K, {
37
37
  key: 0,
38
- open: s(a),
39
- "onUpdate:open": o[0] || (o[0] = (r) => v(a) ? a.value = r : null)
40
- }, null, 8, ["open"])) : w("", !0)
38
+ open: d(a),
39
+ "onUpdate:open": o[0] || (o[0] = (r) => y(a) ? a.value = r : null)
40
+ }, null, 8, ["open"])) : u("", !0)
41
41
  ]),
42
42
  "sidebar-start": n(({ spec: r }) => {
43
43
  var t;
44
44
  return [
45
- y("div", P, [
46
- u(s(L), {
47
- searchHotKey: (t = i.configuration) == null ? void 0 : t.searchHotKey,
45
+ D("div", z, [
46
+ v(d(L), {
47
+ searchHotKey: (t = s.configuration) == null ? void 0 : t.searchHotKey,
48
48
  spec: r
49
49
  }, null, 8, ["searchHotKey", "spec"])
50
50
  ])
51
51
  ];
52
52
  }),
53
53
  "sidebar-end": n(() => [
54
- u(s(R), {
54
+ s.configuration.hideDarkModeToggle ? u("", !0) : (i(), p(d(R), {
55
+ key: 0,
55
56
  isDarkMode: e.isDark,
56
57
  onToggleDarkMode: o[1] || (o[1] = (r) => e.$emit("toggleDarkMode"))
57
- }, null, 8, ["isDarkMode"])
58
+ }, null, 8, ["isDarkMode"]))
58
59
  ]),
59
60
  _: 2
60
61
  }, [
61
- D(f, (r, t) => ({
62
+ w(f, (r, t) => ({
62
63
  name: t,
63
- fn: n((g) => [
64
- C(e.$slots, t, B(N(g || {})), void 0, !0)
64
+ fn: n((S) => [
65
+ C(e.$slots, t, B(N(S || {})), void 0, !0)
65
66
  ])
66
67
  }))
67
68
  ]), 1032, ["class", "configuration", "parsedSpec", "rawSpec"]));