@scalar/api-reference 1.38.1 → 1.39.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 (655) hide show
  1. package/CHANGELOG.md +69 -0
  2. package/dist/_virtual/_plugin-vue_export-helper.js +7 -6
  3. package/dist/blocks/scalar-auth-selector-block/components/AuthSelector.vue.d.ts +11 -0
  4. package/dist/blocks/scalar-auth-selector-block/components/AuthSelector.vue.d.ts.map +1 -0
  5. package/dist/blocks/scalar-auth-selector-block/components/AuthSelector.vue.js +7 -0
  6. package/dist/blocks/scalar-auth-selector-block/components/AuthSelector.vue2.js +259 -0
  7. package/dist/{v2/blocks → blocks}/scalar-auth-selector-block/components/DeleteRequestAuthModal.vue.d.ts +2 -2
  8. package/dist/blocks/scalar-auth-selector-block/components/DeleteRequestAuthModal.vue.d.ts.map +1 -0
  9. package/dist/blocks/scalar-auth-selector-block/components/DeleteRequestAuthModal.vue.js +66 -0
  10. package/dist/blocks/scalar-auth-selector-block/components/DeleteRequestAuthModal.vue2.js +4 -0
  11. package/dist/blocks/scalar-auth-selector-block/components/OAuth2.vue.d.ts.map +1 -0
  12. package/dist/blocks/scalar-auth-selector-block/components/OAuth2.vue.js +271 -0
  13. package/dist/blocks/scalar-auth-selector-block/components/OAuth2.vue2.js +4 -0
  14. package/dist/blocks/scalar-auth-selector-block/components/OAuthScopesInput.vue.d.ts.map +1 -0
  15. package/dist/blocks/scalar-auth-selector-block/components/OAuthScopesInput.vue.js +150 -0
  16. package/dist/blocks/scalar-auth-selector-block/components/OAuthScopesInput.vue2.js +4 -0
  17. package/dist/blocks/scalar-auth-selector-block/components/RequestAuthDataTable.vue.d.ts.map +1 -0
  18. package/dist/blocks/scalar-auth-selector-block/components/RequestAuthDataTable.vue.js +7 -0
  19. package/dist/blocks/scalar-auth-selector-block/components/RequestAuthDataTable.vue2.js +116 -0
  20. package/dist/{v2/blocks → blocks}/scalar-auth-selector-block/components/RequestAuthDataTableInput.vue.d.ts +1 -1
  21. package/dist/blocks/scalar-auth-selector-block/components/RequestAuthDataTableInput.vue.d.ts.map +1 -0
  22. package/dist/blocks/scalar-auth-selector-block/components/RequestAuthDataTableInput.vue.js +55 -0
  23. package/dist/blocks/scalar-auth-selector-block/components/RequestAuthDataTableInput.vue2.js +4 -0
  24. package/dist/blocks/scalar-auth-selector-block/components/RequestAuthTab.vue.d.ts.map +1 -0
  25. package/dist/blocks/scalar-auth-selector-block/components/RequestAuthTab.vue.js +288 -0
  26. package/dist/blocks/scalar-auth-selector-block/components/RequestAuthTab.vue2.js +4 -0
  27. package/dist/blocks/scalar-auth-selector-block/helpers/filter-security-requirements.d.ts.map +1 -0
  28. package/dist/blocks/scalar-auth-selector-block/helpers/update-scheme.d.ts.map +1 -0
  29. package/dist/blocks/scalar-auth-selector-block/helpers/update-scheme.js +26 -0
  30. package/dist/blocks/scalar-auth-selector-block/index.d.ts.map +1 -0
  31. package/dist/{v2/blocks → blocks}/scalar-client-selector-block/components/ClientDropdown.vue.d.ts +0 -2
  32. package/dist/blocks/scalar-client-selector-block/components/ClientDropdown.vue.d.ts.map +1 -0
  33. package/dist/blocks/scalar-client-selector-block/components/ClientDropdown.vue.js +7 -0
  34. package/dist/blocks/scalar-client-selector-block/components/ClientDropdown.vue2.js +125 -0
  35. package/dist/{v2/blocks → blocks}/scalar-client-selector-block/components/ClientSelector.vue.d.ts +1 -1
  36. package/dist/blocks/scalar-client-selector-block/components/ClientSelector.vue.d.ts.map +1 -0
  37. package/dist/blocks/scalar-client-selector-block/components/ClientSelector.vue.js +7 -0
  38. package/dist/blocks/scalar-client-selector-block/components/ClientSelector.vue2.js +141 -0
  39. package/dist/blocks/scalar-client-selector-block/helpers/featured-clients.d.ts.map +1 -0
  40. package/dist/blocks/scalar-client-selector-block/helpers/featured-clients.js +24 -0
  41. package/dist/blocks/scalar-client-selector-block/index.d.ts.map +1 -0
  42. package/dist/{v2/blocks → blocks}/scalar-info-block/components/DownloadLink.vue.d.ts +0 -3
  43. package/dist/blocks/scalar-info-block/components/DownloadLink.vue.d.ts.map +1 -0
  44. package/dist/blocks/scalar-info-block/components/DownloadLink.vue.js +7 -0
  45. package/dist/blocks/scalar-info-block/components/DownloadLink.vue2.js +62 -0
  46. package/dist/{v2/blocks → blocks}/scalar-info-block/components/InfoBlock.vue.d.ts +7 -10
  47. package/dist/blocks/scalar-info-block/components/InfoBlock.vue.d.ts.map +1 -0
  48. package/dist/blocks/scalar-info-block/components/InfoBlock.vue.js +54 -0
  49. package/dist/blocks/scalar-info-block/components/InfoBlock.vue2.js +4 -0
  50. package/dist/blocks/scalar-info-block/components/InfoDescription.vue.d.ts +11 -0
  51. package/dist/blocks/scalar-info-block/components/InfoDescription.vue.d.ts.map +1 -0
  52. package/dist/blocks/scalar-info-block/components/InfoDescription.vue.js +7 -0
  53. package/dist/blocks/scalar-info-block/components/InfoDescription.vue2.js +66 -0
  54. package/dist/blocks/scalar-info-block/components/InfoLinks.vue.d.ts.map +1 -0
  55. package/dist/blocks/scalar-info-block/components/InfoLinks.vue.js +38 -0
  56. package/dist/blocks/scalar-info-block/components/InfoLinks.vue2.js +4 -0
  57. package/dist/blocks/scalar-info-block/components/InfoMarkdownSection.vue.d.ts +10 -0
  58. package/dist/blocks/scalar-info-block/components/InfoMarkdownSection.vue.d.ts.map +1 -0
  59. package/dist/blocks/scalar-info-block/components/InfoMarkdownSection.vue.js +36 -0
  60. package/dist/blocks/scalar-info-block/components/InfoMarkdownSection.vue2.js +4 -0
  61. package/dist/blocks/scalar-info-block/components/InfoVersion.vue.d.ts.map +1 -0
  62. package/dist/blocks/scalar-info-block/components/InfoVersion.vue.js +28 -0
  63. package/dist/blocks/scalar-info-block/components/InfoVersion.vue2.js +4 -0
  64. package/dist/blocks/scalar-info-block/components/IntroductionCard.vue.d.ts.map +1 -0
  65. package/dist/blocks/scalar-info-block/components/IntroductionCard.vue.js +7 -0
  66. package/dist/blocks/scalar-info-block/components/IntroductionCard.vue2.js +19 -0
  67. package/dist/blocks/scalar-info-block/components/IntroductionCardItem.vue.d.ts.map +1 -0
  68. package/dist/blocks/scalar-info-block/components/IntroductionCardItem.vue.js +14 -0
  69. package/dist/{v2/blocks → blocks}/scalar-info-block/components/IntroductionLayout.vue.d.ts +9 -7
  70. package/dist/blocks/scalar-info-block/components/IntroductionLayout.vue.d.ts.map +1 -0
  71. package/dist/blocks/scalar-info-block/components/IntroductionLayout.vue.js +7 -0
  72. package/dist/blocks/scalar-info-block/components/IntroductionLayout.vue2.js +112 -0
  73. package/dist/blocks/scalar-info-block/components/OpenApiVersion.vue.d.ts.map +1 -0
  74. package/dist/blocks/scalar-info-block/components/OpenApiVersion.vue.js +21 -0
  75. package/dist/blocks/scalar-info-block/components/OpenApiVersion.vue2.js +4 -0
  76. package/dist/blocks/scalar-info-block/index.d.ts.map +1 -0
  77. package/dist/blocks/scalar-server-selector-block/components/Selector.vue.d.ts.map +1 -0
  78. package/dist/blocks/scalar-server-selector-block/components/Selector.vue.js +88 -0
  79. package/dist/blocks/scalar-server-selector-block/components/Selector.vue2.js +4 -0
  80. package/dist/blocks/scalar-server-selector-block/components/ServerSelector.vue.d.ts.map +1 -0
  81. package/dist/blocks/scalar-server-selector-block/components/ServerSelector.vue.js +89 -0
  82. package/dist/blocks/scalar-server-selector-block/components/ServerSelector.vue2.js +4 -0
  83. package/dist/blocks/scalar-server-selector-block/index.d.ts.map +1 -0
  84. package/dist/browser/standalone.js +32761 -32285
  85. package/dist/browser/webpack-stats.json +1 -1
  86. package/dist/components/Anchor/Anchor.vue.d.ts +5 -4
  87. package/dist/components/Anchor/Anchor.vue.d.ts.map +1 -1
  88. package/dist/components/Anchor/Anchor.vue.js +45 -46
  89. package/dist/components/Anchor/Anchor.vue2.js +2 -2
  90. package/dist/components/Anchor/WithBreadcrumb.vue.d.ts +2 -0
  91. package/dist/components/Anchor/WithBreadcrumb.vue.d.ts.map +1 -1
  92. package/dist/components/Anchor/WithBreadcrumb.vue.js +2 -2
  93. package/dist/components/Anchor/WithBreadcrumb.vue2.js +31 -33
  94. package/dist/components/ApiReference.vue.d.ts +275 -8
  95. package/dist/components/ApiReference.vue.d.ts.map +1 -1
  96. package/dist/components/ApiReference.vue.js +8 -35
  97. package/dist/components/ApiReference.vue2.js +665 -2
  98. package/dist/components/Badge/Badge.vue.js +4 -4
  99. package/dist/components/Badge/Badge.vue2.js +16 -14
  100. package/dist/components/ClassicHeader.vue.js +14 -11
  101. package/dist/components/Content/ClientLibraries/ClientLibraries.vue.d.ts +1 -1
  102. package/dist/components/Content/ClientLibraries/ClientSelector.vue.d.ts +0 -2
  103. package/dist/components/Content/ClientLibraries/ClientSelector.vue.d.ts.map +1 -1
  104. package/dist/components/Content/Content.vue.d.ts +15 -10
  105. package/dist/components/Content/Content.vue.d.ts.map +1 -1
  106. package/dist/components/Content/Content.vue.js +153 -191
  107. package/dist/components/Content/Content.vue3.js +2 -2
  108. package/dist/components/Content/Models/{Models.vue.d.ts → Model.vue.d.ts} +8 -8
  109. package/dist/components/Content/Models/Model.vue.d.ts.map +1 -0
  110. package/dist/components/Content/Models/Model.vue.js +47 -0
  111. package/dist/components/Content/Models/Model.vue2.js +4 -0
  112. package/dist/{v2/blocks/scalar-sidebar-block/components/SidebarBlock.vue.d.ts → components/Content/Models/ModelTag.vue.d.ts} +12 -11
  113. package/dist/components/Content/Models/ModelTag.vue.d.ts.map +1 -0
  114. package/dist/components/Content/Models/ModelTag.vue.js +82 -0
  115. package/dist/components/Content/Models/ModelTag.vue2.js +4 -0
  116. package/dist/components/Content/Models/{ModernLayout.vue.d.ts → components/ClassicLayout.vue.d.ts} +7 -8
  117. package/dist/components/Content/Models/components/ClassicLayout.vue.d.ts.map +1 -0
  118. package/dist/components/Content/Models/components/ClassicLayout.vue.js +7 -0
  119. package/dist/components/Content/Models/components/ClassicLayout.vue2.js +84 -0
  120. package/dist/components/Content/Models/{ClassicLayout.vue.d.ts → components/ModernLayout.vue.d.ts} +7 -6
  121. package/dist/components/Content/Models/components/ModernLayout.vue.d.ts.map +1 -0
  122. package/dist/components/Content/Models/components/ModernLayout.vue.js +61 -0
  123. package/dist/components/Content/Models/components/ModernLayout.vue2.js +4 -0
  124. package/dist/components/Content/Models/index.d.ts +1 -1
  125. package/dist/components/Content/Models/index.d.ts.map +1 -1
  126. package/dist/components/Content/Operations/TraversedEntry.vue.d.ts +13 -11
  127. package/dist/components/Content/Operations/TraversedEntry.vue.d.ts.map +1 -1
  128. package/dist/components/Content/Operations/TraversedEntry.vue.js +142 -91
  129. package/dist/components/Content/Operations/TraversedEntry.vue2.js +2 -2
  130. package/dist/components/Content/Schema/RenderString.vue.js +19 -6
  131. package/dist/components/Content/Schema/RenderString.vue2.js +2 -2
  132. package/dist/components/Content/Schema/Schema.vue.d.ts +3 -0
  133. package/dist/components/Content/Schema/Schema.vue.d.ts.map +1 -1
  134. package/dist/components/Content/Schema/Schema.vue.js +4 -4
  135. package/dist/components/Content/Schema/Schema.vue2.js +162 -135
  136. package/dist/components/Content/Schema/SchemaComposition.vue.d.ts +3 -0
  137. package/dist/components/Content/Schema/SchemaComposition.vue.d.ts.map +1 -1
  138. package/dist/components/Content/Schema/SchemaComposition.vue.js +88 -71
  139. package/dist/components/Content/Schema/SchemaComposition.vue2.js +2 -2
  140. package/dist/components/Content/Schema/SchemaEnumPropertyItem.vue.d.ts.map +1 -1
  141. package/dist/components/Content/Schema/SchemaEnumPropertyItem.vue.js +4 -4
  142. package/dist/components/Content/Schema/SchemaEnumPropertyItem.vue2.js +20 -14
  143. package/dist/components/Content/Schema/SchemaEnumValues.vue.js +4 -4
  144. package/dist/components/Content/Schema/SchemaEnumValues.vue2.js +90 -60
  145. package/dist/components/Content/Schema/SchemaHeading.vue.js +4 -4
  146. package/dist/components/Content/Schema/SchemaHeading.vue2.js +47 -29
  147. package/dist/components/Content/Schema/SchemaObjectProperties.vue.d.ts +2 -0
  148. package/dist/components/Content/Schema/SchemaObjectProperties.vue.d.ts.map +1 -1
  149. package/dist/components/Content/Schema/SchemaObjectProperties.vue.js +79 -59
  150. package/dist/components/Content/Schema/SchemaObjectProperties.vue2.js +2 -2
  151. package/dist/components/Content/Schema/SchemaProperty.vue.d.ts +3 -1
  152. package/dist/components/Content/Schema/SchemaProperty.vue.d.ts.map +1 -1
  153. package/dist/components/Content/Schema/SchemaProperty.vue.js +4 -4
  154. package/dist/components/Content/Schema/SchemaProperty.vue2.js +228 -149
  155. package/dist/components/Content/Schema/SchemaPropertyDetail.vue.js +4 -4
  156. package/dist/components/Content/Schema/SchemaPropertyDetail.vue2.js +25 -20
  157. package/dist/components/Content/Schema/SchemaPropertyExamples.vue.js +4 -4
  158. package/dist/components/Content/Schema/SchemaPropertyExamples.vue2.js +65 -55
  159. package/dist/components/Content/Schema/SchemaPropertyHeading.vue.js +4 -4
  160. package/dist/components/Content/Schema/SchemaPropertyHeading.vue2.js +301 -206
  161. package/dist/components/Content/Schema/helpers/format-example.js +38 -3
  162. package/dist/components/Content/Schema/helpers/get-ref-name.d.ts +1 -1
  163. package/dist/components/Content/Schema/helpers/get-ref-name.d.ts.map +1 -1
  164. package/dist/components/Content/Schema/helpers/get-ref-name.js +13 -8
  165. package/dist/components/Content/Schema/helpers/get-schema-type.js +54 -33
  166. package/dist/components/Content/Schema/helpers/is-type-object.js +24 -14
  167. package/dist/components/Content/Schema/helpers/merge-all-of-schemas.js +197 -118
  168. package/dist/components/Content/Schema/helpers/optimize-value-for-display.d.ts.map +1 -1
  169. package/dist/components/Content/Schema/helpers/optimize-value-for-display.js +56 -34
  170. package/dist/components/Content/Schema/helpers/schema-composition.js +2 -2
  171. package/dist/components/Content/Schema/helpers/schema-name.js +56 -28
  172. package/dist/components/Content/Schema/helpers/sort-property-names.js +47 -25
  173. package/dist/components/Content/Tags/Tag.vue.d.ts +3 -1
  174. package/dist/components/Content/Tags/Tag.vue.d.ts.map +1 -1
  175. package/dist/components/Content/Tags/Tag.vue.js +35 -29
  176. package/dist/components/Content/Tags/Tag.vue2.js +2 -2
  177. package/dist/components/Content/Tags/{ClassicLayout.vue.d.ts → components/ClassicLayout.vue.d.ts} +5 -2
  178. package/dist/components/Content/Tags/components/ClassicLayout.vue.d.ts.map +1 -0
  179. package/dist/components/Content/Tags/components/ClassicLayout.vue.js +7 -0
  180. package/dist/components/Content/Tags/components/ClassicLayout.vue2.js +57 -0
  181. package/dist/components/Content/Tags/{ModernLayout.vue.d.ts → components/ModernLayout.vue.d.ts} +5 -3
  182. package/dist/components/Content/Tags/components/ModernLayout.vue.d.ts.map +1 -0
  183. package/dist/components/Content/Tags/components/ModernLayout.vue.js +7 -0
  184. package/dist/components/Content/Tags/components/ModernLayout.vue2.js +68 -0
  185. package/dist/components/Content/Tags/{TagSection.vue.d.ts → components/TagSection.vue.d.ts} +2 -0
  186. package/dist/components/Content/Tags/components/TagSection.vue.d.ts.map +1 -0
  187. package/dist/components/Content/Tags/components/TagSection.vue.js +100 -0
  188. package/dist/components/Content/Tags/components/TagSection.vue2.js +4 -0
  189. package/dist/components/GettingStarted.vue.js +4 -4
  190. package/dist/components/GettingStarted.vue2.js +59 -50
  191. package/dist/components/HttpMethod/HttpMethod.vue.js +23 -19
  192. package/dist/components/HttpMethod/HttpMethod.vue2.js +2 -2
  193. package/dist/components/IntersectionObserver.vue.d.ts +2 -2
  194. package/dist/components/IntersectionObserver.vue.js +41 -29
  195. package/dist/components/IntersectionObserver.vue2.js +2 -2
  196. package/dist/components/Lazy/Lazy.vue.d.ts +1 -4
  197. package/dist/components/Lazy/Lazy.vue.d.ts.map +1 -1
  198. package/dist/components/Lazy/Lazy.vue.js +15 -2
  199. package/dist/components/Lazy/Lazy.vue2.js +2 -24
  200. package/dist/components/LinkList/LinkList.vue.js +4 -4
  201. package/dist/components/LinkList/LinkList.vue2.js +41 -25
  202. package/dist/components/LoadingSkeleton.vue.js +4 -4
  203. package/dist/components/LoadingSkeleton.vue2.js +12 -8
  204. package/dist/components/MobileHeader.vue.d.ts +13 -4
  205. package/dist/components/MobileHeader.vue.d.ts.map +1 -1
  206. package/dist/components/MobileHeader.vue.js +58 -5
  207. package/dist/components/MobileHeader.vue2.js +2 -26
  208. package/dist/components/OperationPath.vue.js +4 -4
  209. package/dist/components/OperationPath.vue2.js +21 -14
  210. package/dist/components/OperationsList/OperationsList.vue.d.ts +2 -0
  211. package/dist/components/OperationsList/OperationsList.vue.d.ts.map +1 -1
  212. package/dist/components/OperationsList/OperationsList.vue.js +4 -4
  213. package/dist/components/OperationsList/OperationsList.vue2.js +54 -45
  214. package/dist/components/OperationsList/OperationsListItem.vue.d.ts +2 -0
  215. package/dist/components/OperationsList/OperationsListItem.vue.d.ts.map +1 -1
  216. package/dist/components/OperationsList/OperationsListItem.vue.js +4 -4
  217. package/dist/components/OperationsList/OperationsListItem.vue2.js +56 -48
  218. package/dist/{v2/blocks/scalar-info-block/components/InfoDescription.vue.d.ts → components/RenderPlugins/RenderPlugins.vue.d.ts} +3 -3
  219. package/dist/components/RenderPlugins/RenderPlugins.vue.d.ts.map +1 -0
  220. package/dist/components/RenderPlugins/RenderPlugins.vue.js +43 -0
  221. package/dist/components/RenderPlugins/RenderPlugins.vue2.js +4 -0
  222. package/dist/components/RenderPlugins/index.d.ts +2 -0
  223. package/dist/components/RenderPlugins/index.d.ts.map +1 -0
  224. package/dist/components/ScreenReader.vue.js +4 -4
  225. package/dist/components/ScreenReader.vue2.js +12 -9
  226. package/dist/components/Section/CompactSection.vue.d.ts +11 -6
  227. package/dist/components/Section/CompactSection.vue.d.ts.map +1 -1
  228. package/dist/components/Section/CompactSection.vue.js +4 -4
  229. package/dist/components/Section/CompactSection.vue2.js +47 -48
  230. package/dist/components/Section/Section.vue.d.ts +7 -7
  231. package/dist/components/Section/Section.vue.d.ts.map +1 -1
  232. package/dist/components/Section/Section.vue.js +4 -4
  233. package/dist/components/Section/Section.vue2.js +18 -25
  234. package/dist/components/Section/SectionAccordion.vue.d.ts +13 -9
  235. package/dist/components/Section/SectionAccordion.vue.d.ts.map +1 -1
  236. package/dist/components/Section/SectionAccordion.vue.js +4 -4
  237. package/dist/components/Section/SectionAccordion.vue2.js +64 -63
  238. package/dist/components/Section/SectionColumn.vue.js +9 -8
  239. package/dist/components/Section/SectionColumns.vue.js +9 -8
  240. package/dist/components/Section/SectionContainer.vue.js +4 -4
  241. package/dist/components/Section/SectionContainer.vue2.js +11 -8
  242. package/dist/components/Section/SectionContainerAccordion.vue.d.ts +11 -4
  243. package/dist/components/Section/SectionContainerAccordion.vue.d.ts.map +1 -1
  244. package/dist/components/Section/SectionContainerAccordion.vue.js +4 -4
  245. package/dist/components/Section/SectionContainerAccordion.vue2.js +49 -34
  246. package/dist/components/Section/SectionContent.vue.js +4 -4
  247. package/dist/components/Section/SectionContent.vue2.js +15 -12
  248. package/dist/components/Section/SectionHeader.vue.js +4 -4
  249. package/dist/components/Section/SectionHeader.vue2.js +17 -14
  250. package/dist/components/Section/SectionHeaderTag.vue.js +4 -4
  251. package/dist/components/Section/SectionHeaderTag.vue2.js +12 -10
  252. package/dist/components/SectionFlare/SectionFlare.vue.js +10 -9
  253. package/dist/components/ShowMoreButton.vue.d.ts +0 -1
  254. package/dist/components/ShowMoreButton.vue.d.ts.map +1 -1
  255. package/dist/components/ShowMoreButton.vue.js +4 -4
  256. package/dist/components/ShowMoreButton.vue2.js +25 -21
  257. package/dist/components/index.d.ts +3 -0
  258. package/dist/components/index.d.ts.map +1 -0
  259. package/dist/components/index.js +7 -0
  260. package/dist/consts/urls.js +8 -5
  261. package/dist/features/Operation/Operation.vue.d.ts +8 -4
  262. package/dist/features/Operation/Operation.vue.d.ts.map +1 -1
  263. package/dist/features/Operation/Operation.vue.js +56 -53
  264. package/dist/features/Operation/Operation.vue2.js +2 -2
  265. package/dist/features/Operation/components/ContentTypeSelect.vue.js +64 -55
  266. package/dist/features/Operation/components/ContentTypeSelect.vue2.js +2 -2
  267. package/dist/features/Operation/components/Header.vue.d.ts +2 -0
  268. package/dist/features/Operation/components/Header.vue.d.ts.map +1 -1
  269. package/dist/features/Operation/components/Header.vue.js +21 -17
  270. package/dist/features/Operation/components/Header.vue2.js +2 -2
  271. package/dist/features/Operation/components/Headers.vue.d.ts +2 -0
  272. package/dist/features/Operation/components/Headers.vue.d.ts.map +1 -1
  273. package/dist/features/Operation/components/Headers.vue.js +4 -4
  274. package/dist/features/Operation/components/Headers.vue2.js +58 -52
  275. package/dist/features/Operation/components/OperationParameters.vue.d.ts +2 -0
  276. package/dist/features/Operation/components/OperationParameters.vue.d.ts.map +1 -1
  277. package/dist/features/Operation/components/OperationParameters.vue.js +68 -60
  278. package/dist/features/Operation/components/OperationParameters.vue2.js +2 -2
  279. package/dist/features/Operation/components/OperationResponses.vue.d.ts +2 -0
  280. package/dist/features/Operation/components/OperationResponses.vue.d.ts.map +1 -1
  281. package/dist/features/Operation/components/OperationResponses.vue.js +30 -19
  282. package/dist/features/Operation/components/OperationResponses.vue2.js +2 -2
  283. package/dist/features/Operation/components/ParameterList.vue.d.ts +2 -0
  284. package/dist/features/Operation/components/ParameterList.vue.d.ts.map +1 -1
  285. package/dist/features/Operation/components/ParameterList.vue.js +40 -20
  286. package/dist/features/Operation/components/ParameterList.vue2.js +2 -2
  287. package/dist/features/Operation/components/ParameterListItem.vue.d.ts +2 -0
  288. package/dist/features/Operation/components/ParameterListItem.vue.d.ts.map +1 -1
  289. package/dist/features/Operation/components/ParameterListItem.vue.js +4 -4
  290. package/dist/features/Operation/components/ParameterListItem.vue2.js +120 -97
  291. package/dist/features/Operation/components/RequestBody.vue.d.ts +2 -0
  292. package/dist/features/Operation/components/RequestBody.vue.d.ts.map +1 -1
  293. package/dist/features/Operation/components/RequestBody.vue.js +4 -4
  294. package/dist/features/Operation/components/RequestBody.vue2.js +126 -99
  295. package/dist/features/Operation/components/callbacks/Callback.vue.d.ts +2 -1
  296. package/dist/features/Operation/components/callbacks/Callback.vue.d.ts.map +1 -1
  297. package/dist/features/Operation/components/callbacks/Callback.vue.js +4 -4
  298. package/dist/features/Operation/components/callbacks/Callback.vue2.js +48 -39
  299. package/dist/features/Operation/components/callbacks/Callbacks.vue.d.ts +2 -0
  300. package/dist/features/Operation/components/callbacks/Callbacks.vue.d.ts.map +1 -1
  301. package/dist/features/Operation/components/callbacks/Callbacks.vue.js +41 -26
  302. package/dist/features/Operation/components/callbacks/Callbacks.vue2.js +2 -2
  303. package/dist/features/Operation/helpers/combine-params.js +10 -9
  304. package/dist/features/Operation/helpers/get-first-server.js +19 -14
  305. package/dist/features/Operation/layouts/ClassicLayout.vue.d.ts +4 -1
  306. package/dist/features/Operation/layouts/ClassicLayout.vue.d.ts.map +1 -1
  307. package/dist/features/Operation/layouts/ClassicLayout.vue.js +4 -4
  308. package/dist/features/Operation/layouts/ClassicLayout.vue2.js +207 -184
  309. package/dist/features/Operation/layouts/ModernLayout.vue.d.ts +3 -1
  310. package/dist/features/Operation/layouts/ModernLayout.vue.d.ts.map +1 -1
  311. package/dist/features/Operation/layouts/ModernLayout.vue.js +4 -4
  312. package/dist/features/Operation/layouts/ModernLayout.vue2.js +230 -214
  313. package/dist/features/Search/components/SearchButton.vue.d.ts +3 -0
  314. package/dist/features/Search/components/SearchButton.vue.d.ts.map +1 -1
  315. package/dist/features/Search/components/SearchButton.vue.js +77 -54
  316. package/dist/features/Search/components/SearchButton.vue2.js +2 -2
  317. package/dist/features/Search/components/SearchModal.vue.d.ts +3 -1
  318. package/dist/features/Search/components/SearchModal.vue.d.ts.map +1 -1
  319. package/dist/features/Search/components/SearchModal.vue.js +4 -4
  320. package/dist/features/Search/components/SearchModal.vue2.js +104 -181
  321. package/dist/features/Search/components/SearchResult.vue.d.ts +10 -0
  322. package/dist/features/Search/components/SearchResult.vue.d.ts.map +1 -0
  323. package/dist/features/Search/components/SearchResult.vue.js +84 -0
  324. package/dist/features/Search/components/SearchResult.vue2.js +4 -0
  325. package/dist/features/Search/helpers/create-fuse-instance.d.ts +1 -1
  326. package/dist/features/Search/helpers/create-fuse-instance.d.ts.map +1 -1
  327. package/dist/features/Search/helpers/create-fuse-instance.js +10 -10
  328. package/dist/features/Search/helpers/create-search-index.d.ts +1 -2
  329. package/dist/features/Search/helpers/create-search-index.d.ts.map +1 -1
  330. package/dist/features/Search/helpers/create-search-index.js +69 -61
  331. package/dist/features/Search/hooks/useSearchIndex.d.ts +6 -7
  332. package/dist/features/Search/hooks/useSearchIndex.d.ts.map +1 -1
  333. package/dist/features/Search/hooks/useSearchIndex.js +26 -39
  334. package/dist/features/Search/types.d.ts +3 -3
  335. package/dist/features/Search/types.d.ts.map +1 -1
  336. package/dist/features/example-responses/ExampleResponse.vue.js +4 -4
  337. package/dist/features/example-responses/ExampleResponse.vue2.js +48 -34
  338. package/dist/features/example-responses/ExampleResponseTab.vue.js +4 -4
  339. package/dist/features/example-responses/ExampleResponseTab.vue2.js +20 -18
  340. package/dist/features/example-responses/ExampleResponseTabList.vue.js +4 -4
  341. package/dist/features/example-responses/ExampleResponseTabList.vue2.js +30 -27
  342. package/dist/features/example-responses/ExampleResponses.vue.js +4 -4
  343. package/dist/features/example-responses/ExampleResponses.vue2.js +160 -138
  344. package/dist/features/example-responses/helpers/get-resolved-ref-deep.js +31 -21
  345. package/dist/features/external-docs/ExternalDocs.vue.js +28 -22
  346. package/dist/features/external-docs/ExternalDocs.vue2.js +2 -2
  347. package/dist/features/info-object/Contact.vue.js +29 -24
  348. package/dist/features/info-object/Contact.vue2.js +2 -2
  349. package/dist/features/info-object/License.vue.js +32 -26
  350. package/dist/features/info-object/License.vue2.js +2 -2
  351. package/dist/features/info-object/TermsOfService.vue.js +24 -20
  352. package/dist/features/info-object/TermsOfService.vue2.js +2 -2
  353. package/dist/features/multiple-documents/DocumentSelector.vue.d.ts +7 -5
  354. package/dist/features/multiple-documents/DocumentSelector.vue.d.ts.map +1 -1
  355. package/dist/features/multiple-documents/DocumentSelector.vue.js +37 -34
  356. package/dist/features/multiple-documents/DocumentSelector.vue2.js +2 -2
  357. package/dist/features/specification-extension/SpecificationExtension.vue.js +2 -2
  358. package/dist/features/specification-extension/SpecificationExtension.vue2.js +38 -32
  359. package/dist/features/specification-extension/helpers.js +7 -2
  360. package/dist/features/test-request-button/TestRequestButton.vue.d.ts.map +1 -1
  361. package/dist/features/test-request-button/TestRequestButton.vue.js +4 -4
  362. package/dist/features/test-request-button/TestRequestButton.vue2.js +33 -30
  363. package/dist/features/toolbar/ApiReferenceToolbar.vue.js +47 -30
  364. package/dist/features/toolbar/ApiReferenceToolbar.vue2.js +2 -2
  365. package/dist/features/toolbar/ApiReferenceToolbarBlurb.vue.js +9 -8
  366. package/dist/features/toolbar/ApiReferenceToolbarConfig.vue.js +90 -82
  367. package/dist/features/toolbar/ApiReferenceToolbarConfig.vue2.js +2 -2
  368. package/dist/features/toolbar/ApiReferenceToolbarConfigLayout.vue.js +24 -18
  369. package/dist/features/toolbar/ApiReferenceToolbarConfigLayout.vue2.js +2 -2
  370. package/dist/features/toolbar/ApiReferenceToolbarConfigLayoutOptions.vue.js +107 -110
  371. package/dist/features/toolbar/ApiReferenceToolbarConfigLayoutOptions.vue2.js +2 -2
  372. package/dist/features/toolbar/ApiReferenceToolbarConfigTheme.vue.d.ts.map +1 -1
  373. package/dist/features/toolbar/ApiReferenceToolbarConfigTheme.vue.js +34 -30
  374. package/dist/features/toolbar/ApiReferenceToolbarConfigTheme.vue2.js +2 -2
  375. package/dist/features/toolbar/ApiReferenceToolbarPopover.vue.d.ts.map +1 -1
  376. package/dist/features/toolbar/ApiReferenceToolbarPopover.vue.js +45 -37
  377. package/dist/features/toolbar/ApiReferenceToolbarPopover.vue2.js +2 -2
  378. package/dist/features/toolbar/ApiReferenceToolbarRegisterButton.vue.js +52 -39
  379. package/dist/features/toolbar/ApiReferenceToolbarRegisterButton.vue2.js +2 -2
  380. package/dist/features/toolbar/ApiReferenceToolbarSdks.vue.js +70 -65
  381. package/dist/features/toolbar/ApiReferenceToolbarSdks.vue2.js +2 -2
  382. package/dist/features/toolbar/ApiReferenceToolbarShare.vue.js +36 -34
  383. package/dist/features/toolbar/ApiReferenceToolbarShare.vue2.js +2 -2
  384. package/dist/features/toolbar/ApiReferenceToolbarShareRegister.vue.js +50 -47
  385. package/dist/features/toolbar/ApiReferenceToolbarShareRegister.vue2.js +2 -2
  386. package/dist/features/toolbar/ApiReferenceToolbarShareTemporary.vue.js +75 -68
  387. package/dist/features/toolbar/ApiReferenceToolbarShareTemporary.vue2.js +2 -2
  388. package/dist/features/toolbar/ApiReferenceToolbarTitle.vue.js +49 -43
  389. package/dist/features/toolbar/ApiReferenceToolbarTitle.vue2.js +2 -2
  390. package/dist/features/x-badges/XBadges.vue.d.ts.map +1 -1
  391. package/dist/features/x-badges/XBadges.vue.js +26 -17
  392. package/dist/features/x-badges/XBadges.vue2.js +2 -2
  393. package/dist/helpers/convert-security-scheme.js +32 -21
  394. package/dist/helpers/download.d.ts.map +1 -0
  395. package/dist/helpers/download.js +45 -0
  396. package/dist/helpers/get-document-name.d.ts.map +1 -0
  397. package/dist/helpers/id-routing.d.ts +28 -0
  398. package/dist/helpers/id-routing.d.ts.map +1 -0
  399. package/dist/helpers/id-routing.js +57 -0
  400. package/dist/helpers/index.d.ts +10 -0
  401. package/dist/helpers/index.d.ts.map +1 -0
  402. package/dist/helpers/index.js +23 -0
  403. package/dist/helpers/lazy-bus.d.ts +39 -0
  404. package/dist/helpers/lazy-bus.d.ts.map +1 -0
  405. package/dist/helpers/lazy-bus.js +161 -0
  406. package/dist/helpers/map-config-to-client-store.d.ts +72 -0
  407. package/dist/helpers/map-config-to-client-store.d.ts.map +1 -0
  408. package/dist/helpers/map-config-to-client-store.js +146 -0
  409. package/dist/helpers/map-config-to-workspace-store.d.ts +9 -0
  410. package/dist/helpers/map-config-to-workspace-store.d.ts.map +1 -0
  411. package/dist/helpers/map-config-to-workspace-store.js +47 -0
  412. package/dist/helpers/map-configuration.d.ts.map +1 -0
  413. package/dist/helpers/map-configuration.js +52 -0
  414. package/dist/helpers/markdown.d.ts.map +1 -0
  415. package/dist/helpers/normalize-configurations.d.ts +42 -0
  416. package/dist/helpers/normalize-configurations.d.ts.map +1 -0
  417. package/dist/helpers/normalize-configurations.js +69 -0
  418. package/dist/helpers/openapi.d.ts.map +1 -0
  419. package/dist/helpers/openapi.js +119 -0
  420. package/dist/{features/toolbar/uploadTempDocument.d.ts → helpers/upload-temp-document.d.ts} +1 -1
  421. package/dist/helpers/upload-temp-document.d.ts.map +1 -0
  422. package/dist/helpers/upload-temp-document.js +24 -0
  423. package/dist/hooks/use-intersection.d.ts +3 -0
  424. package/dist/hooks/use-intersection.d.ts.map +1 -0
  425. package/dist/hooks/use-intersection.js +32 -0
  426. package/dist/hooks/use-legacy-store-events.d.ts.map +1 -0
  427. package/dist/hooks/use-legacy-store-events.js +91 -0
  428. package/dist/hooks/use-workspace-store-events.d.ts +4 -0
  429. package/dist/hooks/use-workspace-store-events.d.ts.map +1 -0
  430. package/dist/hooks/use-workspace-store-events.js +68 -0
  431. package/dist/index.d.ts +7 -7
  432. package/dist/index.d.ts.map +1 -1
  433. package/dist/index.js +14 -45
  434. package/dist/plugins/hooks/usePluginManager.js +11 -7
  435. package/dist/plugins/plugin-manager.d.ts +5 -1
  436. package/dist/plugins/plugin-manager.d.ts.map +1 -1
  437. package/dist/plugins/plugin-manager.js +31 -13
  438. package/dist/standalone/lib/html-api.d.ts.map +1 -1
  439. package/dist/standalone/lib/html-api.js +59 -32
  440. package/dist/style.css +11893 -1
  441. package/package.json +47 -36
  442. package/dist/components/ApiReferenceContent.vue.d.ts +0 -34
  443. package/dist/components/ApiReferenceContent.vue.d.ts.map +0 -1
  444. package/dist/components/ApiReferenceContent.vue.js +0 -8
  445. package/dist/components/ApiReferenceContent.vue2.js +0 -148
  446. package/dist/components/ApiReferenceLayout.vue.d.ts +0 -34
  447. package/dist/components/ApiReferenceLayout.vue.d.ts.map +0 -1
  448. package/dist/components/ApiReferenceLayout.vue.js +0 -10
  449. package/dist/components/ApiReferenceLayout.vue2.js +0 -316
  450. package/dist/components/Content/IntroductionSection.vue.d.ts +0 -18
  451. package/dist/components/Content/IntroductionSection.vue.d.ts.map +0 -1
  452. package/dist/components/Content/IntroductionSection.vue.js +0 -26
  453. package/dist/components/Content/IntroductionSection.vue2.js +0 -4
  454. package/dist/components/Content/Models/ClassicLayout.vue.d.ts.map +0 -1
  455. package/dist/components/Content/Models/ClassicLayout.vue.js +0 -7
  456. package/dist/components/Content/Models/ClassicLayout.vue2.js +0 -90
  457. package/dist/components/Content/Models/Models.vue.d.ts.map +0 -1
  458. package/dist/components/Content/Models/Models.vue.js +0 -42
  459. package/dist/components/Content/Models/Models.vue2.js +0 -4
  460. package/dist/components/Content/Models/ModernLayout.vue.d.ts.map +0 -1
  461. package/dist/components/Content/Models/ModernLayout.vue.js +0 -7
  462. package/dist/components/Content/Models/ModernLayout.vue2.js +0 -102
  463. package/dist/components/Content/Operations/get-current-index.d.ts +0 -4
  464. package/dist/components/Content/Operations/get-current-index.d.ts.map +0 -1
  465. package/dist/components/Content/Operations/get-current-index.js +0 -16
  466. package/dist/components/Content/Tags/ClassicLayout.vue.d.ts.map +0 -1
  467. package/dist/components/Content/Tags/ClassicLayout.vue.js +0 -7
  468. package/dist/components/Content/Tags/ClassicLayout.vue2.js +0 -48
  469. package/dist/components/Content/Tags/ModernLayout.vue.d.ts.map +0 -1
  470. package/dist/components/Content/Tags/ModernLayout.vue.js +0 -7
  471. package/dist/components/Content/Tags/ModernLayout.vue2.js +0 -69
  472. package/dist/components/Content/Tags/TagSection.vue.d.ts.map +0 -1
  473. package/dist/components/Content/Tags/TagSection.vue.js +0 -95
  474. package/dist/components/Content/Tags/TagSection.vue2.js +0 -4
  475. package/dist/components/Lazy/index.d.ts +0 -3
  476. package/dist/components/Lazy/index.d.ts.map +0 -1
  477. package/dist/components/Lazy/lazyBus.d.ts +0 -10
  478. package/dist/components/Lazy/lazyBus.d.ts.map +0 -1
  479. package/dist/components/Lazy/lazyBus.js +0 -7
  480. package/dist/features/api-client-modal/ApiClientModal.vue.d.ts +0 -9
  481. package/dist/features/api-client-modal/ApiClientModal.vue.d.ts.map +0 -1
  482. package/dist/features/api-client-modal/ApiClientModal.vue.js +0 -83
  483. package/dist/features/api-client-modal/ApiClientModal.vue2.js +0 -4
  484. package/dist/features/api-client-modal/index.d.ts +0 -3
  485. package/dist/features/api-client-modal/index.d.ts.map +0 -1
  486. package/dist/features/api-client-modal/useApiClient.d.ts +0 -8073
  487. package/dist/features/api-client-modal/useApiClient.d.ts.map +0 -1
  488. package/dist/features/api-client-modal/useApiClient.js +0 -12
  489. package/dist/features/document-source/hooks/useDocumentFetcher.d.ts +0 -11
  490. package/dist/features/document-source/hooks/useDocumentFetcher.d.ts.map +0 -1
  491. package/dist/features/document-source/hooks/useDocumentFetcher.js +0 -37
  492. package/dist/features/document-source/hooks/useDocumentSource.d.ts +0 -19
  493. package/dist/features/document-source/hooks/useDocumentSource.d.ts.map +0 -1
  494. package/dist/features/document-source/hooks/useDocumentSource.js +0 -73
  495. package/dist/features/document-source/index.d.ts +0 -2
  496. package/dist/features/document-source/index.d.ts.map +0 -1
  497. package/dist/features/multiple-documents/index.d.ts +0 -3
  498. package/dist/features/multiple-documents/index.d.ts.map +0 -1
  499. package/dist/features/multiple-documents/useMultipleDocuments.d.ts +0 -36
  500. package/dist/features/multiple-documents/useMultipleDocuments.d.ts.map +0 -1
  501. package/dist/features/multiple-documents/useMultipleDocuments.js +0 -91
  502. package/dist/features/toolbar/uploadTempDocument.d.ts.map +0 -1
  503. package/dist/features/toolbar/uploadTempDocument.js +0 -21
  504. package/dist/helpers/test-utils.d.ts +0 -60
  505. package/dist/helpers/test-utils.d.ts.map +0 -1
  506. package/dist/hooks/useFreezing.d.ts +0 -6
  507. package/dist/hooks/useFreezing.d.ts.map +0 -1
  508. package/dist/hooks/useFreezing.js +0 -29
  509. package/dist/hooks/useNavState.d.ts +0 -54
  510. package/dist/hooks/useNavState.d.ts.map +0 -1
  511. package/dist/hooks/useNavState.js +0 -62
  512. package/dist/libs/download.d.ts.map +0 -1
  513. package/dist/libs/download.js +0 -28
  514. package/dist/libs/markdown.d.ts.map +0 -1
  515. package/dist/libs/openapi.d.ts.map +0 -1
  516. package/dist/libs/openapi.js +0 -75
  517. package/dist/types.d.ts +0 -71
  518. package/dist/types.d.ts.map +0 -1
  519. package/dist/v2/ApiReferenceWorkspace.vue.d.ts +0 -31
  520. package/dist/v2/ApiReferenceWorkspace.vue.d.ts.map +0 -1
  521. package/dist/v2/ApiReferenceWorkspace.vue.js +0 -194
  522. package/dist/v2/ApiReferenceWorkspace.vue3.js +0 -5
  523. package/dist/v2/blocks/scalar-auth-selector-block/components/AuthSelector.vue.d.ts +0 -20
  524. package/dist/v2/blocks/scalar-auth-selector-block/components/AuthSelector.vue.d.ts.map +0 -1
  525. package/dist/v2/blocks/scalar-auth-selector-block/components/AuthSelector.vue.js +0 -7
  526. package/dist/v2/blocks/scalar-auth-selector-block/components/AuthSelector.vue2.js +0 -203
  527. package/dist/v2/blocks/scalar-auth-selector-block/components/DeleteRequestAuthModal.vue.d.ts.map +0 -1
  528. package/dist/v2/blocks/scalar-auth-selector-block/components/DeleteRequestAuthModal.vue.js +0 -57
  529. package/dist/v2/blocks/scalar-auth-selector-block/components/DeleteRequestAuthModal.vue2.js +0 -4
  530. package/dist/v2/blocks/scalar-auth-selector-block/components/OAuth2.vue.d.ts.map +0 -1
  531. package/dist/v2/blocks/scalar-auth-selector-block/components/OAuth2.vue.js +0 -266
  532. package/dist/v2/blocks/scalar-auth-selector-block/components/OAuth2.vue2.js +0 -4
  533. package/dist/v2/blocks/scalar-auth-selector-block/components/OAuthScopesInput.vue.d.ts.map +0 -1
  534. package/dist/v2/blocks/scalar-auth-selector-block/components/OAuthScopesInput.vue.js +0 -135
  535. package/dist/v2/blocks/scalar-auth-selector-block/components/OAuthScopesInput.vue2.js +0 -4
  536. package/dist/v2/blocks/scalar-auth-selector-block/components/RequestAuthDataTable.vue.d.ts.map +0 -1
  537. package/dist/v2/blocks/scalar-auth-selector-block/components/RequestAuthDataTable.vue.js +0 -7
  538. package/dist/v2/blocks/scalar-auth-selector-block/components/RequestAuthDataTable.vue2.js +0 -96
  539. package/dist/v2/blocks/scalar-auth-selector-block/components/RequestAuthDataTableInput.vue.d.ts.map +0 -1
  540. package/dist/v2/blocks/scalar-auth-selector-block/components/RequestAuthDataTableInput.vue.js +0 -50
  541. package/dist/v2/blocks/scalar-auth-selector-block/components/RequestAuthDataTableInput.vue2.js +0 -4
  542. package/dist/v2/blocks/scalar-auth-selector-block/components/RequestAuthTab.vue.d.ts.map +0 -1
  543. package/dist/v2/blocks/scalar-auth-selector-block/components/RequestAuthTab.vue.js +0 -253
  544. package/dist/v2/blocks/scalar-auth-selector-block/components/RequestAuthTab.vue2.js +0 -4
  545. package/dist/v2/blocks/scalar-auth-selector-block/helpers/filter-security-requirements.d.ts.map +0 -1
  546. package/dist/v2/blocks/scalar-auth-selector-block/helpers/update-scheme.d.ts.map +0 -1
  547. package/dist/v2/blocks/scalar-auth-selector-block/helpers/update-scheme.js +0 -21
  548. package/dist/v2/blocks/scalar-auth-selector-block/index.d.ts.map +0 -1
  549. package/dist/v2/blocks/scalar-client-selector-block/components/ClientDropdown.vue.d.ts.map +0 -1
  550. package/dist/v2/blocks/scalar-client-selector-block/components/ClientDropdown.vue.js +0 -7
  551. package/dist/v2/blocks/scalar-client-selector-block/components/ClientDropdown.vue2.js +0 -112
  552. package/dist/v2/blocks/scalar-client-selector-block/components/ClientSelector.vue.d.ts.map +0 -1
  553. package/dist/v2/blocks/scalar-client-selector-block/components/ClientSelector.vue.js +0 -7
  554. package/dist/v2/blocks/scalar-client-selector-block/components/ClientSelector.vue2.js +0 -119
  555. package/dist/v2/blocks/scalar-client-selector-block/helpers/featured-clients.d.ts.map +0 -1
  556. package/dist/v2/blocks/scalar-client-selector-block/helpers/featured-clients.js +0 -17
  557. package/dist/v2/blocks/scalar-client-selector-block/index.d.ts.map +0 -1
  558. package/dist/v2/blocks/scalar-info-block/components/DownloadLink.vue.d.ts.map +0 -1
  559. package/dist/v2/blocks/scalar-info-block/components/DownloadLink.vue.js +0 -7
  560. package/dist/v2/blocks/scalar-info-block/components/DownloadLink.vue2.js +0 -69
  561. package/dist/v2/blocks/scalar-info-block/components/InfoBlock.vue.d.ts.map +0 -1
  562. package/dist/v2/blocks/scalar-info-block/components/InfoBlock.vue.js +0 -54
  563. package/dist/v2/blocks/scalar-info-block/components/InfoBlock.vue2.js +0 -4
  564. package/dist/v2/blocks/scalar-info-block/components/InfoDescription.vue.d.ts.map +0 -1
  565. package/dist/v2/blocks/scalar-info-block/components/InfoDescription.vue.js +0 -7
  566. package/dist/v2/blocks/scalar-info-block/components/InfoDescription.vue2.js +0 -72
  567. package/dist/v2/blocks/scalar-info-block/components/InfoLinks.vue.d.ts.map +0 -1
  568. package/dist/v2/blocks/scalar-info-block/components/InfoLinks.vue.js +0 -36
  569. package/dist/v2/blocks/scalar-info-block/components/InfoLinks.vue2.js +0 -4
  570. package/dist/v2/blocks/scalar-info-block/components/InfoVersion.vue.d.ts.map +0 -1
  571. package/dist/v2/blocks/scalar-info-block/components/InfoVersion.vue.js +0 -25
  572. package/dist/v2/blocks/scalar-info-block/components/InfoVersion.vue2.js +0 -4
  573. package/dist/v2/blocks/scalar-info-block/components/IntroductionCard.vue.d.ts.map +0 -1
  574. package/dist/v2/blocks/scalar-info-block/components/IntroductionCard.vue.js +0 -7
  575. package/dist/v2/blocks/scalar-info-block/components/IntroductionCard.vue2.js +0 -17
  576. package/dist/v2/blocks/scalar-info-block/components/IntroductionCardItem.vue.d.ts.map +0 -1
  577. package/dist/v2/blocks/scalar-info-block/components/IntroductionCardItem.vue.js +0 -13
  578. package/dist/v2/blocks/scalar-info-block/components/IntroductionLayout.vue.d.ts.map +0 -1
  579. package/dist/v2/blocks/scalar-info-block/components/IntroductionLayout.vue.js +0 -7
  580. package/dist/v2/blocks/scalar-info-block/components/IntroductionLayout.vue2.js +0 -102
  581. package/dist/v2/blocks/scalar-info-block/components/OpenApiVersion.vue.d.ts.map +0 -1
  582. package/dist/v2/blocks/scalar-info-block/components/OpenApiVersion.vue.js +0 -19
  583. package/dist/v2/blocks/scalar-info-block/components/OpenApiVersion.vue2.js +0 -4
  584. package/dist/v2/blocks/scalar-info-block/index.d.ts.map +0 -1
  585. package/dist/v2/blocks/scalar-server-selector-block/components/Selector.vue.d.ts.map +0 -1
  586. package/dist/v2/blocks/scalar-server-selector-block/components/Selector.vue.js +0 -75
  587. package/dist/v2/blocks/scalar-server-selector-block/components/Selector.vue2.js +0 -4
  588. package/dist/v2/blocks/scalar-server-selector-block/components/ServerSelector.vue.d.ts.map +0 -1
  589. package/dist/v2/blocks/scalar-server-selector-block/components/ServerSelector.vue.js +0 -69
  590. package/dist/v2/blocks/scalar-server-selector-block/components/ServerSelector.vue2.js +0 -4
  591. package/dist/v2/blocks/scalar-server-selector-block/index.d.ts.map +0 -1
  592. package/dist/v2/blocks/scalar-sidebar-block/components/SidebarBlock.vue.d.ts.map +0 -1
  593. package/dist/v2/blocks/scalar-sidebar-block/components/SidebarBlock.vue.js +0 -7
  594. package/dist/v2/blocks/scalar-sidebar-block/components/SidebarBlock.vue2.js +0 -131
  595. package/dist/v2/blocks/scalar-sidebar-block/components/SidebarElement.vue.d.ts +0 -35
  596. package/dist/v2/blocks/scalar-sidebar-block/components/SidebarElement.vue.d.ts.map +0 -1
  597. package/dist/v2/blocks/scalar-sidebar-block/components/SidebarElement.vue.js +0 -7
  598. package/dist/v2/blocks/scalar-sidebar-block/components/SidebarElement.vue2.js +0 -118
  599. package/dist/v2/blocks/scalar-sidebar-block/components/SidebarGroup.vue.d.ts +0 -16
  600. package/dist/v2/blocks/scalar-sidebar-block/components/SidebarGroup.vue.d.ts.map +0 -1
  601. package/dist/v2/blocks/scalar-sidebar-block/components/SidebarGroup.vue.js +0 -7
  602. package/dist/v2/blocks/scalar-sidebar-block/components/SidebarGroup.vue2.js +0 -18
  603. package/dist/v2/blocks/scalar-sidebar-block/components/SidebarHttpBadge.vue.d.ts +0 -17
  604. package/dist/v2/blocks/scalar-sidebar-block/components/SidebarHttpBadge.vue.d.ts.map +0 -1
  605. package/dist/v2/blocks/scalar-sidebar-block/components/SidebarHttpBadge.vue.js +0 -7
  606. package/dist/v2/blocks/scalar-sidebar-block/components/SidebarHttpBadge.vue2.js +0 -29
  607. package/dist/v2/blocks/scalar-sidebar-block/helpers/create-sidebar.d.ts +0 -23
  608. package/dist/v2/blocks/scalar-sidebar-block/helpers/create-sidebar.d.ts.map +0 -1
  609. package/dist/v2/blocks/scalar-sidebar-block/helpers/create-sidebar.js +0 -35
  610. package/dist/v2/blocks/scalar-sidebar-block/helpers/generate-reverse-index.d.ts +0 -9
  611. package/dist/v2/blocks/scalar-sidebar-block/helpers/generate-reverse-index.d.ts.map +0 -1
  612. package/dist/v2/blocks/scalar-sidebar-block/helpers/generate-reverse-index.js +0 -9
  613. package/dist/v2/blocks/scalar-sidebar-block/hooks/useSidebar.d.ts +0 -18
  614. package/dist/v2/blocks/scalar-sidebar-block/hooks/useSidebar.d.ts.map +0 -1
  615. package/dist/v2/blocks/scalar-sidebar-block/hooks/useSidebar.js +0 -18
  616. package/dist/v2/blocks/scalar-sidebar-block/index.d.ts +0 -4
  617. package/dist/v2/blocks/scalar-sidebar-block/index.d.ts.map +0 -1
  618. package/dist/v2/helpers/get-document-name.d.ts.map +0 -1
  619. package/dist/v2/helpers/get-document-name.js +0 -15
  620. package/dist/v2/helpers/map-configuration.d.ts.map +0 -1
  621. package/dist/v2/helpers/map-configuration.js +0 -50
  622. package/dist/v2/helpers/normalize-content.d.ts +0 -3
  623. package/dist/v2/helpers/normalize-content.d.ts.map +0 -1
  624. package/dist/v2/helpers/normalize-content.js +0 -8
  625. package/dist/v2/hooks/use-legacy-store-events.d.ts.map +0 -1
  626. package/dist/v2/hooks/use-legacy-store-events.js +0 -61
  627. package/dist/v2/hooks/use-workspace-store-events.d.ts +0 -5
  628. package/dist/v2/hooks/use-workspace-store-events.d.ts.map +0 -1
  629. package/dist/v2/hooks/use-workspace-store-events.js +0 -40
  630. package/dist/v2/styles.d.ts +0 -2
  631. package/dist/v2/styles.d.ts.map +0 -1
  632. /package/dist/{v2/blocks → blocks}/scalar-auth-selector-block/components/OAuth2.vue.d.ts +0 -0
  633. /package/dist/{v2/blocks → blocks}/scalar-auth-selector-block/components/OAuthScopesInput.vue.d.ts +0 -0
  634. /package/dist/{v2/blocks → blocks}/scalar-auth-selector-block/components/RequestAuthDataTable.vue.d.ts +0 -0
  635. /package/dist/{v2/blocks → blocks}/scalar-auth-selector-block/components/RequestAuthTab.vue.d.ts +0 -0
  636. /package/dist/{v2/blocks → blocks}/scalar-auth-selector-block/helpers/filter-security-requirements.d.ts +0 -0
  637. /package/dist/{v2/blocks → blocks}/scalar-auth-selector-block/helpers/update-scheme.d.ts +0 -0
  638. /package/dist/{v2/blocks → blocks}/scalar-auth-selector-block/index.d.ts +0 -0
  639. /package/dist/{v2/blocks → blocks}/scalar-client-selector-block/helpers/featured-clients.d.ts +0 -0
  640. /package/dist/{v2/blocks → blocks}/scalar-client-selector-block/index.d.ts +0 -0
  641. /package/dist/{v2/blocks → blocks}/scalar-info-block/components/InfoLinks.vue.d.ts +0 -0
  642. /package/dist/{v2/blocks → blocks}/scalar-info-block/components/InfoVersion.vue.d.ts +0 -0
  643. /package/dist/{v2/blocks → blocks}/scalar-info-block/components/IntroductionCard.vue.d.ts +0 -0
  644. /package/dist/{v2/blocks → blocks}/scalar-info-block/components/IntroductionCardItem.vue.d.ts +0 -0
  645. /package/dist/{v2/blocks → blocks}/scalar-info-block/components/OpenApiVersion.vue.d.ts +0 -0
  646. /package/dist/{v2/blocks → blocks}/scalar-info-block/index.d.ts +0 -0
  647. /package/dist/{v2/blocks → blocks}/scalar-server-selector-block/components/Selector.vue.d.ts +0 -0
  648. /package/dist/{v2/blocks → blocks}/scalar-server-selector-block/components/ServerSelector.vue.d.ts +0 -0
  649. /package/dist/{v2/blocks → blocks}/scalar-server-selector-block/index.d.ts +0 -0
  650. /package/dist/{libs → helpers}/download.d.ts +0 -0
  651. /package/dist/{v2/helpers → helpers}/get-document-name.d.ts +0 -0
  652. /package/dist/{v2/helpers → helpers}/map-configuration.d.ts +0 -0
  653. /package/dist/{libs → helpers}/markdown.d.ts +0 -0
  654. /package/dist/{libs → helpers}/openapi.d.ts +0 -0
  655. /package/dist/{v2/hooks → hooks}/use-legacy-store-events.d.ts +0 -0
