@scalar/api-reference 1.24.74 → 1.24.75

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 (36) hide show
  1. package/CHANGELOG.md +11 -0
  2. package/dist/browser/standalone.js +4171 -4141
  3. package/dist/browser/webpack-stats.json +1 -1
  4. package/dist/components/Content/Content.vue2.js +11 -11
  5. package/dist/components/Content/Operation/ContentTypeSelect.vue.d.ts +27 -0
  6. package/dist/components/Content/Operation/ContentTypeSelect.vue.d.ts.map +1 -0
  7. package/dist/components/Content/Operation/ContentTypeSelect.vue.js +7 -0
  8. package/dist/components/Content/Operation/ContentTypeSelect.vue2.js +41 -0
  9. package/dist/components/Content/Operation/EndpointDetails.vue.d.ts.map +1 -1
  10. package/dist/components/Content/Operation/EndpointDetails.vue.js +10 -7
  11. package/dist/components/Content/Operation/ParameterItem.vue.d.ts +5 -0
  12. package/dist/components/Content/Operation/ParameterItem.vue.d.ts.map +1 -1
  13. package/dist/components/Content/Operation/ParameterItem.vue.js +2 -2
  14. package/dist/components/Content/Operation/ParameterItem.vue2.js +54 -19
  15. package/dist/components/Content/Operation/Parameters.vue.d.ts +5 -0
  16. package/dist/components/Content/Operation/Parameters.vue.d.ts.map +1 -1
  17. package/dist/components/Content/Operation/Parameters.vue.js +2 -2
  18. package/dist/components/Content/Operation/Parameters.vue2.js +16 -14
  19. package/dist/components/Content/Tag/Tag.vue.d.ts.map +1 -1
  20. package/dist/components/Content/Tag/Tag.vue.js +1 -1
  21. package/dist/components/Content/Webhooks/Webhooks.vue.d.ts.map +1 -1
  22. package/dist/components/Content/Webhooks/Webhooks.vue.js +5 -76
  23. package/dist/components/Content/Webhooks/Webhooks.vue2.js +76 -2
  24. package/dist/components/Section/SectionContainer.vue.js +1 -1
  25. package/dist/components/ShowMoreButton.vue.d.ts.map +1 -1
  26. package/dist/components/ShowMoreButton.vue.js +1 -1
  27. package/dist/hooks/useReactiveSpec.d.ts +2 -0
  28. package/dist/hooks/useReactiveSpec.d.ts.map +1 -1
  29. package/dist/hooks/useResponses.d.ts +2 -1
  30. package/dist/hooks/useResponses.d.ts.map +1 -1
  31. package/dist/hooks/useResponses.js +12 -11
  32. package/dist/index.js +1 -1
  33. package/dist/legacy/stores/useOpenApiStore.d.ts +2 -0
  34. package/dist/legacy/stores/useOpenApiStore.d.ts.map +1 -1
  35. package/dist/style.css +1 -1
  36. package/package.json +8 -8
@@ -1,15 +1,15 @@
1
- import { defineComponent as O, computed as m, openBlock as r, createElementBlock as n, Fragment as c, createElementVNode as h, renderSlot as u, createVNode as l, unref as o, createBlock as s, withCtx as p, normalizeClass as T, renderList as k, resolveDynamicComponent as L, createCommentVNode as $, createStaticVNode as E } from "vue";
1
+ import { defineComponent as O, computed as m, openBlock as r, createElementBlock as n, Fragment as c, createElementVNode as h, renderSlot as u, createVNode as l, unref as o, createBlock as s, withCtx as p, normalizeClass as T, renderList as k, resolveDynamicComponent as L, createCommentVNode as C, createStaticVNode as E } from "vue";
2
2
  import R from "./Tag/TagAccordion.vue.js";
3
- import D from "./Tag/Tag.vue.js";
4
- import F from "./Operation/OperationAccordion.vue.js";
5
- import W from "./Operation/Operation.vue.js";
3
+ import W from "./Tag/Tag.vue.js";
4
+ import D from "./Operation/OperationAccordion.vue.js";
5
+ import F from "./Operation/Operation.vue.js";
6
6
  import j from "./Lazy/Loading.vue.js";
7
7
  /* empty css */
8
8
  import q from "./Introduction/Introduction.vue.js";
9
9
  import G from "../../features/BaseUrl/BaseUrl.vue.js";
10
10
  import H from "./Authentication/Authentication.vue.js";
11
11
  import J from "./ClientLibraries/ClientLibraries.vue.js";
