@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
@@ -1,5 +1,5 @@
1
1
  import type { HttpMethod } from '@scalar/helpers/http/http-methods';
2
- import type { CallbackObject } from '@scalar/workspace-store/schemas/v3.1/strict/path-operations';
2
+ import type { CallbackObject } from '@scalar/workspace-store/schemas/v3.1/strict/openapi-document';
3
3
  import type { Schemas } from '../../../../features/Operation/types/schemas';
4
4
  type __VLS_Props = {
5
5
  path: string;
@@ -7,6 +7,6 @@ type __VLS_Props = {
7
7
  callbacks: CallbackObject;
8
8
  schemas?: Schemas;
9
9
  };
10
- 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, {}, HTMLDivElement>;
10
+ 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>;
11
11
  export default _default;
12
12
  //# sourceMappingURL=Callbacks.vue.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"Callbacks.vue.d.ts","sourceRoot":"","sources":["../../../../../src/features/Operation/components/callbacks/Callbacks.vue"],"names":[],"mappings":"AAuDA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,mCAAmC,CAAA;AAGnE,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,6DAA6D,CAAA;AAEjG,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,oCAAoC,CAAA;AAMjE,KAAK,WAAW,GAAG;IACjB,IAAI,EAAE,MAAM,CAAA;IACZ,MAAM,EAAE,UAAU,CAAA;IAClB,SAAS,EAAE,cAAc,CAAA;IACzB,OAAO,CAAC,EAAE,OAAO,CAAA;CAClB,CAAC;;AAsFF,wBAOG"}
1
+ {"version":3,"file":"Callbacks.vue.d.ts","sourceRoot":"","sources":["../../../../../src/features/Operation/components/callbacks/Callbacks.vue"],"names":[],"mappings":"AAuDA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,mCAAmC,CAAA;AAGnE,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,8DAA8D,CAAA;AAElG,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,oCAAoC,CAAA;AAIjE,KAAK,WAAW,GAAG;IACjB,IAAI,EAAE,MAAM,CAAA;IACZ,MAAM,EAAE,UAAU,CAAA;IAClB,SAAS,EAAE,cAAc,CAAA;IACzB,OAAO,CAAC,EAAE,OAAO,CAAA;CAClB,CAAC;;AAiFF,wBAMG"}
@@ -20,12 +20,12 @@ const v = { class: "callbacks-list gap-3" }, N = /* @__PURE__ */ k({
20
20
  key: 0,
21
21
  callback: d,
22
22
  method: r,
23
- operationMethod: m.method,
24
23
  name: n,
24
+ operationMethod: m.method,
25
25
  path: a.path,
26
26
  schemas: a.schemas,
27
27
  url: i
28
- }, null, 8, ["callback", "method", "operationMethod", "name", "path", "schemas", "url"])) : b("", !0)
28
+ }, null, 8, ["callback", "method", "name", "operationMethod", "path", "schemas", "url"])) : b("", !0)
29
29
  ], 64))), 128))
30
30
  ], 64))), 256))
31
31
  ], 64))), 128))
@@ -1,5 +1,4 @@
1
- import type { ParameterObject } from '@scalar/workspace-store/schemas/v3.1/strict/parameter';
2
- import type { OperationObject, PathItemObject } from '@scalar/workspace-store/schemas/v3.1/strict/path-operations';
1
+ import type { OperationObject, PathItemObject, ParameterObject } from '@scalar/workspace-store/schemas/v3.1/strict/openapi-document';
3
2
  /** Combine pathItem and operation parameters into a single, dereferenced parameter array */
4
3
  export declare const combineParams: (pathParams?: PathItemObject["parameters"], operationParams?: OperationObject["parameters"]) => ParameterObject[];
5
4
  //# sourceMappingURL=combine-params.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"combine-params.d.ts","sourceRoot":"","sources":["../../../../src/features/Operation/helpers/combine-params.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,uDAAuD,CAAA;AAC5F,OAAO,KAAK,EAAE,eAAe,EAAE,cAAc,EAAE,MAAM,6DAA6D,CAAA;AAElH,4FAA4F;AAC5F,eAAO,MAAM,aAAa,gBACZ,cAAc,CAAC,YAAY,CAAC,oBACvB,eAAe,CAAC,YAAY,CAAC,KAC7C,eAAe,EAajB,CAAA"}
