@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,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,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;IAExC,OAAO,EAAE;QACP,yDAAyD;QACzD,SAAS,CAAC,EAAE,OAAO,CAAA;QACnB,8EAA8E;QAC9E,MAAM,CAAC,EAAE,QAAQ,GAAG,SAAS,CAAA;QAC7B,kCAAkC;QAClC,oBAAoB,CAAC,EAAE,yBAAyB,CAAC,sBAAsB,CAAC,CAAA;QACxE,uCAAuC;QACvC,GAAG,CAAC,EAAE,MAAM,GAAG,SAAS,CAAA;QACxB,yEAAyE;QACzE,QAAQ,CAAC,EAAE,CAAC,MAAM,IAAI,CAAC,GAAG,OAAO,CAAA;QACjC,qCAAqC;QACrC,mBAAmB,EAAE,MAAM,MAAM,CAAA;KAClC,CAAA;CACF,CAAC;AA8EF,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;AAuBjD,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,38 +1,35 @@
1
- import { defineComponent as t, computed as s, createBlock as a, openBlock as r, withCtx as n, createVNode as d, renderSlot as l } from "vue";
2
- import u from "./IntroductionCard.vue.js";
3
- import c from "./IntroductionLayout.vue.js";
4
- const L = /* @__PURE__ */ t({
1
+ import { defineComponent as s, computed as r, createBlock as a, openBlock as d, withCtx as n, createVNode as e, renderSlot as l } from "vue";
2
+ import u from "./DownloadLink.vue.js";
3
+ import m from "./IntroductionCard.vue.js";
4
+ import p from "./IntroductionLayout.vue.js";
5
+ const E = /* @__PURE__ */ s({
5
6
  __name: "InfoBlock",
6
7
  props: {
7
8
  id: {},
8
- layout: {},
9
9
  oasVersion: {},
10
- getOriginalDocument: { type: Function },
11
10
  info: {},
12
11
  externalDocs: {},
13
12
  documentExtensions: {},
14
13
  infoExtensions: {},
15
- isLoading: { type: Boolean },
16
- onLoaded: { type: Function }
14
+ options: {}
17
15
  },
18
- setup(e) {
19
- const i = s(
20
- () => e.layout === "classic" ? "after" : "aside"
16
+ setup(i) {
17
+ const t = r(
18
+ () => i.options.layout === "classic" ? "after" : "aside"
21
19
  );
22
- return (o, m) => (r(), a(c, {
20
+ return (o, c) => (d(), a(p, {
23
21
  id: o.id,
24
22
  documentExtensions: o.documentExtensions,
25
23
  externalDocs: o.externalDocs,
26
- getOriginalDocument: o.getOriginalDocument,
27
24
  info: o.info,
28
25
  infoExtensions: o.infoExtensions,
29
- isLoading: o.isLoading,
26
+ isLoading: o.options.isLoading,
30
27
  oasVersion: o.oasVersion,
31
- onLoaded: o.onLoaded
28
+ onLoaded: o.options.onLoaded
32
29
  }, {
33
- [i.value]: n(() => [
34
- d(u, {
35
- row: o.layout === "classic"
30
+ [t.value]: n(() => [
31
+ e(m, {
32
+ row: o.options.layout === "classic"
36
33
  }, {
37
34
  default: n(() => [
38
35
  l(o.$slots, "selectors")
@@ -40,10 +37,18 @@ const L = /* @__PURE__ */ t({
40
37
  _: 3
41
38
  }, 8, ["row"])
42
39
  ]),
40
+ "download-link": n(() => [
41
+ e(u, {
42
+ documentDownloadType: o.options.documentDownloadType ?? "both",
43
+ getOriginalDocument: o.options.getOriginalDocument,
44
+ title: o.info?.title,
45
+ url: o.options.url
46
+ }, null, 8, ["documentDownloadType", "getOriginalDocument", "title", "url"])
47
+ ]),
43
48
  _: 2
44
- }, 1032, ["id", "documentExtensions", "externalDocs", "getOriginalDocument", "info", "infoExtensions", "isLoading", "oasVersion", "onLoaded"]));
49
+ }, 1032, ["id", "documentExtensions", "externalDocs", "info", "infoExtensions", "isLoading", "oasVersion", "onLoaded"]));
45
50
  }
46
51
  });
47
52
  export {
48
- L as default
53
+ E as default
49
54
  };
@@ -1,20 +1,21 @@
1
1
  import type { ExternalDocumentationObject, InfoObject } from '@scalar/workspace-store/schemas/v3.1/strict/openapi-document';
2
2
  type __VLS_Props = {
3
- oasVersion?: string;
3
+ id: string | undefined;
4
+ oasVersion: string | undefined;
4
5
  info: InfoObject;
5
6
  externalDocs?: ExternalDocumentationObject;
6
7
  documentExtensions?: Record<string, unknown>;
7
8
  infoExtensions?: Record<string, unknown>;
8
9
  isLoading?: boolean;
9
- getOriginalDocument: () => string;
10
- onLoaded?: () => void;
11
- id?: string;
10
+ onLoaded?: (() => void) | unknown;
12
11
  };
13
- declare var __VLS_49: {}, __VLS_59: {};
12
+ declare var __VLS_39: {}, __VLS_48: {}, __VLS_58: {};
14
13
  type __VLS_Slots = {} & {
15
- aside?: (props: typeof __VLS_49) => any;
14
+ 'download-link'?: (props: typeof __VLS_39) => any;
16
15
  } & {
17
- after?: (props: typeof __VLS_59) => any;
16
+ aside?: (props: typeof __VLS_48) => any;
17
+ } & {
18
+ after?: (props: typeof __VLS_58) => any;
18
19
  };
19
20
  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>;
20
21
  declare const _default: __VLS_WithSlots<typeof __VLS_component, __VLS_Slots>;
@@ -1 +1 @@
1
- {"version":3,"file":"IntroductionLayout.vue.d.ts","sourceRoot":"","sources":["../../../../../src/v2/blocks/scalar-info-block/components/IntroductionLayout.vue"],"names":[],"mappings":"AA+FA,OAAO,KAAK,EACV,2BAA2B,EAC3B,UAAU,EACX,MAAM,8DAA8D,CAAA;AAoBrE,KAAK,WAAW,GAAG;IACjB,UAAU,CAAC,EAAE,MAAM,CAAA;IACnB,IAAI,EAAE,UAAU,CAAA;IAChB,YAAY,CAAC,EAAE,2BAA2B,CAAA;IAC1C,kBAAkB,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAA;IAC5C,cAAc,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAA;IACxC,SAAS,CAAC,EAAE,OAAO,CAAA;IACnB,mBAAmB,EAAE,MAAM,MAAM,CAAA;IACjC,QAAQ,CAAC,EAAE,MAAM,IAAI,CAAA;IACrB,EAAE,CAAC,EAAE,MAAM,CAAA;CACZ,CAAC;AA4LF,QAAA,IAAI,QAAQ,IAAW,EAAE,QAAQ,IAAY,CAAE;AAC/C,KAAK,WAAW,GAAG,EAAE,GACnB;IAAE,KAAK,CAAC,EAAE,CAAC,KAAK,EAAE,OAAO,QAAQ,KAAK,GAAG,CAAA;CAAE,GAC3C;IAAE,KAAK,CAAC,EAAE,CAAC,KAAK,EAAE,OAAO,QAAQ,KAAK,GAAG,CAAA;CAAE,CAAC;AAgC9C,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":"IntroductionLayout.vue.d.ts","sourceRoot":"","sources":["../../../../../src/v2/blocks/scalar-info-block/components/IntroductionLayout.vue"],"names":[],"mappings":"AA2FA,OAAO,KAAK,EACV,2BAA2B,EAC3B,UAAU,EACX,MAAM,8DAA8D,CAAA;AAmBrE,KAAK,WAAW,GAAG;IACjB,EAAE,EAAE,MAAM,GAAG,SAAS,CAAA;IACtB,UAAU,EAAE,MAAM,GAAG,SAAS,CAAA;IAC9B,IAAI,EAAE,UAAU,CAAA;IAChB,YAAY,CAAC,EAAE,2BAA2B,CAAA;IAC1C,kBAAkB,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAA;IAC5C,cAAc,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAA;IACxC,SAAS,CAAC,EAAE,OAAO,CAAA;IACnB,QAAQ,CAAC,EAAE,CAAC,MAAM,IAAI,CAAC,GAAG,OAAO,CAAA;CAClC,CAAC;AAoLF,QAAA,IAAI,QAAQ,IAAW,EAAE,QAAQ,IAAW,EAAE,QAAQ,IAAY,CAAE;AACpE,KAAK,WAAW,GAAG,EAAE,GACnB;IAAE,eAAe,CAAC,EAAE,CAAC,KAAK,EAAE,OAAO,QAAQ,KAAK,GAAG,CAAA;CAAE,GACrD;IAAE,KAAK,CAAC,EAAE,CAAC,KAAK,EAAE,OAAO,QAAQ,KAAK,GAAG,CAAA;CAAE,GAC3C;IAAE,KAAK,CAAC,EAAE,CAAC,KAAK,EAAE,OAAO,QAAQ,KAAK,GAAG,CAAA;CAAE,CAAC;AA+B9C,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,7 +1,7 @@
1
1
  import o from "./IntroductionLayout.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-2f5c2779"]]);
4
+ const p = /* @__PURE__ */ t(o, [["__scopeId", "data-v-eb332881"]]);
5
5
  export {
6
- f as default
6
+ p as default
7
7
  };
@@ -1,39 +1,37 @@
1
- import { defineComponent as m, onMounted as u, createBlock as t, openBlock as r, unref as n, withCtx as i, createVNode as e, renderSlot as l, createElementVNode as a, createTextVNode as c, toDisplayString as p, createCommentVNode as g } from "vue";
2
- import v from "./DownloadLink.vue.js";
3
- import D from "./InfoDescription.vue.js";
1
+ import { defineComponent as m, onMounted as u, createBlock as l, openBlock as s, unref as n, withCtx as i, createVNode as e, renderSlot as r, createElementVNode as a, createTextVNode as c, toDisplayString as p, createCommentVNode as v } from "vue";
2
+ import g from "./InfoDescription.vue.js";
4
3
  import S from "./InfoLinks.vue.js";
5
4
  import V from "./InfoVersion.vue.js";
6
- import _ from "./OpenApiVersion.vue.js";
5
+ import $ from "./OpenApiVersion.vue.js";
7
6
  import y from "../../../../components/Section/SectionContainer.vue.js";
8
7
  import C from "../../../../components/Section/Section.vue.js";
9
- import $ from "../../../../components/Section/SectionContent.vue.js";
8
+ import L from "../../../../components/Section/SectionContent.vue.js";
10
9
  import k from "../../../../components/Section/SectionHeader.vue.js";
11
- import L from "../../../../components/Section/SectionHeaderTag.vue.js";
10
+ import D from "../../../../components/Section/SectionHeaderTag.vue.js";
12
11
  import h from "../../../../components/Section/SectionColumns.vue.js";
13
- import s from "../../../../components/Section/SectionColumn.vue.js";
14
- import d from "../../../../features/specification-extension/SpecificationExtension.vue2.js";
15
- const E = { class: "flex gap-1.5" }, N = { class: "sticky-cards" }, K = /* @__PURE__ */ m({
12
+ import d from "../../../../components/Section/SectionColumn.vue.js";
13
+ import f from "../../../../features/specification-extension/SpecificationExtension.vue2.js";
14
+ const E = { class: "flex gap-1.5" }, _ = { class: "sticky-cards" }, J = /* @__PURE__ */ m({
16
15
  __name: "IntroductionLayout",
17
16
  props: {
17
+ id: {},
18
18
  oasVersion: {},
19
19
  info: {},
20
20
  externalDocs: {},
21
21
  documentExtensions: {},
22
22
  infoExtensions: {},
23
23
  isLoading: { type: Boolean },
24
- getOriginalDocument: { type: Function },
25
- onLoaded: { type: Function },
26
- id: {}
24
+ onLoaded: { type: Function }
27
25
  },
28
- setup(f) {
29
- return u(() => f.onLoaded?.()), (o, O) => (r(), t(n(y), null, {
26
+ setup(t) {
27
+ return u(() => typeof t.onLoaded == "function" ? t.onLoaded?.() : t.onLoaded), (o, N) => (s(), l(n(y), null, {
30
28
  default: i(() => [
31
29
  e(n(C), {
32
30
  id: o.id,
33
31
  class: "introduction-section z-1 gap-12"
34
32
  }, {
35
33
  default: i(() => [
36
- e(n($), {
34
+ e(n(L), {
37
35
  loading: o.isLoading ?? (!o.info?.description && !o.info?.title)
38
36
  }, {
39
37
  default: i(() => [
@@ -41,7 +39,7 @@ const E = { class: "flex gap-1.5" }, N = { class: "sticky-cards" }, K = /* @__PU
41
39
  e(V, {
42
40
  version: o.info?.version
43
41
  }, null, 8, ["version"]),
44
- e(_, { oasVersion: o.oasVersion }, null, 8, ["oasVersion"])
42
+ e($, { oasVersion: o.oasVersion }, null, 8, ["oasVersion"])
45
43
  ]),
46
44
  e(n(k), {
47
45
  loading: !o.info?.title,
@@ -54,7 +52,7 @@ const E = { class: "flex gap-1.5" }, N = { class: "sticky-cards" }, K = /* @__PU
54
52
  }, null, 8, ["externalDocs", "info"])
55
53
  ]),
56
54
  default: i(() => [
57
- e(n(L), { level: 1 }, {
55
+ e(n(D), { level: 1 }, {
58
56
  default: i(() => [
59
57
  c(p(o.info?.title), 1)
60
58
  ]),
@@ -65,35 +63,32 @@ const E = { class: "flex gap-1.5" }, N = { class: "sticky-cards" }, K = /* @__PU
65
63
  }, 8, ["loading"]),
66
64
  e(n(h), null, {
67
65
  default: i(() => [
68
- e(n(s), null, {
66
+ e(n(d), null, {
69
67
  default: i(() => [
70
- e(v, {
71
- getOriginalDocument: o.getOriginalDocument,
72
- title: o.info?.title
73
- }, null, 8, ["getOriginalDocument", "title"]),
74
- e(D, {
68
+ r(o.$slots, "download-link", {}, void 0, !0),
69
+ e(g, {
75
70
  description: o.info?.description
76
71
  }, null, 8, ["description"])
77
72
  ]),
78
- _: 1
73
+ _: 3
79
74
  }),
80
- o.$slots.aside ? (r(), t(n(s), { key: 0 }, {
75
+ o.$slots.aside ? (s(), l(n(d), { key: 0 }, {
81
76
  default: i(() => [
82
- a("div", N, [
83
- l(o.$slots, "aside", {}, void 0, !0)
77
+ a("div", _, [
78
+ r(o.$slots, "aside", {}, void 0, !0)
84
79
  ])
85
80
  ]),
86
81
  _: 3
87
- })) : g("", !0)
82
+ })) : v("", !0)
88
83
  ]),
89
84
  _: 3
90
85
  }),
91
- e(n(d), { value: o.documentExtensions }, null, 8, ["value"]),
92
- e(n(d), { value: o.infoExtensions }, null, 8, ["value"])
86
+ e(n(f), { value: o.documentExtensions }, null, 8, ["value"]),
87
+ e(n(f), { value: o.infoExtensions }, null, 8, ["value"])
93
88
  ]),
94
89
  _: 3
95
90
  }, 8, ["loading"]),
96
- l(o.$slots, "after", {}, void 0, !0)
91
+ r(o.$slots, "after", {}, void 0, !0)
97
92
  ]),
98
93
  _: 3
99
94
  }, 8, ["id"])
@@ -103,5 +98,5 @@ const E = { class: "flex gap-1.5" }, N = { class: "sticky-cards" }, K = /* @__PU
103
98
  }
104
99
  });
105
100
  export {
106
- K as default
101
+ J as default
107
102
  };
@@ -8,28 +8,8 @@ type __VLS_Props = {
8
8
  target: string;
9
9
  };
10
10
  declare const _default: import("vue").DefineComponent<__VLS_Props, {
11
- server: import("vue").ComputedRef<{
12
- description?: string | undefined;
13
- variables?: {
14
- [x: string]: {
15
- default?: string | undefined;
16
- description?: string | undefined;
17
- enum?: string[] | undefined;
18
- };
19
- } | undefined;
20
- url: string;
21
- } | undefined>;
22
- servers: {
23
- description?: string | undefined;
24
- variables?: {
25
- [x: string]: {
26
- default?: string | undefined;
27
- description?: string | undefined;
28
- enum?: string[] | undefined;
29
- };
30
- } | undefined;
31
- url: string;
32
- }[];
11
+ server: import("vue").ComputedRef<ServerObject | undefined>;
12
+ servers: ServerObject[];
33
13
  serverUrlWithoutTrailingSlash: import("vue").ComputedRef<string>;
34
14
  serverOptions: import("vue").ComputedRef<{
35
15
  id: string;
@@ -1 +1 @@
1
- {"version":3,"file":"Selector.vue.d.ts","sourceRoot":"","sources":["../../../../../src/v2/blocks/scalar-server-selector-block/components/Selector.vue"],"names":[],"mappings":"AAuFA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,8DAA8D,CAAA;AAGhG,KAAK,WAAW,GAAG;IACjB,8BAA8B;IAC9B,eAAe,CAAC,EAAE,MAAM,CAAA;IACxB,wBAAwB;IACxB,OAAO,EAAE,YAAY,EAAE,CAAA;IACvB,qEAAqE;IACrE,MAAM,EAAE,MAAM,CAAA;CACf,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAgMF,wBAQG"}
1
+ {"version":3,"file":"Selector.vue.d.ts","sourceRoot":"","sources":["../../../../../src/v2/blocks/scalar-server-selector-block/components/Selector.vue"],"names":[],"mappings":"AAuFA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,8DAA8D,CAAA;AAGhG,KAAK,WAAW,GAAG;IACjB,8BAA8B;IAC9B,eAAe,CAAC,EAAE,MAAM,CAAA;IACxB,wBAAwB;IACxB,OAAO,EAAE,YAAY,EAAE,CAAA;IACvB,qEAAqE;IACrE,MAAM,EAAE,MAAM,CAAA;CACf,CAAC;;;;;;;;;;;;;;;;;;;;;AAgMF,wBAQG"}
@@ -1,5 +1,13 @@
1
1
  type __VLS_Props = {
2
2
  title: string;
3
+ options: {
4
+ pathRouting?: {
5
+ basePath?: string;
6
+ };
7
+ onSidebarClick: ((id: string) => void) | undefined;
8
+ operationTitleSource: 'path' | 'summary' | undefined;
9
+ defaultOpenAllTags: boolean | undefined;
10
+ };
3
11
  };
4
12
  declare var __VLS_1: {}, __VLS_32: {};
5
13
  type __VLS_Slots = {} & {
@@ -1 +1 @@
1
- {"version":3,"file":"SidebarBlock.vue.d.ts","sourceRoot":"","sources":["../../../../../src/v2/blocks/scalar-sidebar-block/components/SidebarBlock.vue"],"names":[],"mappings":"AAiRA,KAAK,WAAW,GAAG;IACjB,KAAK,EAAE,MAAM,CAAA;CACd,CAAC;AAoSF,QAAA,IAAI,OAAO,IAAU,EAAE,QAAQ,IAAY,CAAE;AAC7C,KAAK,WAAW,GAAG,EAAE,GACnB;IAAE,eAAe,CAAC,EAAE,CAAC,KAAK,EAAE,OAAO,OAAO,KAAK,GAAG,CAAA;CAAE,GACpD;IAAE,aAAa,CAAC,EAAE,CAAC,KAAK,EAAE,OAAO,QAAQ,KAAK,GAAG,CAAA;CAAE,CAAC;AA8BtD,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":"SidebarBlock.vue.d.ts","sourceRoot":"","sources":["../../../../../src/v2/blocks/scalar-sidebar-block/components/SidebarBlock.vue"],"names":[],"mappings":"AA6RA,KAAK,WAAW,GAAG;IACjB,KAAK,EAAE,MAAM,CAAA;IACb,OAAO,EAAE;QACP,WAAW,CAAC,EAAE;YACZ,QAAQ,CAAC,EAAE,MAAM,CAAA;SAClB,CAAA;QACD,cAAc,EAAE,CAAC,CAAC,EAAE,EAAE,MAAM,KAAK,IAAI,CAAC,GAAG,SAAS,CAAA;QAClD,oBAAoB,EAAE,MAAM,GAAG,SAAS,GAAG,SAAS,CAAA;QACpD,kBAAkB,EAAE,OAAO,GAAG,SAAS,CAAA;KACxC,CAAA;CACF,CAAC;AA4SF,QAAA,IAAI,OAAO,IAAU,EAAE,QAAQ,IAAY,CAAE;AAC7C,KAAK,WAAW,GAAG,EAAE,GACnB;IAAE,eAAe,CAAC,EAAE,CAAC,KAAK,EAAE,OAAO,OAAO,KAAK,GAAG,CAAA;CAAE,GACpD;IAAE,aAAa,CAAC,EAAE,CAAC,KAAK,EAAE,OAAO,QAAQ,KAAK,GAAG,CAAA;CAAE,CAAC;AA8BtD,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,7 +1,7 @@
1
1
  import o from "./SidebarBlock.vue2.js";
2
2
  /* empty css */
3
- import a from "../../../../_virtual/_plugin-vue_export-helper.js";
4
- const m = /* @__PURE__ */ a(o, [["__scopeId", "data-v-75a8a2ea"]]);
3
+ import r from "../../../../_virtual/_plugin-vue_export-helper.js";
4
+ const m = /* @__PURE__ */ r(o, [["__scopeId", "data-v-29c5b3a5"]]);
5
5
  export {
6
6
  m as default
7
7
  };