@scalar/api-reference 1.34.6 → 1.35.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 (394) hide show
  1. package/CHANGELOG.md +51 -0
  2. package/dist/browser/standalone.js +30660 -30580
  3. package/dist/browser/webpack-stats.json +1 -1
  4. package/dist/components/Anchor/Anchor.vue.d.ts +6 -11
  5. package/dist/components/Anchor/Anchor.vue.d.ts.map +1 -1
  6. package/dist/components/Anchor/WithBreadcrumb.vue.d.ts +11 -13
  7. package/dist/components/Anchor/WithBreadcrumb.vue.d.ts.map +1 -1
  8. package/dist/components/ApiReference.vue.d.ts +14 -1
  9. package/dist/components/ApiReference.vue.d.ts.map +1 -1
  10. package/dist/components/ApiReference.vue.js +24 -10
  11. package/dist/components/ApiReferenceLayout.vue.d.ts +7 -31
  12. package/dist/components/ApiReferenceLayout.vue.d.ts.map +1 -1
  13. package/dist/components/ApiReferenceLayout.vue.js +2 -2
  14. package/dist/components/ApiReferenceLayout.vue2.js +179 -191
  15. package/dist/components/Badge/Badge.vue.d.ts +6 -11
  16. package/dist/components/Badge/Badge.vue.d.ts.map +1 -1
  17. package/dist/components/ClassicHeader.vue.d.ts +8 -12
  18. package/dist/components/ClassicHeader.vue.d.ts.map +1 -1
  19. package/dist/components/Content/ClientLibraries/ClientLibraries.vue.d.ts +1 -3
  20. package/dist/components/Content/ClientLibraries/ClientLibraries.vue.d.ts.map +1 -1
  21. package/dist/components/Content/ClientLibraries/ClientSelector.vue.d.ts +1 -1
  22. package/dist/components/Content/ClientLibraries/ClientSelector.vue.d.ts.map +1 -1
  23. package/dist/components/Content/ClientLibraries/featured-clients.d.ts.map +1 -1
  24. package/dist/components/Content/ClientLibraries/index.d.ts +1 -1
  25. package/dist/components/Content/Content.vue.d.ts +9 -12
  26. package/dist/components/Content/Content.vue.d.ts.map +1 -1
  27. package/dist/components/Content/Content.vue.js +180 -36
  28. package/dist/components/Content/IntroductionSection.vue.d.ts +18 -0
  29. package/dist/components/Content/IntroductionSection.vue.d.ts.map +1 -0
  30. package/dist/components/Content/IntroductionSection.vue.js +26 -0
  31. package/dist/components/Content/IntroductionSection.vue2.js +4 -0
  32. package/dist/components/Content/Models/ClassicLayout.vue.d.ts.map +1 -1
  33. package/dist/components/Content/Models/Models.vue.d.ts.map +1 -1
  34. package/dist/components/Content/Models/ModernLayout.vue.d.ts.map +1 -1
  35. package/dist/components/Content/Models/ModernLayout.vue.js +1 -1
  36. package/dist/components/Content/Models/ModernLayout.vue2.js +6 -6
  37. package/dist/components/Content/Operations/TraversedEntry.vue.d.ts.map +1 -1
  38. package/dist/components/Content/Operations/TraversedEntryContainer.vue.d.ts +1 -5
  39. package/dist/components/Content/Operations/TraversedEntryContainer.vue.d.ts.map +1 -1
  40. package/dist/components/Content/Operations/TraversedEntryContainer.vue.js +28 -35
  41. package/dist/components/Content/Operations/get-current-index.d.ts.map +1 -1
  42. package/dist/components/Content/Schema/RenderString.vue.d.ts.map +1 -1
  43. package/dist/components/Content/Schema/Schema.vue.d.ts.map +1 -1
  44. package/dist/components/Content/Schema/SchemaComposition.vue.d.ts +1 -1
  45. package/dist/components/Content/Schema/SchemaComposition.vue.d.ts.map +1 -1
  46. package/dist/components/Content/Schema/SchemaDiscriminator.vue.d.ts.map +1 -1
  47. package/dist/components/Content/Schema/SchemaEnumPropertyItem.vue.d.ts +1 -1
  48. package/dist/components/Content/Schema/SchemaEnumPropertyItem.vue.d.ts.map +1 -1
  49. package/dist/components/Content/Schema/SchemaEnumValues.vue.d.ts.map +1 -1
  50. package/dist/components/Content/Schema/SchemaHeading.vue.d.ts.map +1 -1
  51. package/dist/components/Content/Schema/SchemaObjectProperties.vue.d.ts.map +1 -1
  52. package/dist/components/Content/Schema/SchemaProperty.vue.d.ts.map +1 -1
  53. package/dist/components/Content/Schema/SchemaProperty.vue2.js +1 -1
  54. package/dist/components/Content/Schema/SchemaPropertyDescription.vue.d.ts +6 -11
  55. package/dist/components/Content/Schema/SchemaPropertyDescription.vue.d.ts.map +1 -1
  56. package/dist/components/Content/Schema/SchemaPropertyDetail.vue.d.ts +10 -13
  57. package/dist/components/Content/Schema/SchemaPropertyDetail.vue.d.ts.map +1 -1
  58. package/dist/components/Content/Schema/SchemaPropertyExamples.vue.d.ts.map +1 -1
  59. package/dist/components/Content/Schema/SchemaPropertyHeading.vue.d.ts +6 -11
  60. package/dist/components/Content/Schema/SchemaPropertyHeading.vue.d.ts.map +1 -1
  61. package/dist/components/Content/Schema/helpers/get-schema-type.d.ts.map +1 -1
  62. package/dist/components/Content/Schema/helpers/is-type-object.d.ts.map +1 -1
  63. package/dist/components/Content/Tags/ClassicLayout.vue.d.ts +6 -11
  64. package/dist/components/Content/Tags/ClassicLayout.vue.d.ts.map +1 -1
  65. package/dist/components/Content/Tags/ModernLayout.vue.d.ts +5 -63
  66. package/dist/components/Content/Tags/ModernLayout.vue.d.ts.map +1 -1
  67. package/dist/components/Content/Tags/Tag.vue.d.ts +7 -11
  68. package/dist/components/Content/Tags/Tag.vue.d.ts.map +1 -1
  69. package/dist/components/Content/Tags/TagSection.vue.d.ts.map +1 -1
  70. package/dist/components/Content/Tags/TagSection.vue.js +1 -1
  71. package/dist/components/GettingStarted.vue.d.ts +1 -1
  72. package/dist/components/GettingStarted.vue.d.ts.map +1 -1
  73. package/dist/components/HttpMethod/HttpMethod.vue.d.ts +5 -10
  74. package/dist/components/HttpMethod/HttpMethod.vue.d.ts.map +1 -1
  75. package/dist/components/IntersectionObserver.vue.d.ts +5 -12
  76. package/dist/components/IntersectionObserver.vue.d.ts.map +1 -1
  77. package/dist/components/Lazy/Lazy.vue.d.ts +5 -10
  78. package/dist/components/Lazy/Lazy.vue.d.ts.map +1 -1
  79. package/dist/components/LinkList/LinkList.vue.d.ts +6 -13
  80. package/dist/components/LinkList/LinkList.vue.d.ts.map +1 -1
  81. package/dist/components/LoadingSkeleton.vue.d.ts.map +1 -1
  82. package/dist/components/MobileHeader.vue.d.ts +6 -11
  83. package/dist/components/MobileHeader.vue.d.ts.map +1 -1
  84. package/dist/components/OperationPath.vue.d.ts +1 -1
  85. package/dist/components/OperationPath.vue.d.ts.map +1 -1
  86. package/dist/components/OperationsList/OperationsList.vue.d.ts.map +1 -1
  87. package/dist/components/OperationsList/OperationsListItem.vue.d.ts +1 -1
  88. package/dist/components/OperationsList/OperationsListItem.vue.d.ts.map +1 -1
  89. package/dist/components/ScreenReader.vue.d.ts +7 -11
  90. package/dist/components/ScreenReader.vue.d.ts.map +1 -1
  91. package/dist/components/Section/CompactSection.vue.d.ts +8 -12
  92. package/dist/components/Section/CompactSection.vue.d.ts.map +1 -1
  93. package/dist/components/Section/Section.vue.d.ts +5 -10
  94. package/dist/components/Section/Section.vue.d.ts.map +1 -1
  95. package/dist/components/Section/SectionAccordion.vue.d.ts +13 -66
  96. package/dist/components/Section/SectionAccordion.vue.d.ts.map +1 -1
  97. package/dist/components/Section/SectionColumn.vue.d.ts +6 -11
  98. package/dist/components/Section/SectionColumn.vue.d.ts.map +1 -1
  99. package/dist/components/Section/SectionColumns.vue.d.ts +6 -11
  100. package/dist/components/Section/SectionColumns.vue.d.ts.map +1 -1
  101. package/dist/components/Section/SectionContainer.vue.d.ts +7 -11
  102. package/dist/components/Section/SectionContainer.vue.d.ts.map +1 -1
  103. package/dist/components/Section/SectionContainerAccordion.vue.d.ts +8 -12
  104. package/dist/components/Section/SectionContainerAccordion.vue.d.ts.map +1 -1
  105. package/dist/components/Section/SectionContent.vue.d.ts +6 -11
  106. package/dist/components/Section/SectionContent.vue.d.ts.map +1 -1
  107. package/dist/components/Section/SectionHeader.vue.d.ts +8 -12
  108. package/dist/components/Section/SectionHeader.vue.d.ts.map +1 -1
  109. package/dist/components/Section/SectionHeaderTag.vue.d.ts +5 -10
  110. package/dist/components/Section/SectionHeaderTag.vue.d.ts.map +1 -1
  111. package/dist/components/SectionFlare/SectionFlare.vue.d.ts.map +1 -1
  112. package/dist/components/ShowMoreButton.vue.d.ts +1 -1
  113. package/dist/components/ShowMoreButton.vue.d.ts.map +1 -1
  114. package/dist/features/Operation/Operation.vue.d.ts.map +1 -1
  115. package/dist/features/Operation/components/ContentTypeSelect.vue.d.ts.map +1 -1
  116. package/dist/features/Operation/components/OperationParameters.vue.d.ts.map +1 -1
  117. package/dist/features/Operation/components/OperationResponses.vue.d.ts.map +1 -1
  118. package/dist/features/Operation/components/ParameterHeaders.vue.d.ts.map +1 -1
  119. package/dist/features/Operation/components/ParameterList.vue.d.ts +5 -10
  120. package/dist/features/Operation/components/ParameterList.vue.d.ts.map +1 -1
  121. package/dist/features/Operation/components/ParameterListItem.vue.d.ts.map +1 -1
  122. package/dist/features/Operation/components/RequestBody.vue.d.ts +5 -10
  123. package/dist/features/Operation/components/RequestBody.vue.d.ts.map +1 -1
  124. package/dist/features/Operation/components/callbacks/Callback.vue.d.ts +2 -2
  125. package/dist/features/Operation/components/callbacks/Callback.vue.d.ts.map +1 -1
  126. package/dist/features/Operation/components/callbacks/Callback.vue.js +2 -2
  127. package/dist/features/Operation/components/callbacks/Callback.vue2.js +2 -2
  128. package/dist/features/Operation/components/callbacks/Callbacks.vue.d.ts +2 -2
  129. package/dist/features/Operation/components/callbacks/Callbacks.vue.d.ts.map +1 -1
  130. package/dist/features/Operation/components/callbacks/Callbacks.vue.js +2 -2
  131. package/dist/features/Operation/helpers/combine-params.d.ts +1 -2
  132. package/dist/features/Operation/helpers/combine-params.d.ts.map +1 -1
  133. package/dist/features/Operation/layouts/ClassicLayout.vue.d.ts +1 -3
  134. package/dist/features/Operation/layouts/ClassicLayout.vue.d.ts.map +1 -1
  135. package/dist/features/Operation/layouts/ClassicLayout.vue.js +1 -1
  136. package/dist/features/Operation/layouts/ClassicLayout.vue2.js +35 -34
  137. package/dist/features/Operation/layouts/ClassicLayout.vue3.js +2 -2
  138. package/dist/features/Operation/layouts/ModernLayout.vue.d.ts +1 -3
  139. package/dist/features/Operation/layouts/ModernLayout.vue.d.ts.map +1 -1
  140. package/dist/features/Operation/layouts/ModernLayout.vue.js +2 -2
  141. package/dist/features/Operation/layouts/ModernLayout.vue2.js +28 -27
  142. package/dist/features/Search/components/SearchButton.vue.d.ts.map +1 -1
  143. package/dist/features/Search/components/SearchModal.vue.d.ts.map +1 -1
  144. package/dist/features/api-client-modal/ApiClientModal.vue.d.ts +1 -1
  145. package/dist/features/api-client-modal/ApiClientModal.vue.d.ts.map +1 -1
  146. package/dist/features/api-client-modal/ApiClientModal.vue.js +50 -53
  147. package/dist/features/api-client-modal/useApiClient.d.ts +496 -496
  148. package/dist/features/api-client-modal/useApiClient.d.ts.map +1 -1
  149. package/dist/features/document-source/hooks/useDocumentFetcher.d.ts +1 -1
  150. package/dist/features/document-source/hooks/useDocumentFetcher.d.ts.map +1 -1
  151. package/dist/features/document-source/hooks/useDocumentFetcher.js +13 -13
  152. package/dist/features/example-responses/ExampleResponse.vue.d.ts +1 -2
  153. package/dist/features/example-responses/ExampleResponse.vue.d.ts.map +1 -1
  154. package/dist/features/example-responses/ExampleResponse.vue.js +2 -2
  155. package/dist/features/example-responses/ExampleResponseTab.vue.d.ts +5 -10
  156. package/dist/features/example-responses/ExampleResponseTab.vue.d.ts.map +1 -1
  157. package/dist/features/example-responses/ExampleResponseTabList.vue.d.ts +7 -11
  158. package/dist/features/example-responses/ExampleResponseTabList.vue.d.ts.map +1 -1
  159. package/dist/features/example-responses/ExampleResponses.vue.d.ts +1 -1
  160. package/dist/features/example-responses/ExampleResponses.vue.d.ts.map +1 -1
  161. package/dist/features/example-responses/ExampleResponses.vue.js +2 -2
  162. package/dist/features/example-responses/ExampleResponses.vue2.js +9 -9
  163. package/dist/features/example-responses/helpers/get-resolved-ref-deep.d.ts.map +1 -1
  164. package/dist/features/external-docs/ExternalDocs.vue.d.ts.map +1 -1
  165. package/dist/features/info-object/Contact.vue.d.ts.map +1 -1
  166. package/dist/features/info-object/License.vue.d.ts +1 -1
  167. package/dist/features/info-object/License.vue.d.ts.map +1 -1
  168. package/dist/features/info-object/TermsOfService.vue.d.ts.map +1 -1
  169. package/dist/features/multiple-documents/DocumentSelector.vue.d.ts.map +1 -1
  170. package/dist/features/multiple-documents/useMultipleDocuments.d.ts.map +1 -1
  171. package/dist/features/sidebar/components/Sidebar.vue.d.ts +8 -14
  172. package/dist/features/sidebar/components/Sidebar.vue.d.ts.map +1 -1
  173. package/dist/features/sidebar/components/SidebarElement.vue.d.ts +8 -12
  174. package/dist/features/sidebar/components/SidebarElement.vue.d.ts.map +1 -1
  175. package/dist/features/sidebar/components/SidebarElement.vue.js +1 -1
  176. package/dist/features/sidebar/components/SidebarElement.vue2.js +60 -55
  177. package/dist/features/sidebar/components/SidebarGroup.vue.d.ts +6 -11
  178. package/dist/features/sidebar/components/SidebarGroup.vue.d.ts.map +1 -1
  179. package/dist/features/sidebar/components/SidebarHttpBadge.vue.d.ts +5 -10
  180. package/dist/features/sidebar/components/SidebarHttpBadge.vue.d.ts.map +1 -1
  181. package/dist/features/sidebar/helpers/create-sidebar.d.ts.map +1 -1
  182. package/dist/features/specification-extension/SpecificationExtension.vue.d.ts.map +1 -1
  183. package/dist/features/specification-extension/SpecificationExtension.vue.js +2 -47
  184. package/dist/features/specification-extension/SpecificationExtension.vue2.js +47 -2
  185. package/dist/features/specification-extension/helpers.d.ts +10 -0
  186. package/dist/features/specification-extension/helpers.d.ts.map +1 -0
  187. package/dist/features/specification-extension/helpers.js +4 -0
  188. package/dist/features/specification-extension/index.d.ts +1 -0
  189. package/dist/features/specification-extension/index.d.ts.map +1 -1
  190. package/dist/features/test-request-button/TestRequestButton.vue.d.ts.map +1 -1
  191. package/dist/features/traverse-schema/helpers/get-tag.d.ts.map +1 -1
  192. package/dist/features/traverse-schema/helpers/traverse-description.d.ts +3 -1
  193. package/dist/features/traverse-schema/helpers/traverse-description.d.ts.map +1 -1
  194. package/dist/features/traverse-schema/helpers/traverse-document.d.ts.map +1 -1
  195. package/dist/features/traverse-schema/helpers/traverse-paths.d.ts +7 -3
  196. package/dist/features/traverse-schema/helpers/traverse-paths.d.ts.map +1 -1
  197. package/dist/features/traverse-schema/helpers/traverse-schemas.d.ts +3 -1
  198. package/dist/features/traverse-schema/helpers/traverse-schemas.d.ts.map +1 -1
  199. package/dist/features/traverse-schema/helpers/traverse-tags.d.ts +3 -1
  200. package/dist/features/traverse-schema/helpers/traverse-tags.d.ts.map +1 -1
  201. package/dist/features/traverse-schema/helpers/traverse-webhooks.d.ts +5 -1
  202. package/dist/features/traverse-schema/helpers/traverse-webhooks.d.ts.map +1 -1
  203. package/dist/features/traverse-schema/types.d.ts +1 -3
  204. package/dist/features/traverse-schema/types.d.ts.map +1 -1
  205. package/dist/features/x-badges/XBadges.vue.d.ts.map +1 -1
  206. package/dist/helpers/convert-security-scheme.d.ts +1 -1
  207. package/dist/helpers/convert-security-scheme.d.ts.map +1 -1
  208. package/dist/helpers/test-utils.d.ts.map +1 -1
  209. package/dist/hooks/useFreezing.d.ts +6 -0
  210. package/dist/hooks/useFreezing.d.ts.map +1 -0
  211. package/dist/hooks/useFreezing.js +29 -0
  212. package/dist/hooks/useNavState.d.ts +1 -2
  213. package/dist/hooks/useNavState.d.ts.map +1 -1
  214. package/dist/index.d.ts +1 -0
  215. package/dist/index.d.ts.map +1 -1
  216. package/dist/index.js +18 -16
  217. package/dist/libs/download.d.ts +0 -5
  218. package/dist/libs/download.d.ts.map +1 -1
  219. package/dist/libs/download.js +10 -13
  220. package/dist/libs/markdown.d.ts.map +1 -1
  221. package/dist/libs/openapi.d.ts +2 -4
  222. package/dist/libs/openapi.d.ts.map +1 -1
  223. package/dist/plugins/plugin-manager.d.ts.map +1 -1
  224. package/dist/standalone/lib/html-api.d.ts.map +1 -1
  225. package/dist/style.css +1 -1
  226. package/dist/v2/ApiReferenceWorkspace.vue.d.ts +11 -14
  227. package/dist/v2/ApiReferenceWorkspace.vue.d.ts.map +1 -1
  228. package/dist/v2/ApiReferenceWorkspace.vue.js +92 -95
  229. package/dist/v2/blocks/scalar-auth-selector-block/components/AuthSelector.vue.d.ts +20 -0
  230. package/dist/v2/blocks/scalar-auth-selector-block/components/AuthSelector.vue.d.ts.map +1 -0
  231. package/dist/v2/blocks/scalar-auth-selector-block/components/AuthSelector.vue.js +7 -0
  232. package/dist/v2/blocks/scalar-auth-selector-block/components/AuthSelector.vue2.js +223 -0
  233. package/dist/v2/blocks/scalar-auth-selector-block/components/DeleteRequestAuthModal.vue.d.ts +21 -0
  234. package/dist/v2/blocks/scalar-auth-selector-block/components/DeleteRequestAuthModal.vue.d.ts.map +1 -0
  235. package/dist/v2/blocks/scalar-auth-selector-block/components/DeleteRequestAuthModal.vue.js +64 -0
  236. package/dist/v2/blocks/scalar-auth-selector-block/components/DeleteRequestAuthModal.vue2.js +4 -0
  237. package/dist/v2/blocks/scalar-auth-selector-block/components/OAuth2.vue.d.ts +17 -0
  238. package/dist/v2/blocks/scalar-auth-selector-block/components/OAuth2.vue.d.ts.map +1 -0
  239. package/dist/v2/blocks/scalar-auth-selector-block/components/OAuth2.vue.js +267 -0
  240. package/dist/v2/blocks/scalar-auth-selector-block/components/OAuth2.vue2.js +4 -0
  241. package/dist/v2/blocks/scalar-auth-selector-block/components/OAuthScopesInput.vue.d.ts +9 -0
  242. package/dist/v2/blocks/scalar-auth-selector-block/components/OAuthScopesInput.vue.d.ts.map +1 -0
  243. package/dist/v2/blocks/scalar-auth-selector-block/components/OAuthScopesInput.vue.js +151 -0
  244. package/dist/v2/blocks/scalar-auth-selector-block/components/OAuthScopesInput.vue2.js +4 -0
  245. package/dist/v2/blocks/scalar-auth-selector-block/components/RequestAuthDataTable.vue.d.ts +20 -0
  246. package/dist/v2/blocks/scalar-auth-selector-block/components/RequestAuthDataTable.vue.d.ts.map +1 -0
  247. package/dist/v2/blocks/scalar-auth-selector-block/components/RequestAuthDataTable.vue.js +7 -0
  248. package/dist/v2/blocks/scalar-auth-selector-block/components/RequestAuthDataTable.vue2.js +96 -0
  249. package/dist/v2/blocks/scalar-auth-selector-block/components/RequestAuthDataTableInput.vue.d.ts +50 -0
  250. package/dist/v2/blocks/scalar-auth-selector-block/components/RequestAuthDataTableInput.vue.d.ts.map +1 -0
  251. package/dist/v2/blocks/scalar-auth-selector-block/components/RequestAuthDataTableInput.vue.js +50 -0
  252. package/dist/v2/blocks/scalar-auth-selector-block/components/RequestAuthDataTableInput.vue2.js +4 -0
  253. package/dist/v2/blocks/scalar-auth-selector-block/components/RequestAuthTab.vue.d.ts +17 -0
  254. package/dist/v2/blocks/scalar-auth-selector-block/components/RequestAuthTab.vue.d.ts.map +1 -0
  255. package/dist/v2/blocks/scalar-auth-selector-block/components/RequestAuthTab.vue.js +253 -0
  256. package/dist/v2/blocks/scalar-auth-selector-block/components/RequestAuthTab.vue2.js +4 -0
  257. package/dist/v2/blocks/scalar-auth-selector-block/helpers/filter-security-requirements.d.ts +6 -0
  258. package/dist/v2/blocks/scalar-auth-selector-block/helpers/filter-security-requirements.d.ts.map +1 -0
  259. package/dist/v2/blocks/scalar-auth-selector-block/helpers/update-scheme.d.ts +8 -0
  260. package/dist/v2/blocks/scalar-auth-selector-block/helpers/update-scheme.d.ts.map +1 -0
  261. package/dist/v2/blocks/scalar-auth-selector-block/helpers/update-scheme.js +22 -0
  262. package/dist/v2/blocks/scalar-auth-selector-block/index.d.ts +2 -0
  263. package/dist/v2/blocks/scalar-auth-selector-block/index.d.ts.map +1 -0
  264. package/dist/v2/blocks/scalar-client-selector-block/components/ClientDropdown.vue.d.ts +15 -0
  265. package/dist/v2/blocks/scalar-client-selector-block/components/ClientDropdown.vue.d.ts.map +1 -0
  266. package/dist/v2/blocks/scalar-client-selector-block/components/ClientDropdown.vue.js +7 -0
  267. package/dist/{components/Content/ClientLibraries/ClientSelector.vue2.js → v2/blocks/scalar-client-selector-block/components/ClientDropdown.vue2.js} +33 -33
  268. package/dist/v2/blocks/scalar-client-selector-block/components/ClientSelector.vue.d.ts +16 -0
  269. package/dist/v2/blocks/scalar-client-selector-block/components/ClientSelector.vue.d.ts.map +1 -0
  270. package/dist/v2/blocks/scalar-client-selector-block/components/ClientSelector.vue.js +7 -0
  271. package/dist/v2/blocks/scalar-client-selector-block/components/ClientSelector.vue2.js +124 -0
  272. package/dist/v2/blocks/scalar-client-selector-block/helpers/featured-clients.d.ts +11 -0
  273. package/dist/v2/blocks/scalar-client-selector-block/helpers/featured-clients.d.ts.map +1 -0
  274. package/dist/v2/blocks/scalar-client-selector-block/index.d.ts +2 -0
  275. package/dist/v2/blocks/scalar-client-selector-block/index.d.ts.map +1 -0
  276. package/dist/{features/base-url/BaseUrl.vue.d.ts → v2/blocks/scalar-info-block/components/DownloadLink.vue.d.ts} +3 -4
  277. package/dist/v2/blocks/scalar-info-block/components/DownloadLink.vue.d.ts.map +1 -0
  278. package/dist/v2/blocks/scalar-info-block/components/DownloadLink.vue.js +7 -0
  279. package/dist/v2/blocks/scalar-info-block/components/DownloadLink.vue2.js +62 -0
  280. package/dist/v2/blocks/scalar-info-block/components/InfoBlock.vue.d.ts +36 -0
  281. package/dist/v2/blocks/scalar-info-block/components/InfoBlock.vue.d.ts.map +1 -0
  282. package/dist/v2/blocks/scalar-info-block/components/InfoBlock.vue.js +49 -0
  283. package/dist/v2/blocks/scalar-info-block/components/InfoBlock.vue2.js +4 -0
  284. package/dist/{components/Content/Introduction/Description.vue.d.ts → v2/blocks/scalar-info-block/components/InfoDescription.vue.d.ts} +2 -2
  285. package/dist/v2/blocks/scalar-info-block/components/InfoDescription.vue.d.ts.map +1 -0
  286. package/dist/v2/blocks/scalar-info-block/components/InfoDescription.vue.js +7 -0
  287. package/dist/v2/blocks/scalar-info-block/components/InfoDescription.vue2.js +72 -0
  288. package/dist/v2/blocks/scalar-info-block/components/InfoLinks.vue.d.ts +8 -0
  289. package/dist/v2/blocks/scalar-info-block/components/InfoLinks.vue.d.ts.map +1 -0
  290. package/dist/v2/blocks/scalar-info-block/components/InfoLinks.vue.js +36 -0
  291. package/dist/v2/blocks/scalar-info-block/components/InfoLinks.vue2.js +4 -0
  292. package/dist/v2/blocks/scalar-info-block/components/InfoVersion.vue.d.ts +7 -0
  293. package/dist/v2/blocks/scalar-info-block/components/InfoVersion.vue.d.ts.map +1 -0
  294. package/dist/v2/blocks/scalar-info-block/components/InfoVersion.vue.js +25 -0
  295. package/dist/v2/blocks/scalar-info-block/components/InfoVersion.vue2.js +4 -0
  296. package/dist/v2/blocks/scalar-info-block/components/IntroductionCard.vue.d.ts +16 -0
  297. package/dist/v2/blocks/scalar-info-block/components/IntroductionCard.vue.d.ts.map +1 -0
  298. package/dist/v2/blocks/scalar-info-block/components/IntroductionCard.vue.js +7 -0
  299. package/dist/v2/blocks/scalar-info-block/components/IntroductionCard.vue2.js +17 -0
  300. package/dist/v2/blocks/scalar-info-block/components/IntroductionCard.vue3.js +4 -0
  301. package/dist/v2/blocks/scalar-info-block/components/IntroductionCardItem.vue.d.ts +13 -0
  302. package/dist/v2/blocks/scalar-info-block/components/IntroductionCardItem.vue.d.ts.map +1 -0
  303. package/dist/v2/blocks/scalar-info-block/components/IntroductionCardItem.vue.js +13 -0
  304. package/dist/v2/blocks/scalar-info-block/components/IntroductionCardItem.vue2.js +4 -0
  305. package/dist/v2/blocks/scalar-info-block/components/IntroductionLayout.vue.d.ts +27 -0
  306. package/dist/v2/blocks/scalar-info-block/components/IntroductionLayout.vue.d.ts.map +1 -0
  307. package/dist/v2/blocks/scalar-info-block/components/IntroductionLayout.vue.js +7 -0
  308. package/dist/v2/blocks/scalar-info-block/components/IntroductionLayout.vue2.js +122 -0
  309. package/dist/v2/blocks/scalar-info-block/components/IntroductionLayout.vue3.js +4 -0
  310. package/dist/{features/download-link/DownloadLink.vue.d.ts → v2/blocks/scalar-info-block/components/OpenApiVersion.vue.d.ts} +2 -2
  311. package/dist/v2/blocks/scalar-info-block/components/OpenApiVersion.vue.d.ts.map +1 -0
  312. package/dist/v2/blocks/scalar-info-block/components/OpenApiVersion.vue.js +19 -0
  313. package/dist/v2/blocks/scalar-info-block/components/OpenApiVersion.vue2.js +4 -0
  314. package/dist/v2/blocks/scalar-info-block/index.d.ts +3 -0
  315. package/dist/v2/blocks/scalar-info-block/index.d.ts.map +1 -0
  316. package/dist/v2/blocks/scalar-request-example-block/components/ExamplePicker.vue.d.ts +5 -8
  317. package/dist/v2/blocks/scalar-request-example-block/components/ExamplePicker.vue.d.ts.map +1 -1
  318. package/dist/v2/blocks/scalar-request-example-block/components/ExamplePicker.vue2.js +38 -52
  319. package/dist/v2/blocks/scalar-request-example-block/components/RequestExample.vue.d.ts +7 -8
  320. package/dist/v2/blocks/scalar-request-example-block/components/RequestExample.vue.d.ts.map +1 -1
  321. package/dist/v2/blocks/scalar-request-example-block/components/RequestExample.vue.js +1 -1
  322. package/dist/v2/blocks/scalar-request-example-block/components/RequestExample.vue2.js +148 -133
  323. package/dist/v2/blocks/scalar-request-example-block/helpers/find-client.d.ts.map +1 -1
  324. package/dist/v2/blocks/scalar-request-example-block/helpers/generate-client-options.d.ts.map +1 -1
  325. package/dist/v2/blocks/scalar-request-example-block/helpers/generate-code-snippet.d.ts +1 -3
  326. package/dist/v2/blocks/scalar-request-example-block/helpers/generate-code-snippet.d.ts.map +1 -1
  327. package/dist/v2/blocks/scalar-request-example-block/helpers/get-secrets.d.ts +1 -1
  328. package/dist/v2/blocks/scalar-request-example-block/helpers/get-secrets.d.ts.map +1 -1
  329. package/dist/v2/blocks/scalar-request-example-block/helpers/get-secrets.js +4 -3
  330. package/dist/v2/blocks/scalar-server-selector-block/components/Selector.vue.d.ts +51 -0
  331. package/dist/v2/blocks/scalar-server-selector-block/components/Selector.vue.d.ts.map +1 -0
  332. package/dist/v2/blocks/scalar-server-selector-block/components/Selector.vue.js +78 -0
  333. package/dist/v2/blocks/scalar-server-selector-block/components/Selector.vue2.js +4 -0
  334. package/dist/v2/blocks/scalar-server-selector-block/components/ServerSelector.vue.d.ts +18 -0
  335. package/dist/v2/blocks/scalar-server-selector-block/components/ServerSelector.vue.d.ts.map +1 -0
  336. package/dist/v2/blocks/scalar-server-selector-block/components/ServerSelector.vue.js +72 -0
  337. package/dist/v2/blocks/scalar-server-selector-block/components/ServerSelector.vue2.js +4 -0
  338. package/dist/v2/blocks/scalar-server-selector-block/index.d.ts +2 -0
  339. package/dist/v2/blocks/scalar-server-selector-block/index.d.ts.map +1 -0
  340. package/dist/v2/helpers/get-document-name.d.ts.map +1 -1
  341. package/dist/v2/helpers/map-configuration.d.ts +1 -1
  342. package/dist/v2/helpers/map-configuration.d.ts.map +1 -1
  343. package/dist/v2/helpers/normalize-content.d.ts.map +1 -1
  344. package/dist/v2/hooks/use-legacy-store-events.d.ts +14 -0
  345. package/dist/v2/hooks/use-legacy-store-events.d.ts.map +1 -0
  346. package/dist/v2/hooks/use-legacy-store-events.js +65 -0
  347. package/dist/v2/hooks/use-workspace-store-events.d.ts +4 -0
  348. package/dist/v2/hooks/use-workspace-store-events.d.ts.map +1 -0
  349. package/dist/v2/hooks/use-workspace-store-events.js +43 -0
  350. package/package.json +20 -18
  351. package/dist/components/Content/ClientLibraries/ClientLibraries.vue.js +0 -7
  352. package/dist/components/Content/ClientLibraries/ClientLibraries.vue2.js +0 -122
  353. package/dist/components/Content/ClientLibraries/ClientSelector.vue.js +0 -7
  354. package/dist/components/Content/Introduction/Description.vue.d.ts.map +0 -1
  355. package/dist/components/Content/Introduction/Description.vue.js +0 -7
  356. package/dist/components/Content/Introduction/Description.vue2.js +0 -72
  357. package/dist/components/Content/Introduction/Introduction.vue.d.ts +0 -13
  358. package/dist/components/Content/Introduction/Introduction.vue.d.ts.map +0 -1
  359. package/dist/components/Content/Introduction/Introduction.vue.js +0 -7
  360. package/dist/components/Content/Introduction/Introduction.vue2.js +0 -113
  361. package/dist/components/Content/Introduction/IntroductionSection.vue.d.ts +0 -25
  362. package/dist/components/Content/Introduction/IntroductionSection.vue.d.ts.map +0 -1
  363. package/dist/components/Content/Introduction/IntroductionSection.vue.js +0 -7
  364. package/dist/components/Content/Introduction/IntroductionSection.vue2.js +0 -159
  365. package/dist/components/Content/Introduction/index.d.ts +0 -2
  366. package/dist/components/Content/Introduction/index.d.ts.map +0 -1
  367. package/dist/features/base-url/BaseUrl.vue.d.ts.map +0 -1
  368. package/dist/features/base-url/BaseUrl.vue.js +0 -56
  369. package/dist/features/base-url/BaseUrl.vue2.js +0 -4
  370. package/dist/features/base-url/index.d.ts +0 -2
  371. package/dist/features/base-url/index.d.ts.map +0 -1
  372. package/dist/features/download-link/DownloadLink.vue.d.ts.map +0 -1
  373. package/dist/features/download-link/DownloadLink.vue.js +0 -7
  374. package/dist/features/download-link/DownloadLink.vue2.js +0 -61
  375. package/dist/features/download-link/index.d.ts +0 -3
  376. package/dist/features/download-link/index.d.ts.map +0 -1
  377. package/dist/features/download-link/openapi-version-symbol.d.ts +0 -2
  378. package/dist/features/download-link/openapi-version-symbol.d.ts.map +0 -1
  379. package/dist/features/download-link/openapi-version-symbol.js +0 -4
  380. package/dist/v2/events/definitions.d.ts +0 -44
  381. package/dist/v2/events/definitions.d.ts.map +0 -1
  382. package/dist/v2/events/definitions.js +0 -7
  383. package/dist/v2/events/index.d.ts +0 -3
  384. package/dist/v2/events/index.d.ts.map +0 -1
  385. package/dist/v2/events/listeners.d.ts +0 -8
  386. package/dist/v2/events/listeners.d.ts.map +0 -1
  387. package/dist/v2/events/listeners.js +0 -15
  388. /package/dist/{components/Content/ClientLibraries/ClientLibraries.vue3.js → v2/blocks/scalar-auth-selector-block/components/AuthSelector.vue3.js} +0 -0
  389. /package/dist/{components/Content/ClientLibraries/ClientSelector.vue3.js → v2/blocks/scalar-auth-selector-block/components/RequestAuthDataTable.vue3.js} +0 -0
  390. /package/dist/{components/Content/Introduction/Description.vue3.js → v2/blocks/scalar-client-selector-block/components/ClientDropdown.vue3.js} +0 -0
  391. /package/dist/{components/Content/Introduction/Introduction.vue3.js → v2/blocks/scalar-client-selector-block/components/ClientSelector.vue3.js} +0 -0
  392. /package/dist/{components/Content/ClientLibraries → v2/blocks/scalar-client-selector-block/helpers}/featured-clients.js +0 -0
  393. /package/dist/{features/download-link → v2/blocks/scalar-info-block/components}/DownloadLink.vue3.js +0 -0
  394. /package/dist/{components/Content/Introduction/IntroductionSection.vue3.js → v2/blocks/scalar-info-block/components/InfoDescription.vue3.js} +0 -0
