@scalar/api-reference 1.28.30 → 1.28.32

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 (101) hide show
  1. package/CHANGELOG.md +33 -0
  2. package/dist/blocks/constants.js +2 -4
  3. package/dist/browser/standalone.js +14161 -14196
  4. package/dist/browser/webpack-stats.json +1 -1
  5. package/dist/components/Anchor/Anchor.vue2.js +2 -2
  6. package/dist/components/ApiReference.vue.js +2 -2
  7. package/dist/components/ApiReferenceLayout.vue.d.ts.map +1 -1
  8. package/dist/components/ApiReferenceLayout.vue.js +2 -2
  9. package/dist/components/ApiReferenceLayout.vue2.js +17 -14
  10. package/dist/components/Badge/Badge.vue.js +2 -2
  11. package/dist/components/Card/Card.vue.js +2 -2
  12. package/dist/components/Card/CardContent.vue2.js +2 -2
  13. package/dist/components/Card/CardFooter.vue2.js +2 -2
  14. package/dist/components/Card/CardHeader.vue2.js +2 -2
  15. package/dist/components/Card/CardTab.vue2.js +2 -2
  16. package/dist/components/Card/CardTabHeader.vue2.js +6 -6
  17. package/dist/components/ClassicHeader.vue.js +2 -2
  18. package/dist/components/Content/ClientLibraries/ClientLibraries.vue2.js +1 -1
  19. package/dist/components/Content/ClientLibraries/ClientSelector.vue2.js +1 -1
  20. package/dist/components/Content/Content.vue2.js +1 -1
  21. package/dist/components/Content/Introduction/Description.vue2.js +5 -5
  22. package/dist/components/Content/Introduction/Introduction.vue2.js +15 -15
  23. package/dist/components/Content/Lazy/Loading.vue.js +7 -7
  24. package/dist/components/Content/Models/Models.vue2.js +7 -7
  25. package/dist/components/Content/Models/ModelsAccordion.vue2.js +13 -13
  26. package/dist/components/Content/Schema/Schema.vue2.js +1 -1
  27. package/dist/components/Content/Schema/SchemaDiscriminator.vue2.js +1 -1
  28. package/dist/components/Content/Schema/SchemaHeading.vue2.js +7 -7
  29. package/dist/components/Content/Schema/SchemaProperty.vue2.js +1 -1
  30. package/dist/components/Content/Schema/SchemaPropertyDetail.vue2.js +7 -7
  31. package/dist/components/Content/Schema/SchemaPropertyExamples.vue2.js +9 -9
  32. package/dist/components/Content/Schema/SchemaPropertyHeading.vue.d.ts +1 -4
  33. package/dist/components/Content/Schema/SchemaPropertyHeading.vue.d.ts.map +1 -1
  34. package/dist/components/Content/Schema/SchemaPropertyHeading.vue.js +1 -1
  35. package/dist/components/Content/Schema/SchemaPropertyHeading.vue2.js +148 -148
  36. package/dist/components/Content/Tag/OperationsList.vue2.js +5 -5
  37. package/dist/components/Content/Tag/OperationsListItem.vue2.js +9 -9
  38. package/dist/components/Content/Tag/Tag.vue.js +5 -5
  39. package/dist/components/Content/Tag/TagAccordion.vue2.js +4 -4
  40. package/dist/components/Content/Tag/TagList.vue.js +1 -1
  41. package/dist/components/Content/Tag/TagSection.vue2.js +1 -1
  42. package/dist/components/DocumentSelector/DocumentSelector.vue.js +5 -5
  43. package/dist/components/GettingStarted.vue2.js +3 -3
  44. package/dist/components/HttpMethod/HttpMethod.vue.js +2 -2
  45. package/dist/components/IntersectionObserver.vue.js +2 -2
  46. package/dist/components/Layouts/ClassicLayout.vue.js +5 -5
  47. package/dist/components/Layouts/Layouts.vue.js +2 -2
  48. package/dist/components/Layouts/ModernLayout.vue2.js +5 -5
  49. package/dist/components/LoadingSkeleton.vue2.js +2 -2
  50. package/dist/components/MobileHeader.vue2.js +5 -5
  51. package/dist/components/OperationPath.vue2.js +4 -4
  52. package/dist/components/ScreenReader.vue2.js +2 -2
  53. package/dist/components/Section/CompactSection.vue2.js +4 -4
  54. package/dist/components/Section/Section.vue2.js +2 -2
  55. package/dist/components/Section/SectionAccordion.vue2.js +1 -1
  56. package/dist/components/Section/SectionColumn.vue.js +2 -2
  57. package/dist/components/Section/SectionColumns.vue.js +2 -2
  58. package/dist/components/Section/SectionContainer.vue.js +2 -2
  59. package/dist/components/Section/SectionContainerAccordion.vue2.js +2 -2
  60. package/dist/components/Section/SectionContent.vue2.js +1 -1
  61. package/dist/components/Section/SectionHeader.vue2.js +1 -1
  62. package/dist/components/Section/SectionHeaderTag.vue2.js +2 -2
  63. package/dist/components/ShowMoreButton.vue2.js +2 -2
  64. package/dist/components/Sidebar/Sidebar.vue2.js +1 -1
  65. package/dist/components/Sidebar/SidebarElement.vue2.js +5 -5
  66. package/dist/components/Sidebar/SidebarGroup.vue2.js +2 -2
  67. package/dist/components/Sidebar/SidebarHttpBadge.vue2.js +2 -2
  68. package/dist/components/SingleApiReference.vue.js +5 -5
  69. package/dist/components/SpecificationExtension/SpecificationExtension.vue.js +5 -5
  70. package/dist/features/ApiClientModal/ApiClientModal.vue.d.ts +2 -0
  71. package/dist/features/ApiClientModal/ApiClientModal.vue.d.ts.map +1 -1
  72. package/dist/features/ApiClientModal/ApiClientModal.vue.js +51 -29
  73. package/dist/features/ApiClientModal/useApiClient.d.ts +4 -4
  74. package/dist/features/BaseUrl/BaseUrl.vue.js +1 -1
  75. package/dist/features/DownloadLink/DownloadLink.vue2.js +5 -5
  76. package/dist/features/ExampleRequest/ExamplePicker.vue2.js +2 -2
  77. package/dist/features/ExampleRequest/ExampleRequest.vue2.js +12 -12
  78. package/dist/features/ExampleRequest/TextSelect.vue.js +6 -6
  79. package/dist/features/ExampleResponses/ExampleResponse.vue2.js +1 -1
  80. package/dist/features/ExampleResponses/ExampleResponses.vue2.js +23 -23
  81. package/dist/features/Operation/Operation.vue.js +3 -3
  82. package/dist/features/Operation/Webhooks.vue2.js +1 -1
  83. package/dist/features/Operation/components/ContentTypeSelect.vue.js +3 -3
  84. package/dist/features/Operation/components/OperationParameters.vue.js +1 -1
  85. package/dist/features/Operation/components/OperationResponses.vue.js +2 -2
  86. package/dist/features/Operation/components/ParameterHeaders.vue2.js +1 -1
  87. package/dist/features/Operation/components/ParameterList.vue2.js +4 -4
  88. package/dist/features/Operation/components/ParameterListItem.vue2.js +17 -17
  89. package/dist/features/Operation/components/RequestBody.vue2.js +5 -5
  90. package/dist/features/Operation/components/Webhook.vue2.js +5 -5
  91. package/dist/features/Operation/layouts/ClassicLayout.vue2.js +20 -20
  92. package/dist/features/Operation/layouts/ModernLayout.vue2.js +3 -3
  93. package/dist/features/Search/SearchButton.vue2.js +4 -4
  94. package/dist/features/Search/SearchModal.vue2.js +1 -1
  95. package/dist/features/TestRequestButton/TestRequestButton.vue2.js +5 -5
  96. package/dist/hooks/useNavState.js +1 -1
  97. package/dist/hooks/useSidebar.js +13 -13
  98. package/dist/index.js +21 -21
  99. package/dist/stores/useHttpClientStore.js +1 -1
  100. package/dist/style.css +1 -1
  101. package/package.json +16 -16