@@ -1,27 +1,32 @@
1
- import { defineComponent as g, computed as v, useId as B, createBlock as a, openBlock as i, unref as o, withCtx as t, createVNode as r, createElementVNode as n, createCommentVNode as s, createTextVNode as l, toDisplayString as p, normalizeClass as b, createSlots as C } from "vue";
2
- import { OperationCodeSample as P } from "@scalar/api-client/v2/blocks/operation-code-sample";
3
- import { ScalarMarkdown as w, ScalarErrorBoundary as d } from "@scalar/components";
4
- import { ScalarIconWebhooksLogo as R } from "@scalar/icons";
5
- import { getOperationStability as y, getOperationStabilityColor as q, isOperationDeprecated as O } from "@scalar/oas-utils/helpers";
6
- import { getResolvedRef as I } from "@scalar/workspace-store/helpers/get-resolved-ref";
7
- import W from "../../../components/OperationPath.vue.js";
8
- import T from "../components/callbacks/Callbacks.vue.js";
9
- import $ from "../components/OperationParameters.vue.js";
10
- import D from "../components/OperationResponses.vue.js";
11
- import F from "../../../components/Section/Section.vue.js";
12
- import L from "../../../components/Section/SectionContent.vue.js";
13
- import m from "../../../components/Badge/Badge.vue.js";
14
- import k from "../../x-badges/XBadges.vue.js";
15
- import N from "../../../components/Section/SectionHeader.vue.js";
16
- import V from "../../../components/Anchor/Anchor.vue.js";
17
- import E from "../../../components/Section/SectionHeaderTag.vue.js";
18
- import j from "../../../components/Section/SectionColumns.vue.js";
19
- import S from "../../../components/Section/SectionColumn.vue.js";
20
- import z from "../../../components/LinkList/LinkList.vue.js";
21
- import A from "../../external-docs/ExternalDocs.vue.js";
22
- import H from "../../test-request-button/TestRequestButton.vue.js";
23
- import M from "../../example-responses/ExampleResponses.vue.js";
24
- const G = { class: "flex flex-row justify-between gap-1" }, J = { class: "flex gap-1" }, K = { class: "flex gap-1" }, Q = { class: "operation-details" }, U = { class: "examples" }, ke = /* @__PURE__ */ g({
1
+ import { defineComponent, computed, useId, createBlock, openBlock, unref, withCtx, createVNode, createElementVNode, createCommentVNode, createTextVNode, toDisplayString, normalizeClass, createSlots } from "vue";
2
+ import { OperationCodeSample } from "@scalar/api-client/v2/blocks/operation-code-sample";
3
+ import { ScalarMarkdown, ScalarErrorBoundary } from "@scalar/components";
4
+ import { ScalarIconWebhooksLogo } from "@scalar/icons";
5
+ import { getOperationStability, getOperationStabilityColor, isOperationDeprecated } from "@scalar/oas-utils/helpers";
6
+ import { getResolvedRef } from "@scalar/workspace-store/helpers/get-resolved-ref";
7
+ import OperationPath from "../../../components/OperationPath.vue.js";
8
+ import _sfc_main$5 from "../components/callbacks/Callbacks.vue.js";
9
+ import _sfc_main$3 from "../components/OperationParameters.vue.js";
10
+ import _sfc_main$4 from "../components/OperationResponses.vue.js";
11
+ import Section from "../../../components/Section/Section.vue.js";
12
+ import SectionContent from "../../../components/Section/SectionContent.vue.js";
13
+ import Badge from "../../../components/Badge/Badge.vue.js";
14
+ import _sfc_main$1 from "../../x-badges/XBadges.vue.js";
15
+ import SectionHeader from "../../../components/Section/SectionHeader.vue.js";
16
+ import _sfc_main$2 from "../../../components/Anchor/Anchor.vue.js";
17
+ import SectionHeaderTag from "../../../components/Section/SectionHeaderTag.vue.js";
18
+ import SectionColumns from "../../../components/Section/SectionColumns.vue.js";
19
+ import SectionColumn from "../../../components/Section/SectionColumn.vue.js";
20
+ import LinkList from "../../../components/LinkList/LinkList.vue.js";
21
+ import _sfc_main$6 from "../../external-docs/ExternalDocs.vue.js";
22
+ import TestRequestButton from "../../test-request-button/TestRequestButton.vue.js";
23
+ import ExampleResponses from "../../example-responses/ExampleResponses.vue.js";
24
+ const _hoisted_1 = { class: "flex flex-row justify-between gap-1" };
25
+ const _hoisted_2 = { class: "flex gap-1" };
26
+ const _hoisted_3 = { class: "flex gap-1" };
27
+ const _hoisted_4 = { class: "operation-details" };
28
+ const _hoisted_5 = { class: "examples" };
29
+ const _sfc_main = /* @__PURE__ */ defineComponent({
25
30
  __name: "ModernLayout",
26
31
  props: {
27
32
  id: {},
@@ -30,206 +35,217 @@ const G = { class: "flex flex-row justify-between gap-1" }, J = { class: "flex g
30
35
  operation: {},
31
36
  securitySchemes: {},
32
37
  server: {},
33
- store: {},
38
+ xScalarDefaultClient: {},
39
+ eventBus: {},
34
40
  options: {}
35
41
  },
36
- setup(u) {
37
- const f = v(() => u.operation.summary || u.path || ""), h = B();
38
- return (e, c) => (i(), a(o(F), {
39
- id: e.id,
40
- "aria-labelledby": o(h),
41
- label: f.value,
42
- tabindex: "-1"
43
- }, {
44
- default: t(() => [
45
- r(o(L), null, {
46
- default: t(() => [
47
- n("div", G, [
48
- n("div", J, [
49
- e.options?.showOperationId && e.operation.operationId ? (i(), a(o(m), { key: 0 }, {
50
- default: t(() => [
51
- l(p(e.operation.operationId), 1)
52
- ]),
53
- _: 1
54
- })) : s("", !0),
55
- o(y)(e.operation) ? (i(), a(o(m), {
56
- key: 1,
57
- class: b(["capitalize", o(q)(e.operation)])
58
- }, {
59
- default: t(() => [
60
- l(p(o(y)(e.operation)), 1)
42
+ setup(__props) {
43
+ const operationTitle = computed(() => __props.operation.summary || __props.path || "");
44
+ const labelId = useId();
45
+ return (_ctx, _cache) => {
46
+ return openBlock(), createBlock(unref(Section), {
47
+ id: _ctx.id,
48
+ "aria-labelledby": unref(labelId),
49
+ label: operationTitle.value,
50
+ tabindex: "-1",
51
+ onIntersecting: _cache[1] || (_cache[1] = () => _ctx.eventBus?.emit("intersecting:nav-item", { id: _ctx.id }))
52
+ }, {
53
+ default: withCtx(() => [
54
+ createVNode(unref(SectionContent), null, {
55
+ default: withCtx(() => [
56
+ createElementVNode("div", _hoisted_1, [
57
+ createElementVNode("div", _hoisted_2, [
58
+ _ctx.options?.showOperationId && _ctx.operation.operationId ? (openBlock(), createBlock(unref(Badge), { key: 0 }, {
59
+ default: withCtx(() => [
60
+ createTextVNode(toDisplayString(_ctx.operation.operationId), 1)
61
+ ]),
62
+ _: 1
63
+ })) : createCommentVNode("", true),
64
+ unref(getOperationStability)(_ctx.operation) ? (openBlock(), createBlock(unref(Badge), {
65
+ key: 1,
66
+ class: normalizeClass(["capitalize", unref(getOperationStabilityColor)(_ctx.operation)])
67
+ }, {
68
+ default: withCtx(() => [
69
+ createTextVNode(toDisplayString(unref(getOperationStability)(_ctx.operation)), 1)
70
+ ]),
71
+ _: 1
72
+ }, 8, ["class"])) : createCommentVNode("", true),
73
+ _ctx.options.isWebhook ? (openBlock(), createBlock(unref(Badge), {
74
+ key: 2,
75
+ class: "font-code text-green flex w-fit items-center justify-center gap-1"
76
+ }, {
77
+ default: withCtx(() => [
78
+ createVNode(unref(ScalarIconWebhooksLogo), { weight: "bold" }),
79
+ _cache[2] || (_cache[2] = createTextVNode("Webhook ", -1))
80
+ ]),
81
+ _: 1
82
+ })) : createCommentVNode("", true),
83
+ createVNode(unref(_sfc_main$1), {
84
+ badges: _ctx.operation["x-badges"],
85
+ position: "before"
86
+ }, null, 8, ["badges"])
87
+ ]),
88
+ createElementVNode("div", _hoisted_3, [
89
+ createVNode(unref(_sfc_main$1), {
90
+ badges: _ctx.operation["x-badges"],
91
+ position: "after"
92
+ }, null, 8, ["badges"])
93
+ ])
94
+ ]),
95
+ createElementVNode("div", {
96
+ class: normalizeClass(unref(isOperationDeprecated)(_ctx.operation) ? "deprecated" : "")
97
+ }, [
98
+ createVNode(unref(SectionHeader), null, {
99
+ default: withCtx(() => [
100
+ createVNode(unref(_sfc_main$2), {
101
+ onCopyAnchorUrl: _cache[0] || (_cache[0] = () => _ctx.eventBus?.emit("copy-url:nav-item", { id: _ctx.id }))
102
+ }, {
103
+ default: withCtx(() => [
104
+ createVNode(unref(SectionHeaderTag), {
105
+ id: unref(labelId),
106
+ level: 3
107
+ }, {
108
+ default: withCtx(() => [
109
+ createTextVNode(toDisplayString(operationTitle.value), 1)
110
+ ]),
111
+ _: 1
112
+ }, 8, ["id"])
113
+ ]),
114
+ _: 1
115
+ })
61
116
  ]),
62
117
  _: 1
63
- }, 8, ["class"])) : s("", !0),
64
- e.options.isWebhook ? (i(), a(o(m), {
65
- key: 2,
66
- class: "font-code text-green flex w-fit items-center justify-center gap-1"
67
- }, {
68
- default: t(() => [
69
- r(o(R), { weight: "bold" }),
70
- c[0] || (c[0] = l("Webhook "))
71
- ]),
72
- _: 1,
73
- __: [0]
74
- })) : s("", !0),
75
- r(o(k), {
76
- badges: e.operation["x-badges"],
77
- position: "before"
78
- }, null, 8, ["badges"])
79
- ]),
80
- n("div", K, [
81
- r(o(k), {
82
- badges: e.operation["x-badges"],
83
- position: "after"
84
- }, null, 8, ["badges"])
85
- ])
86
- ]),
87
- n("div", {
88
- class: b(o(O)(e.operation) ? "deprecated" : "")
89
- }, [
90
- r(o(N), null, {
91
- default: t(() => [
92
- r(o(V), { id: e.id }, {
93
- default: t(() => [
94
- r(o(E), {
95
- id: o(h),
96
- level: 3
97
- }, {
98
- default: t(() => [
99
- l(p(f.value), 1)
100
- ]),
101
- _: 1
102
- }, 8, ["id"])
118
+ })
119
+ ], 2),
120
+ createVNode(unref(SectionColumns), null, {
121
+ default: withCtx(() => [
122
+ createVNode(unref(SectionColumn), null, {
123
+ default: withCtx(() => [
124
+ createElementVNode("div", _hoisted_4, [
125
+ createVNode(unref(ScalarMarkdown), {
126
+ anchorPrefix: _ctx.id,
127
+ "aria-label": "Operation Description",
128
+ role: "group",
129
+ transformType: "heading",
130
+ value: _ctx.operation.description,
131
+ withAnchors: "",
132
+ withImages: ""
133
+ }, null, 8, ["anchorPrefix", "value"]),
134
+ createVNode(_sfc_main$3, {
135
+ breadcrumb: [_ctx.id],
136
+ eventBus: _ctx.eventBus,
137
+ options: {
138
+ orderRequiredPropertiesFirst: _ctx.options.orderRequiredPropertiesFirst,
139
+ orderSchemaPropertiesBy: _ctx.options.orderSchemaPropertiesBy
140
+ },
141
+ parameters: (
142
+ // These have been resolved in the Operation.vue component
143
+ _ctx.operation.parameters
144
+ ),
145
+ requestBody: unref(getResolvedRef)(_ctx.operation.requestBody)
146
+ }, null, 8, ["breadcrumb", "eventBus", "options", "parameters", "requestBody"]),
147
+ createVNode(_sfc_main$4, {
148
+ breadcrumb: [_ctx.id],
149
+ eventBus: _ctx.eventBus,
150
+ options: {
151
+ collapsableItems: !_ctx.options.expandAllResponses,
152
+ orderRequiredPropertiesFirst: _ctx.options.orderRequiredPropertiesFirst,
153
+ orderSchemaPropertiesBy: _ctx.options.orderSchemaPropertiesBy
154
+ },
155
+ responses: _ctx.operation.responses
156
+ }, null, 8, ["breadcrumb", "eventBus", "options", "responses"]),
157
+ createVNode(unref(ScalarErrorBoundary), null, {
158
+ default: withCtx(() => [
159
+ _ctx.operation.callbacks ? (openBlock(), createBlock(_sfc_main$5, {
160
+ key: 0,
161
+ callbacks: _ctx.operation.callbacks,
162
+ class: "mt-6",
163
+ eventBus: _ctx.eventBus,
164
+ method: _ctx.method,
165
+ options: _ctx.options,
166
+ path: _ctx.path
167
+ }, null, 8, ["callbacks", "eventBus", "method", "options", "path"])) : createCommentVNode("", true)
168
+ ]),
169
+ _: 1
170
+ })
171
+ ])
172
+ ]),
173
+ _: 1
174
+ }),
175
+ createVNode(unref(SectionColumn), null, {
176
+ default: withCtx(() => [
177
+ createElementVNode("div", _hoisted_5, [
178
+ _ctx.operation.externalDocs ? (openBlock(), createBlock(unref(LinkList), { key: 0 }, {
179
+ default: withCtx(() => [
180
+ createVNode(unref(_sfc_main$6), {
181
+ value: _ctx.operation.externalDocs
182
+ }, null, 8, ["value"])
183
+ ]),
184
+ _: 1
185
+ })) : createCommentVNode("", true),
186
+ createVNode(unref(ScalarErrorBoundary), null, {
187
+ default: withCtx(() => [
188
+ createVNode(unref(OperationCodeSample), {
189
+ clientOptions: _ctx.options.clientOptions,
190
+ fallback: "",
191
+ isWebhook: _ctx.options.isWebhook,
192
+ method: _ctx.method,
193
+ operation: _ctx.operation,
194
+ path: _ctx.path,
195
+ securitySchemes: _ctx.securitySchemes,
196
+ selectedClient: _ctx.xScalarDefaultClient,
197
+ selectedServer: _ctx.server
198
+ }, createSlots({
199
+ header: withCtx(() => [
200
+ createVNode(OperationPath, {
201
+ class: "font-code text-c-2 [&_em]:text-c-1 [&_em]:not-italic",
202
+ deprecated: _ctx.operation?.deprecated,
203
+ path: _ctx.path
204
+ }, null, 8, ["deprecated", "path"])
205
+ ]),
206
+ _: 2
207
+ }, [
208
+ !_ctx.options.isWebhook ? {
209
+ name: "footer",
210
+ fn: withCtx(() => [
211
+ !_ctx.options.hideTestRequestButton ? (openBlock(), createBlock(unref(TestRequestButton), {
212
+ key: 0,
213
+ method: _ctx.method,
214
+ path: _ctx.path
215
+ }, null, 8, ["method", "path"])) : createCommentVNode("", true)
216
+ ]),
217
+ key: "0"
218
+ } : void 0
219
+ ]), 1032, ["clientOptions", "isWebhook", "method", "operation", "path", "securitySchemes", "selectedClient", "selectedServer"])
220
+ ]),
221
+ _: 1
222
+ }),
223
+ createVNode(unref(ScalarErrorBoundary), null, {
224
+ default: withCtx(() => [
225
+ _ctx.operation.responses ? (openBlock(), createBlock(unref(ExampleResponses), {
226
+ key: 0,
227
+ responses: _ctx.operation.responses,
228
+ style: { "margin-top": "12px" }
229
+ }, null, 8, ["responses"])) : createCommentVNode("", true)
230
+ ]),
231
+ _: 1
232
+ })
233
+ ])
103
234
  ]),
104
235
  _: 1
105
- }, 8, ["id"])
236
+ })
106
237
  ]),
107
238
  _: 1
108
239
  })
109
- ], 2),
110
- r(o(j), null, {
111
- default: t(() => [
112
- r(o(S), null, {
113
- default: t(() => [
114
- n("div", Q, [
115
- r(o(w), {
116
- anchorPrefix: e.id,
117
- transformType: "heading",
118
- value: e.operation.description,
119
- withAnchors: "",
120
- withImages: ""
121
- }, null, 8, ["anchorPrefix", "value"]),
122
- r($, {
123
- breadcrumb: [e.id],
124
- options: {
125
- orderRequiredPropertiesFirst: e.options.orderRequiredPropertiesFirst,
126
- orderSchemaPropertiesBy: e.options.orderSchemaPropertiesBy
127
- },
128
- parameters: (
129
- // These have been resolved in the Operation.vue component
130
- e.operation.parameters
131
- ),
132
- requestBody: o(I)(e.operation.requestBody)
133
- }, null, 8, ["breadcrumb", "options", "parameters", "requestBody"]),
134
- r(D, {
135
- breadcrumb: [e.id],
136
- options: {
137
- collapsableItems: !e.options.expandAllResponses,
138
- orderRequiredPropertiesFirst: e.options.orderRequiredPropertiesFirst,
139
- orderSchemaPropertiesBy: e.options.orderSchemaPropertiesBy
140
- },
141
- responses: e.operation.responses
142
- }, null, 8, ["breadcrumb", "options", "responses"]),
143
- r(o(d), null, {
144
- default: t(() => [
145
- e.operation.callbacks ? (i(), a(T, {
146
- key: 0,
147
- callbacks: e.operation.callbacks,
148
- class: "mt-6",
149
- method: e.method,
150
- options: e.options,
151
- path: e.path
152
- }, null, 8, ["callbacks", "method", "options", "path"])) : s("", !0)
153
- ]),
154
- _: 1
155
- })
156
- ])
157
- ]),
158
- _: 1
159
- }),
160
- r(o(S), null, {
161
- default: t(() => [
162
- n("div", U, [
163
- e.operation.externalDocs ? (i(), a(o(z), { key: 0 }, {
164
- default: t(() => [
165
- r(o(A), {
166
- value: e.operation.externalDocs
167
- }, null, 8, ["value"])
168
- ]),
169
- _: 1
170
- })) : s("", !0),
171
- r(o(d), null, {
172
- default: t(() => [
173
- r(o(P), {
174
- clientOptions: e.options.clientOptions,
175
- fallback: "",
176
- isWebhook: e.options.isWebhook,
177
- method: e.method,
178
- operation: e.operation,
179
- path: e.path,
180
- securitySchemes: e.securitySchemes,
181
- selectedClient: e.store.workspace["x-scalar-default-client"],
182
- selectedServer: e.server
183
- }, C({
184
- header: t(() => [
185
- r(W, {
186
- class: "font-code text-c-2 [&_em]:text-c-1 [&_em]:not-italic",
187
- deprecated: e.operation?.deprecated,
188
- path: e.path
189
- }, null, 8, ["deprecated", "path"])
190
- ]),
191
- _: 2
192
- }, [
193
- e.options.isWebhook ? void 0 : {
194
- name: "footer",
195
- fn: t(() => [
196
- e.options.hideTestRequestButton ? s("", !0) : (i(), a(o(H), {
197
- key: 0,
198
- method: e.method,
199
- path: e.path
200
- }, null, 8, ["method", "path"]))
201
- ]),
202
- key: "0"
203
- }
204
- ]), 1032, ["clientOptions", "isWebhook", "method", "operation", "path", "securitySchemes", "selectedClient", "selectedServer"])
205
- ]),
206
- _: 1
207
- }),
208
- r(o(d), null, {
209
- default: t(() => [
210
- e.operation.responses ? (i(), a(o(M), {
211
- key: 0,
212
- responses: e.operation.responses,
213
- style: { "margin-top": "12px" }
214
- }, null, 8, ["responses"])) : s("", !0)
215
- ]),
216
- _: 1
217
- })
218
- ])
219
- ]),
220
- _: 1
221
- })
222
- ]),
223
- _: 1
224
- })
225
- ]),
226
- _: 1
227
- })
228
- ]),
229
- _: 1
230
- }, 8, ["id", "aria-labelledby", "label"]));
240
+ ]),
241
+ _: 1
242
+ })
243
+ ]),
244
+ _: 1
245
+ }, 8, ["id", "aria-labelledby", "label"]);
246
+ };
231
247
  }
232
248
  });
233
249
  export {
234
- ke as default
250
+ _sfc_main as default
235
251
  };
@@ -1,8 +1,11 @@
1
+ import type { WorkspaceEventBus } from '@scalar/workspace-store/events';
1
2
  import type { OpenApiDocument } from '@scalar/workspace-store/schemas/v3.1/strict/openapi-document';
2
3
  type __VLS_Props = {
4
+ forceIcon?: boolean;
3
5
  searchHotKey?: string;
4
6
  hideModels?: boolean;
5
7
  document?: OpenApiDocument;
8
+ eventBus: WorkspaceEventBus;
6
9
  };
7
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>;
8
11
  export default _default;
@@ -1 +1 @@
1
- {"version":3,"file":"SearchButton.vue.d.ts","sourceRoot":"","sources":["../../../../src/features/Search/components/SearchButton.vue"],"names":[],"mappings":"AA4FA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,8DAA8D,CAAA;AAOnG,KAAK,WAAW,GAAG;IACjB,YAAY,CAAC,EAAE,MAAM,CAAA;IACrB,UAAU,CAAC,EAAE,OAAO,CAAA;IACpB,QAAQ,CAAC,EAAE,eAAe,CAAA;CAC3B,CAAC;;AAqJF,wBAMG"}
1
+ {"version":3,"file":"SearchButton.vue.d.ts","sourceRoot":"","sources":["../../../../src/features/Search/components/SearchButton.vue"],"names":[],"mappings":"AAyGA,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,gCAAgC,CAAA;AACvE,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,8DAA8D,CAAA;AAKnG,KAAK,WAAW,GAAG;IACjB,SAAS,CAAC,EAAE,OAAO,CAAA;IACnB,YAAY,CAAC,EAAE,MAAM,CAAA;IACrB,UAAU,CAAC,EAAE,OAAO,CAAA;IACpB,QAAQ,CAAC,EAAE,eAAe,CAAA;IAC1B,QAAQ,EAAE,iBAAiB,CAAA;CAC5B,CAAC;;AA0KF,wBAMG"}
@@ -1,65 +1,88 @@
1
- import { defineComponent as h, ref as S, watch as k, nextTick as w, onMounted as C, onBeforeUnmount as M, createElementBlock as a, openBlock as r, Fragment as s, createVNode as u, unref as l, normalizeClass as v, withCtx as m, createElementVNode as n, createTextVNode as B, toDisplayString as K } from "vue";
2
- import { useModal as b, ScalarSidebarSearchButton as E } from "@scalar/components";
3
- import { isMacOS as p } from "@scalar/helpers/general/is-mac-os";
4
- import H from "./SearchModal.vue.js";
5
- import { useApiClient as g } from "../../api-client-modal/useApiClient.js";
6
- const O = /* @__PURE__ */ h({
1
+ import { defineComponent, ref, watch, nextTick, onMounted, onBeforeUnmount, createElementBlock, openBlock, Fragment, createBlock, createVNode, unref, normalizeClass, withCtx, createElementVNode, createTextVNode, toDisplayString } from "vue";
2
+ import { useModal, ScalarIconButton, ScalarSidebarSearchButton } from "@scalar/components";
3
+ import { isMacOS } from "@scalar/helpers/general/is-mac-os";
4
+ import { ScalarIconMagnifyingGlass } from "@scalar/icons";
5
+ import SearchModal from "./SearchModal.vue.js";
6
+ const _sfc_main = /* @__PURE__ */ defineComponent({
7
7
  __name: "SearchButton",
8
8
  props: {
9
+ forceIcon: { type: Boolean },
9
10
  searchHotKey: { default: "k" },
10
- hideModels: { type: Boolean, default: !1 },
11
- document: {}
11
+ hideModels: { type: Boolean, default: false },
12
+ document: {},
13
+ eventBus: {}
12
14
  },
13
- setup(f) {
14
- const d = S(), t = b(), { client: c } = g(), i = (o) => {
15
- (p() ? o.metaKey : o.ctrlKey) && o.key === f.searchHotKey && !c.value?.modalState.open && (o.preventDefault(), o.stopPropagation(), t.open ? t.hide() : t.show());
15
+ setup(__props) {
16
+ const button = ref();
17
+ const modalState = useModal();
18
+ const handleHotKey = (e) => {
19
+ if ((isMacOS() ? e.metaKey : e.ctrlKey) && e.key === __props.searchHotKey) {
20
+ e.preventDefault();
21
+ e.stopPropagation();
22
+ if (modalState.open) {
23
+ modalState.hide();
24
+ } else {
25
+ modalState.show();
26
+ }
27
+ }
16
28
  };
17
- k(
18
- () => t.open,
19
- (o, e) => {
20
- !o && e && w(() => {
21
- d.value?.$el.focus();
22
- });
29
+ watch(
30
+ () => modalState.open,
31
+ async (next, prev) => {
32
+ if (!next && prev) {
33
+ await nextTick();
34
+ button.value?.$el.focus();
35
+ }
23
36
  }
24
- ), C(() => window.addEventListener("keydown", i)), M(() => window.removeEventListener("keydown", i));
25
- function y() {
26
- t.show();
37
+ );
38
+ onMounted(() => window.addEventListener("keydown", handleHotKey));
39
+ onBeforeUnmount(() => window.removeEventListener("keydown", handleHotKey));
40
+ function handleClick() {
41
+ modalState.show();
27
42
  }
28
- return (o, e) => (r(), a(s, null, [
29
- u(l(E), {
30
- ref_key: "button",
31
- ref: d,
32
- class: v(["w-full", o.$attrs.class]),
33
- onClick: y
34
- }, {
35
- shortcut: m(() => [
36
- l(p)() ? (r(), a(s, { key: 0 }, [
37
- e[0] || (e[0] = n("span", { class: "sr-only" }, "Command", -1)),
38
- e[1] || (e[1] = n("span", { "aria-hidden": "true" }, "⌘", -1))
39
- ], 64)) : (r(), a(s, { key: 1 }, [
40
- e[2] || (e[2] = n("span", { class: "sr-only" }, "CTRL", -1)),
41
- e[3] || (e[3] = n("span", { "aria-hidden": "true" }, "⌃", -1))
42
- ], 64)),
43
- B(" " + K(o.searchHotKey), 1)
44
- ]),
45
- default: m(() => [
46
- e[4] || (e[4] = n("span", { class: "sr-only" }, "Open Search", -1)),
47
- e[5] || (e[5] = n("span", {
48
- "aria-hidden": "true",
49
- class: "sidebar-search-placeholder"
50
- }, " Search ", -1))
51
- ]),
52
- _: 1,
53
- __: [4, 5]
54
- }, 8, ["class"]),
55
- u(H, {
56
- document: o.document,
57
- hideModels: o.hideModels,
58
- modalState: l(t)
59
- }, null, 8, ["document", "hideModels", "modalState"])
60
- ], 64));
43
+ return (_ctx, _cache) => {
44
+ return openBlock(), createElementBlock(Fragment, null, [
45
+ _ctx.forceIcon ? (openBlock(), createBlock(unref(ScalarIconButton), {
46
+ key: 0,
47
+ icon: unref(ScalarIconMagnifyingGlass),
48
+ label: "Search",
49
+ onClick: handleClick
50
+ }, null, 8, ["icon"])) : (openBlock(), createBlock(unref(ScalarSidebarSearchButton), {
51
+ key: 1,
52
+ ref_key: "button",
53
+ ref: button,
54
+ class: normalizeClass(["w-full", _ctx.$attrs.class]),
55
+ onClick: handleClick
56
+ }, {
57
+ shortcut: withCtx(() => [
58
+ unref(isMacOS)() ? (openBlock(), createElementBlock(Fragment, { key: 0 }, [
59
+ _cache[0] || (_cache[0] = createElementVNode("span", { class: "sr-only" }, "Command", -1)),
60
+ _cache[1] || (_cache[1] = createElementVNode("span", { "aria-hidden": "true" }, "⌘", -1))
61
+ ], 64)) : (openBlock(), createElementBlock(Fragment, { key: 1 }, [
62
+ _cache[2] || (_cache[2] = createElementVNode("span", { class: "sr-only" }, "CTRL", -1)),
63
+ _cache[3] || (_cache[3] = createElementVNode("span", { "aria-hidden": "true" }, "⌃", -1))
64
+ ], 64)),
65
+ createTextVNode(" " + toDisplayString(_ctx.searchHotKey), 1)
66
+ ]),
67
+ default: withCtx(() => [
68
+ _cache[4] || (_cache[4] = createElementVNode("span", { class: "sr-only" }, "Open Search", -1)),
69
+ _cache[5] || (_cache[5] = createElementVNode("span", {
70
+ "aria-hidden": "true",
71
+ class: "sidebar-search-placeholder"
72
+ }, " Search ", -1))
73
+ ]),
74
+ _: 1
75
+ }, 8, ["class"])),
76
+ createVNode(SearchModal, {
77
+ document: _ctx.document,
78
+ eventBus: _ctx.eventBus,
79
+ hideModels: _ctx.hideModels,
80
+ modalState: unref(modalState)
81
+ }, null, 8, ["document", "eventBus", "hideModels", "modalState"])
82
+ ], 64);
83
+ };
61
84
  }
62
85
  });
63
86
  export {
64
- O as default
87
+ _sfc_main as default
65
88
  };
@@ -1,4 +1,4 @@
1
- import f from "./SearchButton.vue.js";
1
+ import _sfc_main from "./SearchButton.vue.js";
2
2
  export {
3
- f as default
3
+ _sfc_main as default
4
4
  };