@scalar/api-reference 1.36.2 → 1.37.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 (226) hide show
  1. package/CHANGELOG.md +49 -0
  2. package/dist/browser/standalone.js +26143 -25935
  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/OperationsList/OperationsList.vue.d.ts +1 -1
  55. package/dist/components/OperationsList/OperationsList.vue.d.ts.map +1 -1
  56. package/dist/components/OperationsList/OperationsList.vue.js +2 -2
  57. package/dist/components/OperationsList/OperationsListItem.vue.d.ts +1 -1
  58. package/dist/components/OperationsList/OperationsListItem.vue.d.ts.map +1 -1
  59. package/dist/components/OperationsList/OperationsListItem.vue.js +2 -2
  60. package/dist/components/ShowMoreButton.vue.d.ts +1 -0
  61. package/dist/components/ShowMoreButton.vue.d.ts.map +1 -1
  62. package/dist/components/ShowMoreButton.vue.js +2 -2
  63. package/dist/components/ShowMoreButton.vue2.js +12 -12
  64. package/dist/features/Operation/Operation.vue.d.ts +21 -9
  65. package/dist/features/Operation/Operation.vue.d.ts.map +1 -1
  66. package/dist/features/Operation/Operation.vue.js +42 -53
  67. package/dist/features/Operation/components/Header.vue.d.ts +2 -2
  68. package/dist/features/Operation/components/Header.vue.d.ts.map +1 -1
  69. package/dist/features/Operation/components/Header.vue.js +9 -8
  70. package/dist/features/Operation/components/Headers.vue.d.ts +2 -2
  71. package/dist/features/Operation/components/Headers.vue.d.ts.map +1 -1
  72. package/dist/features/Operation/components/Headers.vue.js +2 -2
  73. package/dist/features/Operation/components/Headers.vue2.js +31 -29
  74. package/dist/features/Operation/components/OperationParameters.vue.d.ts +4 -0
  75. package/dist/features/Operation/components/OperationParameters.vue.d.ts.map +1 -1
  76. package/dist/features/Operation/components/OperationParameters.vue.js +37 -31
  77. package/dist/features/Operation/components/OperationResponses.vue.d.ts +5 -1
  78. package/dist/features/Operation/components/OperationResponses.vue.d.ts.map +1 -1
  79. package/dist/features/Operation/components/OperationResponses.vue.js +16 -17
  80. package/dist/features/Operation/components/ParameterList.vue.d.ts +6 -2
  81. package/dist/features/Operation/components/ParameterList.vue.d.ts.map +1 -1
  82. package/dist/features/Operation/components/ParameterList.vue.js +17 -19
  83. package/dist/features/Operation/components/ParameterListItem.vue.d.ts +6 -2
  84. package/dist/features/Operation/components/ParameterListItem.vue.d.ts.map +1 -1
  85. package/dist/features/Operation/components/ParameterListItem.vue.js +3 -3
  86. package/dist/features/Operation/components/ParameterListItem.vue2.js +64 -65
  87. package/dist/features/Operation/components/RequestBody.vue.d.ts +4 -0
  88. package/dist/features/Operation/components/RequestBody.vue.d.ts.map +1 -1
  89. package/dist/features/Operation/components/RequestBody.vue.js +2 -2
  90. package/dist/features/Operation/components/RequestBody.vue2.js +65 -65
  91. package/dist/features/Operation/components/callbacks/Callback.vue.d.ts +4 -0
  92. package/dist/features/Operation/components/callbacks/Callback.vue.d.ts.map +1 -1
  93. package/dist/features/Operation/components/callbacks/Callback.vue.js +3 -3
  94. package/dist/features/Operation/components/callbacks/Callback.vue2.js +29 -22
  95. package/dist/features/Operation/components/callbacks/Callbacks.vue.d.ts +6 -0
  96. package/dist/features/Operation/components/callbacks/Callbacks.vue.d.ts.map +1 -1
  97. package/dist/features/Operation/components/callbacks/Callbacks.vue.js +18 -16
  98. package/dist/features/Operation/layouts/ClassicLayout.vue.d.ts +11 -5
  99. package/dist/features/Operation/layouts/ClassicLayout.vue.d.ts.map +1 -1
  100. package/dist/features/Operation/layouts/ClassicLayout.vue.js +2 -2
  101. package/dist/features/Operation/layouts/ClassicLayout.vue2.js +99 -90
  102. package/dist/features/Operation/layouts/ModernLayout.vue.d.ts +12 -5
  103. package/dist/features/Operation/layouts/ModernLayout.vue.d.ts.map +1 -1
  104. package/dist/features/Operation/layouts/ModernLayout.vue.js +2 -2
  105. package/dist/features/Operation/layouts/ModernLayout.vue2.js +99 -87
  106. package/dist/features/Search/helpers/create-search-index.d.ts +2 -1
  107. package/dist/features/Search/helpers/create-search-index.d.ts.map +1 -1
  108. package/dist/features/Search/types.d.ts +1 -1
  109. package/dist/features/Search/types.d.ts.map +1 -1
  110. package/dist/features/api-client-modal/ApiClientModal.vue.d.ts.map +1 -1
  111. package/dist/features/api-client-modal/ApiClientModal.vue.js +23 -26
  112. package/dist/features/api-client-modal/useApiClient.d.ts +3032 -2888
  113. package/dist/features/api-client-modal/useApiClient.d.ts.map +1 -1
  114. package/dist/features/document-source/hooks/useDocumentFetcher.d.ts.map +1 -1
  115. package/dist/features/document-source/hooks/useDocumentFetcher.js +13 -11
  116. package/dist/features/document-source/hooks/useDocumentSource.d.ts +1 -1
  117. package/dist/features/document-source/hooks/useDocumentSource.d.ts.map +1 -1
  118. package/dist/features/example-responses/ExampleResponse.vue.d.ts.map +1 -1
  119. package/dist/features/example-responses/ExampleResponse.vue.js +3 -3
  120. package/dist/features/example-responses/ExampleResponse.vue2.js +26 -18
  121. package/dist/features/example-responses/ExampleResponses.vue.d.ts.map +1 -1
  122. package/dist/features/example-responses/ExampleResponses.vue.js +2 -2
  123. package/dist/features/example-responses/ExampleResponses.vue2.js +53 -53
  124. package/dist/features/multiple-documents/useMultipleDocuments.d.ts +8 -5
  125. package/dist/features/multiple-documents/useMultipleDocuments.d.ts.map +1 -1
  126. package/dist/features/multiple-documents/useMultipleDocuments.js +46 -43
  127. package/dist/features/test-request-button/TestRequestButton.vue.d.ts.map +1 -1
  128. package/dist/features/test-request-button/TestRequestButton.vue.js +2 -2
  129. package/dist/features/test-request-button/TestRequestButton.vue2.js +15 -21
  130. package/dist/features/toolbar/ApiReferenceToolbar.vue.js +18 -18
  131. package/dist/features/toolbar/ApiReferenceToolbarConfig.vue.js +1 -1
  132. package/dist/features/toolbar/ApiReferenceToolbarConfigTheme.vue.d.ts +2 -2
  133. package/dist/features/toolbar/ApiReferenceToolbarPopover.vue.js +1 -1
  134. package/dist/features/toolbar/ApiReferenceToolbarSdks.vue.js +1 -1
  135. package/dist/features/toolbar/ApiReferenceToolbarShare.vue.js +8 -8
  136. package/dist/features/toolbar/ApiReferenceToolbarShareRegister.vue.d.ts.map +1 -1
  137. package/dist/features/toolbar/ApiReferenceToolbarShareRegister.vue.js +34 -28
  138. package/dist/features/toolbar/ApiReferenceToolbarTitle.vue.js +27 -27
  139. package/dist/helpers/test-utils.d.ts +3 -365
  140. package/dist/helpers/test-utils.d.ts.map +1 -1
  141. package/dist/hooks/useNavState.d.ts +4 -2
  142. package/dist/hooks/useNavState.d.ts.map +1 -1
  143. package/dist/hooks/useNavState.js +31 -27
  144. package/dist/index.d.ts +1 -0
  145. package/dist/index.d.ts.map +1 -1
  146. package/dist/index.js +21 -19
  147. package/dist/style.css +1 -1
  148. package/dist/types.d.ts.map +1 -1
  149. package/dist/v2/ApiReferenceWorkspace.vue.d.ts.map +1 -1
  150. package/dist/v2/ApiReferenceWorkspace.vue.js +46 -40
  151. package/dist/v2/blocks/scalar-client-selector-block/components/ClientDropdown.vue.d.ts +1 -1
  152. package/dist/v2/blocks/scalar-client-selector-block/components/ClientDropdown.vue.d.ts.map +1 -1
  153. package/dist/v2/blocks/scalar-client-selector-block/components/ClientDropdown.vue.js +2 -2
  154. package/dist/v2/blocks/scalar-client-selector-block/components/ClientDropdown.vue2.js +11 -11
  155. package/dist/v2/blocks/scalar-client-selector-block/components/ClientSelector.vue.d.ts +2 -2
  156. package/dist/v2/blocks/scalar-client-selector-block/components/ClientSelector.vue.d.ts.map +1 -1
  157. package/dist/v2/blocks/scalar-client-selector-block/components/ClientSelector.vue.js +2 -2
  158. package/dist/v2/blocks/scalar-client-selector-block/components/ClientSelector.vue2.js +10 -10
  159. package/dist/v2/blocks/scalar-client-selector-block/helpers/featured-clients.d.ts +1 -1
  160. package/dist/v2/blocks/scalar-client-selector-block/helpers/featured-clients.d.ts.map +1 -1
  161. package/dist/v2/blocks/scalar-info-block/components/DownloadLink.vue.d.ts +3 -0
  162. package/dist/v2/blocks/scalar-info-block/components/DownloadLink.vue.d.ts.map +1 -1
  163. package/dist/v2/blocks/scalar-info-block/components/DownloadLink.vue.js +2 -2
  164. package/dist/v2/blocks/scalar-info-block/components/DownloadLink.vue2.js +32 -31
  165. package/dist/v2/blocks/scalar-info-block/components/InfoBlock.vue.d.ts +15 -8
  166. package/dist/v2/blocks/scalar-info-block/components/InfoBlock.vue.d.ts.map +1 -1
  167. package/dist/v2/blocks/scalar-info-block/components/InfoBlock.vue.js +25 -20
  168. package/dist/v2/blocks/scalar-info-block/components/IntroductionLayout.vue.d.ts +8 -7
  169. package/dist/v2/blocks/scalar-info-block/components/IntroductionLayout.vue.d.ts.map +1 -1
  170. package/dist/v2/blocks/scalar-info-block/components/IntroductionLayout.vue.js +2 -2
  171. package/dist/v2/blocks/scalar-info-block/components/IntroductionLayout.vue2.js +27 -32
  172. package/dist/v2/blocks/scalar-server-selector-block/components/Selector.vue.d.ts +2 -22
  173. package/dist/v2/blocks/scalar-server-selector-block/components/Selector.vue.d.ts.map +1 -1
  174. package/dist/v2/blocks/scalar-sidebar-block/components/SidebarBlock.vue.d.ts +8 -0
  175. package/dist/v2/blocks/scalar-sidebar-block/components/SidebarBlock.vue.d.ts.map +1 -1
  176. package/dist/v2/blocks/scalar-sidebar-block/components/SidebarBlock.vue.js +2 -2
  177. package/dist/v2/blocks/scalar-sidebar-block/components/SidebarBlock.vue2.js +70 -65
  178. package/dist/v2/blocks/scalar-sidebar-block/components/SidebarElement.vue.d.ts +9 -1
  179. package/dist/v2/blocks/scalar-sidebar-block/components/SidebarElement.vue.d.ts.map +1 -1
  180. package/dist/v2/blocks/scalar-sidebar-block/components/SidebarElement.vue.js +2 -2
  181. package/dist/v2/blocks/scalar-sidebar-block/components/SidebarElement.vue2.js +60 -57
  182. package/dist/v2/blocks/scalar-sidebar-block/helpers/create-sidebar.d.ts +3 -365
  183. package/dist/v2/blocks/scalar-sidebar-block/helpers/create-sidebar.d.ts.map +1 -1
  184. package/dist/v2/blocks/scalar-sidebar-block/helpers/generate-reverse-index.d.ts +3 -183
  185. package/dist/v2/blocks/scalar-sidebar-block/helpers/generate-reverse-index.d.ts.map +1 -1
  186. package/dist/v2/helpers/map-configuration.d.ts +22 -22
  187. package/dist/v2/helpers/map-configuration.d.ts.map +1 -1
  188. package/package.json +19 -16
  189. package/dist/components/Content/Operations/TraversedEntryContainer.vue.d.ts +0 -13
  190. package/dist/components/Content/Operations/TraversedEntryContainer.vue.d.ts.map +0 -1
  191. package/dist/components/Content/Operations/TraversedEntryContainer.vue.js +0 -52
  192. package/dist/components/Content/Operations/TraversedEntryContainer.vue2.js +0 -4
  193. package/dist/components/Content/Operations/index.d.ts +0 -2
  194. package/dist/components/Content/Operations/index.d.ts.map +0 -1
  195. package/dist/hooks/useConfig.d.ts +0 -9
  196. package/dist/hooks/useConfig.d.ts.map +0 -1
  197. package/dist/hooks/useConfig.js +0 -10
  198. package/dist/legacy/stores/index.d.ts +0 -2
  199. package/dist/legacy/stores/index.d.ts.map +0 -1
  200. package/dist/legacy/stores/useExampleStore.d.ts +0 -5
  201. package/dist/legacy/stores/useExampleStore.d.ts.map +0 -1
  202. package/dist/legacy/stores/useExampleStore.js +0 -8
  203. package/dist/v2/blocks/scalar-request-example-block/components/ExamplePicker.vue.d.ts +0 -14
  204. package/dist/v2/blocks/scalar-request-example-block/components/ExamplePicker.vue.d.ts.map +0 -1
  205. package/dist/v2/blocks/scalar-request-example-block/components/ExamplePicker.vue.js +0 -4
  206. package/dist/v2/blocks/scalar-request-example-block/components/ExamplePicker.vue2.js +0 -55
  207. package/dist/v2/blocks/scalar-request-example-block/components/RequestExample.vue.d.ts +0 -79
  208. package/dist/v2/blocks/scalar-request-example-block/components/RequestExample.vue.d.ts.map +0 -1
  209. package/dist/v2/blocks/scalar-request-example-block/components/RequestExample.vue.js +0 -7
  210. package/dist/v2/blocks/scalar-request-example-block/components/RequestExample.vue2.js +0 -236
  211. package/dist/v2/blocks/scalar-request-example-block/helpers/find-client.d.ts +0 -41
  212. package/dist/v2/blocks/scalar-request-example-block/helpers/find-client.d.ts.map +0 -1
  213. package/dist/v2/blocks/scalar-request-example-block/helpers/find-client.js +0 -22
  214. package/dist/v2/blocks/scalar-request-example-block/helpers/generate-client-options.d.ts +0 -20
  215. package/dist/v2/blocks/scalar-request-example-block/helpers/generate-client-options.d.ts.map +0 -1
  216. package/dist/v2/blocks/scalar-request-example-block/helpers/generate-client-options.js +0 -33
  217. package/dist/v2/blocks/scalar-request-example-block/helpers/generate-code-snippet.d.ts +0 -17
  218. package/dist/v2/blocks/scalar-request-example-block/helpers/generate-code-snippet.d.ts.map +0 -1
  219. package/dist/v2/blocks/scalar-request-example-block/helpers/generate-code-snippet.js +0 -26
  220. package/dist/v2/blocks/scalar-request-example-block/helpers/get-secrets.d.ts +0 -4
  221. package/dist/v2/blocks/scalar-request-example-block/helpers/get-secrets.d.ts.map +0 -1
  222. package/dist/v2/blocks/scalar-request-example-block/helpers/get-secrets.js +0 -10
  223. package/dist/v2/blocks/scalar-request-example-block/index.d.ts +0 -3
  224. package/dist/v2/blocks/scalar-request-example-block/index.d.ts.map +0 -1
  225. package/dist/v2/blocks/scalar-request-example-block/types.d.ts +0 -29
  226. package/dist/v2/blocks/scalar-request-example-block/types.d.ts.map +0 -1
