@scalar/api-reference 1.25.52 → 1.25.53

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 (60) hide show
  1. package/CHANGELOG.md +32 -0
  2. package/README.md +3 -2
  3. package/dist/browser/standalone.js +12953 -12838
  4. package/dist/browser/webpack-stats.json +1 -1
  5. package/dist/components/Anchor/Anchor.vue.d.ts.map +1 -1
  6. package/dist/components/Anchor/Anchor.vue.js +1 -1
  7. package/dist/components/Anchor/Anchor.vue2.js +9 -9
  8. package/dist/components/ApiReferenceLayout.vue.d.ts.map +1 -1
  9. package/dist/components/ApiReferenceLayout.vue.js +2 -2
  10. package/dist/components/ApiReferenceLayout.vue2.js +26 -31
  11. package/dist/components/Card/CardTab.vue.d.ts.map +1 -1
  12. package/dist/components/Card/CardTab.vue.js +2 -2
  13. package/dist/components/Card/CardTab.vue2.js +3 -3
  14. package/dist/components/Content/Operation/ParameterItem.vue.d.ts.map +1 -1
  15. package/dist/components/Content/Operation/ParameterItem.vue.js +4 -4
  16. package/dist/components/Content/Operation/ParameterItem.vue2.js +72 -54
  17. package/dist/components/Content/Operation/TestRequestButton.vue.d.ts.map +1 -1
  18. package/dist/components/Content/Operation/TestRequestButton.vue.js +2 -2
  19. package/dist/components/Content/Operation/TestRequestButton.vue2.js +22 -15
  20. package/dist/components/Content/Schema/Schema.vue.d.ts.map +1 -1
  21. package/dist/components/Content/Schema/Schema.vue.js +3 -3
  22. package/dist/components/Content/Schema/SchemaProperty.vue.d.ts.map +1 -1
  23. package/dist/components/Content/Schema/SchemaProperty.vue.js +2 -2
  24. package/dist/components/Content/Schema/SchemaProperty.vue2.js +114 -88
  25. package/dist/components/Content/Tag/Endpoints.vue.d.ts.map +1 -1
  26. package/dist/components/Content/Tag/Endpoints.vue.js +2 -2
  27. package/dist/components/Content/Tag/Endpoints.vue2.js +79 -64
  28. package/dist/components/Content/Tag/Tag.vue.d.ts.map +1 -1
  29. package/dist/components/Content/Tag/Tag.vue.js +3 -3
  30. package/dist/components/Content/Tag/Tag.vue2.js +34 -21
  31. package/dist/components/Section/CompactSection.vue.d.ts.map +1 -1
  32. package/dist/components/Section/CompactSection.vue.js +1 -1
  33. package/dist/embeds/OpenApiDocument/OpenApiDocument.vue.d.ts.map +1 -1
  34. package/dist/features/ApiClientModal/ApiClientModal.vue.d.ts +3 -9
  35. package/dist/features/ApiClientModal/ApiClientModal.vue.d.ts.map +1 -1
  36. package/dist/features/ApiClientModal/ApiClientModal.vue.js +27 -33
  37. package/dist/features/ApiClientModal/useApiClient.d.ts +140 -12
  38. package/dist/features/ApiClientModal/useApiClient.d.ts.map +1 -1
  39. package/dist/features/BaseUrl/ServerUrlSelect.vue.d.ts.map +1 -1
  40. package/dist/features/BaseUrl/ServerUrlSelect.vue.js +4 -4
  41. package/dist/features/BaseUrl/ServerUrlSelect.vue2.js +11 -9
  42. package/dist/features/ExampleRequest/ExamplePicker.vue.d.ts.map +1 -1
  43. package/dist/features/ExampleRequest/ExamplePicker.vue.js +3 -3
  44. package/dist/features/ExampleRequest/ExamplePicker.vue2.js +28 -21
  45. package/dist/features/ExampleRequest/ExampleRequest.vue.d.ts.map +1 -1
  46. package/dist/features/ExampleRequest/ExampleRequest.vue.js +1 -1
  47. package/dist/features/ExampleRequest/ExampleRequest.vue2.js +139 -119
  48. package/dist/features/ExampleRequest/TextSelect.vue.d.ts +2 -0
  49. package/dist/features/ExampleRequest/TextSelect.vue.d.ts.map +1 -1
  50. package/dist/features/ExampleRequest/TextSelect.vue.js +22 -19
  51. package/dist/features/ExampleResponses/ExampleResponse.vue.js +3 -3
  52. package/dist/features/ExampleResponses/ExampleResponses.vue.d.ts.map +1 -1
  53. package/dist/features/ExampleResponses/ExampleResponses.vue.js +1 -1
  54. package/dist/features/ExampleResponses/ExampleResponses.vue2.js +88 -81
  55. package/dist/index.js +1 -1
  56. package/dist/legacy/components/SecuritySchemeSelector.vue.d.ts.map +1 -1
  57. package/dist/legacy/components/SecuritySchemeSelector.vue.js +3 -3
  58. package/dist/legacy/components/SecuritySchemeSelector.vue2.js +30 -25
  59. package/dist/style.css +1 -1
  60. package/package.json +10 -9