12
- import C from "./Lazy/Lazy.vue.js";
12
+ import $ from "./Lazy/Lazy.vue.js";
13
13
  import K from "./Webhooks/Webhooks.vue.js";
14
14
  import P from "./Models/ModelsAccordion.vue.js";
15
15
  import Q from "./Models/Models.vue.js";
@@ -28,9 +28,9 @@ const _ = /* @__PURE__ */ E('<div class="section-flare" data-v-db9e3854><div cla
28
28
  },
29
29
  setup(z) {
30
30
  const i = z, { getOperationId: f, getTagId: d, hash: I } = Z(), { hideModels: M, collapsedSidebarItems: N } = X(), V = m(
31
- () => i.layout === "accordion" ? R : D
31
+ () => i.layout === "accordion" ? R : W
32
32
  ), A = m(
33
- () => i.layout === "accordion" ? F : W
33
+ () => i.layout === "accordion" ? D : F
34
34
  ), U = m(
35
35
  () => i.layout === "accordion" ? "after" : "aside"
36
36
  ), g = i.layout !== "accordion" && !I.value.startsWith("model");
@@ -69,7 +69,7 @@ const _ = /* @__PURE__ */ E('<div class="section-flare" data-v-db9e3854><div cla
69
69
  ]),
70
70
  _: 2
71
71
  }, 1032, ["info", "parsedSpec"])) : u(e.$slots, "empty-state", { key: 1 }, void 0, !0),