1
+ {"version":3,"file":"combine-params.d.ts","sourceRoot":"","sources":["../../../../src/features/Operation/helpers/combine-params.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EACV,eAAe,EACf,cAAc,EACd,eAAe,EAChB,MAAM,8DAA8D,CAAA;AAErE,4FAA4F;AAC5F,eAAO,MAAM,aAAa,GACxB,aAAY,cAAc,CAAC,YAAY,CAAM,EAC7C,kBAAiB,eAAe,CAAC,YAAY,CAAM,KAClD,eAAe,EAajB,CAAA"}
@@ -2,9 +2,7 @@ import type { HttpMethod as HttpMethodType } from '@scalar/helpers/http/http-met
2
2
  import type { OpenAPIV3_1 } from '@scalar/openapi-types';
3
3
  import type { ApiReferenceConfiguration } from '@scalar/types';
4
4
  import type { WorkspaceStore } from '@scalar/workspace-store/client';
5
- import type { OperationObject } from '@scalar/workspace-store/schemas/v3.1/strict/path-operations';
6
- import type { SecuritySchemeObject } from '@scalar/workspace-store/schemas/v3.1/strict/security-scheme';
7
- import type { ServerObject } from '@scalar/workspace-store/schemas/v3.1/strict/server';
5
+ import type { OperationObject, SecuritySchemeObject, ServerObject } from '@scalar/workspace-store/schemas/v3.1/strict/openapi-document';
8
6
  import type { Schemas } from '../../../features/Operation/types/schemas';
9
7
  import type { ClientOptionGroup } from '../../../v2/blocks/scalar-request-example-block/types';
10
8
  type __VLS_Props = {
@@ -1 +1 @@
1
- {"version":3,"file":"ClassicLayout.vue.d.ts","sourceRoot":"","sources":["../../../../src/features/Operation/layouts/ClassicLayout.vue"],"names":[],"mappings":"AAgdA,OAAO,KAAK,EAAE,UAAU,IAAI,cAAc,EAAE,MAAM,mCAAmC,CAAA;AAWrF,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,uBAAuB,CAAA;AACxD,OAAO,KAAK,EAAE,yBAAyB,EAAE,MAAM,eAAe,CAAA;AAE9D,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,gCAAgC,CAAA;AACpE,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,6DAA6D,CAAA;AAClG,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,6DAA6D,CAAA;AACvG,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,oDAAoD,CAAA;AActF,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,oCAAoC,CAAA;AAIjE,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,gDAAgD,CAAA;AAIvF,KAAK,WAAW,GAAG;IACjB,EAAE,EAAE,MAAM,CAAA;IACV,IAAI,EAAE,MAAM,CAAA;IACZ,aAAa,EAAE,iBAAiB,EAAE,CAAA;IAClC,MAAM,EAAE,cAAc,CAAA;IACtB,MAAM,EAAE,yBAAyB,CAAA;IACjC,SAAS,EAAE,eAAe,CAAA;IAC1B,YAAY,EAAE,WAAW,CAAC,eAAe,CAAA;IAEzC,SAAS,EAAE,OAAO,CAAA;IAClB,MAAM,EAAE,YAAY,GAAG,SAAS,CAAA;IAChC,eAAe,EAAE,oBAAoB,EAAE,CAAA;IACvC,OAAO,CAAC,EAAE,OAAO,CAAA;IACjB,KAAK,EAAE,cAAc,CAAA;CACtB,CAAC;;;;;;AA4aF,wBAQG"}
1
+ {"version":3,"file":"ClassicLayout.vue.d.ts","sourceRoot":"","sources":["../../../../src/features/Operation/layouts/ClassicLayout.vue"],"names":[],"mappings":"AAmdA,OAAO,KAAK,EAAE,UAAU,IAAI,cAAc,EAAE,MAAM,mCAAmC,CAAA;AAWrF,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,uBAAuB,CAAA;AACxD,OAAO,KAAK,EAAE,yBAAyB,EAAE,MAAM,eAAe,CAAA;AAE9D,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,gCAAgC,CAAA;AACpE,OAAO,KAAK,EACV,eAAe,EACf,oBAAoB,EACpB,YAAY,EACb,MAAM,8DAA8D,CAAA;AAcrE,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,oCAAoC,CAAA;AAIjE,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,gDAAgD,CAAA;AAEvF,KAAK,WAAW,GAAG;IACjB,EAAE,EAAE,MAAM,CAAA;IACV,IAAI,EAAE,MAAM,CAAA;IACZ,aAAa,EAAE,iBAAiB,EAAE,CAAA;IAClC,MAAM,EAAE,cAAc,CAAA;IACtB,MAAM,EAAE,yBAAyB,CAAA;IACjC,SAAS,EAAE,eAAe,CAAA;IAC1B,YAAY,EAAE,WAAW,CAAC,eAAe,CAAA;IAEzC,SAAS,EAAE,OAAO,CAAA;IAClB,MAAM,EAAE,YAAY,GAAG,SAAS,CAAA;IAChC,eAAe,EAAE,oBAAoB,EAAE,CAAA;IACvC,OAAO,CAAC,EAAE,OAAO,CAAA;IACjB,KAAK,EAAE,cAAc,CAAA;CACtB,CAAC;;;;;;AAkhBF,wBAOG"}
@@ -1,7 +1,7 @@
1
1
  import o from "./ClassicLayout.vue2.js";
2
2
  import "./ClassicLayout.vue3.js";
3
3
  import t from "../../../_virtual/_plugin-vue_export-helper.js";
4
- const m = /* @__PURE__ */ t(o, [["__scopeId", "data-v-03026e66"]]);
4
+ const m = /* @__PURE__ */ t(o, [["__scopeId", "data-v-79d9b9b5"]]);
5
5
  export {
6
6
  m as default
7
7
  };
@@ -1,15 +1,15 @@
1
- import { defineComponent as C, computed as B, createBlock as r, openBlock as i, unref as o, createSlots as O, withCtx as s, createElementVNode as a, createCommentVNode as n, createElementBlock as w, createVNode as t, withModifiers as V, toDisplayString as h, normalizeClass as $, createTextVNode as u } from "vue";
2
- import { ScalarErrorBoundary as q, ScalarIconButton as I, ScalarMarkdown as T } from "@scalar/components";
3
- import { ScalarIconPlay as D, ScalarIconCopy as E, ScalarIconWebhooksLogo as L } from "@scalar/icons";
4
- import { isOperationDeprecated as R, getOperationStability as f, getOperationStabilityColor as W } from "@scalar/oas-utils/helpers";
1
+ import { defineComponent as C, computed as B, createBlock as r, openBlock as i, unref as o, createSlots as O, withCtx as s, createElementVNode as a, createCommentVNode as n, createElementBlock as w, createVNode as t, withModifiers as V, toDisplayString as h, normalizeClass as W, createTextVNode as u } from "vue";
2
+ import { ScalarErrorBoundary as $, ScalarIconButton as q, ScalarMarkdown as I } from "@scalar/components";
3
+ import { ScalarIconPlay as T, ScalarIconCopy as D, ScalarIconWebhooksLogo as E } from "@scalar/icons";
4
+ import { isOperationDeprecated as L, getOperationStability as f, getOperationStabilityColor as R } from "@scalar/oas-utils/helpers";
5
5
  import { useClipboard as z } from "@scalar/use-hooks/useClipboard";
6
6
  import N from "../../../components/OperationPath.vue.js";
7
7
  import P from "../components/callbacks/Callbacks.vue.js";
8
8
  import U from "../components/OperationParameters.vue.js";
9
9
  import A from "../components/OperationResponses.vue.js";
10
10
  import M from "../../../components/Section/SectionAccordion.vue.js";
11
- import _ from "../../example-responses/ExampleResponses.vue.js";
12
- import j from "../../../components/LinkList/LinkList.vue.js";
11
+ import j from "../../example-responses/ExampleResponses.vue.js";
12
+ import _ from "../../../components/LinkList/LinkList.vue.js";
13
13
  import F from "../../external-docs/ExternalDocs.vue.js";
14
14
  import G from "../../../v2/blocks/scalar-request-example-block/components/RequestExample.vue.js";
15
15
  import y from "../../x-badges/XBadges.vue.js";
@@ -38,8 +38,8 @@ const Q = { class: "operation-title" }, X = { class: "operation-details" }, Y =
38
38
  },
39
39
  emits: ["update:modelValue"],
40
40
  setup(d, { emit: k }) {
41
- const v = B(() => d.operation.summary || d.path || ""), { copyToClipboard: g } = z(), S = k, m = (e) => {
42
- S("update:modelValue", e);
41
+ const v = k, g = B(() => d.operation.summary || d.path || ""), { copyToClipboard: S } = z(), m = (e) => {
42
+ v("update:modelValue", e);
43
43
  };
44
44
  return (e, l) => (i(), r(o(M), {
45
45
  id: e.id,
@@ -62,14 +62,14 @@ const Q = { class: "operation-title" }, X = { class: "operation-details" }, Y =
62
62
  a("h3", Y, [
63
63
  a("div", Z, [
64
64
  t(N, {
65
- deprecated: o(R)(e.operation),
65
+ deprecated: o(L)(e.operation),
66
66
  path: e.path
67
67
  }, null, 8, ["deprecated", "path"])
68
68
  ]),
69
- a("div", x, h(v.value), 1),
69
+ a("div", x, h(g.value), 1),
70
70
  o(f)(e.operation) ? (i(), r(o(b), {
71
71
  key: 0,
72
- class: $(["capitalize", o(W)(e.operation)])
72
+ class: W(["capitalize", o(R)(e.operation)])
73
73
  }, {
74
74
  default: s(() => [
75
75
  u(h(o(f)(e.operation)), 1)
@@ -81,7 +81,7 @@ const Q = { class: "operation-title" }, X = { class: "operation-details" }, Y =
81
81
  class: "font-code text-green flex w-fit items-center justify-center gap-1"
82
82
  }, {
83
83
  default: s(() => [
84
- t(o(L), { weight: "bold" }),
84
+ t(o(E), { weight: "bold" }),
85
85
  l[1] || (l[1] = u("Webhook "))
86
86
  ]),
87
87
  _: 1,
@@ -109,17 +109,17 @@ const Q = { class: "operation-title" }, X = { class: "operation-details" }, Y =
109
109
  key: 0,
110
110
  method: e.method,
111
111
  path: e.path
112
- }, null, 8, ["method", "path"])) : (c = e.config) != null && c.hideTestRequestButton ? n("", !0) : (i(), r(o(D), {
112
+ }, null, 8, ["method", "path"])) : (c = e.config) != null && c.hideTestRequestButton ? n("", !0) : (i(), r(o(T), {
113
113
  key: 1,
114
114
  class: "endpoint-try-hint size-4.5"
115
115
  })),
116
- t(o(I), {
116
+ t(o(q), {
117
117
  class: "endpoint-copy p-0.5",
118
- icon: o(E),
118
+ icon: o(D),
119
119
  label: "Copy endpoint URL",
120
120
  size: "xs",
121
121
  variant: "ghost",
122
- onClick: l[0] || (l[0] = V((ie) => o(g)(e.path), ["stop"]))
122
+ onClick: l[0] || (l[0] = V((ie) => o(S)(e.path), ["stop"]))
123
123
  }, null, 8, ["icon"])
124
124
  ];
125
125
  }),
@@ -130,11 +130,11 @@ const Q = { class: "operation-title" }, X = { class: "operation-details" }, Y =
130
130
  a("div", oe, [
131
131
  a("div", te, [
132
132
  t(U, {
133
- requestBody: e.oldOperation.requestBody,
134
133
  parameters: e.operation.parameters,
134
+ requestBody: e.oldOperation.requestBody,
135
135
  schemas: e.schemas,
136
136
  "onUpdate:modelValue": m
137
- }, null, 8, ["requestBody", "parameters", "schemas"])
137
+ }, null, 8, ["parameters", "requestBody", "schemas"])
138
138
  ]),
139
139
  a("div", ae, [
140
140
  t(A, {
@@ -145,20 +145,20 @@ const Q = { class: "operation-title" }, X = { class: "operation-details" }, Y =
145
145
  ]),
146
146
  (p = e.operation) != null && p.callbacks ? (i(), w("div", se, [
147
147
  t(P, {
148
+ callbacks: e.operation.callbacks,
148
149
  method: e.method,
149
150
  path: e.path,
150
- callbacks: e.operation.callbacks,
151
151
  schemas: e.schemas
152
- }, null, 8, ["method", "path", "callbacks", "schemas"])
152
+ }, null, 8, ["callbacks", "method", "path", "schemas"])
153
153
  ])) : n("", !0)
154
154
  ]),
155
- e.operation.responses ? (i(), r(o(_), {
155
+ e.operation.responses ? (i(), r(o(j), {
156
156
  key: 0,
157
157
  class: "operation-example-card",
158
158
  responses: e.operation.responses
159
159
  }, null, 8, ["responses"])) : n("", !0),
160
160
  a("div", null, [
161
- e.operation.externalDocs ? (i(), r(o(j), { key: 0 }, {
161
+ e.operation.externalDocs ? (i(), r(o(_), { key: 0 }, {
162
162
  default: s(() => [
163
163
  t(o(F), {
164
164
  value: e.operation.externalDocs
@@ -166,20 +166,21 @@ const Q = { class: "operation-title" }, X = { class: "operation-details" }, Y =
166
166
  ]),
167
167
  _: 1
168
168
  })) : n("", !0),
169
- t(o(q), null, {
169
+ t(o($), null, {
170
170
  default: s(() => [
171
171
  t(o(G), {
172
172
  class: "operation-example-card",
173
- method: e.method,
174
- selectedServer: e.server,
175
173
  clientOptions: e.clientOptions,
176
- selectedClient: e.store.workspace["x-scalar-default-client"],
177
- securitySchemes: e.securitySchemes,
178
- path: e.path,
179
174
  fallback: "",
175
+ isWebhook: e.isWebhook,
176
+ method: e.method,
180
177
  operation: e.operation,
178
+ path: e.path,
179
+ securitySchemes: e.securitySchemes,
180
+ selectedClient: e.store.workspace["x-scalar-default-client"],
181
+ selectedServer: e.server,
181
182
  "onUpdate:modelValue": m
182
- }, null, 8, ["method", "selectedServer", "clientOptions", "selectedClient", "securitySchemes", "path", "operation"])
183
+ }, null, 8, ["clientOptions", "isWebhook", "method", "operation", "path", "securitySchemes", "selectedClient", "selectedServer"])
183
184
  ]),
184
185
  _: 1
185
186
  })
@@ -192,13 +193,13 @@ const Q = { class: "operation-title" }, X = { class: "operation-details" }, Y =
192
193
  e.operation.description ? {
193
194
  name: "description",
194
195
  fn: s(() => [
195
- t(o(T), {
196
+ t(o(I), {
197
+ anchorPrefix: e.id,
198
+ transformType: "heading",
196
199
  value: e.operation.description,
197
- withImages: "",
198
200
  withAnchors: "",
199
- transformType: "heading",
200
- anchorPrefix: e.id
201
- }, null, 8, ["value", "anchorPrefix"])
201
+ withImages: ""
202
+ }, null, 8, ["anchorPrefix", "value"])
202
203
  ]),
203
204
  key: "0"
204
205
  } : void 0
@@ -1,4 +1,4 @@
1
- const e = "";
1
+ const _ = "";
2
2
  export {
3
- e as default
3
+ _ as default
4
4
  };
@@ -2,9 +2,7 @@ import type { HttpMethod as HttpMethodType } from '@scalar/helpers/http/http-met
2
2
  import type { OpenAPIV3_1 } from '@scalar/openapi-types';
3
3
  import type { ApiReferenceConfiguration } from '@scalar/types';
4
4
  import type { WorkspaceStore } from '@scalar/workspace-store/client';
5
- import type { OperationObject } from '@scalar/workspace-store/schemas/v3.1/strict/path-operations';
6
- import type { SecuritySchemeObject } from '@scalar/workspace-store/schemas/v3.1/strict/security-scheme';
7
- import type { ServerObject } from '@scalar/workspace-store/schemas/v3.1/strict/server';
5
+ import type { OperationObject, SecuritySchemeObject, ServerObject } from '@scalar/workspace-store/schemas/v3.1/strict/openapi-document';
8
6
  import type { Schemas } from '../../../features/Operation/types/schemas';
9
7
  import type { ClientOptionGroup } from '../../../v2/blocks/scalar-request-example-block/types';
10
8
  type __VLS_Props = {
@@ -1 +1 @@
1
- {"version":3,"file":"ModernLayout.vue.d.ts","sourceRoot":"","sources":["../../../../src/features/Operation/layouts/ModernLayout.vue"],"names":[],"mappings":"AAoOA,OAAO,KAAK,EAAE,UAAU,IAAI,cAAc,EAAE,MAAM,mCAAmC,CAAA;AAOrF,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;AACpE,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,6DAA6D,CAAA;AAClG,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,6DAA6D,CAAA;AACvG,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,oDAAoD,CAAA;AAoBtF,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,oCAAoC,CAAA;AAIjE,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,gDAAgD,CAAA;AAIvF,KAAK,WAAW,GAAG;IACf,EAAE,EAAE,MAAM,CAAA;IACV,IAAI,EAAE,MAAM,CAAA;IACZ,aAAa,EAAE,iBAAiB,EAAE,CAAA;IAClC,MAAM,EAAE,cAAc,CAAA;IACtB,MAAM,EAAE,yBAAyB,CAAA;IACjC,SAAS,EAAE,eAAe,CAAA;IAC1B,YAAY,EAAE,WAAW,CAAC,eAAe,CAAA;IAEzC,SAAS,EAAE,OAAO,CAAA;IAClB,eAAe,EAAE,oBAAoB,EAAE,CAAA;IACvC,MAAM,EAAE,YAAY,GAAG,SAAS,CAAA;IAChC,OAAO,CAAC,EAAE,OAAO,CAAA;IACjB,KAAK,EAAE,cAAc,CAAA;CACtB,CAAC;;;;;;AA2WJ,wBAQG"}
1
+ {"version":3,"file":"ModernLayout.vue.d.ts","sourceRoot":"","sources":["../../../../src/features/Operation/layouts/ModernLayout.vue"],"names":[],"mappings":"AAuOA,OAAO,KAAK,EAAE,UAAU,IAAI,cAAc,EAAE,MAAM,mCAAmC,CAAA;AAOrF,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;AACpE,OAAO,KAAK,EACV,eAAe,EACf,oBAAoB,EACpB,YAAY,EACb,MAAM,8DAA8D,CAAA;AAoBrE,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,oCAAoC,CAAA;AAIjE,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,gDAAgD,CAAA;AAEvF,KAAK,WAAW,GAAG;IACf,EAAE,EAAE,MAAM,CAAA;IACV,IAAI,EAAE,MAAM,CAAA;IACZ,aAAa,EAAE,iBAAiB,EAAE,CAAA;IAClC,MAAM,EAAE,cAAc,CAAA;IACtB,MAAM,EAAE,yBAAyB,CAAA;IACjC,SAAS,EAAE,eAAe,CAAA;IAC1B,YAAY,EAAE,WAAW,CAAC,eAAe,CAAA;IAEzC,SAAS,EAAE,OAAO,CAAA;IAClB,eAAe,EAAE,oBAAoB,EAAE,CAAA;IACvC,MAAM,EAAE,YAAY,GAAG,SAAS,CAAA;IAChC,OAAO,CAAC,EAAE,OAAO,CAAA;IACjB,KAAK,EAAE,cAAc,CAAA;CACtB,CAAC;;;;;;AAkdJ,wBAOG"}
@@ -1,7 +1,7 @@
1
1
  import o from "./ModernLayout.vue2.js";
2
2
  import "./ModernLayout.vue3.js";
3
3
  import t from "../../../_virtual/_plugin-vue_export-helper.js";
4
- const f = /* @__PURE__ */ t(o, [["__scopeId", "data-v-1152fe62"]]);
4
+ const p = /* @__PURE__ */ t(o, [["__scopeId", "data-v-15bb33a7"]]);
5
5
  export {
6
- f as default
6
+ p as default
7
7
  };
@@ -1,9 +1,9 @@
1
- import { defineComponent as w, computed as B, useId as V, createBlock as r, openBlock as s, unref as o, withCtx as t, createVNode as a, createElementVNode as i, createCommentVNode as l, normalizeClass as b, createTextVNode as n, toDisplayString as g, createSlots as I } from "vue";
2
- import { ScalarMarkdown as $, ScalarErrorBoundary as d } from "@scalar/components";
3
- import { ScalarIconWebhooksLogo as q } from "@scalar/icons";
4
- import { getOperationStability as y, getOperationStabilityColor as D, isOperationDeprecated as L } from "@scalar/oas-utils/helpers";
5
- import T from "../../../components/OperationPath.vue.js";
6
- import W from "../components/callbacks/Callbacks.vue.js";
1
+ import { defineComponent as w, computed as B, useId as V, createBlock as r, openBlock as s, unref as o, withCtx as t, createVNode as a, createElementVNode as i, createCommentVNode as l, normalizeClass as b, createTextVNode as n, toDisplayString as g, createSlots as W } from "vue";
2
+ import { ScalarMarkdown as I, ScalarErrorBoundary as d } from "@scalar/components";
3
+ import { ScalarIconWebhooksLogo as $ } from "@scalar/icons";
4
+ import { getOperationStability as y, getOperationStabilityColor as q, isOperationDeprecated as D } from "@scalar/oas-utils/helpers";
5
+ import L from "../../../components/OperationPath.vue.js";
6
+ import T from "../components/callbacks/Callbacks.vue.js";
7
7
  import E from "../components/OperationParameters.vue.js";
8
8
  import N from "../components/OperationResponses.vue.js";
9
9
  import R from "../../../components/Section/Section.vue.js";
@@ -38,7 +38,7 @@ const J = { class: "flex flex-row justify-between gap-1" }, K = { class: "flex g
38
38
  },
39
39
  emits: ["update:modelValue"],
40
40
  setup(p, { emit: C }) {
41
- const m = B(() => p.operation.summary || p.path || ""), O = C, u = V(), c = (e) => {
41
+ const O = C, m = B(() => p.operation.summary || p.path || ""), u = V(), c = (e) => {
42
42
  O("update:modelValue", e);
43
43
  };
44
44
  return (e, f) => (s(), r(o(R), {
@@ -56,7 +56,7 @@ const J = { class: "flex flex-row justify-between gap-1" }, K = { class: "flex g
56
56
  i("div", K, [
57
57
  o(y)(e.operation) ? (s(), r(o(k), {
58
58
  key: 0,
59
- class: b(["capitalize", o(D)(e.operation)])
59
+ class: b(["capitalize", o(q)(e.operation)])
60
60
  }, {
61
61
  default: t(() => [
62
62
  n(g(o(y)(e.operation)), 1)
@@ -68,7 +68,7 @@ const J = { class: "flex flex-row justify-between gap-1" }, K = { class: "flex g
68
68
  class: "font-code text-green flex w-fit items-center justify-center gap-1"
69
69
  }, {
70
70
  default: t(() => [
71
- a(o(q), { weight: "bold" }),
71
+ a(o($), { weight: "bold" }),
72
72
  f[0] || (f[0] = n("Webhook "))
73
73
  ]),
74
74
  _: 1,
@@ -87,7 +87,7 @@ const J = { class: "flex flex-row justify-between gap-1" }, K = { class: "flex g
87
87
  ])
88
88
  ]),
89
89
  i("div", {
90
- class: b(o(L)(e.operation) ? "deprecated" : "")
90
+ class: b(o(D)(e.operation) ? "deprecated" : "")
91
91
  }, [
92
92
  a(o(j), null, {
93
93
  default: t(() => [
@@ -114,13 +114,13 @@ const J = { class: "flex flex-row justify-between gap-1" }, K = { class: "flex g
114
114
  a(o(v), null, {
115
115
  default: t(() => [
116
116
  i("div", X, [
117
- a(o($), {
117
+ a(o(I), {
118
+ anchorPrefix: e.id,
119
+ transformType: "heading",
118
120
  value: e.operation.description,
119
- withImages: "",
120
121
  withAnchors: "",
121
- transformType: "heading",
122
- anchorPrefix: e.id
123
- }, null, 8, ["value", "anchorPrefix"]),
122
+ withImages: ""
123
+ }, null, 8, ["anchorPrefix", "value"]),
124
124
  a(E, {
125
125
  breadcrumb: [e.id],
126
126
  parameters: e.operation.parameters,
@@ -136,14 +136,14 @@ const J = { class: "flex flex-row justify-between gap-1" }, K = { class: "flex g
136
136
  }, null, 8, ["breadcrumb", "collapsableItems", "responses", "schemas"]),
137
137
  a(o(d), null, {
138
138
  default: t(() => [
139
- e.operation.callbacks ? (s(), r(W, {
139
+ e.operation.callbacks ? (s(), r(T, {
140
140
  key: 0,
141
- class: "mt-6",
142
- path: e.path,
143
141
  callbacks: e.operation.callbacks,
142
+ class: "mt-6",
144
143
  method: e.method,
144
+ path: e.path,
145
145
  schemas: e.schemas
146
- }, null, 8, ["path", "callbacks", "method", "schemas"])) : l("", !0)
146
+ }, null, 8, ["callbacks", "method", "path", "schemas"])) : l("", !0)
147
147
  ]),
148
148
  _: 1
149
149
  })
@@ -165,20 +165,21 @@ const J = { class: "flex flex-row justify-between gap-1" }, K = { class: "flex g
165
165
  a(o(d), null, {
166
166
  default: t(() => [
167
167
  a(o(_), {
168
- method: e.method,
169
- selectedServer: e.server,
170
168
  clientOptions: e.clientOptions,
171
- securitySchemes: e.securitySchemes,
172
- selectedClient: e.store.workspace["x-scalar-default-client"],
173
- path: e.path,
174
169
  fallback: "",
170
+ isWebhook: e.isWebhook,
171
+ method: e.method,
175
172
  operation: e.operation,
173
+ path: e.path,
174
+ securitySchemes: e.securitySchemes,
175
+ selectedClient: e.store.workspace["x-scalar-default-client"],
176
+ selectedServer: e.server,
176
177
  "onUpdate:modelValue": c
177
- }, I({
178
+ }, W({
178
179
  header: t(() => {
179
180
  var h;
180
181
  return [
181
- a(T, {
182
+ a(L, {
182
183
  class: "font-code text-c-2 [&_em]:text-c-1 [&_em]:not-italic",
183
184
  deprecated: (h = e.operation) == null ? void 0 : h.deprecated,
184
185
  path: e.path
@@ -197,7 +198,7 @@ const J = { class: "flex flex-row justify-between gap-1" }, K = { class: "flex g
197
198
  ]),
198
199
  key: "0"
199
200
  }
200
- ]), 1032, ["method", "selectedServer", "clientOptions", "securitySchemes", "selectedClient", "path", "operation"])
201
+ ]), 1032, ["clientOptions", "isWebhook", "method", "operation", "path", "securitySchemes", "selectedClient", "selectedServer"])
201
202
  ]),
202
203
  _: 1
203
204
  }),
@@ -1 +1 @@
1
- {"version":3,"file":"SearchButton.vue.d.ts","sourceRoot":"","sources":["../../../../src/features/Search/components/SearchButton.vue"],"names":[],"mappings":"AA4FA,KAAK,WAAW,GAAG;IACjB,YAAY,CAAC,EAAE,MAAM,CAAA;IACrB,UAAU,CAAC,EAAE,OAAO,CAAA;CACrB,CAAC;;AAoJF,wBAMG"}
1
+ {"version":3,"file":"SearchButton.vue.d.ts","sourceRoot":"","sources":["../../../../src/features/Search/components/SearchButton.vue"],"names":[],"mappings":"AA0FA,KAAK,WAAW,GAAG;IACjB,YAAY,CAAC,EAAE,MAAM,CAAA;IACrB,UAAU,CAAC,EAAE,OAAO,CAAA;CACrB,CAAC;;AA8IF,wBAMG"}
@@ -1 +1 @@
1
- {"version":3,"file":"SearchModal.vue.d.ts","sourceRoot":"","sources":["../../../../src/features/Search/components/SearchModal.vue"],"names":[],"mappings":"AAmTA,OAAO,EAKL,KAAK,UAAU,EAChB,MAAM,oBAAoB,CAAA;AAwB3B,KAAK,WAAW,GAAG;IACjB,UAAU,EAAE,UAAU,CAAA;IACtB,UAAU,EAAE,OAAO,CAAA;CACpB,CAAC;;AA2ZF,wBAOG"}
1
+ {"version":3,"file":"SearchModal.vue.d.ts","sourceRoot":"","sources":["../../../../src/features/Search/components/SearchModal.vue"],"names":[],"mappings":"AAmTA,OAAO,EAKL,KAAK,UAAU,EAChB,MAAM,oBAAoB,CAAA;AAsB3B,KAAK,WAAW,GAAG;IACjB,UAAU,EAAE,UAAU,CAAA;IACtB,UAAU,EAAE,OAAO,CAAA;CACpB,CAAC;;AAiaF,wBAMG"}
@@ -4,6 +4,6 @@ type __VLS_Props = {
4
4
  configuration: Partial<Omit<ApiClientConfiguration, 'plugins'>> & Pick<ApiReferenceConfiguration, 'onBeforeRequest'>;
5
5
  dereferencedDocument: OpenAPIV3_1.Document;
6
6
  };
7
- 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, {}, HTMLDivElement>;
7
+ 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>;
8
8
  export default _default;
9
9
  //# sourceMappingURL=ApiClientModal.vue.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"ApiClientModal.vue.d.ts","sourceRoot":"","sources":["../../../src/features/api-client-modal/ApiClientModal.vue"],"names":[],"mappings":"AAgLA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,uBAAuB,CAAA;AAExD,OAAO,KAAK,EACV,sBAAsB,EACtB,yBAAyB,EAC1B,MAAM,6BAA6B,CAAA;AAYpC,KAAK,WAAW,GAAG;IAEjB,aAAa,EAAE,OAAO,CAAC,IAAI,CAAC,sBAAsB,EAAE,SAAS,CAAC,CAAC,GAC7D,IAAI,CAAC,yBAAyB,EAAE,iBAAiB,CAAC,CAAA;IACpD,oBAAoB,EAAE,WAAW,CAAC,QAAQ,CAAA;CAC3C,CAAC;;AAuMF,wBAOG"}
1
+ {"version":3,"file":"ApiClientModal.vue.d.ts","sourceRoot":"","sources":["../../../src/features/api-client-modal/ApiClientModal.vue"],"names":[],"mappings":"AAoKA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,uBAAuB,CAAA;AAExD,OAAO,KAAK,EACV,sBAAsB,EACtB,yBAAyB,EAC1B,MAAM,6BAA6B,CAAA;AAWpC,KAAK,WAAW,GAAG;IAEjB,aAAa,EAAE,OAAO,CAAC,IAAI,CAAC,sBAAsB,EAAE,SAAS,CAAC,CAAC,GAC7D,IAAI,CAAC,yBAAyB,EAAE,iBAAiB,CAAC,CAAA;IACpD,oBAAoB,EAAE,WAAW,CAAC,QAAQ,CAAA;CAC3C,CAAC;;AAoKF,wBAMG"}
@@ -1,93 +1,90 @@
1
- import { defineComponent as E, ref as B, onMounted as b, watch as R, onBeforeUnmount as k, createElementBlock as q, openBlock as x } from "vue";
2
- import { useActiveEntities as D, useWorkspace as M } from "@scalar/api-client/store";
3
- import { mutateSecuritySchemeDiff as U } from "@scalar/api-client/views/Request/libs";
4
- import { getServersFromDocument as C } from "@scalar/oas-utils/helpers";
5
- import { watchDebounced as v } from "@vueuse/core";
6
- import h from "microdiff";
1
+ import { defineComponent as S, ref as g, onMounted as E, watch as b, onBeforeUnmount as B, createElementBlock as R, openBlock as k } from "vue";
2
+ import { useActiveEntities as q, useWorkspace as x } from "@scalar/api-client/store";
3
+ import { mutateSecuritySchemeDiff as D } from "@scalar/api-client/views/Request/libs";
4
+ import { getServersFromDocument as U } from "@scalar/oas-utils/helpers";
5
+ import { emitCustomEvent as C } from "@scalar/workspace-store/events";
6
+ import { watchDebounced as f } from "@vueuse/core";
7
+ import v from "microdiff";
7
8
  import { useNavState as y } from "../../hooks/useNavState.js";
8
9
  import { useApiClient as A } from "./useApiClient.js";
9
10
  import { useExampleStore as L } from "../../legacy/stores/useExampleStore.js";
10
- const z = /* @__PURE__ */ E({
11
+ const z = /* @__PURE__ */ S({
11
12
  __name: "ApiClientModal",
12
13
  props: {
13
14
  configuration: {},
14
15
  dereferencedDocument: {}
15
16
  },
16
- setup(o) {
17
- const l = B(null), { client: c, init: p } = A(), { selectedExampleKey: S, operationId: m } = L(), a = D(), n = M(), { isIntersectionEnabled: d } = y(), g = () => ({
17
+ setup(r) {
18
+ const u = g(null), { client: i, init: d } = A(), { selectedExampleKey: p, operationId: l } = L(), a = q(), c = x(), { isIntersectionEnabled: m } = y(), h = () => ({
18
19
  name: "on-before-request",
19
20
  hooks: {
20
- onBeforeRequest: o.configuration.onBeforeRequest
21
+ onBeforeRequest: r.configuration.onBeforeRequest
21
22
  }
22
23
  });
23
- return b(() => {
24
- l.value && p({
25
- el: l.value,
24
+ return E(() => {
25
+ u.value && d({
26
+ el: u.value,
26
27
  configuration: {
27
- ...o.configuration,
28
+ ...r.configuration,
28
29
  // If the onBeforeRequest hook is configured, we add the plugin to the API client.
29
- plugins: o.configuration.onBeforeRequest ? [g] : []
30
+ plugins: r.configuration.onBeforeRequest ? [h] : []
30
31
  },
31
- store: n
32
+ store: c
32
33
  });
33
- }), v(
34
- () => o.dereferencedDocument,
35
- (e, u) => {
36
- var i, s;
34
+ }), f(
35
+ () => r.dereferencedDocument,
36
+ (e, o) => {
37
+ var s, t;
37
38
  if (!e)
38
39
  return;
39
- const r = h(e, u || {});
40
- r != null && r.length && (a.activeCollection.value && ((i = c.value) == null || i.resetStore()), n.importSpecFile(void 0, "default", {
40
+ const n = v(e, o || {});
41
+ n != null && n.length && (a.activeCollection.value && ((s = i.value) == null || s.resetStore()), c.importSpecFile(void 0, "default", {
41
42
  dereferencedDocument: e,
42
43
  shouldLoad: !1,
43
- documentUrl: (s = o.configuration) == null ? void 0 : s.url,
44
+ documentUrl: (t = r.configuration) == null ? void 0 : t.url,
44
45
  useCollectionSecurity: !0,
45
- ...o.configuration
46
+ ...r.configuration
46
47
  }));
47
48
  }
48
- ), v(
49
- () => o.configuration,
50
- (e, u) => {
51
- if (!u || !a.activeCollection.value)
49
+ ), f(
50
+ () => r.configuration,
51
+ (e, o) => {
52
+ if (!o || !a.activeCollection.value)
52
53
  return;
53
- const r = a.activeCollection.value, i = h(u, e);
54
- if (!i.some(
54
+ const n = v(o, e);
55
+ if (!n.some(
55
56
  (t) => t.path[0] === "url" || t.path[0] === "content" || t.path[1] === "url" || t.path[1] === "content"
56
57
  )) {
57
- if (i.forEach((t) => {
58
- t.path[0] === "authentication" && U(t, a, n);
59
- }), e.servers || u.servers) {
60
- r.servers.forEach((f) => {
61
- n.serverMutators.delete(f, r.uid);
62
- });
63
- const t = C(
64
- e.servers ?? o.dereferencedDocument.servers,
58
+ if (n.forEach((t) => {
59
+ t.path[0] === "authentication" && D(t, a, c);
60
+ }), e.servers || o.servers) {
61
+ const t = U(
62
+ e.servers ?? r.dereferencedDocument.servers,
65
63
  {
66
64
  baseServerURL: e.baseServerURL
67
65
  }
68
66
  );
69
- t.forEach((f) => {
70
- n.serverMutators.add(f, r.uid);
71
- }), t.length && n.collectionMutators.edit(
72
- r.uid,
73
- "selectedServerUid",
74
- t[t.length - 1].uid
75
- );
67
+ C(u.value, "scalar-replace-servers", {
68
+ servers: t,
69
+ options: {
70
+ disableOldStoreUpdate: !0
71
+ }
72
+ });
76
73
  }
77
74
  }
78
- d.value = !1, setTimeout(() => {
79
- d.value = !0;
75
+ m.value = !1, setTimeout(() => {
76
+ m.value = !0;
80
77
  }, 1e3);
81
78
  },
82
79
  { deep: !0, debounce: 300 }
83
- ), R(S, (e) => {
84
- c.value && e && m.value && c.value.updateExample(e, m.value);
85
- }), k(() => {
80
+ ), b(p, (e) => {
81
+ i.value && e && l.value && i.value.updateExample(e, l.value);
82
+ }), B(() => {
86
83
  var e;
87
- return (e = c.value) == null ? void 0 : e.app.unmount();
88
- }), (e, u) => (x(), q("div", {
84
+ return (e = i.value) == null ? void 0 : e.app.unmount();
85
+ }), (e, o) => (k(), R("div", {
89
86
  ref_key: "el",
90
- ref: l
87
+ ref: u
91
88
  }, null, 512));
92
89
  }
93
90
  });