@@ -1 +1 @@
1
- {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../src/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,4BAA4B,EAAE,yBAAyB,EAAE,MAAM,6BAA6B,CAAA;AAC1G,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,sBAAsB,CAAA;AACvD,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,gCAAgC,CAAA;AAEpE,YAAY,EAAE,yBAAyB,EAAE,CAAA;AAEzC,MAAM,MAAM,cAAc,GAAG;IAC3B,aAAa,CAAC,EAAE,4BAA4B,CAAA;CAC7C,CAAA;AAED;;GAEG;AACH,MAAM,MAAM,oBAAoB,GAAG;IACjC,aAAa,EAAE,OAAO,CAAC,yBAAyB,CAAC,CAAA;IACjD;;;;;;;;;;;;OAYG;IACH,oBAAoB,CAAC,EAAE,WAAW,CAAC,QAAQ,CAAA;IAC3C;;OAEG;IACH,gBAAgB,CAAC,EAAE,MAAM,CAAA;IACzB,MAAM,EAAE,OAAO,CAAA;IACf;;OAEG;IACH,OAAO,CAAC,EAAE,MAAM,CAAA;IAChB;;OAEG;IACH,KAAK,EAAE,cAAc,CAAA;CACtB,CAAA;AAED,MAAM,MAAM,sBAAsB,GAAG,UAAU,GAAG,eAAe,CAAA;AAEjE,MAAM,MAAM,iBAAiB,GAAG;I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60 @@
1
- import { defineComponent as R, ref as m, toRef as I, provide as N, useTemplateRef as L, onBeforeMount as U, watch as s, computed as V, createElementBlock as A, openBlock as g, createBlock as B, createCommentVNode as P, createVNode as f, unref as n, resolveDynamicComponent as _, withCtx as i, createTextVNode as K, toDisplayString as O, renderSlot as u, isRef as F } from "vue";
2
- import { safeLocalStorage as W, REFERENCE_LS_KEYS as Y } from "@scalar/helpers/object/local-storage";
3
- import { makeUrlAbsolute as z } from "@scalar/helpers/url/make-url-absolute";
4
- import { redirectToProxy as H } from "@scalar/oas-utils/helpers";
1
+ import { defineComponent as w, ref as m, toRef as I, provide as N, useTemplateRef as P, onBeforeMount as L, watch as s, computed as U, createElementBlock as V, openBlock as C, createBlock as A, createCommentVNode as B, createVNode as f, unref as n, resolveDynamicComponent as _, withCtx as i, createTextVNode as H, toDisplayString as K, renderSlot as u, isRef as O } from "vue";
2
+ import { isClient as D } from "@scalar/api-client/v2/blocks/operation-code-sample";
3
+ import { safeLocalStorage as F, REFERENCE_LS_KEYS as W } from "@scalar/helpers/object/local-storage";
4
+ import { makeUrlAbsolute as Y } from "@scalar/helpers/url/make-url-absolute";
5
+ import { redirectToProxy as z } from "@scalar/oas-utils/helpers";
5
6
  import { useColorMode as j } from "@scalar/use-hooks/useColorMode";
6
7
  import { useSeoMeta as q } from "@unhead/vue";
7
8
  import { useFavicon as G } from "@vueuse/core";
8
9
  import J from "../components/ApiReferenceLayout.vue.js";
9
10
  import Q from "../features/toolbar/ApiReferenceToolbar.vue.js";
10
11
  import { NAV_STATE_SYMBOL as X } from "../hooks/useNavState.js";
11
- import { isClient as D } from "./blocks/scalar-request-example-block/helpers/find-client.js";
12
12
  import { getDocumentName as Z } from "./helpers/get-document-name.js";
13
13
  import { mapConfiguration as E } from "./helpers/map-configuration.js";
14
14
  import { normalizeContent as ee } from "./helpers/normalize-content.js";
15
15
  import { useWorkspaceStoreEvents as te } from "./hooks/use-workspace-store-events.js";
16
16
  import { useMultipleDocuments as oe } from "../features/multiple-documents/useMultipleDocuments.js";
17
17
  import re from "../features/multiple-documents/DocumentSelector.vue.js";
18
- const Me = /* @__PURE__ */ R({
18
+ const Se = /* @__PURE__ */ w({
19
19
  __name: "ApiReferenceWorkspace",
20
20
  props: {
21
21
  configuration: {},
22
22
  store: {}
23
23
  },
24
24
  emits: ["updateContent"],
25
- setup(M) {
26
- const p = M, d = m({}), {
25
+ setup(S) {
26
+ const p = S, d = m({}), {
27
27
  availableDocuments: v,
28
28
  selectedConfiguration: o,
29
29
  selectedDocumentIndex: l,
30
30
  isIntersectionEnabled: c,
31
- hash: x,
32
- hashPrefix: y
31
+ hash: h,
32
+ hashPrefix: M
33
33
  } = oe({
34
34
  configuration: I(p, "configuration"),
35
35
  configurationOverrides: d,
36
36
  isIntersectionEnabled: m(!1),
37
37
  hash: m(""),
38
38
  hashPrefix: m("")
39
- }), S = (e, t) => fetch(
40
- H(o.value.proxyUrl, e.toString()),
39
+ }), b = (e, t) => fetch(
40
+ z(o.value.proxyUrl, e.toString()),
41
41
  t
42
42
  );
43
- N(X, { isIntersectionEnabled: c, hash: x, hashPrefix: y });
44
- const k = L("root"), r = p.store;
45
- U(() => {
46
- const e = W().getItem(
47
- Y.SELECTED_CLIENT
43
+ N(X, {
44
+ isIntersectionEnabled: c,
45
+ hash: h,
46
+ hashPrefix: M,
47
+ basePath: () => o.value.pathRouting?.basePath,
48
+ generateHeadingSlug: () => o.value.generateHeadingSlug
49
+ });
50
+ const g = P("root"), r = p.store;
51
+ L(() => {
52
+ const e = F().getItem(
53
+ W.SELECTED_CLIENT
48
54
  );
49
55
  D(e) && !r.workspace["x-scalar-default-client"] && r.update("x-scalar-default-client", e);
50
56
  });
51
- const b = async (e) => {
57
+ const x = async (e) => {
52
58
  const t = ee(e.content), a = Z({
53
59
  name: e.slug || e.title,
54
60
  url: e.url,
@@ -69,10 +75,10 @@ const Me = /* @__PURE__ */ R({
69
75
  if (e.url)
70
76
  return await r.addDocument({
71
77
  name: e.slug ?? "default",
72
- url: z(e.url, {
78
+ url: Y(e.url, {
73
79
  basePath: o.value.pathRouting?.basePath
74
80
  }),
75
- fetch: e.fetch ?? S,
81
+ fetch: e.fetch ?? b,
76
82
  config: E(e)
77
83
  });
78
84
  };
@@ -83,34 +89,34 @@ const Me = /* @__PURE__ */ R({
83
89
  () => o.value.content
84
90
  ],
85
91
  ([e, t, a]) => {
86
- (e || t || a) && b(o.value);
92
+ (e || t || a) && x(o.value);
87
93
  },
88
94
  { immediate: !0 }
89
- ), te(r, k), s(
95
+ ), te(r, g), s(
90
96
  () => o.value.defaultHttpClient,
91
97
  (e) => {
92
98
  if (e) {
93
- const { targetKey: t, clientKey: a } = e, C = `${t}/${a}`;
94
- D(C) && r.update("x-scalar-default-client", C);
99
+ const { targetKey: t, clientKey: a } = e, k = `${t}/${a}`;
100
+ D(k) && r.update("x-scalar-default-client", k);
95
101
  }
96
102
  },
97
103
  { immediate: !0 }
98
104
  );
99
- function h(e) {
105
+ function y(e) {
100
106
  if (e === !0)
101
107
  return "dark";
102
108
  if (e === !1)
103
109
  return "light";
104
110
  }
105
- const { toggleColorMode: $, isDarkMode: T } = j({
106
- initialColorMode: h(o.value.darkMode),
111
+ const { toggleColorMode: $, isDarkMode: R } = j({
112
+ initialColorMode: y(o.value.darkMode),
107
113
  overrideColorMode: o.value.forceDarkModeState
108
114
  });
109
115
  s(
110
116
  () => o.value.darkMode,
111
117
  (e) => r.update("x-scalar-dark-mode", !!e)
112
118
  ), s(
113
- () => T.value,
119
+ () => R.value,
114
120
  (e) => r.update("x-scalar-dark-mode", e),
115
121
  { immediate: !0 }
116
122
  ), s(
@@ -121,17 +127,17 @@ const Me = /* @__PURE__ */ R({
121
127
  ),
122
128
  { immediate: !0 }
123
129
  ), o.value.metaData && q(o.value.metaData);
124
- const w = V(() => o.value.favicon);
125
- return G(w), (e, t) => (g(), A("div", {
130
+ const T = U(() => o.value.favicon);
131
+ return G(T), (e, t) => (C(), V("div", {
126
132
  ref_key: "root",
127
- ref: k
133
+ ref: g
128
134
  }, [
129
- n(o)?.customCss ? (g(), B(_("style"), { key: 0 }, {
135
+ n(o)?.customCss ? (C(), A(_("style"), { key: 0 }, {
130
136
  default: i(() => [
131
- K(O(n(o).customCss), 1)
137
+ H(K(n(o).customCss), 1)
132
138
  ]),
133
139
  _: 1
134
- })) : P("", !0),
140
+ })) : B("", !0),
135
141
  f(J, {
136
142
  configuration: n(o),
137
143
  isDark: !!n(r).workspace["x-scalar-dark-mode"],
@@ -142,17 +148,17 @@ const Me = /* @__PURE__ */ R({
142
148
  "document-selector": i(() => [
143
149
  f(n(re), {
144
150
  modelValue: n(l),
145
- "onUpdate:modelValue": t[0] || (t[0] = (a) => F(l) ? l.value = a : null),
151
+ "onUpdate:modelValue": t[0] || (t[0] = (a) => O(l) ? l.value = a : null),
146
152
  options: n(v)
147
153
  }, null, 8, ["modelValue", "options"])
148
154
  ]),
149
155
  "content-start": i(() => [
150
156
  f(Q, {
151
- workspace: n(r),
152
- configuration: n(o),
153
157
  overrides: d.value,
154
- "onUpdate:overrides": t[1] || (t[1] = (a) => d.value = a)
155
- }, null, 8, ["workspace", "configuration", "overrides"]),
158
+ "onUpdate:overrides": t[1] || (t[1] = (a) => d.value = a),
159
+ configuration: n(o),
160
+ workspace: n(r)
161
+ }, null, 8, ["overrides", "configuration", "workspace"]),
156
162
  u(e.$slots, "content-start")
157
163
  ]),
158
164
  "content-end": i(() => [
@@ -173,5 +179,5 @@ const Me = /* @__PURE__ */ R({
173
179
  }
174
180
  });
175
181
  export {
176
- Me as default
182
+ Se as default
177
183
  };
@@ -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":"ClientDropdown.vue.d.ts","sourceRoot":"","sources":["../../../../../src/v2/blocks/scalar-client-selector-block/components/ClientDropdown.vue"],"names":[],"mappings":"AA0PA,OAAO,KAAK,EAAE,gBAAgB,EAAY,MAAM,wBAAwB,CAAA;AAMxE,OAAO,KAAK,EACV,YAAY,EACZ,iBAAiB,EAClB,MAAM,gDAAgD,CAAA;AAEvD,KAAK,WAAW,GAAG;IACjB,qBAAqB;IACrB,aAAa,EAAE,iBAAiB,EAAE,CAAA;IAClC,yCAAyC;IACzC,eAAe,CAAC,EAAE,gBAAgB,CAAC,MAAM,CAAC,CAAA;IAC1C,+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":"ClientDropdown.vue.d.ts","sourceRoot":"","sources":["../../../../../src/v2/blocks/scalar-client-selector-block/components/ClientDropdown.vue"],"names":[],"mappings":"AAwPA,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,eAAe,CAAC,EAAE,gBAAgB,CAAC,MAAM,CAAC,CAAA;IAC1C,+BAA+B;IAC/B,eAAe,EAAE,YAAY,EAAE,CAAA;IAC/B,yEAAyE;IACzE,SAAS,CAAC,EAAE,MAAM,CAAA;CACnB,CAAC;;AA+OF,wBAMG"}
@@ -1,7 +1,7 @@
1
1
  import o from "./ClientDropdown.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-d7b97a77"]]);
4
+ const e = /* @__PURE__ */ t(o, [["__scopeId", "data-v-5e88579a"]]);
5
5
  export {
6
- m as default
6
+ e as default
7
7
  };
@@ -1,10 +1,10 @@
1
1
  import { defineComponent as y, ref as _, computed as S, createElementBlock as o, openBlock as i, createVNode as m, Fragment as k, renderList as w, createBlock as p, unref as n, normalizeClass as a, withCtx as u, createElementVNode as r, toDisplayString as h, createCommentVNode as f } from "vue";
2
2
  import { Tab as x } from "@headlessui/vue";
3
- import { ScalarIcon as b, ScalarCombobox as V } from "@scalar/components";
4
- import { freezeElement as B } from "@scalar/helpers/dom/freeze-element";
5
- import { emitCustomEvent as z } from "@scalar/workspace-store/events";
3
+ import { findClient as V } from "@scalar/api-client/v2/blocks/operation-code-sample";
4
+ import { ScalarIcon as b, ScalarCombobox as B } from "@scalar/components";
5
+ import { freezeElement as z } from "@scalar/helpers/dom/freeze-element";
6
+ import { emitCustomEvent as E } from "@scalar/workspace-store/events";
6
7
  import { isFeaturedClient as g } from "../helpers/featured-clients.js";
7
- import { findClient as E } from "../../scalar-request-example-block/helpers/find-client.js";
8
8
  const K = { class: "client-libraries-text" }, M = {
9
9
  "aria-hidden": "true",
10
10
  class: "client-libraries-icon__more"
@@ -31,10 +31,10 @@ const K = { class: "client-libraries-text" }, M = {
31
31
  const s = _(), d = (e) => `programming-language-${e === "js" ? "javascript" : e}`, C = (e) => {
32
32
  if (!s.value)
33
33
  return;
34
- const t = B(s.value);
34
+ const t = z(s.value);
35
35
  setTimeout(() => {
36
36
  t();
37
- }, 300), z(
37
+ }, 300), E(
38
38
  s.value,
39
39
  "scalar-update-selected-client",
40
40
  e.id
@@ -66,12 +66,12 @@ const K = { class: "client-libraries-text" }, M = {
66
66
  ]),
67
67
  _: 2
68
68
  }, 1032, ["class"]))), 128)),
69
- m(n(V), {
69
+ m(n(B), {
70
+ modelValue: n(V)(e.clientOptions, e.xSelectedClient),
70
71
  options: e.clientOptions,
71
- modelValue: n(E)(e.clientOptions, e.xSelectedClient),
72
- "onUpdate:modelValue": t[0] || (t[0] = (l) => C(l)),
73
72
  placement: "bottom-end",
74
- teleport: ""
73
+ teleport: "",
74
+ "onUpdate:modelValue": t[0] || (t[0] = (l) => C(l))
75
75
  }, {
76
76
  default: u(() => [
77
77
  r("button", {
@@ -103,7 +103,7 @@ const K = { class: "client-libraries-text" }, M = {
103
103
  ], 2)
104
104
  ]),
105
105
  _: 1
106
- }, 8, ["options", "modelValue"])
106
+ }, 8, ["modelValue", "options"])
107
107
  ], 512));
108
108
  }
109
109
  });
@@ -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 { XScalarSdkInstallation } from '@scalar/workspace-store/schemas/extensions/document/x-scalar-sdk-installation';
3
- import type { ClientOptionGroup } from '../../../../v2/blocks/scalar-request-example-block/types';
4
4
  type __VLS_Props = {
5
5
  /** Selected SDK installation instructions */
6
6
  xScalarSdkInstallation?: XScalarSdkInstallation['x-scalar-sdk-installation'];
@@ -10,7 +10,7 @@ type __VLS_Props = {
10
10
  xSelectedClient?: 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=ClientSelector.vue.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"ClientSelector.vue.d.ts","sourceRoot":"","sources":["../../../../../src/v2/blocks/scalar-client-selector-block/components/ClientSelector.vue"],"names":[],"mappings":"AA0MA,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,kBAAkB,CAAA;AAExD,OAAO,KAAK,EAAE,sBAAsB,EAAE,MAAM,+EAA+E,CAAA;AAQ3H,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,gDAAgD,CAAA;AAIvF,KAAK,WAAW,GAAG;IACjB,6CAA6C;IAC7C,sBAAsB,CAAC,EAAE,sBAAsB,CAAC,2BAA2B,CAAC,CAAA;IAC5E,yDAAyD;IACzD,aAAa,EAAE,iBAAiB,EAAE,CAAA;IAClC,yCAAyC;IACzC,eAAe,CAAC,EAAE,gBAAgB,CAAC,MAAM,CAAC,CAAA;CAC3C,CAAC;;;;AAuRF,wBAOG"}
1
+ {"version":3,"file":"ClientSelector.vue.d.ts","sourceRoot":"","sources":["../../../../../src/v2/blocks/scalar-client-selector-block/components/ClientSelector.vue"],"names":[],"mappings":"AA2MA,OAAO,EAEL,KAAK,iBAAiB,EACvB,MAAM,oDAAoD,CAAA;AAE3D,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,kBAAkB,CAAA;AAExD,OAAO,KAAK,EAAE,sBAAsB,EAAE,MAAM,+EAA+E,CAAA;AAU3H,KAAK,WAAW,GAAG;IACjB,6CAA6C;IAC7C,sBAAsB,CAAC,EAAE,sBAAsB,CAAC,2BAA2B,CAAC,CAAA;IAC5E,yDAAyD;IACzD,aAAa,EAAE,iBAAiB,EAAE,CAAA;IAClC,yCAAyC;IACzC,eAAe,CAAC,EAAE,gBAAgB,CAAC,MAAM,CAAC,CAAA;CAC3C,CAAC;;;;AAuRF,wBAOG"}
@@ -1,7 +1,7 @@
1
1
  import o from "./ClientSelector.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-ce2bcf3d"]]);
4
+ const m = /* @__PURE__ */ t(o, [["__scopeId", "data-v-7bba5108"]]);
5
5
  export {
6
- f as default
6
+ m as default
7
7
  };
@@ -1,9 +1,9 @@
1
1
  import { defineComponent as g, useId as b, computed as c, useTemplateRef as I, createElementBlock as o, createCommentVNode as f, openBlock as i, createVNode as r, unref as t, withCtx as u, createElementVNode as T, Fragment as x, normalizeClass as w, renderList as O, createBlock as L, createTextVNode as E, toDisplayString as S } from "vue";
2
2
  import { TabGroup as N, TabList as P, TabPanels as B, TabPanel as F } from "@headlessui/vue";
3
- import { ScalarMarkdown as V, ScalarCodeBlock as A } from "@scalar/components";
4
- import { emitCustomEvent as D } from "@scalar/workspace-store/events";
5
- import { getFeaturedClients as M, isFeaturedClient as z } from "../helpers/featured-clients.js";
6
- import { DEFAULT_CLIENT as G } from "../../scalar-request-example-block/helpers/find-client.js";
3
+ import { DEFAULT_CLIENT as V } from "@scalar/api-client/v2/blocks/operation-code-sample";
4
+ import { ScalarMarkdown as A, ScalarCodeBlock as D } from "@scalar/components";
5
+ import { emitCustomEvent as M } from "@scalar/workspace-store/events";
6
+ import { getFeaturedClients as z, isFeaturedClient as G } from "../helpers/featured-clients.js";
7
7
  import K from "./ClientDropdown.vue.js";
8
8
  const R = {
9
9
  key: 0,
@@ -18,20 +18,20 @@ const R = {
18
18
  props: {
19
19
  xScalarSdkInstallation: {},
20
20
  clientOptions: {},
21
- xSelectedClient: { default: () => G }
21
+ xSelectedClient: { default: () => V }
22
22
  },
23
23
  setup(l, { expose: k }) {
24
24
  const p = b(), m = b(), C = c(
25
25
  () => l.clientOptions.flatMap(
26
26
  (e) => e.options.find((a) => a.id === l.xSelectedClient) ?? []
27
27
  )[0]
28
- ), s = c(() => M(l.clientOptions)), y = c(
28
+ ), s = c(() => z(l.clientOptions)), y = c(
29
29
  () => s.value.findIndex(
30
30
  (e) => l.xSelectedClient === e.id
31
31
  )
32
32
  ), v = I("wrapper-ref"), h = (e) => {
33
33
  const a = s.value[e];
34
- !a || !v.value || D(v.value, "scalar-update-selected-client", a.id);
34
+ !a || !v.value || M(v.value, "scalar-update-selected-client", a.id);
35
35
  }, n = c(() => {
36
36
  if (!Array.isArray(l.xScalarSdkInstallation) || !l.xScalarSdkInstallation?.length)
37
37
  return;
@@ -78,19 +78,19 @@ const R = {
78
78
  role: "tabpanel",
79
79
  tabindex: "0"
80
80
  }, [
81
- r(t(V), {
81
+ r(t(A), {
82
82
  value: n.value.description
83
83
  }, null, 8, ["value"])
84
84
  ], 2)) : f("", !0),
85
85
  n.value.source ? (i(), o("div", _, [
86
- r(t(A), {
86
+ r(t(D), {
87
87
  class: "rounded-t-none rounded-b-lg px-3 py-2 -outline-offset-1 has-focus:outline",
88
88
  content: n.value.source,
89
89
  copy: !0,
90
90
  lang: "shell"
91
91
  }, null, 8, ["content"])
92
92
  ])) : f("", !0)
93
- ], 64)) : t(z)(e.xSelectedClient) ? (i(!0), o(x, { key: 1 }, O(s.value, (d) => (i(), L(t(F), {
93
+ ], 64)) : t(G)(e.xSelectedClient) ? (i(!0), o(x, { key: 1 }, O(s.value, (d) => (i(), L(t(F), {
94
94
  key: d.id,
95
95
  class: "selected-client card-footer -outline-offset-2"
96
96
  }, {
@@ -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/v2/blocks/scalar-client-selector-block/helpers/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/v2/blocks/scalar-client-selector-block/helpers/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,6 +1,9 @@
1
+ import type { ApiReferenceConfiguration } from '@scalar/types';
1
2
  type __VLS_Props = {
2
3
  title?: string;
3
4
  getOriginalDocument: () => string;
5
+ url: string | undefined;
6
+ documentDownloadType: ApiReferenceConfiguration['documentDownloadType'];
4
7
  };
5
8
  declare const _default: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
6
9
  export default _default;
@@ -1 +1 @@
1
- {"version":3,"file":"DownloadLink.vue.d.ts","sourceRoot":"","sources":["../../../../../src/v2/blocks/scalar-info-block/components/DownloadLink.vue"],"names":[],"mappings":"AAsNA,KAAK,WAAW,GAAG;IACjB,KAAK,CAAC,EAAE,MAAM,CAAA;IACd,mBAAmB,EAAE,MAAM,MAAM,CAAA;CAClC,CAAC;;AA2KF,wBAMG"}
1
+ {"version":3,"file":"DownloadLink.vue.d.ts","sourceRoot":"","sources":["../../../../../src/v2/blocks/scalar-info-block/components/DownloadLink.vue"],"names":[],"mappings":"AAyMA,OAAO,KAAK,EAAE,yBAAyB,EAAE,MAAM,eAAe,CAAA;AAO9D,KAAK,WAAW,GAAG;IACjB,KAAK,CAAC,EAAE,MAAM,CAAA;IACd,mBAAmB,EAAE,MAAM,MAAM,CAAA;IACjC,GAAG,EAAE,MAAM,GAAG,SAAS,CAAA;IACvB,oBAAoB,EAAE,yBAAyB,CAAC,sBAAsB,CAAC,CAAA;CACxE,CAAC;;AA4JF,wBAMG"}
@@ -1,7 +1,7 @@
1
1
  import o from "./DownloadLink.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-0adf68b9"]]);
4
+ const p = /* @__PURE__ */ t(o, [["__scopeId", "data-v-803c00d1"]]);
5
5
  export {
6
- m as default
6
+ p as default
7
7
  };
@@ -1,68 +1,69 @@
1
- import { defineComponent as g, computed as k, createElementBlock as t, createCommentVNode as r, unref as n, openBlock as l, normalizeClass as b, withModifiers as u, createElementVNode as m, createVNode as p, withCtx as w, createTextVNode as c, Fragment as v } from "vue";
2
- import C from "github-slugger";
3
- import f from "../../../../components/Badge/Badge.vue.js";
4
- import { useConfig as x } from "../../../../hooks/useConfig.js";
5
- import { downloadDocument as T } from "../../../../libs/download.js";
6
- const O = ["href"], V = /* @__PURE__ */ g({
1
+ import { defineComponent as f, computed as k, createElementBlock as n, createCommentVNode as d, openBlock as t, normalizeClass as g, withModifiers as u, createElementVNode as m, createVNode as s, withCtx as i, createTextVNode as p, Fragment as b } from "vue";
2
+ import c from "github-slugger";
3
+ import w from "../../../../components/Badge/Badge.vue.js";
4
+ import { downloadDocument as v } from "../../../../libs/download.js";
5
+ const T = ["href"], I = /* @__PURE__ */ f({
7
6
  __name: "DownloadLink",
8
7
  props: {
9
8
  title: {},
10
- getOriginalDocument: { type: Function }
9
+ getOriginalDocument: { type: Function },
10
+ url: {},
11
+ documentDownloadType: {}
11
12
  },
12
13
  setup(a) {
13
- const e = x(), y = new C(), D = k(() => y.slug(a.title ?? "")), d = (s) => {
14
- T(a.getOriginalDocument(), D.value, s);
14
+ const y = new c(), D = k(() => y.slug(a.title ?? "")), l = (e) => {
15
+ v(a.getOriginalDocument?.() ?? "", D.value, e);
15
16
  };
16
- return (s, o) => ["yaml", "json", "both"].includes(n(e)?.documentDownloadType) ? (l(), t("div", {
17
+ return (e, o) => ["yaml", "json", "both"].includes(e.documentDownloadType) ? (t(), n("div", {
17
18
  key: 0,
18
- class: b(["download-container group", {
19
- "download-both": n(e)?.documentDownloadType === "both"
19
+ class: g(["download-container group", {
20
+ "download-both": e.documentDownloadType === "both"
20
21
  }])
21
22
  }, [
22
- n(e)?.documentDownloadType === "json" || n(e)?.documentDownloadType === "both" ? (l(), t("button", {
23
+ e.documentDownloadType === "json" || e.documentDownloadType === "both" ? (t(), n("button", {
23
24
  key: 0,
24
25
  class: "download-button",
25
26
  type: "button",
26
- onClick: o[0] || (o[0] = u((i) => d("json"), ["prevent"]))
27
+ onClick: o[0] || (o[0] = u((r) => l("json"), ["prevent"]))
27
28
  }, [
28
29
  o[4] || (o[4] = m("span", null, " Download OpenAPI Document ", -1)),
29
- p(f, { class: "extension hidden group-hover:flex" }, {
30
- default: w(() => o[3] || (o[3] = [
31
- c("json")
30
+ s(w, { class: "extension hidden group-hover:flex" }, {
31
+ default: i(() => o[3] || (o[3] = [
32
+ p("json")
32
33
  ])),
33
34
  _: 1,
34
35
  __: [3]
35
36
  })
36
- ])) : r("", !0),
37
- n(e)?.documentDownloadType === "yaml" || n(e)?.documentDownloadType === "both" ? (l(), t("button", {
37
+ ])) : d("", !0),
38
+ e.documentDownloadType === "yaml" || e.documentDownloadType === "both" ? (t(), n("button", {
38
39
  key: 1,
39
40
  class: "download-button",
40
41
  type: "button",
41
- onClick: o[1] || (o[1] = u((i) => d("yaml"), ["prevent"]))
42
+ onClick: o[1] || (o[1] = u((r) => l("yaml"), ["prevent"]))
42
43
  }, [
43
44
  o[6] || (o[6] = m("span", null, " Download OpenAPI Document ", -1)),
44
- p(f, { class: "extension hidden group-hover:flex" }, {
45
- default: w(() => o[5] || (o[5] = [
46
- c("yaml")
45
+ s(w, { class: "extension hidden group-hover:flex" }, {
46
+ default: i(() => o[5] || (o[5] = [
47
+ p("yaml")
47
48
  ])),
48
49
  _: 1,
49
50
  __: [5]
50
51
  })
51
- ])) : r("", !0)
52
- ], 2)) : n(e)?.documentDownloadType === "direct" ? (l(), t(v, { key: 1 }, [
53
- n(e).url ? (l(), t("a", {
52
+ ])) : d("", !0)
53
+ ], 2)) : e.documentDownloadType === "direct" ? (t(), n(b, { key: 1 }, [
54
+ e.url ? (t(), n("a", {
54
55
  key: 0,
55
56
  class: "download-link",
56
- href: n(e).url
57
- }, " Download OpenAPI Document ", 8, O)) : (l(), t("a", {
57
+ href: e.url
58
+ }, " Download OpenAPI Document ", 8, T)) : (t(), n("a", {
58
59
  key: 1,
59
60
  class: "download-link",
60
61
  href: "#",
61
- onClick: o[2] || (o[2] = u((i) => d("json"), ["prevent"]))
62
+ onClick: o[2] || (o[2] = u((r) => l("json"), ["prevent"]))
62
63
  }, " Download OpenAPI Document "))
63
- ], 64)) : r("", !0);
64
+ ], 64)) : d("", !0);
64
65
  }
65
66
  });
66
67
  export {
67
- V as default
68
+ I as default
68
69
  };
@@ -1,13 +1,10 @@
1
+ import type { ApiReferenceConfiguration } from '@scalar/types';
1
2
  import type { ExternalDocumentationObject, InfoObject } from '@scalar/workspace-store/schemas/v3.1/strict/openapi-document';
2
3
  type __VLS_Props = {
3
4
  /** Optional unique identifier for the info block. */
4
5
  id?: string;
5
- /** Determines the layout style for the info block ('modern' or 'classic'). */
6
- layout?: 'modern' | 'classic';
7
6
  /** Original openapi version of the input document */
8
7
  oasVersion?: string;
9
- /** The original document content. */
10
- getOriginalDocument: () => string;
11
8
  /** The Info object from the OpenAPI document. */
12
9
  info: InfoObject;
13
10
  /** The external documentation object from the OpenAPI document, if present. */
@@ -16,10 +13,20 @@ type __VLS_Props = {
16
13
  documentExtensions?: Record<string, unknown>;
17
14
  /** OpenAPI extension fields at the info object level. */
18
15
  infoExtensions?: Record<string, unknown>;
19
- /** Indicates if the info block is in a loading state. */
20
- isLoading?: boolean;
21
- /** Optional callback invoked when the component has finished loading. */
22
- onLoaded?: () => void;
16
+ options: {
17
+ /** Indicates if the info block is in a loading state. */
18
+ isLoading?: boolean;
19
+ /** Determines the layout style for the info block ('modern' or 'classic'). */
20
+ layout?: 'modern' | 'classic';
21
+ /** The document download type. */
22
+ documentDownloadType?: ApiReferenceConfiguration['documentDownloadType'];
23
+ /** The URL of the OpenAPI document. */
24
+ url?: string | undefined;
25
+ /** Optional callback invoked when the component has finished loading. */
26
+ onLoaded?: (() => void) | unknown;
27
+ /** The original document content. */
28
+ getOriginalDocument: () => string;
29
+ };
23
30
  };
24
31
  declare var __VLS_8: {};
25
32
  type __VLS_Slots = {} & {
@@ -1 +1 @@
1
- {"version":3,"file":"InfoBlock.vue.d.ts","sourceRoot":"","sources":["../../../../../src/v2/blocks/scalar-info-block/components/InfoBlock.vue"],"names":[],"mappings":"AA+DA,OAAO,KAAK,EACV,2BAA2B,EAC3B,UAAU,EACX,MAAM,8DAA8D,CAAA;AAMrE,KAAK,WAAW,GAAG;IACjB,qDAAqD;IACrD,EAAE,CAAC,EAAE,MAAM,CAAA;IACX,8EAA8E;IAC9E,MAAM,CAAC,EAAE,QAAQ,GAAG,SAAS,CAAA;IAC7B,qDAAqD;IACrD,UAAU,CAAC,EAAE,MAAM,CAAA;IACnB,qCAAqC;IACrC,mBAAmB,EAAE,MAAM,MAAM,CAAA;IACjC,iDAAiD;IACjD,IAAI,EAAE,UAAU,CAAA;IAChB,+EAA+E;IAC/E,YAAY,CAAC,EAAE,2BAA2B,CAAA;IAC1C,sDAAsD;IACtD,kBAAkB,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAA;IAC5C,yDAAyD;IACzD,cAAc,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAA;IACxC,yDAAyD;IACzD,SAAS,CAAC,EAAE,OAAO,CAAA;IACnB,yEAAyE;IACzE,QAAQ,CAAC,EAAE,MAAM,IAAI,CAAA;CACtB,CAAC;AA+DF,QAAA,IAAI,OAAO,IAAW,CAAE;AACxB,KAAK,WAAW,GAAG,EAAE,GACnB;IAAE,SAAS,CAAC,EAAE,CAAC,KAAK,EAAE,OAAO,OAAO,KAAK,GAAG,CAAA;CAAE,CAAC;AAsBjD,QAAA,MAAM,eAAe,kSAMnB,CAAC;wBACkB,eAAe,CAAC,OAAO,eAAe,EAAE,WAAW,CAAC;AAAzE,wBAA0E;AAQ1E,KAAK,eAAe,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG;IAChC,QAAO;QACN,MAAM,EAAE,CAAC,CAAC;KAEV,CAAA;CACD,CAAC"}
1
+ {"version":3,"file":"InfoBlock.vue.d.ts","sourceRoot":"","sources":["../../../../../src/v2/blocks/scalar-info-block/components/InfoBlock.vue"],"names":[],"mappings":"AA+EA,OAAO,KAAK,EAAE,yBAAyB,EAAE,MAAM,eAAe,CAAA;AAC9D,OAAO,KAAK,EACV,2BAA2B,EAC3B,UAAU,EACX,MAAM,8DAA8D,CAAA;AAQrE,KAAK,WAAW,GAAG;IACjB,qDAAqD;IACrD,EAAE,CAAC,EAAE,MAAM,CAAA;IACX,qDAAqD;IACrD,UAAU,CAAC,EAAE,MAAM,CAAA;IACnB,iDAAiD;IACjD,IAAI,EAAE,UAAU,CAAA;IAChB,+EAA+E;IAC/E,YAAY,CAAC,EAAE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