@scalar/api-reference 1.25.9 → 1.25.10

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 (45) hide show
  1. package/CHANGELOG.md +23 -0
  2. package/dist/browser/standalone.js +12096 -12067
  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 +43 -42
  6. package/dist/components/ApiReferenceLayout.vue.d.ts.map +1 -1
  7. package/dist/components/ApiReferenceLayout.vue.js +2 -2
  8. package/dist/components/ApiReferenceLayout.vue2.js +51 -48
  9. package/dist/components/Content/Models/Models.vue.d.ts.map +1 -1
  10. package/dist/components/Content/Models/Models.vue.js +2 -2
  11. package/dist/components/Content/Models/Models.vue2.js +46 -48
  12. package/dist/components/Content/Operation/OperationAccordion.vue.d.ts.map +1 -1
  13. package/dist/components/Content/Operation/OperationAccordion.vue.js +2 -2
  14. package/dist/components/Content/Operation/OperationAccordion.vue2.js +53 -49
  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/TestRequestButton.vue.d.ts.map +1 -1
  18. package/dist/components/Content/Operation/TestRequestButton.vue.js +1 -1
  19. package/dist/components/Content/Operation/TestRequestButton.vue2.js +30 -22
  20. package/dist/components/Content/Schema/Schema.vue.js +2 -2
  21. package/dist/components/Content/Tag/Endpoints.vue.d.ts +2 -0
  22. package/dist/components/Content/Tag/Endpoints.vue.d.ts.map +1 -1
  23. package/dist/components/Content/Tag/Endpoints.vue.js +2 -2
  24. package/dist/components/Content/Tag/Endpoints.vue2.js +31 -29
  25. package/dist/components/Content/Tag/Tag.vue.d.ts.map +1 -1
  26. package/dist/components/Content/Tag/Tag.vue.js +3 -3
  27. package/dist/components/Content/Tag/Tag.vue2.js +15 -14
  28. package/dist/components/Content/Webhooks/Webhooks.vue.d.ts.map +1 -1
  29. package/dist/components/Content/Webhooks/Webhooks.vue.js +2 -2
  30. package/dist/components/Content/Webhooks/Webhooks.vue2.js +43 -45
  31. package/dist/components/DarkModeToggle/DarkModeIconToggle.vue.d.ts.map +1 -1
  32. package/dist/components/DarkModeToggle/DarkModeIconToggle.vue.js +3 -3
  33. package/dist/components/Layouts/ClassicLayout.vue.d.ts.map +1 -1
  34. package/dist/components/Layouts/ClassicLayout.vue.js +18 -17
  35. package/dist/components/Layouts/ModernLayout.vue.d.ts.map +1 -1
  36. package/dist/components/Layouts/ModernLayout.vue.js +2 -2
  37. package/dist/components/Layouts/ModernLayout.vue2.js +31 -28
  38. package/dist/components/Section/CompactSection.vue.d.ts.map +1 -1
  39. package/dist/components/Section/CompactSection.vue.js +2 -2
  40. package/dist/helpers/provideSymbols.d.ts +1 -0
  41. package/dist/helpers/provideSymbols.d.ts.map +1 -1
  42. package/dist/helpers/provideSymbols.js +4 -3
  43. package/dist/index.js +59 -58
  44. package/dist/style.css +1 -1
  45. package/package.json +11 -11