@@ -0,0 +1,124 @@
1
+ import { defineComponent as w, useId as k, computed as p, useTemplateRef as O, createElementBlock as o, createCommentVNode as C, openBlock as i, createVNode as r, unref as t, withCtx as m, createElementVNode as L, Fragment as y, normalizeClass as E, renderList as N, createBlock as P, createTextVNode as B, toDisplayString as h } from "vue";
2
+ import { TabGroup as F, TabList as V, TabPanels as A, TabPanel as D } from "@headlessui/vue";
3
+ import { ScalarMarkdown as M, ScalarCodeBlock as z } from "@scalar/components";
4
+ import { emitCustomEvent as G } from "@scalar/workspace-store/events";
5
+ import { getFeaturedClients as K, isFeaturedClient as R } from "../helpers/featured-clients.js";
6
+ import { DEFAULT_CLIENT as U } from "../../scalar-request-example-block/helpers/find-client.js";
7
+ import _ from "./ClientDropdown.vue.js";
8
+ const j = {
9
+ key: 0,
10
+ ref: "wrapper-ref"
11
+ }, q = ["id"], H = {
12
+ key: 1,
13
+ class: "selected-client card-footer border-t-0 p-0",
14
+ role: "tabpanel",
15
+ tabindex: "1"
16
+ }, J = ["id"], te = /* @__PURE__ */ w({
17
+ __name: "ClientSelector",
18
+ props: {
19
+ xScalarSdkInstallation: {},
20
+ clientOptions: {},
21
+ xSelectedClient: { default: () => U }
22
+ },
23
+ setup(l, { expose: g }) {
24
+ const v = k(), b = k(), x = p(
25
+ () => l.clientOptions.flatMap(
26
+ (e) => e.options.find((n) => n.id === l.xSelectedClient) ?? []
27
+ )[0]
28
+ ), c = p(() => K(l.clientOptions)), I = p(
29
+ () => c.value.findIndex(
30
+ (e) => l.xSelectedClient === e.id
31
+ )
32
+ ), S = O("wrapper-ref"), T = (e) => {
33
+ const n = c.value[e];
34
+ !n || !S.value || G(S.value, "scalar-update-selected-client", n.id);
35
+ }, a = p(() => {
36
+ var n;
37
+ if (!Array.isArray(l.xScalarSdkInstallation) || !((n = l.xScalarSdkInstallation) != null && n.length))
38
+ return;
39
+ const e = l.xScalarSdkInstallation.find((u) => {
40
+ var s, d;
41
+ const f = (d = (s = l.xSelectedClient) == null ? void 0 : s.split("/")[0]) == null ? void 0 : d.toLowerCase();
42
+ return u.lang.toLowerCase() === f;
43
+ });
44
+ if (e)
45
+ return e;
46
+ });
47
+ return g({
48
+ selectedClientOption: x
49
+ }), (e, n) => e.clientOptions.length ? (i(), o("div", j, [
50
+ r(t(F), {
51
+ manual: "",
52
+ selectedIndex: I.value,
53
+ onChange: T
54
+ }, {
55
+ default: m(() => [
56
+ L("div", {
57
+ id: t(v),
58
+ class: "client-libraries-heading"
59
+ }, " Client Libraries ", 8, q),
60
+ r(t(V), {
61
+ "aria-labelledby": t(v),
62
+ class: "client-libraries-list"
63
+ }, {
64
+ default: m(() => [
65
+ r(_, {
66
+ clientOptions: e.clientOptions,
67
+ featuredClients: c.value,
68
+ morePanel: t(b),
69
+ xSelectedClient: e.xSelectedClient
70
+ }, null, 8, ["clientOptions", "featuredClients", "morePanel", "xSelectedClient"])
71
+ ]),
72
+ _: 1
73
+ }, 8, ["aria-labelledby"]),
74
+ r(t(A), null, {
75
+ default: m(() => {
76
+ var u, f, s;
77
+ return [
78
+ (u = a.value) != null && u.source || (f = a.value) != null && f.description ? (i(), o(y, { key: 0 }, [
79
+ a.value.description ? (i(), o("div", {
80
+ key: 0,
81
+ class: E(["selected-client card-footer -outline-offset-2", a.value.source && "rounded-b-none"]),
82
+ role: "tabpanel",
83
+ tabindex: "0"
84
+ }, [
85
+ r(t(M), {
86
+ value: a.value.description
87
+ }, null, 8, ["value"])
88
+ ], 2)) : C("", !0),
89
+ a.value.source ? (i(), o("div", H, [
90
+ r(t(z), {
91
+ class: "rounded-t-none rounded-b-lg px-3 py-2 -outline-offset-1 has-focus:outline",
92
+ content: a.value.source,
93
+ copy: !0,
94
+ lang: "shell"
95
+ }, null, 8, ["content"])
96
+ ])) : C("", !0)
97
+ ], 64)) : t(R)(e.xSelectedClient) ? (i(!0), o(y, { key: 1 }, N(c.value, (d) => (i(), P(t(D), {
98
+ key: d.id,
99
+ class: "selected-client card-footer -outline-offset-2"
100
+ }, {
101
+ default: m(() => [
102
+ B(h(d.title), 1)
103
+ ]),
104
+ _: 2
105
+ }, 1024))), 128)) : (i(), o("div", {
106
+ key: 2,
107
+ id: t(b),
108
+ class: "selected-client card-footer -outline-offset-2",
109
+ role: "tabpanel",
110
+ tabindex: "0"
111
+ }, h((s = x.value) == null ? void 0 : s.title), 9, J))
112
+ ];
113
+ }),
114
+ _: 1
115
+ })
116
+ ]),
117
+ _: 1
118
+ }, 8, ["selectedIndex"])
119
+ ], 512)) : C("", !0);
120
+ }
121
+ });
122
+ export {
123
+ te as default
124
+ };
@@ -0,0 +1,11 @@
1
+ import type { ClientOption, ClientOptionGroup } from '../../../../v2/blocks/scalar-request-example-block/types';
2
+ import type { AvailableClients } from '@scalar/snippetz';
3
+ /** Whether or not a client is in the featured list */
4
+ export declare const isFeaturedClient: (clientId: AvailableClients[number] | undefined, featuredClients?: AvailableClients[number][]) => boolean;
5
+ /**
6
+ * Maps featured client IDs to their corresponding ClientOption objects.
7
+ * Returns an array of ClientOption objects that match the featured clients list,
8
+ * maintaining the order of the featured clients.
9
+ */
10
+ export declare const getFeaturedClients: (clientOptions: ClientOptionGroup[], featuredClients?: AvailableClients[number][]) => ClientOption[];
11
+ //# sourceMappingURL=featured-clients.d.ts.map
@@ -0,0 +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"}
@@ -0,0 +1,2 @@
1
+ export { default as ClientSelector } from './components/ClientSelector.vue.js';
2
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/v2/blocks/scalar-client-selector-block/index.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,OAAO,IAAI,cAAc,EAAE,MAAM,iCAAiC,CAAA"}
@@ -1,8 +1,7 @@
1
- import type { Collection, Server } from '@scalar/oas-utils/entities/spec';
2
1
  type __VLS_Props = {
3
- collection: Collection;
4
- server?: Server;
2
+ title?: string;
3
+ getOriginalDocument: () => string;
5
4
  };
