@scalar/api-reference 1.28.33 → 1.29.1

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 (227) hide show
  1. package/CHANGELOG.md +83 -0
  2. package/dist/browser/standalone.js +12818 -13331
  3. package/dist/browser/webpack-stats.json +1 -1
  4. package/dist/components/Anchor/Anchor.vue.d.ts.map +1 -1
  5. package/dist/components/Anchor/Anchor.vue.js +2 -2
  6. package/dist/components/Anchor/Anchor.vue2.js +24 -22
  7. package/dist/components/ApiReferenceLayout.vue.d.ts +2 -2
  8. package/dist/components/ApiReferenceLayout.vue.d.ts.map +1 -1
  9. package/dist/components/ApiReferenceLayout.vue.js +2 -2
  10. package/dist/components/ApiReferenceLayout.vue2.js +50 -50
  11. package/dist/components/Content/ClientLibraries/ClientLibraries.vue.d.ts.map +1 -1
  12. package/dist/components/Content/ClientLibraries/ClientLibraries.vue.js +2 -2
  13. package/dist/components/Content/ClientLibraries/ClientLibraries.vue2.js +5 -5
  14. package/dist/components/Content/ClientLibraries/useFeaturedHttpClients.d.ts +1 -1
  15. package/dist/components/Content/ClientLibraries/useFeaturedHttpClients.d.ts.map +1 -1
  16. package/dist/components/Content/Content.vue.js +2 -2
  17. package/dist/components/Content/Content.vue2.js +31 -32
  18. package/dist/components/Content/Introduction/Introduction.vue.js +1 -1
  19. package/dist/components/Content/Introduction/Introduction.vue2.js +21 -21
  20. package/dist/components/Content/Lazy/Loading.vue.js +22 -22
  21. package/dist/components/Content/Models/Models.vue.d.ts.map +1 -1
  22. package/dist/components/Content/Models/Models.vue.js +2 -2
  23. package/dist/components/Content/Models/Models.vue2.js +17 -17
  24. package/dist/components/Content/Models/ModelsAccordion.vue.d.ts.map +1 -1
  25. package/dist/components/Content/Models/ModelsAccordion.vue.js +2 -2
  26. package/dist/components/Content/Models/ModelsAccordion.vue2.js +14 -14
  27. package/dist/components/Content/Schema/Schema.preview.d.ts +98 -15
  28. package/dist/components/Content/Schema/Schema.preview.d.ts.map +1 -1
  29. package/dist/components/Content/Schema/Schema.vue.d.ts.map +1 -1
  30. package/dist/components/Content/Schema/Schema.vue.js +2 -2
  31. package/dist/components/Content/Schema/Schema.vue2.js +2 -1
  32. package/dist/components/Content/Schema/{SchemaDiscriminator.vue.d.ts → SchemaComposition.vue.d.ts} +3 -2
  33. package/dist/components/Content/Schema/SchemaComposition.vue.d.ts.map +1 -0
  34. package/dist/components/Content/Schema/SchemaComposition.vue.js +187 -0
  35. package/dist/components/Content/Schema/SchemaComposition.vue2.js +4 -0
  36. package/dist/components/Content/Schema/SchemaProperty.vue.d.ts +1 -1
  37. package/dist/components/Content/Schema/SchemaProperty.vue.d.ts.map +1 -1
  38. package/dist/components/Content/Schema/SchemaProperty.vue.js +2 -2
  39. package/dist/components/Content/Schema/SchemaProperty.vue2.js +31 -30
  40. package/dist/components/Content/Schema/SchemaPropertyExamples.vue.d.ts +0 -1
  41. package/dist/components/Content/Schema/SchemaPropertyExamples.vue.d.ts.map +1 -1
  42. package/dist/components/Content/Schema/SchemaPropertyExamples.vue.js +3 -3
  43. package/dist/components/Content/Schema/SchemaPropertyExamples.vue2.js +8 -9
  44. package/dist/components/Content/Schema/SchemaPropertyHeading.vue.d.ts.map +1 -1
  45. package/dist/components/Content/Schema/SchemaPropertyHeading.vue.js +1 -1
  46. package/dist/components/Content/Schema/SchemaPropertyHeading.vue2.js +165 -146
  47. package/dist/components/Content/Schema/helpers/merge-all-of-schemas.d.ts +1 -1
  48. package/dist/components/Content/Schema/helpers/merge-all-of-schemas.d.ts.map +1 -1
  49. package/dist/components/Content/Schema/helpers/merge-all-of-schemas.js +50 -40
  50. package/dist/components/Content/Schema/helpers/optimizeValueForDisplay.d.ts +3 -2
  51. package/dist/components/Content/Schema/helpers/optimizeValueForDisplay.d.ts.map +1 -1
  52. package/dist/components/Content/Schema/helpers/optimizeValueForDisplay.js +13 -13
  53. package/dist/components/Content/Schema/helpers/schema-composition.d.ts +12 -0
  54. package/dist/components/Content/Schema/helpers/schema-composition.d.ts.map +1 -0
  55. package/dist/components/Content/Schema/helpers/schema-composition.js +8 -0
  56. package/dist/components/Content/Schema/helpers/schema-discriminator.d.ts +4 -0
  57. package/dist/components/Content/Schema/helpers/schema-discriminator.d.ts.map +1 -0
  58. package/dist/components/Content/Tag/OperationsListItem.vue.js +1 -1
  59. package/dist/components/Content/Tag/OperationsListItem.vue2.js +1 -1
  60. package/dist/components/Content/Tag/TagAccordion.vue.js +2 -2
  61. package/dist/components/Content/Tag/TagAccordion.vue2.js +10 -10
  62. package/dist/components/Content/Tag/TagList.vue.d.ts.map +1 -1
  63. package/dist/components/Content/Tag/TagList.vue.js +8 -8
  64. package/dist/components/Content/Tag/TagSection.vue.d.ts.map +1 -1
  65. package/dist/components/Content/Tag/TagSection.vue.js +2 -2
  66. package/dist/components/Content/Tag/TagSection.vue2.js +8 -8
  67. package/dist/components/GettingStarted.vue.d.ts +2 -2
  68. package/dist/components/Layouts/Layouts.vue.d.ts +3 -0
  69. package/dist/components/Layouts/Layouts.vue.d.ts.map +1 -1
  70. package/dist/components/Layouts/Layouts.vue.js +14 -23
  71. package/dist/components/Layouts/ModernLayout.vue.d.ts.map +1 -1
  72. package/dist/components/Layouts/ModernLayout.vue.js +2 -2
  73. package/dist/components/Layouts/ModernLayout.vue2.js +51 -45
  74. package/dist/components/MobileHeader.vue.js +3 -3
  75. package/dist/components/Section/CompactSection.vue.js +2 -2
  76. package/dist/components/Section/CompactSection.vue2.js +4 -4
  77. package/dist/components/Section/Section.vue.d.ts.map +1 -1
  78. package/dist/components/Section/Section.vue.js +1 -1
  79. package/dist/components/ShowMoreButton.vue.d.ts.map +1 -1
  80. package/dist/components/ShowMoreButton.vue.js +2 -2
  81. package/dist/components/Sidebar/Sidebar.vue.d.ts +1 -1
  82. package/dist/components/Sidebar/Sidebar.vue.d.ts.map +1 -1
  83. package/dist/components/Sidebar/Sidebar.vue.js +2 -2
  84. package/dist/components/Sidebar/Sidebar.vue2.js +1 -1
  85. package/dist/components/Sidebar/SidebarElement.vue.d.ts.map +1 -1
  86. package/dist/components/Sidebar/SidebarElement.vue.js +1 -1
  87. package/dist/components/Sidebar/SidebarElement.vue2.js +6 -6
  88. package/dist/components/SingleApiReference.vue.d.ts +1 -0
  89. package/dist/components/SingleApiReference.vue.d.ts.map +1 -1
  90. package/dist/components/SingleApiReference.vue.js +25 -22
  91. package/dist/features/ApiClientModal/ApiClientModal.vue.d.ts +1 -1
  92. package/dist/features/ApiClientModal/ApiClientModal.vue.d.ts.map +1 -1
  93. package/dist/features/ApiClientModal/ApiClientModal.vue.js +3 -3
  94. package/dist/features/ApiClientModal/index.d.ts +1 -1
  95. package/dist/features/ApiClientModal/index.d.ts.map +1 -1
  96. package/dist/features/ApiClientModal/useApiClient.d.ts +186 -146
  97. package/dist/features/ApiClientModal/useApiClient.d.ts.map +1 -1
  98. package/dist/features/BaseUrl/BaseUrl.vue.d.ts.map +1 -1
  99. package/dist/features/BaseUrl/BaseUrl.vue.js +11 -10
  100. package/dist/features/DownloadLink/DownloadLink.vue.d.ts +1 -1
  101. package/dist/features/DownloadLink/DownloadLink.vue.d.ts.map +1 -1
  102. package/dist/features/DownloadLink/DownloadLink.vue.js +1 -1
  103. package/dist/features/DownloadLink/DownloadLink.vue2.js +17 -17
  104. package/dist/features/ExampleRequest/ExampleRequest.vue.d.ts.map +1 -1
  105. package/dist/features/ExampleRequest/ExampleRequest.vue.js +1 -1
  106. package/dist/features/ExampleRequest/ExampleRequest.vue2.js +12 -12
  107. package/dist/features/Operation/Webhooks.vue.d.ts.map +1 -1
  108. package/dist/features/Operation/Webhooks.vue.js +2 -2
  109. package/dist/features/Operation/Webhooks.vue2.js +13 -13
  110. package/dist/features/Operation/components/ParameterListItem.vue.d.ts.map +1 -1
  111. package/dist/features/Operation/components/ParameterListItem.vue.js +2 -2
  112. package/dist/features/Operation/components/ParameterListItem.vue2.js +18 -18
  113. package/dist/features/Operation/components/RequestBody.vue.d.ts.map +1 -1
  114. package/dist/features/Operation/components/RequestBody.vue.js +2 -2
  115. package/dist/features/Operation/components/RequestBody.vue2.js +38 -32
  116. package/dist/features/Operation/hooks/useResponses.d.ts +1 -0
  117. package/dist/features/Operation/hooks/useResponses.d.ts.map +1 -1
  118. package/dist/features/Operation/hooks/useResponses.js +13 -12
  119. package/dist/features/Operation/layouts/ClassicLayout.vue.d.ts.map +1 -1
  120. package/dist/features/Operation/layouts/ClassicLayout.vue.js +2 -2
  121. package/dist/features/Operation/layouts/ClassicLayout.vue2.js +1 -1
  122. package/dist/features/Operation/layouts/ModernLayout.vue.js +1 -1
  123. package/dist/features/Operation/layouts/ModernLayout.vue2.js +1 -1
  124. package/dist/features/Search/SearchButton.vue.js +2 -2
  125. package/dist/features/Search/SearchButton.vue2.js +1 -1
  126. package/dist/features/Search/SearchModal.vue.d.ts.map +1 -1
  127. package/dist/features/Search/SearchModal.vue.js +2 -2
  128. package/dist/features/Search/SearchModal.vue2.js +1 -1
  129. package/dist/features/Search/useSearchIndex.d.ts +1 -1
  130. package/dist/features/Search/useSearchIndex.d.ts.map +1 -1
  131. package/dist/features/Search/useSearchIndex.js +20 -21
  132. package/dist/helpers/{isMacOs.d.ts → is-mac-os.d.ts} +1 -1
  133. package/dist/helpers/is-mac-os.d.ts.map +1 -0
  134. package/dist/helpers/parse.d.ts.map +1 -1
  135. package/dist/helpers/parse.js +1 -1
  136. package/dist/helpers/{scrollToId.d.ts → scroll-to-id.d.ts} +1 -1
  137. package/dist/helpers/scroll-to-id.d.ts.map +1 -0
  138. package/dist/helpers/sleep.d.ts +0 -2
  139. package/dist/helpers/sleep.d.ts.map +1 -1
  140. package/dist/hooks/useNavState.d.ts.map +1 -1
  141. package/dist/hooks/useNavState.js +28 -28
  142. package/dist/hooks/useReactiveSpec.js +1 -1
  143. package/dist/hooks/useSidebar.d.ts.map +1 -1
  144. package/dist/hooks/useSidebar.js +45 -49
  145. package/dist/index.d.ts +3 -3
  146. package/dist/index.d.ts.map +1 -1
  147. package/dist/index.js +44 -43
  148. package/dist/legacy/fixtures/index.d.ts +1 -1
  149. package/dist/legacy/fixtures/index.d.ts.map +1 -1
  150. package/dist/legacy/helpers/index.d.ts +1 -1
  151. package/dist/legacy/helpers/index.d.ts.map +1 -1
  152. package/dist/libs/download.d.ts +9 -0
  153. package/dist/libs/download.d.ts.map +1 -0
  154. package/dist/libs/download.js +19 -0
  155. package/dist/{helpers/getLowestHeadingLevel.d.ts → libs/markdown.d.ts} +5 -1
  156. package/dist/libs/markdown.d.ts.map +1 -0
  157. package/dist/libs/markdown.js +18 -0
  158. package/dist/libs/openapi.d.ts +56 -0
  159. package/dist/libs/openapi.d.ts.map +1 -0
  160. package/dist/libs/openapi.js +102 -0
  161. package/dist/style.css +1 -1
  162. package/dist/types.d.ts +1 -45
  163. package/dist/types.d.ts.map +1 -1
  164. package/package.json +22 -27
  165. package/dist/components/Content/Schema/SchemaDiscriminator.vue.d.ts.map +0 -1
  166. package/dist/components/Content/Schema/SchemaDiscriminator.vue.js +0 -7
  167. package/dist/components/Content/Schema/SchemaDiscriminator.vue2.js +0 -167
  168. package/dist/esm.js +0 -34
  169. package/dist/helpers/createEmptySpecification.d.ts +0 -8
  170. package/dist/helpers/createEmptySpecification.d.ts.map +0 -1
  171. package/dist/helpers/createEmptySpecification.js +0 -27
  172. package/dist/helpers/deepMerge.d.ts +0 -5
  173. package/dist/helpers/deepMerge.d.ts.map +0 -1
  174. package/dist/helpers/deepMerge.js +0 -8
  175. package/dist/helpers/generateParameters.d.ts +0 -6
  176. package/dist/helpers/generateParameters.d.ts.map +0 -1
  177. package/dist/helpers/get-request.d.ts +0 -59
  178. package/dist/helpers/get-request.d.ts.map +0 -1
  179. package/dist/helpers/getHeadingsFromMarkdown.d.ts +0 -6
  180. package/dist/helpers/getHeadingsFromMarkdown.d.ts.map +0 -1
  181. package/dist/helpers/getHeadingsFromMarkdown.js +0 -13
  182. package/dist/helpers/getLowestHeadingLevel.d.ts.map +0 -1
  183. package/dist/helpers/getLowestHeadingLevel.js +0 -7
  184. package/dist/helpers/getModels.d.ts +0 -7
  185. package/dist/helpers/getModels.d.ts.map +0 -1
  186. package/dist/helpers/getModels.js +0 -22
  187. package/dist/helpers/getVariableNames.d.ts +0 -5
  188. package/dist/helpers/getVariableNames.d.ts.map +0 -1
  189. package/dist/helpers/hasModels.d.ts +0 -3
  190. package/dist/helpers/hasModels.d.ts.map +0 -1
  191. package/dist/helpers/hasModels.js +0 -5
  192. package/dist/helpers/hasSecuritySchemes.d.ts +0 -3
  193. package/dist/helpers/hasSecuritySchemes.d.ts.map +0 -1
  194. package/dist/helpers/hasWebhooks.d.ts +0 -3
  195. package/dist/helpers/hasWebhooks.d.ts.map +0 -1
  196. package/dist/helpers/hasWebhooks.js +0 -4
  197. package/dist/helpers/index.d.ts +0 -17
  198. package/dist/helpers/index.d.ts.map +0 -1
  199. package/dist/helpers/isMacOs.d.ts.map +0 -1
  200. package/dist/helpers/mapFromObject.d.ts +0 -8
  201. package/dist/helpers/mapFromObject.d.ts.map +0 -1
  202. package/dist/helpers/mergeAllObjects.d.ts +0 -5
  203. package/dist/helpers/mergeAllObjects.d.ts.map +0 -1
  204. package/dist/helpers/scrollToId.d.ts.map +0 -1
  205. package/dist/helpers/specDownloads.d.ts +0 -7
  206. package/dist/helpers/specDownloads.d.ts.map +0 -1
  207. package/dist/helpers/specDownloads.js +0 -19
  208. package/dist/helpers/specHelpers.d.ts +0 -16
  209. package/dist/helpers/specHelpers.d.ts.map +0 -1
  210. package/dist/helpers/specHelpers.js +0 -36
  211. package/dist/helpers/waitFor.d.ts +0 -5
  212. package/dist/helpers/waitFor.d.ts.map +0 -1
  213. package/dist/hooks/index.d.ts +0 -5
  214. package/dist/hooks/index.d.ts.map +0 -1
  215. package/dist/legacy/helpers/encodeStringAsBase64.d.ts +0 -5
  216. package/dist/legacy/helpers/encodeStringAsBase64.d.ts.map +0 -1
  217. package/dist/legacy/index.d.ts +0 -5
  218. package/dist/legacy/index.d.ts.map +0 -1
  219. package/dist/legacy/types.d.ts +0 -94
  220. package/dist/legacy/types.d.ts.map +0 -1
  221. package/dist/libs/operation.d.ts +0 -15
  222. package/dist/libs/operation.d.ts.map +0 -1
  223. package/dist/libs/operation.js +0 -16
  224. package/dist/stores/index.d.ts +0 -2
  225. package/dist/stores/index.d.ts.map +0 -1
  226. /package/dist/helpers/{isMacOs.js → is-mac-os.js} +0 -0
  227. /package/dist/helpers/{scrollToId.js → scroll-to-id.js} +0 -0
