@scalar/api-reference 1.25.128 → 1.26.0

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 (73) hide show
  1. package/CHANGELOG.md +54 -0
  2. package/dist/browser/standalone.js +7981 -7915
  3. package/dist/browser/webpack-stats.json +1 -1
  4. package/dist/components/ApiReferenceLayout.vue.js +2 -2
  5. package/dist/components/ApiReferenceLayout.vue2.js +1 -1
  6. package/dist/components/Content/ClientLibraries/ClientSelector.vue.d.ts.map +1 -1
  7. package/dist/components/Content/ClientLibraries/ClientSelector.vue.js +2 -2
  8. package/dist/components/Content/Introduction/Introduction.vue.js +1 -1
  9. package/dist/components/Content/Introduction/Introduction.vue2.js +45 -42
  10. package/dist/components/Content/Lazy/Loading.vue.js +15 -15
  11. package/dist/components/Content/Tag/{Endpoints.vue.d.ts → OperationsList.vue.d.ts} +1 -3
  12. package/dist/components/Content/Tag/OperationsList.vue.d.ts.map +1 -0
  13. package/dist/components/Content/Tag/OperationsList.vue.js +7 -0
  14. package/dist/components/Content/Tag/OperationsList.vue2.js +62 -0
  15. package/dist/components/Content/Tag/OperationsListItem.vue.d.ts +9 -0
  16. package/dist/components/Content/Tag/OperationsListItem.vue.d.ts.map +1 -0
  17. package/dist/components/Content/Tag/OperationsListItem.vue.js +7 -0
  18. package/dist/components/Content/Tag/OperationsListItem.vue2.js +66 -0
  19. package/dist/components/Content/Tag/Tag.vue.d.ts +4 -64
  20. package/dist/components/Content/Tag/Tag.vue.d.ts.map +1 -1
  21. package/dist/components/Content/Tag/Tag.vue.js +87 -5
  22. package/dist/components/Content/Tag/Tag.vue2.js +2 -63
  23. package/dist/components/Content/Tag/TagList.vue.d.ts.map +1 -1
  24. package/dist/components/Content/Tag/TagList.vue.js +11 -11
  25. package/dist/components/Content/Tag/TagSection.vue.d.ts +70 -0
  26. package/dist/components/Content/Tag/TagSection.vue.d.ts.map +1 -0
  27. package/dist/components/Content/Tag/TagSection.vue.js +7 -0
  28. package/dist/components/Content/Tag/TagSection.vue2.js +65 -0
  29. package/dist/components/Content/Tag/index.d.ts +1 -2
  30. package/dist/components/Content/Tag/index.d.ts.map +1 -1
  31. package/dist/features/ApiClientModal/useApiClient.d.ts +30 -10
  32. package/dist/features/ApiClientModal/useApiClient.d.ts.map +1 -1
  33. package/dist/features/BaseUrl/BaseUrl.vue.js +31 -30
  34. package/dist/features/ExampleRequest/ExampleRequest.vue.d.ts.map +1 -1
  35. package/dist/features/ExampleRequest/ExampleRequest.vue.js +2 -2
  36. package/dist/features/Operation/layouts/ClassicLayout.vue.d.ts.map +1 -1
  37. package/dist/features/Operation/layouts/ClassicLayout.vue.js +2 -2
  38. package/dist/features/Operation/layouts/ClassicLayout.vue2.js +54 -54
  39. package/dist/features/Operation/layouts/ModernLayout.vue.d.ts.map +1 -1
  40. package/dist/features/Operation/layouts/ModernLayout.vue.js +2 -2
  41. package/dist/features/Operation/layouts/ModernLayout.vue2.js +65 -67
  42. package/dist/features/TestRequestButton/TestRequestButton.vue.js +2 -2
  43. package/dist/features/TestRequestButton/TestRequestButton.vue2.js +16 -14
  44. package/dist/helpers/get-request.d.ts +1 -0
  45. package/dist/helpers/get-request.d.ts.map +1 -1
  46. package/dist/helpers/index.d.ts +0 -1
  47. package/dist/helpers/index.d.ts.map +1 -1
  48. package/dist/hooks/useConfig.d.ts +3 -3
  49. package/dist/hooks/useConfig.d.ts.map +1 -1
  50. package/dist/hooks/useConfig.js +7 -4
  51. package/dist/hooks/useNavState.js +38 -38
  52. package/dist/hooks/useReactiveSpec.d.ts +8 -8
  53. package/dist/hooks/useSidebar.d.ts.map +1 -1
  54. package/dist/hooks/useSidebar.js +126 -116
  55. package/dist/index.js +55 -59
  56. package/dist/libs/operation.d.ts +15 -0
  57. package/dist/libs/operation.d.ts.map +1 -0
  58. package/dist/libs/operation.js +16 -0
  59. package/dist/stores/useHttpClientStore.d.ts +1 -1
  60. package/dist/stores/useHttpClientStore.d.ts.map +1 -1
  61. package/dist/style.css +1 -1
  62. package/dist/types.d.ts +1 -1
  63. package/dist/types.d.ts.map +1 -1
  64. package/package.json +13 -14
  65. package/dist/components/Content/Tag/Endpoints.vue.d.ts.map +0 -1
  66. package/dist/components/Content/Tag/Endpoints.vue.js +0 -7
  67. package/dist/components/Content/Tag/Endpoints.vue2.js +0 -161
  68. package/dist/helpers/operation.d.ts +0 -14
  69. package/dist/helpers/operation.d.ts.map +0 -1
  70. package/dist/helpers/operation.js +0 -18
  71. package/dist/standalone/lib/html-rendering.d.ts +0 -50
  72. package/dist/standalone/lib/html-rendering.d.ts.map +0 -1
  73. package/dist/standalone/lib/html-rendering.js +0 -64