@@ -1,4 +1,4 @@
1
- import { defineComponent as y, openBlock as t, createElementBlock as a, createElementVNode as l, Fragment as n, createTextVNode as o, createCommentVNode as r, toDisplayString as p } from "vue";
1
+ import { defineComponent as y, createElementBlock as t, createCommentVNode as r, openBlock as a, createElementVNode as l, Fragment as n, createTextVNode as o, toDisplayString as p } from "vue";
2
2
  const s = {
3
3
  key: 0,
4
4
  class: "schema-type"
@@ -9,24 +9,24 @@ const s = {
9
9
  name: {}
10
10
  },
11
11
  setup(m) {
12
- return (e, i) => typeof e.value == "object" ? (t(), a("span", s, [
12
+ return (e, i) => typeof e.value == "object" ? (a(), t("span", s, [
13
13
  l("span", {
14
14
  class: "schema-type-icon",
15
15
  title: typeof e.value.type == "string" ? e.value.type : Array.isArray(e.value.type) ? e.value.type.join(" | ") : "unkown type"
16
16
  }, [
17
- e.value.type === "object" ? (t(), a(n, { key: 0 }, [
17
+ e.value.type === "object" ? (a(), t(n, { key: 0 }, [
18
18
  o(" {} ")
19
19
  ], 64)) : r("", !0),
20
- e.value.type === "array" ? (t(), a(n, { key: 1 }, [
20
+ e.value.type === "array" ? (a(), t(n, { key: 1 }, [
21
21
  o(" [] ")
22
22
  ], 64)) : r("", !0),
23
- e.value.enum ? (t(), a(n, { key: 2 }, [
23
+ e.value.enum ? (a(), t(n, { key: 2 }, [
24
24
  o(" enum ")
25
25
  ], 64)) : r("", !0)
26
26
  ], 8, u),
27
- e.name ? (t(), a(n, { key: 0 }, [
27
+ e.name ? (a(), t(n, { key: 0 }, [
28
28
  o(p(e.name), 1)
29
- ], 64)) : (t(), a(n, { key: 1 }, [
29
+ ], 64)) : (a(), t(n, { key: 1 }, [
30
30
  o(p(e.value.type), 1)
31
31
  ], 64))
32
32
  ])) : r("", !0);
@@ -1,4 +1,4 @@
1
- import { defineComponent as $, computed as y, openBlock as l, createBlock as h, resolveDynamicComponent as M, normalizeClass as I, withCtx as m, createSlots as G, createTextVNode as D, toDisplayString as c, createCommentVNode as r, createElementBlock as s, createVNode as a, unref as i, Fragment as d, renderList as k, createElementVNode as f } from "vue";
1
+ import { defineComponent as $, computed as y, createBlock as h, openBlock as l, resolveDynamicComponent as M, normalizeClass as I, withCtx as m, createCommentVNode as r, createElementBlock as s, createVNode as a, createSlots as G, createTextVNode as D, toDisplayString as c, unref as i, Fragment as d, renderList as k, createElementVNode as f } from "vue";
2
2
  import { Disclosure as J, DisclosurePanel as K, DisclosureButton as Q } from "@headlessui/vue";
3
3
  import { ScalarMarkdown as S, ScalarIcon as W } from "@scalar/components";
4
4
  import { optimizeValueForDisplay as X, discriminators as Y } from "./helpers/optimizeValueForDisplay.js";
@@ -1,4 +1,4 @@
1
- import { defineComponent as a, openBlock as t, createElementBlock as o, normalizeClass as l, renderSlot as r, createTextVNode as p, createCommentVNode as n } from "vue";
1
+ import { defineComponent as a, createElementBlock as t, openBlock as o, normalizeClass as l, createCommentVNode as p, renderSlot as r, createTextVNode as n } from "vue";
2
2
  const d = {
3
3
  key: 0,
4
4
  class: "property-detail-prefix"
@@ -15,16 +15,16 @@ const d = {
15
15
  code: { type: Boolean }
16
16
  },
17
17
  setup(c) {
18
- return (e, s) => (t(), o("span", {
18
+ return (e, s) => (o(), t("span", {
19
19
  class: l(["property-detail", { "property-detail-truncate": e.truncate }])
20
20
  }, [
21
- e.$slots.prefix ? (t(), o("div", d, [
21
+ e.$slots.prefix ? (o(), t("div", d, [
22
22
  r(e.$slots, "prefix", {}, void 0, !0),
23
- s[0] || (s[0] = p("  "))
24
- ])) : n("", !0),
25
- e.code ? (t(), o("code", i, [
23
+ s[0] || (s[0] = n("  "))
24
+ ])) : p("", !0),
25
+ e.code ? (o(), t("code", i, [
26
26
  r(e.$slots, "default", {}, void 0, !0)
27
- ])) : (t(), o("span", u, [
27
+ ])) : (o(), t("span", u, [
28
28
  r(e.$slots, "default", {}, void 0, !0)
29
29
  ]))
30
30
  ], 2));
@@ -1,4 +1,4 @@
1
- import { defineComponent as y, openBlock as l, createElementBlock as p, Fragment as i, createElementVNode as e, unref as o, toDisplayString as n, createVNode as u, createCommentVNode as c, renderList as b } from "vue";
1
+ import { defineComponent as y, createElementBlock as l, openBlock as p, Fragment as i, createCommentVNode as u, createElementVNode as e, unref as o, createVNode as c, toDisplayString as n, renderList as b } from "vue";
2
2
  import { ScalarIcon as x } from "@scalar/components";
3
3
  import { useClipboard as v } from "@scalar/use-hooks/useClipboard";
4
4
  import { formatExample as s } from "./helpers/formatExample.js";
@@ -20,8 +20,8 @@ const f = {
20
20
  },
21
21
  setup(E) {
22
22
  const { copyToClipboard: m } = v();
23
- return (t, r) => (l(), p(i, null, [
24
- t.example ? (l(), p("div", f, [
23
+ return (t, r) => (p(), l(i, null, [
24
+ t.example ? (p(), l("div", f, [
25
25
  r[1] || (r[1] = e("button", {
26
26
  type: "button",
27
27
  class: "property-example-label"
@@ -35,34 +35,34 @@ const f = {
35
35
  onClick: r[0] || (r[0] = (a) => o(m)(String(o(s)(t.example))))
36
36
  }, [
37
37
  e("span", null, n(o(s)(t.example)), 1),
38
- u(o(x), {
38
+ c(o(x), {
39
39
  icon: "Clipboard",
40
40
  size: "xs",
41
41
  class: "group-hover:text-c-1 text-c-3 ml-auto min-h-3 min-w-3"
42
42
  })
43
43
  ])
44
44
  ])
45
- ])) : c("", !0),
46
- t.examples && typeof t.examples == "object" && Object.keys(t.examples).length > 0 ? (l(), p("div", h, [
45
+ ])) : u("", !0),
46
+ t.examples && typeof t.examples == "object" && Object.keys(t.examples).length > 0 ? (p(), l("div", h, [
47
47
  e("button", k, [
48
48
  e("span", null, n(Object.keys(t.examples).length === 1 ? "Example" : "Examples"), 1)
49
49
  ]),
50
50
  e("div", C, [
51
- (l(!0), p(i, null, b(t.examples, (a, d) => (l(), p("button", {
51
+ (p(!0), l(i, null, b(t.examples, (a, d) => (p(), l("button", {
52
52
  type: "button",
53
53
  key: d,
54
54
  class: "property-example-value group",
55
55
  onClick: (S) => o(m)(String(o(s)(a)))
56
56
  }, [
57
57
  e("span", null, n(o(s)(a)), 1),
58
- u(o(x), {
58
+ c(o(x), {
59
59
  icon: "Clipboard",
60
60
  size: "xs",
61
61
  class: "text-c-3 group-hover:text-c-1 ml-auto min-h-3 min-w-3"
62
62
  })
63
63
  ], 8, _))), 128))
64
64
  ])
65
- ])) : c("", !0)
65
+ ])) : u("", !0)
66
66
  ], 64));
67
67
  }
68
68
  });
@@ -18,10 +18,7 @@ declare function __VLS_template(): {
18
18
  rootEl: HTMLDivElement;
19
19
  };
20
20
  type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
21
- declare const __VLS_component: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {
22
- required: boolean;
23
- withExamples: boolean;
24
- }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, HTMLDivElement>;
21
+ 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>;
25
22
  declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
26
23
  export default _default;
27
24
  type __VLS_WithTemplateSlots<T, S> = T & {
@@ -1 +1 @@
1
- {"version":3,"file":"SchemaPropertyHeading.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/Content/Schema/SchemaPropertyHeading.vue"],"names":[],"mappings":"AAyRA,OAAO,KAAK,EAEV,SAAS,EACT,SAAS,EACT,WAAW,EACZ,MAAM,uBAAuB,CAAA;AAY9B,KAAK,WAAW,GAAG;IACf,KAAK,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAA;IAC3B,IAAI,CAAC,EAAE,OAAO,CAAA;IACd,QAAQ,CAAC,EAAE,OAAO,CAAA;IAClB,UAAU,CAAC,EAAE,OAAO,CAAA;IACpB,OAAO,CAAC,EAAE,OAAO,CAAA;IACjB,YAAY,CAAC,EAAE,OAAO,CAAA;IACtB,OAAO,CAAC,EACJ,SAAS,CAAC,iBAAiB,GAC3B,MAAM,CAAC,MAAM,EAAE,SAAS,CAAC,YAAY,CAAC,GACtC,MAAM,CAAC,MAAM,EAAE,WAAW,CAAC,YAAY,CAAC,GACxC,OAAO,CAAA;CACZ,CAAC;AA0DJ,iBAAS,cAAc;WA+TT,OAAO,IAA6B;;sBATxB,GAAG;sBACH,GAAG;;;;EAa5B;AAiBD,KAAK,oBAAoB,GAAG,UAAU,CAAC,OAAO,cAAc,CAAC,CAAC;AAC9D,QAAA,MAAM,eAAe;cAzZN,OAAO;kBAGH,OAAO;wFA8ZxB,CAAC;wBACkB,uBAAuB,CAAC,OAAO,eAAe,EAAE,oBAAoB,CAAC,OAAO,CAAC,CAAC;AAAnG,wBAAoG;AAgBpG,KAAK,uBAAuB,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG;IACxC,QAAO;QACN,MAAM,EAAE,CAAC,CAAC;KAEV,CAAA;CACD,CAAC"}
1
+ {"version":3,"file":"SchemaPropertyHeading.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/Content/Schema/SchemaPropertyHeading.vue"],"names":[],"mappings":"AAuRA,OAAO,KAAK,EAEV,SAAS,EACT,SAAS,EACT,WAAW,EACZ,MAAM,uBAAuB,CAAA;AAY9B,KAAK,WAAW,GAAG;IACjB,KAAK,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAA;IAC3B,IAAI,CAAC,EAAE,OAAO,CAAA;IACd,QAAQ,CAAC,EAAE,OAAO,CAAA;IAClB,UAAU,CAAC,EAAE,OAAO,CAAA;IACpB,OAAO,CAAC,EAAE,OAAO,CAAA;IACjB,YAAY,CAAC,EAAE,OAAO,CAAA;IACtB,OAAO,CAAC,EACJ,SAAS,CAAC,iBAAiB,GAC3B,MAAM,CAAC,MAAM,EAAE,SAAS,CAAC,YAAY,CAAC,GACtC,MAAM,CAAC,MAAM,EAAE,WAAW,CAAC,YAAY,CAAC,GACxC,OAAO,CAAA;CACZ,CAAC;AAoDF,iBAAS,cAAc;WA+TT,OAAO,IAA6B;;sBATxB,GAAG;sBACH,GAAG;;;;EAa5B;AAeD,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,7 +1,7 @@
1
1
  import o from "./SchemaPropertyHeading.vue2.js";
2
2
  /* empty css */
3
3
  import r from "../../../_virtual/_plugin-vue_export-helper.js";
4
- const m = /* @__PURE__ */ r(o, [["__scopeId", "data-v-a7691560"]]);
4
+ const m = /* @__PURE__ */ r(o, [["__scopeId", "data-v-9d959541"]]);
5
5
  export {
6
6
  m as default
7
7
  };
@@ -1,32 +1,32 @@
1
- import { defineComponent as j, openBlock as i, createElementBlock as s, normalizeClass as I, renderSlot as B, Fragment as a, createTextVNode as r, createCommentVNode as m, toDisplayString as d, createVNode as u, unref as k, withCtx as n, createBlock as l } from "vue";
2
- import { stringify as b } from "flatted";
3
- import { discriminators as M } from "./helpers/optimizeValueForDisplay.js";
4
- import V from "./SchemaPropertyExamples.vue.js";
5
- import x from "../../ScreenReader.vue.js";
6
- import p from "./SchemaPropertyDetail.vue.js";
7
- import N from "../../Badge/Badge.vue.js";
8
- const A = { class: "property-heading" }, C = {
1
+ import { defineComponent as T, createElementBlock as i, openBlock as t, createCommentVNode as r, createBlock as o, normalizeClass as z, renderSlot as E, Fragment as s, createTextVNode as a, toDisplayString as n, createVNode as p, unref as v, withCtx as u } from "vue";
2
+ import { stringify as L } from "flatted";
3
+ import { discriminators as H } from "./helpers/optimizeValueForDisplay.js";
4
+ import R from "./SchemaPropertyExamples.vue.js";
5
+ import f from "../../ScreenReader.vue.js";
6
+ import m from "./SchemaPropertyDetail.vue.js";
7
+ import $ from "../../Badge/Badge.vue.js";
8
+ const G = { class: "property-heading" }, J = {
9
9
  key: 1,
10
10
  class: "property-additional"
11
- }, E = {
11
+ }, K = {
12
12
  key: 2,
13
13
  class: "property-pattern"
14
- }, L = {
14
+ }, Q = {
15
15
  key: 3,
16
16
  class: "property-deprecated"
17
- }, $ = {
17
+ }, U = {
18
18
  key: 4,
19
19
  class: "property-const"
20
- }, D = {
20
+ }, W = {
21
21
  key: 7,
22
22
  class: "property-write-only"
23
- }, F = {
23
+ }, X = {
24
24
  key: 8,
25
25
  class: "property-read-only"
26
- }, O = {
26
+ }, Y = {
27
27
  key: 9,
28
28
  class: "property-required"
29
- }, Q = /* @__PURE__ */ j({
29
+ }, ae = /* @__PURE__ */ T({
30
30
  __name: "SchemaPropertyHeading",
31
31
  props: {
32
32
  value: {},
@@ -37,214 +37,214 @@ const A = { class: "property-heading" }, C = {
37
37
  withExamples: { type: Boolean, default: !0 },
38
38
  schemas: {}
39
39
  },
40
- setup(S) {
41
- const { value: e, schemas: f } = S, q = M.find((o) => !e || typeof e != "object" ? !1 : o in e || e.items && typeof e.items == "object" && o in e.items), w = (o) => Array.isArray(o == null ? void 0 : o.default) && o.default.length === 1 ? o.default[0] : o == null ? void 0 : o.default, P = (o) => {
42
- if (!o)
40
+ setup(d) {
41
+ const D = H.find((e) => !d.value || typeof d.value != "object" ? !1 : e in d.value || d.value.items && typeof d.value.items == "object" && e in d.value.items), F = (e) => Array.isArray(e == null ? void 0 : e.default) && e.default.length === 1 ? e.default[0] : e == null ? void 0 : e.default, O = (e) => {
42
+ if (!e)
43
43
  return null;
44
- if (o.name)
45
- return o.name;
46
- if (f && typeof f == "object") {
47
- for (const [t, y] of Object.entries(f))
48
- if (b(y) === b(o))
49
- return t;
44
+ if (e.name)
45
+ return e.name;
46
+ if (d.schemas && typeof d.schemas == "object") {
47
+ for (const [l, y] of Object.entries(d.schemas))
48
+ if (L(y) === L(e))
49
+ return l;
50
50
  }
51
51
  return null;
52
52
  };
53
- return (o, t) => {
54
- var y;
55
- return i(), s("div", A, [
56
- o.$slots.name ? (i(), s("div", {
53
+ return (e, l) => {
54
+ var y, k, g, B, b, N, S, q, w, P, j, I, M;
55
+ return t(), i("div", G, [
56
+ e.$slots.name ? (t(), i("div", {
57
57
  key: 0,
58
- class: I(["property-name", { deprecated: e == null ? void 0 : e.deprecated }])
58
+ class: z(["property-name", { deprecated: (y = e.value) == null ? void 0 : y.deprecated }])
59
59
  }, [
60
- o.pattern ? (i(), s(a, { key: 1 }, [
61
- t[0] || (t[0] = r("/")),
62
- B(o.$slots, "name", {}, void 0, !0),
63
- t[1] || (t[1] = r("/"))
64
- ], 64)) : B(o.$slots, "name", { key: 0 }, void 0, !0)
65
- ], 2)) : m("", !0),
66
- o.additional ? (i(), s("div", C, [
67
- e != null && e["x-additionalPropertiesName"] ? (i(), s(a, { key: 0 }, [
68
- r(d(e["x-additionalPropertiesName"]), 1)
69
- ], 64)) : (i(), s(a, { key: 1 }, [
70
- r("additional properties")
60
+ e.pattern ? (t(), i(s, { key: 1 }, [
61
+ l[0] || (l[0] = a("/")),
62
+ E(e.$slots, "name", {}, void 0, !0),
63
+ l[1] || (l[1] = a("/"))
64
+ ], 64)) : E(e.$slots, "name", { key: 0 }, void 0, !0)
65
+ ], 2)) : r("", !0),
66
+ e.additional ? (t(), i("div", J, [
67
+ (k = e.value) != null && k["x-additionalPropertiesName"] ? (t(), i(s, { key: 0 }, [
68
+ a(n(e.value["x-additionalPropertiesName"]), 1)
69
+ ], 64)) : (t(), i(s, { key: 1 }, [
70
+ a("additional properties")
71
71
  ], 64))
72
- ])) : m("", !0),
73
- o.pattern ? (i(), s("div", E, [
74
- u(k(N), null, {
75
- default: n(() => t[2] || (t[2] = [
76
- r("pattern")
72
+ ])) : r("", !0),
73
+ e.pattern ? (t(), i("div", K, [
74
+ p(v($), null, {
75
+ default: u(() => l[2] || (l[2] = [
76
+ a("pattern")
77
77
  ])),
78
78
  _: 1
79
79
  })
80
- ])) : m("", !0),
81
- e != null && e.deprecated ? (i(), s("div", L, [
82
- u(k(N), null, {
83
- default: n(() => t[3] || (t[3] = [
84
- r("deprecated")
80
+ ])) : r("", !0),
81
+ (g = e.value) != null && g.deprecated ? (t(), i("div", Q, [
82
+ p(v($), null, {
83
+ default: u(() => l[3] || (l[3] = [
84
+ a("deprecated")
85
85
  ])),
86
86
  _: 1
87
87
  })
88
- ])) : m("", !0),
89
- e != null && e.const || e != null && e.enum && e.enum.length === 1 ? (i(), s("div", $, [
90
- u(p, { truncate: "" }, {
91
- prefix: n(() => t[4] || (t[4] = [
92
- r("const:")
88
+ ])) : r("", !0),
89
+ (B = e.value) != null && B.const || (b = e.value) != null && b.enum && e.value.enum.length === 1 ? (t(), i("div", U, [
90
+ p(m, { truncate: "" }, {
91
+ prefix: u(() => l[4] || (l[4] = [
92
+ a("const:")
93
93
  ])),
94
- default: n(() => [
95
- r(" " + d(e.const ?? e.enum[0]), 1)
94
+ default: u(() => [
95
+ a(" " + n(e.value.const ?? e.value.enum[0]), 1)
96
96
  ]),
97
97
  _: 1
98
98
  })
99
- ])) : e != null && e.type ? (i(), s(a, { key: 5 }, [
100
- u(p, null, {
101
- default: n(() => {
102
- var g;
99
+ ])) : (N = e.value) != null && N.type ? (t(), i(s, { key: 5 }, [
100
+ p(m, null, {
101
+ default: u(() => {
102
+ var V, A, C;
103
103
  return [
104
- u(x, null, {
105
- default: n(() => t[5] || (t[5] = [
106
- r("Type:")
104
+ p(f, null, {
105
+ default: u(() => l[5] || (l[5] = [
106
+ a("Type:")
107
107
  ])),
108
108
  _: 1
109
109
  }),
110
- (g = e == null ? void 0 : e.items) != null && g.type ? (i(), s(a, { key: 0 }, [
111
- r(d(e.type) + " " + d(P(e.items) || e.items.type) + "[] ", 1)
112
- ], 64)) : (i(), s(a, { key: 1 }, [
113
- r(d(Array.isArray(e.type) ? e.type.join(" | ") : e.type) + " " + d(e != null && e.nullable ? " | nullable" : ""), 1)
110
+ (A = (V = e.value) == null ? void 0 : V.items) != null && A.type ? (t(), i(s, { key: 0 }, [
111
+ a(n(e.value.type) + " " + n(O(e.value.items) || e.value.items.type) + "[] ", 1)
112
+ ], 64)) : (t(), i(s, { key: 1 }, [
113
+ a(n(Array.isArray(e.value.type) ? e.value.type.join(" | ") : e.value.type) + " " + n((C = e.value) != null && C.nullable ? " | nullable" : ""), 1)
114
114
  ], 64)),
115
- e.minItems || e.maxItems ? (i(), s(a, { key: 2 }, [
116
- r(d(e.minItems) + "…" + d(e.maxItems), 1)
117
- ], 64)) : m("", !0)
115
+ e.value.minItems || e.value.maxItems ? (t(), i(s, { key: 2 }, [
116
+ a(n(e.value.minItems) + "…" + n(e.value.maxItems), 1)
117
+ ], 64)) : r("", !0)
118
118
  ];
119
119
  }),
120
120
  _: 1
121
121
  }),
122
- e.minLength ? (i(), l(p, { key: 0 }, {
123
- prefix: n(() => t[6] || (t[6] = [
124
- r("min:")
122
+ e.value.minLength ? (t(), o(m, { key: 0 }, {
123
+ prefix: u(() => l[6] || (l[6] = [
124
+ a("min:")
125
125
  ])),
126
- default: n(() => [
127
- r(" " + d(e.minLength), 1)
126
+ default: u(() => [
127
+ a(" " + n(e.value.minLength), 1)
128
128
  ]),
129
129
  _: 1
130
- })) : m("", !0),
131
- e.maxLength ? (i(), l(p, { key: 1 }, {
132
- prefix: n(() => t[7] || (t[7] = [
133
- r("max:")
130
+ })) : r("", !0),
131
+ e.value.maxLength ? (t(), o(m, { key: 1 }, {
132
+ prefix: u(() => l[7] || (l[7] = [
133
+ a("max:")
134
134
  ])),
135
- default: n(() => [
136
- r(" " + d(e.maxLength), 1)
135
+ default: u(() => [
136
+ a(" " + n(e.value.maxLength), 1)
137
137
  ]),
138
138
  _: 1
139
- })) : m("", !0),
140
- e.uniqueItems ? (i(), l(p, { key: 2 }, {
141
- default: n(() => t[8] || (t[8] = [
142
- r(" unique! ")
139
+ })) : r("", !0),
140
+ e.value.uniqueItems ? (t(), o(m, { key: 2 }, {
141
+ default: u(() => l[8] || (l[8] = [
142
+ a(" unique! ")
143
143
  ])),
144
144
  _: 1
145
- })) : m("", !0),
146
- e.format ? (i(), l(p, { key: 3 }, {
147
- default: n(() => [
148
- u(x, null, {
149
- default: n(() => t[9] || (t[9] = [
150
- r("Format:")
145
+ })) : r("", !0),
146
+ e.value.format ? (t(), o(m, { key: 3 }, {
147
+ default: u(() => [
148
+ p(f, null, {
149
+ default: u(() => l[9] || (l[9] = [
150
+ a("Format:")
151
151
  ])),
152
152
  _: 1
153
153
  }),
154
- r(" " + d(e.format), 1)
154
+ a(" " + n(e.value.format), 1)
155
155
  ]),
156
156
  _: 1
157
- })) : m("", !0),
158
- e.minimum !== void 0 && e.exclusiveMinimum ? (i(), l(p, { key: 4 }, {
159
- prefix: n(() => t[10] || (t[10] = [
160
- r("greater than:")
157
+ })) : r("", !0),
158
+ e.value.minimum !== void 0 && e.value.exclusiveMinimum ? (t(), o(m, { key: 4 }, {
159
+ prefix: u(() => l[10] || (l[10] = [
160
+ a("greater than:")
161
161
  ])),
162
- default: n(() => [
163
- r(" " + d(e.minimum), 1)
162
+ default: u(() => [
163
+ a(" " + n(e.value.minimum), 1)
164
164
  ]),
165
165
  _: 1
166
- })) : m("", !0),
167
- e.minimum !== void 0 && !e.exclusiveMinimum ? (i(), l(p, { key: 5 }, {
168
- prefix: n(() => t[11] || (t[11] = [
169
- r("min:")
166
+ })) : r("", !0),
167
+ e.value.minimum !== void 0 && !e.value.exclusiveMinimum ? (t(), o(m, { key: 5 }, {
168
+ prefix: u(() => l[11] || (l[11] = [
169
+ a("min:")
170
170
  ])),
171
- default: n(() => [
172
- r(" " + d(e.minimum), 1)
171
+ default: u(() => [
172
+ a(" " + n(e.value.minimum), 1)
173
173
  ]),
174
174
  _: 1
175
- })) : m("", !0),
176
- e.maximum !== void 0 && e.exclusiveMaximum ? (i(), l(p, { key: 6 }, {
177
- prefix: n(() => t[12] || (t[12] = [
178
- r("less than:")
175
+ })) : r("", !0),
176
+ e.value.maximum !== void 0 && e.value.exclusiveMaximum ? (t(), o(m, { key: 6 }, {
177
+ prefix: u(() => l[12] || (l[12] = [
178
+ a("less than:")
179
179
  ])),
180
- default: n(() => [
181
- r(" " + d(e.maximum), 1)
180
+ default: u(() => [
181
+ a(" " + n(e.value.maximum), 1)
182
182
  ]),
183
183
  _: 1
184
- })) : m("", !0),
185
- e.maximum !== void 0 && !e.exclusiveMaximum ? (i(), l(p, { key: 7 }, {
186
- prefix: n(() => t[13] || (t[13] = [
187
- r("max:")
184
+ })) : r("", !0),
185
+ e.value.maximum !== void 0 && !e.value.exclusiveMaximum ? (t(), o(m, { key: 7 }, {
186
+ prefix: u(() => l[13] || (l[13] = [
187
+ a("max:")
188
188
  ])),
189
- default: n(() => [
190
- r(" " + d(e.maximum), 1)
189
+ default: u(() => [
190
+ a(" " + n(e.value.maximum), 1)
191
191
  ]),
192
192
  _: 1
193
- })) : m("", !0),
194
- e.pattern ? (i(), l(p, {
193
+ })) : r("", !0),
194
+ e.value.pattern ? (t(), o(m, {
195
195
  key: 8,
196
196
  code: "",
197
197
  truncate: ""
198
198
  }, {
199
- default: n(() => [
200
- u(x, null, {
201
- default: n(() => t[14] || (t[14] = [
202
- r("Pattern:")
199
+ default: u(() => [
200
+ p(f, null, {
201
+ default: u(() => l[14] || (l[14] = [
202
+ a("Pattern:")
203
203
  ])),
204
204
  _: 1
205
205
  }),
206
- r(" " + d(e.pattern), 1)
206
+ a(" " + n(e.value.pattern), 1)
207
207
  ]),
208
208
  _: 1
209
- })) : m("", !0),
210
- o.$props.enum ? (i(), l(p, { key: 9 }, {
211
- default: n(() => t[15] || (t[15] = [
212
- r("enum")
209
+ })) : r("", !0),
210
+ e.$props.enum ? (t(), o(m, { key: 9 }, {
211
+ default: u(() => l[15] || (l[15] = [
212
+ a("enum")
213
213
  ])),
214
214
  _: 1
215
- })) : m("", !0),
216
- e.default !== void 0 ? (i(), l(p, {
215
+ })) : r("", !0),
216
+ e.value.default !== void 0 ? (t(), o(m, {
217
217
  key: 10,
218
218
  truncate: ""
219
219
  }, {
220
- prefix: n(() => t[16] || (t[16] = [
221
- r("default:")
220
+ prefix: u(() => l[16] || (l[16] = [
221
+ a("default:")
222
222
  ])),
223
- default: n(() => [
224
- r(" " + d(w(e)), 1)
223
+ default: u(() => [
224
+ a(" " + n(F(e.value)), 1)
225
225
  ]),
226
226
  _: 1
227
- })) : m("", !0)
228
- ], 64)) : (i(), s(a, { key: 6 }, [
229
- (e == null ? void 0 : e.nullable) === !0 ? (i(), l(p, { key: 0 }, {
230
- default: n(() => t[17] || (t[17] = [
231
- r(" nullable ")
227
+ })) : r("", !0)
228
+ ], 64)) : (t(), i(s, { key: 6 }, [
229
+ ((S = e.value) == null ? void 0 : S.nullable) === !0 ? (t(), o(m, { key: 0 }, {
230
+ default: u(() => l[17] || (l[17] = [
231
+ a(" nullable ")
232
232
  ])),
233
233
  _: 1
234
- })) : m("", !0)
234
+ })) : r("", !0)
235
235
  ], 64)),
236
- e != null && e.writeOnly ? (i(), s("div", D, " write-only ")) : e != null && e.readOnly ? (i(), s("div", F, " read-only ")) : m("", !0),
237
- o.required ? (i(), s("div", O, " required ")) : m("", !0),
238
- o.withExamples ? (i(), l(V, {
236
+ (q = e.value) != null && q.writeOnly ? (t(), i("div", W, " write-only ")) : (w = e.value) != null && w.readOnly ? (t(), i("div", X, " read-only ")) : r("", !0),
237
+ e.required ? (t(), i("div", Y, " required ")) : r("", !0),
238
+ e.withExamples ? (t(), o(R, {
239
239
  key: 10,
240
- examples: e == null ? void 0 : e.examples,
241
- example: (e == null ? void 0 : e.example) || ((y = e == null ? void 0 : e.items) == null ? void 0 : y.example),
242
- "discriminator-type": k(q)
243
- }, null, 8, ["examples", "example", "discriminator-type"])) : m("", !0)
240
+ examples: (P = e.value) == null ? void 0 : P.examples,
241
+ example: ((j = e.value) == null ? void 0 : j.example) || ((M = (I = e.value) == null ? void 0 : I.items) == null ? void 0 : M.example),
242
+ "discriminator-type": v(D)
243
+ }, null, 8, ["examples", "example", "discriminator-type"])) : r("", !0)
244
244
  ]);
245
245
  };
246
246
  }
247
247
  });
248
248
  export {
249
- Q as default
249
+ ae as default
250
250
  };
@@ -1,4 +1,4 @@
1
- import { defineComponent as f, computed as g, openBlock as a, createBlock as p, unref as t, withCtx as o, createVNode as r, createTextVNode as d, toDisplayString as C, createElementVNode as N, createElementBlock as k, Fragment as y, renderList as O, createCommentVNode as B } from "vue";
1
+ import { defineComponent as f, computed as g, createBlock as p, createCommentVNode as C, openBlock as a, unref as t, withCtx as o, createVNode as r, createTextVNode as d, toDisplayString as N, createElementVNode as k, createElementBlock as y, Fragment as O, renderList as B } from "vue";
2
2
  import V from "../../ScreenReader.vue.js";
3
3
  import { useNavState as _ } from "../../../hooks/useNavState.js";
4
4
  import v from "./OperationsListItem.vue.js";
@@ -25,7 +25,7 @@ const h = ["aria-label"], T = /* @__PURE__ */ f({
25
25
  default: o(() => [
26
26
  r(V, null, {
27
27
  default: o(() => [
28
- d(C(n.value), 1)
28
+ d(N(n.value), 1)
29
29
  ]),
30
30
  _: 1
31
31
  }),
@@ -38,11 +38,11 @@ const h = ["aria-label"], T = /* @__PURE__ */ f({
38
38
  muted: ""
39
39
  }, {
40
40
  default: o(() => [
41
- N("ul", {
41
+ k("ul", {
42
42
  "aria-label": `${n.value} endpoints`,
43
43
  class: "endpoints"
44
44
  }, [
45
- (a(!0), k(y, null, O(e.tag.operations, (m) => (a(), p(v, {
45
+ (a(!0), y(O, null, B(e.tag.operations, (m) => (a(), p(v, {
46
46
  key: t(u)(m, e.tag),
47
47
  collection: e.collection,
48
48
  isCollapsed: e.isCollapsed,
@@ -55,7 +55,7 @@ const h = ["aria-label"], T = /* @__PURE__ */ f({
55
55
  })
56
56
  ]),
57
57
  _: 1
58
- })) : B("", !0);
58
+ })) : C("", !0);
59
59
  };
60
60
  }
61
61
  });