@scalar/api-reference 1.31.8 → 1.31.9

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 (183) hide show
  1. package/CHANGELOG.md +45 -0
  2. package/dist/browser/standalone.js +18613 -18470
  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 +10 -30
  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 +240 -222
  9. package/dist/components/Content/Content.vue.d.ts +2 -0
  10. package/dist/components/Content/Content.vue.d.ts.map +1 -1
  11. package/dist/components/Content/Content.vue.js +2 -2
  12. package/dist/components/Content/Content.vue2.js +84 -74
  13. package/dist/components/Content/Introduction/Introduction.vue.d.ts +1 -3
  14. package/dist/components/Content/Introduction/Introduction.vue.d.ts.map +1 -1
  15. package/dist/components/Content/Introduction/Introduction.vue.js +2 -2
  16. package/dist/components/Content/Introduction/Introduction.vue2.js +93 -83
  17. package/dist/components/Content/Lazy/Loading.vue.d.ts.map +1 -1
  18. package/dist/components/Content/Lazy/Loading.vue.js +84 -86
  19. package/dist/components/Content/Models/Models.vue.js +1 -1
  20. package/dist/components/Content/Models/Models.vue2.js +4 -4
  21. package/dist/components/Content/Schema/Schema.vue.d.ts.map +1 -1
  22. package/dist/components/Content/Schema/Schema.vue.js +2 -2
  23. package/dist/components/Content/Schema/Schema.vue2.js +53 -53
  24. package/dist/components/Content/Schema/SchemaDiscriminator.vue.d.ts.map +1 -1
  25. package/dist/components/Content/Schema/SchemaDiscriminator.vue.js +1 -1
  26. package/dist/components/Content/Schema/SchemaProperty.vue.d.ts.map +1 -1
  27. package/dist/components/Content/Schema/SchemaProperty.vue.js +1 -1
  28. package/dist/components/Content/Schema/SchemaProperty.vue2.js +117 -112
  29. package/dist/components/Content/Schema/SchemaPropertyHeading.vue.d.ts.map +1 -1
  30. package/dist/components/Content/Schema/SchemaPropertyHeading.vue.js +2 -2
  31. package/dist/components/Content/Schema/SchemaPropertyHeading.vue2.js +161 -191
  32. package/dist/components/Content/Schema/helpers/schema-name.d.ts +13 -0
  33. package/dist/components/Content/Schema/helpers/schema-name.d.ts.map +1 -1
  34. package/dist/components/Content/Schema/helpers/schema-name.js +59 -13
  35. package/dist/components/Content/Tag/OperationsList.vue.d.ts.map +1 -1
  36. package/dist/components/Content/Tag/OperationsList.vue.js +1 -1
  37. package/dist/components/Content/Tag/OperationsList.vue2.js +22 -25
  38. package/dist/components/Content/Tag/OperationsListItem.vue.d.ts +2 -3
  39. package/dist/components/Content/Tag/OperationsListItem.vue.d.ts.map +1 -1
  40. package/dist/components/Content/Tag/OperationsListItem.vue.js +2 -2
  41. package/dist/components/Content/Tag/OperationsListItem.vue2.js +46 -47
  42. package/dist/components/Content/Tag/Tag.vue.d.ts.map +1 -1
  43. package/dist/components/Content/Tag/Tag.vue.js +45 -47
  44. package/dist/components/Content/Tag/TagList.vue.d.ts +2 -0
  45. package/dist/components/Content/Tag/TagList.vue.d.ts.map +1 -1
  46. package/dist/components/Content/Tag/TagList.vue.js +40 -41
  47. package/dist/components/Content/Tag/TagSection.vue.d.ts.map +1 -1
  48. package/dist/components/Content/Tag/TagSection.vue.js +2 -2
  49. package/dist/components/Content/Tag/TagSection.vue2.js +21 -21
  50. package/dist/components/HttpMethod/HttpMethod.vue.d.ts +16 -1
  51. package/dist/components/HttpMethod/HttpMethod.vue.d.ts.map +1 -1
  52. package/dist/components/HttpMethod/HttpMethod.vue.js +12 -11
  53. package/dist/components/MobileHeader.vue.d.ts +1 -8
  54. package/dist/components/MobileHeader.vue.d.ts.map +1 -1
  55. package/dist/components/MobileHeader.vue.js +1 -1
  56. package/dist/components/MobileHeader.vue2.js +19 -19
  57. package/dist/components/Section/Section.vue.js +2 -2
  58. package/dist/components/Section/Section.vue2.js +1 -1
  59. package/dist/components/ShowMoreButton.vue.js +2 -2
  60. package/dist/components/ShowMoreButton.vue2.js +1 -1
  61. package/dist/components/Sidebar/Sidebar.vue.d.ts +2 -4
  62. package/dist/components/Sidebar/Sidebar.vue.d.ts.map +1 -1
  63. package/dist/components/Sidebar/Sidebar.vue.js +1 -1
  64. package/dist/components/Sidebar/Sidebar.vue2.js +113 -159
  65. package/dist/components/Sidebar/SidebarElement.vue.d.ts +2 -11
  66. package/dist/components/Sidebar/SidebarElement.vue.d.ts.map +1 -1
  67. package/dist/components/Sidebar/SidebarElement.vue.js +2 -2
  68. package/dist/components/Sidebar/SidebarElement.vue2.js +85 -81
  69. package/dist/components/Sidebar/SidebarHttpBadge.vue.d.ts +16 -1
  70. package/dist/components/Sidebar/SidebarHttpBadge.vue.d.ts.map +1 -1
  71. package/dist/components/Sidebar/SidebarHttpBadge.vue.js +2 -2
  72. package/dist/components/Sidebar/SidebarHttpBadge.vue2.js +11 -5
  73. package/dist/features/ApiClientModal/ApiClientModal.vue.d.ts.map +1 -1
  74. package/dist/features/ApiClientModal/ApiClientModal.vue.js +54 -42
  75. package/dist/features/ApiClientModal/useApiClient.d.ts +74 -72
  76. package/dist/features/ApiClientModal/useApiClient.d.ts.map +1 -1
  77. package/dist/features/DocumentSource/hooks/useDocumentSource.d.ts +0 -2
  78. package/dist/features/DocumentSource/hooks/useDocumentSource.d.ts.map +1 -1
  79. package/dist/features/DocumentSource/hooks/useDocumentSource.js +40 -67
  80. package/dist/features/DownloadLink/DownloadLink.vue.js +1 -1
  81. package/dist/features/ExampleRequest/ExampleRequest.vue.d.ts +5 -5
  82. package/dist/features/ExampleRequest/ExampleRequest.vue.d.ts.map +1 -1
  83. package/dist/features/ExampleRequest/ExampleRequest.vue.js +1 -1
  84. package/dist/features/ExampleRequest/ExampleRequest.vue2.js +200 -179
  85. package/dist/features/Operation/Operation.vue.d.ts +0 -1
  86. package/dist/features/Operation/Operation.vue.d.ts.map +1 -1
  87. package/dist/features/Operation/Operation.vue.js +31 -34
  88. package/dist/features/Operation/components/OperationParameters.vue.d.ts +3 -2
  89. package/dist/features/Operation/components/OperationParameters.vue.d.ts.map +1 -1
  90. package/dist/features/Operation/components/OperationParameters.vue.js +62 -64
  91. package/dist/features/Operation/components/OperationResponses.vue.d.ts +1 -2
  92. package/dist/features/Operation/components/OperationResponses.vue.d.ts.map +1 -1
  93. package/dist/features/Operation/components/OperationResponses.vue.js +2 -2
  94. package/dist/features/Operation/components/callbacks/Callback.vue.d.ts.map +1 -1
  95. package/dist/features/Operation/components/callbacks/Callback.vue.js +3 -3
  96. package/dist/features/Operation/components/callbacks/Callback.vue2.js +31 -38
  97. package/dist/features/Operation/hooks/useResponses.d.ts +3 -3
  98. package/dist/features/Operation/hooks/useResponses.d.ts.map +1 -1
  99. package/dist/features/Operation/hooks/useResponses.js +12 -13
  100. package/dist/features/Operation/index.d.ts +0 -1
  101. package/dist/features/Operation/index.d.ts.map +1 -1
  102. package/dist/features/Operation/layouts/ClassicLayout.vue.d.ts +4 -6
  103. package/dist/features/Operation/layouts/ClassicLayout.vue.d.ts.map +1 -1
  104. package/dist/features/Operation/layouts/ClassicLayout.vue.js +2 -2
  105. package/dist/features/Operation/layouts/ClassicLayout.vue2.js +85 -72
  106. package/dist/features/Operation/layouts/ModernLayout.vue.d.ts +2 -4
  107. package/dist/features/Operation/layouts/ModernLayout.vue.d.ts.map +1 -1
  108. package/dist/features/Operation/layouts/ModernLayout.vue.js +2 -2
  109. package/dist/features/Operation/layouts/ModernLayout.vue2.js +114 -98
  110. package/dist/features/Search/SearchModal.vue.js +2 -2
  111. package/dist/features/Search/SearchModal.vue2.js +1 -1
  112. package/dist/features/Search/useSearchIndex.d.ts.map +1 -1
  113. package/dist/features/Search/useSearchIndex.js +61 -64
  114. package/dist/features/sidebar/helpers/create-sidebar.d.ts +4 -2
  115. package/dist/features/sidebar/helpers/create-sidebar.d.ts.map +1 -1
  116. package/dist/features/sidebar/helpers/create-sidebar.js +33 -0
  117. package/dist/features/sidebar/hooks/useSidebar.d.ts +2 -3
  118. package/dist/features/sidebar/hooks/useSidebar.d.ts.map +1 -1
  119. package/dist/features/sidebar/hooks/useSidebar.js +18 -0
  120. package/dist/features/sidebar/index.d.ts +2 -1
  121. package/dist/features/sidebar/index.d.ts.map +1 -1
  122. package/dist/features/traverse-schema/helpers/get-tag.d.ts +4 -2
  123. package/dist/features/traverse-schema/helpers/get-tag.d.ts.map +1 -1
  124. package/dist/features/traverse-schema/helpers/get-tag.js +7 -0
  125. package/dist/features/traverse-schema/helpers/traverse-description.js +33 -0
  126. package/dist/features/traverse-schema/helpers/traverse-document.d.ts.map +1 -1
  127. package/dist/features/traverse-schema/helpers/traverse-document.js +34 -0
  128. package/dist/features/traverse-schema/helpers/traverse-paths.d.ts +5 -3
  129. package/dist/features/traverse-schema/helpers/traverse-paths.d.ts.map +1 -1
  130. package/dist/features/traverse-schema/helpers/traverse-paths.js +32 -0
  131. package/dist/features/traverse-schema/helpers/traverse-schemas.d.ts +2 -2
  132. package/dist/features/traverse-schema/helpers/traverse-schemas.d.ts.map +1 -1
  133. package/dist/features/traverse-schema/helpers/traverse-schemas.js +23 -0
  134. package/dist/features/traverse-schema/helpers/traverse-tags.d.ts +2 -2
  135. package/dist/features/traverse-schema/helpers/traverse-tags.d.ts.map +1 -1
  136. package/dist/features/traverse-schema/helpers/traverse-tags.js +43 -0
  137. package/dist/features/traverse-schema/helpers/traverse-webhooks.d.ts +2 -2
  138. package/dist/features/traverse-schema/helpers/traverse-webhooks.d.ts.map +1 -1
  139. package/dist/features/traverse-schema/helpers/traverse-webhooks.js +26 -0
  140. package/dist/features/traverse-schema/index.d.ts +3 -3
  141. package/dist/features/traverse-schema/index.d.ts.map +1 -1
  142. package/dist/features/traverse-schema/types.d.ts +8 -5
  143. package/dist/features/traverse-schema/types.d.ts.map +1 -1
  144. package/dist/helpers/parse.d.ts +2 -1
  145. package/dist/helpers/parse.d.ts.map +1 -1
  146. package/dist/helpers/parse.js +72 -88
  147. package/dist/hooks/useMultipleDocuments.d.ts +6 -6
  148. package/dist/hooks/useMultipleDocuments.d.ts.map +1 -1
  149. package/dist/hooks/useNavState.d.ts +1 -1
  150. package/dist/hooks/useNavState.d.ts.map +1 -1
  151. package/dist/hooks/useNavState.js +14 -9
  152. package/dist/hooks/useOperation.d.ts +7 -7
  153. package/dist/hooks/useOperation.d.ts.map +1 -1
  154. package/dist/hooks/useOperation.js +13 -12
  155. package/dist/index.d.ts +0 -1
  156. package/dist/index.d.ts.map +1 -1
  157. package/dist/index.js +23 -25
  158. package/dist/legacy/fixtures/index.d.ts +1 -1
  159. package/dist/libs/openapi.d.ts +3 -4
  160. package/dist/libs/openapi.d.ts.map +1 -1
  161. package/dist/libs/openapi.js +8 -9
  162. package/dist/style.css +1 -1
  163. package/dist/v2/ApiReferenceWorkspace.vue.d.ts +4 -18
  164. package/dist/v2/ApiReferenceWorkspace.vue.d.ts.map +1 -1
  165. package/dist/v2/ApiReferenceWorkspace.vue.js +68 -45
  166. package/package.json +16 -16
  167. package/dist/components/Content/Webhooks/index.d.ts +0 -2
  168. package/dist/components/Content/Webhooks/index.d.ts.map +0 -1
  169. package/dist/features/Operation/Webhooks.vue.d.ts +0 -7
  170. package/dist/features/Operation/Webhooks.vue.d.ts.map +0 -1
  171. package/dist/features/Operation/Webhooks.vue.js +0 -7
  172. package/dist/features/Operation/Webhooks.vue2.js +0 -121
  173. package/dist/features/Operation/components/Webhook.vue.d.ts +0 -7
  174. package/dist/features/Operation/components/Webhook.vue.d.ts.map +0 -1
  175. package/dist/features/Operation/components/Webhook.vue.js +0 -7
  176. package/dist/features/Operation/components/Webhook.vue2.js +0 -29
  177. package/dist/features/traverse-schema/helpers/operation-id-params.d.ts +0 -8
  178. package/dist/features/traverse-schema/helpers/operation-id-params.d.ts.map +0 -1
  179. package/dist/features/traverse-schema/helpers/operation-id-params.js +0 -8
  180. package/dist/hooks/useSidebar.d.ts +0 -53
  181. package/dist/hooks/useSidebar.d.ts.map +0 -1
  182. package/dist/hooks/useSidebar.js +0 -248
  183. package/dist/legacy/fixtures/httpRequestMethods.js +0 -14
