@scalar/api-reference 1.36.2 → 1.38.0

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 (242) hide show
  1. package/CHANGELOG.md +83 -0
  2. package/dist/browser/standalone.js +28796 -26431
  3. package/dist/browser/webpack-stats.json +1 -1
  4. package/dist/components/ApiReferenceContent.vue.d.ts +34 -0
  5. package/dist/components/ApiReferenceContent.vue.d.ts.map +1 -0
  6. package/dist/components/ApiReferenceContent.vue.js +8 -0
  7. package/dist/components/ApiReferenceContent.vue2.js +148 -0
  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 +239 -219
  11. package/dist/components/Content/ClientLibraries/ClientLibraries.vue.d.ts +2 -2
  12. package/dist/components/Content/ClientLibraries/ClientLibraries.vue.d.ts.map +1 -1
  13. package/dist/components/Content/ClientLibraries/ClientSelector.vue.d.ts +1 -1
  14. package/dist/components/Content/ClientLibraries/ClientSelector.vue.d.ts.map +1 -1
  15. package/dist/components/Content/ClientLibraries/featured-clients.d.ts +1 -1
  16. package/dist/components/Content/ClientLibraries/featured-clients.d.ts.map +1 -1
  17. package/dist/components/Content/Content.vue.d.ts +21 -3
  18. package/dist/components/Content/Content.vue.d.ts.map +1 -1
  19. package/dist/components/Content/Content.vue.js +132 -95
  20. package/dist/components/Content/Models/ClassicLayout.vue.d.ts +4 -2
  21. package/dist/components/Content/Models/ClassicLayout.vue.d.ts.map +1 -1
  22. package/dist/components/Content/Models/ClassicLayout.vue.js +2 -2
  23. package/dist/components/Content/Models/ClassicLayout.vue2.js +28 -28
  24. package/dist/components/Content/Models/Models.vue.d.ts +10 -2
  25. package/dist/components/Content/Models/Models.vue.d.ts.map +1 -1
  26. package/dist/components/Content/Models/Models.vue.js +25 -27
  27. package/dist/components/Content/Models/ModernLayout.vue.d.ts +6 -2
  28. package/dist/components/Content/Models/ModernLayout.vue.d.ts.map +1 -1
  29. package/dist/components/Content/Models/ModernLayout.vue.js +1 -1
  30. package/dist/components/Content/Models/ModernLayout.vue2.js +30 -29
  31. package/dist/components/Content/Operations/TraversedEntry.vue.d.ts +20 -6
  32. package/dist/components/Content/Operations/TraversedEntry.vue.d.ts.map +1 -1
  33. package/dist/components/Content/Operations/TraversedEntry.vue.js +58 -46
  34. package/dist/components/Content/Operations/get-current-index.d.ts +1 -1
  35. package/dist/components/Content/Operations/get-current-index.d.ts.map +1 -1
  36. package/dist/components/Content/Schema/helpers/get-ref-name.d.ts.map +1 -1
  37. package/dist/components/Content/Schema/helpers/get-ref-name.js +9 -7
  38. package/dist/components/Content/Schema/helpers/merge-all-of-schemas.js +1 -1
  39. package/dist/components/Content/Schema/helpers/schema-name.d.ts.map +1 -1
  40. package/dist/components/Content/Schema/helpers/schema-name.js +15 -14
  41. package/dist/components/Content/Tags/ClassicLayout.vue.d.ts +1 -1
  42. package/dist/components/Content/Tags/ClassicLayout.vue.d.ts.map +1 -1
  43. package/dist/components/Content/Tags/ClassicLayout.vue.js +2 -2
  44. package/dist/components/Content/Tags/ModernLayout.vue.d.ts +3 -1
  45. package/dist/components/Content/Tags/ModernLayout.vue.d.ts.map +1 -1
  46. package/dist/components/Content/Tags/ModernLayout.vue.js +1 -1
  47. package/dist/components/Content/Tags/ModernLayout.vue2.js +34 -30
  48. package/dist/components/Content/Tags/Tag.vue.d.ts +3 -1
  49. package/dist/components/Content/Tags/Tag.vue.d.ts.map +1 -1
  50. package/dist/components/Content/Tags/Tag.vue.js +14 -12
  51. package/dist/components/Content/Tags/TagSection.vue.d.ts +2 -1
  52. package/dist/components/Content/Tags/TagSection.vue.d.ts.map +1 -1
  53. package/dist/components/Content/Tags/TagSection.vue.js +49 -52
  54. package/dist/components/GettingStarted.vue.d.ts.map +1 -1
  55. package/dist/components/GettingStarted.vue.js +2 -2
  56. package/dist/components/GettingStarted.vue2.js +22 -22
  57. package/dist/components/OperationsList/OperationsList.vue.d.ts +1 -1
  58. package/dist/components/OperationsList/OperationsList.vue.d.ts.map +1 -1
  59. package/dist/components/OperationsList/OperationsList.vue.js +2 -2
  60. package/dist/components/OperationsList/OperationsListItem.vue.d.ts +1 -1
  61. package/dist/components/OperationsList/OperationsListItem.vue.d.ts.map +1 -1
  62. package/dist/components/OperationsList/OperationsListItem.vue.js +2 -2
  63. package/dist/components/ShowMoreButton.vue.d.ts +1 -0
  64. package/dist/components/ShowMoreButton.vue.d.ts.map +1 -1
  65. package/dist/components/ShowMoreButton.vue.js +2 -2
  66. package/dist/components/ShowMoreButton.vue2.js +12 -12
  67. package/dist/esm.d.ts +2 -2
  68. package/dist/esm.d.ts.map +1 -1
  69. package/dist/features/Operation/Operation.vue.d.ts +21 -9
  70. package/dist/features/Operation/Operation.vue.d.ts.map +1 -1
  71. package/dist/features/Operation/Operation.vue.js +42 -53
  72. package/dist/features/Operation/components/Header.vue.d.ts +2 -2
  73. package/dist/features/Operation/components/Header.vue.d.ts.map +1 -1
  74. package/dist/features/Operation/components/Header.vue.js +9 -8
  75. package/dist/features/Operation/components/Headers.vue.d.ts +2 -2
  76. package/dist/features/Operation/components/Headers.vue.d.ts.map +1 -1
  77. package/dist/features/Operation/components/Headers.vue.js +2 -2
  78. package/dist/features/Operation/components/Headers.vue2.js +31 -29
  79. package/dist/features/Operation/components/OperationParameters.vue.d.ts +4 -0
  80. package/dist/features/Operation/components/OperationParameters.vue.d.ts.map +1 -1
  81. package/dist/features/Operation/components/OperationParameters.vue.js +37 -31
  82. package/dist/features/Operation/components/OperationResponses.vue.d.ts +5 -1
  83. package/dist/features/Operation/components/OperationResponses.vue.d.ts.map +1 -1
  84. package/dist/features/Operation/components/OperationResponses.vue.js +16 -17
  85. package/dist/features/Operation/components/ParameterList.vue.d.ts +6 -2
  86. package/dist/features/Operation/components/ParameterList.vue.d.ts.map +1 -1
  87. package/dist/features/Operation/components/ParameterList.vue.js +17 -19
  88. package/dist/features/Operation/components/ParameterListItem.vue.d.ts +6 -2
  89. package/dist/features/Operation/components/ParameterListItem.vue.d.ts.map +1 -1
  90. package/dist/features/Operation/components/ParameterListItem.vue.js +3 -3
  91. package/dist/features/Operation/components/ParameterListItem.vue2.js +64 -65
  92. package/dist/features/Operation/components/RequestBody.vue.d.ts +4 -0
  93. package/dist/features/Operation/components/RequestBody.vue.d.ts.map +1 -1
  94. package/dist/features/Operation/components/RequestBody.vue.js +2 -2
  95. package/dist/features/Operation/components/RequestBody.vue2.js +65 -65
  96. package/dist/features/Operation/components/callbacks/Callback.vue.d.ts +4 -0
  97. package/dist/features/Operation/components/callbacks/Callback.vue.d.ts.map +1 -1
  98. package/dist/features/Operation/components/callbacks/Callback.vue.js +3 -3
  99. package/dist/features/Operation/components/callbacks/Callback.vue2.js +29 -22
  100. package/dist/features/Operation/components/callbacks/Callbacks.vue.d.ts +6 -0
  101. package/dist/features/Operation/components/callbacks/Callbacks.vue.d.ts.map +1 -1
  102. package/dist/features/Operation/components/callbacks/Callbacks.vue.js +18 -16
  103. package/dist/features/Operation/layouts/ClassicLayout.vue.d.ts +11 -5
  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 +99 -90
  107. package/dist/features/Operation/layouts/ModernLayout.vue.d.ts +12 -5
  108. package/dist/features/Operation/layouts/ModernLayout.vue.d.ts.map +1 -1
  109. package/dist/features/Operation/layouts/ModernLayout.vue.js +2 -2
  110. package/dist/features/Operation/layouts/ModernLayout.vue2.js +99 -87
  111. package/dist/features/Search/helpers/create-search-index.d.ts +2 -1
  112. package/dist/features/Search/helpers/create-search-index.d.ts.map +1 -1
  113. package/dist/features/Search/types.d.ts +1 -1
  114. package/dist/features/Search/types.d.ts.map +1 -1
  115. package/dist/features/api-client-modal/ApiClientModal.vue.d.ts.map +1 -1
  116. package/dist/features/api-client-modal/ApiClientModal.vue.js +23 -26
  117. package/dist/features/api-client-modal/useApiClient.d.ts +3039 -2895
  118. package/dist/features/api-client-modal/useApiClient.d.ts.map +1 -1
  119. package/dist/features/document-source/hooks/useDocumentFetcher.d.ts +2 -2
  120. package/dist/features/document-source/hooks/useDocumentFetcher.d.ts.map +1 -1
  121. package/dist/features/document-source/hooks/useDocumentFetcher.js +13 -11
  122. package/dist/features/document-source/hooks/useDocumentSource.d.ts +2 -2
  123. package/dist/features/document-source/hooks/useDocumentSource.d.ts.map +1 -1
  124. package/dist/features/document-source/hooks/useDocumentSource.js +38 -34
  125. package/dist/features/example-responses/ExampleResponse.vue.d.ts.map +1 -1
  126. package/dist/features/example-responses/ExampleResponse.vue.js +3 -3
  127. package/dist/features/example-responses/ExampleResponse.vue2.js +26 -18
  128. package/dist/features/example-responses/ExampleResponses.vue.d.ts.map +1 -1
  129. package/dist/features/example-responses/ExampleResponses.vue.js +2 -2
  130. package/dist/features/example-responses/ExampleResponses.vue2.js +53 -53
  131. package/dist/features/multiple-documents/DocumentSelector.vue.d.ts +2 -2
  132. package/dist/features/multiple-documents/DocumentSelector.vue.d.ts.map +1 -1
  133. package/dist/features/multiple-documents/useMultipleDocuments.d.ts +10 -7
  134. package/dist/features/multiple-documents/useMultipleDocuments.d.ts.map +1 -1
  135. package/dist/features/multiple-documents/useMultipleDocuments.js +47 -44
  136. package/dist/features/test-request-button/TestRequestButton.vue.d.ts.map +1 -1
  137. package/dist/features/test-request-button/TestRequestButton.vue.js +2 -2
  138. package/dist/features/test-request-button/TestRequestButton.vue2.js +15 -21
  139. package/dist/features/toolbar/ApiReferenceToolbar.vue.js +18 -18
  140. package/dist/features/toolbar/ApiReferenceToolbarConfig.vue.js +1 -1
  141. package/dist/features/toolbar/ApiReferenceToolbarConfigTheme.vue.d.ts +2 -2
  142. package/dist/features/toolbar/ApiReferenceToolbarPopover.vue.js +1 -1
  143. package/dist/features/toolbar/ApiReferenceToolbarSdks.vue.js +1 -1
  144. package/dist/features/toolbar/ApiReferenceToolbarShare.vue.js +8 -8
  145. package/dist/features/toolbar/ApiReferenceToolbarShareRegister.vue.d.ts.map +1 -1
  146. package/dist/features/toolbar/ApiReferenceToolbarShareRegister.vue.js +34 -28
  147. package/dist/features/toolbar/ApiReferenceToolbarTitle.vue.js +27 -27
  148. package/dist/helpers/test-utils.d.ts +3 -365
  149. package/dist/helpers/test-utils.d.ts.map +1 -1
  150. package/dist/hooks/useNavState.d.ts +4 -2
  151. package/dist/hooks/useNavState.d.ts.map +1 -1
  152. package/dist/hooks/useNavState.js +31 -27
  153. package/dist/index.d.ts +1 -0
  154. package/dist/index.d.ts.map +1 -1
  155. package/dist/index.js +21 -19
  156. package/dist/standalone/lib/html-api.d.ts +3 -3
  157. package/dist/standalone/lib/html-api.d.ts.map +1 -1
  158. package/dist/standalone/lib/register-globals.d.ts.map +1 -1
  159. package/dist/style.css +1 -1
  160. package/dist/types.d.ts +2 -2
  161. package/dist/types.d.ts.map +1 -1
  162. package/dist/v2/ApiReferenceWorkspace.vue.d.ts.map +1 -1
  163. package/dist/v2/ApiReferenceWorkspace.vue.js +46 -40
  164. package/dist/v2/blocks/scalar-auth-selector-block/components/AuthSelector.vue.d.ts.map +1 -1
  165. package/dist/v2/blocks/scalar-auth-selector-block/components/AuthSelector.vue.js +1 -1
  166. package/dist/v2/blocks/scalar-auth-selector-block/components/AuthSelector.vue2.js +18 -19
  167. package/dist/v2/blocks/scalar-client-selector-block/components/ClientDropdown.vue.d.ts +1 -1
  168. package/dist/v2/blocks/scalar-client-selector-block/components/ClientDropdown.vue.d.ts.map +1 -1
  169. package/dist/v2/blocks/scalar-client-selector-block/components/ClientDropdown.vue.js +2 -2
  170. package/dist/v2/blocks/scalar-client-selector-block/components/ClientDropdown.vue2.js +11 -11
  171. package/dist/v2/blocks/scalar-client-selector-block/components/ClientSelector.vue.d.ts +2 -2
  172. package/dist/v2/blocks/scalar-client-selector-block/components/ClientSelector.vue.d.ts.map +1 -1
  173. package/dist/v2/blocks/scalar-client-selector-block/components/ClientSelector.vue.js +2 -2
  174. package/dist/v2/blocks/scalar-client-selector-block/components/ClientSelector.vue2.js +10 -10
  175. package/dist/v2/blocks/scalar-client-selector-block/helpers/featured-clients.d.ts +1 -1
  176. package/dist/v2/blocks/scalar-client-selector-block/helpers/featured-clients.d.ts.map +1 -1
  177. package/dist/v2/blocks/scalar-info-block/components/DownloadLink.vue.d.ts +3 -0
  178. package/dist/v2/blocks/scalar-info-block/components/DownloadLink.vue.d.ts.map +1 -1
  179. package/dist/v2/blocks/scalar-info-block/components/DownloadLink.vue.js +2 -2
  180. package/dist/v2/blocks/scalar-info-block/components/DownloadLink.vue2.js +32 -31
  181. package/dist/v2/blocks/scalar-info-block/components/InfoBlock.vue.d.ts +15 -8
  182. package/dist/v2/blocks/scalar-info-block/components/InfoBlock.vue.d.ts.map +1 -1
  183. package/dist/v2/blocks/scalar-info-block/components/InfoBlock.vue.js +25 -20
  184. package/dist/v2/blocks/scalar-info-block/components/IntroductionLayout.vue.d.ts +8 -7
  185. package/dist/v2/blocks/scalar-info-block/components/IntroductionLayout.vue.d.ts.map +1 -1
  186. package/dist/v2/blocks/scalar-info-block/components/IntroductionLayout.vue.js +2 -2
  187. package/dist/v2/blocks/scalar-info-block/components/IntroductionLayout.vue2.js +27 -32
  188. package/dist/v2/blocks/scalar-server-selector-block/components/Selector.vue.d.ts +2 -22
  189. package/dist/v2/blocks/scalar-server-selector-block/components/Selector.vue.d.ts.map +1 -1
  190. package/dist/v2/blocks/scalar-sidebar-block/components/SidebarBlock.vue.d.ts +8 -0
  191. package/dist/v2/blocks/scalar-sidebar-block/components/SidebarBlock.vue.d.ts.map +1 -1
  192. package/dist/v2/blocks/scalar-sidebar-block/components/SidebarBlock.vue.js +2 -2
  193. package/dist/v2/blocks/scalar-sidebar-block/components/SidebarBlock.vue2.js +70 -65
  194. package/dist/v2/blocks/scalar-sidebar-block/components/SidebarElement.vue.d.ts +9 -1
  195. package/dist/v2/blocks/scalar-sidebar-block/components/SidebarElement.vue.d.ts.map +1 -1
  196. package/dist/v2/blocks/scalar-sidebar-block/components/SidebarElement.vue.js +2 -2
  197. package/dist/v2/blocks/scalar-sidebar-block/components/SidebarElement.vue2.js +60 -57
  198. package/dist/v2/blocks/scalar-sidebar-block/helpers/create-sidebar.d.ts +3 -365
  199. package/dist/v2/blocks/scalar-sidebar-block/helpers/create-sidebar.d.ts.map +1 -1
  200. package/dist/v2/blocks/scalar-sidebar-block/helpers/generate-reverse-index.d.ts +3 -183
  201. package/dist/v2/blocks/scalar-sidebar-block/helpers/generate-reverse-index.d.ts.map +1 -1
  202. package/dist/v2/helpers/map-configuration.d.ts +24 -24
  203. package/dist/v2/helpers/map-configuration.d.ts.map +1 -1
  204. package/package.json +20 -17
  205. package/dist/components/Content/Operations/TraversedEntryContainer.vue.d.ts +0 -13
  206. package/dist/components/Content/Operations/TraversedEntryContainer.vue.d.ts.map +0 -1
  207. package/dist/components/Content/Operations/TraversedEntryContainer.vue.js +0 -52
  208. package/dist/components/Content/Operations/TraversedEntryContainer.vue2.js +0 -4
  209. package/dist/components/Content/Operations/index.d.ts +0 -2
  210. package/dist/components/Content/Operations/index.d.ts.map +0 -1
  211. package/dist/hooks/useConfig.d.ts +0 -9
  212. package/dist/hooks/useConfig.d.ts.map +0 -1
  213. package/dist/hooks/useConfig.js +0 -10
  214. package/dist/legacy/stores/index.d.ts +0 -2
  215. package/dist/legacy/stores/index.d.ts.map +0 -1
  216. package/dist/legacy/stores/useExampleStore.d.ts +0 -5
  217. package/dist/legacy/stores/useExampleStore.d.ts.map +0 -1
  218. package/dist/legacy/stores/useExampleStore.js +0 -8
  219. package/dist/v2/blocks/scalar-request-example-block/components/ExamplePicker.vue.d.ts +0 -14
  220. package/dist/v2/blocks/scalar-request-example-block/components/ExamplePicker.vue.d.ts.map +0 -1
  221. package/dist/v2/blocks/scalar-request-example-block/components/ExamplePicker.vue.js +0 -4
  222. package/dist/v2/blocks/scalar-request-example-block/components/ExamplePicker.vue2.js +0 -55
  223. package/dist/v2/blocks/scalar-request-example-block/components/RequestExample.vue.d.ts +0 -79
  224. package/dist/v2/blocks/scalar-request-example-block/components/RequestExample.vue.d.ts.map +0 -1
  225. package/dist/v2/blocks/scalar-request-example-block/components/RequestExample.vue.js +0 -7
  226. package/dist/v2/blocks/scalar-request-example-block/components/RequestExample.vue2.js +0 -236
  227. package/dist/v2/blocks/scalar-request-example-block/helpers/find-client.d.ts +0 -41
  228. package/dist/v2/blocks/scalar-request-example-block/helpers/find-client.d.ts.map +0 -1
  229. package/dist/v2/blocks/scalar-request-example-block/helpers/find-client.js +0 -22
  230. package/dist/v2/blocks/scalar-request-example-block/helpers/generate-client-options.d.ts +0 -20
  231. package/dist/v2/blocks/scalar-request-example-block/helpers/generate-client-options.d.ts.map +0 -1
  232. package/dist/v2/blocks/scalar-request-example-block/helpers/generate-client-options.js +0 -33
  233. package/dist/v2/blocks/scalar-request-example-block/helpers/generate-code-snippet.d.ts +0 -17
  234. package/dist/v2/blocks/scalar-request-example-block/helpers/generate-code-snippet.d.ts.map +0 -1
  235. package/dist/v2/blocks/scalar-request-example-block/helpers/generate-code-snippet.js +0 -26
  236. package/dist/v2/blocks/scalar-request-example-block/helpers/get-secrets.d.ts +0 -4
  237. package/dist/v2/blocks/scalar-request-example-block/helpers/get-secrets.d.ts.map +0 -1
  238. package/dist/v2/blocks/scalar-request-example-block/helpers/get-secrets.js +0 -10
  239. package/dist/v2/blocks/scalar-request-example-block/index.d.ts +0 -3
  240. package/dist/v2/blocks/scalar-request-example-block/index.d.ts.map +0 -1
  241. package/dist/v2/blocks/scalar-request-example-block/types.d.ts +0 -29
  242. package/dist/v2/blocks/scalar-request-example-block/types.d.ts.map +0 -1