@@ -1,50 +1,51 @@
1
- import { defineComponent as l, openBlock as r, createBlock as p, unref as e, createSlots as c, withCtx as i, createElementVNode as n, createVNode as t, toDisplayString as m, withModifiers as h } from "vue";
2
- import { ScalarIcon as f, ScalarIconButton as u, ScalarMarkdown as v } from "@scalar/components";
3
- import y from "./EndpointDetailsCard.vue.js";
4
- import _ from "./EndpointPath.vue.js";
5
- import b from "./TestRequestButton.vue.js";
6
- import k from "../../Section/SectionAccordion.vue.js";
7
- import C from "../../HttpMethod/HttpMethod.vue.js";
8
- import S from "../../Anchor/Anchor.vue.js";
9
- import w from "./PathResponses/PathResponses.vue.js";
10
- import B from "../../../features/ExampleRequest/ExampleRequest.vue.js";
11
- import { useClipboard as E } from "../../../hooks/useClipboard.js";
12
- const R = { class: "endpoint-header" }, g = { class: "endpoint-details" }, A = { class: "endpoint-label" }, I = { class: "endpoint-label-path" }, P = { class: "endpoint-label-name" }, V = { class: "endpoint-content" }, H = /* @__PURE__ */ l({
1
+ import { defineComponent as m, inject as h, openBlock as p, createBlock as s, unref as e, createSlots as f, withCtx as i, createElementVNode as n, createVNode as t, toDisplayString as u, createCommentVNode as _, withModifiers as v } from "vue";
2
+ import { ScalarIcon as y, ScalarIconButton as C, ScalarMarkdown as S } from "@scalar/components";
3
+ import b from "./EndpointDetailsCard.vue.js";
4
+ import k from "./EndpointPath.vue.js";
5
+ import E from "./TestRequestButton.vue.js";
6
+ import T from "../../Section/SectionAccordion.vue.js";
7
+ import B from "../../HttpMethod/HttpMethod.vue.js";
8
+ import w from "../../Anchor/Anchor.vue.js";
9
+ import I from "./PathResponses/PathResponses.vue.js";
10
+ import N from "../../../features/ExampleRequest/ExampleRequest.vue.js";
11
+ import { useClipboard as R } from "../../../hooks/useClipboard.js";
12
+ import { HIDE_TEST_REQUEST_BUTTON_SYMBOL as V } from "../../../helpers/provideSymbols.js";
13
+ const g = { class: "endpoint-header" }, A = { class: "endpoint-details" }, D = { class: "endpoint-label" }, M = { class: "endpoint-label-path" }, O = { class: "endpoint-label-name" }, P = { class: "endpoint-content" }, X = /* @__PURE__ */ m({
13
14
  __name: "OperationAccordion",
14
15
  props: {
15
16
  id: {},
16
17
  operation: {}
17
18
  },
18
- setup(q) {
19
- const { copyToClipboard: d } = E();
20
- return (o, s) => (r(), p(e(k), {
19
+ setup(U) {
20
+ const { copyToClipboard: c } = R(), r = h(V);
21
+ return console.log(!(r != null && r())), (o, d) => (p(), s(e(T), {
21
22
  id: o.id,
22
23
  class: "reference-endpoint",
23
24
  transparent: ""
24
- }, c({
25
+ }, f({
25
26
  title: i(() => [
26
- n("h3", R, [
27
- n("div", g, [
28
- t(e(C), {
27
+ n("h3", g, [
28
+ n("div", A, [
29
+ t(e(B), {
29
30
  class: "endpoint-type",
30
31
  method: o.operation.httpVerb,
31
32
  short: ""
32
33
  }, null, 8, ["method"]),
33
- t(e(S), {
34
+ t(e(w), {
34
35
  id: o.id ?? "",
35
36
  class: "endpoint-anchor"
36
37
  }, {
37
38
  default: i(() => {
38
39
  var a;
39
40
  return [
40
- n("div", A, [
41
- n("div", I, [
42
- t(_, {
41
+ n("div", D, [
42
+ n("div", M, [
43
+ t(k, {
43
44
  deprecated: (a = o.operation.information) == null ? void 0 : a.deprecated,
44
45
  path: o.operation.path
45
46
  }, null, 8, ["deprecated", "path"])
46
47
  ]),
47
- n("div", P, m(o.operation.name), 1)
48
+ n("div", O, u(o.operation.name), 1)
48
49
  ])
49
50
  ];
50
51
  }),
@@ -53,30 +54,33 @@ const R = { class: "endpoint-header" }, g = { class: "endpoint-details" }, A = {
53
54
  ])
54
55
  ])
55
56
  ]),
56
- actions: i(({ active: a }) => [
57
- a ? (r(), p(b, {
58
- key: 0,
59
- operation: o.operation
60
- }, null, 8, ["operation"])) : (r(), p(e(f), {
61
- key: 1,
62
- class: "endpoint-try-hint",
63
- icon: "Play",
64
- thickness: "1.75px"
65
- })),
66
- t(e(u), {
67
- class: "endpoint-copy",
68
- icon: "Clipboard",
69
- label: "Copy endpoint URL",
70
- size: "xs",
71
- variant: "ghost",
72
- onClick: s[0] || (s[0] = h((D) => e(d)(o.operation.path), ["stop"]))
73
- })
74
- ]),
57
+ actions: i(({ active: a }) => {
58
+ var l;
59
+ return [
60
+ a ? (p(), s(E, {
61
+ key: 0,
62
+ operation: o.operation
63
+ }, null, 8, ["operation"])) : (l = e(r)) != null && l() ? _("", !0) : (p(), s(e(y), {
64
+ key: 1,
65
+ class: "endpoint-try-hint",
66
+ icon: "Play",
67
+ thickness: "1.75px"
68
+ })),
69
+ t(e(C), {
70
+ class: "endpoint-copy",
71
+ icon: "Clipboard",
72
+ label: "Copy endpoint URL",
73
+ size: "xs",
74
+ variant: "ghost",
75
+ onClick: d[0] || (d[0] = v((L) => e(c)(o.operation.path), ["stop"]))
76
+ })
77
+ ];
78
+ }),
75
79
  default: i(() => [
76
- n("div", V, [
77
- t(y, { operation: o.operation }, null, 8, ["operation"]),
78
- t(e(w), { operation: o.operation }, null, 8, ["operation"]),
79
- t(e(B), { operation: o.operation }, null, 8, ["operation"])
80
+ n("div", P, [
81
+ t(b, { operation: o.operation }, null, 8, ["operation"]),
82
+ t(e(I), { operation: o.operation }, null, 8, ["operation"]),
83
+ t(e(N), { operation: o.operation }, null, 8, ["operation"])
80
84
  ])
81
85
  ]),
82
86
  _: 2
@@ -84,7 +88,7 @@ const R = { class: "endpoint-header" }, g = { class: "endpoint-details" }, A = {
84
88
  o.operation.description ? {
85
89
  name: "description",
86
90
  fn: i(() => [
87
- t(e(v), {
91
+ t(e(S), {
88
92
  value: o.operation.description,
89
93
  withImages: ""
90
94
  }, null, 8, ["value"])
@@ -95,5 +99,5 @@ const R = { class: "endpoint-header" }, g = { class: "endpoint-details" }, A = {
95
99
  }
96
100
  });
97
101
  export {
98
- H as default
102
+ X as default
99
103
  };
@@ -1,7 +1,7 @@
1
1
  import o from "./PathResponses.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-f7baab98"]]);
4
+ const r = /* @__PURE__ */ t(o, [["__scopeId", "data-v-b976599a"]]);
5
5
  export {
6
6
  r as default
7
7
  };
@@ -9,7 +9,7 @@ import q from "../../../Card/CardContent.vue.js";
9
9
  import G from "../../../Card/CardFooter.vue.js";
10
10
  import Q from "../../../../features/ExampleRequest/ExamplePicker.vue.js";
11
11
  import { useClipboard as X } from "../../../../hooks/useClipboard.js";
12
- const Y = (u) => (P("data-v-f7baab98"), u = u(), A(), u), Z = {
12
+ const Y = (u) => (P("data-v-b976599a"), u = u(), A(), u), Z = {
13
13
  key: 1,
14
14
  class: "scalar-card-checkbox"
15
15
  }, $ = /* @__PURE__ */ Y(() => /* @__PURE__ */ w("span", { class: "scalar-card-checkbox-checkmark" }, null, -1)), z = { class: "scalar-card-container custom-scroll" }, ee = {
@@ -1 +1 @@
1
- {"version":3,"file":"TestRequestButton.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/Content/Operation/TestRequestButton.vue"],"names":[],"mappings":"AAkEA,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,sBAAsB,CAAA;;eAOnD,oBAAoB;;eAApB,oBAAoB;;AA0EjC,wBAMG;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":"TestRequestButton.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/Content/Operation/TestRequestButton.vue"],"names":[],"mappings":"AAwEA,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,sBAAsB,CAAA;;eASnD,oBAAoB;;eAApB,oBAAoB;;AAkFjC,wBAMG;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 t from "./TestRequestButton.vue2.js";
2
2
  /* empty css */
3
3
  import o from "../../../_virtual/_plugin-vue_export-helper.js";
4
- const a = /* @__PURE__ */ o(t, [["__scopeId", "data-v-1dbecca0"]]);
4
+ const a = /* @__PURE__ */ o(t, [["__scopeId", "data-v-2e17b0a6"]]);
5
5
  export {
6
6
  a as default
7
7
  };
@@ -1,31 +1,39 @@
1
- import { defineComponent as n, openBlock as r, createElementBlock as s, withModifiers as i, unref as p, createVNode as a, pushScopeId as c, popScopeId as m, createElementVNode as d } from "vue";
2
- import { ScalarIcon as u } from "@scalar/components";
3
- import { apiClientBus as l } from "../../api-client-bus.js";
4
- const h = (e) => (c("data-v-1dbecca0"), e = e(), m(), e), f = ["method"], _ = /* @__PURE__ */ h(() => /* @__PURE__ */ d("span", null, "Test Request", -1)), V = /* @__PURE__ */ n({
1
+ import { defineComponent as a, inject as m, unref as o, openBlock as r, createElementBlock as s, withModifiers as c, createVNode as u, Fragment as d, createTextVNode as l, pushScopeId as h, popScopeId as _, createElementVNode as f } from "vue";
2
+ import { ScalarIcon as T } from "@scalar/components";
3
+ import { apiClientBus as B } from "../../api-client-bus.js";
4
+ import { HIDE_TEST_REQUEST_BUTTON_SYMBOL as S } from "../../../helpers/provideSymbols.js";
5
+ const b = (e) => (h("data-v-2e17b0a6"), e = e(), _(), e), E = ["method"], k = /* @__PURE__ */ b(() => /* @__PURE__ */ f("span", null, "Test Request", -1)), q = /* @__PURE__ */ a({
5
6
  __name: "TestRequestButton",
6
7
  props: {
7
8
  operation: {}
8
9
  },
9
10
  setup(e) {
10
- return (t, o) => (r(), s("button", {
11
- class: "show-api-client-button",
12
- method: t.operation.httpVerb,
13
- type: "button",
14
- onClick: o[0] || (o[0] = i((b) => p(l).emit({
15
- open: {
16
- path: t.operation.path,
17
- method: t.operation.httpVerb
18
- }
19
- }), ["stop"]))
20
- }, [
21
- a(p(u), {
22
- icon: "Play",
23
- size: "sm"
24
- }),
25
- _
26
- ], 8, f));
11
+ const i = m(S);
12
+ return (t, n) => {
13
+ var p;
14
+ return ((p = o(i)) == null ? void 0 : p()) !== !0 ? (r(), s("button", {
15
+ key: 0,
16
+ class: "show-api-client-button",
17
+ method: t.operation.httpVerb,
18
+ type: "button",
19
+ onClick: n[0] || (n[0] = c((I) => o(B).emit({
20
+ open: {
21
+ path: t.operation.path,
22
+ method: t.operation.httpVerb
23
+ }
24
+ }), ["stop"]))
25
+ }, [
26
+ u(o(T), {
27
+ icon: "Play",
28
+ size: "sm"
29
+ }),
30
+ k
31
+ ], 8, E)) : (r(), s(d, { key: 1 }, [
32
+ l(" ")
33
+ ], 64));
34
+ };
27
35
  }
28
36
  });
29
37
  export {
30
- V as default
38
+ q as default
31
39
  };
@@ -1,7 +1,7 @@
1
1
  import o from "./Schema.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-c0b2cb19"]]);
4
+ const p = /* @__PURE__ */ t(o, [["__scopeId", "data-v-24920b5a"]]);
5
5
  export {
6
- a as default
6
+ p as default
7
7
  };
@@ -2,9 +2,11 @@ import type { Tag } from '@scalar/types/legacy';
2
2
  declare const _default: import("vue").DefineComponent<__VLS_TypePropsToOption<{
3
3
  id?: string;
4
4
  tag: Tag;
5
+ isCollapsed?: boolean;
5
6
  }>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<__VLS_TypePropsToOption<{
6
7
  id?: string;
7
8
  tag: Tag;
9
+ isCollapsed?: boolean;
8
10
  }>>>, {}, {}>;
9
11
  export default _default;
10
12
  type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
@@ -1 +1 @@
1
- {"version":3,"file":"Endpoints.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/Content/Tag/Endpoints.vue"],"names":[],"mappings":"AAuHA,OAAO,KAAK,EAAE,GAAG,EAAwB,MAAM,sBAAsB,CAAA;;SAgBxC,MAAM;SAAO,GAAG;;SAAhB,MAAM;SAAO,GAAG;;AA2Q7C,wBAMG;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":"AAwHA,OAAO,KAAK,EAAE,GAAG,EAAwB,MAAM,sBAAsB,CAAA;;SAgBxC,MAAM;SAAO,GAAG;kBAAgB,OAAO;;SAAvC,MAAM;SAAO,GAAG;kBAAgB,OAAO;;AA2QpE,wBAMG;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 c = /* @__PURE__ */ t(o, [["__scopeId", "data-v-ccfa4910"]]);
4
+ const s = /* @__PURE__ */ t(o, [["__scopeId", "data-v-1d49b784"]]);
5
5
  export {
6
- c as default
6
+ s as default
7
7
  };
@@ -1,9 +1,9 @@
1
- import { defineComponent as v, openBlock as n, createBlock as s, unref as e, withCtx as o, createVNode as a, createTextVNode as c, toDisplayString as p, createElementVNode as u, createElementBlock as f, Fragment as y, renderList as N, normalizeClass as V, createCommentVNode as b } 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 B from "../../Section/SectionColumns.vue.js";
6
- import g from "../../Section/SectionColumn.vue.js";
1
+ import { defineComponent as y, openBlock as l, 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 C from "../../Section/SectionColumn.vue.js";
7
7
  import H from "../../Section/SectionHeader.vue.js";
8
8
  import T from "../../Anchor/Anchor.vue.js";
9
9
  import O from "../../Card/Card.vue.js";
@@ -12,27 +12,28 @@ import z from "../../Card/CardContent.vue.js";
12
12
  import A from "../../HttpMethod/HttpMethod.vue.js";
13
13
  import { useSidebar as D } from "../../../hooks/useSidebar.js";
14
14
  import { useNavState as F } from "../../../hooks/useNavState.js";
15
- const L = { class: "endpoints" }, M = ["onClick"], te = /* @__PURE__ */ v({
15
+ const L = { class: "endpoints" }, M = ["onClick"], te = /* @__PURE__ */ y({
16
16
  __name: "Endpoints",
17
17
  props: {
18
18
  id: {},
19
- tag: {}
19
+ tag: {},
20
+ isCollapsed: { type: Boolean }
20
21
  },
21
- setup(C) {
22
- const _ = C, { getOperationId: l, getTagId: h } = F(), { scrollToOperation: k } = D(), S = async (t) => {
23
- const d = l(t, _.tag);
24
- k(d);
22
+ setup(g) {
23
+ const _ = g, { getOperationId: n, getTagId: h } = F(), { scrollToOperation: k } = D(), S = async (t) => {
24
+ const s = n(t, _.tag);
25
+ k(s);
25
26
  };
26
- return (t, d) => (n(), s(e(I), {
27
+ return (t, s) => (l(), m(e(E), {
27
28
  id: t.id,
28
29
  label: t.tag.name.toUpperCase()
29
30
  }, {
30
31
  default: o(() => [
31
- a(e(w), null, {
32
+ a(e(I), null, {
32
33
  default: o(() => [
33
- a(e(B), null, {
34
+ a(e(w), null, {
34
35
  default: o(() => [
35
- a(e(g), null, {
36
+ a(e(C), null, {
36
37
  default: o(() => [
37
38
  a(e(H), { level: 2 }, {
38
39
  default: o(() => [
@@ -40,32 +41,33 @@ const L = { class: "endpoints" }, M = ["onClick"], te = /* @__PURE__ */ v({
40
41
  id: e(h)(t.tag)
41
42
  }, {
42
43
  default: o(() => [
43
- c(p(t.tag["x-displayName"] ?? t.tag.name), 1)
44
+ p(c(t.tag["x-displayName"] ?? t.tag.name), 1)
44
45
  ]),
45
46
  _: 1
46
47
  }, 8, ["id"])
47
48
  ]),
48
49
  _: 1
49
50
  }),
50
- a(e(E), {
51
+ a(e(B), {
52
+ isCollapsed: t.isCollapsed,
51
53
  value: t.tag.description,
52
54
  withImages: ""
53
- }, null, 8, ["value"])
55
+ }, null, 8, ["isCollapsed", "value"])
54
56
  ]),
55
57
  _: 1
56
58
  }),
57
- a(e(g), null, {
59
+ a(e(C), null, {
58
60
  default: o(() => {
59
- var i;
61
+ var d;
60
62
  return [
61
- ((i = t.tag.operations) == null ? void 0 : i.length) > 0 ? (n(), s(e(O), {
63
+ ((d = t.tag.operations) == null ? void 0 : d.length) > 0 ? (l(), m(e(O), {
62
64
  key: 0,
63
65
  class: "scalar-card-sticky"
64
66
  }, {
65
67
  default: o(() => [
66
68
  a(e($), { muted: "" }, {
67
69
  default: o(() => [
68
- c("Endpoints")
70
+ p("Endpoints")
69
71
  ]),
70
72
  _: 1
71
73
  }),
@@ -75,10 +77,10 @@ const L = { class: "endpoints" }, M = ["onClick"], te = /* @__PURE__ */ v({
75
77
  }, {
76
78
  default: o(() => [
77
79
  u("div", L, [
78
- (n(!0), f(y, null, N(t.tag.operations, (r) => {
79
- var m;
80
- return n(), f("a", {
81
- key: e(l)(r, t.tag),
80
+ (l(!0), f(v, null, N(t.tag.operations, (r) => {
81
+ var i;
82
+ return l(), f("a", {
83
+ key: e(n)(r, t.tag),
82
84
  class: "endpoint",
83
85
  onClick: (U) => S(r)
84
86
  }, [
@@ -86,8 +88,8 @@ const L = { class: "endpoints" }, M = ["onClick"], te = /* @__PURE__ */ v({
86
88
  method: r.httpVerb
87
89
  }, null, 8, ["method"]),
88
90
  u("span", {
89
- class: V({ deprecated: (m = r.information) == null ? void 0 : m.deprecated })
90
- }, p(r.path), 3)
91
+ class: V({ deprecated: (i = r.information) == null ? void 0 : i.deprecated })
92
+ }, c(r.path), 3)
91
93
  ], 8, M);
92
94
  }), 128))
93
95
  ])
@@ -1 +1 @@
1
- {"version":3,"file":"Tag.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/Content/Tag/Tag.vue"],"names":[],"mappings":"AAqDA,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;aA8GV,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":"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;aA8GV,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,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 p = /* @__PURE__ */ t(o, [["__scopeId", "data-v-ac369778"]]);
3
+ import a from "../../../_virtual/_plugin-vue_export-helper.js";
4
+ const m = /* @__PURE__ */ a(o, [["__scopeId", "data-v-f1a48b5a"]]);
5
5
  export {
6
- p as default
6
+ m as default
7
7
  };
@@ -1,40 +1,41 @@
1
- import { defineComponent as c, ref as f, computed as u, openBlock as r, createBlock as a, unref as i, withCtx as g, createCommentVNode as h, renderSlot as k } from "vue";
2
- import C from "../../ShowMoreButton.vue.js";
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
3
  import S from "./Endpoints.vue.js";
4
4
  import y from "../../Section/SectionContainer.vue.js";
5
5
  import { useSidebar as T } from "../../../hooks/useSidebar.js";
6
6
  import { useNavState as v } from "../../../hooks/useNavState.js";
7
- const _ = /* @__PURE__ */ c({
7
+ const D = /* @__PURE__ */ f({
8
8
  __name: "Tag",
9
9
  props: {
10
10
  id: {},
11
11
  tag: {},
12
12
  spec: {}
13
13
  },
14
- setup(s) {
15
- const o = s, d = f(null), { collapsedSidebarItems: l } = T(), { getTagId: m } = v(), p = u(
14
+ setup(d) {
15
+ const n = d, p = u(null), { collapsedSidebarItems: s } = T(), { getTagId: l } = v(), m = c(
16
16
  () => {
17
- var e, n, t;
18
- return ((e = o.spec.tags) == null ? void 0 : e.length) !== 1 || ((n = o.tag) == null ? void 0 : n.name) !== "default" || ((t = o.tag) == null ? void 0 : t.description) !== "";
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) !== "";
19
19
  }
20
20
  );
21
- return (e, n) => (r(), a(i(y), {
21
+ return (e, a) => (r(), i(o(y), {
22
22
  ref_key: "sectionContainerRef",
23
- ref: d,
23
+ ref: p,
24
24
  class: "tag-section-container"
25
25
  }, {
26
26
  default: g(() => {
27
27
  var t;
28
28
  return [
29
- p.value ? (r(), a(S, {
29
+ m.value ? (r(), i(S, {
30
30
  key: 0,
31
31
  id: e.id,
32
+ isCollapsed: o(s)[o(l)(e.tag)],
32
33
  tag: e.tag
33
- }, null, 8, ["id", "tag"])) : h("", !0),
34
- !i(l)[i(m)(e.tag)] && ((t = e.tag.operations) == null ? void 0 : t.length) > 1 ? (r(), a(C, {
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, {
35
36
  key: 1,
36
37
  id: e.id ?? ""
37
- }, null, 8, ["id"])) : k(e.$slots, "default", { key: 2 }, void 0, !0)
38
+ }, null, 8, ["id"])) : h(e.$slots, "default", { key: 2 }, void 0, !0)
38
39
  ];
39
40
  }),
40
41
  _: 3
@@ -42,5 +43,5 @@ const _ = /* @__PURE__ */ c({
42
43
  }
43
44
  });
44
45
  export {
45
- _ as default
46
+ D as default
46
47
  };
@@ -1 +1 @@
1
- {"version":3,"file":"Webhooks.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/Content/Webhooks/Webhooks.vue"],"names":[],"mappings":"AAuHA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,sBAAsB,CAAA;;cAiBxC,QAAQ;;cAAR,QAAQ;;AAkOpB,wBAMG;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":"Webhooks.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/Content/Webhooks/Webhooks.vue"],"names":[],"mappings":"AAwHA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,sBAAsB,CAAA;;cAiBxC,QAAQ;;cAAR,QAAQ;;AAgOpB,wBAMG;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 "./Webhooks.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-b5c5dcfc"]]);
4
+ const s = /* @__PURE__ */ t(o, [["__scopeId", "data-v-87687203"]]);
5
5
  export {
6
- m as default
6
+ s as default
7
7
  };