@scalar/api-reference 1.34.6 → 1.35.1

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 +68 -0
  2. package/dist/browser/standalone.js +30773 -30680
  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 +556 -556
  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 +19 -17
  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,50 @@
1
+ import { defineComponent as p, useId as m, createBlock as V, openBlock as f, unref as l, mergeProps as c, withCtx as s, renderSlot as u, createElementVNode as y } from "vue";
2
+ import { DataTableInput as b } from "@scalar/api-client/components/DataTable";
3
+ const v = ["for"], k = /* @__PURE__ */ p({
4
+ __name: "RequestAuthDataTableInput",
5
+ props: {
6
+ type: {},
7
+ containerClass: {},
8
+ required: { type: Boolean, default: !1 },
9
+ modelValue: {},
10
+ readOnly: { type: Boolean, default: !1 },
11
+ environment: {},
12
+ envVariables: {},
13
+ workspace: {}
14
+ },
15
+ emits: ["update:modelValue", "inputFocus", "inputBlur", "selectVariable"],
16
+ setup(i, { emit: d }) {
17
+ const e = i, a = d, r = m();
18
+ return (o, n) => (f(), V(l(b), c({
19
+ id: l(r),
20
+ canAddCustomEnumValue: !e.readOnly,
21
+ containerClass: e.containerClass
22
+ }, o.$attrs, {
23
+ envVariables: e.envVariables,
24
+ environment: e.environment,
25
+ lineWrapping: "",
26
+ modelValue: e.modelValue,
27
+ readOnly: e.readOnly,
28
+ required: e.required,
29
+ type: e.type,
30
+ workspace: e.workspace,
31
+ onInputBlur: n[0] || (n[0] = (t) => a("inputBlur")),
32
+ onInputFocus: n[1] || (n[1] = (t) => a("inputFocus")),
33
+ onSelectVariable: n[2] || (n[2] = (t) => a("selectVariable", t)),
34
+ "onUpdate:modelValue": n[3] || (n[3] = (t) => a("update:modelValue", t))
35
+ }), {
36
+ default: s(() => [
37
+ y("label", { for: l(r) }, [
38
+ u(o.$slots, "default")
39
+ ], 8, v)
40
+ ]),
41
+ icon: s(() => [
42
+ u(o.$slots, "icon")
43
+ ]),
44
+ _: 3
45
+ }, 16, ["id", "canAddCustomEnumValue", "containerClass", "envVariables", "environment", "modelValue", "readOnly", "required", "type", "workspace"]));
46
+ }
47
+ });
48
+ export {
49
+ k as default
50
+ };
@@ -0,0 +1,4 @@
1
+ import f from "./RequestAuthDataTableInput.vue.js";
2
+ export {
3
+ f as default
4
+ };
@@ -0,0 +1,17 @@
1
+ import { type EnvVariable } from '@scalar/api-client/store';
2
+ import type { Environment } from '@scalar/oas-utils/entities/environment';
3
+ import type { Collection, Server } from '@scalar/oas-utils/entities/spec';
4
+ import type { Workspace } from '@scalar/oas-utils/entities/workspace';
5
+ type __VLS_Props = {
6
+ collection: Collection;
7
+ environment: Environment;
8
+ envVariables: EnvVariable[];
9
+ layout: 'client' | 'reference';
10
+ persistAuth: boolean;
11
+ securitySchemeUids: string[];
12
+ server: Server | undefined;
13
+ workspace: Workspace;
14
+ };
15
+ 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>;
16
+ export default _default;
17
+ //# sourceMappingURL=RequestAuthTab.vue.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"RequestAuthTab.vue.d.ts","sourceRoot":"","sources":["../../../../../src/v2/blocks/scalar-auth-selector-block/components/RequestAuthTab.vue"],"names":[],"mappings":"AAmUA,OAAO,EAAgB,KAAK,WAAW,EAAE,MAAM,0BAA0B,CAAA;AAMzE,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,wCAAwC,CAAA;AACzE,OAAO,KAAK,EACV,UAAU,EAEV,MAAM,EACP,MAAM,iCAAiC,CAAA;AACxC,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,sCAAsC,CAAA;AAcrE,KAAK,WAAW,GAAG;IACjB,UAAU,EAAE,UAAU,CAAA;IACtB,WAAW,EAAE,WAAW,CAAA;IACxB,YAAY,EAAE,WAAW,EAAE,CAAA;IAC3B,MAAM,EAAE,QAAQ,GAAG,WAAW,CAAA;IAC9B,WAAW,EAAE,OAAO,CAAA;IACpB,kBAAkB,EAAE,MAAM,EAAE,CAAA;IAC5B,MAAM,EAAE,MAAM,GAAG,SAAS,CAAA;IAC1B,SAAS,EAAE,SAAS,CAAA;CACrB,CAAC;;AAmjBF,wBAMG"}
@@ -0,0 +1,253 @@
1
+ import { defineComponent as D, computed as F, ref as M, onMounted as P, useTemplateRef as z, createElementBlock as u, openBlock as l, Fragment as p, createElementVNode as x, renderList as $, createBlock as g, createCommentVNode as v, unref as d, withCtx as n, createVNode as i, toDisplayString as I, mergeProps as V, createTextVNode as k, normalizeClass as R, capitalize as S } from "vue";
2
+ import { DataTableRow as f, DataTableCell as N } from "@scalar/api-client/components/DataTable";
3
+ import { useWorkspace as H } from "@scalar/api-client/store";
4
+ import { ScalarMarkdownSummary as Q } from "@scalar/components";
5
+ import { safeLocalStorage as j, CLIENT_LS_KEYS as B } from "@scalar/helpers/object/local-storage";
6
+ import { isDefined as L } from "@scalar/oas-utils/helpers";
7
+ import { emitCustomEvent as O } from "@scalar/workspace-store/events";
8
+ import { updateScheme as q } from "../helpers/update-scheme.js";
9
+ import J from "./OAuth2.vue.js";
10
+ import m from "./RequestAuthDataTableInput.vue.js";
11
+ const Y = { class: "bg-b-1 text-c-2 outline-b-3 top-0 z-1 h-full w-full overflow-hidden px-3 py-1.25 text-ellipsis group-hover/auth:absolute group-hover/auth:h-auto group-hover/auth:border-b *:first:line-clamp-1 *:first:text-ellipsis group-hover/auth:*:first:line-clamp-none" }, W = {
12
+ key: 0,
13
+ class: "flex min-h-8 border-t text-base"
14
+ }, G = { class: "flex h-8 max-w-full gap-2.5 overflow-x-auto px-3" }, X = ["onClick"], Z = { class: "relative z-10" }, de = /* @__PURE__ */ D({
15
+ __name: "RequestAuthTab",
16
+ props: {
17
+ collection: {},
18
+ environment: {},
19
+ envVariables: {},
20
+ layout: {},
21
+ persistAuth: { type: Boolean, default: !1 },
22
+ securitySchemeUids: {},
23
+ server: {},
24
+ workspace: {}
25
+ },
26
+ setup(y) {
27
+ const T = H(), { securitySchemes: U } = T, C = F(
28
+ () => y.securitySchemeUids.map((t) => ({
29
+ scheme: U[t]
30
+ }))
31
+ ), s = M(""), E = (t) => {
32
+ const r = t.description ? `: ${t.description}` : "", e = `${S(t.nameKey)}${r || `: ${t.type}`}`;
33
+ if (t.type === "apiKey")
34
+ return `${S(t.nameKey)}${r || `: ${t.in}`}`;
35
+ if (t.type === "oauth2") {
36
+ const a = Object.values(t.flows ?? {})[0];
37
+ return `${S(t.nameKey)}: ${s.value ? s.value : (a == null ? void 0 : a.type) ?? ""}${r}`;
38
+ }
39
+ return t.type === "http" ? `${S(t.nameKey)}: ${t.scheme}${r}` : `${e}${r}`;
40
+ }, w = (t, r, e) => {
41
+ q(t, r, e, T, _.value, y.persistAuth);
42
+ };
43
+ P(() => {
44
+ if (!y.persistAuth)
45
+ return;
46
+ const t = JSON.parse(
47
+ j().getItem(B.AUTH) ?? "{}"
48
+ ), r = Object.keys(U).reduce(
49
+ (e, a) => {
50
+ const o = U[a];
51
+ return o && (e[o.nameKey] = o.uid), e;
52
+ },
53
+ {}
54
+ );
55
+ Object.entries(t).forEach(([e, a]) => {
56
+ const o = r[e];
57
+ o && Object.entries(a).forEach(([A, K]) => {
58
+ O(_.value, "scalar-edit-security-scheme", {
59
+ uid: o,
60
+ path: A,
61
+ value: K
62
+ });
63
+ });
64
+ });
65
+ try {
66
+ const a = JSON.parse(
67
+ j().getItem(B.SELECTED_SECURITY_SCHEMES) ?? ""
68
+ ).map((o) => Array.isArray(o) ? o.map((b) => r[b]).filter(L) : r[o]).filter(L);
69
+ O(_.value, "scalar-select-security-schemes", {
70
+ uids: a
71
+ });
72
+ } catch {
73
+ }
74
+ });
75
+ const c = {
76
+ environment: y.environment,
77
+ envVariables: y.envVariables,
78
+ workspace: y.workspace
79
+ }, _ = z("wrapperRef");
80
+ return (t, r) => (l(), u(p, null, [
81
+ x("div", {
82
+ ref_key: "wrapperRef",
83
+ ref: _
84
+ }, null, 512),
85
+ (l(!0), u(p, null, $(C.value, ({ scheme: e }) => (l(), u(p, {
86
+ key: e == null ? void 0 : e.uid
87
+ }, [
88
+ C.value.length > 1 && e ? (l(), g(d(f), { key: 0 }, {
89
+ default: n(() => [
90
+ i(d(N), {
91
+ "aria-label": E(e),
92
+ class: "text-c-2 group/auth flex items-center leading-[22px] whitespace-nowrap outline-none hover:whitespace-normal"
93
+ }, {
94
+ default: n(() => [
95
+ x("p", Y, I(E(e)), 1)
96
+ ]),
97
+ _: 2
98
+ }, 1032, ["aria-label"])
99
+ ]),
100
+ _: 2
101
+ }, 1024)) : v("", !0),
102
+ e != null && e.description && C.value.length <= 1 ? (l(), g(d(f), { key: 1 }, {
103
+ default: n(() => [
104
+ i(d(N), {
105
+ "aria-label": e.description,
106
+ class: "max-h-[auto]"
107
+ }, {
108
+ default: n(() => [
109
+ i(d(Q), {
110
+ class: "auth-description bg-b-1 text-c-2 min-w-0 flex-1 px-3 py-1.25",
111
+ value: e.description
112
+ }, null, 8, ["value"])
113
+ ]),
114
+ _: 2
115
+ }, 1032, ["aria-label"])
116
+ ]),
117
+ _: 2
118
+ }, 1024)) : v("", !0),
119
+ (e == null ? void 0 : e.type) === "http" ? (l(), u(p, { key: 2 }, [
120
+ e.scheme === "bearer" ? (l(), g(d(f), { key: 0 }, {
121
+ default: n(() => [
122
+ i(m, V({ ref_for: !0 }, c, {
123
+ containerClass: t.layout === "reference" && "border-t",
124
+ modelValue: e.token,
125
+ placeholder: "Token",
126
+ type: "password",
127
+ "onUpdate:modelValue": (a) => w(e.uid, "token", a)
128
+ }), {
129
+ default: n(() => r[0] || (r[0] = [
130
+ k(" Bearer Token ")
131
+ ])),
132
+ _: 2,
133
+ __: [0]
134
+ }, 1040, ["containerClass", "modelValue", "onUpdate:modelValue"])
135
+ ]),
136
+ _: 2
137
+ }, 1024)) : (e == null ? void 0 : e.scheme) === "basic" ? (l(), u(p, { key: 1 }, [
138
+ i(d(f), null, {
139
+ default: n(() => [
140
+ i(m, V({ ref_for: !0 }, c, {
141
+ class: "text-c-2",
142
+ modelValue: e.username,
143
+ placeholder: "janedoe",
144
+ required: "",
145
+ "onUpdate:modelValue": (a) => w(e.uid, "username", a)
146
+ }), {
147
+ default: n(() => r[1] || (r[1] = [
148
+ k(" Username ")
149
+ ])),
150
+ _: 2,
151
+ __: [1]
152
+ }, 1040, ["modelValue", "onUpdate:modelValue"])
153
+ ]),
154
+ _: 2
155
+ }, 1024),
156
+ i(d(f), null, {
157
+ default: n(() => [
158
+ i(m, V({ ref_for: !0 }, c, {
159
+ modelValue: e.password,
160
+ placeholder: "********",
161
+ type: "password",
162
+ "onUpdate:modelValue": (a) => w(e.uid, "password", a)
163
+ }), {
164
+ default: n(() => r[2] || (r[2] = [
165
+ k(" Password ")
166
+ ])),
167
+ _: 2,
168
+ __: [2]
169
+ }, 1040, ["modelValue", "onUpdate:modelValue"])
170
+ ]),
171
+ _: 2
172
+ }, 1024)
173
+ ], 64)) : v("", !0)
174
+ ], 64)) : (e == null ? void 0 : e.type) === "apiKey" ? (l(), u(p, { key: 3 }, [
175
+ i(d(f), null, {
176
+ default: n(() => [
177
+ i(m, V({ ref_for: !0 }, c, {
178
+ containerClass: t.layout === "reference" && "border-t",
179
+ modelValue: e.name,
180
+ placeholder: "api-key",
181
+ "onUpdate:modelValue": (a) => w(e.uid, "name", a)
182
+ }), {
183
+ default: n(() => r[3] || (r[3] = [
184
+ k(" Name ")
185
+ ])),
186
+ _: 2,
187
+ __: [3]
188
+ }, 1040, ["containerClass", "modelValue", "onUpdate:modelValue"])
189
+ ]),
190
+ _: 2
191
+ }, 1024),
192
+ i(d(f), null, {
193
+ default: n(() => [
194
+ i(m, V({ ref_for: !0 }, c, {
195
+ modelValue: e.value,
196
+ placeholder: "QUxMIFlPVVIgQkFTRSBBUkUgQkVMT05HIFRPIFVT",
197
+ type: "password",
198
+ "onUpdate:modelValue": (a) => w(e.uid, "value", a)
199
+ }), {
200
+ default: n(() => r[4] || (r[4] = [
201
+ k(" Value ")
202
+ ])),
203
+ _: 2,
204
+ __: [4]
205
+ }, 1040, ["modelValue", "onUpdate:modelValue"])
206
+ ]),
207
+ _: 2
208
+ }, 1024)
209
+ ], 64)) : (e == null ? void 0 : e.type) === "oauth2" ? (l(), u(p, { key: 4 }, [
210
+ i(d(f), null, {
211
+ default: n(() => [
212
+ Object.keys(e.flows).length > 1 ? (l(), u("div", W, [
213
+ x("div", G, [
214
+ (l(!0), u(p, null, $(e == null ? void 0 : e.flows, (a, o, b) => (l(), u("button", {
215
+ key: o,
216
+ class: R(["floating-bg text-c-3 relative cursor-pointer border-b-[1px] border-transparent py-1 text-base font-medium", {
217
+ "!text-c-1 !rounded-none border-b-[1px] !border-current": t.layout !== "reference" && (s.value === o || b === 0 && !s.value),
218
+ "!text-c-1 !rounded-none border-b-[1px] !border-current opacity-100": t.layout === "reference" && (s.value === o || b === 0 && !s.value)
219
+ }]),
220
+ type: "button",
221
+ onClick: (A) => s.value = o
222
+ }, [
223
+ x("span", Z, I(o), 1)
224
+ ], 10, X))), 128))
225
+ ])
226
+ ])) : v("", !0)
227
+ ]),
228
+ _: 2
229
+ }, 1024),
230
+ (l(!0), u(p, null, $(e == null ? void 0 : e.flows, (a, o, b) => (l(), u(p, { key: o }, [
231
+ s.value === o || b === 0 && !s.value ? (l(), g(J, V({
232
+ key: 0,
233
+ ref_for: !0
234
+ }, c, {
235
+ collection: t.collection,
236
+ flow: a,
237
+ persistAuth: t.persistAuth,
238
+ scheme: e,
239
+ server: t.server,
240
+ workspace: t.workspace
241
+ }), null, 16, ["collection", "flow", "persistAuth", "scheme", "server", "workspace"])) : v("", !0)
242
+ ], 64))), 128))
243
+ ], 64)) : (e == null ? void 0 : e.type) === "openIdConnect" ? (l(), u("div", {
244
+ key: 5,
245
+ class: R(["text-c-3 bg-b-1 flex min-h-[calc(4rem+1px)] items-center justify-center border-t border-b-0 px-4 text-base", { "rounded-b-lg": t.layout === "reference" }])
246
+ }, " Coming soon ", 2)) : v("", !0)
247
+ ], 64))), 128))
248
+ ], 64));
249
+ }
250
+ });
251
+ export {
252
+ de as default
253
+ };
@@ -0,0 +1,4 @@
1
+ import f from "./RequestAuthTab.vue.js";
2
+ export {
3
+ f as default
4
+ };
@@ -0,0 +1,6 @@
1
+ import type { Collection, SecurityScheme } from '@scalar/oas-utils/entities/spec';
2
+ /**
3
+ * Takes in selected security and filters it with the requirements
4
+ */
5
+ export declare const filterSecurityRequirements: (securityRequirements: Collection["security"], selectedSecuritySchemeUids?: Collection["selectedSecuritySchemeUids"], securitySchemes?: Record<string, SecurityScheme>) => SecurityScheme[];
6
+ //# sourceMappingURL=filter-security-requirements.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"filter-security-requirements.d.ts","sourceRoot":"","sources":["../../../../../src/v2/blocks/scalar-auth-selector-block/helpers/filter-security-requirements.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,cAAc,EAAE,MAAM,iCAAiC,CAAA;AAEjF;;GAEG;AACH,eAAO,MAAM,0BAA0B,GACrC,sBAAsB,UAAU,CAAC,UAAU,CAAC,EAC5C,6BAA4B,UAAU,CAAC,4BAA4B,CAAM,EACzE,kBAAiB,MAAM,CAAC,MAAM,EAAE,cAAc,CAAM,KACnD,cAAc,EA0DhB,CAAA"}
@@ -0,0 +1,8 @@
1
+ import type { SecurityScheme } from '@scalar/oas-utils/entities/spec';
2
+ import type { Path, PathValue } from '@scalar/object-utils/nested';
3
+ import type { WorkspaceStore } from '@scalar/api-client/store';
4
+ /** Shape of the local storage auth object */
5
+ export type Auth<P extends Path<SecurityScheme>> = Record<string, Record<P, NonNullable<PathValue<SecurityScheme, P>>>>;
6
+ /** Update the security scheme with side effects */
7
+ export declare const updateScheme: <U extends SecurityScheme["uid"], P extends Path<SecurityScheme>>(uid: U, path: P, value: NonNullable<PathValue<SecurityScheme, P>>, { securitySchemes }: WorkspaceStore, el?: HTMLElement | null, persistAuth?: boolean) => void;
8
+ //# sourceMappingURL=update-scheme.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"update-scheme.d.ts","sourceRoot":"","sources":["../../../../../src/v2/blocks/scalar-auth-selector-block/helpers/update-scheme.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,iCAAiC,CAAA;AACrE,OAAO,KAAK,EAAE,IAAI,EAAE,SAAS,EAAE,MAAM,6BAA6B,CAAA;AAElE,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,0BAA0B,CAAA;AAG9D,6CAA6C;AAC7C,MAAM,MAAM,IAAI,CAAC,CAAC,SAAS,IAAI,CAAC,cAAc,CAAC,IAAI,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC,EAAE,WAAW,CAAC,SAAS,CAAC,cAAc,EAAE,CAAC,CAAC,CAAC,CAAC,CAAC,CAAA;AAEvH,mDAAmD;AACnD,eAAO,MAAM,YAAY,GAAI,CAAC,SAAS,cAAc,CAAC,KAAK,CAAC,EAAE,CAAC,SAAS,IAAI,CAAC,cAAc,CAAC,EAC1F,KAAK,CAAC,EACN,MAAM,CAAC,EACP,OAAO,WAAW,CAAC,SAAS,CAAC,cAAc,EAAE,CAAC,CAAC,CAAC,EAChD,qBAAqB,cAAc,EACnC,KAAK,WAAW,GAAG,IAAI,EACvB,qBAAmB,SAyBpB,CAAA"}
@@ -0,0 +1,22 @@
1
+ import { safeLocalStorage as c, CLIENT_LS_KEYS as n } from "@scalar/helpers/object/local-storage";
2
+ import { emitCustomEvent as y } from "@scalar/workspace-store/events";
3
+ const l = (r, o, m, { securitySchemes: a }, i, f = !1) => {
4
+ var s;
5
+ if (y(i, "scalar-edit-security-scheme", {
6
+ uid: r,
7
+ path: o,
8
+ value: m
9
+ }), !!f)
10
+ try {
11
+ const e = JSON.parse(c().getItem(n.AUTH) ?? "{}"), t = a[r];
12
+ if (e && (t != null && t.nameKey)) {
13
+ const S = e[s = t.nameKey] || (e[s] = {});
14
+ S[o] = m, c().setItem(n.AUTH, JSON.stringify(e));
15
+ }
16
+ } catch (e) {
17
+ console.error(e);
18
+ }
19
+ };
20
+ export {
21
+ l as updateScheme
22
+ };
@@ -0,0 +1,2 @@
1
+ export { default as AuthSelector } from './components/AuthSelector.vue.js';
2
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/v2/blocks/scalar-auth-selector-block/index.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,OAAO,IAAI,YAAY,EAAE,MAAM,+BAA+B,CAAA"}
@@ -0,0 +1,15 @@
1
+ import type { AvailableClients } from '@scalar/types/snippetz';
2
+ import type { ClientOption, ClientOptionGroup } from '../../../../v2/blocks/scalar-request-example-block/types';
3
+ type __VLS_Props = {
4
+ /** Client options */
5
+ clientOptions: ClientOptionGroup[];
6
+ /** The currently selected Http Client */
7
+ xSelectedClient?: AvailableClients[number];
8
+ /** List of featured clients */
9
+ featuredClients: ClientOption[];
10
+ /** The id of the tab panel that contains for the non featured clients */
11
+ morePanel?: string;
12
+ };
13
+ 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>;
14
+ export default _default;
15
+ //# sourceMappingURL=ClientDropdown.vue.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ClientDropdown.vue.d.ts","sourceRoot":"","sources":["../../../../../src/v2/blocks/scalar-client-selector-block/components/ClientDropdown.vue"],"names":[],"mappings":"AA0PA,OAAO,KAAK,EAAE,gBAAgB,EAAY,MAAM,wBAAwB,CAAA;AAMxE,OAAO,KAAK,EACV,YAAY,EACZ,iBAAiB,EAClB,MAAM,gDAAgD,CAAA;AAEvD,KAAK,WAAW,GAAG;IACjB,qBAAqB;IACrB,aAAa,EAAE,iBAAiB,EAAE,CAAA;IAClC,yCAAyC;IACzC,eAAe,CAAC,EAAE,gBAAgB,CAAC,MAAM,CAAC,CAAA;IAC1C,+BAA+B;IAC/B,eAAe,EAAE,YAAY,EAAE,CAAA;IAC/B,yEAAyE;IACzE,SAAS,CAAC,EAAE,MAAM,CAAA;CACnB,CAAC;;AA+OF,wBAMG"}
@@ -0,0 +1,7 @@
1
+ import o from "./ClientDropdown.vue2.js";
2
+ import "./ClientDropdown.vue3.js";
3
+ import t from "../../../../_virtual/_plugin-vue_export-helper.js";
4
+ const m = /* @__PURE__ */ t(o, [["__scopeId", "data-v-d7b97a77"]]);
5
+ export {
6
+ m as default
7
+ };
@@ -1,14 +1,14 @@
1
- import { defineComponent as y, ref as _, computed as k, createElementBlock as s, openBlock as i, createVNode as m, Fragment as h, renderList as w, createBlock as p, unref as n, normalizeClass as a, withCtx as u, createElementVNode as r, toDisplayString as V, createCommentVNode as f } from "vue";
2
- import { Tab as B } from "@headlessui/vue";
3
- import { ScalarIcon as b, ScalarCombobox as S } from "@scalar/components";
4
- import { freezeElement as z } from "@scalar/helpers/dom/freeze-element";
5
- import { findClient as E } from "../../../v2/blocks/scalar-request-example-block/helpers/find-client.js";
6
- import { emitCustomEvent as K } from "../../../v2/events/definitions.js";
7
- import { isFeaturedClient as g } from "./featured-clients.js";
8
- const M = { class: "client-libraries-text" }, O = {
1
+ import { defineComponent as y, ref as _, computed as S, createElementBlock as o, openBlock as i, createVNode as m, Fragment as k, renderList as w, createBlock as p, unref as n, normalizeClass as a, withCtx as u, createElementVNode as r, toDisplayString as h, createCommentVNode as f } from "vue";
2
+ import { Tab as x } from "@headlessui/vue";
3
+ import { ScalarIcon as b, ScalarCombobox as V } from "@scalar/components";
4
+ import { freezeElement as B } from "@scalar/helpers/dom/freeze-element";
5
+ import { emitCustomEvent as z } from "@scalar/workspace-store/events";
6
+ import { isFeaturedClient as g } from "../helpers/featured-clients.js";
7
+ import { findClient as E } from "../../scalar-request-example-block/helpers/find-client.js";
8
+ const K = { class: "client-libraries-text" }, M = {
9
9
  "aria-hidden": "true",
10
10
  class: "client-libraries-icon__more"
11
- }, T = {
11
+ }, O = {
12
12
  key: 1,
13
13
  class: "client-libraries-icon",
14
14
  height: "50",
@@ -16,44 +16,44 @@ const M = { class: "client-libraries-text" }, O = {
16
16
  viewBox: "0 0 50 50",
17
17
  width: "50",
18
18
  xmlns: "http://www.w3.org/2000/svg"
19
- }, N = {
19
+ }, T = {
20
20
  key: 0,
21
21
  class: "client-libraries-text client-libraries-text-more"
22
- }, P = /* @__PURE__ */ y({
23
- __name: "ClientSelector",
22
+ }, R = /* @__PURE__ */ y({
23
+ __name: "ClientDropdown",
24
24
  props: {
25
25
  clientOptions: {},
26
- selectedClient: {},
26
+ xSelectedClient: {},
27
27
  featuredClients: {},
28
28
  morePanel: {}
29
29
  },
30
30
  setup(v) {
31
- const o = _(), d = (e) => `programming-language-${e === "js" ? "javascript" : e}`, C = (e) => {
32
- if (!o.value)
31
+ const s = _(), d = (e) => `programming-language-${e === "js" ? "javascript" : e}`, C = (e) => {
32
+ if (!s.value)
33
33
  return;
34
- const t = z(o.value);
34
+ const t = B(s.value);
35
35
  setTimeout(() => {
36
36
  t();
37
- }, 300), K(
38
- o.value,
37
+ }, 300), z(
38
+ s.value,
39
39
  "scalar-update-selected-client",
40
40
  e.id
41
41
  );
42
- }, c = k(
42
+ }, c = S(
43
43
  () => {
44
44
  var e;
45
- return (e = v.selectedClient) == null ? void 0 : e.split("/")[0];
45
+ return (e = v.xSelectedClient) == null ? void 0 : e.split("/")[0];
46
46
  }
47
47
  );
48
- return (e, t) => (i(), s("div", {
48
+ return (e, t) => (i(), o("div", {
49
49
  ref_key: "containerRef",
50
- ref: o,
50
+ ref: s,
51
51
  class: "client-libraries-content"
52
52
  }, [
53
- (i(!0), s(h, null, w(e.featuredClients, (l) => (i(), p(n(B), {
53
+ (i(!0), o(k, null, w(e.featuredClients, (l) => (i(), p(n(x), {
54
54
  key: l.clientKey,
55
55
  class: a(["client-libraries rendered-code-sdks", {
56
- "client-libraries__active": l.id === e.selectedClient
56
+ "client-libraries__active": l.id === e.xSelectedClient
57
57
  }])
58
58
  }, {
59
59
  default: u(() => [
@@ -65,13 +65,13 @@ const M = { class: "client-libraries-text" }, O = {
65
65
  icon: d(l.targetKey)
66
66
  }, null, 8, ["icon"])
67
67
  ], 2),
68
- r("span", M, V(l.targetTitle), 1)
68
+ r("span", K, h(l.targetTitle), 1)
69
69
  ]),
70
70
  _: 2
71
71
  }, 1032, ["class"]))), 128)),
72
- m(n(S), {
72
+ m(n(V), {
73
73
  options: e.clientOptions,
74
- modelValue: n(E)(e.clientOptions, e.selectedClient),
74
+ modelValue: n(E)(e.clientOptions, e.xSelectedClient),
75
75
  "onUpdate:modelValue": t[0] || (t[0] = (l) => C(l)),
76
76
  placement: "bottom-end",
77
77
  teleport: ""
@@ -79,11 +79,11 @@ const M = { class: "client-libraries-text" }, O = {
79
79
  default: u(() => [
80
80
  r("button", {
81
81
  class: a(["client-libraries client-libraries__select", {
82
- "client-libraries__active": e.selectedClient && !n(g)(e.selectedClient)
82
+ "client-libraries__active": e.xSelectedClient && !n(g)(e.xSelectedClient)
83
83
  }])
84
84
  }, [
85
- r("div", O, [
86
- e.selectedClient && !n(g)(e.selectedClient) ? (i(), s("div", {
85
+ r("div", M, [
86
+ e.xSelectedClient && !n(g)(e.xSelectedClient) ? (i(), o("div", {
87
87
  key: 0,
88
88
  class: a(`client-libraries-icon__${c.value}`)
89
89
  }, [
@@ -92,7 +92,7 @@ const M = { class: "client-libraries-text" }, O = {
92
92
  class: "client-libraries-icon",
93
93
  icon: d(c.value)
94
94
  }, null, 8, ["icon"])) : f("", !0)
95
- ], 2)) : (i(), s("svg", T, t[1] || (t[1] = [
95
+ ], 2)) : (i(), o("svg", O, t[1] || (t[1] = [
96
96
  r("g", {
97
97
  fill: "currentColor",
98
98
  "fill-rule": "nonzero"
@@ -101,7 +101,7 @@ const M = { class: "client-libraries-text" }, O = {
101
101
  ], -1)
102
102
  ])))
103
103
  ]),
104
- e.clientOptions.length ? (i(), s("span", N, " More ")) : f("", !0),
104
+ e.clientOptions.length ? (i(), o("span", T, " More ")) : f("", !0),
105
105
  t[2] || (t[2] = r("span", { class: "sr-only" }, "Select from all clients", -1))
106
106
  ], 2)
107
107
  ]),
@@ -111,5 +111,5 @@ const M = { class: "client-libraries-text" }, O = {
111
111
  }
112
112
  });
113
113
  export {
114
- P as default
114
+ R as default
115
115
  };
@@ -0,0 +1,16 @@
1
+ import type { AvailableClients } from '@scalar/snippetz';
2
+ import type { XScalarSdkInstallation } from '@scalar/workspace-store/schemas/extensions/document/x-scalar-sdk-installation';
3
+ import type { ClientOptionGroup } from '../../../../v2/blocks/scalar-request-example-block/types';
4
+ type __VLS_Props = {
5
+ /** Selected SDK installation instructions */
6
+ xScalarSdkInstallation?: XScalarSdkInstallation['x-scalar-sdk-installation'];
7
+ /** Computed list of all available Http Client options */
8
+ clientOptions: ClientOptionGroup[];
9
+ /** The currently selected Http Client */
10
+ xSelectedClient?: AvailableClients[number];
11
+ };
12
+ declare const _default: import("vue").DefineComponent<__VLS_Props, {
13
+ selectedClientOption: import("vue").ComputedRef<import("../../../../v2/blocks/scalar-request-example-block/types").ClientOption>;
14
+ }, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
15
+ export default _default;
16
+ //# sourceMappingURL=ClientSelector.vue.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ClientSelector.vue.d.ts","sourceRoot":"","sources":["../../../../../src/v2/blocks/scalar-client-selector-block/components/ClientSelector.vue"],"names":[],"mappings":"AA0MA,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,kBAAkB,CAAA;AAExD,OAAO,KAAK,EAAE,sBAAsB,EAAE,MAAM,+EAA+E,CAAA;AAQ3H,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,gDAAgD,CAAA;AAIvF,KAAK,WAAW,GAAG;IACjB,6CAA6C;IAC7C,sBAAsB,CAAC,EAAE,sBAAsB,CAAC,2BAA2B,CAAC,CAAA;IAC5E,yDAAyD;IACzD,aAAa,EAAE,iBAAiB,EAAE,CAAA;IAClC,yCAAyC;IACzC,eAAe,CAAC,EAAE,gBAAgB,CAAC,MAAM,CAAC,CAAA;CAC3C,CAAC;;;;AAuRF,wBAOG"}
@@ -0,0 +1,7 @@
1
+ import o from "./ClientSelector.vue2.js";
2
+ import "./ClientSelector.vue3.js";
3
+ import t from "../../../../_virtual/_plugin-vue_export-helper.js";
4
+ const f = /* @__PURE__ */ t(o, [["__scopeId", "data-v-ce2bcf3d"]]);
5
+ export {
6
+ f as default
7
+ };