@scalar/api-reference 1.48.8 → 1.49.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 (381) hide show
  1. package/CHANGELOG.md +40 -0
  2. package/dist/AgentScalarChatInterface-MUbtSqMw.js +41 -0
  3. package/dist/AgentScalarChatInterface-MUbtSqMw.js.map +1 -0
  4. package/dist/ExternalDocs-phu7GxpZ.js +272 -0
  5. package/dist/ExternalDocs-phu7GxpZ.js.map +1 -0
  6. package/dist/MobileHeader-B71jYJdT.js +1373 -0
  7. package/dist/MobileHeader-B71jYJdT.js.map +1 -0
  8. package/dist/Operation-CixLVfKd.js +3827 -0
  9. package/dist/Operation-CixLVfKd.js.map +1 -0
  10. package/dist/SearchButton-xzhIpMCZ.js +621 -0
  11. package/dist/SearchButton-xzhIpMCZ.js.map +1 -0
  12. package/dist/ServerSelector-5y29y2BJ.js +852 -0
  13. package/dist/ServerSelector-5y29y2BJ.js.map +1 -0
  14. package/dist/blocks/index.js +3 -10
  15. package/dist/blocks/scalar-client-selector-block/index.d.ts +1 -1
  16. package/dist/blocks/scalar-info-block/index.d.ts +2 -2
  17. package/dist/blocks/scalar-server-selector-block/index.d.ts +1 -1
  18. package/dist/browser/standalone.js +40748 -34662
  19. package/dist/browser/webpack-stats.json +1 -1
  20. package/dist/components/AgentScalar/index.d.ts +3 -3
  21. package/dist/components/Anchor/index.d.ts +2 -2
  22. package/dist/components/ApiReference.vue.d.ts.map +1 -1
  23. package/dist/components/Badge/index.d.ts +1 -1
  24. package/dist/components/Content/Auth/index.d.ts +1 -1
  25. package/dist/components/Content/Content.vue.d.ts +2 -4
  26. package/dist/components/Content/Content.vue.d.ts.map +1 -1
  27. package/dist/components/Content/Models/ModelTag.vue.d.ts +3 -3
  28. package/dist/components/Content/Models/ModelTag.vue.d.ts.map +1 -1
  29. package/dist/components/Content/Models/index.d.ts +2 -2
  30. package/dist/components/Content/Operations/TraversedEntry.vue.d.ts.map +1 -1
  31. package/dist/components/Content/Schema/Schema.vue.d.ts +1 -1
  32. package/dist/components/Content/Schema/SchemaComposition.vue.d.ts +2 -2
  33. package/dist/components/Content/Schema/SchemaObjectProperties.vue.d.ts +1 -1
  34. package/dist/components/Content/Schema/SchemaProperty.vue.d.ts +1 -1
  35. package/dist/components/Content/Schema/SchemaProperty.vue.d.ts.map +1 -1
  36. package/dist/components/Content/Schema/SchemaPropertyExamples.vue.d.ts.map +1 -1
  37. package/dist/components/Content/Schema/SchemaPropertyHeading.vue.d.ts.map +1 -1
  38. package/dist/components/Content/Schema/helpers/get-compositions-to-render.d.ts +1 -1
  39. package/dist/components/Content/Schema/index.d.ts +4 -4
  40. package/dist/components/Content/Tags/components/ModernLayout.vue.d.ts +2 -2
  41. package/dist/components/Content/Tags/components/ModernLayout.vue.d.ts.map +1 -1
  42. package/dist/components/Content/Tags/index.d.ts +1 -1
  43. package/dist/components/Content/index.d.ts +2 -2
  44. package/dist/components/HttpMethod/index.d.ts +1 -1
  45. package/dist/components/Lazy/Lazy.vue.d.ts +3 -0
  46. package/dist/components/Lazy/Lazy.vue.d.ts.map +1 -1
  47. package/dist/components/LinkList/index.d.ts +1 -1
  48. package/dist/components/OperationsList/index.d.ts +1 -1
  49. package/dist/components/RenderPlugins/index.d.ts +1 -1
  50. package/dist/components/Section/index.d.ts +10 -10
  51. package/dist/components/SectionFlare/index.d.ts +1 -1
  52. package/dist/components/index.d.ts +5 -5
  53. package/dist/components/index.js +102 -42
  54. package/dist/components/index.js.map +1 -0
  55. package/dist/features/Operation/components/OperationParameters.vue.d.ts +1 -1
  56. package/dist/features/Operation/components/OperationResponses.vue.d.ts +1 -1
  57. package/dist/features/Operation/components/ParameterList.vue.d.ts +1 -1
  58. package/dist/features/Operation/components/ParameterListItem.vue.d.ts +1 -1
  59. package/dist/features/Operation/components/callbacks/Callback.vue.d.ts +1 -1
  60. package/dist/features/Operation/components/callbacks/Callbacks.vue.d.ts +1 -1
  61. package/dist/features/Operation/index.d.ts +1 -1
  62. package/dist/features/Operation/layouts/ClassicLayout.vue.d.ts +1 -1
  63. package/dist/features/Operation/layouts/ModernLayout.vue.d.ts +1 -1
  64. package/dist/features/Search/components/SearchResult.vue.d.ts +1 -1
  65. package/dist/features/Search/helpers/create-fuse-instance.d.ts +1 -1
  66. package/dist/features/Search/helpers/create-search-index.d.ts +1 -1
  67. package/dist/features/Search/index.d.ts +2 -2
  68. package/dist/features/Search/types.d.ts +1 -1
  69. package/dist/features/ask-agent-button/AskAgentButton.vue.d.ts.map +1 -1
  70. package/dist/features/developer-tools/index.d.ts +1 -1
  71. package/dist/features/example-responses/index.d.ts +1 -1
  72. package/dist/features/external-docs/index.d.ts +1 -1
  73. package/dist/features/index.d.ts +2 -2
  74. package/dist/features/index.js +4 -10
  75. package/dist/features/info-object/index.d.ts +3 -3
  76. package/dist/features/specification-extension/index.d.ts +2 -2
  77. package/dist/features/test-request-button/index.d.ts +1 -1
  78. package/dist/features/x-badges/index.d.ts +1 -1
  79. package/dist/helpers/download.d.ts +1 -1
  80. package/dist/helpers/download.d.ts.map +1 -1
  81. package/dist/helpers/id-routing.d.ts +4 -0
  82. package/dist/helpers/id-routing.d.ts.map +1 -1
  83. package/dist/helpers/index.d.ts +8 -8
  84. package/dist/helpers/index.js +3 -24
  85. package/dist/helpers/lazy-bus.d.ts +19 -19
  86. package/dist/helpers/lazy-bus.d.ts.map +1 -1
  87. package/dist/hooks/index.d.ts +2 -2
  88. package/dist/hooks/index.js +3 -8
  89. package/dist/index.d.ts +5 -5
  90. package/dist/index.js +7 -14
  91. package/dist/lazy-bus-CV8Ox5hD.js +333 -0
  92. package/dist/lazy-bus-CV8Ox5hD.js.map +1 -0
  93. package/dist/normalize-configurations-DcVpOEjD.js +232 -0
  94. package/dist/normalize-configurations-DcVpOEjD.js.map +1 -0
  95. package/dist/plugins/hooks/usePluginManager.d.ts +1 -1
  96. package/dist/plugins/index.d.ts +3 -3
  97. package/dist/plugins/index.js +2 -9
  98. package/dist/plugins-4EyiUD_A.js +80 -0
  99. package/dist/plugins-4EyiUD_A.js.map +1 -0
  100. package/dist/src-DqcYVBWI.js +1686 -0
  101. package/dist/src-DqcYVBWI.js.map +1 -0
  102. package/dist/ssr.d.ts +2 -2
  103. package/dist/ssr.js +7 -14
  104. package/dist/storage--3JuzjCI.js +42 -0
  105. package/dist/storage--3JuzjCI.js.map +1 -0
  106. package/dist/style.css +6840 -7397
  107. package/dist/urls-gPTXGgbj.js +17 -0
  108. package/dist/urls-gPTXGgbj.js.map +1 -0
  109. package/dist/use-agent-Bnm1de0n.js +60 -0
  110. package/dist/use-agent-Bnm1de0n.js.map +1 -0
  111. package/dist/use-intersection-8QqPi2O-.js +24 -0
  112. package/dist/use-intersection-8QqPi2O-.js.map +1 -0
  113. package/package.json +25 -27
  114. package/dist/_virtual/_plugin-vue_export-helper.js +0 -10
  115. package/dist/blocks/scalar-client-selector-block/components/ClientDropdown.vue.js +0 -7
  116. package/dist/blocks/scalar-client-selector-block/components/ClientDropdown.vue2.js +0 -123
  117. package/dist/blocks/scalar-client-selector-block/components/ClientSelector.vue.js +0 -7
  118. package/dist/blocks/scalar-client-selector-block/components/ClientSelector.vue2.js +0 -142
  119. package/dist/blocks/scalar-client-selector-block/helpers/featured-clients.js +0 -24
  120. package/dist/blocks/scalar-info-block/components/DownloadLink.vue.js +0 -7
  121. package/dist/blocks/scalar-info-block/components/DownloadLink.vue2.js +0 -63
  122. package/dist/blocks/scalar-info-block/components/InfoBlock.vue.js +0 -59
  123. package/dist/blocks/scalar-info-block/components/InfoBlock.vue2.js +0 -4
  124. package/dist/blocks/scalar-info-block/components/InfoDescription.vue.js +0 -7
  125. package/dist/blocks/scalar-info-block/components/InfoDescription.vue2.js +0 -70
  126. package/dist/blocks/scalar-info-block/components/InfoLinks.vue.js +0 -38
  127. package/dist/blocks/scalar-info-block/components/InfoLinks.vue2.js +0 -4
  128. package/dist/blocks/scalar-info-block/components/InfoMarkdownSection.vue.js +0 -38
  129. package/dist/blocks/scalar-info-block/components/InfoMarkdownSection.vue2.js +0 -4
  130. package/dist/blocks/scalar-info-block/components/InfoVersion.vue.js +0 -28
  131. package/dist/blocks/scalar-info-block/components/InfoVersion.vue2.js +0 -4
  132. package/dist/blocks/scalar-info-block/components/IntroductionCard.vue.js +0 -7
  133. package/dist/blocks/scalar-info-block/components/IntroductionCard.vue2.js +0 -19
  134. package/dist/blocks/scalar-info-block/components/IntroductionCardItem.vue.js +0 -14
  135. package/dist/blocks/scalar-info-block/components/IntroductionLayout.vue.js +0 -7
  136. package/dist/blocks/scalar-info-block/components/IntroductionLayout.vue2.js +0 -112
  137. package/dist/blocks/scalar-info-block/components/OpenApiVersion.vue.js +0 -21
  138. package/dist/blocks/scalar-info-block/components/OpenApiVersion.vue2.js +0 -4
  139. package/dist/blocks/scalar-server-selector-block/components/Selector.vue.js +0 -76
  140. package/dist/blocks/scalar-server-selector-block/components/Selector.vue2.js +0 -4
  141. package/dist/blocks/scalar-server-selector-block/components/ServerSelector.vue.js +0 -72
  142. package/dist/blocks/scalar-server-selector-block/components/ServerSelector.vue2.js +0 -4
  143. package/dist/components/AgentScalar/AgentScalarButton.vue.js +0 -22
  144. package/dist/components/AgentScalar/AgentScalarButton.vue2.js +0 -4
  145. package/dist/components/AgentScalar/AgentScalarChatInterface.vue.js +0 -4
  146. package/dist/components/AgentScalar/AgentScalarChatInterface.vue2.js +0 -29
  147. package/dist/components/AgentScalar/AgentScalarDrawer.vue.js +0 -7
  148. package/dist/components/AgentScalar/AgentScalarDrawer.vue2.js +0 -78
  149. package/dist/components/AgentScalar/OpenMCPButton.vue.js +0 -7
  150. package/dist/components/AgentScalar/OpenMCPButton.vue2.js +0 -191
  151. package/dist/components/Anchor/Anchor.vue.js +0 -51
  152. package/dist/components/Anchor/Anchor.vue2.js +0 -4
  153. package/dist/components/Anchor/WithBreadcrumb.vue.js +0 -41
  154. package/dist/components/Anchor/WithBreadcrumb.vue2.js +0 -4
  155. package/dist/components/ApiReference.vue.js +0 -10
  156. package/dist/components/ApiReference.vue2.js +0 -744
  157. package/dist/components/Badge/Badge.vue.js +0 -7
  158. package/dist/components/Badge/Badge.vue2.js +0 -26
  159. package/dist/components/ClassicHeader.vue.js +0 -21
  160. package/dist/components/Content/Auth/Auth.vue.js +0 -77
  161. package/dist/components/Content/Auth/Auth.vue2.js +0 -4
  162. package/dist/components/Content/Auth/helpers/get-default-security.js +0 -55
  163. package/dist/components/Content/Content.vue.js +0 -177
  164. package/dist/components/Content/Content.vue3.js +0 -5
  165. package/dist/components/Content/Models/Model.vue.js +0 -47
  166. package/dist/components/Content/Models/Model.vue2.js +0 -4
  167. package/dist/components/Content/Models/ModelTag.vue.js +0 -82
  168. package/dist/components/Content/Models/ModelTag.vue2.js +0 -4
  169. package/dist/components/Content/Models/components/ClassicLayout.vue.js +0 -7
  170. package/dist/components/Content/Models/components/ClassicLayout.vue2.js +0 -78
  171. package/dist/components/Content/Models/components/ModernLayout.vue.js +0 -61
  172. package/dist/components/Content/Models/components/ModernLayout.vue2.js +0 -4
  173. package/dist/components/Content/Operations/TraversedEntry.vue.js +0 -145
  174. package/dist/components/Content/Operations/TraversedEntry.vue2.js +0 -4
  175. package/dist/components/Content/Schema/RenderString.vue.js +0 -27
  176. package/dist/components/Content/Schema/RenderString.vue2.js +0 -4
  177. package/dist/components/Content/Schema/Schema.vue.js +0 -7
  178. package/dist/components/Content/Schema/Schema.vue2.js +0 -193
  179. package/dist/components/Content/Schema/SchemaComposition.vue.js +0 -120
  180. package/dist/components/Content/Schema/SchemaComposition.vue2.js +0 -4
  181. package/dist/components/Content/Schema/SchemaEnumPropertyItem.vue.js +0 -7
  182. package/dist/components/Content/Schema/SchemaEnumPropertyItem.vue2.js +0 -36
  183. package/dist/components/Content/Schema/SchemaEnums.vue.js +0 -7
  184. package/dist/components/Content/Schema/SchemaEnums.vue2.js +0 -112
  185. package/dist/components/Content/Schema/SchemaHeading.vue.js +0 -7
  186. package/dist/components/Content/Schema/SchemaHeading.vue2.js +0 -61
  187. package/dist/components/Content/Schema/SchemaObjectExampleCodeBlock.vue.js +0 -66
  188. package/dist/components/Content/Schema/SchemaObjectExampleCodeBlock.vue2.js +0 -4
  189. package/dist/components/Content/Schema/SchemaObjectProperties.vue.js +0 -120
  190. package/dist/components/Content/Schema/SchemaObjectProperties.vue2.js +0 -4
  191. package/dist/components/Content/Schema/SchemaProperty.vue.js +0 -7
  192. package/dist/components/Content/Schema/SchemaProperty.vue2.js +0 -228
  193. package/dist/components/Content/Schema/SchemaPropertyDefault.vue.js +0 -7
  194. package/dist/components/Content/Schema/SchemaPropertyDefault.vue2.js +0 -45
  195. package/dist/components/Content/Schema/SchemaPropertyDetail.vue.js +0 -7
  196. package/dist/components/Content/Schema/SchemaPropertyDetail.vue2.js +0 -40
  197. package/dist/components/Content/Schema/SchemaPropertyExamples.vue.js +0 -7
  198. package/dist/components/Content/Schema/SchemaPropertyExamples.vue2.js +0 -80
  199. package/dist/components/Content/Schema/SchemaPropertyHeading.vue.js +0 -7
  200. package/dist/components/Content/Schema/SchemaPropertyHeading.vue2.js +0 -318
  201. package/dist/components/Content/Schema/helpers/format-example.js +0 -41
  202. package/dist/components/Content/Schema/helpers/format-value.js +0 -35
  203. package/dist/components/Content/Schema/helpers/get-compositions-to-render.js +0 -31
  204. package/dist/components/Content/Schema/helpers/get-enum-values.js +0 -20
  205. package/dist/components/Content/Schema/helpers/get-property-description.js +0 -34
  206. package/dist/components/Content/Schema/helpers/get-ref-name.js +0 -14
  207. package/dist/components/Content/Schema/helpers/get-schema-type.js +0 -47
  208. package/dist/components/Content/Schema/helpers/has-complex-array-items.js +0 -48
  209. package/dist/components/Content/Schema/helpers/is-empty-schema-object.js +0 -13
  210. package/dist/components/Content/Schema/helpers/is-type-object.js +0 -27
  211. package/dist/components/Content/Schema/helpers/merge-all-of-schemas.js +0 -215
  212. package/dist/components/Content/Schema/helpers/optimize-value-for-display.js +0 -64
  213. package/dist/components/Content/Schema/helpers/schema-composition.js +0 -4
  214. package/dist/components/Content/Schema/helpers/schema-name.js +0 -24
  215. package/dist/components/Content/Schema/helpers/should-display-description.js +0 -12
  216. package/dist/components/Content/Schema/helpers/should-display-heading.js +0 -12
  217. package/dist/components/Content/Schema/helpers/should-render-array-item-composition.js +0 -15
  218. package/dist/components/Content/Schema/helpers/sort-property-names.js +0 -71
  219. package/dist/components/Content/Tags/Tag.vue.js +0 -46
  220. package/dist/components/Content/Tags/Tag.vue2.js +0 -4
  221. package/dist/components/Content/Tags/components/ClassicLayout.vue.js +0 -7
  222. package/dist/components/Content/Tags/components/ClassicLayout.vue2.js +0 -57
  223. package/dist/components/Content/Tags/components/ModernLayout.vue.js +0 -7
  224. package/dist/components/Content/Tags/components/ModernLayout.vue2.js +0 -64
  225. package/dist/components/Content/Tags/components/TagSection.vue.js +0 -100
  226. package/dist/components/Content/Tags/components/TagSection.vue2.js +0 -4
  227. package/dist/components/GettingStarted.vue.js +0 -7
  228. package/dist/components/GettingStarted.vue2.js +0 -82
  229. package/dist/components/HttpMethod/HttpMethod.vue.js +0 -34
  230. package/dist/components/HttpMethod/HttpMethod.vue2.js +0 -4
  231. package/dist/components/IntersectionObserver.vue.js +0 -55
  232. package/dist/components/IntersectionObserver.vue2.js +0 -4
  233. package/dist/components/Lazy/Lazy.vue.js +0 -17
  234. package/dist/components/Lazy/Lazy.vue2.js +0 -4
  235. package/dist/components/LinkList/LinkList.vue.js +0 -7
  236. package/dist/components/LinkList/LinkList.vue2.js +0 -48
  237. package/dist/components/LoadingSkeleton.vue.js +0 -7
  238. package/dist/components/LoadingSkeleton.vue2.js +0 -20
  239. package/dist/components/MobileHeader.vue.js +0 -62
  240. package/dist/components/MobileHeader.vue2.js +0 -4
  241. package/dist/components/OperationPath.vue.js +0 -7
  242. package/dist/components/OperationPath.vue2.js +0 -30
  243. package/dist/components/OperationsList/OperationsList.vue.js +0 -7
  244. package/dist/components/OperationsList/OperationsList.vue2.js +0 -61
  245. package/dist/components/OperationsList/OperationsListItem.vue.js +0 -7
  246. package/dist/components/OperationsList/OperationsListItem.vue2.js +0 -68
  247. package/dist/components/RenderPlugins/RenderPlugins.vue.js +0 -43
  248. package/dist/components/RenderPlugins/RenderPlugins.vue2.js +0 -4
  249. package/dist/components/ScreenReader.vue.js +0 -7
  250. package/dist/components/ScreenReader.vue2.js +0 -21
  251. package/dist/components/Section/CompactSection.vue.js +0 -7
  252. package/dist/components/Section/CompactSection.vue2.js +0 -60
  253. package/dist/components/Section/Section.vue.js +0 -7
  254. package/dist/components/Section/Section.vue2.js +0 -23
  255. package/dist/components/Section/SectionAccordion.vue.js +0 -7
  256. package/dist/components/Section/SectionAccordion.vue2.js +0 -76
  257. package/dist/components/Section/SectionColumn.vue.js +0 -14
  258. package/dist/components/Section/SectionColumns.vue.js +0 -14
  259. package/dist/components/Section/SectionContainer.vue.js +0 -7
  260. package/dist/components/Section/SectionContainer.vue2.js +0 -21
  261. package/dist/components/Section/SectionContainerAccordion.vue.js +0 -7
  262. package/dist/components/Section/SectionContainerAccordion.vue2.js +0 -54
  263. package/dist/components/Section/SectionContent.vue.js +0 -7
  264. package/dist/components/Section/SectionContent.vue2.js +0 -22
  265. package/dist/components/Section/SectionHeader.vue.js +0 -7
  266. package/dist/components/Section/SectionHeader.vue2.js +0 -26
  267. package/dist/components/Section/SectionHeaderTag.vue.js +0 -7
  268. package/dist/components/Section/SectionHeaderTag.vue2.js +0 -20
  269. package/dist/components/SectionFlare/SectionFlare.vue.js +0 -14
  270. package/dist/components/ShowMoreButton.vue.js +0 -7
  271. package/dist/components/ShowMoreButton.vue2.js +0 -23
  272. package/dist/consts/urls.js +0 -16
  273. package/dist/features/Operation/Operation.vue.js +0 -100
  274. package/dist/features/Operation/Operation.vue2.js +0 -4
  275. package/dist/features/Operation/components/ContentTypeSelect.vue.js +0 -88
  276. package/dist/features/Operation/components/ContentTypeSelect.vue2.js +0 -4
  277. package/dist/features/Operation/components/Header.vue.js +0 -33
  278. package/dist/features/Operation/components/Header.vue2.js +0 -4
  279. package/dist/features/Operation/components/Headers.vue.js +0 -7
  280. package/dist/features/Operation/components/Headers.vue2.js +0 -71
  281. package/dist/features/Operation/components/OperationParameters.vue.js +0 -92
  282. package/dist/features/Operation/components/OperationParameters.vue2.js +0 -4
  283. package/dist/features/Operation/components/OperationResponses.vue.js +0 -44
  284. package/dist/features/Operation/components/OperationResponses.vue2.js +0 -4
  285. package/dist/features/Operation/components/ParameterList.vue.js +0 -50
  286. package/dist/features/Operation/components/ParameterList.vue2.js +0 -4
  287. package/dist/features/Operation/components/ParameterListItem.vue.js +0 -7
  288. package/dist/features/Operation/components/ParameterListItem.vue2.js +0 -163
  289. package/dist/features/Operation/components/RequestBody.vue.js +0 -7
  290. package/dist/features/Operation/components/RequestBody.vue2.js +0 -164
  291. package/dist/features/Operation/components/callbacks/Callback.vue.js +0 -7
  292. package/dist/features/Operation/components/callbacks/Callback.vue2.js +0 -60
  293. package/dist/features/Operation/components/callbacks/Callbacks.vue.js +0 -63
  294. package/dist/features/Operation/components/callbacks/Callbacks.vue2.js +0 -4
  295. package/dist/features/Operation/helpers/filter-selected-security.js +0 -28
  296. package/dist/features/Operation/helpers/get-first-server.js +0 -25
  297. package/dist/features/Operation/layouts/ClassicLayout.vue.js +0 -7
  298. package/dist/features/Operation/layouts/ClassicLayout.vue2.js +0 -243
  299. package/dist/features/Operation/layouts/ModernLayout.vue.js +0 -7
  300. package/dist/features/Operation/layouts/ModernLayout.vue2.js +0 -256
  301. package/dist/features/Search/components/SearchButton.vue.js +0 -88
  302. package/dist/features/Search/components/SearchButton.vue2.js +0 -4
  303. package/dist/features/Search/components/SearchModal.vue.js +0 -7
  304. package/dist/features/Search/components/SearchModal.vue2.js +0 -120
  305. package/dist/features/Search/components/SearchResult.vue.js +0 -84
  306. package/dist/features/Search/components/SearchResult.vue2.js +0 -4
  307. package/dist/features/Search/helpers/create-fuse-instance.js +0 -43
  308. package/dist/features/Search/helpers/create-search-index.js +0 -119
  309. package/dist/features/Search/hooks/useSearchIndex.js +0 -33
  310. package/dist/features/ask-agent-button/AskAgentButton.vue.js +0 -7
  311. package/dist/features/ask-agent-button/AskAgentButton.vue2.js +0 -47
  312. package/dist/features/developer-tools/DeveloperTools.vue.js +0 -60
  313. package/dist/features/developer-tools/DeveloperTools.vue2.js +0 -4
  314. package/dist/features/developer-tools/components/ApiReferenceToolbarBlurb.vue.js +0 -13
  315. package/dist/features/developer-tools/components/ApiReferenceToolbarConfigLayout.vue.js +0 -33
  316. package/dist/features/developer-tools/components/ApiReferenceToolbarConfigLayout.vue2.js +0 -4
  317. package/dist/features/developer-tools/components/ApiReferenceToolbarConfigLayoutOptions.vue.js +0 -138
  318. package/dist/features/developer-tools/components/ApiReferenceToolbarConfigLayoutOptions.vue2.js +0 -4
  319. package/dist/features/developer-tools/components/ApiReferenceToolbarConfigTheme.vue.js +0 -66
  320. package/dist/features/developer-tools/components/ApiReferenceToolbarConfigTheme.vue2.js +0 -4
  321. package/dist/features/developer-tools/components/ApiReferenceToolbarPopover.vue.js +0 -54
  322. package/dist/features/developer-tools/components/ApiReferenceToolbarPopover.vue2.js +0 -4
  323. package/dist/features/developer-tools/components/ApiReferenceToolbarRegisterButton.vue.js +0 -71
  324. package/dist/features/developer-tools/components/ApiReferenceToolbarRegisterButton.vue2.js +0 -4
  325. package/dist/features/developer-tools/components/ApiReferenceToolbarShareRegister.vue.js +0 -63
  326. package/dist/features/developer-tools/components/ApiReferenceToolbarShareRegister.vue2.js +0 -4
  327. package/dist/features/developer-tools/components/ApiReferenceToolbarShareTemporary.vue.js +0 -73
  328. package/dist/features/developer-tools/components/ApiReferenceToolbarShareTemporary.vue2.js +0 -4
  329. package/dist/features/developer-tools/components/ApiReferenceToolbarTitle.vue.js +0 -57
  330. package/dist/features/developer-tools/components/ApiReferenceToolbarTitle.vue2.js +0 -4
  331. package/dist/features/developer-tools/components/DeployApiReference.vue.js +0 -35
  332. package/dist/features/developer-tools/components/DeployApiReference.vue2.js +0 -4
  333. package/dist/features/developer-tools/components/ModifyConfiguration.vue.js +0 -103
  334. package/dist/features/developer-tools/components/ModifyConfiguration.vue2.js +0 -4
  335. package/dist/features/developer-tools/components/ShareApiReference.vue.js +0 -35
  336. package/dist/features/developer-tools/components/ShareApiReference.vue2.js +0 -4
  337. package/dist/features/example-responses/ExampleResponse.vue.js +0 -7
  338. package/dist/features/example-responses/ExampleResponse.vue2.js +0 -61
  339. package/dist/features/example-responses/ExampleResponseTab.vue.js +0 -7
  340. package/dist/features/example-responses/ExampleResponseTab.vue2.js +0 -25
  341. package/dist/features/example-responses/ExampleResponseTabList.vue.js +0 -7
  342. package/dist/features/example-responses/ExampleResponseTabList.vue2.js +0 -37
  343. package/dist/features/example-responses/ExampleResponses.vue.js +0 -7
  344. package/dist/features/example-responses/ExampleResponses.vue2.js +0 -181
  345. package/dist/features/example-responses/ExampleSchema.vue.js +0 -42
  346. package/dist/features/example-responses/ExampleSchema.vue2.js +0 -4
  347. package/dist/features/example-responses/has-response-content.js +0 -28
  348. package/dist/features/external-docs/ExternalDocs.vue.js +0 -42
  349. package/dist/features/external-docs/ExternalDocs.vue2.js +0 -4
  350. package/dist/features/info-object/Contact.vue.js +0 -46
  351. package/dist/features/info-object/Contact.vue2.js +0 -4
  352. package/dist/features/info-object/License.vue.js +0 -40
  353. package/dist/features/info-object/License.vue2.js +0 -4
  354. package/dist/features/info-object/TermsOfService.vue.js +0 -34
  355. package/dist/features/info-object/TermsOfService.vue2.js +0 -4
  356. package/dist/features/multiple-documents/DocumentSelector.vue.js +0 -54
  357. package/dist/features/multiple-documents/DocumentSelector.vue2.js +0 -4
  358. package/dist/features/specification-extension/SpecificationExtension.vue.js +0 -4
  359. package/dist/features/specification-extension/SpecificationExtension.vue2.js +0 -52
  360. package/dist/features/specification-extension/helpers.js +0 -9
  361. package/dist/features/test-request-button/TestRequestButton.vue.js +0 -7
  362. package/dist/features/test-request-button/TestRequestButton.vue2.js +0 -46
  363. package/dist/features/x-badges/XBadges.vue.js +0 -35
  364. package/dist/features/x-badges/XBadges.vue2.js +0 -4
  365. package/dist/helpers/color-mode.js +0 -9
  366. package/dist/helpers/download.js +0 -45
  367. package/dist/helpers/id-routing.js +0 -63
  368. package/dist/helpers/lazy-bus.js +0 -160
  369. package/dist/helpers/load-from-perssistance.js +0 -17
  370. package/dist/helpers/map-config-plugins.js +0 -27
  371. package/dist/helpers/map-config-to-workspace-store.js +0 -45
  372. package/dist/helpers/normalize-configurations.js +0 -69
  373. package/dist/helpers/openapi.js +0 -135
  374. package/dist/helpers/storage.js +0 -47
  375. package/dist/helpers/upload-temp-document.js +0 -24
  376. package/dist/hooks/use-agent.js +0 -42
  377. package/dist/hooks/use-intersection.js +0 -32
  378. package/dist/plugins/hooks/usePluginManager.js +0 -14
  379. package/dist/plugins/persistance-plugin.js +0 -48
  380. package/dist/plugins/plugin-manager.js +0 -39
  381. package/dist/standalone/lib/html-api.js +0 -81
