@scalar/api-reference 1.25.35 → 1.25.37

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 (237) hide show
  1. package/CHANGELOG.md +21 -0
  2. package/dist/browser/standalone.js +13407 -13399
  3. package/dist/browser/webpack-stats.json +1 -1
  4. package/dist/components/Anchor/Anchor.vue.d.ts +3 -12
  5. package/dist/components/Anchor/Anchor.vue.d.ts.map +1 -1
  6. package/dist/components/Anchor/Anchor.vue2.js +21 -21
  7. package/dist/components/ApiClientModal.vue.d.ts +3 -12
  8. package/dist/components/ApiClientModal.vue.d.ts.map +1 -1
  9. package/dist/components/ApiReference.vue.d.ts +4 -13
  10. package/dist/components/ApiReference.vue.d.ts.map +1 -1
  11. package/dist/components/ApiReferenceLayout.vue.d.ts +8 -17
  12. package/dist/components/ApiReferenceLayout.vue.d.ts.map +1 -1
  13. package/dist/components/Badge/Badge.vue.d.ts +1 -1
  14. package/dist/components/Badge/Badge.vue.d.ts.map +1 -1
  15. package/dist/components/Card/Card.vue.d.ts +1 -1
  16. package/dist/components/Card/Card.vue.d.ts.map +1 -1
  17. package/dist/components/Card/CardContent.vue.d.ts +1 -10
  18. package/dist/components/Card/CardContent.vue.d.ts.map +1 -1
  19. package/dist/components/Card/CardFooter.vue.d.ts +1 -10
  20. package/dist/components/Card/CardFooter.vue.d.ts.map +1 -1
  21. package/dist/components/Card/CardHeader.vue.d.ts +1 -10
  22. package/dist/components/Card/CardHeader.vue.d.ts.map +1 -1
  23. package/dist/components/Card/CardTab.vue.d.ts +1 -1
  24. package/dist/components/Card/CardTab.vue.d.ts.map +1 -1
  25. package/dist/components/Card/CardTabHeader.vue.d.ts +4 -4
  26. package/dist/components/Card/CardTabHeader.vue.d.ts.map +1 -1
  27. package/dist/components/ClassicHeader.vue.d.ts +1 -1
  28. package/dist/components/ClassicHeader.vue.d.ts.map +1 -1
  29. package/dist/components/Content/Authentication/Authentication.vue.d.ts +3 -12
  30. package/dist/components/Content/Authentication/Authentication.vue.d.ts.map +1 -1
  31. package/dist/components/Content/ClientLibraries/ClientLibraries.vue.d.ts +1 -1
  32. package/dist/components/Content/ClientLibraries/ClientLibraries.vue2.js +14 -14
  33. package/dist/components/Content/ClientLibraries/ClientSelector.vue.d.ts +1 -1
  34. package/dist/components/Content/ClientLibraries/ClientSelector.vue2.js +56 -56
  35. package/dist/components/Content/Content.vue.d.ts +3 -12
  36. package/dist/components/Content/Content.vue.d.ts.map +1 -1
  37. package/dist/components/Content/Content.vue2.js +41 -41
  38. package/dist/components/Content/Introduction/Description.vue.d.ts +3 -12
  39. package/dist/components/Content/Introduction/Description.vue.d.ts.map +1 -1
  40. package/dist/components/Content/Introduction/Introduction.vue.d.ts +3 -12
  41. package/dist/components/Content/Introduction/Introduction.vue.d.ts.map +1 -1
  42. package/dist/components/Content/Lazy/Lazy.vue.d.ts +4 -27
  43. package/dist/components/Content/Lazy/Lazy.vue.d.ts.map +1 -1
  44. package/dist/components/Content/Lazy/Loading.vue.d.ts +4 -25
  45. package/dist/components/Content/Lazy/Loading.vue.d.ts.map +1 -1
  46. package/dist/components/Content/Models/Models.vue.d.ts +3 -12
  47. package/dist/components/Content/Models/Models.vue.d.ts.map +1 -1
  48. package/dist/components/Content/Models/Models.vue2.js +32 -32
  49. package/dist/components/Content/Models/ModelsAccordion.vue.d.ts +3 -12
  50. package/dist/components/Content/Models/ModelsAccordion.vue.d.ts.map +1 -1
  51. package/dist/components/Content/Models/ModelsAccordion.vue2.js +30 -30
  52. package/dist/components/Content/Operation/ContentTypeSelect.vue.d.ts +6 -15
  53. package/dist/components/Content/Operation/ContentTypeSelect.vue.d.ts.map +1 -1
  54. package/dist/components/Content/Operation/EndpointDetails.vue.d.ts +3 -12
  55. package/dist/components/Content/Operation/EndpointDetails.vue.d.ts.map +1 -1
  56. package/dist/components/Content/Operation/EndpointDetails.vue.js +45 -45
  57. package/dist/components/Content/Operation/EndpointDetailsCard.vue.d.ts +3 -12
  58. package/dist/components/Content/Operation/EndpointDetailsCard.vue.d.ts.map +1 -1
  59. package/dist/components/Content/Operation/EndpointDetailsCard.vue2.js +37 -37
  60. package/dist/components/Content/Operation/EndpointPath.vue.d.ts +3 -12
  61. package/dist/components/Content/Operation/EndpointPath.vue.d.ts.map +1 -1
  62. package/dist/components/Content/Operation/Operation.vue.d.ts +3 -12
  63. package/dist/components/Content/Operation/Operation.vue.d.ts.map +1 -1
  64. package/dist/components/Content/Operation/Operation.vue2.js +35 -35
  65. package/dist/components/Content/Operation/OperationAccordion.vue.d.ts +3 -12
  66. package/dist/components/Content/Operation/OperationAccordion.vue.d.ts.map +1 -1
  67. package/dist/components/Content/Operation/ParameterHeaders.vue.d.ts +3 -12
  68. package/dist/components/Content/Operation/ParameterHeaders.vue.d.ts.map +1 -1
  69. package/dist/components/Content/Operation/ParameterItem.vue.d.ts +4 -27
  70. package/dist/components/Content/Operation/ParameterItem.vue.d.ts.map +1 -1
  71. package/dist/components/Content/Operation/Parameters.vue.d.ts +4 -27
  72. package/dist/components/Content/Operation/Parameters.vue.d.ts.map +1 -1
  73. package/dist/components/Content/Operation/RequestBody.vue.d.ts +3 -12
  74. package/dist/components/Content/Operation/RequestBody.vue.d.ts.map +1 -1
  75. package/dist/components/Content/Operation/RequestBodyPropertiesChild.vue.d.ts +3 -12
  76. package/dist/components/Content/Operation/RequestBodyPropertiesChild.vue.d.ts.map +1 -1
  77. package/dist/components/Content/Operation/TestRequestButton.vue.d.ts +3 -12
  78. package/dist/components/Content/Operation/TestRequestButton.vue.d.ts.map +1 -1
  79. package/dist/components/Content/Operation/TestRequestButton.vue2.js +16 -16
  80. package/dist/components/Content/Schema/Schema.vue.d.ts +4 -25
  81. package/dist/components/Content/Schema/Schema.vue.d.ts.map +1 -1
  82. package/dist/components/Content/Schema/SchemaHeading.vue.d.ts +3 -12
  83. package/dist/components/Content/Schema/SchemaHeading.vue.d.ts.map +1 -1
  84. package/dist/components/Content/Schema/SchemaProperty.vue.d.ts +4 -29
  85. package/dist/components/Content/Schema/SchemaProperty.vue.d.ts.map +1 -1
  86. package/dist/components/Content/Schema/SchemaProperty.vue2.js +85 -85
  87. package/dist/components/Content/Schema/SchemaPropertyDetail.vue.d.ts +3 -12
  88. package/dist/components/Content/Schema/SchemaPropertyDetail.vue.d.ts.map +1 -1
  89. package/dist/components/Content/Schema/SchemaPropertyDetail.vue2.js +11 -11
  90. package/dist/components/Content/Schema/SchemaPropertyHeading.vue.d.ts +4 -27
  91. package/dist/components/Content/Schema/SchemaPropertyHeading.vue.d.ts.map +1 -1
  92. package/dist/components/Content/Schema/SchemaPropertyHeading.vue2.js +114 -114
  93. package/dist/components/Content/Tag/Endpoints.vue.d.ts +3 -12
  94. package/dist/components/Content/Tag/Endpoints.vue.d.ts.map +1 -1
  95. package/dist/components/Content/Tag/Endpoints.vue2.js +11 -11
  96. package/dist/components/Content/Tag/Tag.vue.d.ts +3 -12
  97. package/dist/components/Content/Tag/Tag.vue.d.ts.map +1 -1
  98. package/dist/components/Content/Tag/TagAccordion.vue.d.ts +3 -12
  99. package/dist/components/Content/Tag/TagAccordion.vue.d.ts.map +1 -1
  100. package/dist/components/Content/Tag/TagList.vue.d.ts +3 -12
  101. package/dist/components/Content/Tag/TagList.vue.d.ts.map +1 -1
  102. package/dist/components/Content/Webhooks/Webhook.vue.d.ts +3 -12
  103. package/dist/components/Content/Webhooks/Webhook.vue.d.ts.map +1 -1
  104. package/dist/components/Content/Webhooks/Webhook.vue2.js +22 -22
  105. package/dist/components/Content/Webhooks/Webhooks.vue.d.ts +3 -12
  106. package/dist/components/Content/Webhooks/Webhooks.vue.d.ts.map +1 -1
  107. package/dist/components/Content/Webhooks/Webhooks.vue2.js +39 -39
  108. package/dist/components/DarkModeToggle/DarkModeIconToggle.vue.d.ts +6 -15
  109. package/dist/components/DarkModeToggle/DarkModeIconToggle.vue.d.ts.map +1 -1
  110. package/dist/components/DarkModeToggle/DarkModeToggle.vue.d.ts +6 -15
  111. package/dist/components/DarkModeToggle/DarkModeToggle.vue.d.ts.map +1 -1
  112. package/dist/components/DarkModeToggle/DarkModeToggle.vue2.js +14 -14
  113. package/dist/components/GettingStarted.vue.d.ts +9 -18
  114. package/dist/components/GettingStarted.vue.d.ts.map +1 -1
  115. package/dist/components/GettingStarted.vue2.js +32 -32
  116. package/dist/components/HelpfulLink.vue.d.ts +3 -12
  117. package/dist/components/HelpfulLink.vue.d.ts.map +1 -1
  118. package/dist/components/HttpMethod/HttpMethod.vue.d.ts +3 -12
  119. package/dist/components/HttpMethod/HttpMethod.vue.d.ts.map +1 -1
  120. package/dist/components/IntersectionObserver.vue.d.ts +6 -15
  121. package/dist/components/IntersectionObserver.vue.d.ts.map +1 -1
  122. package/dist/components/Layouts/ClassicLayout.vue.d.ts +5 -14
  123. package/dist/components/Layouts/ClassicLayout.vue.d.ts.map +1 -1
  124. package/dist/components/Layouts/Layouts.vue.d.ts +5 -14
  125. package/dist/components/Layouts/Layouts.vue.d.ts.map +1 -1
  126. package/dist/components/Layouts/ModernLayout.vue.d.ts +5 -14
  127. package/dist/components/Layouts/ModernLayout.vue.d.ts.map +1 -1
  128. package/dist/components/LoadingSkeleton.vue.d.ts +4 -25
  129. package/dist/components/LoadingSkeleton.vue.d.ts.map +1 -1
  130. package/dist/components/MobileHeader.vue.d.ts +6 -15
  131. package/dist/components/MobileHeader.vue.d.ts.map +1 -1
  132. package/dist/components/ScreenReader.vue.d.ts +4 -25
  133. package/dist/components/ScreenReader.vue.d.ts.map +1 -1
  134. package/dist/components/Section/CompactSection.vue.d.ts +3 -12
  135. package/dist/components/Section/CompactSection.vue.d.ts.map +1 -1
  136. package/dist/components/Section/Section.vue.d.ts +3 -12
  137. package/dist/components/Section/Section.vue.d.ts.map +1 -1
  138. package/dist/components/Section/SectionAccordion.vue.d.ts +3 -12
  139. package/dist/components/Section/SectionAccordion.vue.d.ts.map +1 -1
  140. package/dist/components/Section/SectionColumn.vue.d.ts +1 -1
  141. package/dist/components/Section/SectionColumn.vue.d.ts.map +1 -1
  142. package/dist/components/Section/SectionColumns.vue.d.ts +1 -1
  143. package/dist/components/Section/SectionColumns.vue.d.ts.map +1 -1
  144. package/dist/components/Section/SectionContainer.vue.d.ts +1 -1
  145. package/dist/components/Section/SectionContainer.vue.d.ts.map +1 -1
  146. package/dist/components/Section/SectionContainerAccordion.vue.d.ts +1 -1
  147. package/dist/components/Section/SectionContainerAccordion.vue.d.ts.map +1 -1
  148. package/dist/components/Section/SectionContent.vue.d.ts +4 -25
  149. package/dist/components/Section/SectionContent.vue.d.ts.map +1 -1
  150. package/dist/components/Section/SectionHeader.vue.d.ts +4 -29
  151. package/dist/components/Section/SectionHeader.vue.d.ts.map +1 -1
  152. package/dist/components/ShowMoreButton.vue.d.ts +3 -12
  153. package/dist/components/ShowMoreButton.vue.d.ts.map +1 -1
  154. package/dist/components/ShowMoreButton.vue2.js +9 -9
  155. package/dist/components/Sidebar/Sidebar.vue.d.ts +3 -12
  156. package/dist/components/Sidebar/Sidebar.vue.d.ts.map +1 -1
  157. package/dist/components/Sidebar/SidebarElement.vue.d.ts +6 -15
  158. package/dist/components/Sidebar/SidebarElement.vue.d.ts.map +1 -1
  159. package/dist/components/Sidebar/SidebarElement.vue2.js +24 -24
  160. package/dist/components/Sidebar/SidebarGroup.vue.d.ts +3 -12
  161. package/dist/components/Sidebar/SidebarGroup.vue.d.ts.map +1 -1
  162. package/dist/components/Sidebar/SidebarHttpBadge.vue.d.ts +3 -12
  163. package/dist/components/Sidebar/SidebarHttpBadge.vue.d.ts.map +1 -1
  164. package/dist/components/Spinner/Spinner.vue.d.ts +1 -1
  165. package/dist/embeds/ExampleRequest/ExampleRequest.vue.d.ts +3 -12
  166. package/dist/embeds/ExampleRequest/ExampleRequest.vue.d.ts.map +1 -1
  167. package/dist/embeds/ExampleResponses/ExampleResponses.vue.d.ts +3 -12
  168. package/dist/embeds/ExampleResponses/ExampleResponses.vue.d.ts.map +1 -1
  169. package/dist/embeds/OpenApiDocument/OpenApiDocument.vue.d.ts +253 -13
  170. package/dist/embeds/OpenApiDocument/OpenApiDocument.vue.d.ts.map +1 -1
  171. package/dist/features/BaseUrl/BaseUrl.vue.d.ts +3 -12
  172. package/dist/features/BaseUrl/BaseUrl.vue.d.ts.map +1 -1
  173. package/dist/features/BaseUrl/ServerForm.vue.d.ts +8 -29
  174. package/dist/features/BaseUrl/ServerForm.vue.d.ts.map +1 -1
  175. package/dist/features/BaseUrl/ServerForm.vue2.js +41 -41
  176. package/dist/features/BaseUrl/ServerUrl.vue.d.ts +3 -12
  177. package/dist/features/BaseUrl/ServerUrl.vue.d.ts.map +1 -1
  178. package/dist/features/BaseUrl/ServerUrlSelect.vue.d.ts +6 -15
  179. package/dist/features/BaseUrl/ServerUrlSelect.vue.d.ts.map +1 -1
  180. package/dist/features/BaseUrl/ServerVariablesForm.vue.d.ts +6 -15
  181. package/dist/features/BaseUrl/ServerVariablesForm.vue.d.ts.map +1 -1
  182. package/dist/features/BaseUrl/ServerVariablesSelect.vue.d.ts +6 -15
  183. package/dist/features/BaseUrl/ServerVariablesSelect.vue.d.ts.map +1 -1
  184. package/dist/features/BaseUrl/ServerVariablesSelect.vue2.js +19 -19
  185. package/dist/features/BaseUrl/ServerVariablesTextbox.vue.d.ts +6 -15
  186. package/dist/features/BaseUrl/ServerVariablesTextbox.vue.d.ts.map +1 -1
  187. package/dist/features/DownloadLink/DownloadLink.vue.d.ts +3 -12
  188. package/dist/features/DownloadLink/DownloadLink.vue.d.ts.map +1 -1
  189. package/dist/features/ExampleRequest/ExamplePicker.vue.d.ts +6 -15
  190. package/dist/features/ExampleRequest/ExamplePicker.vue.d.ts.map +1 -1
  191. package/dist/features/ExampleRequest/ExampleRequest.vue.d.ts +3 -12
  192. package/dist/features/ExampleRequest/ExampleRequest.vue.d.ts.map +1 -1
  193. package/dist/features/ExampleRequest/TextSelect.vue.d.ts +6 -15
  194. package/dist/features/ExampleRequest/TextSelect.vue.d.ts.map +1 -1
  195. package/dist/features/ExampleResponses/ExampleResponse.vue.d.ts +3 -12
  196. package/dist/features/ExampleResponses/ExampleResponse.vue.d.ts.map +1 -1
  197. package/dist/features/ExampleResponses/ExampleResponses.vue.d.ts +3 -12
  198. package/dist/features/ExampleResponses/ExampleResponses.vue.d.ts.map +1 -1
  199. package/dist/features/ExampleResponses/ExampleResponses.vue2.js +83 -83
  200. package/dist/features/Search/SearchButton.vue.d.ts +4 -25
  201. package/dist/features/Search/SearchButton.vue.d.ts.map +1 -1
  202. package/dist/features/Search/SearchButton.vue2.js +27 -27
  203. package/dist/features/Search/SearchModal.vue.d.ts +3 -12
  204. package/dist/features/Search/SearchModal.vue.d.ts.map +1 -1
  205. package/dist/features/Search/SearchModal.vue2.js +66 -66
  206. package/dist/features/Search/useSearchIndex.d.ts +2 -2
  207. package/dist/hooks/useDarkModeState.d.ts +1 -1
  208. package/dist/hooks/useNavState.d.ts +3 -3
  209. package/dist/hooks/useReactiveSpec.d.ts +2 -2
  210. package/dist/hooks/useRefOnMount.d.ts +1 -1
  211. package/dist/hooks/useRefOnMount.d.ts.map +1 -1
  212. package/dist/hooks/useSidebar.d.ts +3 -3
  213. package/dist/index.js +1 -1
  214. package/dist/legacy/components/CardForm.vue.d.ts +1 -1
  215. package/dist/legacy/components/CardForm.vue.d.ts.map +1 -1
  216. package/dist/legacy/components/CardFormButton.vue.d.ts +2 -2
  217. package/dist/legacy/components/CardFormButton.vue.d.ts.map +1 -1
  218. package/dist/legacy/components/CardFormGroup.vue.d.ts +1 -1
  219. package/dist/legacy/components/CardFormGroup.vue.d.ts.map +1 -1
  220. package/dist/legacy/components/CardFormRows.vue.d.ts +1 -1
  221. package/dist/legacy/components/CardFormRows.vue.d.ts.map +1 -1
  222. package/dist/legacy/components/CardFormTextInput.vue.d.ts +3 -12
  223. package/dist/legacy/components/CardFormTextInput.vue.d.ts.map +1 -1
  224. package/dist/legacy/components/CardFormTextInput.vue2.js +21 -21
  225. package/dist/legacy/components/SecurityScheme.vue.d.ts +3 -12
  226. package/dist/legacy/components/SecurityScheme.vue.d.ts.map +1 -1
  227. package/dist/legacy/components/SecurityScheme.vue2.js +147 -147
  228. package/dist/legacy/components/SecuritySchemeScopes.vue.d.ts +6 -15
  229. package/dist/legacy/components/SecuritySchemeScopes.vue.d.ts.map +1 -1
  230. package/dist/legacy/components/SecuritySchemeScopes.vue2.js +37 -37
  231. package/dist/legacy/components/SecuritySchemeSelector.vue.d.ts +6 -15
  232. package/dist/legacy/components/SecuritySchemeSelector.vue.d.ts.map +1 -1
  233. package/dist/legacy/components/SecuritySchemeSelector.vue2.js +36 -36
  234. package/dist/legacy/stores/useRequestStore.d.ts +7 -3
  235. package/dist/legacy/stores/useRequestStore.d.ts.map +1 -1
  236. package/dist/style.css +1 -1
  237. package/package.json +12 -12