6
5
  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>;
7
6
  export default _default;
8
- //# sourceMappingURL=BaseUrl.vue.d.ts.map
7
+ //# sourceMappingURL=DownloadLink.vue.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"DownloadLink.vue.d.ts","sourceRoot":"","sources":["../../../../../src/v2/blocks/scalar-info-block/components/DownloadLink.vue"],"names":[],"mappings":"AAwLA,KAAK,WAAW,GAAG;IACjB,KAAK,CAAC,EAAE,MAAM,CAAA;IACd,mBAAmB,EAAE,MAAM,MAAM,CAAA;CAClC,CAAC;;AAmJF,wBAMG"}
@@ -0,0 +1,7 @@
1
+ import o from "./DownloadLink.vue2.js";
2
+ import "./DownloadLink.vue3.js";
3
+ import t from "../../../../_virtual/_plugin-vue_export-helper.js";
4
+ const m = /* @__PURE__ */ t(o, [["__scopeId", "data-v-a50cf117"]]);
5
+ export {
6
+ m as default
7
+ };
@@ -0,0 +1,62 @@
1
+ import { defineComponent as T, computed as N, createElementBlock as t, createCommentVNode as l, unref as e, openBlock as d, normalizeClass as O, withModifiers as g, createElementVNode as c, createVNode as y, withCtx as D, createTextVNode as b } from "vue";
2
+ import V from "github-slugger";
3
+ import v from "../../../../components/Badge/Badge.vue.js";
4
+ import { useConfig as j } from "../../../../hooks/useConfig.js";
5
+ import { downloadDocument as B } from "../../../../libs/download.js";
6
+ const $ = /* @__PURE__ */ T({
7
+ __name: "DownloadLink",
8
+ props: {
9
+ title: {},
10
+ getOriginalDocument: { type: Function }
11
+ },
12
+ setup(r) {
13
+ const n = j(), k = new V(), x = N(() => k.slug(r.title ?? "")), u = (a) => {
14
+ B(r.getOriginalDocument(), x.value, a);
15
+ };
16
+ return (a, o) => {
17
+ var i, m, s, p, w, f;
18
+ return ((i = e(n)) == null ? void 0 : i.documentDownloadType) !== "none" ? (d(), t("div", {
19
+ key: 0,
20
+ class: O(["download-container group", {
21
+ "download-both": ((m = e(n)) == null ? void 0 : m.documentDownloadType) === "both"
22
+ }])
23
+ }, [
24
+ ((s = e(n)) == null ? void 0 : s.documentDownloadType) === "json" || ((p = e(n)) == null ? void 0 : p.documentDownloadType) === "both" ? (d(), t("button", {
25
+ key: 0,
26
+ class: "download-button",
27
+ type: "button",
28
+ variant: "ghost",
29
+ onClick: o[0] || (o[0] = g((C) => u("json"), ["prevent"]))
30
+ }, [
31
+ o[3] || (o[3] = c("span", null, " Download OpenAPI Document ", -1)),
32
+ y(v, { class: "extension hidden group-hover:flex" }, {
33
+ default: D(() => o[2] || (o[2] = [
34
+ b("json")
35
+ ])),
36
+ _: 1,
37
+ __: [2]
38
+ })
39
+ ])) : l("", !0),
40
+ ((w = e(n)) == null ? void 0 : w.documentDownloadType) === "yaml" || ((f = e(n)) == null ? void 0 : f.documentDownloadType) === "both" ? (d(), t("button", {
41
+ key: 1,
42
+ class: "download-button",
43
+ type: "button",
44
+ variant: "ghost",
45
+ onClick: o[1] || (o[1] = g((C) => u("yaml"), ["prevent"]))
46
+ }, [
47
+ o[5] || (o[5] = c("span", null, " Download OpenAPI Document ", -1)),
48
+ y(v, { class: "extension hidden group-hover:flex" }, {
49
+ default: D(() => o[4] || (o[4] = [
50
+ b("yaml")
51
+ ])),
52
+ _: 1,
53
+ __: [4]
54
+ })
55
+ ])) : l("", !0)
56
+ ], 2)) : l("", !0);
57
+ };
58
+ }
59
+ });
60
+ export {
61
+ $ as default
62
+ };
@@ -0,0 +1,36 @@
1
+ import type { ExternalDocumentationObject, InfoObject } from '@scalar/workspace-store/schemas/v3.1/strict/openapi-document';
2
+ type __VLS_Props = {
3
+ /** Optional unique identifier for the info block. */
4
+ id?: string;
5
+ /** Determines the layout style for the info block ('modern' or 'classic'). */
6
+ layout?: 'modern' | 'classic';
7
+ /** Original openapi version of the input document */
8
+ oasVersion?: string;
9
+ /** The original document content. */
10
+ getOriginalDocument: () => string;
11
+ /** The Info object from the OpenAPI document. */
12
+ info: InfoObject;
13
+ /** The external documentation object from the OpenAPI document, if present. */
14
+ externalDocs?: ExternalDocumentationObject;
15
+ /** OpenAPI extension fields at the document level. */
16
+ documentExtensions?: Record<string, unknown>;
17
+ /** OpenAPI extension fields at the info object level. */
18
+ 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;
23
+ };
24
+ declare var __VLS_8: {};
25
+ type __VLS_Slots = {} & {
26
+ selectors?: (props: typeof __VLS_8) => any;
27
+ };
28
+ 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>;
29
+ declare const _default: __VLS_WithSlots<typeof __VLS_component, __VLS_Slots>;
30
+ export default _default;
31
+ type __VLS_WithSlots<T, S> = T & {
32
+ new (): {
33
+ $slots: S;
34
+ };
35
+ };
36
+ //# sourceMappingURL=InfoBlock.vue.d.ts.map
@@ -0,0 +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"}
@@ -0,0 +1,49 @@
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({
5
+ __name: "InfoBlock",
6
+ props: {
7
+ id: {},
8
+ layout: {},
9
+ oasVersion: {},
10
+ getOriginalDocument: { type: Function },
11
+ info: {},
12
+ externalDocs: {},
13
+ documentExtensions: {},
14
+ infoExtensions: {},
15
+ isLoading: { type: Boolean },
16
+ onLoaded: { type: Function }
17
+ },
18
+ setup(e) {
19
+ const i = s(
20
+ () => e.layout === "classic" ? "after" : "aside"
21
+ );
22
+ return (o, m) => (r(), a(c, {
23
+ id: o.id,
24
+ documentExtensions: o.documentExtensions,
25
+ externalDocs: o.externalDocs,
26
+ getOriginalDocument: o.getOriginalDocument,
27
+ info: o.info,
28
+ infoExtensions: o.infoExtensions,
29
+ isLoading: o.isLoading,
30
+ oasVersion: o.oasVersion,
31
+ onLoaded: o.onLoaded
32
+ }, {
33
+ [i.value]: n(() => [
34
+ d(u, {
35
+ row: o.layout === "classic"
36
+ }, {
37
+ default: n(() => [
38
+ l(o.$slots, "selectors")
39
+ ]),
40
+ _: 3
41
+ }, 8, ["row"])
42
+ ]),
43
+ _: 2
44
+ }, 1032, ["id", "documentExtensions", "externalDocs", "getOriginalDocument", "info", "infoExtensions", "isLoading", "oasVersion", "onLoaded"]));
45
+ }
46
+ });
47
+ export {
48
+ L as default
49
+ };
@@ -0,0 +1,4 @@
1
+ import f from "./InfoBlock.vue.js";
2
+ export {
3
+ f as default
4
+ };
@@ -1,7 +1,7 @@
1
1
  type __VLS_Props = {
2
2
  /** Markdown document */
3
- value?: string;
3
+ description?: string;
4
4
  };