72
- (r(!0), n(c, null, k(e.parsedSpec.tags, (a) => (r(), s(o(C), {
72
+ (r(!0), n(c, null, k(e.parsedSpec.tags, (a) => (r(), s(o($), {
73
73
  id: o(d)(a),
74
74
  key: o(d)(a),
75
75
  isLazy: o(g) && !o(N)[o(d)(a)]
@@ -81,7 +81,7 @@ const _ = /* @__PURE__ */ E('<div class="section-flare" data-v-db9e3854><div cla
81
81
  tag: a
82
82
  }, {
83
83
  default: p(() => [
84
- (r(!0), n(c, null, k(a.operations, (t, B) => (r(), s(o(C), {
84
+ (r(!0), n(c, null, k(a.operations, (t, B) => (r(), s(o($), {
85
85
  id: o(f)(t, a),
86
86
  key: `${t.httpVerb}-${t.operationId}`,
87
87
  isLazy: B > 0
@@ -104,7 +104,7 @@ const _ = /* @__PURE__ */ E('<div class="section-flare" data-v-db9e3854><div cla
104
104
  e.parsedSpec.webhooks ? (r(), s(o(K), {
105
105
  key: 2,
106
106
  webhooks: e.parsedSpec.webhooks
107
- }, null, 8, ["webhooks"])) : $("", !0),
107
+ }, null, 8, ["webhooks"])) : C("", !0),
108
108
  o(Y)(e.parsedSpec) && !o(M) ? (r(), n(c, { key: 3 }, [
109
109
  e.layout === "accordion" ? (r(), s(o(P), {
110
110
  key: 0,
@@ -113,7 +113,7 @@ const _ = /* @__PURE__ */ E('<div class="section-flare" data-v-db9e3854><div cla
113
113
  key: 1,
114
114
  schemas: o(w)(e.parsedSpec)
115
115
  }, null, 8, ["schemas"]))
116
- ], 64)) : $("", !0),
116
+ ], 64)) : C("", !0),
117
117
  u(e.$slots, "end", {}, void 0, !0)
118
118
  ])
119
119
  ], 64);
@@ -0,0 +1,27 @@
1
+ import type { ContentType, RequestBody } from '@scalar/oas-utils';
2
+ declare const _default: import("vue").DefineComponent<__VLS_TypePropsToOption<{
3
+ requestBody?: RequestBody;
4
+ defaultValue?: ContentType;
5
+ }>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
6
+ selectContentType: (payload: {
7
+ contentType: ContentType;
8
+ }) => void;
9
+ }, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<__VLS_TypePropsToOption<{
10
+ requestBody?: RequestBody;
11
+ defaultValue?: ContentType;
12
+ }>>> & {
13
+ onSelectContentType?: ((payload: {
14
+ contentType: ContentType;
15
+ }) => any) | undefined;
16
+ }, {}, {}>;
17
+ export default _default;
18
+ type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
19
+ type __VLS_TypePropsToOption<T> = {
20
+ [K in keyof T]-?: {} extends Pick<T, K> ? {
21
+ type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
22
+ } : {
23
+ type: import('vue').PropType<T[K]>;
24
+ required: true;
25
+ };
26
+ };
27
+ //# sourceMappingURL=ContentTypeSelect.vue.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ContentTypeSelect.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/Content/Operation/ContentTypeSelect.vue"],"names":[],"mappings":"AAgHA,OAAO,KAAK,EAAE,WAAW,EAAE,WAAW,EAAE,MAAM,mBAAmB,CAAA;;kBAMjD,WAAW;mBACV,WAAW;;;qBAIuB,WAAW;;;kBAL9C,WAAW;mBACV,WAAW;;;qBAIuB,WAAW;;;AA0F9D,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"}
@@ -0,0 +1,7 @@
1
+ import t from "./ContentTypeSelect.vue2.js";
2
+ /* empty css */
3
+ import o from "../../../_virtual/_plugin-vue_export-helper.js";
4
+ const a = /* @__PURE__ */ o(t, [["__scopeId", "data-v-1b6c95ea"]]);
5
+ export {
6
+ a as default
7
+ };
@@ -0,0 +1,41 @@
1
+ import { defineComponent as v, computed as g, ref as C, openBlock as o, createElementBlock as l, normalizeClass as f, createElementVNode as _, toDisplayString as d, Fragment as B, renderList as h, createCommentVNode as T } from "vue";
2
+ const q = ["value"], V = ["value"], k = /* @__PURE__ */ v({
3
+ __name: "ContentTypeSelect",
4
+ props: {
5
+ requestBody: {},
6
+ defaultValue: {}
7
+ },
8
+ emits: ["selectContentType"],
9
+ setup(p, { emit: i }) {
10
+ const e = p, m = i, y = (t) => {
11
+ const n = t.target.value;
12
+ a.value = n, m("selectContentType", { contentType: n });
13
+ }, s = g(() => {
14
+ var t;
15
+ return (t = e.requestBody) != null && t.content ? Object.keys(e.requestBody.content) : [];
16
+ }), a = C(
17
+ e.defaultValue || s.value[0]
18
+ );
19
+ return (t, c) => {
20
+ var n;
21
+ return o(), l("div", {
22
+ class: f(["content-type-select", { "content-type-no-select": s.value.length <= 1 }])
23
+ }, [
24
+ _("span", null, d(a.value), 1),
25
+ e != null && e.requestBody && s.value.length > 1 ? (o(), l("select", {
26
+ key: 0,
27
+ value: a.value,
28
+ onChange: c[0] || (c[0] = (r) => y(r))
29
+ }, [
30
+ (o(!0), l(B, null, h((n = e.requestBody) == null ? void 0 : n.content, (r, u) => (o(), l("option", {
31
+ key: u,
32
+ value: u
33
+ }, d(u), 9, V))), 128))
34
+ ], 40, q)) : T("", !0)
35
+ ], 2);
36
+ };
37
+ }
38
+ });
39
+ export {
40
+ k as default
41
+ };
@@ -1 +1 @@
1
- {"version":3,"file":"EndpointDetails.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/Content/Operation/EndpointDetails.vue"],"names":[],"mappings":"AAoDA,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,mBAAmB,CAAA;;eAQ1B,oBAAoB;;eAApB,oBAAoB;;AA8JvD,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":"EndpointDetails.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/Content/Operation/EndpointDetails.vue"],"names":[],"mappings":"AAsDA,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,mBAAmB,CAAA;;eAQ1B,oBAAoB;;eAApB,oBAAoB;;AA8JvD,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"}
@@ -4,15 +4,15 @@ import o from "./Parameters.vue.js";
4
4
  import q from "./RequestBody.vue.js";
5
5
  import { useResponses as k } from "../../../hooks/useResponses.js";
6
6
  import { useOperation as P } from "../../../hooks/useOperation.js";
7
- const v = { class: "endpoint-details" }, w = { class: "endpoint-description" }, b = /* @__PURE__ */ u({
7
+ const v = { class: "endpoint-details" }, w = { class: "endpoint-description" }, I = /* @__PURE__ */ u({
8
8
  __name: "EndpointDetails",
9
9
  props: {
10
10
  operation: {}
11
11
  },
12
12
  setup(l) {
13
- const n = l, { parameterMap: s } = P(n), { responses: c } = k(n.operation);
13
+ const m = l, { parameterMap: s } = P(m), { responses: c } = k(m.operation);
14
14
  return (p, C) => {
15
- var i, m;
15
+ var n, i;
16
16
  return d(), _("div", v, [
17
17
  f("div", w, [
18
18
  e(t(B), {
@@ -61,16 +61,19 @@ const v = { class: "endpoint-details" }, w = { class: "endpoint-description" },
61
61
  ]),
62
62
  _: 1
63
63
  }, 8, ["parameters"]),
64
- (i = p.operation.information) != null && i.requestBody ? (d(), y(q, {
64
+ (n = p.operation.information) != null && n.requestBody ? (d(), y(q, {
65
65
  key: 0,
66
- requestBody: (m = p.operation.information) == null ? void 0 : m.requestBody
66
+ requestBody: (i = p.operation.information) == null ? void 0 : i.requestBody
67
67
  }, {
68
68
  title: r(() => [
69
69
  a("Body")
70
70
  ]),
71
71
  _: 1
72
72
  }, 8, ["requestBody"])) : h("", !0),
73
- e(o, { parameters: t(c) }, {
73
+ e(o, {
74
+ collapsableItems: !0,
75
+ parameters: t(c)
76
+ }, {
74
77
  title: r(() => [
75
78
  a("Responses")
76
79
  ]),
@@ -81,5 +84,5 @@ const v = { class: "endpoint-details" }, w = { class: "endpoint-description" },
81
84
  }
82
85
  });
83
86
  export {
84
- b as default
87
+ I as default
85
88
  };
@@ -2,15 +2,20 @@ import type { Parameters } from '@scalar/oas-utils';
2
2
  declare const _default: import("vue").DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToOption<{
3
3
  parameter: Parameters;
4
4
  showChildren?: boolean;
5
+ collapsableItems?: boolean;
5
6
  }>, {
6
7
  showChildren: boolean;
8
+ collapsableItems: boolean;
7
9
  }>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToOption<{
8
10
  parameter: Parameters;
9
11
  showChildren?: boolean;
12
+ collapsableItems?: boolean;
10
13
  }>, {
11
14
  showChildren: boolean;
15
+ collapsableItems: boolean;
12
16
  }>>>, {
13
17
  showChildren: boolean;
18
+ collapsableItems: boolean;
14
19
  }, {}>;
15
20
  export default _default;
16
21
  type __VLS_WithDefaults<P, D> = {
@@ -1 +1 @@
1
- {"version":3,"file":"ParameterItem.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/Content/Operation/ParameterItem.vue"],"names":[],"mappings":"AA+EA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,mBAAmB,CAAA;;eAMhB,UAAU;mBAAiB,OAAO;;;;eAAlC,UAAU;mBAAiB,OAAO;;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CAAC,CAAC,EAAE,CAAC,IAAI;KAC1B,CAAC,IAAI,MAAM,IAAI,CAAC,CAAC,EAAE,MAAM,CAAC,CAAC,GAAG,CAAC,SAAS,MAAM,CAAC,GAC7C,cAAc,CAAC,CAAC,CAAC,CAAC,CAAC,GAAG;QAAE,OAAO,EAAE,CAAC,CAAC,CAAC,CAAC,CAAA;KAAC,CAAC,GACvC,CAAC,CAAC,CAAC,CAAC;CACP,CAAC;AAEN,KAAK,cAAc,CAAC,CAAC,IAAI;KAAG,CAAC,IAAI,MAAM,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;CAAG,GAAG,EAAE,CAAC;AAExD,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 "./ParameterItem.vue2.js";
2
2
  /* empty css */
3
3
  import o from "../../../_virtual/_plugin-vue_export-helper.js";
4
- const e = /* @__PURE__ */ o(t, [["__scopeId", "data-v-1d97f100"]]);
4
+ const a = /* @__PURE__ */ o(t, [["__scopeId", "data-v-decfd300"]]);
5
5
  export {
6
- e as default
6
+ a as default
7
7
  };
@@ -1,27 +1,62 @@
1
- import { defineComponent as r, openBlock as a, createElementBlock as o, createElementVNode as t, createVNode as n, unref as m } from "vue";
2
- import l from "../Schema/SchemaProperty.vue.js";
3
- const p = { class: "parameter-item" }, i = { class: "parameter-item-container" }, h = /* @__PURE__ */ r({
1
+ import { defineComponent as B, ref as u, computed as d, openBlock as l, createElementBlock as s, normalizeClass as g, createVNode as v, unref as f, createElementVNode as y, toDisplayString as h, createBlock as b, createCommentVNode as m } from "vue";
2
+ import { ScalarIcon as q } from "@scalar/components";
3
+ import w from "./ContentTypeSelect.vue.js";
4
+ import I from "../Schema/SchemaProperty.vue.js";
5
+ const S = { class: "parameter-item" }, V = { class: "parameter-item-name" }, T = { class: "parameter-item-type" }, j = {
6
+ key: 1,
7
+ class: "parameter-item-container parameter-item-container-markdown"
8
+ }, P = /* @__PURE__ */ B({
4
9
  __name: "ParameterItem",
5
10
  props: {
6
11
  parameter: {},
7
- showChildren: { type: Boolean, default: !1 }
12
+ showChildren: { type: Boolean, default: !1 },
13
+ collapsableItems: { type: Boolean, default: !1 }
8
14
  },
9
- setup(s) {
10
- return (e, c) => (a(), o("li", p, [
11
- t("div", i, [
12
- n(m(l), {
13
- compact: "",
14
- description: e.parameter.description,
15
- level: 0,
16
- name: e.parameter.name,
17
- noncollapsible: e.showChildren,
18
- required: e.parameter.required,
19
- value: e.parameter.schema
20
- }, null, 8, ["description", "name", "noncollapsible", "required", "value"])
21
- ])
22
- ]));
15
+ setup(C) {
16
+ const t = C, r = u(!1), k = d(() => t.parameter.content ? Object.keys(t.parameter.content) : []), n = u(
17
+ k.value[0]
18
+ );
19
+ t.parameter.content && "application/json" in t.parameter.content && (n.value = "application/json");
20
+ const a = d(() => t.collapsableItems && t.parameter.content);
21
+ return (e, o) => {
22
+ var p, i;
23
+ return l(), s("li", S, [
24
+ a.value ? (l(), s("div", {
25
+ key: 0,
26
+ class: g(["flex parameter-item-trigger", { "parameter-item-trigger-open": r.value }]),
27
+ onClick: o[1] || (o[1] = (c) => r.value = !r.value)
28
+ }, [
29
+ v(f(q), {
30
+ class: "parameter-item-icon",
31
+ icon: r.value ? "ChevronDown" : "ChevronRight",
32
+ size: "md",
33
+ thickness: "1.75"
34
+ }, null, 8, ["icon"]),
35
+ y("span", V, h(e.parameter.name), 1),
36
+ y("span", T, h(e.parameter.description), 1),
37
+ a.value && t.parameter.content ? (l(), b(w, {
38
+ key: 0,
39
+ class: "parameter-item-content-type",
40
+ defaultValue: n.value,
41
+ requestBody: t.parameter,
42
+ onSelectContentType: o[0] || (o[0] = ({ contentType: c }) => n.value = c)
43
+ }, null, 8, ["defaultValue", "requestBody"])) : m("", !0)
44
+ ], 2)) : m("", !0),
45
+ a.value && r.value || !a.value ? (l(), s("div", j, [
46
+ v(f(I), {
47
+ compact: "",
48
+ description: a.value ? "" : e.parameter.description,
49
+ level: 0,
50
+ name: a.value ? "" : e.parameter.name,
51
+ noncollapsible: e.showChildren,
52
+ required: e.parameter.required,
53
+ value: e.parameter.content ? (i = (p = e.parameter.content) == null ? void 0 : p[n.value]) == null ? void 0 : i.schema : e.parameter.schema
54
+ }, null, 8, ["description", "name", "noncollapsible", "required", "value"])
55
+ ])) : m("", !0)
56
+ ]);
57
+ };
23
58
  }
24
59
  });
25
60
  export {
26
- h as default
61
+ P as default
27
62
  };
@@ -5,15 +5,20 @@ declare function __VLS_template(): {
5
5
  declare const __VLS_component: import("vue").DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToOption<{
6
6
  parameters?: Parameters[];
7
7
  showChildren?: boolean;
8
+ collapsableItems?: boolean;
8
9
  }>, {
9
10
  showChildren: boolean;
11
+ collapsableItems: boolean;
10
12
  }>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToOption<{
11
13
  parameters?: Parameters[];
12
14
  showChildren?: boolean;
15
+ collapsableItems?: boolean;
13
16
  }>, {
14
17
  showChildren: boolean;
18
+ collapsableItems: boolean;
15
19
  }>>>, {
16
20
  showChildren: boolean;
21
+ collapsableItems: boolean;
17
22
  }, {}>;
18
23
  declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, ReturnType<typeof __VLS_template>>;
19
24
  export default _default;
@@ -1 +1 @@
1
- {"version":3,"file":"Parameters.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/Content/Operation/Parameters.vue"],"names":[],"mappings":"AAoDA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,mBAAmB,CAAA;AAsBnD,iBAAS,cAAc;mBA0CI,GAAG;EAe7B;AACD,QAAA,MAAM,eAAe;iBA1EgB,UAAU,EAAE;mBAAiB,OAAO;;;;iBAApC,UAAU,EAAE;mBAAiB,OAAO;;;;kBAAP,OAAO;MAgFvE,CAAC;wBACkB,uBAAuB,CAAC,OAAO,eAAe,EAAE,UAAU,CAAC,OAAO,cAAc,CAAC,CAAC;AAAvG,wBAAwG;AAOxG,KAAK,kBAAkB,CAAC,CAAC,EAAE,CAAC,IAAI;KAC1B,CAAC,IAAI,MAAM,IAAI,CAAC,CAAC,EAAE,MAAM,CAAC,CAAC,GAAG,CAAC,SAAS,MAAM,CAAC,GAC7C,cAAc,CAAC,CAAC,CAAC,CAAC,CAAC,GAAG;QAAE,OAAO,EAAE,CAAC,CAAC,CAAC,CAAC,CAAA;KAAC,CAAC,GACvC,CAAC,CAAC,CAAC,CAAC;CACP,CAAC;AAEN,KAAK,cAAc,CAAC,CAAC,IAAI;KAAG,CAAC,IAAI,MAAM,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;CAAG,GAAG,EAAE,CAAC;AAExD,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,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pC,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 "./Parameters.vue2.js";
2
2
  /* empty css */
3
3
  import r from "../../../_virtual/_plugin-vue_export-helper.js";
4
- const c = /* @__PURE__ */ r(o, [["__scopeId", "data-v-cd6f76c7"]]);
4
+ const m = /* @__PURE__ */ r(o, [["__scopeId", "data-v-425e9f7e"]]);
5
5
  export {
6
- c as default
6
+ m as default
7
7
  };
@@ -1,32 +1,34 @@
1
- import { defineComponent as n, openBlock as r, createElementBlock as s, createElementVNode as o, renderSlot as l, Fragment as m, renderList as p, createBlock as d, createCommentVNode as i } from "vue";
2
- import c from "./ParameterItem.vue.js";
1
+ import { defineComponent as o, openBlock as t, createElementBlock as l, createElementVNode as s, renderSlot as n, Fragment as m, renderList as p, createBlock as d, createCommentVNode as c } from "vue";
2
+ import i from "./ParameterItem.vue.js";
3
3
  const h = {
4
4
  key: 0,
5
5
  class: "parameters"
6
- }, u = { class: "parameters-title" }, _ = { class: "parameter-list" }, B = /* @__PURE__ */ n({
6
+ }, u = { class: "parameters-title" }, f = { class: "parameter-list" }, I = /* @__PURE__ */ o({
7
7
  __name: "Parameters",
8
8
  props: {
9
9
  parameters: {},
10
- showChildren: { type: Boolean, default: !1 }
10
+ showChildren: { type: Boolean, default: !1 },
11
+ collapsableItems: { type: Boolean, default: !1 }
11
12
  },
12
- setup(f) {
13
+ setup(_) {
13
14
  return (e, C) => {
14
- var t;
15
- return (t = e.parameters) != null && t.length ? (r(), s("div", h, [
16
- o("div", u, [
17
- l(e.$slots, "title", {}, void 0, !0)
15
+ var r;
16
+ return (r = e.parameters) != null && r.length ? (t(), l("div", h, [
17
+ s("div", u, [
18
+ n(e.$slots, "title", {}, void 0, !0)
18
19
  ]),
19
- o("ul", _, [
20
- (r(!0), s(m, null, p(e.parameters, (a) => (r(), d(c, {
20
+ s("ul", f, [
21
+ (t(!0), l(m, null, p(e.parameters, (a) => (t(), d(i, {
21
22
  key: a.name,
23
+ collapsableItems: e.collapsableItems,
22
24
  parameter: a,
23
25
  showChildren: e.showChildren
24
- }, null, 8, ["parameter", "showChildren"]))), 128))
26
+ }, null, 8, ["collapsableItems", "parameter", "showChildren"]))), 128))
25
27
  ])
26
- ])) : i("", !0);
28
+ ])) : c("", !0);
27
29
  };
28
30
  }
29
31
  });
30
32
  export {
31
- B as default
33
+ I as default
32
34
  };
@@ -1 +1 @@
1
- {"version":3,"file":"Tag.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/Content/Tag/Tag.vue"],"names":[],"mappings":"AA+EA,OAAO,KAAK,EAAE,IAAI,EAAE,GAAG,EAAE,MAAM,mBAAmB,CAAA;AA8DlD,iBAAS,cAAc;qBA0EO,GAAG;EAsBhC;AACD,QAAA,MAAM,eAAe;SAnJd,MAAM;SACN,GAAG;UACF,IAAI;;SAFL,MAAM;SACN,GAAG;UACF,IAAI;aAuJV,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;IAC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C,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
3
  import t from "../../../_virtual/_plugin-vue_export-helper.js";
4
- const m = /* @__PURE__ */ t(o, [["__scopeId", "data-v-b0022b7f"]]);
4
+ const m = /* @__PURE__ */ t(o, [["__scopeId", "data-v-8ef9660c"]]);
5
5
  export {
6
6
  m as default
7
7
  };
@@ -1 +1 @@
1
- {"version":3,"file":"Webhooks.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/Content/Webhooks/Webhooks.vue"],"names":[],"mappings":"AAiEA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,mBAAmB,CAAA;;cAiBrC,QAAQ;;cAAR,QAAQ;;AAoKpB,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":"AAsEA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,mBAAmB,CAAA;;cAiBrC,QAAQ;;cAAR,QAAQ;;AAuKpB,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,78 +1,7 @@
1
- import { defineComponent as v, computed as S, openBlock as r, createBlock as i, unref as o, withCtx as n, createElementBlock as s, Fragment as u, renderList as b, createVNode as a, createTextVNode as g, toDisplayString as C, createCommentVNode as d, createElementVNode as N } from "vue";
2
- import { ScalarMarkdown as B } from "@scalar/components";
3
- import j from "./Webhook.vue.js";
4
- import E from "../../Section/SectionContainer.vue.js";
5
- import I from "../../Section/Section.vue.js";
6
- import O from "../../Section/SectionContent.vue.js";
7
- import W from "../../Section/SectionHeader.vue.js";
8
- import A from "../../Anchor/Anchor.vue.js";
9
- import { useNavState as D } from "../../../hooks/useNavState.js";
10
- const F = /* @__PURE__ */ N("div", { id: "webhooks" }, null, -1), P = /* @__PURE__ */ v({
11
- __name: "Webhooks",
12
- props: {
13
- webhooks: {}
14
- },
15
- setup(y) {
16
- const _ = y, k = S(() => Object.keys(_.webhooks ?? {})), { getWebhookId: c } = D();
17
- return (l, H) => k.value.length ? (r(), i(o(E), { key: 0 }, {
18
- default: n(() => [
19
- F,
20
- (r(!0), s(u, null, b(k.value, (e) => {
21
- var m;
22
- return r(), s(u, { key: e }, [
23
- (r(!0), s(u, null, b(Object.keys(
24
- (m = l.webhooks) == null ? void 0 : m[e]
25
- ), (t) => (r(), i(o(I), {
26
- id: o(c)(e, t),
27
- key: t,
28
- label: e
29
- }, {
30
- default: n(() => {
31
- var f;
32
- return [
33
- (f = l.webhooks) != null && f[e] ? (r(), i(o(O), { key: 0 }, {
34
- default: n(() => {
35
- var p, w;
36
- return [
37
- a(o(W), { level: 2 }, {
38
- default: n(() => [
39
- a(o(A), {
40
- id: o(c)(e, t)
41
- }, {
42
- default: n(() => {
43
- var h;
44
- return [
45
- g(C((h = l.webhooks[e][t]) == null ? void 0 : h.name), 1)
46
- ];
47
- }),
48
- _: 2
49
- }, 1032, ["id"])
50
- ]),
51
- _: 2
52
- }, 1024),
53
- (p = l.webhooks[e][t]) != null && p.description ? (r(), i(o(B), {
54
- key: 0,
55
- value: (w = l.webhooks[e][t]) == null ? void 0 : w.description,
56
- withImages: ""
57
- }, null, 8, ["value"])) : d("", !0),
58
- a(j, {
59
- webhook: l.webhooks[e][t]
60
- }, null, 8, ["webhook"])
61
- ];
62
- }),
63
- _: 2
64
- }, 1024)) : d("", !0)
65
- ];
66
- }),
67
- _: 2
68
- }, 1032, ["id", "label"]))), 128))
69
- ], 64);
70
- }), 128))
71
- ]),
72
- _: 1
73
- })) : d("", !0);
74
- }
75
- });
1
+ import o from "./Webhooks.vue2.js";
2
+ /* empty css */
3
+ import t from "../../../_virtual/_plugin-vue_export-helper.js";
4
+ const m = /* @__PURE__ */ t(o, [["__scopeId", "data-v-f1eb04ed"]]);
76
5
  export {
77
- P as default
6
+ m as default
78
7
  };
@@ -1,4 +1,78 @@
1
- import f from "./Webhooks.vue.js";
1
+ import { defineComponent as y, computed as v, openBlock as r, createBlock as s, unref as o, withCtx as n, createElementBlock as d, Fragment as u, renderList as S, createVNode as c, createTextVNode as g, toDisplayString as C, createCommentVNode as a, pushScopeId as I, popScopeId as N, createElementVNode as B } from "vue";
2
+ import { ScalarMarkdown as j } from "@scalar/components";
3
+ import E from "./Webhook.vue.js";
4
+ import O from "../../Section/SectionContainer.vue.js";
5
+ import W from "../../Section/Section.vue.js";
6
+ import A from "../../Section/SectionContent.vue.js";
7
+ import D from "../../Section/SectionHeader.vue.js";
8
+ import F from "../../Anchor/Anchor.vue.js";
9
+ import { useNavState as H } from "../../../hooks/useNavState.js";
10
+ const K = (l) => (I("data-v-f1eb04ed"), l = l(), N(), l), L = /* @__PURE__ */ K(() => /* @__PURE__ */ B("div", { id: "webhooks" }, null, -1)), U = /* @__PURE__ */ y({
11
+ __name: "Webhooks",
12
+ props: {
13
+ webhooks: {}
14
+ },
15
+ setup(l) {
16
+ const _ = l, k = v(() => Object.keys(_.webhooks ?? {})), { getWebhookId: m } = H();
17
+ return (i, M) => k.value.length ? (r(), s(o(O), { key: 0 }, {
18
+ default: n(() => [
19
+ L,
20
+ (r(!0), d(u, null, S(k.value, (e) => {
21
+ var p;
22
+ return r(), d(u, { key: e }, [
23
+ (r(!0), d(u, null, S(Object.keys(
24
+ (p = i.webhooks) == null ? void 0 : p[e]
25
+ ), (t) => (r(), s(o(W), {
26
+ id: o(m)(e, t),
27
+ key: t,
28
+ label: e
29
+ }, {
30
+ default: n(() => {
31
+ var f;
32
+ return [
33
+ (f = i.webhooks) != null && f[e] ? (r(), s(o(A), { key: 0 }, {
34
+ default: n(() => {
35
+ var h, w;
36
+ return [
37
+ c(o(D), { level: 2 }, {
38
+ default: n(() => [
39
+ c(o(F), {
40
+ id: o(m)(e, t)
41
+ }, {
42
+ default: n(() => {
43
+ var b;
44
+ return [
45
+ g(C((b = i.webhooks[e][t]) == null ? void 0 : b.name), 1)
46
+ ];
47
+ }),
48
+ _: 2
49
+ }, 1032, ["id"])
50
+ ]),
51
+ _: 2
52
+ }, 1024),
53
+ (h = i.webhooks[e][t]) != null && h.description ? (r(), s(o(j), {
54
+ key: 0,
55
+ value: (w = i.webhooks[e][t]) == null ? void 0 : w.description,
56
+ withImages: ""
57
+ }, null, 8, ["value"])) : a("", !0),
58
+ c(E, {
59
+ webhook: i.webhooks[e][t]
60
+ }, null, 8, ["webhook"])
61
+ ];
62
+ }),
63
+ _: 2
64
+ }, 1024)) : a("", !0)
65
+ ];
66
+ }),
67
+ _: 2
68
+ }, 1032, ["id", "label"]))), 128))
69
+ ], 64);
70
+ }), 128))
71
+ ]),
72
+ _: 1
73
+ })) : a("", !0);
74
+ }
75
+ });
2
76
  export {
3
- f as default
77
+ U as default
4
78
  };
@@ -7,7 +7,7 @@ function i(e, a) {
7
7
  n(e.$slots, "default", {}, void 0, !0)
8
8
  ]);
9
9
  }
10
- const l = /* @__PURE__ */ r(c, [["render", i], ["__scopeId", "data-v-34b26958"]]);
10
+ const l = /* @__PURE__ */ r(c, [["render", i], ["__scopeId", "data-v-823b8471"]]);
11
11
  export {
12
12
  l as default
13
13
  };
@@ -1 +1 @@
1
- {"version":3,"file":"ShowMoreButton.vue.d.ts","sourceRoot":"","sources":["../../src/components/ShowMoreButton.vue"],"names":[],"mappings":";QA8EM,MAAM;;QAAN,MAAM;;AAoEZ,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":"ShowMoreButton.vue.d.ts","sourceRoot":"","sources":["../../src/components/ShowMoreButton.vue"],"names":[],"mappings":";QAsEM,MAAM;;QAAN,MAAM;;AAmEZ,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"}