@@ -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-03fcdc42"]]);
4
+ const s = /* @__PURE__ */ o(t, [["__scopeId", "data-v-04178576"]]);
5
5
  export {
6
6
  s as default
7
7
  };
@@ -4,7 +4,7 @@ import { getPointer as V } from "../../../blocks/helpers/getPointer.js";
4
4
  import { useBlockProps as S } from "../../../blocks/hooks/useBlockProps.js";
5
5
  import { useNavState as w } from "../../../hooks/useNavState.js";
6
6
  import { useSidebar as H } from "../../../hooks/useSidebar.js";
7
- import { isOperationDeprecated as I } from "../../../libs/operation.js";
7
+ import { isOperationDeprecated as I } from "../../../libs/openapi.js";
8
8
  import T from "../../Section/SectionHeaderTag.vue.js";
9
9
  import $ from "../../HttpMethod/HttpMethod.vue.js";
10
10
  const b = ["href"], F = /* @__PURE__ */ u({
@@ -1,7 +1,7 @@
1
1
  import o from "./TagAccordion.vue2.js";
2
2
  /* empty css */
3
3
  import r from "../../../_virtual/_plugin-vue_export-helper.js";
4
- const f = /* @__PURE__ */ r(o, [["__scopeId", "data-v-448f4a19"]]);
4
+ const d = /* @__PURE__ */ r(o, [["__scopeId", "data-v-ab8ddc14"]]);
5
5
  export {
6
- f as default
6
+ d as default
7
7
  };
@@ -1,26 +1,26 @@
1
1
  import { defineComponent as i, createBlock as n, openBlock as c, unref as e, withCtx as t, renderSlot as l, createVNode as a, createTextVNode as d, toDisplayString as s } from "vue";
2
2
  import { ScalarMarkdown as m } from "@scalar/components";
3
- import p from "../../Section/SectionContainerAccordion.vue.js";
4
- import f from "../../Section/SectionHeader.vue.js";
5
- import u from "../../Anchor/Anchor.vue.js";
6
- import g from "../../Section/SectionHeaderTag.vue.js";
7
- import { useNavState as _ } from "../../../hooks/useNavState.js";
3
+ import { useNavState as p } from "../../../hooks/useNavState.js";
4
+ import f from "../../Section/SectionContainerAccordion.vue.js";
5
+ import u from "../../Section/SectionHeader.vue.js";
6
+ import g from "../../Anchor/Anchor.vue.js";
7
+ import _ from "../../Section/SectionHeaderTag.vue.js";
8
8
  const B = /* @__PURE__ */ i({
9
9
  __name: "TagAccordion",
10
10
  props: {
11
11
  tag: {}
12
12
  },
13
13
  setup(S) {
14
- const { getTagId: r } = _();
15
- return (o, v) => (c(), n(e(p), { class: "tag-section" }, {
14
+ const { getTagId: r } = p();
15
+ return (o, v) => (c(), n(e(f), { class: "tag-section" }, {
16
16
  title: t(() => [
17
- a(e(f), { class: "tag-name" }, {
17
+ a(e(u), { class: "tag-name" }, {
18
18
  default: t(() => [
19
- a(e(u), {
19
+ a(e(g), {
20
20
  id: e(r)(o.tag)
21
21
  }, {
22
22
  default: t(() => [
23
- a(e(g), { level: 2 }, {
23
+ a(e(_), { level: 2 }, {
24
24
  default: t(() => [
25
25
  d(s(o.tag.name), 1)
26
26
  ]),
@@ -1 +1 @@
1
- {"version":3,"file":"TagList.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/Content/Tag/TagList.vue"],"names":[],"mappings":"AAoFA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,EAAE,MAAM,iCAAiC,CAAA;AACzE,OAAO,KAAK,EAAE,SAAS,EAAE,SAAS,EAAE,WAAW,EAAE,MAAM,uBAAuB,CAAA;AAC9E,OAAO,KAAK,EAAE,IAAI,EAAE,GAAG,IAAI,OAAO,EAAE,MAAM,sBAAsB,CAAA;AAYhE,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,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;;AA+HF,wBAMG"}
1
+ {"version":3,"file":"TagList.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/Content/Tag/TagList.vue"],"names":[],"mappings":"AAqFA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,EAAE,MAAM,iCAAiC,CAAA;AACzE,OAAO,KAAK,EAAE,SAAS,EAAE,SAAS,EAAE,WAAW,EAAE,MAAM,uBAAuB,CAAA;AAC9E,OAAO,KAAK,EAAE,IAAI,EAAE,GAAG,IAAI,OAAO,EAAE,MAAM,sBAAsB,CAAA;AAahE,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,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;;AA+HF,wBAMG"}
@@ -1,11 +1,11 @@
1
1
  import { defineComponent as S, computed as f, createElementBlock as p, openBlock as s, Fragment as y, renderList as h, createBlock as i, unref as o, withCtx as l, resolveDynamicComponent as B, createVNode as v } from "vue";
2
2
  import { ScalarErrorBoundary as T } from "@scalar/components";
3
- import $ from "./TagAccordion.vue.js";
4
- import b from "./TagSection.vue.js";
3
+ import { useNavState as $ } from "../../../hooks/useNavState.js";
4
+ import { useSidebar as b } from "../../../hooks/useSidebar.js";
5
+ import C from "./TagAccordion.vue.js";
6
+ import O from "./TagSection.vue.js";
5
7
  import L from "../Lazy/Lazy.vue2.js";
6
- import C from "../../../features/Operation/Operation.vue.js";
7
- import { useNavState as O } from "../../../hooks/useNavState.js";
8
- import { useSidebar as _ } from "../../../hooks/useSidebar.js";
8
+ import _ from "../../../features/Operation/Operation.vue.js";
9
9
  const q = /* @__PURE__ */ S({
10
10
  __name: "TagList",
11
11
  props: {
@@ -17,8 +17,8 @@ const q = /* @__PURE__ */ S({
17
17
  schemas: {}
18
18
  },
19
19
  setup(c) {
20
- const { getOperationId: n, getTagId: r, hash: z } = O(), { collapsedSidebarItems: m } = _(), I = f(
21
- () => c.layout === "classic" ? $ : b
20
+ const { getOperationId: n, getTagId: r, hash: z } = $(), { collapsedSidebarItems: m } = b(), I = f(
21
+ () => c.layout === "classic" ? C : O
22
22
  ), g = f(
23
23
  () => c.tags.findIndex((e) => !m[r(e)]) + 1
24
24
  ), u = (e) => c.layout !== "classic" && !z.value.startsWith("model") && e > g.value;
@@ -43,7 +43,7 @@ const q = /* @__PURE__ */ S({
43
43
  default: l(() => [
44
44
  v(o(T), null, {
45
45
  default: l(() => [
46
- v(o(C), {
46
+ v(o(_), {
47
47
  id: o(n)(a, t),
48
48
  collection: e.collection,
49
49
  layout: e.layout,
@@ -1 +1 @@
1
- {"version":3,"file":"TagSection.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/Content/Tag/TagSection.vue"],"names":[],"mappings":"AA+EA,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;AASpD,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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;wCA4DowgB,GAAG,8CAA8C,GAAG,yBAAyB,GAAG,6DAAmC,GAAG;;;;;;;;;EA7C15gB;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":"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,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 f = /* @__PURE__ */ t(o, [["__scopeId", "data-v-e5f682e5"]]);
4
+ const p = /* @__PURE__ */ t(o, [["__scopeId", "data-v-41ba0495"]]);
5
5
  export {
6
- f as default
6
+ p as default
7
7
  };
@@ -1,9 +1,9 @@
1
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 "../../ShowMoreButton.vue.js";
3
- import w from "./Tag.vue.js";
4
- import B from "../../Section/SectionContainer.vue.js";
2
+ import I from "./Tag.vue.js";
3
+ import w from "../../ShowMoreButton.vue.js";
4
+ import { useNavState as B } from "../../../hooks/useNavState.js";
5
5
  import { useSidebar as R } from "../../../hooks/useSidebar.js";
6
- import { useNavState as N } from "../../../hooks/useNavState.js";
6
+ import N from "../../Section/SectionContainer.vue.js";
7
7
  const M = /* @__PURE__ */ k({
8
8
  __name: "TagSection",
9
9
  props: {
@@ -13,7 +13,7 @@ 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 } = N(), d = u(
16
+ const a = m, p = f(), r = f(), i = y(), { collapsedSidebarItems: s } = R(), { getTagId: c } = B(), d = u(
17
17
  () => {
18
18
  var e, t;
19
19
  return ((e = a.spec.tags) == null ? void 0 : e.length) && ((t = a.spec.tags) == null ? void 0 : t.length) > 1;
@@ -28,7 +28,7 @@ const M = /* @__PURE__ */ k({
28
28
  var e, t;
29
29
  await T(), (t = (e = r.value) == null ? void 0 : e.querySelector("button")) == null || t.focus();
30
30
  }
31
- return (e, t) => (n(), l(o(B), {
31
+ return (e, t) => (n(), l(o(N), {
32
32
  ref_key: "sectionContainerRef",
33
33
  ref: p,
34
34
  "aria-labelledby": o(i),
@@ -36,7 +36,7 @@ const M = /* @__PURE__ */ k({
36
36
  role: "region"
37
37
  }, {
38
38
  default: C(() => [
39
- g.value ? (n(), l(w, {
39
+ g.value ? (n(), l(I, {
40
40
  key: 0,
41
41
  id: e.id,
42
42
  collection: e.collection,
@@ -44,7 +44,7 @@ const M = /* @__PURE__ */ k({
44
44
  isCollapsed: !o(s)[o(c)(e.tag)],
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(I, {
47
+ !o(s)[o(c)(e.tag)] && d.value ? (n(), l(w, {
48
48
  key: 1,
49
49
  id: e.id ?? "",
50
50
  "aria-label": `Show all ${e.tag["x-displayName"] ?? e.tag.name} endpoints`,
@@ -7,17 +7,17 @@ declare const _default: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {
7
7
  id: ThemeId;
8
8
  label: string;
9
9
  }) => any;
10
- updateContent: (value: string) => any;
11
10
  loadSwaggerFile: () => any;
12
11
  linkSwaggerFile: () => any;
12
+ updateContent: (value: string) => any;
13
13
  }, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{
14
14
  onChangeTheme?: ((args_0: {
15
15
  id: ThemeId;
16
16
  label: string;
17
17
  }) => any) | undefined;
18
- onUpdateContent?: ((value: string) => any) | undefined;
19
18
  onLoadSwaggerFile?: (() => any) | undefined;
20
19
  onLinkSwaggerFile?: (() => any) | undefined;
20
+ onUpdateContent?: ((value: string) => any) | undefined;
21
21
  }>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, HTMLDivElement>;
22
22
  export default _default;
23
23
  //# sourceMappingURL=GettingStarted.vue.d.ts.map
@@ -1,3 +1,6 @@
1
+ /**
2
+ * This component allows dynamic selection of various layout configurations
3
+ */
1
4
  import type { DocumentSelectorSlot, ReferenceLayoutProps, ReferenceLayoutSlots } from '../../types';
2
5
  declare function __VLS_template(): {
3
6
  attrs: Partial<{}>;
@@ -1 +1 @@
1
- {"version":3,"file":"Layouts.vue.d.ts","sourceRoot":"","sources":["../../../src/components/Layouts/Layouts.vue"],"names":[],"mappings":"AA6DA,OAAO,KAAK,EACV,oBAAoB,EACpB,oBAAoB,EACpB,oBAAoB,EACrB,MAAM,aAAa,CAAA;AAkCpB,iBAAS,cAAc;WA6ET,OAAO,IAA6B;;;;EAKjD;AAYD,KAAK,oBAAoB,GAAG,UAAU,CAAC,OAAO,cAAc,CAAC,CAAC;AAC9D,QAAA,MAAM,eAAe;;;;;;kFAOnB,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":"Layouts.vue.d.ts","sourceRoot":"","sources":["../../../src/components/Layouts/Layouts.vue"],"names":[],"mappings":"AA4CA;;GAEG;AACH,OAAO,KAAK,EACV,oBAAoB,EACpB,oBAAoB,EACpB,oBAAoB,EACrB,MAAM,aAAa,CAAA;AA2BpB,iBAAS,cAAc;WAuET,OAAO,IAA6B;;;;EAKjD;AAWD,KAAK,oBAAoB,GAAG,UAAU,CAAC,OAAO,cAAc,CAAC,CAAC;AAC9D,QAAA,MAAM,eAAe;;;;;;kFAOnB,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
- import { defineComponent as c, useSlots as f, computed as g, createBlock as y, openBlock as k, resolveDynamicComponent as C, mergeProps as S, createSlots as $, withCtx as n, renderSlot as s, renderList as D, normalizeProps as v, guardReactiveProps as L } from "vue";
1
+ import { defineComponent as l, useSlots as d, createBlock as u, openBlock as f, resolveDynamicComponent as g, mergeProps as c, createSlots as k, renderList as y, withCtx as C, renderSlot as D, normalizeProps as S, guardReactiveProps as $ } from "vue";
2
2
  import M from "./ClassicLayout.vue.js";
3
- import a from "./ModernLayout.vue.js";
4
- const b = /* @__PURE__ */ c({
3
+ import n from "./ModernLayout.vue.js";
4
+ const P = /* @__PURE__ */ l({
5
5
  __name: "Layouts",
6
6
  props: {
7
7
  configuration: {},
@@ -10,33 +10,24 @@ const b = /* @__PURE__ */ c({
10
10
  isDark: { type: Boolean }
11
11
  },
12
12
  emits: ["toggleDarkMode", "updateContent"],
13
- setup(l) {
14
- const p = l, m = f(), i = g(
15
- () => Object.keys(m).filter(
16
- (e) => e !== "document-selector"
17
- )
18
- ), u = {
19
- modern: a,
13
+ setup(s) {
14
+ const a = s, p = d(), i = {
15
+ modern: n,
20
16
  classic: M
21
17
  };
22
- return (e, o) => (k(), y(C(u[e.configuration.layout ?? "modern"] ?? a), S(p, {
23
- onToggleDarkMode: o[0] || (o[0] = (t) => e.$emit("toggleDarkMode")),
24
- onUpdateContent: o[1] || (o[1] = (t) => e.$emit("updateContent", t))
25
- }), $({
26
- "document-selector": n(() => [
27
- s(e.$slots, "document-selector")
28
- ]),
29
- _: 2
30
- }, [
31
- D(i.value, (t, r) => ({
18
+ return (o, e) => (f(), u(g(i[o.configuration.layout ?? "modern"] ?? n), c(a, {
19
+ onToggleDarkMode: e[0] || (e[0] = (t) => o.$emit("toggleDarkMode")),
20
+ onUpdateContent: e[1] || (e[1] = (t) => o.$emit("updateContent", t))
21
+ }), k({ _: 2 }, [
22
+ y(p, (t, r) => ({
32
23
  name: r,
33
- fn: n((d) => [
34
- s(e.$slots, r, v(L(d || {})))
24
+ fn: C((m) => [
25
+ D(o.$slots, r, S($(m || {})))
35
26
  ])
36
27
  }))
37
28
  ]), 1040));
38
29
  }
39
30
  });
40
31
  export {
41
- b as default
32
+ P as default
42
33
  };
@@ -1 +1 @@
1
- {"version":3,"file":"ModernLayout.vue.d.ts","sourceRoot":"","sources":["../../../src/components/Layouts/ModernLayout.vue"],"names":[],"mappings":"AAoIA,OAAO,KAAK,EACV,oBAAoB,EACpB,oBAAoB,EACpB,oBAAoB,EACrB,MAAM,SAAS,CAAA;AAsChB,iBAAS,cAAc;WA6JT,OAAO,IAA6B;;;;EAKjD;AAiBD,KAAK,oBAAoB,GAAG,UAAU,CAAC,OAAO,cAAc,CAAC,CAAC;AAC9D,QAAA,MAAM,eAAe;;;;;;kFAQnB,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":"ModernLayout.vue.d.ts","sourceRoot":"","sources":["../../../src/components/Layouts/ModernLayout.vue"],"names":[],"mappings":"AAuJA,OAAO,KAAK,EACV,oBAAoB,EACpB,oBAAoB,EACpB,oBAAoB,EACrB,MAAM,SAAS,CAAA;AA2ChB,iBAAS,cAAc;WA+JT,OAAO,IAA6B;;;;EAKjD;AAkBD,KAAK,oBAAoB,GAAG,UAAU,CAAC,OAAO,cAAc,CAAC,CAAC;AAC9D,QAAA,MAAM,eAAe;;;;;;kFAQnB,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"}
@@ -2,7 +2,7 @@ import o from "./ModernLayout.vue2.js";
2
2
  /* empty css */
3
3
  /* empty css */
4
4
  import t from "../../_virtual/_plugin-vue_export-helper.js";
5
- const d = /* @__PURE__ */ t(o, [["__scopeId", "data-v-b89dd3cb"]]);
5
+ const e = /* @__PURE__ */ t(o, [["__scopeId", "data-v-9a1acea3"]]);
6
6
  export {
7
- d as default
7
+ e as default
8
8
  };
@@ -1,16 +1,17 @@
1
- import { defineComponent as v, useSlots as C, watch as c, createBlock as u, openBlock as t, normalizeClass as B, createSlots as w, withCtx as n, createVNode as f, unref as s, createCommentVNode as d, createElementBlock as p, renderSlot as m, isRef as D, renderList as M, normalizeProps as $, guardReactiveProps as V } from "vue";
1
+ import { defineComponent as B, useSlots as w, watch as f, computed as $, createBlock as u, openBlock as t, normalizeClass as D, createSlots as M, withCtx as a, createVNode as m, unref as i, createCommentVNode as d, createElementBlock as p, renderSlot as c, normalizeProps as g, guardReactiveProps as S, isRef as V, renderList as K } from "vue";
2
2
  import { OpenApiClientButton as H } from "@scalar/api-client/components";
3
- import { ScalarSidebarFooter as K, ScalarColorModeToggleButton as L } from "@scalar/components";
4
- import { useBreakpoints as N } from "@scalar/use-hooks/useBreakpoints";
5
- import R from "../ApiReferenceLayout.vue.js";
6
- import U from "../MobileHeader.vue.js";
7
- import z from "../../features/Search/SearchButton.vue.js";
8
- import { useSidebar as A } from "../../hooks/useSidebar.js";
9
- import { useNavState as O } from "../../hooks/useNavState.js";
10
- const P = { key: 0 }, T = {
3
+ import { ScalarSidebarFooter as L, ScalarColorModeToggleButton as N } from "@scalar/components";
4
+ import { getObjectKeys as O } from "@scalar/oas-utils/helpers";
5
+ import { useBreakpoints as R } from "@scalar/use-hooks/useBreakpoints";
6
+ import U from "../ApiReferenceLayout.vue.js";
7
+ import z from "../MobileHeader.vue.js";
8
+ import { useNavState as A } from "../../hooks/useNavState.js";
9
+ import { useSidebar as T } from "../../hooks/useSidebar.js";
10
+ import j from "../../features/Search/SearchButton.vue.js";
11
+ const E = { key: 0 }, F = {
11
12
  key: 1,
12
13
  class: "scalar-api-references-standalone-search"
13
- }, E = { key: 1 }, Y = /* @__PURE__ */ v({
14
+ }, P = { key: 1 }, x = /* @__PURE__ */ B({
14
15
  __name: "ModernLayout",
15
16
  props: {
16
17
  configuration: {},
@@ -19,59 +20,64 @@ const P = { key: 0 }, T = {
19
20
  isDark: { type: Boolean }
20
21
  },
21
22
  emits: ["toggleDarkMode", "updateContent"],
22
- setup(g) {
23
- const l = g, S = C(), { mediaQueries: k } = N(), { isSidebarOpen: a } = A(), h = !1;
24
- c(k.lg, (e, o) => {
25
- o && !e && (a.value = !1);
23
+ setup(k) {
24
+ const s = k, h = w(), { mediaQueries: b } = R(), { isSidebarOpen: n } = T(), v = !1;
25
+ f(b.lg, (e, o) => {
26
+ o && !e && (n.value = !1);
26
27
  });
27
- const { hash: y } = O();
28
- return c(y, (e, o) => {
29
- e && e !== o && (a.value = !1);
30
- }), (e, o) => (t(), u(R, {
31
- class: B({
28
+ const { hash: y } = A();
29
+ f(y, (e, o) => {
30
+ e && e !== o && (n.value = !1);
31
+ });
32
+ const C = $(
33
+ () => O(h).filter((e) => e !== "sidebar-start")
34
+ );
35
+ return (e, o) => (t(), u(U, {
36
+ class: D({
32
37
  "scalar-api-references-standalone-mobile": e.configuration.showSidebar ?? !0
33
38
  }),
34
39
  configuration: e.configuration,
35
40
  parsedSpec: e.parsedSpec,
36
41
  rawSpec: e.rawSpec,
37
42
  onUpdateContent: o[2] || (o[2] = (r) => e.$emit("updateContent", r))
38
- }, w({
39
- header: n(() => [
40
- e.configuration.showSidebar ?? !0 ? (t(), u(U, {
43
+ }, M({
44
+ header: a(() => [
45
+ e.configuration.showSidebar ?? !0 ? (t(), u(z, {
41
46
  key: 0,
42
- open: s(a),
43
- "onUpdate:open": o[0] || (o[0] = (r) => D(a) ? a.value = r : null)
47
+ open: i(n),
48
+ "onUpdate:open": o[0] || (o[0] = (r) => V(n) ? n.value = r : null)
44
49
  }, null, 8, ["open"])) : d("", !0)
45
50
  ]),
46
- "sidebar-start": n(({ spec: r }) => {
47
- var i;
51
+ "sidebar-start": a((r) => {
52
+ var l;
48
53
  return [
49
- e.$slots["document-selector"] ? (t(), p("div", P, [
50
- m(e.$slots, "document-selector", {}, void 0, !0)
54
+ e.$slots["document-selector"] ? (t(), p("div", E, [
55
+ c(e.$slots, "document-selector", {}, void 0, !0)
51
56
  ])) : d("", !0),
52
- l.configuration.hideSearch ? d("", !0) : (t(), p("div", T, [
53
- f(s(z), {
54
- searchHotKey: (i = l.configuration) == null ? void 0 : i.searchHotKey,
55
- spec: r
57
+ s.configuration.hideSearch ? d("", !0) : (t(), p("div", F, [
58
+ m(i(j), {
59
+ searchHotKey: (l = s.configuration) == null ? void 0 : l.searchHotKey,
60
+ spec: r.spec
56
61
  }, null, 8, ["searchHotKey", "spec"])
57
- ]))
62
+ ])),
63
+ c(e.$slots, "sidebar-start", g(S(r)), void 0, !0)
58
64
  ];
59
65
  }),
60
- "sidebar-end": n(() => [
61
- f(s(K), { class: "darklight-reference" }, {
62
- toggle: n(() => [
63
- l.configuration.hideDarkModeToggle ? (t(), p("span", E)) : (t(), u(s(L), {
66
+ "sidebar-end": a(() => [
67
+ m(i(L), { class: "darklight-reference" }, {
68
+ toggle: a(() => [
69
+ s.configuration.hideDarkModeToggle ? (t(), p("span", P)) : (t(), u(i(N), {
64
70
  key: 0,
65
71
  modelValue: e.isDark,
66
72
  "onUpdate:modelValue": o[1] || (o[1] = (r) => e.$emit("toggleDarkMode"))
67
73
  }, null, 8, ["modelValue"]))
68
74
  ]),
69
- default: n(() => [
70
- l.configuration.hideClientButton ? d("", !0) : (t(), u(s(H), {
75
+ default: a(() => [
76
+ s.configuration.hideClientButton ? d("", !0) : (t(), u(i(H), {
71
77
  key: 0,
72
78
  buttonSource: "sidebar",
73
79
  integration: e.configuration._integration,
74
- isDevelopment: h,
80
+ isDevelopment: v,
75
81
  url: e.configuration.url
76
82
  }, null, 8, ["integration", "url"]))
77
83
  ]),
@@ -80,15 +86,15 @@ const P = { key: 0 }, T = {
80
86
  ]),
81
87
  _: 2
82
88
  }, [
83
- M(S, (r, i) => ({
84
- name: i,
85
- fn: n((b) => [
86
- m(e.$slots, i, $(V(b || {})), void 0, !0)
89
+ K(C.value, (r) => ({
90
+ name: r,
91
+ fn: a((l) => [
92
+ c(e.$slots, r, g(S(l || {})), void 0, !0)
87
93
  ])
88
94
  }))
89
95
  ]), 1032, ["class", "configuration", "parsedSpec", "rawSpec"]));
90
96
  }
91
97
  });
92
98
  export {
93
- Y as default
99
+ x as default
94
100
  };
@@ -1,7 +1,7 @@
1
1
  import o from "./MobileHeader.vue2.js";
2
2
  /* empty css */
3
- import r from "../_virtual/_plugin-vue_export-helper.js";
4
- const f = /* @__PURE__ */ r(o, [["__scopeId", "data-v-b5fb4b8b"]]);
3
+ import e from "../_virtual/_plugin-vue_export-helper.js";
4
+ const m = /* @__PURE__ */ e(o, [["__scopeId", "data-v-e9e59635"]]);
5
5
  export {
6
- f as default
6
+ m as default
7
7
  };
@@ -1,7 +1,7 @@
1
1
  import o from "./CompactSection.vue2.js";
2
2
  /* empty css */
3
3
  import t from "../../_virtual/_plugin-vue_export-helper.js";
4
- const a = /* @__PURE__ */ t(o, [["__scopeId", "data-v-e7d0b809"]]);
4
+ const r = /* @__PURE__ */ t(o, [["__scopeId", "data-v-c00bde82"]]);
5
5
  export {
6
- a as default
6
+ r as default
7
7
  };
@@ -2,8 +2,8 @@ import { defineComponent as u, ref as m, useId as f, watch as v, nextTick as h,
2
2
  import { ScalarIcon as _ } from "@scalar/components";
3
3
  import w from "../Anchor/Anchor.vue.js";
4
4
  import N from "./Section.vue.js";
5
- import { useNavState as y } from "../../hooks/useNavState.js";
6
- import { scrollToId as B } from "../../helpers/scrollToId.js";
5
+ import { scrollToId as y } from "../../helpers/scroll-to-id.js";
6
+ import { useNavState as B } from "../../hooks/useNavState.js";
7
7
  const I = { class: "collapsible-section" }, V = ["id", "aria-controls", "aria-expanded"], R = /* @__PURE__ */ u({
8
8
  __name: "CompactSection",
9
9
  props: {
@@ -11,11 +11,11 @@ const I = { class: "collapsible-section" }, V = ["id", "aria-controls", "aria-ex
11
11
  label: {}
12
12
  },
13
13
  setup(d) {
14
- const a = d, { hash: p } = y(), e = m(!1), l = f();
14
+ const a = d, { hash: p } = B(), e = m(!1), l = f();
15
15
  return v(
16
16
  p,
17
17
  async (o) => {
18
- o === a.id && !e.value && (e.value = !0, await h(), B(a.id));
18
+ o === a.id && !e.value && (e.value = !0, await h(), y(a.id));
19
19
  },
20
20
  { immediate: !0 }
21
21
  ), (o, i) => (n(), b("div", I, [
@@ -1 +1 @@
1
- {"version":3,"file":"Section.vue.d.ts","sourceRoot":"","sources":["../../../src/components/Section/Section.vue"],"names":[],"mappings":"AAyEA,KAAK,WAAW,GAAG;IACjB,EAAE,CAAC,EAAE,MAAM,CAAA;IACX,KAAK,CAAC,EAAE,MAAM,CAAA;CACf,CAAC;AAwBF,iBAAS,cAAc;WAoET,OAAO,IAA6B;;yBARrB,GAAG;;;;EAa/B;AAUD,KAAK,oBAAoB,GAAG,UAAU,CAAC,OAAO,cAAc,CAAC,CAAC;AAC9D,QAAA,MAAM,eAAe,kSAOnB,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":"Section.vue.d.ts","sourceRoot":"","sources":["../../../src/components/Section/Section.vue"],"names":[],"mappings":"AA2EA,KAAK,WAAW,GAAG;IACjB,EAAE,CAAC,EAAE,MAAM,CAAA;IACX,KAAK,CAAC,EAAE,MAAM,CAAA;CACf,CAAC;AAwBF,iBAAS,cAAc;WAoET,OAAO,IAA6B;;yBARrB,GAAG;;;;EAa/B;AAUD,KAAK,oBAAoB,GAAG,UAAU,CAAC,OAAO,cAAc,CAAC,CAAC;AAC9D,QAAA,MAAM,eAAe,kSAOnB,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 "./Section.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-f9910af4"]]);
4
+ const m = /* @__PURE__ */ t(o, [["__scopeId", "data-v-945f79c4"]]);
5
5
  export {
6
6
  m as default
7
7
  };
@@ -1 +1 @@
1
- {"version":3,"file":"ShowMoreButton.vue.d.ts","sourceRoot":"","sources":["../../src/components/ShowMoreButton.vue"],"names":[],"mappings":"AA8EA,KAAK,WAAW,GAAG;IACjB,EAAE,EAAE,MAAM,CAAA;CACX,CAAC;;AA+EF,wBAOG"}
1
+ {"version":3,"file":"ShowMoreButton.vue.d.ts","sourceRoot":"","sources":["../../src/components/ShowMoreButton.vue"],"names":[],"mappings":"AA4EA,KAAK,WAAW,GAAG;IACjB,EAAE,EAAE,MAAM,CAAA;CACX,CAAC;;AA+EF,wBAOG"}
@@ -1,7 +1,7 @@
1
1
  import o from "./ShowMoreButton.vue2.js";
2
2
  /* empty css */
3
3
  import t from "../_virtual/_plugin-vue_export-helper.js";
4
- const _ = /* @__PURE__ */ t(o, [["__scopeId", "data-v-d3b738d8"]]);
4
+ const p = /* @__PURE__ */ t(o, [["__scopeId", "data-v-892a5475"]]);
5
5
  export {
6
- _ as default
6
+ p as default
7
7
  };
@@ -1,5 +1,5 @@
1
1
  import type { Spec } from '@scalar/types/legacy';
2
- import { type SorterOption } from '../../hooks';
2
+ import { type SorterOption } from '../../hooks/useSidebar.js';
3
3
  type __VLS_Props = {
4
4
  parsedSpec: Spec;
5
5
  } & SorterOption;
@@ -1 +1 @@
1
- {"version":3,"file":"Sidebar.vue.d.ts","sourceRoot":"","sources":["../../../src/components/Sidebar/Sidebar.vue"],"names":[],"mappings":"AAwQA,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,sBAAsB,CAAA;AAIhD,OAAO,EAA2B,KAAK,YAAY,EAAE,MAAM,aAAa,CAAA;AAMxE,KAAK,WAAW,GAAG;IACf,UAAU,EAAE,IAAI,CAAA;CACjB,GAAG,YAAY,CAAC;AAoGnB,iBAAS,cAAc;WA4NT,OAAO,IAA6B;;iCAVb,GAAG;+BACJ,GAAG;;;;;;EActC;AAiBD,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":"Sidebar.vue.d.ts","sourceRoot":"","sources":["../../../src/components/Sidebar/Sidebar.vue"],"names":[],"mappings":"AAyQA,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,sBAAsB,CAAA;AAOhD,OAAO,EAAc,KAAK,YAAY,EAAE,MAAM,oBAAoB,CAAA;AAIlE,KAAK,WAAW,GAAG;IACf,UAAU,EAAE,IAAI,CAAA;CACjB,GAAG,YAAY,CAAC;AAoGnB,iBAAS,cAAc;WA4NT,OAAO,IAA6B;;iCAVb,GAAG;+BACJ,GAAG;;;;;;EActC;AAiBD,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 "./Sidebar.vue2.js";
2
2
  /* empty css */
3
3
  import r from "../../_virtual/_plugin-vue_export-helper.js";
4
- const e = /* @__PURE__ */ r(o, [["__scopeId", "data-v-093edd11"]]);
4
+ const f = /* @__PURE__ */ r(o, [["__scopeId", "data-v-e603f439"]]);
5
5
  export {
6
- e as default
6
+ f as default
7
7
  };
@@ -1,9 +1,9 @@
1
1
  import { defineComponent as F, ref as E, watch as I, onMounted as N, onUnmounted as L, createElementBlock as d, openBlock as r, renderSlot as w, createElementVNode as V, createVNode as G, withCtx as v, Fragment as o, renderList as y, unref as n, toDisplayString as M, createBlock as f, createCommentVNode as h } from "vue";
2
2
  import m from "./SidebarElement.vue.js";
3
3
  import g from "./SidebarGroup.vue.js";
4
+ import { sleep as C } from "../../helpers/sleep.js";
4
5
  import { useNavState as D } from "../../hooks/useNavState.js";
5
6
  import { useSidebar as H } from "../../hooks/useSidebar.js";
6
- import { sleep as C } from "../../helpers/sleep.js";
7
7
  const R = { class: "sidebar" }, U = ["aria-label"], j = { class: "sidebar-group-title" }, q = -160, W = /* @__PURE__ */ F({
8
8
  __name: "Sidebar",
9
9
  props: {
@@ -1 +1 @@
1
- {"version":3,"file":"SidebarElement.vue.d.ts","sourceRoot":"","sources":["../../../src/components/Sidebar/SidebarElement.vue"],"names":[],"mappings":"AA0WA,KAAK,WAAW,GAAG;IACjB,EAAE,EAAE,MAAM,CAAA;IACV,IAAI,EAAE;QACJ,EAAE,EAAE,MAAM,CAAA;QACV,KAAK,EAAE,MAAM,CAAA;QACb,MAAM,CAAC,EAAE,MAAM,IAAI,CAAA;QACnB,IAAI,CAAC,EAAE,MAAM,CAAA;QACb,IAAI,CAAC,EAAE;YACL,GAAG,EAAE,MAAM,CAAA;SACZ,CAAA;QACD,QAAQ,CAAC,EAAE,MAAM,CAAA;QACjB,UAAU,CAAC,EAAE,OAAO,CAAA;KACrB,CAAA;IACD,QAAQ,CAAC,EAAE,OAAO,CAAA;IAClB,WAAW,CAAC,EAAE,OAAO,CAAA;IACrB,IAAI,CAAC,EAAE,OAAO,CAAA;CACf,CAAC;AAyEF,iBAAS,cAAc;WAoKT,OAAO,IAA6B;;yBATpB,GAAG;+BACG,GAAG;;;;EAatC;AAgBD,KAAK,oBAAoB,GAAG,UAAU,CAAC,OAAO,cAAc,CAAC,CAAC;AAC9D,QAAA,MAAM,eAAe;;;;4FAQnB,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":"SidebarElement.vue.d.ts","sourceRoot":"","sources":["../../../src/components/Sidebar/SidebarElement.vue"],"names":[],"mappings":"AA4WA,KAAK,WAAW,GAAG;IACjB,EAAE,EAAE,MAAM,CAAA;IACV,IAAI,EAAE;QACJ,EAAE,EAAE,MAAM,CAAA;QACV,KAAK,EAAE,MAAM,CAAA;QACb,MAAM,CAAC,EAAE,MAAM,IAAI,CAAA;QACnB,IAAI,CAAC,EAAE,MAAM,CAAA;QACb,IAAI,CAAC,EAAE;YACL,GAAG,EAAE,MAAM,CAAA;SACZ,CAAA;QACD,QAAQ,CAAC,EAAE,MAAM,CAAA;QACjB,UAAU,CAAC,EAAE,OAAO,CAAA;KACrB,CAAA;IACD,QAAQ,CAAC,EAAE,OAAO,CAAA;IAClB,WAAW,CAAC,EAAE,OAAO,CAAA;IACrB,IAAI,CAAC,EAAE,OAAO,CAAA;CACf,CAAC;AAyEF,iBAAS,cAAc;WAoKT,OAAO,IAA6B;;yBATpB,GAAG;+BACG,GAAG;;;;EAatC;AAgBD,KAAK,oBAAoB,GAAG,UAAU,CAAC,OAAO,cAAc,CAAC,CAAC;AAC9D,QAAA,MAAM,eAAe;;;;4FAQnB,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 "./SidebarElement.vue2.js";
2
2
  /* empty css */
3
3
  import t from "../../_virtual/_plugin-vue_export-helper.js";
4
- const a = /* @__PURE__ */ t(o, [["__scopeId", "data-v-efbd2692"]]);
4
+ const a = /* @__PURE__ */ t(o, [["__scopeId", "data-v-0477809f"]]);
5
5
  export {
6
6
  a as default
7
7
  };
@@ -1,11 +1,11 @@
1
1
  import { defineComponent as A, createElementBlock as p, openBlock as s, createElementVNode as r, renderSlot as v, createCommentVNode as l, normalizeClass as T, unref as c, createTextVNode as h, withModifiers as V, createVNode as C, withCtx as E, toDisplayString as u, createBlock as N } from "vue";
2
2
  import { ScalarSidebarGroupToggle as O, ScalarIcon as R } from "@scalar/components";
3
3
  import { combineUrlAndPath as U } from "@scalar/oas-utils/helpers";
4
- import { useConfig as H } from "../../hooks/useConfig.js";
5
- import I from "./SidebarHttpBadge.vue.js";
4
+ import { scrollToId as H } from "../../helpers/scroll-to-id.js";
6
5
  import { sleep as k } from "../../helpers/sleep.js";
6
+ import { useConfig as I } from "../../hooks/useConfig.js";
7
7
  import { useNavState as P } from "../../hooks/useNavState.js";
8
- import { scrollToId as D } from "../../helpers/scrollToId.js";
8
+ import D from "./SidebarHttpBadge.vue.js";
9
9
  const L = ["id"], M = {
10
10
  key: 0,
11
11
  class: "sidebar-heading-chevron"
@@ -26,7 +26,7 @@ const L = ["id"], M = {
26
26
  },
27
27
  emits: ["toggleOpen"],
28
28
  setup(y, { emit: w }) {
29
- const i = y, m = w, { getFullHash: f, isIntersectionEnabled: d, replaceUrlState: S } = P(), n = H(), g = async () => {
29
+ const i = y, m = w, { getFullHash: f, isIntersectionEnabled: d, replaceUrlState: S } = P(), n = I(), g = async () => {
30
30
  var e, t;
31
31
  d.value = !1, i.hasChildren && m("toggleOpen"), (t = (e = i.item) == null ? void 0 : e.select) == null || t.call(e), await k(100), d.value = !0;
32
32
  }, B = () => {
@@ -39,7 +39,7 @@ const L = ["id"], M = {
39
39
  return `#${f(i.item.id)}`;
40
40
  }, $ = async (e) => {
41
41
  var t, a, o, b;
42
- (a = (t = n.value).onSidebarClick) == null || a.call(t, i.item.id), n.value.pathRouting && (e.preventDefault(), i.hasChildren && m("toggleOpen"), (b = (o = i.item) == null ? void 0 : o.select) == null || b.call(o), m("toggleOpen"), d.value = !1, S(i.item.id), D(i.item.id), await k(100), d.value = !0);
42
+ (a = (t = n.value).onSidebarClick) == null || a.call(t, i.item.id), n.value.pathRouting && (e.preventDefault(), i.hasChildren && m("toggleOpen"), (b = (o = i.item) == null ? void 0 : o.select) == null || b.call(o), m("toggleOpen"), d.value = !1, S(i.item.id), H(i.item.id), await k(100), d.value = !0);
43
43
  };
44
44
  return (e, t) => {
45
45
  var a, o;
@@ -86,7 +86,7 @@ const L = ["id"], M = {
86
86
  e.item.httpVerb && !e.hasChildren ? (s(), p("p", j, [
87
87
  t[1] || (t[1] = h("   ")),
88
88
  t[2] || (t[2] = r("span", { class: "sr-only" }, "HTTP Method: ", -1)),
89
- C(I, {
89
+ C(D, {
90
90
  active: e.isActive,
91
91
  method: e.item.httpVerb
92
92
  }, null, 8, ["active", "method"])