@scalar/api-reference 1.49.0 → 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 (365) hide show
  1. package/CHANGELOG.md +7 -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 +40759 -34701
  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/Badge/index.d.ts +1 -1
  23. package/dist/components/Content/Auth/index.d.ts +1 -1
  24. package/dist/components/Content/Models/index.d.ts +2 -2
  25. package/dist/components/Content/Schema/Schema.vue.d.ts +1 -1
  26. package/dist/components/Content/Schema/SchemaComposition.vue.d.ts +2 -2
  27. package/dist/components/Content/Schema/SchemaObjectProperties.vue.d.ts +1 -1
  28. package/dist/components/Content/Schema/SchemaProperty.vue.d.ts +1 -1
  29. package/dist/components/Content/Schema/SchemaPropertyExamples.vue.d.ts.map +1 -1
  30. package/dist/components/Content/Schema/SchemaPropertyHeading.vue.d.ts.map +1 -1
  31. package/dist/components/Content/Schema/helpers/get-compositions-to-render.d.ts +1 -1
  32. package/dist/components/Content/Schema/index.d.ts +4 -4
  33. package/dist/components/Content/Tags/index.d.ts +1 -1
  34. package/dist/components/Content/index.d.ts +2 -2
  35. package/dist/components/HttpMethod/index.d.ts +1 -1
  36. package/dist/components/LinkList/index.d.ts +1 -1
  37. package/dist/components/OperationsList/index.d.ts +1 -1
  38. package/dist/components/RenderPlugins/index.d.ts +1 -1
  39. package/dist/components/Section/index.d.ts +10 -10
  40. package/dist/components/SectionFlare/index.d.ts +1 -1
  41. package/dist/components/index.d.ts +5 -5
  42. package/dist/components/index.js +102 -42
  43. package/dist/components/index.js.map +1 -0
  44. package/dist/features/Operation/components/OperationParameters.vue.d.ts +1 -1
  45. package/dist/features/Operation/components/OperationResponses.vue.d.ts +1 -1
  46. package/dist/features/Operation/components/ParameterList.vue.d.ts +1 -1
  47. package/dist/features/Operation/components/ParameterListItem.vue.d.ts +1 -1
  48. package/dist/features/Operation/components/callbacks/Callback.vue.d.ts +1 -1
  49. package/dist/features/Operation/components/callbacks/Callbacks.vue.d.ts +1 -1
  50. package/dist/features/Operation/index.d.ts +1 -1
  51. package/dist/features/Operation/layouts/ClassicLayout.vue.d.ts +1 -1
  52. package/dist/features/Operation/layouts/ModernLayout.vue.d.ts +1 -1
  53. package/dist/features/Search/components/SearchResult.vue.d.ts +1 -1
  54. package/dist/features/Search/helpers/create-fuse-instance.d.ts +1 -1
  55. package/dist/features/Search/helpers/create-search-index.d.ts +1 -1
  56. package/dist/features/Search/index.d.ts +2 -2
  57. package/dist/features/Search/types.d.ts +1 -1
  58. package/dist/features/developer-tools/index.d.ts +1 -1
  59. package/dist/features/example-responses/index.d.ts +1 -1
  60. package/dist/features/external-docs/index.d.ts +1 -1
  61. package/dist/features/index.d.ts +2 -2
  62. package/dist/features/index.js +4 -10
  63. package/dist/features/info-object/index.d.ts +3 -3
  64. package/dist/features/specification-extension/index.d.ts +2 -2
  65. package/dist/features/test-request-button/index.d.ts +1 -1
  66. package/dist/features/x-badges/index.d.ts +1 -1
  67. package/dist/helpers/download.d.ts +1 -1
  68. package/dist/helpers/download.d.ts.map +1 -1
  69. package/dist/helpers/index.d.ts +8 -8
  70. package/dist/helpers/index.js +3 -24
  71. package/dist/hooks/index.d.ts +2 -2
  72. package/dist/hooks/index.js +3 -8
  73. package/dist/index.d.ts +5 -5
  74. package/dist/index.js +7 -14
  75. package/dist/lazy-bus-CV8Ox5hD.js +333 -0
  76. package/dist/lazy-bus-CV8Ox5hD.js.map +1 -0
  77. package/dist/normalize-configurations-DcVpOEjD.js +232 -0
  78. package/dist/normalize-configurations-DcVpOEjD.js.map +1 -0
  79. package/dist/plugins/hooks/usePluginManager.d.ts +1 -1
  80. package/dist/plugins/index.d.ts +3 -3
  81. package/dist/plugins/index.js +2 -9
  82. package/dist/plugins-4EyiUD_A.js +80 -0
  83. package/dist/plugins-4EyiUD_A.js.map +1 -0
  84. package/dist/src-DqcYVBWI.js +1686 -0
  85. package/dist/src-DqcYVBWI.js.map +1 -0
  86. package/dist/ssr.d.ts +2 -2
  87. package/dist/ssr.js +7 -14
  88. package/dist/storage--3JuzjCI.js +42 -0
  89. package/dist/storage--3JuzjCI.js.map +1 -0
  90. package/dist/style.css +6773 -7332
  91. package/dist/urls-gPTXGgbj.js +17 -0
  92. package/dist/urls-gPTXGgbj.js.map +1 -0
  93. package/dist/use-agent-Bnm1de0n.js +60 -0
  94. package/dist/use-agent-Bnm1de0n.js.map +1 -0
  95. package/dist/use-intersection-8QqPi2O-.js +24 -0
  96. package/dist/use-intersection-8QqPi2O-.js.map +1 -0
  97. package/package.json +25 -27
  98. package/dist/_virtual/_plugin-vue_export-helper.js +0 -10
  99. package/dist/blocks/scalar-client-selector-block/components/ClientDropdown.vue.js +0 -7
  100. package/dist/blocks/scalar-client-selector-block/components/ClientDropdown.vue2.js +0 -123
  101. package/dist/blocks/scalar-client-selector-block/components/ClientSelector.vue.js +0 -7
  102. package/dist/blocks/scalar-client-selector-block/components/ClientSelector.vue2.js +0 -142
  103. package/dist/blocks/scalar-client-selector-block/helpers/featured-clients.js +0 -24
  104. package/dist/blocks/scalar-info-block/components/DownloadLink.vue.js +0 -7
  105. package/dist/blocks/scalar-info-block/components/DownloadLink.vue2.js +0 -63
  106. package/dist/blocks/scalar-info-block/components/InfoBlock.vue.js +0 -59
  107. package/dist/blocks/scalar-info-block/components/InfoBlock.vue2.js +0 -4
  108. package/dist/blocks/scalar-info-block/components/InfoDescription.vue.js +0 -7
  109. package/dist/blocks/scalar-info-block/components/InfoDescription.vue2.js +0 -70
  110. package/dist/blocks/scalar-info-block/components/InfoLinks.vue.js +0 -38
  111. package/dist/blocks/scalar-info-block/components/InfoLinks.vue2.js +0 -4
  112. package/dist/blocks/scalar-info-block/components/InfoMarkdownSection.vue.js +0 -38
  113. package/dist/blocks/scalar-info-block/components/InfoMarkdownSection.vue2.js +0 -4
  114. package/dist/blocks/scalar-info-block/components/InfoVersion.vue.js +0 -28
  115. package/dist/blocks/scalar-info-block/components/InfoVersion.vue2.js +0 -4
  116. package/dist/blocks/scalar-info-block/components/IntroductionCard.vue.js +0 -7
  117. package/dist/blocks/scalar-info-block/components/IntroductionCard.vue2.js +0 -19
  118. package/dist/blocks/scalar-info-block/components/IntroductionCardItem.vue.js +0 -14
  119. package/dist/blocks/scalar-info-block/components/IntroductionLayout.vue.js +0 -7
  120. package/dist/blocks/scalar-info-block/components/IntroductionLayout.vue2.js +0 -112
  121. package/dist/blocks/scalar-info-block/components/OpenApiVersion.vue.js +0 -21
  122. package/dist/blocks/scalar-info-block/components/OpenApiVersion.vue2.js +0 -4
  123. package/dist/blocks/scalar-server-selector-block/components/Selector.vue.js +0 -76
  124. package/dist/blocks/scalar-server-selector-block/components/Selector.vue2.js +0 -4
  125. package/dist/blocks/scalar-server-selector-block/components/ServerSelector.vue.js +0 -72
  126. package/dist/blocks/scalar-server-selector-block/components/ServerSelector.vue2.js +0 -4
  127. package/dist/components/AgentScalar/AgentScalarButton.vue.js +0 -22
  128. package/dist/components/AgentScalar/AgentScalarButton.vue2.js +0 -4
  129. package/dist/components/AgentScalar/AgentScalarChatInterface.vue.js +0 -4
  130. package/dist/components/AgentScalar/AgentScalarChatInterface.vue2.js +0 -29
  131. package/dist/components/AgentScalar/AgentScalarDrawer.vue.js +0 -7
  132. package/dist/components/AgentScalar/AgentScalarDrawer.vue2.js +0 -78
  133. package/dist/components/AgentScalar/OpenMCPButton.vue.js +0 -7
  134. package/dist/components/AgentScalar/OpenMCPButton.vue2.js +0 -191
  135. package/dist/components/Anchor/Anchor.vue.js +0 -51
  136. package/dist/components/Anchor/Anchor.vue2.js +0 -4
  137. package/dist/components/Anchor/WithBreadcrumb.vue.js +0 -41
  138. package/dist/components/Anchor/WithBreadcrumb.vue2.js +0 -4
  139. package/dist/components/ApiReference.vue.js +0 -10
  140. package/dist/components/ApiReference.vue2.js +0 -742
  141. package/dist/components/Badge/Badge.vue.js +0 -7
  142. package/dist/components/Badge/Badge.vue2.js +0 -26
  143. package/dist/components/ClassicHeader.vue.js +0 -21
  144. package/dist/components/Content/Auth/Auth.vue.js +0 -77
  145. package/dist/components/Content/Auth/Auth.vue2.js +0 -4
  146. package/dist/components/Content/Auth/helpers/get-default-security.js +0 -55
  147. package/dist/components/Content/Content.vue.js +0 -171
  148. package/dist/components/Content/Content.vue3.js +0 -5
  149. package/dist/components/Content/Models/Model.vue.js +0 -47
  150. package/dist/components/Content/Models/Model.vue2.js +0 -4
  151. package/dist/components/Content/Models/ModelTag.vue.js +0 -76
  152. package/dist/components/Content/Models/ModelTag.vue2.js +0 -4
  153. package/dist/components/Content/Models/components/ClassicLayout.vue.js +0 -7
  154. package/dist/components/Content/Models/components/ClassicLayout.vue2.js +0 -78
  155. package/dist/components/Content/Models/components/ModernLayout.vue.js +0 -61
  156. package/dist/components/Content/Models/components/ModernLayout.vue2.js +0 -4
  157. package/dist/components/Content/Operations/TraversedEntry.vue.js +0 -146
  158. package/dist/components/Content/Operations/TraversedEntry.vue2.js +0 -4
  159. package/dist/components/Content/Schema/RenderString.vue.js +0 -27
  160. package/dist/components/Content/Schema/RenderString.vue2.js +0 -4
  161. package/dist/components/Content/Schema/Schema.vue.js +0 -7
  162. package/dist/components/Content/Schema/Schema.vue2.js +0 -193
  163. package/dist/components/Content/Schema/SchemaComposition.vue.js +0 -120
  164. package/dist/components/Content/Schema/SchemaComposition.vue2.js +0 -4
  165. package/dist/components/Content/Schema/SchemaEnumPropertyItem.vue.js +0 -7
  166. package/dist/components/Content/Schema/SchemaEnumPropertyItem.vue2.js +0 -36
  167. package/dist/components/Content/Schema/SchemaEnums.vue.js +0 -7
  168. package/dist/components/Content/Schema/SchemaEnums.vue2.js +0 -112
  169. package/dist/components/Content/Schema/SchemaHeading.vue.js +0 -7
  170. package/dist/components/Content/Schema/SchemaHeading.vue2.js +0 -61
  171. package/dist/components/Content/Schema/SchemaObjectExampleCodeBlock.vue.js +0 -66
  172. package/dist/components/Content/Schema/SchemaObjectExampleCodeBlock.vue2.js +0 -4
  173. package/dist/components/Content/Schema/SchemaObjectProperties.vue.js +0 -120
  174. package/dist/components/Content/Schema/SchemaObjectProperties.vue2.js +0 -4
  175. package/dist/components/Content/Schema/SchemaProperty.vue.js +0 -7
  176. package/dist/components/Content/Schema/SchemaProperty.vue2.js +0 -236
  177. package/dist/components/Content/Schema/SchemaPropertyDefault.vue.js +0 -7
  178. package/dist/components/Content/Schema/SchemaPropertyDefault.vue2.js +0 -45
  179. package/dist/components/Content/Schema/SchemaPropertyDetail.vue.js +0 -7
  180. package/dist/components/Content/Schema/SchemaPropertyDetail.vue2.js +0 -40
  181. package/dist/components/Content/Schema/SchemaPropertyExamples.vue.js +0 -7
  182. package/dist/components/Content/Schema/SchemaPropertyExamples.vue2.js +0 -80
  183. package/dist/components/Content/Schema/SchemaPropertyHeading.vue.js +0 -7
  184. package/dist/components/Content/Schema/SchemaPropertyHeading.vue2.js +0 -318
  185. package/dist/components/Content/Schema/helpers/format-example.js +0 -41
  186. package/dist/components/Content/Schema/helpers/format-value.js +0 -35
  187. package/dist/components/Content/Schema/helpers/get-compositions-to-render.js +0 -31
  188. package/dist/components/Content/Schema/helpers/get-enum-values.js +0 -20
  189. package/dist/components/Content/Schema/helpers/get-property-description.js +0 -34
  190. package/dist/components/Content/Schema/helpers/get-ref-name.js +0 -14
  191. package/dist/components/Content/Schema/helpers/get-schema-type.js +0 -47
  192. package/dist/components/Content/Schema/helpers/has-complex-array-items.js +0 -48
  193. package/dist/components/Content/Schema/helpers/is-empty-schema-object.js +0 -13
  194. package/dist/components/Content/Schema/helpers/is-type-object.js +0 -27
  195. package/dist/components/Content/Schema/helpers/merge-all-of-schemas.js +0 -215
  196. package/dist/components/Content/Schema/helpers/optimize-value-for-display.js +0 -64
  197. package/dist/components/Content/Schema/helpers/schema-composition.js +0 -4
  198. package/dist/components/Content/Schema/helpers/schema-name.js +0 -24
  199. package/dist/components/Content/Schema/helpers/should-display-description.js +0 -12
  200. package/dist/components/Content/Schema/helpers/should-display-heading.js +0 -12
  201. package/dist/components/Content/Schema/helpers/should-render-array-item-composition.js +0 -15
  202. package/dist/components/Content/Schema/helpers/sort-property-names.js +0 -71
  203. package/dist/components/Content/Tags/Tag.vue.js +0 -46
  204. package/dist/components/Content/Tags/Tag.vue2.js +0 -4
  205. package/dist/components/Content/Tags/components/ClassicLayout.vue.js +0 -7
  206. package/dist/components/Content/Tags/components/ClassicLayout.vue2.js +0 -57
  207. package/dist/components/Content/Tags/components/ModernLayout.vue.js +0 -7
  208. package/dist/components/Content/Tags/components/ModernLayout.vue2.js +0 -56
  209. package/dist/components/Content/Tags/components/TagSection.vue.js +0 -100
  210. package/dist/components/Content/Tags/components/TagSection.vue2.js +0 -4
  211. package/dist/components/GettingStarted.vue.js +0 -7
  212. package/dist/components/GettingStarted.vue2.js +0 -82
  213. package/dist/components/HttpMethod/HttpMethod.vue.js +0 -34
  214. package/dist/components/HttpMethod/HttpMethod.vue2.js +0 -4
  215. package/dist/components/IntersectionObserver.vue.js +0 -55
  216. package/dist/components/IntersectionObserver.vue2.js +0 -4
  217. package/dist/components/Lazy/Lazy.vue.js +0 -106
  218. package/dist/components/Lazy/Lazy.vue2.js +0 -4
  219. package/dist/components/LinkList/LinkList.vue.js +0 -7
  220. package/dist/components/LinkList/LinkList.vue2.js +0 -48
  221. package/dist/components/LoadingSkeleton.vue.js +0 -7
  222. package/dist/components/LoadingSkeleton.vue2.js +0 -20
  223. package/dist/components/MobileHeader.vue.js +0 -62
  224. package/dist/components/MobileHeader.vue2.js +0 -4
  225. package/dist/components/OperationPath.vue.js +0 -7
  226. package/dist/components/OperationPath.vue2.js +0 -30
  227. package/dist/components/OperationsList/OperationsList.vue.js +0 -7
  228. package/dist/components/OperationsList/OperationsList.vue2.js +0 -61
  229. package/dist/components/OperationsList/OperationsListItem.vue.js +0 -7
  230. package/dist/components/OperationsList/OperationsListItem.vue2.js +0 -68
  231. package/dist/components/RenderPlugins/RenderPlugins.vue.js +0 -43
  232. package/dist/components/RenderPlugins/RenderPlugins.vue2.js +0 -4
  233. package/dist/components/ScreenReader.vue.js +0 -7
  234. package/dist/components/ScreenReader.vue2.js +0 -21
  235. package/dist/components/Section/CompactSection.vue.js +0 -7
  236. package/dist/components/Section/CompactSection.vue2.js +0 -60
  237. package/dist/components/Section/Section.vue.js +0 -7
  238. package/dist/components/Section/Section.vue2.js +0 -23
  239. package/dist/components/Section/SectionAccordion.vue.js +0 -7
  240. package/dist/components/Section/SectionAccordion.vue2.js +0 -76
  241. package/dist/components/Section/SectionColumn.vue.js +0 -14
  242. package/dist/components/Section/SectionColumns.vue.js +0 -14
  243. package/dist/components/Section/SectionContainer.vue.js +0 -7
  244. package/dist/components/Section/SectionContainer.vue2.js +0 -21
  245. package/dist/components/Section/SectionContainerAccordion.vue.js +0 -7
  246. package/dist/components/Section/SectionContainerAccordion.vue2.js +0 -54
  247. package/dist/components/Section/SectionContent.vue.js +0 -7
  248. package/dist/components/Section/SectionContent.vue2.js +0 -22
  249. package/dist/components/Section/SectionHeader.vue.js +0 -7
  250. package/dist/components/Section/SectionHeader.vue2.js +0 -26
  251. package/dist/components/Section/SectionHeaderTag.vue.js +0 -7
  252. package/dist/components/Section/SectionHeaderTag.vue2.js +0 -20
  253. package/dist/components/SectionFlare/SectionFlare.vue.js +0 -14
  254. package/dist/components/ShowMoreButton.vue.js +0 -7
  255. package/dist/components/ShowMoreButton.vue2.js +0 -23
  256. package/dist/consts/urls.js +0 -16
  257. package/dist/features/Operation/Operation.vue.js +0 -100
  258. package/dist/features/Operation/Operation.vue2.js +0 -4
  259. package/dist/features/Operation/components/ContentTypeSelect.vue.js +0 -88
  260. package/dist/features/Operation/components/ContentTypeSelect.vue2.js +0 -4
  261. package/dist/features/Operation/components/Header.vue.js +0 -33
  262. package/dist/features/Operation/components/Header.vue2.js +0 -4
  263. package/dist/features/Operation/components/Headers.vue.js +0 -7
  264. package/dist/features/Operation/components/Headers.vue2.js +0 -71
  265. package/dist/features/Operation/components/OperationParameters.vue.js +0 -92
  266. package/dist/features/Operation/components/OperationParameters.vue2.js +0 -4
  267. package/dist/features/Operation/components/OperationResponses.vue.js +0 -44
  268. package/dist/features/Operation/components/OperationResponses.vue2.js +0 -4
  269. package/dist/features/Operation/components/ParameterList.vue.js +0 -50
  270. package/dist/features/Operation/components/ParameterList.vue2.js +0 -4
  271. package/dist/features/Operation/components/ParameterListItem.vue.js +0 -7
  272. package/dist/features/Operation/components/ParameterListItem.vue2.js +0 -163
  273. package/dist/features/Operation/components/RequestBody.vue.js +0 -7
  274. package/dist/features/Operation/components/RequestBody.vue2.js +0 -164
  275. package/dist/features/Operation/components/callbacks/Callback.vue.js +0 -7
  276. package/dist/features/Operation/components/callbacks/Callback.vue2.js +0 -60
  277. package/dist/features/Operation/components/callbacks/Callbacks.vue.js +0 -63
  278. package/dist/features/Operation/components/callbacks/Callbacks.vue2.js +0 -4
  279. package/dist/features/Operation/helpers/filter-selected-security.js +0 -28
  280. package/dist/features/Operation/helpers/get-first-server.js +0 -25
  281. package/dist/features/Operation/layouts/ClassicLayout.vue.js +0 -7
  282. package/dist/features/Operation/layouts/ClassicLayout.vue2.js +0 -243
  283. package/dist/features/Operation/layouts/ModernLayout.vue.js +0 -7
  284. package/dist/features/Operation/layouts/ModernLayout.vue2.js +0 -256
  285. package/dist/features/Search/components/SearchButton.vue.js +0 -88
  286. package/dist/features/Search/components/SearchButton.vue2.js +0 -4
  287. package/dist/features/Search/components/SearchModal.vue.js +0 -7
  288. package/dist/features/Search/components/SearchModal.vue2.js +0 -120
  289. package/dist/features/Search/components/SearchResult.vue.js +0 -84
  290. package/dist/features/Search/components/SearchResult.vue2.js +0 -4
  291. package/dist/features/Search/helpers/create-fuse-instance.js +0 -43
  292. package/dist/features/Search/helpers/create-search-index.js +0 -119
  293. package/dist/features/Search/hooks/useSearchIndex.js +0 -33
  294. package/dist/features/ask-agent-button/AskAgentButton.vue.js +0 -7
  295. package/dist/features/ask-agent-button/AskAgentButton.vue2.js +0 -51
  296. package/dist/features/developer-tools/DeveloperTools.vue.js +0 -60
  297. package/dist/features/developer-tools/DeveloperTools.vue2.js +0 -4
  298. package/dist/features/developer-tools/components/ApiReferenceToolbarBlurb.vue.js +0 -13
  299. package/dist/features/developer-tools/components/ApiReferenceToolbarConfigLayout.vue.js +0 -33
  300. package/dist/features/developer-tools/components/ApiReferenceToolbarConfigLayout.vue2.js +0 -4
  301. package/dist/features/developer-tools/components/ApiReferenceToolbarConfigLayoutOptions.vue.js +0 -138
  302. package/dist/features/developer-tools/components/ApiReferenceToolbarConfigLayoutOptions.vue2.js +0 -4
  303. package/dist/features/developer-tools/components/ApiReferenceToolbarConfigTheme.vue.js +0 -66
  304. package/dist/features/developer-tools/components/ApiReferenceToolbarConfigTheme.vue2.js +0 -4
  305. package/dist/features/developer-tools/components/ApiReferenceToolbarPopover.vue.js +0 -54
  306. package/dist/features/developer-tools/components/ApiReferenceToolbarPopover.vue2.js +0 -4
  307. package/dist/features/developer-tools/components/ApiReferenceToolbarRegisterButton.vue.js +0 -71
  308. package/dist/features/developer-tools/components/ApiReferenceToolbarRegisterButton.vue2.js +0 -4
  309. package/dist/features/developer-tools/components/ApiReferenceToolbarShareRegister.vue.js +0 -63
  310. package/dist/features/developer-tools/components/ApiReferenceToolbarShareRegister.vue2.js +0 -4
  311. package/dist/features/developer-tools/components/ApiReferenceToolbarShareTemporary.vue.js +0 -73
  312. package/dist/features/developer-tools/components/ApiReferenceToolbarShareTemporary.vue2.js +0 -4
  313. package/dist/features/developer-tools/components/ApiReferenceToolbarTitle.vue.js +0 -57
  314. package/dist/features/developer-tools/components/ApiReferenceToolbarTitle.vue2.js +0 -4
  315. package/dist/features/developer-tools/components/DeployApiReference.vue.js +0 -35
  316. package/dist/features/developer-tools/components/DeployApiReference.vue2.js +0 -4
  317. package/dist/features/developer-tools/components/ModifyConfiguration.vue.js +0 -103
  318. package/dist/features/developer-tools/components/ModifyConfiguration.vue2.js +0 -4
  319. package/dist/features/developer-tools/components/ShareApiReference.vue.js +0 -35
  320. package/dist/features/developer-tools/components/ShareApiReference.vue2.js +0 -4
  321. package/dist/features/example-responses/ExampleResponse.vue.js +0 -7
  322. package/dist/features/example-responses/ExampleResponse.vue2.js +0 -61
  323. package/dist/features/example-responses/ExampleResponseTab.vue.js +0 -7
  324. package/dist/features/example-responses/ExampleResponseTab.vue2.js +0 -25
  325. package/dist/features/example-responses/ExampleResponseTabList.vue.js +0 -7
  326. package/dist/features/example-responses/ExampleResponseTabList.vue2.js +0 -37
  327. package/dist/features/example-responses/ExampleResponses.vue.js +0 -7
  328. package/dist/features/example-responses/ExampleResponses.vue2.js +0 -181
  329. package/dist/features/example-responses/ExampleSchema.vue.js +0 -42
  330. package/dist/features/example-responses/ExampleSchema.vue2.js +0 -4
  331. package/dist/features/example-responses/has-response-content.js +0 -28
  332. package/dist/features/external-docs/ExternalDocs.vue.js +0 -42
  333. package/dist/features/external-docs/ExternalDocs.vue2.js +0 -4
  334. package/dist/features/info-object/Contact.vue.js +0 -46
  335. package/dist/features/info-object/Contact.vue2.js +0 -4
  336. package/dist/features/info-object/License.vue.js +0 -40
  337. package/dist/features/info-object/License.vue2.js +0 -4
  338. package/dist/features/info-object/TermsOfService.vue.js +0 -34
  339. package/dist/features/info-object/TermsOfService.vue2.js +0 -4
  340. package/dist/features/multiple-documents/DocumentSelector.vue.js +0 -54
  341. package/dist/features/multiple-documents/DocumentSelector.vue2.js +0 -4
  342. package/dist/features/specification-extension/SpecificationExtension.vue.js +0 -4
  343. package/dist/features/specification-extension/SpecificationExtension.vue2.js +0 -52
  344. package/dist/features/specification-extension/helpers.js +0 -9
  345. package/dist/features/test-request-button/TestRequestButton.vue.js +0 -7
  346. package/dist/features/test-request-button/TestRequestButton.vue2.js +0 -46
  347. package/dist/features/x-badges/XBadges.vue.js +0 -35
  348. package/dist/features/x-badges/XBadges.vue2.js +0 -4
  349. package/dist/helpers/color-mode.js +0 -9
  350. package/dist/helpers/download.js +0 -45
  351. package/dist/helpers/id-routing.js +0 -109
  352. package/dist/helpers/lazy-bus.js +0 -195
  353. package/dist/helpers/load-from-perssistance.js +0 -17
  354. package/dist/helpers/map-config-plugins.js +0 -27
  355. package/dist/helpers/map-config-to-workspace-store.js +0 -45
  356. package/dist/helpers/normalize-configurations.js +0 -69
  357. package/dist/helpers/openapi.js +0 -135
  358. package/dist/helpers/storage.js +0 -47
  359. package/dist/helpers/upload-temp-document.js +0 -24
  360. package/dist/hooks/use-agent.js +0 -42
  361. package/dist/hooks/use-intersection.js +0 -32
  362. package/dist/plugins/hooks/usePluginManager.js +0 -14
  363. package/dist/plugins/persistance-plugin.js +0 -48
  364. package/dist/plugins/plugin-manager.js +0 -39
  365. package/dist/standalone/lib/html-api.js +0 -81