@@ -1,12 +1,10 @@
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
- import V from "../../ScreenReader.vue.js";
3
- import { useNavState as _ } from "../../../hooks/useNavState.js";
4
- import v from "./OperationsListItem.vue.js";
5
- import I from "../../Card/Card.vue.js";
1
+ import { defineComponent as u, computed as f, createBlock as m, createCommentVNode as C, openBlock as o, unref as a, withCtx as t, createVNode as r, createTextVNode as p, toDisplayString as g, createElementVNode as k, createElementBlock as y, Fragment as N, renderList as _ } from "vue";
2
+ import O from "../../ScreenReader.vue.js";
3
+ import B from "./OperationsListItem.vue.js";
4
+ import V from "../../Card/Card.vue.js";
6
5
  import L from "../../Card/CardHeader.vue.js";
7
- import S from "../../Card/CardContent.vue.js";
8
- import { operationIdParams as b } from "../../../features/traverse-schema/helpers/operation-id-params.js";
9
- const h = ["aria-label"], $ = /* @__PURE__ */ f({
6
+ import b from "../../Card/CardContent.vue.js";
7
+ const h = ["aria-label"], F = /* @__PURE__ */ u({
10
8
  __name: "OperationsList",
11
9
  props: {
12
10
  tag: {},
@@ -14,42 +12,41 @@ const h = ["aria-label"], $ = /* @__PURE__ */ f({
14
12
  isCollapsed: { type: Boolean }
15
13
  },
16
14
  setup(c) {
17
- const l = c, { getOperationId: u } = _(), n = g(() => l.tag["x-displayName"] ?? l.tag.name);
15
+ const l = c, n = f(() => l.tag["x-displayName"] ?? l.tag.name);
18
16
  return (e, s) => {
19
17
  var i;
20
- return ((i = e.tag.operations) == null ? void 0 : i.length) > 0 ? (a(), p(t(I), {
18
+ return ((i = e.tag.operations) == null ? void 0 : i.length) > 0 ? (o(), m(a(V), {
21
19
  key: 0,
22
20
  class: "scalar-card-sticky"
23
21
  }, {
24
- default: o(() => [
25
- r(t(L), { muted: "" }, {
26
- default: o(() => [
27
- r(V, null, {
28
- default: o(() => [
29
- d(N(n.value), 1)
22
+ default: t(() => [
23
+ r(a(L), { muted: "" }, {
24
+ default: t(() => [
25
+ r(O, null, {
26
+ default: t(() => [
27
+ p(g(n.value), 1)
30
28
  ]),
31
29
  _: 1
32
30
  }),
33
- s[0] || (s[0] = d(" Operations "))
31
+ s[0] || (s[0] = p(" Operations "))
34
32
  ]),
35
33
  _: 1
36
34
  }),
37
- r(t(S), {
35
+ r(a(b), {
38
36
  class: "custom-scroll",
39
37
  muted: ""
40
38
  }, {
41
- default: o(() => [
39
+ default: t(() => [
42
40
  k("ul", {
43
41
  "aria-label": `${n.value} endpoints`,
44
42
  class: "endpoints"
45
43
  }, [
46
- (a(!0), y(O, null, B(e.tag.operations, (m) => (a(), p(v, {
47
- key: t(u)(t(b)(m), e.tag),
44
+ (o(!0), y(N, null, _(e.tag.operations, (d) => (o(), m(B, {
45
+ key: d.id,
48
46
  collection: e.collection,
49
47
  isCollapsed: e.isCollapsed,
50
- tag: e.tag,
51
- transformedOperation: m
52
- }, null, 8, ["collection", "isCollapsed", "tag", "transformedOperation"]))), 128))
48
+ transformedOperation: d
49
+ }, null, 8, ["collection", "isCollapsed", "transformedOperation"]))), 128))
53
50
  ], 8, h)
54
51
  ]),
55
52
  _: 1
@@ -61,5 +58,5 @@ const h = ["aria-label"], $ = /* @__PURE__ */ f({
61
58
  }
62
59
  });
63
60
  export {
64
- $ as default
61
+ F as default
65
62
  };
@@ -1,11 +1,10 @@
1
1
  import type { Collection } from '@scalar/oas-utils/entities/spec';
2
- import type { Tag, TransformedOperation } from '@scalar/types/legacy';
2
+ import type { TransformedOperation } from '@scalar/types/legacy';
3
3
  type __VLS_Props = {
4
4
  transformedOperation: TransformedOperation;
5
- tag: Tag;
6
5
  collection: Collection;
7
6
  isCollapsed?: boolean;
8
7
  };
9
- declare const _default: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
8
+ declare const _default: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, HTMLLIElement>;
10
9
  export default _default;
11
10
  //# sourceMappingURL=OperationsListItem.vue.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"OperationsListItem.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/Content/Tag/OperationsListItem.vue"],"names":[],"mappings":"AAqIA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,iCAAiC,CAAA;AACjE,OAAO,KAAK,EAAE,GAAG,EAAE,oBAAoB,EAAE,MAAM,sBAAsB,CAAA;AAcrE,KAAK,WAAW,GAAG;IACjB,oBAAoB,EAAE,oBAAoB,CAAA;IAC1C,GAAG,EAAE,GAAG,CAAA;IACR,UAAU,EAAE,UAAU,CAAA;IACtB,WAAW,CAAC,EAAE,OAAO,CAAA;CACtB,CAAC;;AAoJF,wBAMG"}
1
+ {"version":3,"file":"OperationsListItem.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/Content/Tag/OperationsListItem.vue"],"names":[],"mappings":"AAyHA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,iCAAiC,CAAA;AACjE,OAAO,KAAK,EAEV,oBAAoB,EAErB,MAAM,sBAAsB,CAAA;AAU7B,KAAK,WAAW,GAAG;IACjB,oBAAoB,EAAE,oBAAoB,CAAA;IAC1C,UAAU,EAAE,UAAU,CAAA;IACtB,WAAW,CAAC,EAAE,OAAO,CAAA;CACtB,CAAC;;AAmJF,wBAOG"}
@@ -1,7 +1,7 @@
1
1
  import t from "./OperationsListItem.vue2.js";
2
2
  /* empty css */
3
3
  import o from "../../../_virtual/_plugin-vue_export-helper.js";
4
- const s = /* @__PURE__ */ o(t, [["__scopeId", "data-v-975d0b2f"]]);
4
+ const m = /* @__PURE__ */ o(t, [["__scopeId", "data-v-fd24f64e"]]);
5
5
  export {
6
- s as default
6
+ m as default
7
7
  };
@@ -1,69 +1,68 @@
1
- import { defineComponent as h, computed as O, createElementBlock as g, createCommentVNode as i, unref as t, openBlock as l, createBlock as k, createElementVNode as m, withCtx as C, createTextVNode as v, toDisplayString as p, withModifiers as y, createVNode as B, normalizeClass as N } from "vue";
2
- import { useWorkspace as V } from "@scalar/api-client/store";
3
- import { getPointer as I } from "../../../blocks/helpers/getPointer.js";
4
- import { useBlockProps as S } from "../../../blocks/hooks/useBlockProps.js";
5
- import { useNavState as w } from "../../../hooks/useNavState.js";
6
- import { useSidebar as H } from "../../../hooks/useSidebar.js";
7
- import { isOperationDeprecated as P } from "../../../libs/openapi.js";
8
- import { operationIdParams as s } from "../../../features/traverse-schema/helpers/operation-id-params.js";
9
- import T from "../../Section/SectionHeaderTag.vue.js";
10
- import $ from "../../HttpMethod/HttpMethod.vue.js";
11
- const b = ["href"], J = /* @__PURE__ */ h({
1
+ import { defineComponent as f, computed as c, createElementBlock as h, openBlock as r, createBlock as i, createCommentVNode as s, createElementVNode as n, unref as t, withCtx as u, createTextVNode as O, toDisplayString as l, withModifiers as y, createVNode as k, normalizeStyle as C, normalizeClass as V } from "vue";
2
+ import { getHttpMethodInfo as b } from "@scalar/helpers/http/http-info";
3
+ import { ScalarIconWebhooksLogo as g } from "@scalar/icons";
4
+ import { isOperationDeprecated as v } from "../../../libs/openapi.js";
5
+ import { useSidebar as w } from "../../../features/sidebar/hooks/useSidebar.js";
6
+ import S from "../../Section/SectionHeaderTag.vue.js";
7
+ import B from "../../HttpMethod/HttpMethod.vue.js";
8
+ const H = ["href"], N = { class: "flex min-w-[62px] flex-row items-center justify-end gap-2" }, W = /* @__PURE__ */ f({
12
9
  __name: "OperationsListItem",
13
10
  props: {
14
11
  transformedOperation: {},
15
- tag: {},
16
12
  collection: {},
17
13
  isCollapsed: { type: Boolean }
18
14
  },
19
15
  setup(a) {
20
- const { getOperationId: n } = w(), { scrollToOperation: c } = H(), d = async (e) => {
21
- const o = n(s(e), a.tag);
22
- c(o, !0);
23
- }, f = V(), { operation: r } = S({
24
- store: f,
25
- collection: a.collection,
26
- location: I([
27
- "paths",
28
- a.transformedOperation.path,
29
- a.transformedOperation.httpVerb.toLowerCase()
30
- ])
31
- }), u = O(() => {
32
- var e, o;
33
- return ((e = r.value) == null ? void 0 : e.summary) || ((o = r.value) == null ? void 0 : o.path);
34
- });
35
- return (e, o) => t(r) ? (l(), g("li", {
36
- key: t(n)(t(s)(e.transformedOperation), e.tag),
16
+ const { scrollToOperation: m } = w(), p = async (e) => {
17
+ m(e.id, !0);
18
+ }, d = c(
19
+ () => {
20
+ var e, o;
21
+ return ((e = a.transformedOperation) == null ? void 0 : e.name) || ((o = a.transformedOperation) == null ? void 0 : o.path);
22
+ }
23
+ );
24
+ return (e, o) => (r(), h("li", {
25
+ key: e.transformedOperation.id,
37
26
  class: "contents"
38
27
  }, [
39
- e.isCollapsed ? (l(), k(t(T), {
28
+ e.isCollapsed ? (r(), i(t(S), {
40
29
  key: 0,
41
30
  class: "sr-only",
42
31
  level: 3
43
32
  }, {
44
- default: C(() => [
45
- v(p(u.value) + " (Hidden) ", 1)
33
+ default: u(() => [
34
+ O(l(d.value) + " (Hidden) ", 1)
46
35
  ]),
47
36
  _: 1
48
- })) : i("", !0),
49
- m("a", {
37
+ })) : s("", !0),
38
+ n("a", {
50
39
  class: "endpoint",
51
- href: `#${t(n)(t(s)(e.transformedOperation), e.tag)}`,
52
- onClick: o[0] || (o[0] = y((D) => d(e.transformedOperation), ["prevent"]))
40
+ href: `#${e.transformedOperation.id}`,
41
+ onClick: o[0] || (o[0] = y((I) => p(e.transformedOperation), ["prevent"]))
53
42
  }, [
54
- B(t($), {
55
- class: "endpoint-method",
56
- method: t(r).method
57
- }, null, 8, ["method"]),
58
- m("span", {
59
- class: N(["endpoint-path", {
60
- deprecated: t(P)(t(r))
43
+ n("div", N, [
44
+ e.transformedOperation.isWebhook ? (r(), i(t(g), {
45
+ key: 0,
46
+ style: C({
47
+ color: t(b)(e.transformedOperation.httpVerb).colorVar
48
+ })
49
+ }, null, 8, ["style"])) : s("", !0),
50
+ k(t(B), {
51
+ class: "endpoint-method min-w-0",
52
+ method: e.transformedOperation.httpVerb
53
+ }, null, 8, ["method"])
54
+ ]),
55
+ n("span", {
56
+ class: V(["endpoint-path", {
57
+ deprecated: t(v)(
58
+ e.transformedOperation.information
59
+ )
61
60
  }])
62
- }, p(t(r).path), 3)
63
- ], 8, b)
64
- ])) : i("", !0);
61
+ }, l(e.transformedOperation.path), 3)
62
+ ], 8, H)
63
+ ]));
65
64
  }
66
65
  });
67
66
  export {
68
- J as default
67
+ W as default
69
68
  };
@@ -1 +1 @@
1
- {"version":3,"file":"Tag.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/Content/Tag/Tag.vue"],"names":[],"mappings":"AAuEA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,iCAAiC,CAAA;AACjE,OAAO,KAAK,EAAE,GAAG,EAAE,MAAM,sBAAsB,CAAA;AAqB/C,KAAK,WAAW,GAAG;IACjB,EAAE,CAAC,EAAE,MAAM,CAAA;IACX,GAAG,EAAE,GAAG,CAAA;IACR,UAAU,EAAE,UAAU,CAAA;IACtB,QAAQ,CAAC,EAAE,MAAM,CAAA;IACjB,WAAW,CAAC,EAAE,OAAO,CAAA;CACtB,CAAC;;AAqKF,wBAOG"}
1
+ {"version":3,"file":"Tag.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/Content/Tag/Tag.vue"],"names":[],"mappings":"AAyEA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,iCAAiC,CAAA;AACjE,OAAO,KAAK,EAAE,GAAG,EAAE,MAAM,sBAAsB,CAAA;AAqB/C,KAAK,WAAW,GAAG;IACjB,EAAE,CAAC,EAAE,MAAM,CAAA;IACX,GAAG,EAAE,GAAG,CAAA;IACR,UAAU,EAAE,UAAU,CAAA;IACtB,QAAQ,CAAC,EAAE,MAAM,CAAA;IACjB,WAAW,CAAC,EAAE,OAAO,CAAA;CACtB,CAAC;;AAuKF,wBAOG"}
@@ -1,18 +1,18 @@
1
- import { defineComponent as c, computed as g, createBlock as n, openBlock as m, unref as e, withCtx as a, withDirectives as C, createVNode as t, createTextVNode as d, createCommentVNode as S, toDisplayString as v, vShow as h } from "vue";
1
+ import { defineComponent as C, computed as d, createBlock as m, openBlock as p, unref as e, withCtx as t, withDirectives as v, createVNode as o, createTextVNode as u, createCommentVNode as S, toDisplayString as _, vShow as h } from "vue";
2
2
  import { ScalarMarkdown as w } from "@scalar/components";
3
- import N from "../../ScreenReader.vue.js";
4
- import { useConfig as _ } from "../../../hooks/useConfig.js";
3
+ import I from "../../ScreenReader.vue.js";
4
+ import { useConfig as N } from "../../../hooks/useConfig.js";
5
5
  import { useNavState as k } from "../../../hooks/useNavState.js";
6
6
  import y from "./OperationsList.vue.js";
7
- import I from "../../Section/Section.vue.js";
8
- import T from "../../Section/SectionHeader.vue.js";
9
- import B from "../../Anchor/Anchor.vue.js";
10
- import L from "../../Section/SectionHeaderTag.vue.js";
11
- import V from "../../Section/SectionContent.vue.js";
12
- import b from "../../Section/SectionColumns.vue.js";
13
- import p from "../../Section/SectionColumn.vue.js";
14
- import D from "../../SpecificationExtension/SpecificationExtension.vue.js";
15
- const K = /* @__PURE__ */ c({
7
+ import T from "../../Section/Section.vue.js";
8
+ import B from "../../Section/SectionHeader.vue.js";
9
+ import L from "../../Anchor/Anchor.vue.js";
10
+ import V from "../../Section/SectionHeaderTag.vue.js";
11
+ import b from "../../Section/SectionContent.vue.js";
12
+ import D from "../../Section/SectionColumns.vue.js";
13
+ import s from "../../Section/SectionColumn.vue.js";
14
+ import H from "../../SpecificationExtension/SpecificationExtension.vue.js";
15
+ const P = /* @__PURE__ */ C({
16
16
  __name: "Tag",
17
17
  props: {
18
18
  id: {},
@@ -21,29 +21,27 @@ const K = /* @__PURE__ */ c({
21
21
  headerId: {},
22
22
  isCollapsed: { type: Boolean }
23
23
  },
24
- setup(s) {
25
- const l = s, { getTagId: u } = k(), i = _(), f = g(() => l.tag["x-displayName"] ?? l.tag.name);
26
- return (o, r) => (m(), n(e(I), {
27
- id: o.id,
28
- label: o.tag.name.toUpperCase(),
24
+ setup(f) {
25
+ const l = f, { getTagId: c } = k(), i = N(), r = d(() => l.id || c(l.tag) || ""), g = d(() => l.tag["x-displayName"] ?? l.tag.name);
26
+ return (a, n) => (p(), m(e(T), {
27
+ id: r.value,
28
+ label: a.tag.name.toUpperCase(),
29
29
  role: "none"
30
30
  }, {
31
- default: a(() => [
32
- C(t(e(T), null, {
33
- default: a(() => [
34
- t(e(B), {
35
- id: e(u)(o.tag)
36
- }, {
37
- default: a(() => [
38
- t(e(L), {
39
- id: o.headerId,
31
+ default: t(() => [
32
+ v(o(e(B), null, {
33
+ default: t(() => [
34
+ o(e(L), { id: r.value }, {
35
+ default: t(() => [
36
+ o(e(V), {
37
+ id: a.headerId,
40
38
  level: 2
41
39
  }, {
42
- default: a(() => [
43
- d(v(f.value) + " ", 1),
44
- o.isCollapsed ? (m(), n(N, { key: 0 }, {
45
- default: a(() => r[0] || (r[0] = [
46
- d(" (Collapsed)")
40
+ default: t(() => [
41
+ u(_(g.value) + " ", 1),
42
+ a.isCollapsed ? (p(), m(I, { key: 0 }, {
43
+ default: t(() => n[0] || (n[0] = [
44
+ u(" (Collapsed)")
47
45
  ])),
48
46
  _: 1
49
47
  })) : S("", !0)
@@ -58,27 +56,27 @@ const K = /* @__PURE__ */ c({
58
56
  }, 512), [
59
57
  [h, !e(i).isLoading]
60
58
  ]),
61
- t(e(V), {
59
+ o(e(b), {
62
60
  loading: e(i).isLoading
63
61
  }, {
64
- default: a(() => [
65
- t(e(b), null, {
66
- default: a(() => [
67
- t(e(p), null, {
68
- default: a(() => [
69
- t(e(w), {
70
- clamp: o.isCollapsed ? "7" : !1,
71
- value: o.tag.description,
62
+ default: t(() => [
63
+ o(e(D), null, {
64
+ default: t(() => [
65
+ o(e(s), null, {
66
+ default: t(() => [
67
+ o(e(w), {
68
+ clamp: a.isCollapsed ? "7" : !1,
69
+ value: a.tag.description,
72
70
  withImages: ""
73
71
  }, null, 8, ["clamp", "value"])
74
72
  ]),
75
73
  _: 1
76
74
  }),
77
- t(e(p), null, {
78
- default: a(() => [
79
- t(y, {
80
- collection: o.collection,
81
- tag: o.tag
75
+ o(e(s), null, {
76
+ default: t(() => [
77
+ o(y, {
78
+ collection: a.collection,
79
+ tag: a.tag
82
80
  }, null, 8, ["collection", "tag"])
83
81
  ]),
84
82
  _: 1
@@ -89,12 +87,12 @@ const K = /* @__PURE__ */ c({
89
87
  ]),
90
88
  _: 1
91
89
  }, 8, ["loading"]),
92
- t(e(D), { value: o.tag }, null, 8, ["value"])
90
+ o(e(H), { value: a.tag }, null, 8, ["value"])
93
91
  ]),
94
92
  _: 1
95
93
  }, 8, ["id", "label"]));
96
94
  }
97
95
  });
98
96
  export {
99
- K as default
97
+ P as default
100
98
  };
@@ -2,6 +2,8 @@ import type { Collection, Server } from '@scalar/oas-utils/entities/spec';
2
2
  import type { OpenAPIV3_1 } from '@scalar/openapi-types';
3
3
  import type { Spec, Tag as TagType } from '@scalar/types/legacy';
4
4
  type __VLS_Props = {
5
+ /** Just to set the id for webhooks, for now */
6
+ id?: string;
5
7
  collection: Collection;
6
8
  tags: TagType[];
7
9
  spec: Spec;
@@ -1 +1 @@
1
- {"version":3,"file":"TagList.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/Content/Tag/TagList.vue"],"names":[],"mappings":"AAkFA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,EAAE,MAAM,iCAAiC,CAAA;AACzE,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,uBAAuB,CAAA;AACxD,OAAO,KAAK,EAAE,IAAI,EAAE,GAAG,IAAI,OAAO,EAAE,MAAM,sBAAsB,CAAA;AAchE,KAAK,WAAW,GAAG;IACjB,UAAU,EAAE,UAAU,CAAA;IACtB,IAAI,EAAE,OAAO,EAAE,CAAA;IACf,IAAI,EAAE,IAAI,CAAA;IACV,MAAM,CAAC,EAAE,QAAQ,GAAG,SAAS,CAAA;IAC7B,MAAM,CAAC,EAAE,MAAM,CAAA;IACf,OAAO,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,WAAW,CAAC,YAAY,CAAC,GAAG,OAAO,CAAA;CAC7D,CAAC;;AAgIF,wBAMG"}
1
+ {"version":3,"file":"TagList.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/Content/Tag/TagList.vue"],"names":[],"mappings":"AAkFA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,EAAE,MAAM,iCAAiC,CAAA;AACzE,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,uBAAuB,CAAA;AACxD,OAAO,KAAK,EAAE,IAAI,EAAE,GAAG,IAAI,OAAO,EAAE,MAAM,sBAAsB,CAAA;AAahE,KAAK,WAAW,GAAG;IACjB,+CAA+C;IAC/C,EAAE,CAAC,EAAE,MAAM,CAAA;IACX,UAAU,EAAE,UAAU,CAAA;IACtB,IAAI,EAAE,OAAO,EAAE,CAAA;IACf,IAAI,EAAE,IAAI,CAAA;IACV,MAAM,CAAC,EAAE,QAAQ,GAAG,SAAS,CAAA;IAC7B,MAAM,CAAC,EAAE,MAAM,CAAA;IACf,OAAO,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,WAAW,CAAC,YAAY,CAAC,GAAG,OAAO,CAAA;CAC7D,CAAC;;AA8HF,wBAMG"}
@@ -1,15 +1,15 @@
1
- import { defineComponent as B, computed as f, createElementBlock as p, openBlock as s, Fragment as y, renderList as h, createBlock as n, unref as e, withCtx as l, resolveDynamicComponent as T, createVNode as v } from "vue";
2
- import { ScalarErrorBoundary as $ } from "@scalar/components";
3
- import { useNavState as b } from "../../../hooks/useNavState.js";
4
- import { useSidebar as C } from "../../../hooks/useSidebar.js";
5
- import O from "./TagAccordion.vue.js";
6
- import _ from "./TagSection.vue.js";
7
- import L from "../Lazy/Lazy.vue2.js";
8
- import { operationIdParams as I } from "../../../features/traverse-schema/helpers/operation-id-params.js";
9
- import E from "../../../features/Operation/Operation.vue.js";
10
- const G = /* @__PURE__ */ B({
1
+ import { defineComponent as S, computed as u, createElementBlock as f, openBlock as t, Fragment as p, renderList as y, createBlock as n, unref as o, withCtx as s, resolveDynamicComponent as B, createVNode as h } from "vue";
2
+ import { ScalarErrorBoundary as I } from "@scalar/components";
3
+ import { useNavState as T } from "../../../hooks/useNavState.js";
4
+ import C from "./TagAccordion.vue.js";
5
+ import b from "./TagSection.vue.js";
6
+ import { useSidebar as E } from "../../../features/sidebar/hooks/useSidebar.js";
7
+ import v from "../Lazy/Lazy.vue2.js";
8
+ import N from "../../../features/Operation/Operation.vue.js";
9
+ const q = /* @__PURE__ */ S({
11
10
  __name: "TagList",
12
11
  props: {
12
+ id: {},
13
13
  collection: {},
14
14
  tags: {},
15
15
  spec: {},
@@ -18,40 +18,39 @@ const G = /* @__PURE__ */ B({
18
18
  schemas: {}
19
19
  },
20
20
  setup(i) {
21
- const { getOperationId: c, getTagId: t, hash: z } = b(), { collapsedSidebarItems: m } = C(), g = f(
22
- () => i.layout === "classic" ? O : _
23
- ), k = f(
24
- () => i.tags.findIndex((o) => !m[t(o)]) + 1
25
- ), d = (o) => i.layout !== "classic" && !z.value.startsWith("model") && o > k.value;
26
- return (o, N) => (s(!0), p(y, null, h(o.tags, (r, u) => (s(), n(e(L), {
27
- id: e(t)(r),
28
- key: e(t)(r),
29
- isLazy: d(u)
21
+ const { getTagId: a, hash: L } = T(), { collapsedSidebarItems: c } = E(), g = u(
22
+ () => i.layout === "classic" ? C : b
23
+ ), z = u(
24
+ () => i.tags.findIndex((e) => !c[a(e)]) + 1
25
+ ), m = (e) => i.layout !== "classic" && !L.value.startsWith("model") && e > z.value;
26
+ return (e, O) => (t(!0), f(p, null, y(e.tags, (r, d) => (t(), n(o(v), {
27
+ id: e.id || o(a)(r),
28
+ key: e.id || o(a)(r),
29
+ isLazy: m(d)
30
30
  }, {
31
- default: l(() => [
32
- (s(), n(T(g.value), {
33
- id: e(t)(r),
34
- collection: o.collection,
35
- spec: o.spec,
31
+ default: s(() => [
32
+ (t(), n(B(g.value), {
33
+ id: e.id || o(a)(r),
34
+ collection: e.collection,
35
+ spec: e.spec,
36
36
  tag: r
37
37
  }, {
38
- default: l(() => [
39
- (s(!0), p(y, null, h(r.operations, (a, S) => (s(), n(e(L), {
40
- id: e(c)(e(I)(a), r),
41
- key: `${a.httpVerb}-${a.operationId}`,
42
- isLazy: d(u) || e(m)[e(t)(r)] && S > 0
38
+ default: s(() => [
39
+ (t(!0), f(p, null, y(r.operations, (l, k) => (t(), n(o(v), {
40
+ id: l.id,
41
+ key: l.id,
42
+ isLazy: m(d) || o(c)[o(a)(r)] && k > 0
43
43
  }, {
44
- default: l(() => [
45
- v(e($), null, {
46
- default: l(() => [
47
- v(e(E), {
48
- id: e(c)(e(I)(a), r),
49
- collection: o.collection,
50
- layout: o.layout,
51
- schemas: o.schemas,
52
- server: o.server,
53
- transformedOperation: a
54
- }, null, 8, ["id", "collection", "layout", "schemas", "server", "transformedOperation"])
44
+ default: s(() => [
45
+ h(o(I), null, {
46
+ default: s(() => [
47
+ h(o(N), {
48
+ collection: e.collection,
49
+ layout: e.layout,
50
+ schemas: e.schemas,
51
+ server: e.server,
52
+ transformedOperation: l
53
+ }, null, 8, ["collection", "layout", "schemas", "server", "transformedOperation"])
55
54
  ]),
56
55
  _: 2
57
56
  }, 1024)
@@ -67,5 +66,5 @@ const G = /* @__PURE__ */ B({
67
66
  }
68
67
  });
69
68
  export {
70
- G as default
69
+ q as default
71
70
  };
@@ -1 +1 @@
1
- {"version":3,"file":"TagSection.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/Content/Tag/TagSection.vue"],"names":[],"mappings":"AAgFA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,iCAAiC,CAAA;AACjE,OAAO,KAAK,EAAE,IAAI,EAAE,GAAG,IAAI,OAAO,EAAE,MAAM,sBAAsB,CAAA;AAChE,OAAO,EAAY,QAAQ,EAAc,MAAM,KAAK,CAAA;AAUpD,KAAK,WAAW,GAAG;IACjB,EAAE,CAAC,EAAE,MAAM,CAAA;IACX,GAAG,EAAE,OAAO,CAAA;IACZ,UAAU,EAAE,UAAU,CAAA;IACtB,IAAI,EAAE,IAAI,CAAA;CACX,CAAC;AAgCF,iBAAS,cAAc;WAyFT,OAAO,IAA6B;;yBAVpB,GAAG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;wCA4DwmgB,GAAG,8CAA8C,GAAG,yBAAyB,GAAG,6DAAmC,GAAG;;;;;;;;;EA7C9vgB;AAmBD,KAAK,oBAAoB,GAAG,UAAU,CAAC,OAAO,cAAc,CAAC,CAAC;AAC9D,QAAA,MAAM,eAAe,6SAOnB,CAAC;wBACkB,uBAAuB,CAAC,OAAO,eAAe,EAAE,oBAAoB,CAAC,OAAO,CAAC,CAAC;AAAnG,wBAAoG;AAWpG,KAAK,uBAAuB,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG;IACxC,QAAO;QACN,MAAM,EAAE,CAAC,CAAC;KAEV,CAAA;CACD,CAAC"}
1
+ {"version":3,"file":"TagSection.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/Content/Tag/TagSection.vue"],"names":[],"mappings":"AAiFA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,iCAAiC,CAAA;AACjE,OAAO,KAAK,EAAE,IAAI,EAAE,GAAG,IAAI,OAAO,EAAE,MAAM,sBAAsB,CAAA;AAChE,OAAO,EAAY,QAAQ,EAAc,MAAM,KAAK,CAAA;AAUpD,KAAK,WAAW,GAAG;IACjB,EAAE,CAAC,EAAE,MAAM,CAAA;IACX,GAAG,EAAE,OAAO,CAAA;IACZ,UAAU,EAAE,UAAU,CAAA;IACtB,IAAI,EAAE,IAAI,CAAA;CACX,CAAC;AAiCF,iBAAS,cAAc;WAyFT,OAAO,IAA6B;;yBAVpB,GAAG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;wCA4DwjgB,GAAG,8CAA8C,GAAG,yBAAyB,GAAG,6DAAmC,GAAG;;;;;;;;;EA7C9sgB;AAmBD,KAAK,oBAAoB,GAAG,UAAU,CAAC,OAAO,cAAc,CAAC,CAAC;AAC9D,QAAA,MAAM,eAAe,6SAOnB,CAAC;wBACkB,uBAAuB,CAAC,OAAO,eAAe,EAAE,oBAAoB,CAAC,OAAO,CAAC,CAAC;AAAnG,wBAAoG;AAWpG,KAAK,uBAAuB,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG;IACxC,QAAO;QACN,MAAM,EAAE,CAAC,CAAC;KAEV,CAAA;CACD,CAAC"}
@@ -1,7 +1,7 @@
1
1
  import o from "./TagSection.vue2.js";
2
2
  /* empty css */
3
3
  import t from "../../../_virtual/_plugin-vue_export-helper.js";
4
- const p = /* @__PURE__ */ t(o, [["__scopeId", "data-v-41ba0495"]]);
4
+ const f = /* @__PURE__ */ t(o, [["__scopeId", "data-v-e5bbfee4"]]);
5
5
  export {
6
- p as default
6
+ f as default
7
7
  };
@@ -1,10 +1,10 @@
1
- import { defineComponent as k, ref as f, useId as y, computed as u, createBlock as l, openBlock as n, unref as o, withCtx as C, createCommentVNode as b, createElementBlock as S, renderSlot as v, nextTick as T } from "vue";
2
- import I from "./Tag.vue.js";
1
+ import { defineComponent as v, ref as f, useId as y, computed as r, createBlock as i, openBlock as n, unref as a, withCtx as C, createCommentVNode as b, createElementBlock as S, renderSlot as I, nextTick as T } from "vue";
2
+ import _ from "./Tag.vue.js";
3
3
  import w from "../../ShowMoreButton.vue.js";
4
4
  import { useNavState as B } from "../../../hooks/useNavState.js";
5
- import { useSidebar as R } from "../../../hooks/useSidebar.js";
5
+ import { useSidebar as R } from "../../../features/sidebar/hooks/useSidebar.js";
6
6
  import N from "../../Section/SectionContainer.vue.js";
7
- const M = /* @__PURE__ */ k({
7
+ const V = /* @__PURE__ */ v({
8
8
  __name: "TagSection",
9
9
  props: {
10
10
  id: {},
@@ -13,49 +13,49 @@ const M = /* @__PURE__ */ k({
13
13
  spec: {}
14
14
  },
15
15
  setup(m) {
16
- const a = m, p = f(), r = f(), i = y(), { collapsedSidebarItems: s } = R(), { getTagId: c } = B(), d = u(
16
+ const o = m, p = f(), s = f(), c = y(), { collapsedSidebarItems: d } = R(), { getTagId: g } = B(), l = r(() => o.id || g(o.tag) || ""), u = r(
17
17
  () => {
18
18
  var e, t;
19
- return ((e = a.spec.tags) == null ? void 0 : e.length) && ((t = a.spec.tags) == null ? void 0 : t.length) > 1;
19
+ return ((e = o.spec.tags) == null ? void 0 : e.length) && ((t = o.spec.tags) == null ? void 0 : t.length) > 1;
20
20
  }
21
- ), g = u(
21
+ ), h = r(
22
22
  () => {
23
23
  var e, t;
24
- return d.value || ((e = a.tag) == null ? void 0 : e.name) !== "default" || ((t = a.tag) == null ? void 0 : t.description) !== "";
24
+ return u.value || ((e = o.tag) == null ? void 0 : e.name) !== "default" || ((t = o.tag) == null ? void 0 : t.description) !== "";
25
25
  }
26
26
  );
27
- async function h() {
27
+ async function k() {
28
28
  var e, t;
29
- await T(), (t = (e = r.value) == null ? void 0 : e.querySelector("button")) == null || t.focus();
29
+ await T(), (t = (e = s.value) == null ? void 0 : e.querySelector("button")) == null || t.focus();
30
30
  }
31
- return (e, t) => (n(), l(o(N), {
31
+ return (e, t) => (n(), i(a(N), {
32
32
  ref_key: "sectionContainerRef",
33
33
  ref: p,
34
- "aria-labelledby": o(i),
34
+ "aria-labelledby": a(c),
35
35
  class: "tag-section-container",
36
36
  role: "region"
37
37
  }, {
38
38
  default: C(() => [
39
- g.value ? (n(), l(I, {
39
+ h.value ? (n(), i(_, {
40
40
  key: 0,
41
41
  id: e.id,
42
42
  collection: e.collection,
43
- headerId: o(i),
44
- isCollapsed: !o(s)[o(c)(e.tag)],
43
+ headerId: a(c),
44
+ isCollapsed: !a(d)[l.value],
45
45
  tag: e.tag
46
46
  }, null, 8, ["id", "collection", "headerId", "isCollapsed", "tag"])) : b("", !0),
47
- !o(s)[o(c)(e.tag)] && d.value ? (n(), l(w, {
47
+ !a(d)[l.value] && u.value ? (n(), i(w, {
48
48
  key: 1,
49
- id: e.id ?? "",
49
+ id: l.value,
50
50
  "aria-label": `Show all ${e.tag["x-displayName"] ?? e.tag.name} endpoints`,
51
- onClick: h
51
+ onClick: k
52
52
  }, null, 8, ["id", "aria-label"])) : (n(), S("div", {
53
53
  key: 2,
54
54
  ref_key: "contentsRef",
55
- ref: r,
55
+ ref: s,
56
56
  class: "contents"
57
57
  }, [
58
- v(e.$slots, "default", {}, void 0, !0)
58
+ I(e.$slots, "default", {}, void 0, !0)
59
59
  ], 512))
60
60
  ]),
61
61
  _: 3
@@ -63,5 +63,5 @@ const M = /* @__PURE__ */ k({
63
63
  }
64
64
  });
65
65
  export {
66
- M as default
66
+ V as default
67
67
  };
@@ -10,6 +10,21 @@ type __VLS_Props = {
10
10
  /** The HTTP method to show */
11
11
  method: OpenAPI.HttpMethod | string;
12
12
  };
13
- declare const _default: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
13
+ declare function __VLS_template(): {
14
+ attrs: Partial<{}>;
15
+ slots: {
16
+ default?(_: {}): any;
17
+ };
18
+ refs: {};
19
+ rootEl: any;
20
+ };
21
+ type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
22
+ 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, {}, any>;
23
+ declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
14
24
  export default _default;
25
+ type __VLS_WithTemplateSlots<T, S> = T & {
26
+ new (): {
27
+ $slots: S;
28
+ };
29
+ };
15
30
  //# sourceMappingURL=HttpMethod.vue.d.ts.map