@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,103 +0,0 @@
1
- import { defineComponent, mergeModels, useModel, computed, createBlock, openBlock, withCtx, createVNode, createElementVNode, unref, createTextVNode } from "vue";
2
- import { ScalarFormSection, ScalarCodeBlock, ScalarFormField } from "@scalar/components";
3
- import { prettyPrintJson } from "@scalar/oas-utils/helpers";
4
- import _sfc_main$3 from "./ApiReferenceToolbarConfigLayout.vue.js";
5
- import _sfc_main$4 from "./ApiReferenceToolbarConfigLayoutOptions.vue.js";
6
- import _sfc_main$2 from "./ApiReferenceToolbarConfigTheme.vue.js";
7
- import _sfc_main$1 from "./ApiReferenceToolbarPopover.vue.js";
8
- const _hoisted_1 = { class: "flex flex-col gap-4" };
9
- const _sfc_main = /* @__PURE__ */ defineComponent({
10
- __name: "ModifyConfiguration",
11
- props: /* @__PURE__ */ mergeModels({
12
- configuration: {}
13
- }, {
14
- "overrides": {},
15
- "overridesModifiers": {}
16
- }),
17
- emits: ["update:overrides"],
18
- setup(__props) {
19
- const overrides = useModel(__props, "overrides");
20
- const snippet = computed(() => {
21
- return prettyPrintJson({
22
- ...overrides.value,
23
- // Make sure the overrides are first
24
- ...__props.configuration,
25
- ...overrides.value
26
- // But also that they override the configuration
27
- });
28
- });
29
- const theme = computed({
30
- get: () => overrides.value?.theme ?? __props.configuration?.theme ?? "default",
31
- set: (t) => overrides.value = { ...overrides.value, theme: t }
32
- });
33
- const layout = computed({
34
- get: () => overrides.value?.layout ?? __props.configuration?.layout ?? "modern",
35
- set: (l) => overrides.value = { ...overrides.value, layout: l }
36
- });
37
- return (_ctx, _cache) => {
38
- return openBlock(), createBlock(_sfc_main$1, { class: "w-120" }, {
39
- label: withCtx(() => [..._cache[3] || (_cache[3] = [
40
- createTextVNode("Configure", -1)
41
- ])]),
42
- default: withCtx(() => [
43
- createVNode(unref(ScalarFormSection), null, {
44
- label: withCtx(() => [..._cache[4] || (_cache[4] = [
45
- createTextVNode("Scalar Configuration", -1)
46
- ])]),
47
- default: withCtx(() => [
48
- createVNode(unref(ScalarCodeBlock), {
49
- class: "bg-b-1.5 flex max-h-40 flex-col rounded border text-sm",
50
- content: snippet.value,
51
- lang: "json"
52
- }, null, 8, ["content"])
53
- ]),
54
- _: 1
55
- }),
56
- createElementVNode("div", _hoisted_1, [
57
- createVNode(unref(ScalarFormField), null, {
58
- label: withCtx(() => [..._cache[5] || (_cache[5] = [
59
- createTextVNode("Theme", -1)
60
- ])]),
61
- default: withCtx(() => [
62
- createVNode(_sfc_main$2, {
63
- modelValue: theme.value,
64
- "onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => theme.value = $event)
65
- }, null, 8, ["modelValue"])
66
- ]),
67
- _: 1
68
- }),
69
- createVNode(unref(ScalarFormField), null, {
70
- label: withCtx(() => [..._cache[6] || (_cache[6] = [
71
- createTextVNode("Layout", -1)
72
- ])]),
73
- default: withCtx(() => [
74
- createVNode(_sfc_main$3, {
75
- modelValue: layout.value,
76
- "onUpdate:modelValue": _cache[1] || (_cache[1] = ($event) => layout.value = $event)
77
- }, null, 8, ["modelValue"])
78
- ]),
79
- _: 1
80
- }),
81
- createVNode(unref(ScalarFormField), { is: "div" }, {
82
- label: withCtx(() => [..._cache[7] || (_cache[7] = [
83
- createTextVNode("Layout Options", -1)
84
- ])]),
85
- default: withCtx(() => [
86
- createVNode(_sfc_main$4, {
87
- modelValue: overrides.value,
88
- "onUpdate:modelValue": _cache[2] || (_cache[2] = ($event) => overrides.value = $event),
89
- configuration: __props.configuration
90
- }, null, 8, ["modelValue", "configuration"])
91
- ]),
92
- _: 1
93
- })
94
- ])
95
- ]),
96
- _: 1
97
- });
98
- };
99
- }
100
- });
101
- export {
102
- _sfc_main as default
103
- };
@@ -1,4 +0,0 @@
1
- import _sfc_main from "./ModifyConfiguration.vue.js";
2
- export {
3
- _sfc_main as default
4
- };
@@ -1,35 +0,0 @@
1
- import { defineComponent, createBlock, openBlock, withCtx, createVNode, unref, createElementVNode, createTextVNode } from "vue";
2
- import { ScalarFormSection } from "@scalar/components";
3
- import _sfc_main$1 from "./ApiReferenceToolbarPopover.vue.js";
4
- import _sfc_main$2 from "./ApiReferenceToolbarShareTemporary.vue.js";
5
- const _sfc_main = /* @__PURE__ */ defineComponent({
6
- __name: "ShareApiReference",
7
- props: {
8
- workspace: {}
9
- },
10
- setup(__props) {
11
- return (_ctx, _cache) => {
12
- return openBlock(), createBlock(_sfc_main$1, { class: "w-120" }, {
13
- label: withCtx(() => [..._cache[0] || (_cache[0] = [
14
- createTextVNode("Share", -1)
15
- ])]),
16
- default: withCtx(() => [
17
- createVNode(unref(ScalarFormSection), null, {
18
- label: withCtx(() => [..._cache[1] || (_cache[1] = [
19
- createTextVNode("Share your API Reference", -1)
20
- ])]),
21
- default: withCtx(() => [
22
- _cache[2] || (_cache[2] = createElementVNode("p", { class: "text-c-2 mb-2 leading-normal" }, " Upload your OpenAPI document to share your API Reference with others. As easy as pressing a button. ", -1)),
23
- createVNode(_sfc_main$2, { workspace: __props.workspace }, null, 8, ["workspace"])
24
- ]),
25
- _: 1
26
- })
27
- ]),
28
- _: 1
29
- });
30
- };
31
- }
32
- });
33
- export {
34
- _sfc_main as default
35
- };
@@ -1,4 +0,0 @@
1
- import _sfc_main from "./ShareApiReference.vue.js";
2
- export {
3
- _sfc_main as default
4
- };
@@ -1,7 +0,0 @@
1
- import _sfc_main from "./ExampleResponse.vue2.js";
2
- /* empty css */
3
- import _export_sfc from "../../_virtual/_plugin-vue_export-helper.js";
4
- const ExampleResponse = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-fa0d0b45"]]);
5
- export {
6
- ExampleResponse as default
7
- };
@@ -1,61 +0,0 @@
1
- import { defineComponent, computed, createBlock, createElementBlock, openBlock, unref } from "vue";
2
- import { getResolvedRefDeep, getExampleFromSchema } from "@scalar/api-client/v2/blocks/operation-code-sample";
3
- import { ScalarCodeBlock, ScalarVirtualText } from "@scalar/components";
4
- import { prettyPrintJson } from "@scalar/oas-utils/helpers";
5
- import { getResolvedRef } from "@scalar/workspace-store/helpers/get-resolved-ref";
6
- const _hoisted_1 = {
7
- key: 2,
8
- class: "empty-state"
9
- };
10
- const VIRTUALIZATION_THRESHOLD = 2e4;
11
- const _sfc_main = /* @__PURE__ */ defineComponent({
12
- __name: "ExampleResponse",
13
- props: {
14
- response: {},
15
- example: {}
16
- },
17
- setup(__props) {
18
- const getContent = () => {
19
- if (__props.example !== void 0) {
20
- return getResolvedRefDeep(__props.example)?.value ?? "";
21
- }
22
- if (__props.response?.schema) {
23
- return getExampleFromSchema(getResolvedRef(__props.response.schema), {
24
- emptyString: "string",
25
- mode: "read"
26
- });
27
- }
28
- return void 0;
29
- };
30
- const prettyPrintedContent = computed(() => {
31
- const content = getContent();
32
- if (content === void 0) {
33
- return void 0;
34
- }
35
- return prettyPrintJson(content);
36
- });
37
- const shouldVirtualize = computed(() => {
38
- if (prettyPrintedContent.value === void 0) {
39
- return false;
40
- }
41
- return prettyPrintedContent.value.length > VIRTUALIZATION_THRESHOLD;
42
- });
43
- return (_ctx, _cache) => {
44
- return prettyPrintedContent.value !== void 0 && !shouldVirtualize.value ? (openBlock(), createBlock(unref(ScalarCodeBlock), {
45
- key: 0,
46
- class: "bg-b-2",
47
- lang: "json",
48
- prettyPrintedContent: prettyPrintedContent.value
49
- }, null, 8, ["prettyPrintedContent"])) : prettyPrintedContent.value !== void 0 && shouldVirtualize.value ? (openBlock(), createBlock(unref(ScalarVirtualText), {
50
- key: 1,
51
- containerClass: "custom-scroll scalar-code-block border rounded-b flex flex-1 max-h-screen",
52
- contentClass: "language-plaintext whitespace-pre font-code text-base",
53
- lineHeight: 20,
54
- text: prettyPrintedContent.value
55
- }, null, 8, ["text"])) : (openBlock(), createElementBlock("div", _hoisted_1, " No Body "));
56
- };
57
- }
58
- });
59
- export {
60
- _sfc_main as default
61
- };
@@ -1,7 +0,0 @@
1
- import _sfc_main from "./ExampleResponseTab.vue2.js";
2
- /* empty css */
3
- import _export_sfc from "../../_virtual/_plugin-vue_export-helper.js";
4
- const ExampleResponseTab = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-804dba49"]]);
5
- export {
6
- ExampleResponseTab as default
7
- };
@@ -1,25 +0,0 @@
1
- import { defineComponent, createBlock, openBlock, unref, withCtx, createElementVNode, normalizeClass, renderSlot } from "vue";
2
- import { Tab } from "@headlessui/vue";
3
- const _sfc_main = /* @__PURE__ */ defineComponent({
4
- __name: "ExampleResponseTab",
5
- setup(__props) {
6
- return (_ctx, _cache) => {
7
- return openBlock(), createBlock(unref(Tab), { as: "template" }, {
8
- default: withCtx(({ selected }) => [
9
- createElementVNode("button", {
10
- class: normalizeClass(["tab", { "tab-selected": selected }]),
11
- type: "button"
12
- }, [
13
- createElementVNode("span", null, [
14
- renderSlot(_ctx.$slots, "default", {}, void 0, true)
15
- ])
16
- ], 2)
17
- ]),
18
- _: 3
19
- });
20
- };
21
- }
22
- });
23
- export {
24
- _sfc_main as default
25
- };
@@ -1,7 +0,0 @@
1
- import _sfc_main from "./ExampleResponseTabList.vue2.js";
2
- /* empty css */
3
- import _export_sfc from "../../_virtual/_plugin-vue_export-helper.js";
4
- const ExampleResponseTabList = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-fec8fbbb"]]);
5
- export {
6
- ExampleResponseTabList as default
7
- };
@@ -1,37 +0,0 @@
1
- import { defineComponent, createBlock, openBlock, unref, withCtx, createVNode, renderSlot } from "vue";
2
- import { TabGroup, TabList } from "@headlessui/vue";
3
- import { ScalarCardHeader } from "@scalar/components";
4
- const _sfc_main = /* @__PURE__ */ defineComponent({
5
- __name: "ExampleResponseTabList",
6
- emits: ["change"],
7
- setup(__props, { emit: __emit }) {
8
- const emit = __emit;
9
- const changeTab = (index) => {
10
- emit("change", index);
11
- };
12
- return (_ctx, _cache) => {
13
- return openBlock(), createBlock(unref(ScalarCardHeader), { class: "scalar-card-header scalar-card-header-tabs" }, {
14
- actions: withCtx(() => [
15
- renderSlot(_ctx.$slots, "actions", {}, void 0, true)
16
- ]),
17
- default: withCtx(() => [
18
- createVNode(unref(TabGroup), { onChange: changeTab }, {
19
- default: withCtx(() => [
20
- createVNode(unref(TabList), { class: "tab-list custom-scroll" }, {
21
- default: withCtx(() => [
22
- renderSlot(_ctx.$slots, "default", {}, void 0, true)
23
- ]),
24
- _: 3
25
- })
26
- ]),
27
- _: 3
28
- })
29
- ]),
30
- _: 3
31
- });
32
- };
33
- }
34
- });
35
- export {
36
- _sfc_main as default
37
- };
@@ -1,7 +0,0 @@
1
- import _sfc_main from "./ExampleResponses.vue2.js";
2
- /* empty css */
3
- import _export_sfc from "../../_virtual/_plugin-vue_export-helper.js";
4
- const ExampleResponses = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-5b8a574c"]]);
5
- export {
6
- ExampleResponses as default
7
- };
@@ -1,181 +0,0 @@
1
- import { defineComponent, useId, computed, ref, watch, toValue, createBlock, createCommentVNode, openBlock, unref, withCtx, createVNode, createElementBlock, Fragment, renderList, createTextVNode, toDisplayString, withDirectives, createElementVNode, vModelCheckbox } from "vue";
2
- import { getExample } from "@scalar/api-client/v2/blocks/operation-block";
3
- import { ExamplePicker } from "@scalar/api-client/v2/blocks/operation-code-sample";
4
- import { ScalarCard, ScalarIcon, ScalarCardSection, ScalarCardFooter, ScalarMarkdown } from "@scalar/components";
5
- import { normalizeMimeTypeObject, getObjectKeys } 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 ScreenReader from "../../components/ScreenReader.vue.js";
9
- import _sfc_main$1 from "./ExampleSchema.vue.js";
10
- import ExampleResponse from "./ExampleResponse.vue.js";
11
- import ExampleResponseTab from "./ExampleResponseTab.vue.js";
12
- import ExampleResponseTabList from "./ExampleResponseTabList.vue.js";
13
- import { hasResponseContent } from "./has-response-content.js";
14
- const _hoisted_1 = {
15
- key: 1,
16
- class: "scalar-card-checkbox"
17
- };
18
- const _hoisted_2 = ["aria-controls"];
19
- const _hoisted_3 = { class: "response-description" };
20
- const _sfc_main = /* @__PURE__ */ defineComponent({
21
- __name: "ExampleResponses",
22
- props: {
23
- responses: {}
24
- },
25
- setup(__props) {
26
- const id = useId();
27
- const { copyToClipboard } = useClipboard();
28
- const orderedStatusCodes = computed(
29
- () => Object.keys(__props.responses ?? {}).sort()
30
- );
31
- const statusCodesWithContent = computed(
32
- () => orderedStatusCodes.value.filter(
33
- (statusCode) => hasResponseContent(getResolvedRef(__props.responses?.[statusCode]), statusCode)
34
- )
35
- );
36
- const selectedResponseIndex = ref(0);
37
- watch(statusCodesWithContent, (codes) => {
38
- if (codes.length === 0) {
39
- selectedResponseIndex.value = 0;
40
- selectedExampleKey.value = "";
41
- } else if (selectedResponseIndex.value >= codes.length) {
42
- selectedResponseIndex.value = codes.length - 1;
43
- selectedExampleKey.value = "";
44
- }
45
- });
46
- const currentResponse = computed(() => {
47
- const currentStatusCode = toValue(statusCodesWithContent)[toValue(selectedResponseIndex)] ?? "";
48
- return getResolvedRef(__props.responses?.[currentStatusCode]);
49
- });
50
- const currentResponseContent = computed(() => {
51
- const normalizedContent = normalizeMimeTypeObject(
52
- currentResponse.value?.content
53
- );
54
- const keys = getObjectKeys(normalizedContent ?? {});
55
- return (
56
- // OpenAPI 3.x
57
- normalizedContent?.["application/json"] ?? normalizedContent?.["application/xml"] ?? normalizedContent?.["text/plain"] ?? normalizedContent?.["text/html"] ?? normalizedContent?.["*/*"] ?? // Take the first key - in the future we may want to use the selected content type
58
- normalizedContent?.[keys[0] ?? ""] ?? void 0
59
- );
60
- });
61
- const hasMultipleExamples = computed(
62
- () => !!currentResponseContent.value?.examples && Object.keys(currentResponseContent.value?.examples ?? {}).length > 1
63
- );
64
- const selectedExampleKey = ref(
65
- Object.keys(currentResponseContent.value?.examples ?? {})[0] ?? ""
66
- );
67
- const currentExample = computed(() => {
68
- if (!currentResponseContent.value) {
69
- return void 0;
70
- }
71
- if (hasMultipleExamples.value && selectedExampleKey.value) {
72
- return currentResponseContent.value.examples?.[selectedExampleKey.value];
73
- }
74
- return getExample(currentResponseContent.value, void 0, void 0);
75
- });
76
- const changeTab = (index) => {
77
- selectedResponseIndex.value = index;
78
- selectedExampleKey.value = "";
79
- };
80
- const showSchema = ref(false);
81
- return (_ctx, _cache) => {
82
- return statusCodesWithContent.value.length ? (openBlock(), createBlock(unref(ScalarCard), {
83
- key: 0,
84
- "aria-label": "Example Responses",
85
- class: "response-card",
86
- role: "region"
87
- }, {
88
- default: withCtx(() => [
89
- createVNode(ExampleResponseTabList, { onChange: changeTab }, {
90
- actions: withCtx(() => [
91
- currentResponseContent.value?.example ? (openBlock(), createElementBlock("button", {
92
- key: 0,
93
- class: "code-copy",
94
- type: "button",
95
- onClick: _cache[0] || (_cache[0] = () => unref(copyToClipboard)(currentResponseContent.value?.example))
96
- }, [
97
- createVNode(unref(ScalarIcon), {
98
- icon: "Clipboard",
99
- width: "12px"
100
- })
101
- ])) : createCommentVNode("", true),
102
- currentResponseContent.value?.schema ? (openBlock(), createElementBlock("label", _hoisted_1, [
103
- _cache[4] || (_cache[4] = createTextVNode(" Show Schema ", -1)),
104
- withDirectives(createElementVNode("input", {
105
- "onUpdate:modelValue": _cache[1] || (_cache[1] = ($event) => showSchema.value = $event),
106
- "aria-controls": unref(id),
107
- class: "scalar-card-checkbox-input",
108
- type: "checkbox"
109
- }, null, 8, _hoisted_2), [
110
- [vModelCheckbox, showSchema.value]
111
- ]),
112
- _cache[5] || (_cache[5] = createElementVNode("span", { class: "scalar-card-checkbox-checkmark" }, null, -1))
113
- ])) : createCommentVNode("", true)
114
- ]),
115
- default: withCtx(() => [
116
- (openBlock(true), createElementBlock(Fragment, null, renderList(statusCodesWithContent.value, (statusCode) => {
117
- return openBlock(), createBlock(ExampleResponseTab, {
118
- key: statusCode,
119
- "aria-controls": unref(id)
120
- }, {
121
- default: withCtx(() => [
122
- createVNode(ScreenReader, null, {
123
- default: withCtx(() => [..._cache[3] || (_cache[3] = [
124
- createTextVNode("Status:", -1)
125
- ])]),
126
- _: 1
127
- }),
128
- createTextVNode(" " + toDisplayString(statusCode), 1)
129
- ]),
130
- _: 2
131
- }, 1032, ["aria-controls"]);
132
- }), 128))
133
- ]),
134
- _: 1
135
- }),
136
- createVNode(unref(ScalarCardSection), { class: "grid flex-1" }, {
137
- default: withCtx(() => [
138
- currentResponseContent.value?.schema && showSchema.value ? (openBlock(), createBlock(_sfc_main$1, {
139
- key: 0,
140
- id: unref(id),
141
- schema: currentResponseContent.value?.schema
142
- }, null, 8, ["id", "schema"])) : (openBlock(), createBlock(ExampleResponse, {
143
- key: 1,
144
- id: unref(id),
145
- example: currentExample.value,
146
- response: currentResponseContent.value
147
- }, null, 8, ["id", "example", "response"]))
148
- ]),
149
- _: 1
150
- }),
151
- currentResponse.value?.description || hasMultipleExamples.value ? (openBlock(), createBlock(unref(ScalarCardFooter), {
152
- key: 0,
153
- class: "response-card-footer"
154
- }, {
155
- default: withCtx(() => [
156
- hasMultipleExamples.value ? (openBlock(), createBlock(unref(ExamplePicker), {
157
- key: 0,
158
- modelValue: selectedExampleKey.value,
159
- "onUpdate:modelValue": _cache[2] || (_cache[2] = ($event) => selectedExampleKey.value = $event),
160
- class: "response-example-selector px-0",
161
- examples: currentResponseContent.value?.examples
162
- }, null, 8, ["modelValue", "examples"])) : createCommentVNode("", true),
163
- createElementVNode("div", _hoisted_3, [
164
- currentResponse.value?.description ? (openBlock(), createBlock(unref(ScalarMarkdown), {
165
- key: 0,
166
- class: "response-description-markdown",
167
- value: currentResponse.value.description
168
- }, null, 8, ["value"])) : createCommentVNode("", true)
169
- ])
170
- ]),
171
- _: 1
172
- })) : createCommentVNode("", true)
173
- ]),
174
- _: 1
175
- })) : createCommentVNode("", true);
176
- };
177
- }
178
- });
179
- export {
180
- _sfc_main as default
181
- };
@@ -1,42 +0,0 @@
1
- import { defineComponent, computed, createBlock, openBlock, unref } from "vue";
2
- import { getResolvedRefDeep } from "@scalar/api-client/v2/blocks/operation-code-sample";
3
- import { ScalarCodeBlock, ScalarVirtualText } from "@scalar/components";
4
- import { prettyPrintJson } from "@scalar/oas-utils/helpers";
5
- const VIRTUALIZATION_THRESHOLD = 2e4;
6
- const _sfc_main = /* @__PURE__ */ defineComponent({
7
- __name: "ExampleSchema",
8
- props: {
9
- id: {},
10
- schema: {}
11
- },
12
- setup(__props) {
13
- const schemaContent = computed(() => {
14
- if (!__props.schema) {
15
- return void 0;
16
- }
17
- return prettyPrintJson(getResolvedRefDeep(__props.schema));
18
- });
19
- const shouldVirtualizeSchema = computed(() => {
20
- return (schemaContent.value?.length ?? 0) > VIRTUALIZATION_THRESHOLD;
21
- });
22
- return (_ctx, _cache) => {
23
- return !shouldVirtualizeSchema.value ? (openBlock(), createBlock(unref(ScalarCodeBlock), {
24
- key: 0,
25
- id: __props.id,
26
- class: "bg-b-2",
27
- lang: "json",
28
- prettyPrintedContent: schemaContent.value ?? ""
29
- }, null, 8, ["id", "prettyPrintedContent"])) : (openBlock(), createBlock(unref(ScalarVirtualText), {
30
- key: 1,
31
- id: __props.id,
32
- containerClass: "custom-scroll scalar-code-block border rounded-b flex flex-1 max-h-screen",
33
- contentClass: "language-plaintext whitespace-pre font-code text-base",
34
- lineHeight: 20,
35
- text: schemaContent.value ?? ""
36
- }, null, 8, ["id", "text"]));
37
- };
38
- }
39
- });
40
- export {
41
- _sfc_main as default
42
- };
@@ -1,4 +0,0 @@
1
- import _sfc_main from "./ExampleSchema.vue.js";
2
- export {
3
- _sfc_main as default
4
- };
@@ -1,28 +0,0 @@
1
- import { normalizeMimeTypeObject, getObjectKeys } from "@scalar/oas-utils/helpers";
2
- function hasMediaTypeContent(mediaType) {
3
- if (!mediaType) {
4
- return false;
5
- }
6
- const hasSchema = Boolean(mediaType.schema);
7
- const hasExample = "example" in mediaType && mediaType.example !== null;
8
- const hasExamples = Boolean(mediaType.examples);
9
- return hasSchema || hasExample || hasExamples;
10
- }
11
- function isResponseKey(responseKey) {
12
- return responseKey === "default" || /^[1-5][0-9]{2}$/.test(responseKey) || /^[1-5]XX$/.test(responseKey);
13
- }
14
- function hasResponseContent(response, responseKey) {
15
- if (responseKey !== void 0) {
16
- if (!isResponseKey(responseKey)) {
17
- return false;
18
- }
19
- return Boolean(response);
20
- }
21
- const normalizedContent = normalizeMimeTypeObject(response?.content);
22
- const keys = getObjectKeys(normalizedContent ?? {});
23
- const mediaType = normalizedContent?.["application/json"] ?? normalizedContent?.["application/xml"] ?? normalizedContent?.["text/plain"] ?? normalizedContent?.["text/html"] ?? normalizedContent?.["*/*"] ?? normalizedContent?.[keys[0] ?? ""];
24
- return hasMediaTypeContent(mediaType);
25
- }
26
- export {
27
- hasResponseContent
28
- };
@@ -1,42 +0,0 @@
1
- import { defineComponent, createElementBlock, createCommentVNode, openBlock, createElementVNode, createVNode, unref, toDisplayString } from "vue";
2
- import { ScalarIconBook } from "@scalar/icons";
3
- const _hoisted_1 = {
4
- key: 0,
5
- class: "group flex items-center last:border-r-0 xl:border-r xl:first:ml-auto"
6
- };
7
- const _hoisted_2 = ["href"];
8
- const _hoisted_3 = {
9
- key: 0,
10
- class: "ml-1 empty:hidden"
11
- };
12
- const _hoisted_4 = {
13
- key: 1,
14
- class: "ml-1 empty:hidden"
15
- };
16
- const _sfc_main = /* @__PURE__ */ defineComponent({
17
- __name: "ExternalDocs",
18
- props: {
19
- value: {}
20
- },
21
- setup(__props) {
22
- return (_ctx, _cache) => {
23
- return __props.value ? (openBlock(), createElementBlock("div", _hoisted_1, [
24
- createElementVNode("a", {
25
- href: __props.value.url,
26
- class: "text-c-1 hover:bg-b-2 mr-2 flex min-h-7 min-w-7 items-center rounded-lg border px-2 py-1 no-underline group-last:mr-0 xl:border-none",
27
- target: "_blank",
28
- rel: "noopener noreferrer"
29
- }, [
30
- createVNode(unref(ScalarIconBook), {
31
- weight: "bold",
32
- class: "size-3 text-current"
33
- }),
34
- __props.value.description ? (openBlock(), createElementBlock("span", _hoisted_3, toDisplayString(__props.value.description), 1)) : (openBlock(), createElementBlock("span", _hoisted_4, toDisplayString(__props.value.url), 1))
35
- ], 8, _hoisted_2)
36
- ])) : createCommentVNode("", true);
37
- };
38
- }
39
- });
40
- export {
41
- _sfc_main as default
42
- };
@@ -1,4 +0,0 @@
1
- import _sfc_main from "./ExternalDocs.vue.js";
2
- export {
3
- _sfc_main as default
4
- };
@@ -1,46 +0,0 @@
1
- import { defineComponent, createElementBlock, createCommentVNode, openBlock, normalizeClass, unref, createVNode, createElementVNode, toDisplayString } from "vue";
2
- import { cva } from "@scalar/components";
3
- import { ScalarIconEnvelopeSimple } from "@scalar/icons";
4
- const _hoisted_1 = {
5
- key: 0,
6
- class: "group flex items-center last:border-r-0 xl:border-r xl:first:ml-auto"
7
- };
8
- const _hoisted_2 = ["href"];
9
- const _hoisted_3 = { class: "ml-1 empty:hidden" };
10
- const _sfc_main = /* @__PURE__ */ defineComponent({
11
- __name: "Contact",
12
- props: {
13
- value: {}
14
- },
15
- setup(__props) {
16
- const variants = cva({
17
- base: "text-c-1 mr-2 flex min-h-7 min-w-7 items-center rounded-lg border px-2 py-1 group-last:mr-0 xl:border-none",
18
- variants: {
19
- link: {
20
- true: "no-underline hover:bg-b-2"
21
- }
22
- }
23
- });
24
- return (_ctx, _cache) => {
25
- return __props.value ? (openBlock(), createElementBlock("div", _hoisted_1, [
26
- __props.value?.email ? (openBlock(), createElementBlock("a", {
27
- key: 0,
28
- class: normalizeClass(unref(variants)({ link: true })),
29
- href: `mailto:${__props.value?.email}`
30
- }, [
31
- createVNode(unref(ScalarIconEnvelopeSimple), {
32
- weight: "bold",
33
- class: "size-3 text-current"
34
- }),
35
- createElementVNode("span", _hoisted_3, toDisplayString(__props.value.name), 1)
36
- ], 10, _hoisted_2)) : __props.value?.name ? (openBlock(), createElementBlock("span", {
37
- key: 1,
38
- class: normalizeClass(unref(variants)({ link: false }))
39
- }, toDisplayString(__props.value.name), 3)) : createCommentVNode("", true)
40
- ])) : createCommentVNode("", true);
41
- };
42
- }
43
- });
44
- export {
45
- _sfc_main as default
46
- };