@@ -2,7 +2,7 @@ import o from "./ApiReferenceLayout.vue2.js";
2
2
  /* empty css */
3
3
  /* empty css */
4
4
  import t from "../_virtual/_plugin-vue_export-helper.js";
5
- const m = /* @__PURE__ */ t(o, [["__scopeId", "data-v-fb8f58f4"]]);
5
+ const a = /* @__PURE__ */ t(o, [["__scopeId", "data-v-2f1a12fb"]]);
6
6
  export {
7
- m as default
7
+ a as default
8
8
  };
@@ -138,7 +138,7 @@ const Ke = ["innerHTML"], We = { class: "references-header" }, je = ["aria-label
138
138
  { immediate: !0 }
139
139
  ), w(Ce, $);
140
140
  const re = Te($);
141
- w($e, re), w(we, "modal"), w(He, a.value);
141
+ w($e, re), w(we, "modal"), w(He, a);
142
142
  function B(e, t) {
143
143
  E(
144
144
  () => a.value[e],
@@ -1 +1 @@
1
- {"version":3,"file":"ClientSelector.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/Content/ClientLibraries/ClientSelector.vue"],"names":[],"mappings":"AA2RA,KAAK,WAAW,GAAG;IACjB,yEAAyE;IACzE,SAAS,CAAC,EAAE,MAAM,CAAA;CACnB,CAAC;;AA4MF,wBAOG"}
1
+ {"version":3,"file":"ClientSelector.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/Content/ClientLibraries/ClientSelector.vue"],"names":[],"mappings":"AA+RA,KAAK,WAAW,GAAG;IACjB,yEAAyE;IACzE,SAAS,CAAC,EAAE,MAAM,CAAA;CACnB,CAAC;;AA4MF,wBAOG"}
@@ -1,7 +1,7 @@
1
1
  import o from "./ClientSelector.vue2.js";
2
2
  /* empty css */
3
3
  import t from "../../../_virtual/_plugin-vue_export-helper.js";
4
- const a = /* @__PURE__ */ t(o, [["__scopeId", "data-v-f25a69f0"]]);
4
+ const m = /* @__PURE__ */ t(o, [["__scopeId", "data-v-6a409ae4"]]);
5
5
  export {
6
- a as default
6
+ m as default
7
7
  };
@@ -1,7 +1,7 @@
1
1
  import o from "./Introduction.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-2ce99a34"]]);
4
+ const m = /* @__PURE__ */ t(o, [["__scopeId", "data-v-53fa9a98"]]);
5
5
  export {
6
6
  m as default
7
7
  };
@@ -1,99 +1,102 @@
1
- import { defineComponent as V, computed as f, onMounted as $, openBlock as l, createBlock as s, unref as o, withCtx as t, createVNode as n, createElementVNode as S, createTextVNode as u, toDisplayString as d, createCommentVNode as m, renderSlot as _ } from "vue";
1
+ import { defineComponent as V, computed as a, onMounted as $, openBlock as l, createBlock as s, unref as o, withCtx as t, createVNode as r, createElementVNode as g, createTextVNode as d, toDisplayString as f, createCommentVNode as u, renderSlot as S } from "vue";
2
2
  import w from "github-slugger";
3
3
  import { useConfig as N } from "../../../hooks/useConfig.js";
4
4
  import b from "../../../features/DownloadLink/DownloadLink.vue.js";
5
5
  import B from "./Description.vue.js";
6
6
  import D from "../../Section/SectionContainer.vue.js";
7
7
  import H from "../../Section/Section.vue.js";