@@ -1,243 +0,0 @@
1
- import { defineComponent, computed, ref, createBlock, openBlock, unref, createSlots, withCtx, createElementVNode, createCommentVNode, createElementBlock, createVNode, Fragment, toDisplayString, withModifiers, normalizeClass, createTextVNode } from "vue";
2
- import { OperationCodeSample } from "@scalar/api-client/v2/blocks/operation-code-sample";
3
- import { ScalarErrorBoundary, ScalarIconButton, ScalarMarkdown } from "@scalar/components";
4
- import { ScalarIconPlay, ScalarIconCopy, ScalarIconWebhooksLogo } from "@scalar/icons";
5
- import { isOperationDeprecated, getOperationStability, getOperationStabilityColor } from "@scalar/oas-utils/helpers";
6
- import { useClipboard } from "@scalar/use-hooks/useClipboard";
7
- import { getResolvedRef } from "@scalar/workspace-store/helpers/get-resolved-ref";
8
- import OperationPath from "../../../components/OperationPath.vue.js";
9
- import _sfc_main$4 from "../components/callbacks/Callbacks.vue.js";
10
- import _sfc_main$2 from "../components/OperationParameters.vue.js";
11
- import _sfc_main$3 from "../components/OperationResponses.vue.js";
12
- import _sfc_main$1 from "../../specification-extension/SpecificationExtension.vue2.js";
13
- import { getXKeysFromObject } from "../../specification-extension/helpers.js";
14
- import SectionAccordion from "../../../components/Section/SectionAccordion.vue.js";
15
- import ExampleResponses from "../../example-responses/ExampleResponses.vue.js";
16
- import LinkList from "../../../components/LinkList/LinkList.vue.js";
17
- import _sfc_main$5 from "../../external-docs/ExternalDocs.vue.js";
18
- import _sfc_main$6 from "../../x-badges/XBadges.vue.js";
19
- import TestRequestButton from "../../test-request-button/TestRequestButton.vue.js";
20
- import _sfc_main$7 from "../../../components/HttpMethod/HttpMethod.vue.js";
21
- import _sfc_main$8 from "../../../components/Anchor/Anchor.vue.js";
22
- import Badge from "../../../components/Badge/Badge.vue.js";
23
- const _hoisted_1 = { class: "operation-title" };
24
- const _hoisted_2 = { class: "operation-details" };
25
- const _hoisted_3 = { class: "endpoint-label" };
26
- const _hoisted_4 = { class: "endpoint-label-path" };
27
- const _hoisted_5 = { class: "endpoint-label-name" };
28
- const _hoisted_6 = {
29
- key: 1,
30
- class: "font-code text-sm"
31
- };
32
- const _hoisted_7 = { class: "endpoint-content" };
33
- const _hoisted_8 = { class: "operation-details-card" };
34
- const _hoisted_9 = {
35
- key: 0,
36
- class: "operation-details-card-item"
37
- };
38
- const _hoisted_10 = { class: "operation-details-card-item" };
39
- const _hoisted_11 = { class: "operation-details-card-item" };
40
- const _hoisted_12 = {
41
- key: 1,
42
- class: "operation-details-card-item"
43
- };
44
- const _sfc_main = /* @__PURE__ */ defineComponent({
45
- __name: "ClassicLayout",
46
- props: {
47
- id: {},
48
- method: {},
49
- options: {},
50
- path: {},
51
- clientOptions: {},
52
- isCollapsed: { type: Boolean },
53
- isWebhook: { type: Boolean },
54
- selectedClient: {},
55
- eventBus: {},
56
- operation: {},
57
- selectedServer: {},
58
- selectedSecuritySchemes: {}
59
- },
60
- setup(__props) {
61
- const operationTitle = computed(() => __props.operation.summary || __props.path || "");
62
- const operationExtensions = computed(() => getXKeysFromObject(__props.operation));
63
- const selectedExampleKey = ref("");
64
- const { copyToClipboard } = useClipboard();
65
- return (_ctx, _cache) => {
66
- return openBlock(), createBlock(unref(SectionAccordion), {
67
- id: __props.id,
68
- "aria-label": operationTitle.value,
69
- class: "reference-endpoint",
70
- modelValue: !__props.isCollapsed,
71
- transparent: "",
72
- "onUpdate:modelValue": _cache[3] || (_cache[3] = (value) => __props.eventBus?.emit("toggle:nav-item", { id: __props.id, open: value }))
73
- }, createSlots({
74
- title: withCtx(() => [
75
- createElementVNode("div", _hoisted_1, [
76
- createElementVNode("div", _hoisted_2, [
77
- createVNode(unref(_sfc_main$7), {
78
- class: "endpoint-type",
79
- method: __props.method,
80
- short: ""
81
- }, null, 8, ["method"]),
82
- createVNode(unref(_sfc_main$8), {
83
- class: "endpoint-anchor",
84
- onCopyAnchorUrl: _cache[0] || (_cache[0] = () => __props.eventBus?.emit("copy-url:nav-item", { id: __props.id }))
85
- }, {
86
- default: withCtx(() => [
87
- createElementVNode("h3", _hoisted_3, [
88
- createElementVNode("div", _hoisted_4, [
89
- createVNode(OperationPath, {
90
- deprecated: unref(isOperationDeprecated)(__props.operation),
91
- path: __props.path
92
- }, null, 8, ["deprecated", "path"])
93
- ]),
94
- createElementVNode("div", _hoisted_5, toDisplayString(operationTitle.value), 1),
95
- unref(getOperationStability)(__props.operation) ? (openBlock(), createBlock(unref(Badge), {
96
- key: 0,
97
- class: normalizeClass(["capitalize", unref(getOperationStabilityColor)(__props.operation)])
98
- }, {
99
- default: withCtx(() => [
100
- createTextVNode(toDisplayString(unref(getOperationStability)(__props.operation)), 1)
101
- ]),
102
- _: 1
103
- }, 8, ["class"])) : createCommentVNode("", true),
104
- __props.isWebhook ? (openBlock(), createBlock(unref(Badge), {
105
- key: 1,
106
- class: "font-code text-green flex w-fit items-center justify-center gap-1"
107
- }, {
108
- default: withCtx(() => [
109
- createVNode(unref(ScalarIconWebhooksLogo), { weight: "bold" }),
110
- _cache[4] || (_cache[4] = createTextVNode("Webhook ", -1))
111
- ]),
112
- _: 1
113
- })) : createCommentVNode("", true),
114
- createVNode(unref(_sfc_main$6), {
115
- badges: __props.operation["x-badges"],
116
- position: "before"
117
- }, null, 8, ["badges"])
118
- ])
119
- ]),
120
- _: 1
121
- })
122
- ])
123
- ])
124
- ]),
125
- actions: withCtx(({ active }) => [
126
- createVNode(unref(_sfc_main$6), {
127
- badges: __props.operation["x-badges"],
128
- position: "after"
129
- }, null, 8, ["badges"]),
130
- !__props.options.hideTestRequestButton ? (openBlock(), createElementBlock(Fragment, { key: 0 }, [
131
- active && !__props.isWebhook ? (openBlock(), createBlock(unref(TestRequestButton), {
132
- key: 0,
133
- id: __props.id,
134
- eventBus: __props.eventBus,
135
- exampleName: selectedExampleKey.value,
136
- method: __props.method,
137
- path: __props.path
138
- }, null, 8, ["id", "eventBus", "exampleName", "method", "path"])) : (openBlock(), createBlock(unref(ScalarIconPlay), {
139
- key: 1,
140
- class: "endpoint-try-hint size-4.5"
141
- }))
142
- ], 64)) : createCommentVNode("", true),
143
- __props.options.showOperationId && __props.operation.operationId ? (openBlock(), createElementBlock("span", _hoisted_6, toDisplayString(__props.operation.operationId), 1)) : createCommentVNode("", true),
144
- createVNode(unref(ScalarIconButton), {
145
- class: "endpoint-copy p-0.5",
146
- icon: unref(ScalarIconCopy),
147
- label: "Copy endpoint URL",
148
- size: "xs",
149
- variant: "ghost",
150
- onClick: _cache[1] || (_cache[1] = withModifiers(($event) => unref(copyToClipboard)(__props.path), ["stop"]))
151
- }, null, 8, ["icon"])
152
- ]),
153
- default: withCtx(() => [
154
- createElementVNode("div", _hoisted_7, [
155
- createElementVNode("div", _hoisted_8, [
156
- Object.keys(operationExtensions.value).length > 0 ? (openBlock(), createElementBlock("div", _hoisted_9, [
157
- createVNode(_sfc_main$1, { value: operationExtensions.value }, null, 8, ["value"])
158
- ])) : createCommentVNode("", true),
159
- createElementVNode("div", _hoisted_10, [
160
- createVNode(_sfc_main$2, {
161
- eventBus: __props.eventBus,
162
- options: __props.options,
163
- parameters: __props.operation.parameters,
164
- requestBody: unref(getResolvedRef)(__props.operation.requestBody)
165
- }, null, 8, ["eventBus", "options", "parameters", "requestBody"])
166
- ]),
167
- createElementVNode("div", _hoisted_11, [
168
- createVNode(_sfc_main$3, {
169
- eventBus: __props.eventBus,
170
- options: __props.options,
171
- responses: __props.operation.responses
172
- }, null, 8, ["eventBus", "options", "responses"])
173
- ]),
174
- __props.operation?.callbacks ? (openBlock(), createElementBlock("div", _hoisted_12, [
175
- createVNode(_sfc_main$4, {
176
- callbacks: __props.operation.callbacks,
177
- eventBus: __props.eventBus,
178
- options: __props.options,
179
- path: __props.path
180
- }, null, 8, ["callbacks", "eventBus", "options", "path"])
181
- ])) : createCommentVNode("", true)
182
- ]),
183
- __props.operation.responses ? (openBlock(), createBlock(unref(ExampleResponses), {
184
- key: 0,
185
- class: "operation-example-card",
186
- responses: __props.operation.responses
187
- }, null, 8, ["responses"])) : createCommentVNode("", true),
188
- createElementVNode("div", null, [
189
- __props.operation.externalDocs ? (openBlock(), createBlock(unref(LinkList), { key: 0 }, {
190
- default: withCtx(() => [
191
- createVNode(unref(_sfc_main$5), {
192
- value: __props.operation.externalDocs
193
- }, null, 8, ["value"])
194
- ]),
195
- _: 1
196
- })) : createCommentVNode("", true),
197
- createVNode(unref(ScalarErrorBoundary), null, {
198
- default: withCtx(() => [
199
- createVNode(unref(OperationCodeSample), {
200
- selectedExample: selectedExampleKey.value,
201
- "onUpdate:selectedExample": _cache[2] || (_cache[2] = ($event) => selectedExampleKey.value = $event),
202
- class: "operation-example-card",
203
- clientOptions: __props.clientOptions,
204
- eventBus: __props.eventBus,
205
- fallback: "",
206
- isWebhook: __props.isWebhook,
207
- method: __props.method,
208
- operation: __props.operation,
209
- path: __props.path,
210
- securitySchemes: __props.selectedSecuritySchemes,
211
- selectedClient: __props.selectedClient,
212
- selectedServer: __props.selectedServer
213
- }, null, 8, ["selectedExample", "clientOptions", "eventBus", "isWebhook", "method", "operation", "path", "securitySchemes", "selectedClient", "selectedServer"])
214
- ]),
215
- _: 1
216
- })
217
- ])
218
- ])
219
- ]),
220
- _: 2
221
- }, [
222
- __props.operation.description ? {
223
- name: "description",
224
- fn: withCtx(() => [
225
- createVNode(unref(ScalarMarkdown), {
226
- anchorPrefix: __props.id,
227
- "aria-label": "Operation Description",
228
- role: "group",
229
- transformType: "heading",
230
- value: __props.operation.description,
231
- withAnchors: "",
232
- withImages: ""
233
- }, null, 8, ["anchorPrefix", "value"])
234
- ]),
235
- key: "0"
236
- } : void 0
237
- ]), 1032, ["id", "aria-label", "modelValue"]);
238
- };
239
- }
240
- });
241
- export {
242
- _sfc_main as default
243
- };
@@ -1,7 +0,0 @@
1
- import _sfc_main from "./ModernLayout.vue2.js";
2
- /* empty css */
3
- import _export_sfc from "../../../_virtual/_plugin-vue_export-helper.js";
4
- const ModernLayout = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-3c3c5405"]]);
5
- export {
6
- ModernLayout as default
7
- };
@@ -1,256 +0,0 @@
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 AskAgentButton from "../../ask-agent-button/AskAgentButton.vue.js";
9
- import _sfc_main$6 from "../components/callbacks/Callbacks.vue.js";
10
- import _sfc_main$4 from "../components/OperationParameters.vue.js";
11
- import _sfc_main$5 from "../components/OperationResponses.vue.js";
12
- import _sfc_main$3 from "../../specification-extension/SpecificationExtension.vue2.js";
13
- import { getXKeysFromObject } from "../../specification-extension/helpers.js";
14
- import Section from "../../../components/Section/Section.vue.js";
15
- import SectionContent from "../../../components/Section/SectionContent.vue.js";
16
- import Badge from "../../../components/Badge/Badge.vue.js";
17
- import _sfc_main$1 from "../../x-badges/XBadges.vue.js";
18
- import SectionHeader from "../../../components/Section/SectionHeader.vue.js";
19
- import _sfc_main$2 from "../../../components/Anchor/Anchor.vue.js";
20
- import SectionHeaderTag from "../../../components/Section/SectionHeaderTag.vue.js";
21
- import SectionColumns from "../../../components/Section/SectionColumns.vue.js";
22
- import SectionColumn from "../../../components/Section/SectionColumn.vue.js";
23
- import LinkList from "../../../components/LinkList/LinkList.vue.js";
24
- import _sfc_main$7 from "../../external-docs/ExternalDocs.vue.js";
25
- import TestRequestButton from "../../test-request-button/TestRequestButton.vue.js";
26
- import ExampleResponses from "../../example-responses/ExampleResponses.vue.js";
27
- const _hoisted_1 = { class: "flex flex-row justify-between gap-1" };
28
- const _hoisted_2 = { class: "flex gap-1" };
29
- const _hoisted_3 = { class: "flex gap-1" };
30
- const _hoisted_4 = { class: "operation-details" };
31
- const _hoisted_5 = { class: "examples" };
32
- const _hoisted_6 = { class: "flex" };
33
- const _sfc_main = /* @__PURE__ */ defineComponent({
34
- __name: "ModernLayout",
35
- props: {
36
- id: {},
37
- method: {},
38
- options: {},
39
- path: {},
40
- clientOptions: {},
41
- isWebhook: { type: Boolean },
42
- selectedClient: {},
43
- eventBus: {},
44
- operation: {},
45
- selectedServer: {},
46
- selectedSecuritySchemes: {}
47
- },
48
- setup(__props) {
49
- const operationTitle = computed(() => __props.operation.summary || __props.path || "");
50
- const labelId = useId();
51
- const operationExtensions = computed(() => getXKeysFromObject(__props.operation));
52
- return (_ctx, _cache) => {
53
- return openBlock(), createBlock(unref(Section), {
54
- id: __props.id,
55
- "aria-labelledby": unref(labelId),
56
- label: operationTitle.value,
57
- tabindex: "-1",
58
- onIntersecting: _cache[1] || (_cache[1] = () => __props.eventBus?.emit("intersecting:nav-item", { id: __props.id }))
59
- }, {
60
- default: withCtx(() => [
61
- createVNode(unref(SectionContent), null, {
62
- default: withCtx(() => [
63
- createElementVNode("div", _hoisted_1, [
64
- createElementVNode("div", _hoisted_2, [
65
- __props.options?.showOperationId && __props.operation.operationId ? (openBlock(), createBlock(unref(Badge), { key: 0 }, {
66
- default: withCtx(() => [
67
- createTextVNode(toDisplayString(__props.operation.operationId), 1)
68
- ]),
69
- _: 1
70
- })) : createCommentVNode("", true),
71
- unref(getOperationStability)(__props.operation) ? (openBlock(), createBlock(unref(Badge), {
72
- key: 1,
73
- class: normalizeClass(["capitalize", unref(getOperationStabilityColor)(__props.operation)])
74
- }, {
75
- default: withCtx(() => [
76
- createTextVNode(toDisplayString(unref(getOperationStability)(__props.operation)), 1)
77
- ]),
78
- _: 1
79
- }, 8, ["class"])) : createCommentVNode("", true),
80
- __props.isWebhook ? (openBlock(), createBlock(unref(Badge), {
81
- key: 2,
82
- class: "font-code text-green flex w-fit items-center justify-center gap-1"
83
- }, {
84
- default: withCtx(() => [
85
- createVNode(unref(ScalarIconWebhooksLogo), { weight: "bold" }),
86
- _cache[2] || (_cache[2] = createTextVNode("Webhook ", -1))
87
- ]),
88
- _: 1
89
- })) : createCommentVNode("", true),
90
- createVNode(unref(_sfc_main$1), {
91
- badges: __props.operation["x-badges"],
92
- position: "before"
93
- }, null, 8, ["badges"])
94
- ]),
95
- createElementVNode("div", _hoisted_3, [
96
- createVNode(unref(_sfc_main$1), {
97
- badges: __props.operation["x-badges"],
98
- position: "after"
99
- }, null, 8, ["badges"])
100
- ])
101
- ]),
102
- createElementVNode("div", {
103
- class: normalizeClass(unref(isOperationDeprecated)(__props.operation) ? "deprecated" : "")
104
- }, [
105
- createVNode(unref(SectionHeader), null, {
106
- default: withCtx(() => [
107
- createVNode(unref(_sfc_main$2), {
108
- onCopyAnchorUrl: _cache[0] || (_cache[0] = () => __props.eventBus?.emit("copy-url:nav-item", { id: __props.id }))
109
- }, {
110
- default: withCtx(() => [
111
- createVNode(unref(SectionHeaderTag), {
112
- id: unref(labelId),
113
- level: 3
114
- }, {
115
- default: withCtx(() => [
116
- createTextVNode(toDisplayString(operationTitle.value), 1)
117
- ]),
118
- _: 1
119
- }, 8, ["id"])
120
- ]),
121
- _: 1
122
- })
123
- ]),
124
- _: 1
125
- })
126
- ], 2),
127
- createVNode(unref(SectionColumns), null, {
128
- default: withCtx(() => [
129
- createVNode(unref(SectionColumn), null, {
130
- default: withCtx(() => [
131
- createElementVNode("div", _hoisted_4, [
132
- createVNode(_sfc_main$3, { value: operationExtensions.value }, null, 8, ["value"]),
133
- createVNode(unref(ScalarMarkdown), {
134
- anchorPrefix: __props.id,
135
- "aria-label": "Operation Description",
136
- role: "group",
137
- transformType: "heading",
138
- value: __props.operation.description,
139
- withAnchors: "",
140
- withImages: ""
141
- }, null, 8, ["anchorPrefix", "value"]),
142
- createVNode(_sfc_main$4, {
143
- breadcrumb: [__props.id],
144
- eventBus: __props.eventBus,
145
- options: __props.options,
146
- parameters: __props.operation.parameters,
147
- requestBody: unref(getResolvedRef)(__props.operation.requestBody)
148
- }, null, 8, ["breadcrumb", "eventBus", "options", "parameters", "requestBody"]),
149
- createVNode(_sfc_main$5, {
150
- breadcrumb: [__props.id],
151
- collapsableItems: !__props.options.expandAllResponses,
152
- eventBus: __props.eventBus,
153
- options: __props.options,
154
- responses: __props.operation.responses
155
- }, null, 8, ["breadcrumb", "collapsableItems", "eventBus", "options", "responses"]),
156
- createVNode(unref(ScalarErrorBoundary), null, {
157
- default: withCtx(() => [
158
- __props.operation.callbacks ? (openBlock(), createBlock(_sfc_main$6, {
159
- key: 0,
160
- callbacks: __props.operation.callbacks,
161
- class: "mt-6",
162
- eventBus: __props.eventBus,
163
- options: __props.options,
164
- path: __props.path
165
- }, null, 8, ["callbacks", "eventBus", "options", "path"])) : createCommentVNode("", true)
166
- ]),
167
- _: 1
168
- })
169
- ])
170
- ]),
171
- _: 1
172
- }),
173
- createVNode(unref(SectionColumn), null, {
174
- default: withCtx(() => [
175
- createElementVNode("div", _hoisted_5, [
176
- __props.operation.externalDocs ? (openBlock(), createBlock(unref(LinkList), { key: 0 }, {
177
- default: withCtx(() => [
178
- createVNode(unref(_sfc_main$7), {
179
- value: __props.operation.externalDocs
180
- }, null, 8, ["value"])
181
- ]),
182
- _: 1
183
- })) : createCommentVNode("", true),
184
- createVNode(unref(ScalarErrorBoundary), null, {
185
- default: withCtx(() => [
186
- createVNode(unref(OperationCodeSample), {
187
- clientOptions: __props.clientOptions,
188
- eventBus: __props.eventBus,
189
- fallback: "",
190
- isWebhook: __props.isWebhook,
191
- method: __props.method,
192
- operation: __props.operation,
193
- path: __props.path,
194
- securitySchemes: __props.selectedSecuritySchemes,
195
- selectedClient: __props.selectedClient,
196
- selectedServer: __props.selectedServer
197
- }, createSlots({
198
- header: withCtx(() => [
199
- createVNode(OperationPath, {
200
- class: "font-code text-c-2 [&_em]:text-c-1 [&_em]:not-italic",
201
- deprecated: __props.operation?.deprecated,
202
- path: __props.path
203
- }, null, 8, ["deprecated", "path"])
204
- ]),
205
- _: 2
206
- }, [
207
- !__props.isWebhook ? {
208
- name: "footer",
209
- fn: withCtx(({ exampleName }) => [
210
- createElementVNode("div", _hoisted_6, [
211
- createVNode(AskAgentButton),
212
- !__props.options.hideTestRequestButton ? (openBlock(), createBlock(unref(TestRequestButton), {
213
- key: 0,
214
- id: __props.id,
215
- eventBus: __props.eventBus,
216
- exampleName,
217
- method: __props.method,
218
- path: __props.path
219
- }, null, 8, ["id", "eventBus", "exampleName", "method", "path"])) : createCommentVNode("", true)
220
- ])
221
- ]),
222
- key: "0"
223
- } : void 0
224
- ]), 1032, ["clientOptions", "eventBus", "isWebhook", "method", "operation", "path", "securitySchemes", "selectedClient", "selectedServer"])
225
- ]),
226
- _: 1
227
- }),
228
- createVNode(unref(ScalarErrorBoundary), null, {
229
- default: withCtx(() => [
230
- __props.operation.responses ? (openBlock(), createBlock(unref(ExampleResponses), {
231
- key: 0,
232
- responses: __props.operation.responses,
233
- style: { "margin-top": "12px" }
234
- }, null, 8, ["responses"])) : createCommentVNode("", true)
235
- ]),
236
- _: 1
237
- })
238
- ])
239
- ]),
240
- _: 1
241
- })
242
- ]),
243
- _: 1
244
- })
245
- ]),
246
- _: 1
247
- })
248
- ]),
249
- _: 1
250
- }, 8, ["id", "aria-labelledby", "label"]);
251
- };
252
- }
253
- });
254
- export {
255
- _sfc_main as default
256
- };
@@ -1,88 +0,0 @@
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
- __name: "SearchButton",
8
- props: {
9
- forceIcon: { type: Boolean },
10
- searchHotKey: { default: "k" },
11
- hideModels: { type: Boolean, default: false },
12
- document: {},
13
- eventBus: {}
14
- },
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
- }
28
- };
29
- watch(
30
- () => modalState.open,
31
- async (next, prev) => {
32
- if (!next && prev) {
33
- await nextTick();
34
- button.value?.$el.focus();
35
- }
36
- }
37
- );
38
- onMounted(() => window.addEventListener("keydown", handleHotKey));
39
- onBeforeUnmount(() => window.removeEventListener("keydown", handleHotKey));
40
- function handleClick() {
41
- modalState.show();
42
- }
43
- return (_ctx, _cache) => {
44
- return openBlock(), createElementBlock(Fragment, null, [
45
- __props.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(__props.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: __props.document,
78
- eventBus: __props.eventBus,
79
- hideModels: __props.hideModels,
80
- modalState: unref(modalState)
81
- }, null, 8, ["document", "eventBus", "hideModels", "modalState"])
82
- ], 64);
83
- };
84
- }
85
- });
86
- export {
87
- _sfc_main as default
88
- };
@@ -1,4 +0,0 @@
1
- import _sfc_main from "./SearchButton.vue.js";
2
- export {
3
- _sfc_main as default
4
- };
@@ -1,7 +0,0 @@
1
- import _sfc_main from "./SearchModal.vue2.js";
2
- /* empty css */
3
- import _export_sfc from "../../../_virtual/_plugin-vue_export-helper.js";
4
- const SearchModal = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-c1c368f9"]]);
5
- export {
6
- SearchModal as default
7
- };