5
5
  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
6
  export default _default;
7
- //# sourceMappingURL=Description.vue.d.ts.map
7
+ //# sourceMappingURL=InfoDescription.vue.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"InfoDescription.vue.d.ts","sourceRoot":"","sources":["../../../../../src/v2/blocks/scalar-info-block/components/InfoDescription.vue"],"names":[],"mappings":"AAgIA,KAAK,WAAW,GAAG;IACjB,wBAAwB;IACxB,WAAW,CAAC,EAAE,MAAM,CAAA;CACrB,CAAC;;AAgKF,wBAMG"}
@@ -0,0 +1,7 @@
1
+ import o from "./InfoDescription.vue2.js";
2
+ import "./InfoDescription.vue3.js";
3
+ import t from "../../../../_virtual/_plugin-vue_export-helper.js";
4
+ const i = /* @__PURE__ */ t(o, [["__scopeId", "data-v-7d7f7b21"]]);
5
+ export {
6
+ i as default
7
+ };
@@ -0,0 +1,72 @@
1
+ import { defineComponent as I, computed as y, createElementBlock as i, createCommentVNode as H, openBlock as n, Fragment as l, renderList as S, createBlock as c, unref as o, withCtx as w, createVNode as C } from "vue";
2
+ import { splitContent as B, getHeadings as N } from "@scalar/code-highlight/markdown";
3
+ import { ScalarMarkdown as u } from "@scalar/components";
4
+ import d from "github-slugger";
5
+ import b from "../../../../components/IntersectionObserver.vue.js";
6
+ import { useNavState as x } from "../../../../hooks/useNavState.js";
7
+ const E = {
8
+ key: 0,
9
+ class: "introduction-description"
10
+ }, T = /* @__PURE__ */ I({
11
+ __name: "InfoDescription",
12
+ props: {
13
+ description: {}
14
+ },
15
+ setup(a) {
16
+ const m = y(() => {
17
+ if (!a.description)
18
+ return [];
19
+ const e = new d();
20
+ return B(a.description).map((t) => {
21
+ const [r] = N(t);
22
+ return {
23
+ id: r ? s({
24
+ ...r,
25
+ slug: e.slug(r.value)
26
+ }) : void 0,
27
+ content: t
28
+ };
29
+ });
30
+ }), { getHeadingId: s, getFullHash: p, isIntersectionEnabled: g, replaceUrlState: f } = x();
31
+ function h(e = "") {
32
+ g.value && f(e);
33
+ }
34
+ const v = new d(), _ = (e) => (e.data = {
35
+ hProperties: {
36
+ id: s({
37
+ depth: e.depth,
38
+ value: e.children[0].value,
39
+ slug: v.slug(e.children[0].value)
40
+ })
41
+ }
42
+ }, e);
43
+ return (e, k) => e.description ? (n(), i("div", E, [
44
+ (n(!0), i(l, null, S(m.value, (t) => (n(), i(l, {
45
+ key: t.id
46
+ }, [
47
+ t.id ? (n(), c(b, {
48
+ key: 0,
49
+ id: o(p)(t.id),
50
+ class: "introduction-description-heading",
51
+ onIntersecting: () => h(t.id)
52
+ }, {
53
+ default: w(() => [
54
+ C(o(u), {
55
+ transform: _,
56
+ transformType: "heading",
57
+ value: t.content
58
+ }, null, 8, ["value"])
59
+ ]),
60
+ _: 2
61
+ }, 1032, ["id", "onIntersecting"])) : (n(), c(o(u), {
62
+ key: 1,
63
+ value: t.content,
64
+ withImages: ""
65
+ }, null, 8, ["value"]))
66
+ ], 64))), 128))
67
+ ])) : H("", !0);
68
+ }
69
+ });
70
+ export {
71
+ T as default
72
+ };
@@ -0,0 +1,8 @@
1
+ import type { ExternalDocumentationObject, InfoObject } from '@scalar/workspace-store/schemas/v3.1/strict/openapi-document';
2
+ type __VLS_Props = {
3
+ info: InfoObject;
4
+ externalDocs?: ExternalDocumentationObject;
5
+ };
6
+ 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>;
7
+ export default _default;
8
+ //# sourceMappingURL=InfoLinks.vue.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"InfoLinks.vue.d.ts","sourceRoot":"","sources":["../../../../../src/v2/blocks/scalar-info-block/components/InfoLinks.vue"],"names":[],"mappings":"AAgCA,OAAO,KAAK,EACV,2BAA2B,EAC3B,UAAU,EACX,MAAM,8DAA8D,CAAA;AAMrE,KAAK,WAAW,GAAG;IACjB,IAAI,EAAE,UAAU,CAAA;IAChB,YAAY,CAAC,EAAE,2BAA2B,CAAA;CAC3C,CAAC;;AAuFF,wBAMG"}
@@ -0,0 +1,36 @@
1
+ import { defineComponent as l, createBlock as o, openBlock as r, unref as n, withCtx as t, createVNode as a, createCommentVNode as i } from "vue";
2
+ import f from "../../../../components/LinkList/LinkList.vue.js";
3
+ import m from "../../../../features/external-docs/ExternalDocs.vue.js";
4
+ import u from "../../../../features/info-object/Contact.vue.js";
5
+ import s from "../../../../features/info-object/License.vue.js";
6
+ import c from "../../../../features/info-object/TermsOfService.vue.js";
7
+ const L = /* @__PURE__ */ l({
8
+ __name: "InfoLinks",
9
+ props: {
10
+ info: {},
11
+ externalDocs: {}
12
+ },
13
+ setup(p) {
14
+ return (e, v) => (r(), o(n(f), null, {
15
+ default: t(() => [
16
+ a(n(m), { value: e.externalDocs }, null, 8, ["value"]),
17
+ e.info.contact ? (r(), o(n(u), {
18
+ key: 0,
19
+ value: e.info.contact
20
+ }, null, 8, ["value"])) : i("", !0),
21
+ e.info.license ? (r(), o(n(s), {
22
+ key: 1,
23
+ value: e.info.license
24
+ }, null, 8, ["value"])) : i("", !0),
25
+ e.info.termsOfService ? (r(), o(n(c), {
26
+ key: 2,
27
+ value: e.info.termsOfService
28
+ }, null, 8, ["value"])) : i("", !0)
29
+ ]),
30
+ _: 1
31
+ }));
32
+ }
33
+ });
34
+ export {
35
+ L as default
36
+ };
@@ -0,0 +1,4 @@
1
+ import f from "./InfoLinks.vue.js";
2
+ export {
3
+ f as default
4
+ };
@@ -0,0 +1,7 @@
1
+ import type { InfoObject } from '@scalar/workspace-store/schemas/v3.1/strict/openapi-document';
2
+ type __VLS_Props = {
3
+ version: InfoObject['version'];
4
+ };
5
+ 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
+ export default _default;
7
+ //# sourceMappingURL=InfoVersion.vue.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"InfoVersion.vue.d.ts","sourceRoot":"","sources":["../../../../../src/v2/blocks/scalar-info-block/components/InfoVersion.vue"],"names":[],"mappings":"AA2BA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,8DAA8D,CAAA;AAK9F,KAAK,WAAW,GAAG;IACjB,OAAO,EAAE,UAAU,CAAC,SAAS,CAAC,CAAA;CAC/B,CAAC;;AAyDF,wBAMG"}
@@ -0,0 +1,25 @@
1
+ import { defineComponent as n, computed as o, createBlock as i, createCommentVNode as s, openBlock as a, unref as c, withCtx as u, createTextVNode as f, toDisplayString as m } from "vue";
2
+ import d from "../../../../components/Badge/Badge.vue.js";
3
+ const x = /* @__PURE__ */ n({
4
+ __name: "InfoVersion",
5
+ props: {
6
+ version: {}
7
+ },
8
+ setup(t) {
9
+ const r = o(() => {
10
+ if (t.version == null)
11
+ return t.version;
12
+ const e = String(t.version);
13
+ return /^\d/.test(e) ? `v${e}` : e;
14
+ });
15
+ return (e, l) => r.value ? (a(), i(c(d), { key: 0 }, {
16
+ default: u(() => [
17
+ f(m(r.value), 1)
18
+ ]),
19
+ _: 1
20
+ })) : s("", !0);
21
+ }
22
+ });
23
+ export {
24
+ x as default
25
+ };
@@ -0,0 +1,4 @@
1
+ import f from "./InfoVersion.vue.js";
2
+ export {
3
+ f as default
4
+ };
@@ -0,0 +1,16 @@
1
+ type __VLS_Props = {
2
+ row?: boolean;
3
+ };
4
+ declare var __VLS_1: {};
5
+ type __VLS_Slots = {} & {
6
+ default?: (props: typeof __VLS_1) => any;
7
+ };
8
+ 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>;
9
+ declare const _default: __VLS_WithSlots<typeof __VLS_component, __VLS_Slots>;
10
+ export default _default;
11
+ type __VLS_WithSlots<T, S> = T & {
12
+ new (): {
13
+ $slots: S;
14
+ };
15
+ };
16
+ //# sourceMappingURL=IntroductionCard.vue.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"IntroductionCard.vue.d.ts","sourceRoot":"","sources":["../../../../../src/v2/blocks/scalar-info-block/components/IntroductionCard.vue"],"names":[],"mappings":"AAsEA,KAAK,WAAW,GAAG;IACjB,GAAG,CAAC,EAAE,OAAO,CAAA;CACd,CAAC;AA2CF,QAAA,IAAI,OAAO,IAAW,CAAE;AACxB,KAAK,WAAW,GAAG,EAAE,GACnB;IAAE,OAAO,CAAC,EAAE,CAAC,KAAK,EAAE,OAAO,OAAO,KAAK,GAAG,CAAA;CAAE,CAAC;AAmB/C,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"}
@@ -0,0 +1,7 @@
1
+ import o from "./IntroductionCard.vue2.js";
2
+ import "./IntroductionCard.vue3.js";
3
+ import t from "../../../../_virtual/_plugin-vue_export-helper.js";
4
+ const p = /* @__PURE__ */ t(o, [["__scopeId", "data-v-b19be652"]]);
5
+ export {
6
+ p as default
7
+ };
@@ -0,0 +1,17 @@
1
+ import { defineComponent as r, createElementBlock as e, openBlock as t, normalizeClass as n, renderSlot as a } from "vue";
2
+ const i = /* @__PURE__ */ r({
3
+ __name: "IntroductionCard",
4
+ props: {
5
+ row: { type: Boolean }
6
+ },
7
+ setup(c) {
8
+ return (o, d) => (t(), e("div", {
9
+ class: n(["introduction-card", { "introduction-card-row": o.row }])
10
+ }, [
11
+ a(o.$slots, "default", {}, void 0, !0)
12
+ ], 2));
13
+ }
14
+ });
15
+ export {
16
+ i as default
17
+ };
@@ -0,0 +1,4 @@
1
+ const e = "";
2
+ export {
3
+ e as default
4
+ };
@@ -0,0 +1,13 @@
1
+ declare var __VLS_1: {};
2
+ type __VLS_Slots = {} & {
3
+ default?: (props: typeof __VLS_1) => any;
4
+ };
5
+ declare const __VLS_component: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
6
+ declare const _default: __VLS_WithSlots<typeof __VLS_component, __VLS_Slots>;
7
+ export default _default;
8
+ type __VLS_WithSlots<T, S> = T & {
9
+ new (): {
10
+ $slots: S;
11
+ };
12
+ };
13
+ //# sourceMappingURL=IntroductionCardItem.vue.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"IntroductionCardItem.vue.d.ts","sourceRoot":"","sources":["../../../../../src/v2/blocks/scalar-info-block/components/IntroductionCardItem.vue"],"names":[],"mappings":"AA+CA,QAAA,IAAI,OAAO,IAAW,CAAE;AACxB,KAAK,WAAW,GAAG,EAAE,GACnB;IAAE,OAAO,CAAC,EAAE,CAAC,KAAK,EAAE,OAAO,OAAO,KAAK,GAAG,CAAA;CAAE,CAAC;AAkB/C,QAAA,MAAM,eAAe,+QAKnB,CAAC;wBACkB,eAAe,CAAC,OAAO,eAAe,EAAE,WAAW,CAAC;AAAzE,wBAA0E;AAE1E,KAAK,eAAe,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG;IAChC,QAAO;QACN,MAAM,EAAE,CAAC,CAAC;KAEV,CAAA;CACD,CAAC"}
@@ -0,0 +1,13 @@
1
+ import { createElementBlock as e, openBlock as o, renderSlot as r } from "vue";
2
+ import "./IntroductionCardItem.vue2.js";
3
+ import n from "../../../../_virtual/_plugin-vue_export-helper.js";
4
+ const c = {}, d = { class: "introduction-card-item" };
5
+ function s(t, a) {
6
+ return o(), e("div", d, [
7
+ r(t.$slots, "default", {}, void 0, !0)
8
+ ]);
9
+ }
10
+ const m = /* @__PURE__ */ n(c, [["render", s], ["__scopeId", "data-v-225524a7"]]);
11
+ export {
12
+ m as default
13
+ };
@@ -0,0 +1,4 @@
1
+ const e = "";
2
+ export {
3
+ e as default
4
+ };