8
- import A from "../../Section/SectionContent.vue.js";
9
- import C from "../../Badge/Badge.vue.js";
10
- import E from "../../Section/SectionHeader.vue.js";
11
- import F from "../../Section/SectionHeaderTag.vue.js";
12
- import G from "../../Section/SectionColumns.vue.js";
13
- import k from "../../Section/SectionColumn.vue.js";
14
- const I = { class: "badges" }, M = { class: "sticky-cards" }, Y = /* @__PURE__ */ V({
8
+ import L from "../../Section/SectionContent.vue.js";
9
+ import _ from "../../Badge/Badge.vue.js";
10
+ import A from "../../Section/SectionHeader.vue.js";
11
+ import E from "../../Section/SectionHeaderTag.vue.js";
12
+ import F from "../../Section/SectionColumns.vue.js";
13
+ import C from "../../Section/SectionColumn.vue.js";
14
+ const G = { class: "badges" }, I = { class: "sticky-cards" }, Y = /* @__PURE__ */ V({
15
15
  __name: "Introduction",
16
16
  props: {
17
17
  info: {},
18
18
  parsedSpec: {}
19
19
  },
20
- setup(y) {
21
- const i = y, p = f(
20
+ setup(k) {
21
+ const i = k, m = a(
22
22
  () => {
23
- var e, r;
24
- return ((e = i.parsedSpec) == null ? void 0 : e.openapi) ?? ((r = i.parsedSpec) == null ? void 0 : r.swagger) ?? "";
23
+ var e, n;
24
+ return ((e = i.parsedSpec) == null ? void 0 : e.openapi) ?? ((n = i.parsedSpec) == null ? void 0 : n.swagger) ?? "";
25
25
  }
26
- ), h = new w(), T = f(() => {
26
+ ), y = new w(), h = a(() => {
27
27
  var e;
28
- return h.slug(((e = i.info) == null ? void 0 : e.title) ?? "");
29
- }), c = f(() => {
30
- var e, r;
31
- return typeof ((e = i.info) == null ? void 0 : e.version) == "string" ? i.info.version.toString().match(/^\d/) ? `v${i.info.version}` : i.info.version : typeof ((r = i.info) == null ? void 0 : r.version) == "number" ? `v${i.info.version}` : void 0;
32
- }), { onLoaded: a } = N();
33
- return $(() => a == null ? void 0 : a()), (e, r) => (l(), s(o(D), null, {
28
+ return y.slug(((e = i.info) == null ? void 0 : e.title) ?? "");
29
+ }), p = a(() => {
30
+ var e, n;
31
+ return typeof ((e = i.info) == null ? void 0 : e.version) == "string" ? i.info.version.toString().match(/^\d/) ? `v${i.info.version}` : i.info.version : typeof ((n = i.info) == null ? void 0 : n.version) == "number" ? `v${i.info.version}` : void 0;
32
+ }), T = N();
33
+ return $(() => {
34
+ var e, n;
35
+ return (n = (e = T.value).onLoaded) == null ? void 0 : n.call(e);
36
+ }), (e, n) => (l(), s(o(D), null, {
34
37
  default: t(() => [
35
- n(o(H), { class: "introduction-section gap-12" }, {
38
+ r(o(H), { class: "introduction-section gap-12" }, {
36
39
  default: t(() => {
37
- var v, g;
40
+ var c, v;
38
41
  return [
39
- n(o(A), {
40
- loading: !((v = e.info) != null && v.description) && !((g = e.info) != null && g.title)
42
+ r(o(L), {
43
+ loading: !((c = e.info) != null && c.description) && !((v = e.info) != null && v.title)
41
44
  }, {
42
45
  default: t(() => [
43
- S("div", I, [
44
- c.value ? (l(), s(o(C), { key: 0 }, {
46
+ g("div", G, [
47
+ p.value ? (l(), s(o(_), { key: 0 }, {
45
48
  default: t(() => [
46
- u(d(c.value), 1)
49
+ d(f(p.value), 1)
47
50
  ]),
48
51
  _: 1
49
- })) : m("", !0),
50
- p.value ? (l(), s(o(C), { key: 1 }, {
52
+ })) : u("", !0),
53
+ m.value ? (l(), s(o(_), { key: 1 }, {
51
54
  default: t(() => [
52
- u("OAS " + d(p.value), 1)
55
+ d("OAS " + f(m.value), 1)
53
56
  ]),
54
57
  _: 1
55
- })) : m("", !0)
58
+ })) : u("", !0)
56
59
  ]),
57
- n(o(E), {
60
+ r(o(A), {
58
61
  loading: !e.info.title,
59
62
  tight: ""
60
63
  }, {
61
64
  default: t(() => [
62
- n(o(F), { level: 1 }, {
65
+ r(o(E), { level: 1 }, {
63
66
  default: t(() => [
64
- u(d(e.info.title), 1)
67
+ d(f(e.info.title), 1)
65
68
  ]),
66
69
  _: 1
67
70
  })
68
71
  ]),
69
72
  _: 1
70
73
  }, 8, ["loading"]),
71
- n(b, { specTitle: T.value }, null, 8, ["specTitle"]),
72
- n(o(G), null, {
74
+ r(b, { specTitle: h.value }, null, 8, ["specTitle"]),
75
+ r(o(F), null, {
73
76
  default: t(() => [
74
- n(o(k), null, {
77
+ r(o(C), null, {
75
78
  default: t(() => [
76
- n(B, {
79
+ r(B, {
77
80
  value: e.info.description
78
81
  }, null, 8, ["value"])
79
82
  ]),
80
83
  _: 1
81
84
  }),
82
- e.$slots.aside ? (l(), s(o(k), { key: 0 }, {
85
+ e.$slots.aside ? (l(), s(o(C), { key: 0 }, {
83
86
  default: t(() => [
84
- S("div", M, [
85
- _(e.$slots, "aside", {}, void 0, !0)
87
+ g("div", I, [
88
+ S(e.$slots, "aside", {}, void 0, !0)
86
89
  ])
87
90
  ]),
88
91
  _: 3
89
- })) : m("", !0)
92
+ })) : u("", !0)
90
93
  ]),
91
94
  _: 3
92
95
  })
93
96
  ]),
94
97
  _: 3
95
98
  }, 8, ["loading"]),
96
- _(e.$slots, "after", {}, void 0, !0)
99
+ S(e.$slots, "after", {}, void 0, !0)
97
100
  ];
98
101
  }),
99
102
  _: 3
@@ -1,7 +1,7 @@
1
- import { defineComponent as D, ref as v, watch as H, onMounted as K, withDirectives as M, openBlock as n, createElementBlock as f, normalizeClass as j, Fragment as g, renderList as w, createBlock as m, unref as t, withCtx as c, createCommentVNode as T, createVNode as h, createTextVNode as F, toDisplayString as P, vShow as q } from "vue";
1
+ import { defineComponent as D, ref as v, watch as H, onMounted as K, withDirectives as M, openBlock as n, createElementBlock as f, normalizeClass as j, Fragment as g, renderList as w, createBlock as m, unref as t, withCtx as d, createCommentVNode as T, createVNode as h, createTextVNode as F, toDisplayString as P, vShow as q } from "vue";
2
2
  import { useActiveEntities as G } from "@scalar/api-client/store";
3
3
  import { lazyBus as J } from "./lazyBus.js";
4
- import Q from "../Tag/Tag.vue.js";
4
+ import Q from "../Tag/TagSection.vue.js";
5
5
  import R from "../../../features/Operation/Operation.vue.js";
6
6
  import U from "../../Section/SectionContainer.vue.js";
7
7
  import X from "../../Section/Section.vue.js";
@@ -33,16 +33,16 @@ const ye = /* @__PURE__ */ D({
33
33
  const l = B();
34
34
  if (l.startsWith("tag")) {
35
35
  let o = 0;
36
- const d = ((e = i.parsedSpec.tags) == null ? void 0 : e.findIndex(
36
+ const c = ((e = i.parsedSpec.tags) == null ? void 0 : e.findIndex(
37
37
  (k) => N(k) === l
38
38
  )) ?? 0, s = a.value.match(/tag\/([^/]+)\/([^/]+)\/(.+)/);
39
39
  if ((s == null ? void 0 : s.length) === 4) {
40
40
  const k = s[2], W = "/" + s[3];
41
- o = (u = i.parsedSpec.tags[d]) == null ? void 0 : u.operations.findIndex(
41
+ o = (u = i.parsedSpec.tags[c]) == null ? void 0 : u.operations.findIndex(
42
42
  ({ httpVerb: $, path: A }) => k === $ && W === A
43
43
  );
44
44
  }
45
- const p = i.parsedSpec.tags[d];
45
+ const p = i.parsedSpec.tags[c];
46
46
  if (!p) return;
47
47
  p.name !== "default" && (_.value = l !== a.value && l.startsWith("tag")), y.value.push({
48
48
  ...p,
@@ -52,7 +52,7 @@ const ye = /* @__PURE__ */ D({
52
52
  )
53
53
  });
54
54
  } else if (a.value.startsWith("model")) {
55
- const o = Object.keys(S(i.parsedSpec) ?? {}), [, d] = a.value.toLowerCase().split("/"), s = a.value === "models" ? 0 : o.findIndex((p) => p.toLowerCase() === d);
55
+ const o = Object.keys(S(i.parsedSpec) ?? {}), [, c] = a.value.toLowerCase().split("/"), s = a.value === "models" ? 0 : o.findIndex((p) => p.toLowerCase() === c);
56
56
  if (s === -1) return;
57
57
  I.value = o.slice(s, s + 3);
58
58
  } else
@@ -82,7 +82,7 @@ const ye = /* @__PURE__ */ D({
82
82
  spec: r.parsedSpec,
83
83
  tag: e
84
84
  }, {
85
- default: c(() => [
85
+ default: d(() => [
86
86
  (n(!0), f(g, null, w(e.lazyOperations, (o) => (n(), m(t(R), {
87
87
  key: `${o.httpVerb}-${o.operationId}`,
88
88
  collection: t(O),
@@ -95,29 +95,29 @@ const ye = /* @__PURE__ */ D({
95
95
  }, 1032, ["spec", "tag"])) : T("", !0)
96
96
  ], 64))), 128)),
97
97
  I.value.length ? (n(), m(t(U), { key: 0 }, {
98
- default: c(() => [
98
+ default: d(() => [
99
99
  (n(!0), f(g, null, w(I.value, (e) => (n(), m(t(X), {
100
100
  key: e,
101
101
  label: e
102
102
  }, {
103
- default: c(() => {
103
+ default: d(() => {
104
104
  var u;
105
105
  return [
106
106
  (u = t(S)(r.parsedSpec)) != null && u[e] ? (n(), m(t(Y), { key: 0 }, {
107
- default: c(() => {
107
+ default: d(() => {
108
108
  var o;
109
109
  return [
110
110
  h(t(Z), null, {
111
- default: c(() => [
111
+ default: d(() => [
112
112
  h(t(ee), {
113
113
  id: t(z)({ name: e })
114
114
  }, {
115
- default: c(() => [
115
+ default: d(() => [
116
116
  h(t(te), { level: 2 }, {
117
- default: c(() => {
118
- var d;
117
+ default: d(() => {
118
+ var c;
119
119
  return [
120
- F(P(((d = t(S)(r.parsedSpec)) == null ? void 0 : d[e]).title ?? e), 1)
120
+ F(P(((c = t(S)(r.parsedSpec)) == null ? void 0 : c[e]).title ?? e), 1)
121
121
  ];
122
122
  }),
123
123
  _: 2
@@ -1,10 +1,8 @@
1
1
  import type { Tag } from '@scalar/types/legacy';
2
2
  type __VLS_Props = {
3
- id?: string;
4
3
  tag: Tag;
5
- headerId?: string;
6
4
  isCollapsed?: boolean;
7
5
  };
8
6
  declare const _default: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
9
7
  export default _default;
10
- //# sourceMappingURL=Endpoints.vue.d.ts.map
8
+ //# sourceMappingURL=OperationsList.vue.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"OperationsList.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/Content/Tag/OperationsList.vue"],"names":[],"mappings":"AAsDA,OAAO,KAAK,EAAE,GAAG,EAAE,MAAM,sBAAsB,CAAA;AAW/C,KAAK,WAAW,GAAG;IACjB,GAAG,EAAE,GAAG,CAAA;IACR,WAAW,CAAC,EAAE,OAAO,CAAA;CACtB,CAAC;;AAiHF,wBAMG"}
@@ -0,0 +1,7 @@
1
+ import o from "./OperationsList.vue2.js";
2
+ /* empty css */
3
+ import t from "../../../_virtual/_plugin-vue_export-helper.js";
4
+ const a = /* @__PURE__ */ t(o, [["__scopeId", "data-v-bc837dc7"]]);
5
+ export {
6
+ a as default
7
+ };
@@ -0,0 +1,62 @@
1
+ import { defineComponent as f, computed as g, openBlock as r, createBlock as p, unref as t, withCtx as a, createVNode as o, createTextVNode as d, toDisplayString as C, createElementVNode as N, createElementBlock as k, Fragment as y, renderList as O, createCommentVNode as _ } from "vue";
2
+ import B from "../../ScreenReader.vue.js";
3
+ import { useNavState as V } from "../../../hooks/useNavState.js";
4
+ import v from "./OperationsListItem.vue.js";
5
+ import L from "../../Card/Card.vue.js";
6
+ import S from "../../Card/CardHeader.vue.js";
7
+ import b from "../../Card/CardContent.vue.js";
8
+ const h = ["aria-label"], T = /* @__PURE__ */ f({
9
+ __name: "OperationsList",
10
+ props: {
11
+ tag: {},
12
+ isCollapsed: { type: Boolean }
13
+ },
14
+ setup(u) {
15
+ const s = u, { getOperationId: c } = V(), n = g(() => s.tag["x-displayName"] ?? s.tag.name);
16
+ return (e, l) => {
17
+ var i;
18
+ return ((i = e.tag.operations) == null ? void 0 : i.length) > 0 ? (r(), p(t(L), {
19
+ key: 0,
20
+ class: "scalar-card-sticky"
21
+ }, {
22
+ default: a(() => [
23
+ o(t(S), { muted: "" }, {
24
+ default: a(() => [
25
+ o(B, null, {
26
+ default: a(() => [
27
+ d(C(n.value), 1)
28
+ ]),
29
+ _: 1
30
+ }),
31
+ l[0] || (l[0] = d(" Operations "))
32
+ ]),
33
+ _: 1
34
+ }),
35
+ o(t(b), {
36
+ class: "custom-scroll",
37
+ muted: ""
38
+ }, {
39
+ default: a(() => [
40
+ N("ul", {
41
+ "aria-label": `${n.value} endpoints`,
42
+ class: "endpoints"
43
+ }, [
44
+ (r(!0), k(y, null, O(e.tag.operations, (m) => (r(), p(v, {
45
+ key: t(c)(m, e.tag),
46
+ isCollapsed: e.isCollapsed,
47
+ tag: e.tag,
48
+ transformedOperation: m
49
+ }, null, 8, ["isCollapsed", "tag", "transformedOperation"]))), 128))
50
+ ], 8, h)
51
+ ]),
52
+ _: 1
53
+ })
54
+ ]),
55
+ _: 1
56
+ })) : _("", !0);
57
+ };
58
+ }
59
+ });
60
+ export {
61
+ T as default
62
+ };
@@ -0,0 +1,9 @@
1
+ import type { Tag, TransformedOperation } from '@scalar/types/legacy';
2
+ type __VLS_Props = {
3
+ transformedOperation: TransformedOperation;
4
+ tag: Tag;
5
+ isCollapsed?: boolean;
6
+ };
7
+ declare const _default: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
8
+ export default _default;
9
+ //# sourceMappingURL=OperationsListItem.vue.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"OperationsListItem.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/Content/Tag/OperationsListItem.vue"],"names":[],"mappings":"AAiIA,OAAO,KAAK,EAAE,GAAG,EAAE,oBAAoB,EAAE,MAAM,sBAAsB,CAAA;AAarE,KAAK,WAAW,GAAG;IACjB,oBAAoB,EAAE,oBAAoB,CAAA;IAC1C,GAAG,EAAE,GAAG,CAAA;IACR,WAAW,CAAC,EAAE,OAAO,CAAA;CACtB,CAAC;;AAkJF,wBAMG"}
@@ -0,0 +1,7 @@
1
+ import t from "./OperationsListItem.vue2.js";
2
+ /* empty css */
3
+ import o from "../../../_virtual/_plugin-vue_export-helper.js";
4
+ const p = /* @__PURE__ */ o(t, [["__scopeId", "data-v-a68a4ca6"]]);
5
+ export {
6
+ p as default
7
+ };
@@ -0,0 +1,66 @@
1
+ import { defineComponent as u, computed as h, unref as t, openBlock as s, createElementBlock as O, createBlock as g, withCtx as k, createTextVNode as C, toDisplayString as i, createCommentVNode as p, createElementVNode as m, withModifiers as v, createVNode as y, normalizeClass as B } from "vue";
2
+ import { useWorkspace as N } from "@scalar/api-client/store";
3
+ import { getPointer as V } from "../../../blocks/helpers/getPointer.js";
4
+ import { useBlockProps as S } from "../../../blocks/hooks/useBlockProps.js";
5
+ import { useNavState as w } from "../../../hooks/useNavState.js";
6
+ import { useSidebar as H } from "../../../hooks/useSidebar.js";
7
+ import { isOperationDeprecated as I } from "../../../libs/operation.js";
8
+ import T from "../../Section/SectionHeaderTag.vue.js";
9
+ import $ from "../../HttpMethod/HttpMethod.vue.js";
10
+ const b = ["href"], F = /* @__PURE__ */ u({
11
+ __name: "OperationsListItem",
12
+ props: {
13
+ transformedOperation: {},
14
+ tag: {},
15
+ isCollapsed: { type: Boolean }
16
+ },
17
+ setup(a) {
18
+ const { getOperationId: n } = w(), { scrollToOperation: l } = H(), d = async (e) => {
19
+ const o = n(e, a.tag);
20
+ l(o);
21
+ }, c = N(), { operation: r } = S({
22
+ store: c,
23
+ location: V([
24
+ "paths",
25
+ a.transformedOperation.path,
26
+ a.transformedOperation.httpVerb.toLowerCase()
27
+ ])
28
+ }), f = h(() => {
29
+ var e, o;
30
+ return ((e = r.value) == null ? void 0 : e.summary) || ((o = r.value) == null ? void 0 : o.path);
31
+ });
32
+ return (e, o) => t(r) ? (s(), O("li", {
33
+ key: t(n)(e.transformedOperation, e.tag),
34
+ class: "contents"
35
+ }, [
36
+ e.isCollapsed ? (s(), g(t(T), {
37
+ key: 0,
38
+ class: "sr-only",
39
+ level: 3
40
+ }, {
41
+ default: k(() => [
42
+ C(i(f.value) + " (Hidden) ", 1)
43
+ ]),
44
+ _: 1
45
+ })) : p("", !0),
46
+ m("a", {
47
+ class: "endpoint",
48
+ href: `#${t(n)(e.transformedOperation, e.tag)}`,
49
+ onClick: o[0] || (o[0] = v((D) => d(e.transformedOperation), ["prevent"]))
50
+ }, [
51
+ y(t($), {
52
+ class: "endpoint-method",
53
+ method: t(r).method
54
+ }, null, 8, ["method"]),
55
+ m("span", {
56
+ class: B(["endpoint-path", {
57
+ deprecated: t(I)(t(r))
58
+ }])
59
+ }, i(t(r).path), 3)
60
+ ], 8, b)
61
+ ])) : p("", !0);
62
+ }
63
+ });
64
+ export {
65
+ F as default
66
+ };
@@ -1,70 +1,10 @@
1
- import type { Spec, Tag } from '@scalar/types/legacy';
2
- import { nextTick } from 'vue';
1
+ import type { Tag } from '@scalar/types/legacy';
3
2
  type __VLS_Props = {
4
3
  id?: string;
5
4
  tag: Tag;
6
- spec: Spec;
5
+ headerId?: string;
6
+ isCollapsed?: boolean;
7
7
  };
8
- declare function __VLS_template(): {
9
- attrs: Partial<{}>;
10
- slots: {
11
- default?(_: {}): any;
12
- };
13
- refs: {
14
- sectionContainerRef: ({
15
- $: import("vue").ComponentInternalInstance;
16
- $data: {};
17
- $props: Partial<{}> & Omit<{} & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, never>;
18
- $attrs: {
19
- [x: string]: unknown;
20
- };
21
- $refs: {
22
- [x: string]: unknown;
23
- };
24
- $slots: Readonly<{
25
- [name: string]: import("vue").Slot<any> | undefined;
26
- }>;
27
- $root: import("vue").ComponentPublicInstance | null;
28
- $parent: import("vue").ComponentPublicInstance | null;
29
- $host: Element | null;
30
- $emit: (event: string, ...args: any[]) => void;
31
- $el: HTMLDivElement;
32
- $options: import("vue").ComponentOptionsBase<Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, {}, {}, string, {}, import("vue").GlobalComponents, import("vue").GlobalDirectives, string, import("vue").ComponentProvideOptions> & {
33
- beforeCreate?: (() => void) | (() => void)[];
34
- created?: (() => void) | (() => void)[];
35
- beforeMount?: (() => void) | (() => void)[];
36
- mounted?: (() => void) | (() => void)[];
37
- beforeUpdate?: (() => void) | (() => void)[];
38
- updated?: (() => void) | (() => void)[];
39
- activated?: (() => void) | (() => void)[];
40
- deactivated?: (() => void) | (() => void)[];
41
- beforeDestroy?: (() => void) | (() => void)[];
42
- beforeUnmount?: (() => void) | (() => void)[];
43
- destroyed?: (() => void) | (() => void)[];
44
- unmounted?: (() => void) | (() => void)[];
45
- renderTracked?: ((e: import("vue").DebuggerEvent) => void) | ((e: import("vue").DebuggerEvent) => void)[];
46
- renderTriggered?: ((e: import("vue").DebuggerEvent) => void) | ((e: import("vue").DebuggerEvent) => void)[];
47
- errorCaptured?: ((err: unknown, instance: import("vue").ComponentPublicInstance | null, info: string) => boolean | void) | ((err: unknown, instance: import("vue").ComponentPublicInstance | null, info: string) => boolean | void)[];
48
- };
49
- $forceUpdate: () => void;
50
- $nextTick: typeof nextTick;
51
- $watch<T extends string | ((...args: any) => any)>(source: T, cb: T extends (...args: any) => infer R ? (...args: [R, R, import("@vue/reactivity").OnCleanup]) => any : (...args: [any, any, import("@vue/reactivity").OnCleanup]) => any, options?: import("vue").WatchOptions): import("vue").WatchStopHandle;
52
- } & Readonly<{}> & Omit<Readonly<{}> & Readonly<{}>, never> & import("vue").ShallowUnwrapRef<{}> & {} & import("vue").ComponentCustomProperties & {} & {
53
- $slots: {
54
- default?(_: {}): any;
55
- };
56
- }) | null;
57
- contentsRef: HTMLDivElement;
58
- };
59
- rootEl: HTMLDivElement;
60
- };
61
- type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
62
- declare const __VLS_component: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, HTMLDivElement>;
63
- declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
8
+ declare const _default: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
64
9
  export default _default;
65
- type __VLS_WithTemplateSlots<T, S> = T & {
66
- new (): {
67
- $slots: S;
68
- };
69
- };
70
10
  //# sourceMappingURL=Tag.vue.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"Tag.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/Content/Tag/Tag.vue"],"names":[],"mappings":"AA0EA,OAAO,KAAK,EAAE,IAAI,EAAE,GAAG,EAAE,MAAM,sBAAsB,CAAA;AACrD,OAAO,EAAY,QAAQ,EAAc,MAAM,KAAK,CAAA;AASpD,KAAK,WAAW,GAAG;IACjB,EAAE,CAAC,EAAE,MAAM,CAAA;IACX,GAAG,EAAE,GAAG,CAAA;IACR,IAAI,EAAE,IAAI,CAAA;CACX,CAAC;AAgCF,iBAAS,cAAc;WAyFT,OAAO,IAA6B;;yBAVpB,GAAG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;wCA4Dk/gB,GAAG,8CAA8C,GAAG,yBAAyB,GAAG,6DAAmC,GAAG;;;;;;;;;EA7CxohB;AAmBD,KAAK,oBAAoB,GAAG,UAAU,CAAC,OAAO,cAAc,CAAC,CAAC;AAC9D,QAAA,MAAM,eAAe,6SAOnB,CAAC;wBACkB,uBAAuB,CAAC,OAAO,eAAe,EAAE,oBAAoB,CAAC,OAAO,CAAC,CAAC;AAAnG,wBAAoG;AAWpG,KAAK,uBAAuB,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG;IACxC,QAAO;QACN,MAAM,EAAE,CAAC,CAAC;KAEV,CAAA;CACD,CAAC"}
1
+ {"version":3,"file":"Tag.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/Content/Tag/Tag.vue"],"names":[],"mappings":"AA+DA,OAAO,KAAK,EAAE,GAAG,EAAE,MAAM,sBAAsB,CAAA;AAmB/C,KAAK,WAAW,GAAG;IACjB,EAAE,CAAC,EAAE,MAAM,CAAA;IACX,GAAG,EAAE,GAAG,CAAA;IACR,QAAQ,CAAC,EAAE,MAAM,CAAA;IACjB,WAAW,CAAC,EAAE,OAAO,CAAA;CACtB,CAAC;;AA2JF,wBAOG"}
@@ -1,7 +1,89 @@
1
- import o from "./Tag.vue2.js";
2
- /* empty css */
3
- import t from "../../../_virtual/_plugin-vue_export-helper.js";
4
- const p = /* @__PURE__ */ t(o, [["__scopeId", "data-v-3a840364"]]);
1
+ import { defineComponent as s, computed as c, openBlock as n, createBlock as i, unref as e, withCtx as o, createVNode as t, createTextVNode as d, toDisplayString as g, createCommentVNode as C } from "vue";
2
+ import { ScalarMarkdown as S } from "@scalar/components";
3
+ import v from "../../ScreenReader.vue.js";
4
+ import { useNavState as N } from "../../../hooks/useNavState.js";
5
+ import _ from "./OperationsList.vue.js";
6
+ import h from "../../Section/Section.vue.js";
7
+ import k from "../../Section/SectionHeader.vue.js";
8
+ import y from "../../Anchor/Anchor.vue.js";
9
+ import I from "../../Section/SectionHeaderTag.vue.js";
10
+ import T from "../../Section/SectionContent.vue.js";
11
+ import w from "../../Section/SectionColumns.vue.js";
12
+ import m from "../../Section/SectionColumn.vue.js";
13
+ const q = /* @__PURE__ */ s({
14
+ __name: "Tag",
15
+ props: {
16
+ id: {},
17
+ tag: {},
18
+ headerId: {},
19
+ isCollapsed: { type: Boolean }
20
+ },
21
+ setup(p) {
22
+ const l = p, { getTagId: u } = N(), f = c(() => l.tag["x-displayName"] ?? l.tag.name);
23
+ return (a, r) => (n(), i(e(h), {
24
+ id: a.id,
25
+ label: a.tag.name.toUpperCase(),
26
+ role: "none"
27
+ }, {
28
+ default: o(() => [
29
+ t(e(k), null, {
30
+ default: o(() => [
31
+ t(e(y), {
32
+ id: e(u)(a.tag)
33
+ }, {
34
+ default: o(() => [
35
+ t(e(I), {
36
+ id: a.headerId,
37
+ level: 2
38
+ }, {
39
+ default: o(() => [
40
+ d(g(f.value) + " ", 1),
41
+ a.isCollapsed ? (n(), i(v, { key: 0 }, {
42
+ default: o(() => r[0] || (r[0] = [
43
+ d(" (Collapsed)")
44
+ ])),
45
+ _: 1
46
+ })) : C("", !0)
47
+ ]),
48
+ _: 1
49
+ }, 8, ["id"])
50
+ ]),
51
+ _: 1
52
+ }, 8, ["id"])
53
+ ]),
54
+ _: 1
55
+ }),
56
+ t(e(T), null, {
57
+ default: o(() => [
58
+ t(e(w), null, {
59
+ default: o(() => [
60
+ t(e(m), null, {
61
+ default: o(() => [
62
+ t(e(S), {
63
+ clamp: a.isCollapsed ? "7" : !1,
64
+ value: a.tag.description,
65
+ withImages: ""
66
+ }, null, 8, ["clamp", "value"])
67
+ ]),
68
+ _: 1
69
+ }),
70
+ t(e(m), null, {
71
+ default: o(() => [
72
+ t(_, { tag: a.tag }, null, 8, ["tag"])
73
+ ]),
74
+ _: 1
75
+ })
76
+ ]),
77
+ _: 1
78
+ })
79
+ ]),
80
+ _: 1
81
+ })
82
+ ]),
83
+ _: 1
84
+ }, 8, ["id", "label"]));
85
+ }
86
+ });
5
87
  export {
6
- p as default
88
+ q as default
7
89
  };