@scalar/api-reference 1.28.32 → 1.28.34

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 (209) hide show
  1. package/CHANGELOG.md +62 -0
  2. package/dist/browser/standalone.js +7541 -7368
  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 +1 -1
  13. package/dist/components/Content/ClientLibraries/ClientLibraries.vue2.js +5 -5
  14. package/dist/components/Content/ClientLibraries/ClientSelector.vue.d.ts.map +1 -1
  15. package/dist/components/Content/ClientLibraries/ClientSelector.vue.js +2 -2
  16. package/dist/components/Content/ClientLibraries/useFeaturedHttpClients.d.ts +1 -1
  17. package/dist/components/Content/ClientLibraries/useFeaturedHttpClients.d.ts.map +1 -1
  18. package/dist/components/Content/Content.vue.d.ts.map +1 -1
  19. package/dist/components/Content/Content.vue.js +2 -2
  20. package/dist/components/Content/Content.vue2.js +56 -56
  21. package/dist/components/Content/Introduction/Introduction.vue.js +1 -1
  22. package/dist/components/Content/Introduction/Introduction.vue2.js +21 -21
  23. package/dist/components/Content/Lazy/Loading.vue.js +22 -22
  24. package/dist/components/Content/Models/Models.vue.d.ts.map +1 -1
  25. package/dist/components/Content/Models/Models.vue.js +2 -2
  26. package/dist/components/Content/Models/Models.vue2.js +17 -17
  27. package/dist/components/Content/Models/ModelsAccordion.vue.d.ts.map +1 -1
  28. package/dist/components/Content/Models/ModelsAccordion.vue.js +2 -2
  29. package/dist/components/Content/Models/ModelsAccordion.vue2.js +14 -14
  30. package/dist/components/Content/Schema/Schema.preview.d.ts +98 -15
  31. package/dist/components/Content/Schema/Schema.preview.d.ts.map +1 -1
  32. package/dist/components/Content/Schema/Schema.vue.d.ts.map +1 -1
  33. package/dist/components/Content/Schema/Schema.vue.js +2 -2
  34. package/dist/components/Content/Schema/Schema.vue2.js +2 -1
  35. package/dist/components/Content/Schema/SchemaDiscriminator.vue.d.ts.map +1 -1
  36. package/dist/components/Content/Schema/SchemaDiscriminator.vue.js +99 -5
  37. package/dist/components/Content/Schema/SchemaDiscriminator.vue2.js +2 -165
  38. package/dist/components/Content/Schema/SchemaProperty.vue.d.ts.map +1 -1
  39. package/dist/components/Content/Schema/SchemaProperty.vue.js +2 -2
  40. package/dist/components/Content/Schema/SchemaProperty.vue2.js +27 -26
  41. package/dist/components/Content/Schema/SchemaPropertyHeading.vue.d.ts.map +1 -1
  42. package/dist/components/Content/Schema/SchemaPropertyHeading.vue.js +1 -1
  43. package/dist/components/Content/Schema/SchemaPropertyHeading.vue2.js +142 -138
  44. package/dist/components/Content/Schema/helpers/merge-all-of-schemas.d.ts +1 -1
  45. package/dist/components/Content/Schema/helpers/merge-all-of-schemas.d.ts.map +1 -1
  46. package/dist/components/Content/Schema/helpers/merge-all-of-schemas.js +50 -40
  47. package/dist/components/Content/Tag/OperationsListItem.vue.js +1 -1
  48. package/dist/components/Content/Tag/OperationsListItem.vue2.js +1 -1
  49. package/dist/components/Content/Tag/TagAccordion.vue.js +2 -2
  50. package/dist/components/Content/Tag/TagAccordion.vue2.js +10 -10
  51. package/dist/components/Content/Tag/TagList.vue.d.ts.map +1 -1
  52. package/dist/components/Content/Tag/TagList.vue.js +8 -8
  53. package/dist/components/Content/Tag/TagSection.vue.d.ts.map +1 -1
  54. package/dist/components/Content/Tag/TagSection.vue.js +2 -2
  55. package/dist/components/Content/Tag/TagSection.vue2.js +8 -8
  56. package/dist/components/GettingStarted.vue.d.ts +2 -2
  57. package/dist/components/Layouts/ModernLayout.vue.d.ts.map +1 -1
  58. package/dist/components/Layouts/ModernLayout.vue.js +2 -2
  59. package/dist/components/Layouts/ModernLayout.vue2.js +4 -4
  60. package/dist/components/MobileHeader.vue.js +3 -3
  61. package/dist/components/Section/CompactSection.vue.js +2 -2
  62. package/dist/components/Section/CompactSection.vue2.js +4 -4
  63. package/dist/components/Section/Section.vue.d.ts.map +1 -1
  64. package/dist/components/Section/Section.vue.js +1 -1
  65. package/dist/components/Section/SectionHeader.vue.js +2 -2
  66. package/dist/components/ShowMoreButton.vue.d.ts.map +1 -1
  67. package/dist/components/ShowMoreButton.vue.js +2 -2
  68. package/dist/components/Sidebar/Sidebar.vue.d.ts +1 -1
  69. package/dist/components/Sidebar/Sidebar.vue.d.ts.map +1 -1
  70. package/dist/components/Sidebar/Sidebar.vue.js +2 -2
  71. package/dist/components/Sidebar/Sidebar.vue2.js +1 -1
  72. package/dist/components/Sidebar/SidebarElement.vue.d.ts.map +1 -1
  73. package/dist/components/Sidebar/SidebarElement.vue.js +1 -1
  74. package/dist/components/Sidebar/SidebarElement.vue2.js +6 -6
  75. package/dist/components/SingleApiReference.vue.d.ts.map +1 -1
  76. package/dist/components/SpecificationExtension/SpecificationExtension.vue.d.ts.map +1 -1
  77. package/dist/components/SpecificationExtension/SpecificationExtension.vue.js +30 -21
  78. package/dist/features/ApiClientModal/ApiClientModal.vue.js +3 -3
  79. package/dist/features/ApiClientModal/index.d.ts +1 -1
  80. package/dist/features/ApiClientModal/index.d.ts.map +1 -1
  81. package/dist/features/ApiClientModal/useApiClient.d.ts +170 -90
  82. package/dist/features/ApiClientModal/useApiClient.d.ts.map +1 -1
  83. package/dist/features/BaseUrl/BaseUrl.vue.d.ts.map +1 -1
  84. package/dist/features/BaseUrl/BaseUrl.vue.js +33 -28
  85. package/dist/features/DownloadLink/DownloadLink.vue.d.ts +1 -1
  86. package/dist/features/DownloadLink/DownloadLink.vue.d.ts.map +1 -1
  87. package/dist/features/DownloadLink/DownloadLink.vue.js +1 -1
  88. package/dist/features/DownloadLink/DownloadLink.vue2.js +17 -17
  89. package/dist/features/ExampleRequest/ExampleRequest.vue.d.ts.map +1 -1
  90. package/dist/features/ExampleRequest/ExampleRequest.vue.js +1 -1
  91. package/dist/features/ExampleRequest/ExampleRequest.vue2.js +12 -12
  92. package/dist/features/Operation/Webhooks.vue.d.ts.map +1 -1
  93. package/dist/features/Operation/Webhooks.vue.js +2 -2
  94. package/dist/features/Operation/Webhooks.vue2.js +13 -13
  95. package/dist/features/Operation/components/ParameterListItem.vue.d.ts.map +1 -1
  96. package/dist/features/Operation/components/ParameterListItem.vue.js +2 -2
  97. package/dist/features/Operation/components/ParameterListItem.vue2.js +18 -18
  98. package/dist/features/Operation/components/RequestBody.vue.d.ts.map +1 -1
  99. package/dist/features/Operation/components/RequestBody.vue.js +2 -2
  100. package/dist/features/Operation/components/RequestBody.vue2.js +38 -32
  101. package/dist/features/Operation/hooks/useResponses.d.ts +1 -0
  102. package/dist/features/Operation/hooks/useResponses.d.ts.map +1 -1
  103. package/dist/features/Operation/hooks/useResponses.js +13 -12
  104. package/dist/features/Operation/layouts/ClassicLayout.vue.d.ts.map +1 -1
  105. package/dist/features/Operation/layouts/ClassicLayout.vue.js +2 -2
  106. package/dist/features/Operation/layouts/ClassicLayout.vue2.js +1 -1
  107. package/dist/features/Operation/layouts/ModernLayout.vue.js +1 -1
  108. package/dist/features/Operation/layouts/ModernLayout.vue2.js +1 -1
  109. package/dist/features/Search/SearchButton.vue.js +2 -2
  110. package/dist/features/Search/SearchButton.vue2.js +1 -1
  111. package/dist/features/Search/SearchModal.vue.d.ts.map +1 -1
  112. package/dist/features/Search/SearchModal.vue.js +2 -2
  113. package/dist/features/Search/SearchModal.vue2.js +1 -1
  114. package/dist/features/Search/useSearchIndex.d.ts +1 -1
  115. package/dist/features/Search/useSearchIndex.d.ts.map +1 -1
  116. package/dist/features/Search/useSearchIndex.js +20 -21
  117. package/dist/helpers/{isMacOs.d.ts → is-mac-os.d.ts} +1 -1
  118. package/dist/helpers/is-mac-os.d.ts.map +1 -0
  119. package/dist/helpers/parse.d.ts.map +1 -1
  120. package/dist/helpers/parse.js +1 -1
  121. package/dist/helpers/{scrollToId.d.ts → scroll-to-id.d.ts} +1 -1
  122. package/dist/helpers/scroll-to-id.d.ts.map +1 -0
  123. package/dist/helpers/sleep.d.ts +0 -2
  124. package/dist/helpers/sleep.d.ts.map +1 -1
  125. package/dist/hooks/useNavState.d.ts.map +1 -1
  126. package/dist/hooks/useNavState.js +28 -28
  127. package/dist/hooks/useReactiveSpec.js +1 -1
  128. package/dist/hooks/useSidebar.d.ts.map +1 -1
  129. package/dist/hooks/useSidebar.js +45 -49
  130. package/dist/index.d.ts +2 -3
  131. package/dist/index.d.ts.map +1 -1
  132. package/dist/index.js +26 -28
  133. package/dist/legacy/fixtures/index.d.ts +1 -1
  134. package/dist/legacy/fixtures/index.d.ts.map +1 -1
  135. package/dist/legacy/helpers/index.d.ts +1 -1
  136. package/dist/legacy/helpers/index.d.ts.map +1 -1
  137. package/dist/libs/download.d.ts +9 -0
  138. package/dist/libs/download.d.ts.map +1 -0
  139. package/dist/libs/download.js +19 -0
  140. package/dist/{helpers/getLowestHeadingLevel.d.ts → libs/markdown.d.ts} +5 -1
  141. package/dist/libs/markdown.d.ts.map +1 -0
  142. package/dist/libs/markdown.js +18 -0
  143. package/dist/libs/openapi.d.ts +56 -0
  144. package/dist/libs/openapi.d.ts.map +1 -0
  145. package/dist/libs/openapi.js +102 -0
  146. package/dist/style.css +1 -1
  147. package/dist/types.d.ts +1 -45
  148. package/dist/types.d.ts.map +1 -1
  149. package/package.json +21 -21
  150. package/dist/esm.js +0 -34
  151. package/dist/helpers/createEmptySpecification.d.ts +0 -8
  152. package/dist/helpers/createEmptySpecification.d.ts.map +0 -1
  153. package/dist/helpers/createEmptySpecification.js +0 -27
  154. package/dist/helpers/deepMerge.d.ts +0 -5
  155. package/dist/helpers/deepMerge.d.ts.map +0 -1
  156. package/dist/helpers/deepMerge.js +0 -8
  157. package/dist/helpers/generateParameters.d.ts +0 -6
  158. package/dist/helpers/generateParameters.d.ts.map +0 -1
  159. package/dist/helpers/get-request.d.ts +0 -59
  160. package/dist/helpers/get-request.d.ts.map +0 -1
  161. package/dist/helpers/getHeadingsFromMarkdown.d.ts +0 -6
  162. package/dist/helpers/getHeadingsFromMarkdown.d.ts.map +0 -1
  163. package/dist/helpers/getHeadingsFromMarkdown.js +0 -13
  164. package/dist/helpers/getLowestHeadingLevel.d.ts.map +0 -1
  165. package/dist/helpers/getLowestHeadingLevel.js +0 -7
  166. package/dist/helpers/getModels.d.ts +0 -7
  167. package/dist/helpers/getModels.d.ts.map +0 -1
  168. package/dist/helpers/getModels.js +0 -22
  169. package/dist/helpers/getVariableNames.d.ts +0 -5
  170. package/dist/helpers/getVariableNames.d.ts.map +0 -1
  171. package/dist/helpers/hasModels.d.ts +0 -3
  172. package/dist/helpers/hasModels.d.ts.map +0 -1
  173. package/dist/helpers/hasModels.js +0 -5
  174. package/dist/helpers/hasSecuritySchemes.d.ts +0 -3
  175. package/dist/helpers/hasSecuritySchemes.d.ts.map +0 -1
  176. package/dist/helpers/hasWebhooks.d.ts +0 -3
  177. package/dist/helpers/hasWebhooks.d.ts.map +0 -1
  178. package/dist/helpers/hasWebhooks.js +0 -4
  179. package/dist/helpers/index.d.ts +0 -17
  180. package/dist/helpers/index.d.ts.map +0 -1
  181. package/dist/helpers/isMacOs.d.ts.map +0 -1
  182. package/dist/helpers/mapFromObject.d.ts +0 -8
  183. package/dist/helpers/mapFromObject.d.ts.map +0 -1
  184. package/dist/helpers/mergeAllObjects.d.ts +0 -5
  185. package/dist/helpers/mergeAllObjects.d.ts.map +0 -1
  186. package/dist/helpers/scrollToId.d.ts.map +0 -1
  187. package/dist/helpers/specDownloads.d.ts +0 -7
  188. package/dist/helpers/specDownloads.d.ts.map +0 -1
  189. package/dist/helpers/specDownloads.js +0 -19
  190. package/dist/helpers/specHelpers.d.ts +0 -16
  191. package/dist/helpers/specHelpers.d.ts.map +0 -1
  192. package/dist/helpers/specHelpers.js +0 -36
  193. package/dist/helpers/waitFor.d.ts +0 -5
  194. package/dist/helpers/waitFor.d.ts.map +0 -1
  195. package/dist/hooks/index.d.ts +0 -5
  196. package/dist/hooks/index.d.ts.map +0 -1
  197. package/dist/legacy/helpers/encodeStringAsBase64.d.ts +0 -5
  198. package/dist/legacy/helpers/encodeStringAsBase64.d.ts.map +0 -1
  199. package/dist/legacy/index.d.ts +0 -5
  200. package/dist/legacy/index.d.ts.map +0 -1
  201. package/dist/legacy/types.d.ts +0 -94
  202. package/dist/legacy/types.d.ts.map +0 -1
  203. package/dist/libs/operation.d.ts +0 -15
  204. package/dist/libs/operation.d.ts.map +0 -1
  205. package/dist/libs/operation.js +0 -16
  206. package/dist/stores/index.d.ts +0 -2
  207. package/dist/stores/index.d.ts.map +0 -1
  208. /package/dist/helpers/{isMacOs.js → is-mac-os.js} +0 -0
  209. /package/dist/helpers/{scrollToId.js → scroll-to-id.js} +0 -0