@@ -1,27 +1,24 @@
1
- import { defineComponent as $, toRef as M, ref as U, watch as k, openBlock as h, createBlock as b, unref as a, withKeys as S, withModifiers as v, withCtx as l, createElementVNode as d, createVNode as g, isRef as q, createTextVNode as I, toDisplayString as f, createElementBlock as L, Fragment as z, renderList as D, createSlots as H, normalizeClass as K, pushScopeId as P, popScopeId as O } from "vue";
2
- import { ScalarModal as W, ScalarSearchInput as Y, ScalarSearchResultList as j, ScalarSearchResultItem as A } from "@scalar/components";
3
- import { lazyBus as G } from "../../components/Content/Lazy/lazyBus.js";
4
- import J from "../../components/Sidebar/SidebarHttpBadge.vue.js";
5
- import { useSearchIndex as Q } from "./useSearchIndex.js";
6
- import { useSidebar as X } from "../../hooks/useSidebar.js";
7
- import { scrollToId as C } from "../../helpers/scrollToId.js";
8
- const Z = (i) => (P("data-v-fc89d20d"), i = i(), O(), i), y = /* @__PURE__ */ Z(() => /* @__PURE__ */ d("div", { class: "ref-search-meta" }, [
9
- /* @__PURE__ */ d("span", null, "↑↓ Navigate"),
10
- /* @__PURE__ */ d("span", null, "⏎ Select")
11
- ], -1)), re = /* @__PURE__ */ $({
1
+ import { defineComponent as M, toRef as U, ref as q, watch as I, openBlock as f, createBlock as k, unref as a, withKeys as h, withModifiers as S, withCtx as n, createElementVNode as c, createVNode as v, isRef as L, createTextVNode as g, toDisplayString as p, createElementBlock as z, Fragment as D, renderList as H, createSlots as K, normalizeClass as P } from "vue";
2
+ import { ScalarModal as O, ScalarSearchInput as W, ScalarSearchResultList as Y, ScalarSearchResultItem as j } from "@scalar/components";
3
+ import { lazyBus as A } from "../../components/Content/Lazy/lazyBus.js";
4
+ import G from "../../components/Sidebar/SidebarHttpBadge.vue.js";
5
+ import { useSearchIndex as J } from "./useSearchIndex.js";
6
+ import { useSidebar as Q } from "../../hooks/useSidebar.js";
7
+ import { scrollToId as b } from "../../helpers/scrollToId.js";
8
+ const ae = /* @__PURE__ */ M({
12
9
  __name: "SearchModal",
13
10
  props: {
14
11
  parsedSpec: {},
15
12
  modalState: {}
16
13
  },
17
- setup(i) {
18
- const m = i, V = M(m, "parsedSpec"), {
14
+ setup(C) {
15
+ const d = C, V = U(d, "parsedSpec"), {
19
16
  resetSearch: B,
20
17
  fuseSearch: x,
21
- selectedSearchResult: n,
22
- searchResultsWithPlaceholderResults: c,
23
- searchText: p
24
- } = Q({
18
+ selectedSearchResult: r,
19
+ searchResultsWithPlaceholderResults: i,
20
+ searchText: m
21
+ } = J({
25
22
  specification: V
26
23
  }), F = {
27
24
  heading: "DocsPage",
@@ -29,112 +26,112 @@ const Z = (i) => (P("data-v-fc89d20d"), i = i(), O(), i), y = /* @__PURE__ */ Z(
29
26
  req: "Terminal",
30
27
  tag: "CodeFolder",
31
28
  webhook: "Terminal"
32
- }, N = U(null);
33
- k(
34
- () => m.modalState.open,
29
+ }, N = q(null);
30
+ I(
31
+ () => d.modalState.open,
35
32
  (o) => {
36
33
  o && B();
37
34
  }
38
35
  );
39
- const { setCollapsedSidebarItem: T } = X(), E = /#(tag\/[^/]*)/;
36
+ const { setCollapsedSidebarItem: T } = Q(), E = /#(tag\/[^/]*)/;
40
37
  function R(o) {
41
38
  let t = "models";
42
39
  const e = o.item.href.match(E);
43
40
  e != null && e.length && e.length > 1 && (t = e[1]), T(t, !0);
44
- const s = o.item.href.replace("#", "");
45
- if (document.getElementById(s))
46
- C(s), m.modalState.hide();
41
+ const l = o.item.href.replace("#", "");
42
+ if (document.getElementById(l))
43
+ b(l), d.modalState.hide();
47
44
  else {
48
- const r = G.on((u) => {
49
- u.id === s && (C(s), r(), m.modalState.hide());
45
+ const s = A.on((u) => {
46
+ u.id === l && (b(l), s(), d.modalState.hide());
50
47
  });
51
48
  }
52
49
  }
53
- k(n, (o) => {
50
+ I(r, (o) => {
54
51
  var e;
55
- const t = c.value[o];
52
+ const t = i.value[o];
56
53
  (e = document.getElementById(t.item.href)) == null || e.scrollIntoView({
57
54
  behavior: "smooth",
58
55
  block: "nearest"
59
56
  });
60
57
  });
61
58
  const w = (o) => {
62
- const t = o === "up" ? -1 : 1, e = c.value.length, s = (n.value + t + e) % e;
63
- n.value = s;
59
+ const t = o === "up" ? -1 : 1, e = i.value.length, l = (r.value + t + e) % e;
60
+ r.value = l;
64
61
  };
65
- function _(o) {
62
+ function $(o) {
66
63
  const t = new URL(window.location.href);
67
64
  return t.hash = o, t.toString();
68
65
  }
69
- return (o, t) => (h(), b(a(W), {
66
+ return (o, t) => (f(), k(a(O), {
70
67
  state: o.modalState,
71
68
  variant: "search",
72
69
  onKeydown: [
73
- t[1] || (t[1] = S(v((e) => w("down"), ["stop", "prevent"]), ["down"])),
74
- t[2] || (t[2] = S(v((e) => R(
75
- a(c)[a(n)]
70
+ t[1] || (t[1] = h(S((e) => w("down"), ["stop", "prevent"]), ["down"])),
71
+ t[2] || (t[2] = h(S((e) => R(
72
+ a(i)[a(r)]
76
73
  ), ["stop", "prevent"]), ["enter"])),
77
- t[3] || (t[3] = S(v((e) => w("up"), ["stop", "prevent"]), ["up"]))
74
+ t[3] || (t[3] = h(S((e) => w("up"), ["stop", "prevent"]), ["up"]))
78
75
  ]
79
76
  }, {
80
- default: l(() => [
81
- d("div", {
77
+ default: n(() => [
78
+ c("div", {
82
79
  ref_key: "searchModalRef",
83
80
  ref: N,
84
81
  class: "ref-search-container"
85
82
  }, [
86
- g(a(Y), {
87
- modelValue: a(p),
88
- "onUpdate:modelValue": t[0] || (t[0] = (e) => q(p) ? p.value = e : null),
83
+ v(a(W), {
84
+ modelValue: a(m),
85
+ "onUpdate:modelValue": t[0] || (t[0] = (e) => L(m) ? m.value = e : null),
89
86
  onInput: a(x)
90
87
  }, null, 8, ["modelValue", "onInput"])
91
88
  ], 512),
92
- g(a(j), {
89
+ v(a(Y), {
93
90
  class: "ref-search-results custom-scroll",
94
- noResults: !a(c).length
91
+ noResults: !a(i).length
95
92
  }, {
96
- query: l(() => [
97
- I(f(a(p)), 1)
93
+ query: n(() => [
94
+ g(p(a(m)), 1)
98
95
  ]),
99
- default: l(() => [
100
- (h(!0), L(z, null, D(a(c), (e, s) => (h(), b(a(A), {
96
+ default: n(() => [
97
+ (f(!0), z(D, null, H(a(i), (e, l) => (f(), k(a(j), {
101
98
  id: e.item.href,
102
99
  key: e.refIndex,
103
- active: a(n) === s,
104
- href: _(e.item.href),
100
+ active: a(r) === l,
101
+ href: $(e.item.href),
105
102
  icon: F[e.item.type],
106
- onClick: (r) => R(e),
107
- onFocus: (r) => n.value = s
108
- }, H({
109
- default: l(() => {
110
- var r, u;
103
+ onClick: (s) => R(e),
104
+ onFocus: (s) => r.value = l
105
+ }, K({
106
+ default: n(() => {
107
+ var s, u;
111
108
  return [
112
- d("span", {
113
- class: K({
114
- deprecated: (u = (r = e.item.operation) == null ? void 0 : r.information) == null ? void 0 : u.deprecated
109
+ c("span", {
110
+ class: P({
111
+ deprecated: (u = (s = e.item.operation) == null ? void 0 : s.information) == null ? void 0 : u.deprecated
115
112
  })
116
- }, f(e.item.title), 3)
113
+ }, p(e.item.title), 3)
117
114
  ];
118
115
  }),
119
116
  _: 2
120
117
  }, [
121
118
  (e.item.httpVerb || e.item.path) && e.item.path !== e.item.title ? {
122
119
  name: "description",
123
- fn: l(() => [
124
- I(f(e.item.path), 1)
120
+ fn: n(() => [
121
+ g(p(e.item.path), 1)
125
122
  ]),
126
123
  key: "0"
127
124
  } : e.item.description ? {
128
125
  name: "description",
129
- fn: l(() => [
130
- I(f(e.item.description), 1)
126
+ fn: n(() => [
127
+ g(p(e.item.description), 1)
131
128
  ]),
132
129
  key: "1"
133
130
  } : void 0,
134
131
  e.item.type === "req" ? {
135
132
  name: "addon",
136
- fn: l(() => [
137
- g(J, {
133
+ fn: n(() => [
134
+ v(G, {
138
135
  method: e.item.httpVerb ?? "get"
139
136
  }, null, 8, ["method"])
140
137
  ]),
@@ -144,12 +141,15 @@ const Z = (i) => (P("data-v-fc89d20d"), i = i(), O(), i), y = /* @__PURE__ */ Z(
144
141
  ]),
145
142
  _: 1
146
143
  }, 8, ["noResults"]),
147
- y
144
+ t[4] || (t[4] = c("div", { class: "ref-search-meta" }, [
145
+ c("span", null, "↑↓ Navigate"),
146
+ c("span", null, "⏎ Select")
147
+ ], -1))
148
148
  ]),
149
149
  _: 1
150
150
  }, 8, ["state"]));
151
151
  }
152
152
  });
153
153
  export {
154
- re as default
154
+ ae as default
155
155
  };
@@ -23,8 +23,8 @@ export declare function useSearchIndex({ specification, }: {
23
23
  }): {
24
24
  resetSearch: () => void;
25
25
  fuseSearch: () => void;
26
- selectedSearchResult: Ref<number>;
26
+ selectedSearchResult: Ref<number, number>;
27
27
  searchResultsWithPlaceholderResults: import("vue").ComputedRef<FuseResult<FuseData>[]>;
28
- searchText: Ref<string>;
28
+ searchText: Ref<string, string>;
29
29
  };
30
30
  //# sourceMappingURL=useSearchIndex.d.ts.map
@@ -1,6 +1,6 @@
1
1
  /** This hook helps with retrieving the dark mode setting from local storage or from system settings. */
2
2
  export declare function useDarkModeState(isDarkInitially?: boolean, forceDarkModeState?: 'dark' | 'light'): {
3
- isDark: import("vue").Ref<boolean>;
3
+ isDark: import("vue").Ref<boolean, boolean>;
4
4
  toggleDarkMode: () => void;
5
5
  setDarkMode: (value: boolean) => void;
6
6
  };
@@ -8,7 +8,7 @@ import type { PathRouting } from '../types';
8
8
  * when clicking on sidebar links or going backwards
9
9
  */
10
10
  export declare const useNavState: () => {
11
- hash: import("vue").Ref<string>;
11
+ hash: import("vue").Ref<string, string>;
12
12
  getWebhookId: (name?: string, httpVerb?: string) => string;
13
13
  getModelId: (name?: string) => string;
14
14
  getHeadingId: (heading: Heading) => string;
@@ -16,8 +16,8 @@ export declare const useNavState: () => {
16
16
  getPathRoutingId: (pathName: string) => string;
17
17
  getSectionId: (hashStr?: string) => string;
18
18
  getTagId: ({ name }: Tag) => string;
19
- isIntersectionEnabled: import("vue").Ref<boolean>;
20
- pathRouting: import("vue").Ref<PathRouting | undefined>;
19
+ isIntersectionEnabled: import("vue").Ref<boolean, boolean>;
20
+ pathRouting: import("vue").Ref<PathRouting | undefined, PathRouting | undefined>;
21
21
  updateHash: () => void;
22
22
  };
23
23
  //# sourceMappingURL=useNavState.d.ts.map
@@ -7,7 +7,7 @@ export declare function useReactiveSpec({ specConfig, proxy, }: {
7
7
  specConfig?: MaybeRefOrGetter<SpecConfiguration>;
8
8
  proxy?: MaybeRefOrGetter<string>;
9
9
  }): {
10
- rawSpec: import("vue").Ref<string>;
10
+ rawSpec: import("vue").Ref<string, string>;
11
11
  parsedSpec: {
12
12
  tags?: {
13
13
  name: string;
@@ -215,6 +215,6 @@ export declare function useReactiveSpec({ specConfig, proxy, }: {
215
215
  }[] | undefined;
216
216
  security?: import("@scalar/openapi-types").OpenAPIV3.SecurityRequirementObject[] | undefined;
217
217
  };
218
- specErrors: import("vue").Ref<string | null>;
218
+ specErrors: import("vue").Ref<string | null, string | null>;
219
219
  };
220
220
  //# sourceMappingURL=useReactiveSpec.d.ts.map
@@ -2,5 +2,5 @@ import { type Ref } from 'vue';
2
2
  /**
3
3
  * Set a ref value on mount when needed to access properties that are not SSR-friendly.
4
4
  */
5
- export declare function useRefOnMount<T>(setter: () => T): Ref<T | null>;
5
+ export declare function useRefOnMount<T>(setter: () => T): Ref<T | null, T | null>;
6
6
  //# sourceMappingURL=useRefOnMount.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"useRefOnMount.d.ts","sourceRoot":"","sources":["../../src/hooks/useRefOnMount.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,GAAG,EAAkB,MAAM,KAAK,CAAA;AAE9C;;GAEG;AACH,wBAAgB,aAAa,CAAC,CAAC,EAAE,MAAM,EAAE,MAAM,CAAC,iBAQ/C"}
1
+ {"version":3,"file":"useRefOnMount.d.ts","sourceRoot":"","sources":["../../src/hooks/useRefOnMount.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,GAAG,EAAkB,MAAM,KAAK,CAAA;AAE9C;;GAEG;AACH,wBAAgB,aAAa,CAAC,CAAC,EAAE,MAAM,EAAE,MAAM,CAAC,2BAQ/C"}
@@ -39,13 +39,13 @@ export declare function useSidebar(options?: ParsedSpecOption & SorterOption): {
39
39
  entries: SidebarEntry[];
40
40
  titles: Record<string, string>;
41
41
  }>;
42
- isSidebarOpen: import("vue").Ref<boolean>;
42
+ isSidebarOpen: import("vue").Ref<boolean, boolean>;
43
43
  collapsedSidebarItems: CollapsedSidebarItems;
44
44
  toggleCollapsedSidebarItem: typeof toggleCollapsedSidebarItem;
45
45
  setCollapsedSidebarItem: typeof setCollapsedSidebarItem;
46
- hideModels: import("vue").Ref<boolean>;
46
+ hideModels: import("vue").Ref<boolean, boolean>;
47
47
  setParsedSpec: typeof setParsedSpec;
48
- defaultOpenAllTags: import("vue").Ref<boolean>;
48
+ defaultOpenAllTags: import("vue").Ref<boolean, boolean>;
49
49
  scrollToOperation: (operationId: string) => void;
50
50
  };
51
51
  export {};