@@ -1,41 +1,39 @@
1
- import { defineComponent as Z, computed as g, provide as b, ref as k, onBeforeMount as x, onMounted as ee, watch as D, onUnmounted as te, useId as oe, createElementBlock as u, openBlock as a, Fragment as H, createElementVNode as m, createVNode as c, normalizeStyle as re, normalizeClass as ae, unref as r, createCommentVNode as s, withDirectives as se, createBlock as S, renderSlot as l, normalizeProps as v, guardReactiveProps as f, withCtx as i, vShow as ne, createSlots as ie } from "vue";
2
- import { provideUseId as le } from "@headlessui/vue";
3
- import { OpenApiClientButton as de } from "@scalar/api-client/components";
4
- import { LAYOUT_SYMBOL as ue } from "@scalar/api-client/hooks";
5
- import { WORKSPACE_SYMBOL as ce, ACTIVE_ENTITIES_SYMBOL as me } from "@scalar/api-client/store";
6
- import { addScalarClassesToHeadless as ve, ScalarErrorBoundary as fe, ScalarSidebarFooter as pe, ScalarColorModeToggleButton as he, ScalarColorModeToggleIcon as ge } from "@scalar/components";
7
- import { sleep as Se } from "@scalar/helpers/testing/sleep";
8
- import { hasObtrusiveScrollbars as be, getThemeStyles as ye } from "@scalar/themes";
9
- import { apiReferenceConfigurationSchema as we } from "@scalar/types/api-reference";
10
- import { useBreakpoints as ke } from "@scalar/use-hooks/useBreakpoints";
11
- import { useToasts as $e, ScalarToasts as Me } from "@scalar/use-toasts";
12
- import { useMediaQuery as De, useResizeObserver as Te, useDebounceFn as Ce } from "@vueuse/core";
13
- import Ee from "./ClassicHeader.vue.js";
14
- import Be from "./GettingStarted.vue.js";
15
- import { hasLazyLoaded as Le } from "./Lazy/lazyBus.js";
16
- import Oe from "./MobileHeader.vue.js";
17
- import { CONFIGURATION_SYMBOL as Ie } from "../hooks/useConfig.js";
18
- import { useNavState as Re } from "../hooks/useNavState.js";
19
- import { useLegacyStoreEvents as He } from "../v2/hooks/use-legacy-store-events.js";
20
- import { useDocumentSource as Ae } from "../features/document-source/hooks/useDocumentSource.js";
21
- import { useSidebar as Fe } from "../v2/blocks/scalar-sidebar-block/hooks/useSidebar.js";
22
- import { PLUGIN_MANAGER_SYMBOL as Pe } from "../plugins/hooks/usePluginManager.js";
23
- import { createPluginManager as Ne } from "../plugins/plugin-manager.js";
24
- import _e from "../v2/blocks/scalar-sidebar-block/components/SidebarBlock.vue.js";
25
- import A from "../features/Search/components/SearchButton.vue.js";
26
- import Ue from "./Content/Content.vue.js";
1
+ import { defineComponent as Q, computed as g, provide as k, useId as W, ref as M, onBeforeMount as j, onMounted as J, onUnmounted as X, watch as $, createElementBlock as m, openBlock as n, Fragment as Z, createElementVNode as v, createVNode as c, normalizeStyle as _, normalizeClass as x, unref as a, createCommentVNode as i, withDirectives as ee, createBlock as S, renderSlot as d, normalizeProps as f, guardReactiveProps as h, withCtx as s, vShow as te, createSlots as oe } from "vue";
2
+ import { provideUseId as ae } from "@headlessui/vue";
3
+ import { OpenApiClientButton as re } from "@scalar/api-client/components";
4
+ import { LAYOUT_SYMBOL as ne } from "@scalar/api-client/hooks";
5
+ import { WORKSPACE_SYMBOL as le, ACTIVE_ENTITIES_SYMBOL as ie } from "@scalar/api-client/store";
6
+ import { addScalarClassesToHeadless as se, ScalarErrorBoundary as de, ScalarSidebarFooter as ue, ScalarColorModeToggleButton as ce, ScalarColorModeToggleIcon as me } from "@scalar/components";
7
+ import { sleep as ve } from "@scalar/helpers/testing/sleep";
8
+ import { hasObtrusiveScrollbars as fe, getThemeStyles as he } from "@scalar/themes";
9
+ import { useBreakpoints as pe } from "@scalar/use-hooks/useBreakpoints";
10
+ import { ScalarToasts as ge } from "@scalar/use-toasts";
11
+ import { useDebounceFn as Se, useResizeObserver as be } from "@vueuse/core";
12
+ import ye from "./ClassicHeader.vue.js";
13
+ import we from "./GettingStarted.vue.js";
14
+ import { hasLazyLoaded as ke } from "./Lazy/lazyBus.js";
15
+ import Te from "./MobileHeader.vue.js";
16
+ import { useNavState as Me } from "../hooks/useNavState.js";
17
+ import { useLegacyStoreEvents as $e } from "../v2/hooks/use-legacy-store-events.js";
18
+ import { useDocumentSource as De } from "../features/document-source/hooks/useDocumentSource.js";
19
+ import { PLUGIN_MANAGER_SYMBOL as Ce } from "../plugins/hooks/usePluginManager.js";
20
+ import { createPluginManager as Be } from "../plugins/plugin-manager.js";
21
+ import { useSidebar as Re } from "../v2/blocks/scalar-sidebar-block/hooks/useSidebar.js";
22
+ import Ae from "../v2/blocks/scalar-sidebar-block/components/SidebarBlock.vue.js";
23
+ import O from "../features/Search/components/SearchButton.vue.js";
24
+ import Le from "./Content/Content.vue.js";
27
25
  /* empty css */
