@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,72 @@
1
+ import { defineComponent as x, useId as g, computed as k, watch as y, nextTick as V, createElementBlock as h, openBlock as n, Fragment as C, createElementVNode as m, createVNode as R, createBlock as f, createCommentVNode as p, normalizeClass as _, unref as o } from "vue";
2
+ import { ServerVariablesForm as B } from "@scalar/api-client/components/Server";
3
+ import { ScalarMarkdown as E } from "@scalar/components";
4
+ import { emitCustomEvent as b } from "@scalar/workspace-store/events";
5
+ import { templateRef as N } from "@vueuse/core";
6
+ import F from "./Selector.vue.js";
7
+ const U = ["id"], w = {}, q = /* @__PURE__ */ x({
8
+ ...w,
9
+ __name: "ServerSelector",
10
+ props: {
11
+ xSelectedServer: {},
12
+ servers: {}
13
+ },
14
+ setup(t) {
15
+ const s = g(), d = (e) => {
16
+ b(a.value, "scalar-update-selected-server", {
17
+ value: e
18
+ });
19
+ }, S = (e, l) => {
20
+ a.value && b(
21
+ a.value,
22
+ "scalar-update-selected-server-variables",
23
+ { key: e, value: l }
24
+ );
25
+ }, r = k(() => t.servers.find((e) => e.url === t.xSelectedServer));
26
+ y(
27
+ () => t.servers,
28
+ (e) => {
29
+ e.length && (t.xSelectedServer || V(() => {
30
+ d(e[0].url);
31
+ }));
32
+ },
33
+ { immediate: !0 }
34
+ );
35
+ const a = N("containerRef");
36
+ return (e, l) => {
37
+ var u, i, c, v;
38
+ return n(), h(C, null, [
39
+ l[0] || (l[0] = m("label", { class: "bg-b-2 flex h-8 items-center rounded-t-lg border border-b-0 px-3 py-2.5 font-medium" }, " Server ", -1)),
40
+ m("div", {
41
+ id: o(s),
42
+ ref_key: "containerRef",
43
+ ref: a,
44
+ class: _(["border", {
45
+ "rounded-b-lg": !((u = r.value) != null && u.description) && !((i = r.value) != null && i.variables)
46
+ }])
47
+ }, [
48
+ e.servers.length ? (n(), f(F, {
49
+ key: 0,
50
+ servers: e.servers,
51
+ target: o(s),
52
+ xSelectedServer: e.xSelectedServer,
53
+ "onUpdate:modelValue": d
54
+ }, null, 8, ["servers", "target", "xSelectedServer"])) : p("", !0)
55
+ ], 10, U),
56
+ R(o(B), {
57
+ layout: "reference",
58
+ variables: (c = r.value) == null ? void 0 : c.variables,
59
+ "onUpdate:variable": S
60
+ }, null, 8, ["variables"]),
61
+ (v = r.value) != null && v.description ? (n(), f(o(E), {
62
+ key: 0,
63
+ class: "text-c-3 rounded-b-lg border border-t-0 px-3 py-1.5",
64
+ value: r.value.description
65
+ }, null, 8, ["value"])) : p("", !0)
66
+ ], 64);
67
+ };
68
+ }
69
+ });
70
+ export {
71
+ q as default
72
+ };
@@ -0,0 +1,4 @@
1
+ import f from "./ServerSelector.vue.js";
2
+ export {
3
+ f as default
4
+ };
@@ -0,0 +1,2 @@
1
+ export { default as ServerSelector } from './components/ServerSelector.vue.js';
2
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/v2/blocks/scalar-server-selector-block/index.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,OAAO,IAAI,cAAc,EAAE,MAAM,iCAAiC,CAAA"}
@@ -1 +1 @@
1
- {"version":3,"file":"get-document-name.d.ts","sourceRoot":"","sources":["../../../src/v2/helpers/get-document-name.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,EAAE,MAAM,gCAAgC,CAAA;AAEvE,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,8DAA8D,CAAA;AAEnG;;;;;;;;GAQG;AACH,eAAO,MAAM,eAAe,6BACD,OAAO,CAAC,MAAM,CAAC,GAAG,OAAO,CAAC,SAAS,CAAC,cACjD,MAAM,CAAC,MAAM,EAAE,eAAe,CAAC,KAC1C,MA2BF,CAAA"}
1
+ {"version":3,"file":"get-document-name.d.ts","sourceRoot":"","sources":["../../../src/v2/helpers/get-document-name.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,EAAE,MAAM,gCAAgC,CAAA;AACvE,OAAO,KAAK,EAAE,eAAe,EAAc,MAAM,8DAA8D,CAAA;AAE/G;;;;;;;;GAQG;AACH,eAAO,MAAM,eAAe,GAC1B,0BAAyB,OAAO,CAAC,MAAM,CAAC,GAAG,OAAO,CAAC,SAAS,CAAM,EAClE,YAAY,MAAM,CAAC,MAAM,EAAE,eAAe,CAAC,KAC1C,MA2BF,CAAA"}
@@ -51,8 +51,8 @@ export declare const mapConfiguration: (config: Partial<ApiReferenceConfiguratio
51
51
  generateOperationSlug: ((args_0: {
52
52
  path: string;
53
53
  method: string;
54
- operationId?: string | undefined;
55
54
  summary?: string | undefined;
55
+ operationId?: string | undefined;
56
56
  }, ...args: unknown[]) => string) | undefined;
57
57
  generateTagSlug: ((args_0: {
58
58
  name?: string | undefined;
@@ -1 +1 @@
1
- {"version":3,"file":"map-configuration.d.ts","sourceRoot":"","sources":["../../../src/v2/helpers/map-configuration.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,yBAAyB,EAAE,MAAM,eAAe,CAAA;AAG9D;;;;;;;GAOG;AACH,eAAO,MAAM,gBAAgB,WAAY,OAAO,CAAC,yBAAyB,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;gBAiD85zC,CAAC;;;gBAAyH,CAAC;;;;;uBAA0S,CAAC;mBAAqC,CAAC;;;gBAA1N,CAAC;;;;kBAA4W,CAAC;;;CADxk1C,CAAA"}
1
+ {"version":3,"file":"map-configuration.d.ts","sourceRoot":"","sources":["../../../src/v2/helpers/map-configuration.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,yBAAyB,EAAE,MAAM,eAAe,CAAA;AAG9D;;;;;;;GAOG;AACH,eAAO,MAAM,gBAAgB,GAAI,QAAQ,OAAO,CAAC,yBAAyB,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;gBAiDqh3C,CAAC;;;gBAAyH,CAAC;;;;;mBAAsS,CAAC;uBAAyC,CAAC;;;gBAA1N,CAAC;;;;kBAA4W,CAAC;;;CAD/r4C,CAAA"}
@@ -1 +1 @@
1
- {"version":3,"file":"normalize-content.d.ts","sourceRoot":"","sources":["../../../src/v2/helpers/normalize-content.ts"],"names":[],"mappings":"AAEA,wEAAwE;AACxE,eAAO,MAAM,gBAAgB,YAClB,MAAM,GAAG,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,CAAC,MAAM,MAAM,GAAG,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC,GAAG,SAAS,GAAG,IAAI,KACtG,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,SAc5B,CAAA"}
1
+ {"version":3,"file":"normalize-content.d.ts","sourceRoot":"","sources":["../../../src/v2/helpers/normalize-content.ts"],"names":[],"mappings":"AAEA,wEAAwE;AACxE,eAAO,MAAM,gBAAgB,GAC3B,SAAS,MAAM,GAAG,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,CAAC,MAAM,MAAM,GAAG,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC,GAAG,SAAS,GAAG,IAAI,KACtG,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,SAc5B,CAAA"}
@@ -0,0 +1,14 @@
1
+ import type { WorkspaceStore as Legacy } from '@scalar/api-client/store';
2
+ import type { WorkspaceStore } from '@scalar/workspace-store/client';
3
+ import type { Ref } from 'vue';
4
+ import type { createActiveEntitiesStore } from '@scalar/api-client/store';
5
+ /**
6
+ * Keep the old store in sync with the new server selector block.
7
+ *
8
+ * This is a temporary solution to maintain consistency between the legacy
9
+ * api-client store and the new workspace store during the migration period.
10
+ *
11
+ * @todo Remove this hook when api-client is fully migrated to the new store
12
+ */
13
+ export declare const useLegacyStoreEvents: (store: WorkspaceStore, legacyStore: Legacy, activeEntities: ReturnType<typeof createActiveEntitiesStore>, root: Ref<HTMLElement | null>) => void;
14
+ //# sourceMappingURL=use-legacy-store-events.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"use-legacy-store-events.d.ts","sourceRoot":"","sources":["../../../src/v2/hooks/use-legacy-store-events.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,IAAI,MAAM,EAAE,MAAM,0BAA0B,CAAA;AACxE,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,gCAAgC,CAAA;AAEpE,OAAO,KAAK,EAAE,GAAG,EAAE,MAAM,KAAK,CAAA;AAC9B,OAAO,KAAK,EAAE,yBAAyB,EAAE,MAAM,0BAA0B,CAAA;AAEzE;;;;;;;GAOG;AACH,eAAO,MAAM,oBAAoB,GAC/B,OAAO,cAAc,EACrB,aAAa,MAAM,EACnB,gBAAgB,UAAU,CAAC,OAAO,yBAAyB,CAAC,EAC5D,MAAM,GAAG,CAAC,WAAW,GAAG,IAAI,CAAC,SA6H9B,CAAA"}
@@ -0,0 +1,65 @@
1
+ import { onCustomEvent as d } from "@scalar/workspace-store/events";
2
+ const O = (b, m, S, a) => {
3
+ const { servers: n, serverMutators: u, requestMutators: h, collectionMutators: v, securitySchemeMutators: o } = m, { activeCollection: i, activeServer: f } = S;
4
+ d(a, "scalar-replace-servers", ({ detail: { servers: r, options: e } }) => {
5
+ if ((e == null ? void 0 : e.disableOldStoreUpdate) === !0)
6
+ return;
7
+ const t = i.value;
8
+ if (!t)
9
+ return console.warn("No active collection found");
10
+ t.servers.forEach((l) => {
11
+ u.delete(l, t.uid);
12
+ }), r.forEach((l) => {
13
+ const s = Object.values(n).find((U) => U.url === l.url);
14
+ s && u.add(s, t.uid);
15
+ });
16
+ const c = Object.values(n).find((l) => {
17
+ var s;
18
+ return l.url === ((s = r.at(-1)) == null ? void 0 : s.url);
19
+ });
20
+ v.edit(t.uid, "selectedServerUid", c == null ? void 0 : c.uid);
21
+ }), d(a, "scalar-update-selected-server", ({ detail: { value: r, options: e } }) => {
22
+ if ((e == null ? void 0 : e.disableOldStoreUpdate) === !0)
23
+ return;
24
+ const t = i.value;
25
+ if (!t)
26
+ return;
27
+ const c = Object.values(n).find((l) => l.url === r);
28
+ c && v.edit(t.uid, "selectedServerUid", c.uid);
29
+ }), d(a, "store-update-selected-server-properties", ({ detail: { key: r, value: e, options: t } }) => {
30
+ if (t != null && t.disableOldStoreUpdate)
31
+ return;
32
+ const c = f.value;
33
+ c && u.edit(c.uid, r, e);
34
+ }), d(a, "scalar-update-selected-server-variables", ({ detail: { key: r, value: e, options: t } }) => {
35
+ var s;
36
+ if ((t == null ? void 0 : t.disableOldStoreUpdate) === !0)
37
+ return;
38
+ const c = f.value;
39
+ if (!c || c.url !== ((s = b.workspace.activeDocument) == null ? void 0 : s["x-scalar-active-server"]))
40
+ return;
41
+ const l = c.variables || {};
42
+ l[r] = { ...l[r], default: e }, u.edit(c.uid, "variables", l);
43
+ }), d(a, "scalar-select-security-schemes", ({ detail: { uids: r } }) => {
44
+ const e = i.value;
45
+ if (!e)
46
+ return console.warn("No active collection found");
47
+ v.edit(e.uid, "selectedSecuritySchemeUids", r);
48
+ }), d(a, "scalar-select-operation-security-schemes", ({ detail: { operationUid: r, uids: e } }) => {
49
+ h.edit(r, "selectedSecuritySchemeUids", e);
50
+ }), d(a, "scalar-edit-security-scheme", ({ detail: { uid: r, path: e, value: t } }) => {
51
+ o.edit(r, e, t);
52
+ }), d(a, "scalar-add-auth-option", ({ detail: { payload: r } }) => {
53
+ const e = i.value;
54
+ if (!e)
55
+ return console.warn("No active collection found");
56
+ o.add(r, e.uid);
57
+ }), d(a, "scalar-delete-security-scheme", ({ detail: { uid: r } }) => {
58
+ if (!i.value)
59
+ return console.warn("No active collection found");
60
+ o.delete(r);
61
+ });
62
+ };
63
+ export {
64
+ O as useLegacyStoreEvents
65
+ };
@@ -0,0 +1,4 @@
1
+ import { type WorkspaceStore } from '@scalar/workspace-store/client';
2
+ import type { Ref } from 'vue';
3
+ export declare const useWorkspaceStoreEvents: (store: WorkspaceStore, root: Ref<HTMLElement | null>) => void;
4
+ //# sourceMappingURL=use-workspace-store-events.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"use-workspace-store-events.d.ts","sourceRoot":"","sources":["../../../src/v2/hooks/use-workspace-store-events.ts"],"names":[],"mappings":"AACA,OAAO,EAA0B,KAAK,cAAc,EAAE,MAAM,gCAAgC,CAAA;AAE5F,OAAO,KAAK,EAAE,GAAG,EAAE,MAAM,KAAK,CAAA;AAE9B,eAAO,MAAM,uBAAuB,GAAI,OAAO,cAAc,EAAE,MAAM,GAAG,CAAC,WAAW,GAAG,IAAI,CAAC,SAsG3F,CAAA"}
@@ -0,0 +1,43 @@
1
+ import { safeLocalStorage as u, REFERENCE_LS_KEYS as n } from "@scalar/helpers/object/local-storage";
2
+ import { generateClientMutators as m } from "@scalar/workspace-store/client";
3
+ import { onCustomEvent as s } from "@scalar/workspace-store/events";
4
+ const k = (r, t) => {
5
+ const v = m(r);
6
+ s(t, "scalar-update-dark-mode", (e) => {
7
+ r.update("x-scalar-dark-mode", e.detail.value);
8
+ }), s(t, "scalar-update-active-document", (e) => {
9
+ r.update("x-scalar-active-document", e.detail.value);
10
+ }), s(t, "scalar-update-selected-client", (e) => {
11
+ r.update("x-scalar-default-client", e.detail), u().setItem(n.SELECTED_CLIENT, e.detail);
12
+ }), s(t, "scalar-replace-servers", (e) => {
13
+ var c;
14
+ const a = r.workspace.activeDocument;
15
+ a && (a.servers = e.detail.servers, a["x-scalar-active-server"] = (c = e.detail.servers.at(-1)) == null ? void 0 : c.url);
16
+ }), s(t, "scalar-update-selected-server", (e) => {
17
+ const a = r.workspace.activeDocument;
18
+ a && (a["x-scalar-active-server"] = e.detail.value);
19
+ }), s(t, "store-update-selected-server-properties", (e) => {
20
+ var l;
21
+ const a = r.workspace.activeDocument;
22
+ if (!a)
23
+ return;
24
+ const c = (l = a.servers) == null ? void 0 : l.find((i) => i.url === a["x-scalar-active-server"]);
25
+ c && (c[e.detail.key] = e.detail.value);
26
+ }), s(t, "scalar-update-selected-server-variables", (e) => {
27
+ var l, i;
28
+ const a = r.workspace.activeDocument;
29
+ if (!a)
30
+ return;
31
+ const c = (l = a.servers) == null ? void 0 : l.find((d) => d.url === a["x-scalar-active-server"]);
32
+ c && (i = c.variables) != null && i[e.detail.key] && (c.variables[e.detail.key].default = e.detail.value);
33
+ }), s(t, "scalar-add-server", (e) => {
34
+ v.active().serverMutators.addServer(e.detail.server);
35
+ const a = r.workspace.activeDocument;
36
+ a && (a["x-scalar-active-server"] = e.detail.server.url);
37
+ }), s(t, "scalar-delete-server", (e) => {
38
+ v.active().serverMutators.deleteServer(e.detail.url);
39
+ });
40
+ };
41
+ export {
42
+ k as useWorkspaceStoreEvents
43
+ };
package/package.json CHANGED
@@ -20,7 +20,7 @@
20
20
  "vue",
21
21
  "vue3"
22
22
  ],
23
- "version": "1.34.6",
23
+ "version": "1.35.1",
24
24
  "engines": {
25
25
  "node": ">=20"
26
26
  },
@@ -50,30 +50,32 @@
50
50
  "flatted": "^3.3.3",
51
51
  "fuse.js": "^7.1.0",
52
52
  "github-slugger": "^2.0.0",
53
+ "js-base64": "^3.7.8",
53
54
  "microdiff": "^1.5.0",
54
55
  "nanoid": "5.1.5",
56
+ "type-fest": "^4.41.0",
55
57
  "vue": "^3.5.17",
56
58
  "zod": "3.24.1",
57
- "@scalar/api-client": "2.5.26",
58
59
  "@scalar/code-highlight": "0.1.9",
59
- "@scalar/components": "0.14.27",
60
- "@scalar/helpers": "0.0.8",
60
+ "@scalar/api-client": "2.5.28",
61
+ "@scalar/components": "0.14.29",
62
+ "@scalar/helpers": "0.0.9",
63
+ "@scalar/json-magic": "0.4.0",
61
64
  "@scalar/icons": "0.4.7",
62
- "@scalar/json-magic": "0.3.1",
63
- "@scalar/oas-utils": "0.4.22",
64
- "@scalar/object-utils": "1.2.4",
65
+ "@scalar/oas-utils": "0.4.24",
66
+ "@scalar/object-utils": "1.2.5",
65
67
  "@scalar/openapi-types": "0.3.7",
66
- "@scalar/openapi-parser": "0.20.1",
67
- "@scalar/types": "0.2.13",
68
+ "@scalar/themes": "0.13.16",
69
+ "@scalar/snippetz": "0.4.9",
70
+ "@scalar/types": "0.2.15",
71
+ "@scalar/openapi-parser": "0.20.2",
68
72
  "@scalar/use-toasts": "0.8.0",
69
- "@scalar/themes": "0.13.14",
70
- "@scalar/snippetz": "0.4.7",
71
73
  "@scalar/use-hooks": "0.2.4",
72
- "@scalar/workspace-store": "0.14.2"
74
+ "@scalar/workspace-store": "0.15.1"
73
75
  },
74
76
  "devDependencies": {
75
77
  "@hono/node-server": "^1.11.0",
76
- "@playwright/test": "1.54.0",
78
+ "@playwright/test": "1.55.0",
77
79
  "@tailwindcss/vite": "^4.1.7",
78
80
  "@types/react": "^19.1.8",
79
81
  "@types/react-dom": "^19.1.6",
@@ -90,9 +92,9 @@
90
92
  "vite-plugin-css-injected-by-js": "^3.4.0",
91
93
  "vitest": "^3.2.4",
92
94
  "@scalar/build-tooling": "0.2.6",
93
- "@scalar/core": "0.3.14",
94
- "@scalar/galaxy": "0.5.7",
95
- "@scalar/react-renderer": "0.2.1"
95
+ "@scalar/core": "0.3.16",
96
+ "@scalar/react-renderer": "0.2.1",
97
+ "@scalar/galaxy": "0.5.8"
96
98
  },
97
99
  "scripts": {
98
100
  "build": "pnpm build:default && pnpm build:standalone && pnpm types:build && tsc-alias -p tsconfig.build.json",
@@ -109,7 +111,7 @@
109
111
  "preview": "vite preview",
110
112
  "test": "vitest",
111
113
  "test:e2e": "playwright test",
112
- "test:e2e:playwright": "docker-compose -f test-snapshots/compose.yml up",
114
+ "test:e2e:playwright": "docker run --network=host -e PORT=5001 -p 5001:5001 scalarapi/playwright:1.55.0",
113
115
  "test:e2e:report": "playwright show-report",
114
116
  "test:e2e:snapshots": "PW_TEST_CONNECT_WS_ENDPOINT=ws://127.0.0.1:5001/ playwright test -c playwright.snapshots.config.ts",
115
117
  "test:e2e:snapshots:ci": "playwright test -c playwright.snapshots.config.ts",
@@ -1,7 +0,0 @@
1
- import o from "./ClientLibraries.vue2.js";
2
- import "./ClientLibraries.vue3.js";
3
- import r from "../../../_virtual/_plugin-vue_export-helper.js";
4
- const e = /* @__PURE__ */ r(o, [["__scopeId", "data-v-8021c330"]]);
5
- export {
6
- e as default
7
- };
@@ -1,122 +0,0 @@
1
- import { defineComponent as O, useId as h, computed as p, useTemplateRef as w, createElementBlock as a, createCommentVNode as C, openBlock as i, createVNode as r, unref as t, withCtx as m, createElementVNode as I, Fragment as g, normalizeClass as E, renderList as N, createBlock as P, createTextVNode as _, toDisplayString as k } from "vue";
2
- import { TabGroup as B, TabList as F, TabPanels as V, TabPanel as A } from "@headlessui/vue";
3
- import { ScalarMarkdown as S, ScalarCodeBlock as D } from "@scalar/components";
4
- import { DEFAULT_CLIENT as M } from "../../../v2/blocks/scalar-request-example-block/helpers/find-client.js";
5
- import { emitCustomEvent as R } from "../../../v2/events/definitions.js";
6
- import z from "./ClientSelector.vue.js";
7
- import { getFeaturedClients as G, isFeaturedClient as K } from "./featured-clients.js";
8
- const U = {
9
- key: 0,
10
- ref: "wrapper"
11
- }, j = ["id"], q = {
12
- key: 1,
13
- class: "selected-client card-footer border-t-0 p-0",
14
- role: "tabpanel",
15
- tabindex: "1"
16
- }, H = ["id"], ee = /* @__PURE__ */ O({
17
- __name: "ClientLibraries",
18
- props: {
19
- document: {},
20
- clientOptions: {},
21
- selectedClient: { default: () => M }
22
- },
23
- setup(o) {
24
- const v = h(), b = h(), x = p(
25
- () => o.clientOptions.flatMap(
26
- (e) => e.options.find((n) => n.id === o.selectedClient) ?? []
27
- )[0]
28
- ), d = p(() => G(o.clientOptions)), T = p(
29
- () => d.value.findIndex(
30
- (e) => o.selectedClient === e.id
31
- )
32
- ), y = w("wrapper"), L = (e) => {
33
- const n = d.value[e];
34
- !n || !y.value || R(y.value, "scalar-update-selected-client", n.id);
35
- }, l = p(() => {
36
- const e = o.document.info["x-scalar-sdk-installation"];
37
- if (!Array.isArray(e) || !(e != null && e.length))
38
- return;
39
- const n = e.find((u) => {
40
- var s, c;
41
- const f = (c = (s = o.selectedClient) == null ? void 0 : s.split("/")[0]) == null ? void 0 : c.toLowerCase();
42
- return u.lang.toLowerCase() === f;
43
- });
44
- if (n)
45
- return n;
46
- });
47
- return (e, n) => e.clientOptions.length ? (i(), a("div", U, [
48
- r(t(B), {
49
- manual: "",
50
- selectedIndex: T.value,
51
- onChange: L
52
- }, {
53
- default: m(() => [
54
- I("div", {
55
- id: t(v),
56
- class: "client-libraries-heading"
57
- }, " Client Libraries ", 8, j),
58
- r(t(F), {
59
- "aria-labelledby": t(v),
60
- class: "client-libraries-list"
61
- }, {
62
- default: m(() => [
63
- r(z, {
64
- clientOptions: e.clientOptions,
65
- featuredClients: d.value,
66
- selectedClient: e.selectedClient,
67
- morePanel: t(b)
68
- }, null, 8, ["clientOptions", "featuredClients", "selectedClient", "morePanel"])
69
- ]),
70
- _: 1
71
- }, 8, ["aria-labelledby"]),
72
- r(t(V), null, {
73
- default: m(() => {
74
- var u, f, s;
75
- return [
76
- (u = l.value) != null && u.source || (f = l.value) != null && f.description ? (i(), a(g, { key: 0 }, [
77
- l.value.description ? (i(), a("div", {
78
- key: 0,
79
- class: E(["selected-client card-footer -outline-offset-2", l.value.source && "rounded-b-none"]),
80
- role: "tabpanel",
81
- tabindex: "0"
82
- }, [
83
- r(t(S), {
84
- value: l.value.description
85
- }, null, 8, ["value"])
86
- ], 2)) : C("", !0),
87
- l.value.source ? (i(), a("div", q, [
88
- r(t(D), {
89
- lang: "shell",
90
- content: l.value.source,
91
- copy: !0,
92
- class: "rounded-t-none rounded-b-lg px-3 py-2 -outline-offset-1 has-focus:outline"
93
- }, null, 8, ["content"])
94
- ])) : C("", !0)
95
- ], 64)) : t(K)(e.selectedClient) ? (i(!0), a(g, { key: 1 }, N(d.value, (c) => (i(), P(t(A), {
96
- key: c.id,
97
- class: "selected-client card-footer -outline-offset-2"
98
- }, {
99
- default: m(() => [
100
- _(k(c.title), 1)
101
- ]),
102
- _: 2
103
- }, 1024))), 128)) : (i(), a("div", {
104
- key: 2,
105
- id: t(b),
106
- class: "selected-client card-footer -outline-offset-2",
107
- role: "tabpanel",
108
- tabindex: "0"
109
- }, k((s = x.value) == null ? void 0 : s.title), 9, H))
110
- ];
111
- }),
112
- _: 1
113
- })
114
- ]),
115
- _: 1
116
- }, 8, ["selectedIndex"])
117
- ], 512)) : C("", !0);
118
- }
119
- });
120
- export {
121
- ee as default
122
- };
@@ -1,7 +0,0 @@
1
- import o from "./ClientSelector.vue2.js";
2
- import "./ClientSelector.vue3.js";
3
- import t from "../../../_virtual/_plugin-vue_export-helper.js";
4
- const m = /* @__PURE__ */ t(o, [["__scopeId", "data-v-691dcb64"]]);
5
- export {
6
- m as default
7
- };
@@ -1 +0,0 @@
1
- {"version":3,"file":"Description.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/Content/Introduction/Description.vue"],"names":[],"mappings":"AAkIA,KAAK,WAAW,GAAG;IACjB,wBAAwB;IACxB,KAAK,CAAC,EAAE,MAAM,CAAA;CACf,CAAC;;AAyKF,wBAMG"}
@@ -1,7 +0,0 @@
1
- import o from "./Description.vue2.js";
2
- import "./Description.vue3.js";
3
- import t from "../../../_virtual/_plugin-vue_export-helper.js";
4
- const i = /* @__PURE__ */ t(o, [["__scopeId", "data-v-d2a06436"]]);
5
- export {
6
- i as default
7
- };
@@ -1,72 +0,0 @@
1
- import { defineComponent as H, computed as I, createElementBlock as a, createCommentVNode as S, openBlock as n, Fragment as u, renderList as w, createBlock as s, unref as i, withCtx as C, createVNode as B } from "vue";
2
- import { splitContent as N, getHeadings as b } from "@scalar/code-highlight/markdown";
3
- import { ScalarMarkdown as c } from "@scalar/components";
4
- import d from "github-slugger";
5
- import x from "../../IntersectionObserver.vue.js";
6
- import { useNavState as E } from "../../../hooks/useNavState.js";
7
- const F = {
8
- key: 0,
9
- class: "introduction-description"
10
- }, U = /* @__PURE__ */ H({
11
- __name: "Description",
12
- props: {
13
- value: {}
14
- },
15
- setup(m) {
16
- const o = m, p = I(() => {
17
- if (!o.value)
18
- return [];
19
- const e = new d();
20
- return N(o.value).map((t) => {
21
- const [r] = b(t);
22
- return {
23
- id: r ? l({
24
- ...r,
25
- slug: e.slug(r.value)
26
- }) : void 0,
27
- content: t
28
- };
29
- });
30
- }), { getHeadingId: l, getFullHash: g, isIntersectionEnabled: f, replaceUrlState: v } = E();
31
- function h(e = "") {
32
- f.value && v(e);
33
- }
34
- const _ = new d(), k = (e) => (e.data = {
35
- hProperties: {
36
- id: l({
37
- depth: e.depth,
38
- value: e.children[0].value,
39
- slug: _.slug(e.children[0].value)
40
- })
41
- }
42
- }, e);
43
- return (e, y) => e.value ? (n(), a("div", F, [
44
- (n(!0), a(u, null, w(p.value, (t) => (n(), a(u, {
45
- key: t.id
46
- }, [
47
- t.id ? (n(), s(x, {
48
- key: 0,
49
- id: i(g)(t.id),
50
- class: "introduction-description-heading",
51
- onIntersecting: () => h(t.id)
52
- }, {
53
- default: C(() => [
54
- B(i(c), {
55
- transform: k,
56
- transformType: "heading",
57
- value: t.content
58
- }, null, 8, ["value"])
59
- ]),
60
- _: 2
61
- }, 1032, ["id", "onIntersecting"])) : (n(), s(i(c), {
62
- key: 1,
63
- value: t.content,
64
- withImages: ""
65
- }, null, 8, ["value"]))
66
- ], 64))), 128))
67
- ])) : S("", !0);
68
- }
69
- });
70
- export {
71
- U as default
72
- };
@@ -1,13 +0,0 @@
1
- import type { OpenAPIV3_1 } from '@scalar/openapi-types';
2
- import type { ApiReferenceConfiguration } from '@scalar/types';
3
- import type { WorkspaceStore } from '@scalar/workspace-store/client';
4
- import type { ClientOptionGroup } from '../../../v2/blocks/scalar-request-example-block/types';
5
- type __VLS_Props = {
6
- document: OpenAPIV3_1.Document;
7
- config?: ApiReferenceConfiguration;
8
- clientOptions: ClientOptionGroup[];
9
- store: WorkspaceStore;
10
- };
11
- 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>;
12
- export default _default;
13
- //# sourceMappingURL=Introduction.vue.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"Introduction.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/Content/Introduction/Introduction.vue"],"names":[],"mappings":"AAmNA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,uBAAuB,CAAA;AACxD,OAAO,KAAK,EAAE,yBAAyB,EAAE,MAAM,eAAe,CAAA;AAC9D,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,gCAAgC,CAAA;AAMpE,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,gDAAgD,CAAA;AAOvF,KAAK,WAAW,GAAG;IACjB,QAAQ,EAAE,WAAW,CAAC,QAAQ,CAAA;IAC9B,MAAM,CAAC,EAAE,yBAAyB,CAAA;IAClC,aAAa,EAAE,iBAAiB,EAAE,CAAA;IAClC,KAAK,EAAE,cAAc,CAAA;CACtB,CAAC;;AA8NF,wBAOG"}
@@ -1,7 +0,0 @@
1
- import o from "./Introduction.vue2.js";
2
- import "./Introduction.vue3.js";
3
- import t from "../../../_virtual/_plugin-vue_export-helper.js";
4
- const p = /* @__PURE__ */ t(o, [["__scopeId", "data-v-e808708e"]]);
5
- export {
6
- p as default
7
- };