@@ -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 +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":"AAsIA,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"}
@@ -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 _ = /* @__PURE__ */ t(o, [["__scopeId", "data-v-34d51ca9"]]);
6
6
  export {
7
- d as default
7
+ _ as default
8
8
  };
@@ -4,9 +4,9 @@ import { ScalarSidebarFooter as K, ScalarColorModeToggleButton as L } from "@sca
4
4
  import { useBreakpoints as N } from "@scalar/use-hooks/useBreakpoints";
5
5
  import R from "../ApiReferenceLayout.vue.js";
6
6
  import U from "../MobileHeader.vue.js";
7
- import z from "../../features/Search/SearchButton.vue.js";
7
+ import { useNavState as z } from "../../hooks/useNavState.js";
8
8
  import { useSidebar as A } from "../../hooks/useSidebar.js";
9
- import { useNavState as O } from "../../hooks/useNavState.js";
9
+ import O from "../../features/Search/SearchButton.vue.js";
10
10
  const P = { key: 0 }, T = {
11
11
  key: 1,
12
12
  class: "scalar-api-references-standalone-search"
@@ -24,7 +24,7 @@ const P = { key: 0 }, T = {
24
24
  c(k.lg, (e, o) => {
25
25
  o && !e && (a.value = !1);
26
26
  });
27
- const { hash: y } = O();
27
+ const { hash: y } = z();
28
28
  return c(y, (e, o) => {
29
29
  e && e !== o && (a.value = !1);
30
30
  }), (e, o) => (t(), u(R, {
@@ -50,7 +50,7 @@ const P = { key: 0 }, T = {
50
50
  m(e.$slots, "document-selector", {}, void 0, !0)
51
51
  ])) : d("", !0),
52
52
  l.configuration.hideSearch ? d("", !0) : (t(), p("div", T, [
53
- f(s(z), {
53
+ f(s(O), {
54
54
  searchHotKey: (i = l.configuration) == null ? void 0 : i.searchHotKey,
55
55
  spec: r
56
56
  }, null, 8, ["searchHotKey", "spec"])
@@ -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,7 +1,7 @@
1
1
  import o from "./SectionHeader.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-2f429af7"]]);
4
+ const m = /* @__PURE__ */ t(o, [["__scopeId", "data-v-b460b827"]]);
5
5
  export {
6
- f as default
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"])
@@ -1 +1 @@
1
- {"version":3,"file":"SingleApiReference.vue.d.ts","sourceRoot":"","sources":["../../src/components/SingleApiReference.vue"],"names":[],"mappings":"AA6EA,OAAO,KAAK,EAAE,yBAAyB,EAAE,MAAM,6BAA6B,CAAA;AAW5E,KAAK,WAAW,GAAG;IACjB,aAAa,EAAE,OAAO,CAAC,yBAAyB,CAAC,CAAA;CAClD,CAAC;AAyCF,iBAAS,cAAc;WAgGT,OAAO,IAA6B;;wBAVrB,GAAG;wBACH,GAAG;qCACU,GAAG;;;;EAa5C;AAcD,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":"SingleApiReference.vue.d.ts","sourceRoot":"","sources":["../../src/components/SingleApiReference.vue"],"names":[],"mappings":"AA8EA,OAAO,KAAK,EAAE,yBAAyB,EAAE,MAAM,6BAA6B,CAAA;AAY5E,KAAK,WAAW,GAAG;IACjB,aAAa,EAAE,OAAO,CAAC,yBAAyB,CAAC,CAAA;CAClD,CAAC;AAyCF,iBAAS,cAAc;WAgGT,OAAO,IAA6B;;wBAVrB,GAAG;wBACH,GAAG;qCACU,GAAG;;;;EAa5C;AAcD,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 +1 @@
1
- {"version":3,"file":"SpecificationExtension.vue.d.ts","sourceRoot":"","sources":["../../../src/components/SpecificationExtension/SpecificationExtension.vue"],"names":[],"mappings":"AAsEA,KAAK,WAAW,GAAG;IACjB;;OAEG;IACH,KAAK,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,SAAS,CAAA;CAC3C,CAAC;;AA2GF,wBAMG"}
1
+ {"version":3,"file":"SpecificationExtension.vue.d.ts","sourceRoot":"","sources":["../../../src/components/SpecificationExtension/SpecificationExtension.vue"],"names":[],"mappings":"AAkFA,KAAK,WAAW,GAAG;IACjB;;OAEG;IACH,KAAK,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,SAAS,CAAA;CAC3C,CAAC;;AAyHF,wBAMG"}
@@ -1,40 +1,49 @@
1
- import { defineComponent as d, computed as s, createElementBlock as u, createCommentVNode as v, openBlock as n, Fragment as g, renderList as E, createBlock as c, unref as _, withCtx as x, resolveDynamicComponent as C, mergeProps as h } from "vue";
2
- import { ScalarErrorBoundary as k } from "@scalar/components";
3
- import { usePluginManager as y } from "../../plugins/hooks/usePluginManager.js";
4
- const B = {
1
+ import { defineComponent as E, computed as c, createElementBlock as l, createCommentVNode as _, openBlock as r, Fragment as k, renderList as y, createBlock as o, unref as C, withCtx as h, resolveDynamicComponent as s, mergeProps as p } from "vue";
2
+ import { ScalarErrorBoundary as B } from "@scalar/components";
3
+ import { usePluginManager as b } from "../../plugins/hooks/usePluginManager.js";
4
+ const N = {
5
5
  key: 0,
6
6
  class: "text-base"
7
- }, j = /* @__PURE__ */ d({
7
+ }, O = /* @__PURE__ */ E({
8
8
  __name: "SpecificationExtension",
9
9
  props: {
10
10
  value: {}
11
11
  },
12
- setup(m) {
13
- const { getSpecificationExtensions: i } = y();
14
- function l(e) {
15
- return Object.keys(e ?? {}).filter(
16
- (t) => t.startsWith("x-")
12
+ setup(i) {
13
+ const { getSpecificationExtensions: f } = b();
14
+ function d(t) {
15
+ return Object.keys(t ?? {}).filter(
16
+ (n) => n.startsWith("x-")
17
17
  );
18
18
  }
19
- function p(e) {
20
- return e.flatMap((t) => i(t)).filter((t) => t.component);
19
+ function v(t) {
20
+ return t.flatMap((n) => f(n)).filter((n) => n.component);
21
21
  }
22
- const f = s(() => l(m.value)), r = s(
23
- () => p(f.value)
22
+ const g = c(() => d(i.value)), a = c(
23
+ () => v(g.value)
24
24
  );
25
- return (e, t) => typeof e.value == "object" && r.value.length ? (n(), u("div", B, [
26
- (n(!0), u(g, null, E(r.value, (o) => (n(), c(_(k), null, {
27
- default: x(() => {
28
- var a;
25
+ return (t, n) => typeof t.value == "object" && a.value.length ? (r(), l("div", N, [
26
+ (r(!0), l(k, null, y(a.value, (e) => (r(), o(C(B), null, {
27
+ default: h(() => {
28
+ var u, m;
29
29
  return [
30
- (n(), c(C(o.component), h({ ref_for: !0 }, { [o.name]: (a = e.value) == null ? void 0 : a[o.name] }), null, 16))
30
+ e.renderer ? (r(), o(s(e.renderer), p({
31
+ key: 0,
32
+ ref_for: !0
33
+ }, {
34
+ [e.name]: (u = t.value) == null ? void 0 : u[e.name],
35
+ component: e.component
36
+ }), null, 16)) : (r(), o(s(e.component), p({
37
+ key: 1,
38
+ ref_for: !0
39
+ }, { [e.name]: (m = t.value) == null ? void 0 : m[e.name] }), null, 16))
31
40
  ];
32
41
  }),
33
42
  _: 2
34
43
  }, 1024))), 256))
35
- ])) : v("", !0);
44
+ ])) : _("", !0);
36
45
  }
37
46
  });
38
47
  export {
39
- j as default
48
+ O as default
40
49
  };
@@ -4,8 +4,8 @@ import { mutateSecuritySchemeDiff as C } from "@scalar/api-client/views/Request/
4
4
  import { getServersFromOpenApiDocument as U } from "@scalar/oas-utils/transforms";
5
5
  import { watchDebounced as B } from "@vueuse/core";
6
6
  import D from "microdiff";
7
- import { useApiClient as _ } from "./useApiClient.js";
8
- import { useNavState as y } from "../../hooks/useNavState.js";
7
+ import { useNavState as _ } from "../../hooks/useNavState.js";
8
+ import { useApiClient as y } from "./useApiClient.js";
9
9
  import { useExampleStore as I } from "../../legacy/stores/useExampleStore.js";
10
10
  const G = /* @__PURE__ */ h({
11
11
  __name: "ApiClientModal",
@@ -14,7 +14,7 @@ const G = /* @__PURE__ */ h({
14
14
  parsedSpec: {}
15
15
  },
16
16
  setup(i) {
17
- const c = S(null), { client: o, init: v } = _(), { selectedExampleKey: d, operationId: l } = I(), s = k(), r = A(), { isIntersectionEnabled: m } = y();
17
+ const c = S(null), { client: o, init: v } = y(), { selectedExampleKey: d, operationId: l } = I(), s = k(), r = A(), { isIntersectionEnabled: m } = _();
18
18
  return E(() => {
19
19
  c.value && v({
20
20
  el: c.value,
@@ -1,3 +1,3 @@
1
1
  export { default as ApiClientModal } from './ApiClientModal.vue.js';
2
- export * from './useApiClient.js';
2
+ export { useApiClient } from './useApiClient.js';
3
3
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/features/ApiClientModal/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,IAAI,cAAc,EAAE,MAAM,sBAAsB,CAAA;AAChE,cAAc,gBAAgB,CAAA"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/features/ApiClientModal/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,IAAI,cAAc,EAAE,MAAM,sBAAsB,CAAA;AAChE,OAAO,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAA"}