28
- import Ke from "../features/api-client-modal/ApiClientModal.vue.js";
29
- const Ve = ["innerHTML"], Ye = { class: "references-header" }, ze = ["aria-label"], Ge = { class: "references-navigation-list" }, Qe = { key: 0 }, We = {
26
+ import Ee from "../features/api-client-modal/ApiClientModal.vue.js";
27
+ const Ie = ["innerHTML"], Oe = { class: "references-header" }, Pe = ["aria-label"], Fe = { class: "references-navigation-list" }, He = { key: 0 }, Ke = {
30
28
  key: 1,
31
29
  class: "scalar-api-references-standalone-search"
32
- }, je = { key: 1 }, qe = { class: "references-editor" }, Je = { class: "references-editor-textarea" }, Xe = ["aria-label"], Ze = {
30
+ }, Ne = { key: 1 }, Ue = { class: "references-editor" }, Ve = { class: "references-editor-textarea" }, qe = ["aria-label"], Ye = {
33
31
  key: 0,
34
32
  class: "w-64 *:!p-0 empty:hidden"
35
- }, xe = {
36
- key: 0,
33
+ }, ze = {
34
+ key: 1,
37
35
  class: "references-footer"
38
- }, Et = /* @__PURE__ */ Z({
36
+ }, gt = /* @__PURE__ */ Q({
39
37
  inheritAttrs: !1,
40
38
  __name: "ApiReferenceLayout",
41
39
  props: {
@@ -47,161 +45,167 @@ const Ve = ["innerHTML"], Ye = { class: "references-header" }, ze = ["aria-label
47
45
  store: {}
48
46
  },
49
47
  emits: ["changeTheme", "updateContent", "loadSwaggerFile", "linkSwaggerFile", "toggleDarkMode"],
50
- setup(p) {
51
- const t = g(
52
- () => we.parse(p.configuration)
53
- ), { initializeToasts: F, toast: P } = $e();
54
- F((e) => P(e));
55
- const { dereferencedDocument: y, workspaceStore: T, activeEntitiesStore: C } = Ae({
56
- configuration: t,
57
- dereferencedDocument: p.dereferencedDocument,
58
- originalDocument: p.originalDocument
59
- });
60
- b(ce, T), b(me, C);
61
- const N = De("(min-width: 1150px)"), _ = k("100dvh"), h = k(null);
62
- Te(h, (e) => {
63
- _.value = e[0] ? e[0].contentRect.height + "px" : "100dvh";
48
+ setup(r) {
49
+ const e = g(() => ({
50
+ ...r.configuration,
51
+ hideClientButton: r.configuration.hideClientButton ?? !1,
52
+ showSidebar: r.configuration.showSidebar ?? !0,
53
+ theme: r.configuration.theme ?? "none",
54
+ layout: r.configuration.layout ?? "modern",
55
+ persistAuth: r.configuration.persistAuth ?? !1,
56
+ documentDownloadType: r.configuration.documentDownloadType ?? "both",
57
+ onBeforeRequest: r.configuration.onBeforeRequest
58
+ })), { dereferencedDocument: b, workspaceStore: D, activeEntitiesStore: C } = De({
59
+ configuration: e,
60
+ dereferencedDocument: r.dereferencedDocument,
61
+ originalDocument: r.originalDocument
64
62
  });
65
- const U = g(be), K = Re(t), { isSidebarOpen: $, setCollapsedSidebarItem: E, scrollToOperation: V, items: M } = Fe(p.store), {
66
- getReferenceId: Y,
67
- getPathRoutingId: z,
63
+ k(le, D), k(ie, C), ae(() => W()), k(ne, "modal"), k(
64
+ Ce,
65
+ Be({
66
+ plugins: e.value.plugins
67
+ })
68
+ );
69
+ const { isSidebarOpen: T, setCollapsedSidebarItem: B, scrollToOperation: P, items: y } = Re(r.store), F = g(() => y.value.entries[0]?.id ?? ""), {
70
+ getReferenceId: H,
71
+ getPathRoutingId: K,
68
72
  hash: w,
69
- isIntersectionEnabled: B,
70
- updateHash: L,
71
- replaceUrlState: G
72
- } = K;
73
- if (t.value.redirect && typeof window < "u") {
74
- const e = t.value.redirect(
75
- (t.value.pathRouting ? window.location.pathname : "") + window.location.hash
73
+ isIntersectionEnabled: R,
74
+ updateHash: A,
75
+ replaceUrlState: N
76
+ } = Me(), U = g(
77
+ () => y.value.entities?.get(w.value)?.title ?? ""
78
+ ), u = g(() => ({
79
+ breadcrumb: U.value
80
+ })), V = g(fe), L = M(0);
81
+ if (e.value.redirect && typeof window < "u") {
82
+ const t = e.value.redirect(
83
+ (e.value.pathRouting ? window.location.pathname : "") + window.location.hash
76
84
  );
77
- e && history.replaceState({}, "", e);
85
+ t && history.replaceState({}, "", t);
78
86
  }
79
- x(() => {
80
- L(), ve();
87
+ j(() => {
88
+ A(), se();
81
89
  });
82
- const O = async (e) => {
83
- B.value = !1, L(), e ? V(e) : h.value?.scrollTo(0, 0), await Se(100), B.value = !0;
84
- }, I = k(0);
85
- ee(() => {
90
+ const E = async (t) => {
91
+ R.value = !1, A(), t ? P(t) : p.value?.scrollTo(0, 0), await ve(100), R.value = !0;
92
+ };
93
+ J(() => {
86
94
  history.scrollRestoration = "manual";
87
- const e = h.value?.parentElement?.getBoundingClientRect(), o = h.value?.getBoundingClientRect();
88
- if (e && o) {
89
- const n = o.top - e.top;
90
- I.value = n < 2 ? 0 : n;
95
+ const t = p.value?.parentElement?.getBoundingClientRect(), o = p.value?.getBoundingClientRect();
96
+ if (t && o) {
97
+ const l = o.top - t.top;
98
+ L.value = l < 2 ? 0 : l;
91
99
  }
92
100
  window.onhashchange = () => {
93
- O(Y());
94
- }, window.onpopstate = () => t.value.pathRouting && O(z(window.location.pathname)), window.addEventListener("scroll", R, { passive: !0 });
101
+ E(H());
102
+ }, window.onpopstate = () => e.value.pathRouting && E(K(window.location.pathname)), window.addEventListener("scroll", I, { passive: !0 });
95
103
  });
96
- const Q = g(
97
- () => N.value || !t.value.isEditable
98
- ), R = Ce(() => {
99
- window.scrollY < 50 && Le.value && G("");
100
- }), W = k(!1);
101
- D(
102
- () => p.store.workspace.activeDocument,
104
+ const I = Se(() => {
105
+ window.scrollY < 50 && ke.value && N("");
106
+ });
107
+ X(() => {
108
+ window.removeEventListener("scroll", I);
109
+ }), $(
110
+ () => r.store.workspace.activeDocument,
103
111
  () => {
104
112
  if (w.value) {
105
- const e = M.value.entities.get(w.value), o = e?.parent?.id ?? e?.id;
106
- o && E(o, !0);
113
+ const t = y.value.entities.get(w.value), o = t?.parent?.id ?? t?.id;
114
+ o && B(o, !0);
107
115
  } else {
108
- const e = M.value.entries.find((o) => o.type === "tag");
109
- e && E(e.id, !0);
116
+ const t = y.value.entries.find((o) => o.type === "tag");
117
+ t && B(t.id, !0);
110
118
  }
111
- W.value = !0;
112
119
  }
113
120
  );
114
- const j = g(
115
- () => M.value.entities?.get(w.value)?.title ?? ""
116
- ), d = g(() => ({
117
- breadcrumb: j.value
118
- }));
119
- te(() => {
120
- window.removeEventListener("scroll", R);
121
- }), le(() => oe()), b(ue, "modal"), b(Ie, t), b(
122
- Pe,
123
- Ne({
124
- plugins: t.value.plugins
125
- })
126
- );
127
- const q = g(
121
+ const q = M("100dvh"), p = M(null);
122
+ be(p, (t) => {
123
+ q.value = t[0] ? t[0].contentRect.height + "px" : "100dvh";
124
+ });
125
+ const Y = g(
128
126
  () => `<style>
129
- ${ye(t.value.theme, {
130
- fonts: t.value.withDefaultFonts
127
+ ${he(e.value.theme, {
128
+ fonts: e.value.withDefaultFonts
131
129
  })}</style>`
132
- ), { mediaQueries: J } = ke(), X = !1;
133
- return D(J.lg, (e, o) => {
134
- o && !e && ($.value = !1);
135
- }), D(w, (e, o) => {
136
- e && e !== o && ($.value = !1);
137
- }), He(p.store, T, C, h), (e, o) => (a(), u(H, null, [
138
- m("div", { innerHTML: q.value }, null, 8, Ve),
139
- m("div", {
130
+ ), { mediaQueries: z } = pe(), G = !1;
131
+ return $(z.lg, (t, o) => {
132
+ o && !t && (T.value = !1);
133
+ }), $(w, (t, o) => {
134
+ t && t !== o && (T.value = !1);
135
+ }), $e(r.store, D, C, p), (t, o) => (n(), m(Z, null, [
136
+ v("div", { innerHTML: Y.value }, null, 8, Ie),
137
+ v("div", {
140
138
  ref_key: "documentEl",
141
- ref: h,
142
- class: ae(["scalar-app scalar-api-reference references-layout", [
139
+ ref: p,
140
+ class: x(["scalar-app scalar-api-reference references-layout", [
143
141
  {
144
- "scalar-api-references-standalone-mobile": t.value.showSidebar ?? !0,
145
- "scalar-scrollbars-obtrusive": U.value,
146
- "references-editable": t.value.isEditable,
147
- "references-sidebar": t.value.showSidebar,
148
- "references-sidebar-mobile-open": r($),
149
- "references-classic": t.value.layout === "classic"
142
+ "scalar-api-references-standalone-mobile": e.value.showSidebar ?? !0,
143
+ "scalar-scrollbars-obtrusive": V.value,
144
+ "references-editable": e.value.isEditable,
145
+ "references-sidebar": e.value.showSidebar,
146
+ "references-sidebar-mobile-open": a(T),
147
+ "references-classic": e.value.layout === "classic"
150
148
  },
151
- e.$attrs.class
149
+ t.$attrs.class
152
150
  ]]),
153
- style: re({
154
- "--scalar-y-offset": `var(--scalar-custom-header-height, ${I.value}px)`
151
+ style: _({
152
+ "--scalar-y-offset": `var(--scalar-custom-header-height, ${L.value}px)`
155
153
  })
156
154
  }, [
157
- m("div", Ye, [
158
- t.value.layout === "modern" && (t.value.showSidebar ?? !0) ? (a(), S(Oe, {
155
+ v("div", Oe, [
156
+ e.value.layout === "modern" && (e.value.showSidebar ?? !0) ? (n(), S(Te, {
159
157
  key: 0,
160
- breadcrumb: d.value.breadcrumb
161
- }, null, 8, ["breadcrumb"])) : s("", !0),
162
- l(e.$slots, "header", v(f(d.value)), void 0, !0)
158
+ breadcrumb: u.value.breadcrumb
159
+ }, null, 8, ["breadcrumb"])) : i("", !0),
160
+ d(t.$slots, "header", f(h(u.value)), void 0, !0)
163
161
  ]),
164
- t.value.showSidebar ? (a(), u("aside", {
162
+ e.value.showSidebar ? (n(), m("aside", {
165
163
  key: 0,
166
- "aria-label": `Sidebar for ${r(y)?.info?.title}`,
164
+ "aria-label": `Sidebar for ${a(b)?.info?.title}`,
167
165
  class: "references-navigation t-doc__sidebar"
168
166
  }, [
169
- m("div", Ge, [
170
- c(r(fe), null, {
171
- default: i(() => [
172
- c(r(_e), {
173
- title: r(y)?.info?.title ?? "The OpenAPI Schema"
167
+ v("div", Fe, [
168
+ c(a(de), null, {
169
+ default: s(() => [
170
+ c(a(Ae), {
171
+ options: {
172
+ pathRouting: e.value.pathRouting,
173
+ onSidebarClick: e.value.onSidebarClick,
174
+ operationTitleSource: e.value.operationTitleSource,
175
+ defaultOpenAllTags: e.value.defaultOpenAllTags
176
+ },
177
+ title: a(b)?.info?.title ?? "The OpenAPI Schema"
174
178
  }, {
175
- "sidebar-start": i(() => [
176
- e.$slots["document-selector"] ? (a(), u("div", Qe, [
177
- l(e.$slots, "document-selector", {}, void 0, !0)
178
- ])) : s("", !0),
179
- t.value.hideSearch ? s("", !0) : (a(), u("div", We, [
180
- c(r(A), {
181
- document: e.store.workspace.activeDocument,
182
- hideModels: t.value?.hideModels,
183
- searchHotKey: t.value?.searchHotKey
179
+ "sidebar-start": s(() => [
180
+ t.$slots["document-selector"] ? (n(), m("div", He, [
181
+ d(t.$slots, "document-selector", {}, void 0, !0)
182
+ ])) : i("", !0),
183
+ e.value.hideSearch ? i("", !0) : (n(), m("div", Ke, [
184
+ c(a(O), {
185
+ document: t.store.workspace.activeDocument,
186
+ hideModels: e.value?.hideModels,
187
+ searchHotKey: e.value?.searchHotKey
184
188
  }, null, 8, ["document", "hideModels", "searchHotKey"])
185
189
  ])),
186
- l(e.$slots, "sidebar-start", v(f(d.value)), void 0, !0)
190
+ d(t.$slots, "sidebar-start", f(h(u.value)), void 0, !0)
187
191
  ]),
188
- "sidebar-end": i(() => [
189
- l(e.$slots, "sidebar-end", v(f(d.value)), () => [
190
- c(r(pe), { class: "darklight-reference" }, {
191
- toggle: i(() => [
192
- t.value.hideDarkModeToggle ? (a(), u("span", je)) : (a(), S(r(he), {
192
+ "sidebar-end": s(() => [
193
+ d(t.$slots, "sidebar-end", f(h(u.value)), () => [
194
+ c(a(ue), { class: "darklight-reference" }, {
195
+ toggle: s(() => [
196
+ e.value.hideDarkModeToggle ? (n(), m("span", Ne)) : (n(), S(a(ce), {
193
197
  key: 0,
194
- modelValue: e.isDark,
195
- "onUpdate:modelValue": o[0] || (o[0] = (n) => e.$emit("toggleDarkMode"))
198
+ modelValue: t.isDark,
199
+ "onUpdate:modelValue": o[0] || (o[0] = (l) => t.$emit("toggleDarkMode"))
196
200
  }, null, 8, ["modelValue"]))
197
201
  ]),
198
- default: i(() => [
199
- t.value.hideClientButton ? s("", !0) : (a(), S(r(de), {
202
+ default: s(() => [
203
+ e.value.hideClientButton ? i("", !0) : (n(), S(a(re), {
200
204
  key: 0,
201
205
  buttonSource: "sidebar",
202
- integration: t.value._integration,
203
- isDevelopment: X,
204
- url: t.value.url
206
+ integration: e.value._integration,
207
+ isDevelopment: G,
208
+ url: e.value.url
205
209
  }, null, 8, ["integration", "url"]))
206
210
  ]),
207
211
  _: 1
@@ -209,88 +213,104 @@ const Ve = ["innerHTML"], Ye = { class: "references-header" }, ze = ["aria-label
209
213
  ], !0)
210
214
  ]),
211
215
  _: 3
212
- }, 8, ["title"])
216
+ }, 8, ["options", "title"])
213
217
  ]),
214
218
  _: 3
215
219
  })
216
220
  ])
217
- ], 8, ze)) : s("", !0),
218
- se(m("div", qe, [
219
- m("div", Je, [
220
- l(e.$slots, "editor", v(f(d.value)), void 0, !0)
221
+ ], 8, Pe)) : i("", !0),
222
+ ee(v("div", Ue, [
223
+ v("div", Ve, [
224
+ d(t.$slots, "editor", f(h(u.value)), void 0, !0)
221
225
  ])
222
226
  ], 512), [
223
- [ne, t.value.isEditable]
227
+ [te, e.value.isEditable]
224
228
  ]),
225
- Q.value ? (a(), u(H, { key: 1 }, [
226
- m("main", {
227
- "aria-label": `Open API Documentation for ${r(y)?.info?.title}`,
228
- class: "references-rendered"
229
+ v("main", {
230
+ "aria-label": `Open API Documentation for ${a(b)?.info?.title}`,
231
+ class: "references-rendered"
232
+ }, [
233
+ c(a(Le), {
234
+ contentId: F.value,
235
+ options: {
236
+ isLoading: e.value.isLoading,
237
+ slug: e.value.slug,
238
+ hiddenClients: e.value.hiddenClients,
239
+ layout: e.value.layout,
240
+ onLoaded: e.value.onLoaded,
241
+ persistAuth: e.value.persistAuth,
242
+ showOperationId: e.value.showOperationId,
243
+ hideTestRequestButton: e.value.hideTestRequestButton,
244
+ expandAllResponses: e.value.expandAllResponses,
245
+ hideModels: e.value.hideModels,
246
+ expandAllModelSections: e.value.expandAllModelSections,
247
+ orderRequiredPropertiesFirst: e.value.orderRequiredPropertiesFirst,
248
+ orderSchemaPropertiesBy: e.value.orderSchemaPropertiesBy,
249
+ documentDownloadType: e.value.documentDownloadType,
250
+ url: e.value.url,
251
+ onShowMore: e.value.onShowMore
252
+ },
253
+ store: t.store
254
+ }, oe({
255
+ start: s(() => [
256
+ d(t.$slots, "content-start", f(h(u.value)), void 0, !0),
257
+ e.value.layout === "classic" ? (n(), S(ye, { key: 0 }, {
258
+ "dark-mode-toggle": s(() => [
259
+ e.value.hideDarkModeToggle ? i("", !0) : (n(), S(a(me), {
260
+ key: 0,
261
+ class: "text-c-2 hover:text-c-1",
262
+ mode: t.isDark ? "dark" : "light",
263
+ style: { transform: "scale(1.4)" },
264
+ variant: "icon",
265
+ onClick: o[1] || (o[1] = (l) => t.$emit("toggleDarkMode"))
266
+ }, null, 8, ["mode"]))
267
+ ]),
268
+ default: s(() => [
269
+ t.$slots["document-selector"] ? (n(), m("div", Ye, [
270
+ d(t.$slots, "document-selector", {}, void 0, !0)
271
+ ])) : i("", !0),
272
+ e.value.hideSearch ? i("", !0) : (n(), S(a(O), {
273
+ key: 1,
274
+ class: "t-doc__sidebar max-w-64",
275
+ hideModels: e.value?.hideModels,
276
+ searchHotKey: e.value.searchHotKey
277
+ }, null, 8, ["hideModels", "searchHotKey"]))
278
+ ]),
279
+ _: 3
280
+ })) : i("", !0)
281
+ ]),
282
+ end: s(() => [
283
+ d(t.$slots, "content-end", f(h(u.value)), void 0, !0)
284
+ ]),
285
+ _: 2
229
286
  }, [
230
- c(r(Ue), {
231
- config: t.value,
232
- store: e.store
233
- }, ie({
234
- start: i(() => [
235
- l(e.$slots, "content-start", v(f(d.value)), void 0, !0),
236
- t.value.layout === "classic" ? (a(), S(Ee, { key: 0 }, {
237
- "dark-mode-toggle": i(() => [
238
- t.value.hideDarkModeToggle ? s("", !0) : (a(), S(r(ge), {
239
- key: 0,
240
- class: "text-c-2 hover:text-c-1",
241
- mode: e.isDark ? "dark" : "light",
242
- style: { transform: "scale(1.4)" },
243
- variant: "icon",
244
- onClick: o[1] || (o[1] = (n) => e.$emit("toggleDarkMode"))
245
- }, null, 8, ["mode"]))
246
- ]),
247
- default: i(() => [
248
- e.$slots["document-selector"] ? (a(), u("div", Ze, [
249
- l(e.$slots, "document-selector", {}, void 0, !0)
250
- ])) : s("", !0),
251
- t.value.hideSearch ? s("", !0) : (a(), S(r(A), {
252
- key: 1,
253
- class: "t-doc__sidebar max-w-64",
254
- hideModels: t.value?.hideModels,
255
- searchHotKey: t.value.searchHotKey
256
- }, null, 8, ["hideModels", "searchHotKey"]))
257
- ]),
258
- _: 3
259
- })) : s("", !0)
287
+ e.value?.isEditable ? {
288
+ name: "empty-state",
289
+ fn: s(() => [
290
+ c(we, {
291
+ theme: e.value?.theme || "default",
292
+ onChangeTheme: o[2] || (o[2] = (l) => t.$emit("changeTheme", l)),
293
+ onLinkSwaggerFile: o[3] || (o[3] = (l) => t.$emit("linkSwaggerFile")),
294
+ onLoadSwaggerFile: o[4] || (o[4] = (l) => t.$emit("loadSwaggerFile")),
295
+ onUpdateContent: o[5] || (o[5] = (l) => t.$emit("updateContent", l))
296
+ }, null, 8, ["theme"])
260
297
  ]),
261
- end: i(() => [
262
- l(e.$slots, "content-end", v(f(d.value)), void 0, !0)
263
- ]),
264
- _: 2
265
- }, [
266
- t.value?.isEditable ? {
267
- name: "empty-state",
268
- fn: i(() => [
269
- c(Be, {
270
- theme: t.value?.theme || "default",
271
- onChangeTheme: o[2] || (o[2] = (n) => e.$emit("changeTheme", n)),
272
- onLinkSwaggerFile: o[3] || (o[3] = (n) => e.$emit("linkSwaggerFile")),
273
- onLoadSwaggerFile: o[4] || (o[4] = (n) => e.$emit("loadSwaggerFile")),
274
- onUpdateContent: o[5] || (o[5] = (n) => e.$emit("updateContent", n))
275
- }, null, 8, ["theme"])
276
- ]),
277
- key: "0"
278
- } : void 0
279
- ]), 1032, ["config", "store"])
280
- ], 8, Xe),
281
- e.$slots.footer ? (a(), u("div", xe, [
282
- l(e.$slots, "footer", v(f(d.value)), void 0, !0)
283
- ])) : s("", !0)
284
- ], 64)) : s("", !0),
285
- c(r(Ke), {
286
- configuration: t.value,
287
- dereferencedDocument: r(y)
298
+ key: "0"
299
+ } : void 0
300
+ ]), 1032, ["contentId", "options", "store"])
301
+ ], 8, qe),
302
+ t.$slots.footer ? (n(), m("div", ze, [
303
+ d(t.$slots, "footer", f(h(u.value)), void 0, !0)
304
+ ])) : i("", !0),
305
+ c(a(Ee), {
306
+ configuration: e.value,
307
+ dereferencedDocument: a(b)
288
308
  }, null, 8, ["configuration", "dereferencedDocument"])
289
309
  ], 6),
290
- c(r(Me))
310
+ c(a(ge))
291
311
  ], 64));
292
312
  }
293
313
  });
294
314
  export {
295
- Et as default
315
+ gt as default
296
316
  };
@@ -1,6 +1,6 @@
1
+ import { type ClientOptionGroup } from '@scalar/api-client/v2/blocks/operation-code-sample';
1
2
  import type { AvailableClients } from '@scalar/snippetz';
2
3
  import type { WorkspaceDocument } from '@scalar/workspace-store/schemas/workspace';
3
- import type { ClientOptionGroup } from '../../../v2/blocks/scalar-request-example-block/types';
4
4
  type __VLS_Props = {
5
5
  /** Current document from the store */
6
6
  document: WorkspaceDocument;
@@ -10,7 +10,7 @@ type __VLS_Props = {
10
10
  selectedClient?: AvailableClients[number];
11
11
  };
12
12
  declare const _default: import("vue").DefineComponent<__VLS_Props, {
13
- selectedClientOption: import("vue").ComputedRef<import("../../../v2/blocks/scalar-request-example-block/types").ClientOption>;
13
+ selectedClientOption: import("vue").ComputedRef<import("@scalar/api-client/v2/blocks/operation-code-sample").ClientOption>;
14
14
  }, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
15
15
  export default _default;
16
16
  //# sourceMappingURL=ClientLibraries.vue.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"ClientLibraries.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/Content/ClientLibraries/ClientLibraries.vue"],"names":[],"mappings":"AA0MA,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,kBAAkB,CAAA;AAExD,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,2CAA2C,CAAA;AAIlF,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,gDAAgD,CAAA;AAKvF,KAAK,WAAW,GAAG;IACjB,sCAAsC;IACtC,QAAQ,EAAE,iBAAiB,CAAA;IAC3B,yDAAyD;IACzD,aAAa,EAAE,iBAAiB,EAAE,CAAA;IAClC,yCAAyC;IACzC,cAAc,CAAC,EAAE,gBAAgB,CAAC,MAAM,CAAC,CAAA;CAC1C,CAAC;;;;AA0RF,wBAOG"}
1
+ {"version":3,"file":"ClientLibraries.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/Content/ClientLibraries/ClientLibraries.vue"],"names":[],"mappings":"AA0MA,OAAO,EAEL,KAAK,iBAAiB,EACvB,MAAM,oDAAoD,CAAA;AAE3D,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,kBAAkB,CAAA;AAExD,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,2CAA2C,CAAA;AAMlF,KAAK,WAAW,GAAG;IACjB,sCAAsC;IACtC,QAAQ,EAAE,iBAAiB,CAAA;IAC3B,yDAAyD;IACzD,aAAa,EAAE,iBAAiB,EAAE,CAAA;IAClC,yCAAyC;IACzC,cAAc,CAAC,EAAE,gBAAgB,CAAC,MAAM,CAAC,CAAA;CAC1C,CAAC;;;;AA0RF,wBAOG"}
@@ -1,5 +1,5 @@
1
+ import { type ClientOption, type ClientOptionGroup } from '@scalar/api-client/v2/blocks/operation-code-sample';
1
2
  import type { AvailableClients } from '@scalar/types/snippetz';
2
- import type { ClientOption, ClientOptionGroup } from '../../../v2/blocks/scalar-request-example-block/types';
3
3
  type __VLS_Props = {
4
4
  /** Client options */
5
5
  clientOptions: ClientOptionGroup[];
@@ -1 +1 @@
1
- {"version":3,"file":"ClientSelector.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/Content/ClientLibraries/ClientSelector.vue"],"names":[],"mappings":"AA0PA,OAAO,KAAK,EAAE,gBAAgB,EAAY,MAAM,wBAAwB,CAAA;AAKxE,OAAO,KAAK,EACV,YAAY,EACZ,iBAAiB,EAClB,MAAM,gDAAgD,CAAA;AAIvD,KAAK,WAAW,GAAG;IACjB,qBAAqB;IACrB,aAAa,EAAE,iBAAiB,EAAE,CAAA;IAClC,yCAAyC;IACzC,cAAc,CAAC,EAAE,gBAAgB,CAAC,MAAM,CAAC,CAAA;IACzC,+BAA+B;IAC/B,eAAe,EAAE,YAAY,EAAE,CAAA;IAC/B,yEAAyE;IACzE,SAAS,CAAC,EAAE,MAAM,CAAA;CACnB,CAAC;;AA+OF,wBAMG"}
1
+ {"version":3,"file":"ClientSelector.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/Content/ClientLibraries/ClientSelector.vue"],"names":[],"mappings":"AAuPA,OAAO,EAEL,KAAK,YAAY,EACjB,KAAK,iBAAiB,EACvB,MAAM,oDAAoD,CAAA;AAG3D,OAAO,KAAK,EAAE,gBAAgB,EAAY,MAAM,wBAAwB,CAAA;AAMxE,KAAK,WAAW,GAAG;IACjB,qBAAqB;IACrB,aAAa,EAAE,iBAAiB,EAAE,CAAA;IAClC,yCAAyC;IACzC,cAAc,CAAC,EAAE,gBAAgB,CAAC,MAAM,CAAC,CAAA;IACzC,+BAA+B;IAC/B,eAAe,EAAE,YAAY,EAAE,CAAA;IAC/B,yEAAyE;IACzE,SAAS,CAAC,EAAE,MAAM,CAAA;CACnB,CAAC;;AA+OF,wBAMG"}
@@ -1,4 +1,4 @@
1
- import type { ClientOption, ClientOptionGroup } from '../../../v2/blocks/scalar-request-example-block/types';
1
+ import type { ClientOption, ClientOptionGroup } from '@scalar/api-client/v2/blocks/operation-code-sample';
2
2
  import type { AvailableClients } from '@scalar/snippetz';
3
3
  /** Whether or not a client is in the featured list */
4
4
  export declare const isFeaturedClient: (clientId: AvailableClients[number] | undefined, featuredClients?: AvailableClients[number][]) => boolean;
@@ -1 +1 @@
1
- {"version":3,"file":"featured-clients.d.ts","sourceRoot":"","sources":["../../../../src/components/Content/ClientLibraries/featured-clients.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,iBAAiB,EAAE,MAAM,gDAAgD,CAAA;AACrG,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,kBAAkB,CAAA;AAWxD,sDAAsD;AACtD,eAAO,MAAM,gBAAgB,GAC3B,UAAU,gBAAgB,CAAC,MAAM,CAAC,GAAG,SAAS,EAC9C,kBAAiB,gBAAgB,CAAC,MAAM,CAAC,EAAqB,YACgC,CAAA;AAEhG;;;;GAIG;AACH,eAAO,MAAM,kBAAkB,GAC7B,eAAe,iBAAiB,EAAE,EAClC,kBAAiB,gBAAgB,CAAC,MAAM,CAAC,EAAqB,KAC7D,YAAY,EAgBd,CAAA"}
1
+ {"version":3,"file":"featured-clients.d.ts","sourceRoot":"","sources":["../../../../src/components/Content/ClientLibraries/featured-clients.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,iBAAiB,EAAE,MAAM,oDAAoD,CAAA;AACzG,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,kBAAkB,CAAA;AAWxD,sDAAsD;AACtD,eAAO,MAAM,gBAAgB,GAC3B,UAAU,gBAAgB,CAAC,MAAM,CAAC,GAAG,SAAS,EAC9C,kBAAiB,gBAAgB,CAAC,MAAM,CAAC,EAAqB,YACgC,CAAA;AAEhG;;;;GAIG;AACH,eAAO,MAAM,kBAAkB,GAC7B,eAAe,iBAAiB,EAAE,EAClC,kBAAiB,gBAAgB,CAAC,MAAM,CAAC,EAAqB,KAC7D,YAAY,EAgBd,CAAA"}
@@ -1,16 +1,34 @@
1
1
  import type { ApiReferenceConfiguration } from '@scalar/types';
2
2
  import type { WorkspaceStore } from '@scalar/workspace-store/client';
3
3
  type __VLS_Props = {
4
- config: ApiReferenceConfiguration;
4
+ contentId: string;
5
5
  store: WorkspaceStore;
6
+ options: {
7
+ isLoading: boolean | undefined;
8
+ slug: string | undefined;
9
+ hiddenClients: ApiReferenceConfiguration['hiddenClients'];
10
+ layout: 'modern' | 'classic';
11
+ onLoaded: (() => void) | undefined;
12
+ persistAuth: boolean;
13
+ showOperationId?: boolean | undefined;
14
+ hideTestRequestButton: boolean | undefined;
15
+ expandAllResponses?: boolean;
16
+ hideModels: boolean | undefined;
17
+ expandAllModelSections: boolean | undefined;
18
+ orderRequiredPropertiesFirst: boolean | undefined;
19
+ orderSchemaPropertiesBy: 'alpha' | 'preserve' | undefined;
20
+ documentDownloadType: ApiReferenceConfiguration['documentDownloadType'];
21
+ url: string | undefined;
22
+ onShowMore: ((id: string) => void) | undefined;
23
+ };
6
24
  };
7
- declare var __VLS_5: {}, __VLS_50: {}, __VLS_60: {};
25
+ declare var __VLS_5: {}, __VLS_50: {}, __VLS_59: {};
8
26
  type __VLS_Slots = {} & {
9
27
  start?: (props: typeof __VLS_5) => any;
10
28
  } & {
11
29
  'empty-state'?: (props: typeof __VLS_50) => any;
12
30
  } & {
13
- end?: (props: typeof __VLS_60) => any;
31
+ end?: (props: typeof __VLS_59) => any;
14
32
  };
15
33
  declare const __VLS_component: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
16
34
  declare const _default: __VLS_WithSlots<typeof __VLS_component, __VLS_Slots>;