@@ -1,41 +1,42 @@
1
- import { defineComponent as V, openBlock as l, createElementBlock as t, normalizeClass as Z, createVNode as n, createSlots as z, withCtx as H, createTextVNode as L, toDisplayString as i, unref as f, createCommentVNode as o, createElementVNode as p, Fragment as s, renderList as u, createBlock as T } from "vue";
2
- import { ScalarMarkdown as h } from "@scalar/components";
3
- import c from "./Schema.vue.js";
4
- import M from "./SchemaPropertyHeading.vue.js";
5
- const $ = {
1
+ import { defineComponent as A, openBlock as l, createElementBlock as t, normalizeClass as U, createVNode as s, createSlots as L, withCtx as v, createTextVNode as Z, toDisplayString as i, unref as u, createCommentVNode as r, createElementVNode as c, Fragment as n, renderList as d, createBlock as k } from "vue";
2
+ import { Disclosure as M, DisclosurePanel as V, DisclosureButton as $ } from "@headlessui/vue";
3
+ import { ScalarMarkdown as g, ScalarIcon as G } from "@scalar/components";
4
+ import y from "./Schema.vue.js";
5
+ import J from "./SchemaPropertyHeading.vue.js";
6
+ const K = {
6
7
  key: 0,
7
8
  class: "property-description"
8
- }, A = {
9
+ }, Q = {
9
10
  key: 1,
10
11
  class: "property-description"
11
- }, G = {
12
+ }, W = {
12
13
  key: 2,
13
14
  class: "property-example custom-scroll"
14
- }, J = { class: "property-example-value" }, K = {
15
+ }, X = { class: "property-example-value" }, Y = {
15
16
  key: 3,
16
17
  class: "property-example custom-scroll"
17
- }, Q = { class: "property-example-label" }, W = {
18
+ }, _ = { class: "property-example-label" }, x = {
18
19
  key: 4,
19
20
  class: "property-enum"
20
- }, X = {
21
+ }, ee = {
21
22
  key: 0,
22
23
  class: "property-list"
23
- }, Y = { class: "property-heading" }, _ = { class: "property-name" }, x = { class: "property-description" }, ee = {
24
+ }, le = { class: "property-heading" }, te = { class: "property-name" }, oe = { class: "property-description" }, ae = {
24
25
  key: 1,
25
26
  class: "property-enum-values"
26
- }, le = {
27
+ }, re = {
27
28
  key: 5,
28
29
  class: "children"
29
- }, te = {
30
+ }, se = {
30
31
  key: 0,
31
32
  class: "children"
32
- }, re = {
33
+ }, ne = {
33
34
  key: 0,
34
35
  class: "property-rule"
35
- }, ae = {
36
+ }, ie = {
36
37
  key: 1,
37
38
  class: "property-rule"
38
- }, ue = /* @__PURE__ */ V({
39
+ }, ye = /* @__PURE__ */ A({
39
40
  __name: "SchemaProperty",
40
41
  props: {
41
42
  value: {},
@@ -46,8 +47,8 @@ const $ = {
46
47
  description: {},
47
48
  additional: { type: Boolean }
48
49
  },
49
- setup(oe) {
50
- const k = {
50
+ setup(pe) {
51
+ const b = {
51
52
  integer: {
52
53
  _default: "Integer numbers.",
53
54
  int32: "Signed 32-bit integers (commonly used integer type).",
@@ -60,116 +61,141 @@ const $ = {
60
61
  byte: "base64-encoded characters, for example, U3dhZ2dlciByb2Nrcw==",
61
62
  binary: "binary data, used to describe files"
62
63
  }
63
- }, g = function(e, r) {
64
- return r != null && r.properties || r != null && r.additionalProperties ? null : e || (r == null ? void 0 : r.description) || null;
65
- }, b = function(e) {
66
- return !e || !k[e.type] ? null : k[e.type][e.format || "_default"];
67
- }, d = function(e) {
68
- var r;
69
- return (e == null ? void 0 : e.enum) || ((r = e == null ? void 0 : e.items) == null ? void 0 : r.enum) || [];
70
- }, U = ["oneOf", "anyOf", "allOf", "not"];
71
- return (e, r) => {
72
- var S, B, C, E, j, D, N, O, P, q, w, F;
64
+ }, S = function(e, a) {
65
+ return a != null && a.properties || a != null && a.additionalProperties ? null : e || (a == null ? void 0 : a.description) || null;
66
+ }, B = function(e) {
67
+ return !e || !b[e.type] ? null : b[e.type][e.format || "_default"];
68
+ }, m = function(e) {
69
+ var a;
70
+ return (e == null ? void 0 : e.enum) || ((a = e == null ? void 0 : e.items) == null ? void 0 : a.enum) || [];
71
+ }, z = ["oneOf", "anyOf", "allOf", "not"];
72
+ return (e, a) => {
73
+ var D, C, E, P, j, w, N, O, q, F, I, H;
73
74
  return l(), t("div", {
74
- class: Z(["property", [
75
+ class: U(["property", [
75
76
  `property--level-${e.level}`,
76
77
  {
77
78
  "property--compact": e.compact,
78
- "property--deprecated": (S = e.value) == null ? void 0 : S.deprecated
79
+ "property--deprecated": (D = e.value) == null ? void 0 : D.deprecated
79
80
  }
80
81
  ]])
81
82
  }, [
82
- n(M, {
83
+ s(J, {
83
84
  additional: e.additional,
84
- enum: d(e.value).length > 1,
85
+ enum: m(e.value).length > 1,
85
86
  required: e.required,
86
87
  value: e.value
87
- }, z({ _: 2 }, [
88
+ }, L({ _: 2 }, [
88
89
  e.name ? {
89
90
  name: "name",
90
- fn: H(() => [
91
- L(i(e.name), 1)
91
+ fn: v(() => [
92
+ Z(i(e.name), 1)
92
93
  ]),
93
94
  key: "0"
94
95
  } : void 0
95
96
  ]), 1032, ["additional", "enum", "required", "value"]),
96
- g(e.description, e.value) ? (l(), t("div", $, [
97
- n(f(h), {
98
- value: g(e.description, e.value)
97
+ S(e.description, e.value) ? (l(), t("div", K, [
98
+ s(u(g), {
99
+ value: S(e.description, e.value)
99
100
  }, null, 8, ["value"])
100
- ])) : b(e.value) ? (l(), t("div", A, [
101
- n(f(h), {
102
- value: b(e.value) || ""
101
+ ])) : B(e.value) ? (l(), t("div", Q, [
102
+ s(u(g), {
103
+ value: B(e.value) || ""
103
104
  }, null, 8, ["value"])
104
- ])) : o("", !0),
105
- (B = e.value) != null && B.example || (E = (C = e.value) == null ? void 0 : C.items) != null && E.example ? (l(), t("div", G, [
106
- r[0] || (r[0] = p("span", { class: "property-example-label" }, "Example", -1)),
107
- p("code", J, i(e.value.example || ((j = e.value) == null ? void 0 : j.items.example)), 1)
108
- ])) : o("", !0),
109
- (D = e.value) != null && D.examples && typeof e.value.examples == "object" && Object.keys(e.value.examples).length > 0 ? (l(), t("div", K, [
110
- p("span", Q, i(Object.keys(e.value.examples).length === 1 ? "Example" : "Examples"), 1),
111
- (l(!0), t(s, null, u(e.value.examples, (a, m) => (l(), t("code", {
112
- key: m,
105
+ ])) : r("", !0),
106
+ (C = e.value) != null && C.example || (P = (E = e.value) == null ? void 0 : E.items) != null && P.example ? (l(), t("div", W, [
107
+ a[0] || (a[0] = c("span", { class: "property-example-label" }, "Example", -1)),
108
+ c("code", X, i(e.value.example || ((j = e.value) == null ? void 0 : j.items.example)), 1)
109
+ ])) : r("", !0),
110
+ (w = e.value) != null && w.examples && typeof e.value.examples == "object" && Object.keys(e.value.examples).length > 0 ? (l(), t("div", Y, [
111
+ c("span", _, i(Object.keys(e.value.examples).length === 1 ? "Example" : "Examples"), 1),
112
+ (l(!0), t(n, null, d(e.value.examples, (o, p) => (l(), t("code", {
113
+ key: p,
113
114
  class: "property-example-value"
114
- }, i(a), 1))), 128))
115
- ])) : o("", !0),
116
- ((N = d(e.value)) == null ? void 0 : N.length) > 1 ? (l(), t("div", W, [
117
- (O = e.value) != null && O["x-enumDescriptions"] ? (l(), t("div", X, [
118
- (l(!0), t(s, null, u(d(e.value), (a) => (l(), t("div", {
119
- key: a,
115
+ }, i(o), 1))), 128))
116
+ ])) : r("", !0),
117
+ ((N = m(e.value)) == null ? void 0 : N.length) > 1 ? (l(), t("div", x, [
118
+ (O = e.value) != null && O["x-enumDescriptions"] ? (l(), t("div", ee, [
119
+ (l(!0), t(n, null, d(m(e.value), (o) => (l(), t("div", {
120
+ key: o,
120
121
  class: "property"
121
122
  }, [
122
- p("div", Y, [
123
- p("div", _, i(a), 1)
123
+ c("div", le, [
124
+ c("div", te, i(o), 1)
124
125
  ]),
125
- p("div", x, [
126
- n(f(h), {
127
- value: e.value["x-enumDescriptions"][a]
126
+ c("div", oe, [
127
+ s(u(g), {
128
+ value: e.value["x-enumDescriptions"][o]
128
129
  }, null, 8, ["value"])
129
130
  ])
130
131
  ]))), 128))
131
- ])) : (l(), t("ul", ee, [
132
- (l(!0), t(s, null, u(d(e.value), (a) => (l(), t("li", {
133
- key: a,
132
+ ])) : (l(), t("ul", ae, [
133
+ (l(!0), t(n, null, d(m(e.value).slice(0, 4), (o) => (l(), t("li", {
134
+ key: o,
134
135
  class: "property-enum-value"
135
- }, i(a), 1))), 128))
136
+ }, i(o), 1))), 128)),
137
+ m(e.value).length > 4 ? (l(), k(u(M), { key: 0 }, {
138
+ default: v(({ open: o }) => [
139
+ s(u(V), null, {
140
+ default: v(() => [
141
+ (l(!0), t(n, null, d(m(e.value).slice(4), (p) => (l(), t("li", {
142
+ key: p,
143
+ class: "property-enum-value"
144
+ }, i(p), 1))), 128))
145
+ ]),
146
+ _: 1
147
+ }),
148
+ s(u($), { class: "enum-toggle-button" }, {
149
+ default: v(() => [
150
+ s(u(G), {
151
+ class: U(["enum-toggle-button-icon h-2.5", { "enum-toggle-button-icon--open": o }]),
152
+ icon: "Add",
153
+ thickness: "3"
154
+ }, null, 8, ["class"]),
155
+ Z(" " + i(o ? "Hide values" : "Show all values"), 1)
156
+ ]),
157
+ _: 2
158
+ }, 1024)
159
+ ]),
160
+ _: 1
161
+ })) : r("", !0)
136
162
  ]))
137
- ])) : o("", !0),
138
- ((P = e.value) == null ? void 0 : P.type) === "object" && ((q = e.value) != null && q.properties || (w = e.value) != null && w.additionalProperties) ? (l(), t("div", le, [
139
- n(c, {
163
+ ])) : r("", !0),
164
+ ((q = e.value) == null ? void 0 : q.type) === "object" && ((F = e.value) != null && F.properties || (I = e.value) != null && I.additionalProperties) ? (l(), t("div", re, [
165
+ s(y, {
140
166
  compact: e.compact,
141
167
  level: e.level + 1,
142
168
  value: e.value
143
169
  }, null, 8, ["compact", "level", "value"])
144
- ])) : o("", !0),
145
- (F = e.value) != null && F.items ? (l(), t(s, { key: 6 }, [
146
- ["object"].includes(e.value.items.type) ? (l(), t("div", te, [
147
- n(c, {
170
+ ])) : r("", !0),
171
+ (H = e.value) != null && H.items ? (l(), t(n, { key: 6 }, [
172
+ ["object"].includes(e.value.items.type) ? (l(), t("div", se, [
173
+ s(y, {
148
174
  compact: e.compact,
149
175
  level: e.level + 1,
150
176
  value: e.value.items
151
177
  }, null, 8, ["compact", "level", "value"])
152
- ])) : o("", !0)
153
- ], 64)) : o("", !0),
154
- (l(), t(s, null, u(U, (a) => {
155
- var m, I, R;
156
- return l(), t(s, { key: a }, [
157
- (m = e.value) != null && m[a] ? (l(), t("div", re, [
158
- (l(!0), t(s, null, u(e.value[a], (v, y) => (l(), T(c, {
159
- key: y,
178
+ ])) : r("", !0)
179
+ ], 64)) : r("", !0),
180
+ (l(), t(n, null, d(z, (o) => {
181
+ var p, R, T;
182
+ return l(), t(n, { key: o }, [
183
+ (p = e.value) != null && p[o] ? (l(), t("div", ne, [
184
+ (l(!0), t(n, null, d(e.value[o], (f, h) => (l(), k(y, {
185
+ key: h,
160
186
  compact: e.compact,
161
187
  level: e.level + 1,
162
- value: v
188
+ value: f
163
189
  }, null, 8, ["compact", "level", "value"]))), 128))
164
- ])) : o("", !0),
165
- (R = (I = e.value) == null ? void 0 : I.items) != null && R[a] && e.level < 3 ? (l(), t("div", ae, [
166
- (l(!0), t(s, null, u(e.value.items[a], (v, y) => (l(), T(c, {
167
- key: y,
190
+ ])) : r("", !0),
191
+ (T = (R = e.value) == null ? void 0 : R.items) != null && T[o] && e.level < 3 ? (l(), t("div", ie, [
192
+ (l(!0), t(n, null, d(e.value.items[o], (f, h) => (l(), k(y, {
193
+ key: h,
168
194
  compact: e.compact,
169
195
  level: e.level + 1,
170
- value: v
196
+ value: f
171
197
  }, null, 8, ["compact", "level", "value"]))), 128))
172
- ])) : o("", !0)
198
+ ])) : r("", !0)
173
199
  ], 64);
174
200
  }), 64))
175
201
  ], 2);
@@ -177,5 +203,5 @@ const $ = {
177
203
  }
178
204
  });
179
205
  export {
180
- ue as default
206
+ ye as default
181
207
  };
@@ -1 +1 @@
1
- {"version":3,"file":"Endpoints.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/Content/Tag/Endpoints.vue"],"names":[],"mappings":"AA0HA,OAAO,KAAK,EAAE,GAAG,EAAwB,MAAM,sBAAsB,CAAA;;SAgBxC,MAAM;SAAO,GAAG;kBAAgB,OAAO;;SAAvC,MAAM;SAAO,GAAG;kBAAgB,OAAO;;AA+QpE,wBAMG"}
1
+ {"version":3,"file":"Endpoints.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/Content/Tag/Endpoints.vue"],"names":[],"mappings":"AA2IA,OAAO,KAAK,EAAE,GAAG,EAAwB,MAAM,sBAAsB,CAAA;;SAkBxC,MAAM;SAAO,GAAG;kBAAgB,OAAO;;SAAvC,MAAM;SAAO,GAAG;kBAAgB,OAAO;;AAmSpE,wBAMG"}
@@ -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 f = /* @__PURE__ */ t(o, [["__scopeId", "data-v-fe316e67"]]);
4
+ const c = /* @__PURE__ */ t(o, [["__scopeId", "data-v-1c92eacd"]]);
5
5
  export {
6
- f as default
6
+ c as default
7
7
  };
@@ -1,54 +1,55 @@
1
- import { defineComponent as y, openBlock as n, createBlock as m, unref as e, withCtx as o, createVNode as a, createTextVNode as p, toDisplayString as c, createElementVNode as u, createElementBlock as f, Fragment as v, renderList as N, normalizeClass as V, createCommentVNode as b } from "vue";
2
- import { ScalarMarkdown as B } from "@scalar/components";
3
- import E from "../../Section/Section.vue.js";
4
- import I from "../../Section/SectionContent.vue.js";
5
- import w from "../../Section/SectionColumns.vue.js";
6
- import g from "../../Section/SectionColumn.vue.js";
7
- import H from "../../Section/SectionHeader.vue.js";
8
- import T from "../../Anchor/Anchor.vue.js";
9
- import O from "../../Card/Card.vue.js";
10
- import $ from "../../Card/CardHeader.vue.js";
11
- import z from "../../Card/CardContent.vue.js";
12
- import A from "../../HttpMethod/HttpMethod.vue.js";
13
- import { useSidebar as D } from "../../../hooks/useSidebar.js";
14
- import { useNavState as F } from "../../../hooks/useNavState.js";
15
- const L = { class: "endpoints" }, M = ["onClick"], te = /* @__PURE__ */ y({
1
+ import { defineComponent as y, computed as N, openBlock as n, createBlock as g, unref as e, withCtx as a, createVNode as o, createTextVNode as m, toDisplayString as p, createElementVNode as c, createElementBlock as C, Fragment as b, renderList as V, withModifiers as w, normalizeClass as B, createCommentVNode as E } from "vue";
2
+ import { ScalarMarkdown as I } from "@scalar/components";
3
+ import $ from "../../ScreenReader.vue.js";
4
+ import H from "../../Section/Section.vue.js";
5
+ import T from "../../Section/SectionContent.vue.js";
6
+ import M from "../../Section/SectionColumns.vue.js";
7
+ import h from "../../Section/SectionColumn.vue.js";
8
+ import O from "../../Section/SectionHeader.vue.js";
9
+ import z from "../../Anchor/Anchor.vue.js";
10
+ import A from "../../Card/Card.vue.js";
11
+ import D from "../../Card/CardHeader.vue.js";
12
+ import F from "../../Card/CardContent.vue.js";
13
+ import L from "../../HttpMethod/HttpMethod.vue.js";
14
+ import { useSidebar as R } from "../../../hooks/useSidebar.js";
15
+ import { useNavState as U } from "../../../hooks/useNavState.js";
16
+ const j = ["aria-label"], q = ["href", "onClick"], ne = /* @__PURE__ */ y({
16
17
  __name: "Endpoints",
17
18
  props: {
18
19
  id: {},
19
20
  tag: {},
20
21
  isCollapsed: { type: Boolean }
21
22
  },
22
- setup(C) {
23
- const _ = C, { getOperationId: s, getTagId: h } = F(), { scrollToOperation: k } = D(), S = async (t) => {
24
- const l = s(t, _.tag);
25
- k(l);
23
+ setup(_) {
24
+ const s = _, { getOperationId: i, getTagId: S } = U(), { scrollToOperation: k } = R(), d = N(() => s.tag["x-displayName"] ?? s.tag.name), v = async (t) => {
25
+ const r = i(t, s.tag);
26
+ k(r);
26
27
  };
27
- return (t, l) => (n(), m(e(E), {
28
+ return (t, r) => (n(), g(e(H), {
28
29
  id: t.id,
29
30
  label: t.tag.name.toUpperCase()
30
31
  }, {
31
- default: o(() => [
32
- a(e(I), null, {
33
- default: o(() => [
34
- a(e(w), null, {
35
- default: o(() => [
36
- a(e(g), null, {
37
- default: o(() => [
38
- a(e(H), { level: 2 }, {
39
- default: o(() => [
40
- a(e(T), {
41
- id: e(h)(t.tag)
32
+ default: a(() => [
33
+ o(e(T), null, {
34
+ default: a(() => [
35
+ o(e(M), null, {
36
+ default: a(() => [
37
+ o(e(h), null, {
38
+ default: a(() => [
39
+ o(e(O), { level: 2 }, {
40
+ default: a(() => [
41
+ o(e(z), {
42
+ id: e(S)(t.tag)
42
43
  }, {
43
- default: o(() => [
44
- p(c(t.tag["x-displayName"] ?? t.tag.name), 1)
44
+ default: a(() => [
45
+ m(p(d.value), 1)
45
46
  ]),
46
47
  _: 1
47
48
  }, 8, ["id"])
48
49
  ]),
49
50
  _: 1
50
51
  }),
51
- a(e(B), {
52
+ o(e(I), {
52
53
  clamp: t.isCollapsed ? "7" : !1,
53
54
  value: t.tag.description,
54
55
  withImages: ""
@@ -56,51 +57,65 @@ const L = { class: "endpoints" }, M = ["onClick"], te = /* @__PURE__ */ y({
56
57
  ]),
57
58
  _: 1
58
59
  }),
59
- a(e(g), null, {
60
- default: o(() => {
61
- var d;
60
+ o(e(h), null, {
61
+ default: a(() => {
62
+ var u;
62
63
  return [
63
- ((d = t.tag.operations) == null ? void 0 : d.length) > 0 ? (n(), m(e(O), {
64
+ ((u = t.tag.operations) == null ? void 0 : u.length) > 0 ? (n(), g(e(A), {
64
65
  key: 0,
65
66
  class: "scalar-card-sticky"
66
67
  }, {
67
- default: o(() => [
68
- a(e($), { muted: "" }, {
69
- default: o(() => l[0] || (l[0] = [
70
- p("Endpoints")
71
- ])),
68
+ default: a(() => [
69
+ o(e(D), { muted: "" }, {
70
+ default: a(() => [
71
+ o($, null, {
72
+ default: a(() => [
73
+ m(p(d.value), 1)
74
+ ]),
75
+ _: 1
76
+ }),
77
+ r[0] || (r[0] = m(" Endpoints "))
78
+ ]),
72
79
  _: 1
73
80
  }),
74
- a(e(z), {
81
+ o(e(F), {
75
82
  class: "custom-scroll",
76
83
  muted: ""
77
84
  }, {
78
- default: o(() => [
79
- u("div", L, [
80
- (n(!0), f(v, null, N(t.tag.operations, (r) => {
81
- var i;
82
- return n(), f("a", {
83
- key: e(s)(r, t.tag),
84
- class: "endpoint",
85
- onClick: (U) => S(r)
85
+ default: a(() => [
86
+ c("ul", {
87
+ "aria-label": `${d.value} endpoints`,
88
+ class: "endpoints"
89
+ }, [
90
+ (n(!0), C(b, null, V(t.tag.operations, (l) => {
91
+ var f;
92
+ return n(), C("li", {
93
+ key: e(i)(l, t.tag),
94
+ class: "contents"
86
95
  }, [
87
- a(e(A), {
88
- method: r.httpVerb
89
- }, null, 8, ["method"]),
90
- u("span", {
91
- class: V({
92
- deprecated: (i = r.information) == null ? void 0 : i.deprecated
93
- })
94
- }, c(r.path), 3)
95
- ], 8, M);
96
+ c("a", {
97
+ class: "endpoint",
98
+ href: `#${e(i)(l, t.tag)}`,
99
+ onClick: w((G) => v(l), ["prevent"])
100
+ }, [
101
+ o(e(L), {
102
+ method: l.httpVerb
103
+ }, null, 8, ["method"]),
104
+ c("span", {
105
+ class: B(["endpoint-path", {
106
+ deprecated: (f = l.information) == null ? void 0 : f.deprecated
107
+ }])
108
+ }, p(l.path), 3)
109
+ ], 8, q)
110
+ ]);
96
111
  }), 128))
97
- ])
112
+ ], 8, j)
98
113
  ]),
99
114
  _: 1
100
115
  })
101
116
  ]),
102
117
  _: 1
103
- })) : b("", !0)
118
+ })) : E("", !0)
104
119
  ];
105
120
  }),
106
121
  _: 1
@@ -117,5 +132,5 @@ const L = { class: "endpoints" }, M = ["onClick"], te = /* @__PURE__ */ y({
117
132
  }
118
133
  });
119
134
  export {
120
- te as default
135
+ ne as default
121
136
  };
@@ -1 +1 @@
1
- {"version":3,"file":"Tag.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/Content/Tag/Tag.vue"],"names":[],"mappings":"AAsDA,OAAO,KAAK,EAAE,IAAI,EAAE,GAAG,EAAE,MAAM,sBAAsB,CAAA;AAkCrD,iBAAS,cAAc;qBA6DO,GAAG;EAqBhC;AACD,QAAA,MAAM,eAAe;SA1Gd,MAAM;SACN,GAAG;UACF,IAAI;;SAFL,MAAM;SACN,GAAG;UACF,IAAI;iGA8GV,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"}
1
+ {"version":3,"file":"Tag.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/Content/Tag/Tag.vue"],"names":[],"mappings":"AAiEA,OAAO,KAAK,EAAE,IAAI,EAAE,GAAG,EAAE,MAAM,sBAAsB,CAAA;AAwCrD,iBAAS,cAAc;qBAiFO,GAAG;EAuBhC;AACD,QAAA,MAAM,eAAe;SAtId,MAAM;SACN,GAAG;UACF,IAAI;;SAFL,MAAM;SACN,GAAG;UACF,IAAI;iGA0IV,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"}
@@ -1,7 +1,7 @@
1
1
  import o from "./Tag.vue2.js";
2
2
  /* empty css */
3
- import t from "../../../_virtual/_plugin-vue_export-helper.js";
4
- const f = /* @__PURE__ */ t(o, [["__scopeId", "data-v-f9c3c8a1"]]);
3
+ import a from "../../../_virtual/_plugin-vue_export-helper.js";
4
+ const p = /* @__PURE__ */ a(o, [["__scopeId", "data-v-a6dd88a4"]]);
5
5
  export {
6
- f as default
6
+ p as default
7
7
  };
@@ -1,41 +1,54 @@
1
- import { defineComponent as f, ref as u, computed as c, openBlock as r, createBlock as i, unref as o, withCtx as g, createCommentVNode as C, renderSlot as h } from "vue";
2
- import k from "../../ShowMoreButton.vue.js";
3
- import S from "./Endpoints.vue.js";
4
- import y from "../../Section/SectionContainer.vue.js";
5
- import { useSidebar as T } from "../../../hooks/useSidebar.js";
6
- import { useNavState as v } from "../../../hooks/useNavState.js";
7
- const D = /* @__PURE__ */ f({
1
+ import { defineComponent as g, ref as d, computed as k, openBlock as a, createBlock as s, unref as n, withCtx as C, createCommentVNode as y, createElementBlock as S, renderSlot as h, nextTick as b } from "vue";
2
+ import v from "../../ShowMoreButton.vue.js";
3
+ import T from "./Endpoints.vue.js";
4
+ import w from "../../Section/SectionContainer.vue.js";
5
+ import { useSidebar as B } from "../../../hooks/useSidebar.js";
6
+ import { useNavState as R } from "../../../hooks/useNavState.js";
7
+ const M = /* @__PURE__ */ g({
8
8
  __name: "Tag",
9
9
  props: {
10
10
  id: {},
11
11
  tag: {},
12
12
  spec: {}
13
13
  },
14
- setup(d) {
15
- const n = d, p = u(null), { collapsedSidebarItems: s } = T(), { getTagId: l } = v(), m = c(
14
+ setup(f) {
15
+ const r = f, p = d(), i = d(), { collapsedSidebarItems: l } = B(), { getTagId: c } = R(), m = k(
16
16
  () => {
17
- var e, a, t;
18
- return ((e = n.spec.tags) == null ? void 0 : e.length) !== 1 || ((a = n.tag) == null ? void 0 : a.name) !== "default" || ((t = n.tag) == null ? void 0 : t.description) !== "";
17
+ var e, t, o;
18
+ return ((e = r.spec.tags) == null ? void 0 : e.length) !== 1 || ((t = r.tag) == null ? void 0 : t.name) !== "default" || ((o = r.tag) == null ? void 0 : o.description) !== "";
19
19
  }
20
20
  );
21
- return (e, a) => (r(), i(o(y), {
21
+ async function u() {
22
+ var e, t;
23
+ await b(), (t = (e = i.value) == null ? void 0 : e.querySelector("button")) == null || t.focus();
24
+ }
25
+ return (e, t) => (a(), s(n(w), {
22
26
  ref_key: "sectionContainerRef",
23
27
  ref: p,
24
28
  class: "tag-section-container"
25
29
  }, {
26
- default: g(() => {
27
- var t;
30
+ default: C(() => {
31
+ var o;
28
32
  return [
29
- m.value ? (r(), i(S, {
33
+ m.value ? (a(), s(T, {
30
34
  key: 0,
31
35
  id: e.id,
32
- isCollapsed: !o(s)[o(l)(e.tag)],
36
+ isCollapsed: !n(l)[n(c)(e.tag)],
33
37
  tag: e.tag
34
- }, null, 8, ["id", "isCollapsed", "tag"])) : C("", !0),
35
- !o(s)[o(l)(e.tag)] && ((t = e.tag.operations) == null ? void 0 : t.length) > 1 ? (r(), i(k, {
38
+ }, null, 8, ["id", "isCollapsed", "tag"])) : y("", !0),
39
+ !n(l)[n(c)(e.tag)] && ((o = e.tag.operations) == null ? void 0 : o.length) > 1 ? (a(), s(v, {
36
40
  key: 1,
37
- id: e.id ?? ""
38
- }, null, 8, ["id"])) : h(e.$slots, "default", { key: 2 }, void 0, !0)
41
+ id: e.id ?? "",
42
+ "aria-label": `Show all ${e.tag["x-displayName"] ?? e.tag.name} endpoints`,
43
+ onClick: u
44
+ }, null, 8, ["id", "aria-label"])) : (a(), S("div", {
45
+ key: 2,
46
+ ref_key: "contentsRef",
47
+ ref: i,
48
+ class: "contents"
49
+ }, [
50
+ h(e.$slots, "default", {}, void 0, !0)
51
+ ], 512))
39
52
  ];
40
53
  }),
41
54
  _: 3
@@ -43,5 +56,5 @@ const D = /* @__PURE__ */ f({
43
56
  }
44
57
  });
45
58
  export {
46
- D as default
59
+ M as default
47
60
  };
@@ -1 +1 @@
1
- {"version":3,"file":"CompactSection.vue.d.ts","sourceRoot":"","sources":["../../../src/components/Section/CompactSection.vue"],"names":[],"mappings":"AA2IA,iBAAS,cAAc;qBAuFO,GAAG;qBACH,GAAG;EAkBhC;AACD,QAAA,MAAM,eAAe;QApIf,MAAM;YACF,MAAM;;QADV,MAAM;YACF,MAAM;iGAyId,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"}
1
+ {"version":3,"file":"CompactSection.vue.d.ts","sourceRoot":"","sources":["../../../src/components/Section/CompactSection.vue"],"names":[],"mappings":"AAuIA,iBAAS,cAAc;qBAqFO,GAAG;qBACH,GAAG;EAkBhC;AACD,QAAA,MAAM,eAAe;QAlIf,MAAM;YACF,MAAM;;QADV,MAAM;YACF,MAAM;iGAuId,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"}
@@ -1,7 +1,7 @@
1
1
  import o from "./CompactSection.vue2.js";
2
2
  /* empty css */
3
3
  import t from "../../_virtual/_plugin-vue_export-helper.js";
4
- const r = /* @__PURE__ */ t(o, [["__scopeId", "data-v-05521a03"]]);
4
+ const r = /* @__PURE__ */ t(o, [["__scopeId", "data-v-e8754cd5"]]);
5
5
  export {
6
6
  r as default
7
7
  };
@@ -1 +1 @@
1
- {"version":3,"file":"OpenApiDocument.vue.d.ts","sourceRoot":"","sources":["../../../src/embeds/OpenApiDocument/OpenApiDocument.vue"],"names":[],"mappings":"AA8HA,OAAO,EAAE,KAAK,WAAW,EAAqB,MAAM,wBAAwB,CAAA;AAE5E,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,uBAAuB,CAAA;AAUpD,OAAO,KAAK,EAAE,4BAA4B,EAAE,MAAM,SAAS,CAAA;AAS3D,QAAA,MAAM,YAAY;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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