@@ -1,57 +0,0 @@
1
- import { defineComponent, createBlock, openBlock, unref, withCtx, renderSlot, createVNode, createTextVNode, toDisplayString } from "vue";
2
- import { ScalarMarkdown } from "@scalar/components";
3
- import SectionContainerAccordion from "../../../Section/SectionContainerAccordion.vue.js";
4
- import SectionHeader from "../../../Section/SectionHeader.vue.js";
5
- import _sfc_main$1 from "../../../Anchor/Anchor.vue.js";
6
- import SectionHeaderTag from "../../../Section/SectionHeaderTag.vue.js";
7
- const _sfc_main = /* @__PURE__ */ defineComponent({
8
- __name: "ClassicLayout",
9
- props: {
10
- tag: {},
11
- isCollapsed: { type: Boolean },
12
- eventBus: {}
13
- },
14
- setup(__props) {
15
- return (_ctx, _cache) => {
16
- return openBlock(), createBlock(unref(SectionContainerAccordion), {
17
- "aria-label": __props.tag.title,
18
- class: "tag-section",
19
- modelValue: !__props.isCollapsed,
20
- "onUpdate:modelValue": _cache[1] || (_cache[1] = (value) => __props.eventBus?.emit("toggle:nav-item", { id: __props.tag.id, open: value }))
21
- }, {
22
- title: withCtx(() => [
23
- createVNode(unref(SectionHeader), { class: "tag-name" }, {
24
- default: withCtx(() => [
25
- createVNode(unref(_sfc_main$1), {
26
- onCopyAnchorUrl: _cache[0] || (_cache[0] = () => __props.eventBus?.emit("copy-url:nav-item", { id: __props.tag.id }))
27
- }, {
28
- default: withCtx(() => [
29
- createVNode(unref(SectionHeaderTag), { level: 2 }, {
30
- default: withCtx(() => [
31
- createTextVNode(toDisplayString(__props.tag.title), 1)
32
- ]),
33
- _: 1
34
- })
35
- ]),
36
- _: 1
37
- })
38
- ]),
39
- _: 1
40
- }),
41
- createVNode(unref(ScalarMarkdown), {
42
- class: "tag-description",
43
- value: __props.tag?.description,
44
- withImages: ""
45
- }, null, 8, ["value"])
46
- ]),
47
- default: withCtx(() => [
48
- renderSlot(_ctx.$slots, "default", {}, void 0, true)
49
- ]),
50
- _: 3
51
- }, 8, ["aria-label", "modelValue"]);
52
- };
53
- }
54
- });
55
- export {
56
- _sfc_main as default
57
- };
@@ -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-8f1a275c"]]);
5
- export {
6
- ModernLayout as default
7
- };
@@ -1,56 +0,0 @@
1
- import { defineComponent, useId, computed, createBlock, openBlock, unref, withCtx, createCommentVNode, createElementBlock, renderSlot } from "vue";
2
- import ShowMoreButton from "../../../ShowMoreButton.vue.js";
3
- import _sfc_main$1 from "./TagSection.vue.js";
4
- import SectionContainer from "../../../Section/SectionContainer.vue.js";
5
- const _hoisted_1 = {
6
- key: 2,
7
- class: "contents divide-y"
8
- };
9
- const _sfc_main = /* @__PURE__ */ defineComponent({
10
- __name: "ModernLayout",
11
- props: {
12
- tag: {},
13
- moreThanOneTag: { type: Boolean },
14
- isLoading: { type: Boolean },
15
- isCollapsed: { type: Boolean },
16
- eventBus: {}
17
- },
18
- setup(__props) {
19
- const headerId = useId();
20
- const moreThanOneDefaultTag = computed(
21
- () => __props.moreThanOneTag || __props.tag?.title !== "default" || __props.tag?.description !== ""
22
- );
23
- const hasChildren = computed(() => (__props.tag?.children?.length ?? 0) > 0);
24
- return (_ctx, _cache) => {
25
- return openBlock(), createBlock(unref(SectionContainer), {
26
- "aria-labelledby": unref(headerId),
27
- class: "tag-section-container",
28
- role: "region"
29
- }, {
30
- default: withCtx(() => [
31
- moreThanOneDefaultTag.value ? (openBlock(), createBlock(_sfc_main$1, {
32
- key: 0,
33
- eventBus: __props.eventBus,
34
- headerId: unref(headerId),
35
- isCollapsed: __props.isCollapsed,
36
- isLoading: __props.isLoading,
37
- tag: __props.tag
38
- }, null, 8, ["eventBus", "headerId", "isCollapsed", "isLoading", "tag"])) : createCommentVNode("", true),
39
- __props.isCollapsed && __props.moreThanOneTag && hasChildren.value ? (openBlock(), createBlock(ShowMoreButton, {
40
- key: 1,
41
- id: __props.tag.id,
42
- "aria-label": `Show all ${__props.tag.title} endpoints`,
43
- onClick: _cache[0] || (_cache[0] = () => __props.eventBus?.emit("toggle:nav-item", { id: __props.tag.id, open: true }))
44
- }, null, 8, ["id", "aria-label"])) : createCommentVNode("", true),
45
- !(__props.isCollapsed && __props.moreThanOneTag) ? (openBlock(), createElementBlock("div", _hoisted_1, [
46
- renderSlot(_ctx.$slots, "default", {}, void 0, true)
47
- ])) : createCommentVNode("", true)
48
- ]),
49
- _: 3
50
- }, 8, ["aria-labelledby"]);
51
- };
52
- }
53
- });
54
- export {
55
- _sfc_main as default
56
- };
@@ -1,100 +0,0 @@
1
- import { defineComponent, createBlock, createCommentVNode, openBlock, unref, withCtx, withDirectives, createVNode, createTextVNode, toDisplayString, vShow } from "vue";
2
- import { ScalarMarkdown } from "@scalar/components";
3
- import ScreenReader from "../../../ScreenReader.vue.js";
4
- import Section from "../../../Section/Section.vue.js";
5
- import SectionHeader from "../../../Section/SectionHeader.vue.js";
6
- import _sfc_main$1 from "../../../Anchor/Anchor.vue.js";
7
- import SectionHeaderTag from "../../../Section/SectionHeaderTag.vue.js";
8
- import SectionContent from "../../../Section/SectionContent.vue.js";
9
- import SectionColumns from "../../../Section/SectionColumns.vue.js";
10
- import SectionColumn from "../../../Section/SectionColumn.vue.js";
11
- import OperationsList from "../../../OperationsList/OperationsList.vue.js";
12
- import _sfc_main$2 from "../../../../features/specification-extension/SpecificationExtension.vue2.js";
13
- const _sfc_main = /* @__PURE__ */ defineComponent({
14
- __name: "TagSection",
15
- props: {
16
- tag: {},
17
- headerId: {},
18
- isCollapsed: { type: Boolean },
19
- isLoading: { type: Boolean },
20
- eventBus: {}
21
- },
22
- setup(__props) {
23
- return (_ctx, _cache) => {
24
- return __props.tag ? (openBlock(), createBlock(unref(Section), {
25
- key: 0,
26
- id: __props.tag.id,
27
- role: "none",
28
- onIntersecting: _cache[1] || (_cache[1] = () => __props.eventBus?.emit("intersecting:nav-item", { id: __props.tag.id }))
29
- }, {
30
- default: withCtx(() => [
31
- withDirectives(createVNode(unref(SectionHeader), null, {
32
- default: withCtx(() => [
33
- createVNode(unref(_sfc_main$1), {
34
- onCopyAnchorUrl: _cache[0] || (_cache[0] = () => __props.eventBus?.emit("copy-url:nav-item", { id: __props.tag.id }))
35
- }, {
36
- default: withCtx(() => [
37
- createVNode(unref(SectionHeaderTag), {
38
- id: __props.headerId,
39
- level: 2
40
- }, {
41
- default: withCtx(() => [
42
- createTextVNode(toDisplayString(__props.tag.title) + " ", 1),
43
- __props.isCollapsed ? (openBlock(), createBlock(ScreenReader, { key: 0 }, {
44
- default: withCtx(() => [..._cache[2] || (_cache[2] = [
45
- createTextVNode(" (Collapsed)", -1)
46
- ])]),
47
- _: 1
48
- })) : createCommentVNode("", true)
49
- ]),
50
- _: 1
51
- }, 8, ["id"])
52
- ]),
53
- _: 1
54
- })
55
- ]),
56
- _: 1
57
- }, 512), [
58
- [vShow, !__props.isLoading]
59
- ]),
60
- createVNode(unref(SectionContent), { loading: __props.isLoading }, {
61
- default: withCtx(() => [
62
- createVNode(unref(SectionColumns), null, {
63
- default: withCtx(() => [
64
- createVNode(unref(SectionColumn), null, {
65
- default: withCtx(() => [
66
- createVNode(unref(ScalarMarkdown), {
67
- clamp: __props.isCollapsed ? 7 : void 0,
68
- value: __props.tag?.description ?? "",
69
- withImages: ""
70
- }, null, 8, ["clamp", "value"])
71
- ]),
72
- _: 1
73
- }),
74
- createVNode(unref(SectionColumn), null, {
75
- default: withCtx(() => [
76
- createVNode(unref(OperationsList), {
77
- eventBus: __props.eventBus,
78
- tag: __props.tag
79
- }, null, 8, ["eventBus", "tag"])
80
- ]),
81
- _: 1
82
- })
83
- ]),
84
- _: 1
85
- })
86
- ]),
87
- _: 1
88
- }, 8, ["loading"]),
89
- createVNode(unref(_sfc_main$2), {
90
- value: __props.tag.xKeys
91
- }, null, 8, ["value"])
92
- ]),
93
- _: 1
94
- }, 8, ["id"])) : createCommentVNode("", true);
95
- };
96
- }
97
- });
98
- export {
99
- _sfc_main as default
100
- };
@@ -1,4 +0,0 @@
1
- import _sfc_main from "./TagSection.vue.js";
2
- export {
3
- _sfc_main as default
4
- };
@@ -1,7 +0,0 @@
1
- import _sfc_main from "./GettingStarted.vue2.js";
2
- /* empty css */
3
- import _export_sfc from "../_virtual/_plugin-vue_export-helper.js";
4
- const GettingStarted = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-673f10b6"]]);
5
- export {
6
- GettingStarted as default
7
- };
@@ -1,82 +0,0 @@
1
- import { defineComponent, createElementBlock, openBlock, createElementVNode, createStaticVNode, createVNode, unref, withCtx, createTextVNode, Fragment, renderList, normalizeClass, toDisplayString } from "vue";
2
- import { ScalarButton } from "@scalar/components";
3
- import { themeLabels } from "@scalar/themes";
4
- const _hoisted_1 = { class: "start custom-scroll" };
5
- const _hoisted_2 = { class: "start-copy" };
6
- const _hoisted_3 = { class: "start-cta" };
7
- const _hoisted_4 = { class: "start-row" };
8
- const _hoisted_5 = { class: "start-section start-section-colors" };
9
- const _hoisted_6 = ["onClick"];
10
- const _sfc_main = /* @__PURE__ */ defineComponent({
11
- __name: "GettingStarted",
12
- props: {
13
- theme: {}
14
- },
15
- emits: ["changeTheme", "loadSwaggerFile", "linkSwaggerFile", "updateContent"],
16
- setup(__props, { emit: __emit }) {
17
- const emits = __emit;
18
- const themeIds = [
19
- "default",
20
- "alternate",
21
- "moon",
22
- "purple",
23
- "solarized",
24
- "bluePlanet",
25
- "saturn",
26
- "kepler",
27
- "mars",
28
- "deepSpace"
29
- ];
30
- async function fetchExampleSpecification() {
31
- const response = await fetch(
32
- "https://registry.scalar.com/@scalar/apis/galaxy?format=yaml"
33
- );
34
- emits("updateContent", await response.text());
35
- }
36
- return (_ctx, _cache) => {
37
- return openBlock(), createElementBlock("div", _hoisted_1, [
38
- createElementVNode("div", _hoisted_2, [
39
- _cache[3] || (_cache[3] = createStaticVNode('<div class="start-logo" data-v-673f10b6><svg height="36" viewBox="0 0 36 36" width="36" xmlns="http://www.w3.org/2000/svg" data-v-673f10b6><path d="M18 0a18 18 0 1 1 0 36 18 18 0 0 1 0-36Zm11.2 6.5c-3.3-3.3-11.1-1-17.4 5.3-6.2 6.3-8.6 14-5.3 17.4 3.3 3.3 11 .9 17.3-5.4 6.3-6.2 8.7-14 5.4-17.3ZM17.6 12a6.3 6.3 0 1 1 0 12.7 6.3 6.3 0 0 1 0-12.7Z" fill="currentColor" fill-rule="evenodd" data-v-673f10b6></path></svg></div><h1 class="start-h1" data-v-673f10b6>Swagger Editor</h1><p class="start-p" data-v-673f10b6> Welcome to the Scalar API References + Swagger Editor, a Free &amp; Open-Source tool that takes your Swagger/OAS file and generates Beautiful API references. </p>', 3)),
40
- createElementVNode("div", _hoisted_3, [
41
- createVNode(unref(ScalarButton), {
42
- class: "w-full",
43
- onClick: fetchExampleSpecification
44
- }, {
45
- default: withCtx(() => [..._cache[1] || (_cache[1] = [
46
- createTextVNode(" Show Example ", -1)
47
- ])]),
48
- _: 1
49
- }),
50
- createVNode(unref(ScalarButton), {
51
- class: "w-full",
52
- variant: "outlined",
53
- onClick: _cache[0] || (_cache[0] = ($event) => _ctx.$emit("loadSwaggerFile"))
54
- }, {
55
- default: withCtx(() => [..._cache[2] || (_cache[2] = [
56
- createTextVNode(" Upload File ", -1)
57
- ])]),
58
- _: 1
59
- })
60
- ])
61
- ]),
62
- createElementVNode("div", _hoisted_4, [
63
- _cache[5] || (_cache[5] = createStaticVNode('<div class="start-section start-section-integrations" data-v-673f10b6><div class="start-h2" data-v-673f10b6>INTEGRATIONS</div><a class="start-item" href="https://github.com/scalar/scalar/tree/main/integrations/fastify#readme" target="_blank" data-v-673f10b6><svg fill="currentColor" height="16" viewBox="0 0 19 16" width="19" xmlns="http://www.w3.org/2000/svg" data-v-673f10b6><path d="m18.2 3.1.8-2V.9l-4.7 1.3C15.2 1 15 0 15 0s-2.5 1.6-4.3 1.5c-2 0-3.6.8-4 1-1.8 1.2-2.5 3.3-3.2 3.8L0 8.9 2.3 8l-2 2.5c.2.3 1.2 1.6 2.1 1.3l.4-.1 1.6.5-.7-1 .2-.2.9.3-.1-.8.9.3-.1-.8.3-.1 1-3.5 3.7-2.6-.3.7A4 4 0 0 1 8 7l-.6.2c-.5.5-.7.7-.8 2.5a2 2 0 0 1 1 0c1.6.4 2.2 2.3 1.7 2.9l-.7.6H8v.6h-.7v.5l-.2.2c-.7 0-1.4-.6-1.4-.6 0 .5.4 1.3.4 1.3s1.7 1.1 2.7.7c1-.4.7-2.3 2.8-3.2l3.3-.9.8-2.2-1.7.5v-2l2.5-.6.9-2.2-3.4.9v-2l4.2-1.1Z" fill="currentColor" fill-rule="nonzero" data-v-673f10b6></path></svg><span data-v-673f10b6>Fastify</span></a><a class="start-item" href="https://github.com/scalar/scalar/blob/main/documentation/integrations/html-js.md#html" target="_blank" data-v-673f10b6><svg fill="currentColor" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg" data-v-673f10b6><g data-v-673f10b6><path d="M22.5 1.5h-21A1.5 1.5 0 0 0 0 3v3a1.5 1.5 0 0 0 1.5 1.5h21A1.5 1.5 0 0 0 24 6V3a1.5 1.5 0 0 0-1.5-1.5Zm-19.25 3A1.25 1.25 0 1 1 4.5 5.75 1.25 1.25 0 0 1 3.25 4.5ZM8.5 5.75A1.25 1.25 0 1 1 9.75 4.5 1.25 1.25 0 0 1 8.5 5.75Z" fill="currentColor" data-v-673f10b6></path><path d="M22.5 9h-21A1.5 1.5 0 0 0 0 10.5v3A1.5 1.5 0 0 0 1.5 15h21a1.5 1.5 0 0 0 1.5-1.5v-3A1.5 1.5 0 0 0 22.5 9ZM3.25 12a1.25 1.25 0 1 1 1.25 1.25A1.25 1.25 0 0 1 3.25 12Zm5.25 1.25A1.25 1.25 0 1 1 9.75 12a1.25 1.25 0 0 1-1.25 1.25Z" fill="currentColor" data-v-673f10b6></path><path d="M22.5 16.5h-21A1.5 1.5 0 0 0 0 18v3a1.5 1.5 0 0 0 1.5 1.5h21A1.5 1.5 0 0 0 24 21v-3a1.5 1.5 0 0 0-1.5-1.5Zm-19.25 3a1.25 1.25 0 1 1 1.25 1.25 1.25 1.25 0 0 1-1.25-1.25Zm5.25 1.25a1.25 1.25 0 1 1 1.25-1.25 1.25 1.25 0 0 1-1.25 1.25Z" fill="currentColor" data-v-673f10b6></path></g></svg><span data-v-673f10b6>CDN</span></a><a class="start-item" href="https://github.com/scalar/scalar/blob/main/packages/api-reference/README.md#vuejs" target="_blank" data-v-673f10b6><svg height="170" viewBox="0 0 196.3 170" width="196.3" xmlns="http://www.w3.org/2000/svg" data-v-673f10b6><g fill="currentColor" fill-rule="nonzero" data-v-673f10b6><polygon points="39.23 0 0 0 2.9450761 5.1010782 98.16 170.02 196.32 0 157.06 0 98.16 102.01 42.175701 5.0991171" data-v-673f10b6></polygon><polygon points="75.5 2.009956e-14 0 2.009956e-14 2.94 5.1 78.44871 5.1 98.16 39.26 117.87937 5.1 193.38 5.1 196.325 0 120.82 7.8065636e-15 114.97322 2.009956e-14 98.16 29.037153 81.35 2.009956e-14" data-v-673f10b6></polygon></g></svg><span data-v-673f10b6>Vue</span></a><a class="start-item" href="https://github.com/scalar/scalar/blob/main/packages/api-reference-react/README.md#usage" target="_blank" data-v-673f10b6><svg height="23.3" viewBox="0 0 22 23.3" width="22" xmlns="http://www.w3.org/2000/svg" data-v-673f10b6><g fill="none" fill-rule="evenodd" data-v-673f10b6><circle cx="11" cy="11.6" fill="currentColor" fill-rule="nonzero" r="2" data-v-673f10b6></circle><g stroke="currentColor" data-v-673f10b6><ellipse cx="11" cy="11.6" rx="11" ry="4.2" data-v-673f10b6></ellipse><ellipse cx="11" cy="11.6" rx="11" ry="4.2" transform="rotate(60 11 11.6)" data-v-673f10b6></ellipse><ellipse cx="11" cy="11.6" rx="11" ry="4.2" transform="rotate(120 11 11.6)" data-v-673f10b6></ellipse></g></g></svg><span data-v-673f10b6>React</span></a></div>', 1)),
64
- createElementVNode("div", _hoisted_5, [
65
- _cache[4] || (_cache[4] = createElementVNode("p", { class: "start-h2" }, "THEMING", -1)),
66
- (openBlock(), createElementBlock(Fragment, null, renderList(themeIds, (themeId) => {
67
- return createElementVNode("div", {
68
- key: themeId,
69
- class: normalizeClass(["start-item", { "start-item-active": themeId === __props.theme }]),
70
- onClick: ($event) => _ctx.$emit("changeTheme", { id: themeId, label: unref(themeLabels)[themeId] })
71
- }, toDisplayString(unref(themeLabels)[themeId]), 11, _hoisted_6);
72
- }), 64))
73
- ])
74
- ]),
75
- _cache[6] || (_cache[6] = createStaticVNode('<p class="start-h1" data-v-673f10b6>Features</p><ul class="start-ul" data-v-673f10b6><li data-v-673f10b6><p class="start-h3" data-v-673f10b6>Customize</p> Bring your typography &amp; color palettes, or use our themes! </li><li data-v-673f10b6><p class="start-h3" data-v-673f10b6>Testing</p> A deeply integrated Rest API Client (Also Free &amp; Open-Source) </li><li data-v-673f10b6><p class="start-h3" data-v-673f10b6>Search</p> Fully integrated Search (Using fuse.js) </li><li data-v-673f10b6><p class="start-h3" data-v-673f10b6>Hosting</p> Free subdomain hosting on https://apidocumentation.com </li><li data-v-673f10b6><p class="start-h3" data-v-673f10b6>OpenAPI &amp; Swagger</p> Support for OpenAPI 3.1, OpenAPI 3.0, and Swagger 2.0 </li><li data-v-673f10b6><p class="start-h3" data-v-673f10b6>Code Samples</p> Code samples to show off your API in most popular languages </li></ul>', 2))
76
- ]);
77
- };
78
- }
79
- });
80
- export {
81
- _sfc_main as default
82
- };
@@ -1,34 +0,0 @@
1
- import { defineComponent, computed, createBlock, openBlock, resolveDynamicComponent, normalizeStyle, withCtx, renderSlot, createTextVNode, toDisplayString } from "vue";
2
- import { getHttpMethodInfo } from "@scalar/helpers/http/http-info";
3
- import { normalizeHttpMethod } from "@scalar/helpers/http/normalize-http-method";
4
- const _sfc_main = /* @__PURE__ */ defineComponent({
5
- __name: "HttpMethod",
6
- props: {
7
- as: {},
8
- property: {},
9
- short: { type: Boolean },
10
- method: {}
11
- },
12
- setup(__props) {
13
- const props = __props;
14
- const httpMethodInfo = computed(
15
- () => getHttpMethodInfo(String(props.method || ""))
16
- );
17
- const normalized = computed(() => normalizeHttpMethod(props.method));
18
- return (_ctx, _cache) => {
19
- return openBlock(), createBlock(resolveDynamicComponent(__props.as ?? "span"), {
20
- class: "uppercase",
21
- style: normalizeStyle({ [__props.property || "color"]: httpMethodInfo.value.colorVar })
22
- }, {
23
- default: withCtx(() => [
24
- renderSlot(_ctx.$slots, "default"),
25
- createTextVNode(" " + toDisplayString(__props.short ? httpMethodInfo.value.short : normalized.value), 1)
26
- ]),
27
- _: 3
28
- }, 8, ["style"]);
29
- };
30
- }
31
- });
32
- export {
33
- _sfc_main as default
34
- };
@@ -1,4 +0,0 @@
1
- import _sfc_main from "./HttpMethod.vue.js";
2
- export {
3
- _sfc_main as default
4
- };
@@ -1,55 +0,0 @@
1
- import { defineComponent, ref, onMounted, createBlock, openBlock, resolveDynamicComponent, withCtx, renderSlot } from "vue";
2
- import { useIntersectionObserver } from "@vueuse/core";
3
- const _sfc_main = /* @__PURE__ */ defineComponent({
4
- __name: "IntersectionObserver",
5
- props: {
6
- id: {},
7
- is: {}
8
- },
9
- emits: ["intersecting"],
10
- setup(__props, { emit: __emit }) {
11
- const props = __props;
12
- const emit = __emit;
13
- const intersectionObserverRef = ref();
14
- const calculateRootMargin = (element) => {
15
- const height = element.offsetHeight;
16
- return `${height / 2}px 0px ${height / 2}px 0px`;
17
- };
18
- const calculateThreshold = (element) => {
19
- const height = element.offsetHeight;
20
- return height < window.innerHeight ? 0.8 : 0.5;
21
- };
22
- onMounted(() => {
23
- if (intersectionObserverRef.value) {
24
- const options = {
25
- rootMargin: calculateRootMargin(intersectionObserverRef.value),
26
- threshold: calculateThreshold(intersectionObserverRef.value)
27
- };
28
- useIntersectionObserver(
29
- intersectionObserverRef,
30
- ([entry]) => {
31
- if (entry?.isIntersecting && props.id) {
32
- emit("intersecting", props.id);
33
- }
34
- },
35
- options
36
- );
37
- }
38
- });
39
- return (_ctx, _cache) => {
40
- return openBlock(), createBlock(resolveDynamicComponent(__props.is ?? "div"), {
41
- id: __props.id,
42
- ref_key: "intersectionObserverRef",
43
- ref: intersectionObserverRef
44
- }, {
45
- default: withCtx(() => [
46
- renderSlot(_ctx.$slots, "default")
47
- ]),
48
- _: 3
49
- }, 8, ["id"]);
50
- };
51
- }
52
- });
53
- export {
54
- _sfc_main as default
55
- };
@@ -1,4 +0,0 @@
1
- import _sfc_main from "./IntersectionObserver.vue.js";
2
- export {
3
- _sfc_main as default
4
- };
@@ -1,106 +0,0 @@
1
- import { defineComponent, ref, computed, onMounted, watch, nextTick, onBeforeUnmount, createElementBlock, openBlock, normalizeStyle, renderSlot, createCommentVNode } from "vue";
2
- import { useIntersectionObserver } from "@vueuse/core";
3
- import { useLazyBus, getLazyPlaceholderHeight, requestLazyRender, setLazyPlaceholderHeight } from "../../helpers/lazy-bus.js";
4
- const _hoisted_1 = ["id", "data-placeholder"];
5
- const PLACEHOLDER_HEIGHT_PX = 760;
6
- const VIEWPORT_OVERSCAN_PX = 1200;
7
- const _sfc_main = /* @__PURE__ */ defineComponent({
8
- __name: "Lazy",
9
- props: {
10
- id: {},
11
- expanded: { type: Boolean, default: false }
12
- },
13
- setup(__props) {
14
- const VIEWPORT_ROOT_MARGIN = `${VIEWPORT_OVERSCAN_PX}px 0px`;
15
- const { isReady } = useLazyBus(__props.id);
16
- const lazyContainerRef = ref(null);
17
- const placeholderHeight = ref(
18
- getLazyPlaceholderHeight(__props.id) ?? PLACEHOLDER_HEIGHT_PX
19
- );
20
- let contentResizeObserver = null;
21
- const shouldRender = computed(() => isReady.value || __props.expanded);
22
- onMounted(() => {
23
- if (typeof window === "undefined") {
24
- return;
25
- }
26
- if (!("IntersectionObserver" in window)) {
27
- requestLazyRender(__props.id, true);
28
- return;
29
- }
30
- useIntersectionObserver(
31
- lazyContainerRef,
32
- ([entry]) => {
33
- if (entry?.isIntersecting && !isReady.value) {
34
- requestLazyRender(__props.id, true);
35
- }
36
- },
37
- { rootMargin: VIEWPORT_ROOT_MARGIN }
38
- );
39
- });
40
- watch(
41
- () => shouldRender.value,
42
- (rendered, wasRendered) => {
43
- if (wasRendered && !rendered && lazyContainerRef.value) {
44
- const h = lazyContainerRef.value.offsetHeight;
45
- if (Number.isFinite(h) && h > 0) {
46
- placeholderHeight.value = h;
47
- setLazyPlaceholderHeight(__props.id, h);
48
- }
49
- }
50
- },
51
- { flush: "pre" }
52
- );
53
- watch(
54
- () => shouldRender.value,
55
- (rendered) => {
56
- if (!rendered) {
57
- contentResizeObserver?.disconnect();
58
- contentResizeObserver = null;
59
- return;
60
- }
61
- void nextTick(() => {
62
- if (!lazyContainerRef.value || typeof ResizeObserver === "undefined") {
63
- return;
64
- }
65
- if (!contentResizeObserver) {
66
- contentResizeObserver = new ResizeObserver(() => {
67
- if (!lazyContainerRef.value) {
68
- return;
69
- }
70
- const h2 = lazyContainerRef.value.offsetHeight;
71
- if (Number.isFinite(h2) && h2 > 0) {
72
- placeholderHeight.value = h2;
73
- setLazyPlaceholderHeight(__props.id, h2);
74
- }
75
- });
76
- }
77
- contentResizeObserver.observe(lazyContainerRef.value);
78
- const h = lazyContainerRef.value.offsetHeight;
79
- if (Number.isFinite(h) && h > 0) {
80
- placeholderHeight.value = h;
81
- setLazyPlaceholderHeight(__props.id, h);
82
- }
83
- });
84
- },
85
- { immediate: true }
86
- );
87
- onBeforeUnmount(() => {
88
- contentResizeObserver?.disconnect();
89
- });
90
- return (_ctx, _cache) => {
91
- return openBlock(), createElementBlock("div", {
92
- id: !shouldRender.value ? __props.id : void 0,
93
- ref_key: "lazyContainerRef",
94
- ref: lazyContainerRef,
95
- "data-placeholder": !shouldRender.value,
96
- "data-testid": "lazy-container",
97
- style: normalizeStyle({ height: shouldRender.value ? void 0 : `${placeholderHeight.value}px` })
98
- }, [
99
- shouldRender.value ? renderSlot(_ctx.$slots, "default", { key: 0 }) : createCommentVNode("", true)
100
- ], 12, _hoisted_1);
101
- };
102
- }
103
- });
104
- export {
105
- _sfc_main as default
106
- };
@@ -1,4 +0,0 @@
1
- import _sfc_main from "./Lazy.vue.js";
2
- export {
3
- _sfc_main as default
4
- };
@@ -1,7 +0,0 @@
1
- import _sfc_main from "./LinkList.vue2.js";
2
- /* empty css */
3
- import _export_sfc from "../../_virtual/_plugin-vue_export-helper.js";
4
- const LinkList = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-b59b0acf"]]);
5
- export {
6
- LinkList as default
7
- };
@@ -1,48 +0,0 @@
1
- import { defineComponent, ref, onMounted, onUnmounted, createElementBlock, openBlock, normalizeClass, renderSlot } from "vue";
2
- const _sfc_main = /* @__PURE__ */ defineComponent({
3
- __name: "LinkList",
4
- setup(__props) {
5
- const containerRef = ref();
6
- const needsScroll = ref(false);
7
- const checkScrollability = () => {
8
- if (!containerRef.value) {
9
- return;
10
- }
11
- const { scrollWidth, clientWidth } = containerRef.value;
12
- needsScroll.value = scrollWidth > clientWidth;
13
- };
14
- let mutationObserver = null;
15
- onMounted(() => {
16
- checkScrollability();
17
- window.addEventListener("resize", checkScrollability);
18
- if (containerRef.value) {
19
- mutationObserver = new MutationObserver(() => {
20
- checkScrollability();
21
- });
22
- mutationObserver.observe(containerRef.value, {
23
- childList: true,
24
- subtree: true
25
- });
26
- }
27
- });
28
- onUnmounted(() => {
29
- window.removeEventListener("resize", checkScrollability);
30
- if (mutationObserver) {
31
- mutationObserver.disconnect();
32
- mutationObserver = null;
33
- }
34
- });
35
- return (_ctx, _cache) => {
36
- return openBlock(), createElementBlock("div", {
37
- ref_key: "containerRef",
38
- ref: containerRef,
39
- class: normalizeClass([{ "icons-only": needsScroll.value }, "custom-scroll mb-3 flex h-auto min-h-8 max-w-full items-center gap-2 overflow-x-auto text-base whitespace-nowrap xl:mb-1.5"])
40
- }, [
41
- renderSlot(_ctx.$slots, "default", {}, void 0, true)
42
- ], 2);
43
- };
44
- }
45
- });
46
- export {
47
- _sfc_main as default
48
- };
@@ -1,7 +0,0 @@
1
- import _sfc_main from "./LoadingSkeleton.vue2.js";
2
- /* empty css */
3
- import _export_sfc from "../_virtual/_plugin-vue_export-helper.js";
4
- const LoadingSkeleton = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-8e0226d7"]]);
5
- export {
6
- LoadingSkeleton as default
7
- };
@@ -1,20 +0,0 @@
1
- import { defineComponent, createElementBlock, openBlock, Fragment, renderList, normalizeClass } from "vue";
2
- const _sfc_main = /* @__PURE__ */ defineComponent({
3
- __name: "LoadingSkeleton",
4
- props: {
5
- lines: { default: 1 }
6
- },
7
- setup(__props) {
8
- return (_ctx, _cache) => {
9
- return openBlock(true), createElementBlock(Fragment, null, renderList([...Array(__props.lines).keys()], (idx) => {
10
- return openBlock(), createElementBlock("div", {
11
- key: idx,
12
- class: normalizeClass(["loading", { "single-line": __props.lines === 1 }])
13
- }, null, 2);
14
- }), 128);
15
- };
16
- }
17
- });
18
- export {
19
- _sfc_main as default
20
- };