@scalar/api-reference 0.5.0 → 0.5.2

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 (470) hide show
  1. package/dist/components/Content/Introduction/BaseUrl.vue.d.ts.map +1 -1
  2. package/dist/components/Content/MarkdownRenderer.vue.d.ts.map +1 -1
  3. package/dist/components/Content/ReferenceEndpoint/Copy.vue.d.ts.map +1 -1
  4. package/dist/components/Content/ReferenceEndpoint/ExampleRequest.vue.d.ts.map +1 -1
  5. package/dist/components/Content/ReferenceEndpoint/{ExampleResponses.vue.d.ts → ExampleResponses/ExampleResponses.vue.d.ts} +1 -1
  6. package/dist/components/Content/ReferenceEndpoint/ExampleResponses/ExampleResponses.vue.d.ts.map +1 -0
  7. package/dist/components/Content/ReferenceEndpoint/ExampleResponses/Headers.vue.d.ts +14 -0
  8. package/dist/components/Content/ReferenceEndpoint/ExampleResponses/Headers.vue.d.ts.map +1 -0
  9. package/dist/components/Content/ReferenceEndpoint/ExampleResponses/SelectExample.vue.d.ts +13 -0
  10. package/dist/components/Content/ReferenceEndpoint/ExampleResponses/SelectExample.vue.d.ts.map +1 -0
  11. package/dist/components/Content/ReferenceEndpoint/ExampleResponses/index.d.ts +2 -0
  12. package/dist/components/Content/ReferenceEndpoint/ExampleResponses/index.d.ts.map +1 -0
  13. package/dist/components/Sidebar.vue.d.ts.map +1 -1
  14. package/dist/helpers/index.d.ts +1 -0
  15. package/dist/helpers/index.d.ts.map +1 -1
  16. package/dist/helpers/mapFromObject.d.ts +8 -0
  17. package/dist/helpers/mapFromObject.d.ts.map +1 -0
  18. package/dist/index.js +8898 -11685
  19. package/dist/types.d.ts +9 -7
  20. package/dist/types.d.ts.map +1 -1
  21. package/package.json +10 -10
  22. package/dist/components/Content/ReferenceEndpoint/ExampleResponses.vue.d.ts.map +0 -1
  23. package/src/components/ApiClientModal.vue +0 -205
  24. package/src/components/ApiReference.vue +0 -750
  25. package/src/components/Card/Card.vue +0 -12
  26. package/src/components/Card/CardContent.vue +0 -45
  27. package/src/components/Card/CardFooter.vue +0 -13
  28. package/src/components/Card/CardHeader.vue +0 -37
  29. package/src/components/Card/CardTab.vue +0 -32
  30. package/src/components/Card/CardTabHeader.vue +0 -32
  31. package/src/components/Card/index.ts +0 -6
  32. package/src/components/Content/Content.vue +0 -145
  33. package/src/components/Content/Introduction/BaseUrl.vue +0 -32
  34. package/src/components/Content/Introduction/Introduction.vue +0 -141
  35. package/src/components/Content/Introduction/LanguageSelector.vue +0 -361
  36. package/src/components/Content/Introduction/index.ts +0 -1
  37. package/src/components/Content/MarkdownRenderer.vue +0 -174
  38. package/src/components/Content/ReferenceEndpoint/Copy.vue +0 -100
  39. package/src/components/Content/ReferenceEndpoint/ExampleRequest.vue +0 -318
  40. package/src/components/Content/ReferenceEndpoint/ExampleResponseTab.vue +0 -22
  41. package/src/components/Content/ReferenceEndpoint/ExampleResponses.vue +0 -169
  42. package/src/components/Content/ReferenceEndpoint/ParameterItem.vue +0 -26
  43. package/src/components/Content/ReferenceEndpoint/Parameters.vue +0 -23
  44. package/src/components/Content/ReferenceEndpoint/ReferenceEndpoint.vue +0 -29
  45. package/src/components/Content/ReferenceEndpoint/RequestBody.vue +0 -125
  46. package/src/components/Content/ReferenceEndpoint/RequestBodyProperties.vue +0 -54
  47. package/src/components/Content/ReferenceEndpoint/RequestBodyPropertiesChild.vue +0 -39
  48. package/src/components/Content/ReferenceEndpoint/index.ts +0 -1
  49. package/src/components/Content/ReferenceTag.vue +0 -99
  50. package/src/components/Content/Spinner.vue +0 -51
  51. package/src/components/Content/index.ts +0 -1
  52. package/src/components/FindAnythingButton.vue +0 -76
  53. package/src/components/FlowButton.vue +0 -184
  54. package/src/components/FlowIconButton.vue +0 -25
  55. package/src/components/FlowLoader.vue +0 -207
  56. package/src/components/FlowModal.vue +0 -133
  57. package/src/components/HelpfulLink.vue +0 -19
  58. package/src/components/Icon/FlowIcon.vue +0 -19
  59. package/src/components/Icon/Icon.vue +0 -23
  60. package/src/components/Icon/SvgRenderer.ts +0 -66
  61. package/src/components/Icon/brand/brand-adobe.svg +0 -1
  62. package/src/components/Icon/brand/brand-amazon.svg +0 -1
  63. package/src/components/Icon/brand/brand-browser-firefox.svg +0 -5
  64. package/src/components/Icon/brand/brand-browser-googlechrome.svg +0 -5
  65. package/src/components/Icon/brand/brand-creative-commons.svg +0 -1
  66. package/src/components/Icon/brand/brand-ecommerce-etsy.svg +0 -1
  67. package/src/components/Icon/brand/brand-ecommerce-patreon.svg +0 -1
  68. package/src/components/Icon/brand/brand-ecommerce-shopify.svg +0 -5
  69. package/src/components/Icon/brand/brand-ecommerce-wordpress.svg +0 -1
  70. package/src/components/Icon/brand/brand-gaming-nintendo-switch.svg +0 -5
  71. package/src/components/Icon/brand/brand-gaming-playstation.svg +0 -1
  72. package/src/components/Icon/brand/brand-gaming-xbox-live.svg +0 -5
  73. package/src/components/Icon/brand/brand-google-drive.svg +0 -5
  74. package/src/components/Icon/brand/brand-google-gmail.svg +0 -5
  75. package/src/components/Icon/brand/brand-google.svg +0 -1
  76. package/src/components/Icon/brand/brand-music-itunes.svg +0 -1
  77. package/src/components/Icon/brand/brand-music-soundcloud.svg +0 -1
  78. package/src/components/Icon/brand/brand-music-spotify.svg +0 -1
  79. package/src/components/Icon/brand/brand-office-dropbox.svg +0 -5
  80. package/src/components/Icon/brand/brand-office-slack.svg +0 -5
  81. package/src/components/Icon/brand/brand-office-zoom.svg +0 -1
  82. package/src/components/Icon/brand/brand-payments-alipay.svg +0 -1
  83. package/src/components/Icon/brand/brand-payments-paypal.svg +0 -1
  84. package/src/components/Icon/brand/brand-payments-stripe.svg +0 -1
  85. package/src/components/Icon/brand/brand-platform-android.svg +0 -1
  86. package/src/components/Icon/brand/brand-platform-apple.svg +0 -5
  87. package/src/components/Icon/brand/brand-platform-linux.svg +0 -5
  88. package/src/components/Icon/brand/brand-platform-microsoft-windows.svg +0 -4
  89. package/src/components/Icon/brand/brand-social-chat-discord.svg +0 -5
  90. package/src/components/Icon/brand/brand-social-chat-kuaishou.svg +0 -5
  91. package/src/components/Icon/brand/brand-social-chat-line.svg +0 -5
  92. package/src/components/Icon/brand/brand-social-chat-messenger.svg +0 -5
  93. package/src/components/Icon/brand/brand-social-chat-signal.svg +0 -5
  94. package/src/components/Icon/brand/brand-social-chat-snapchat.svg +0 -5
  95. package/src/components/Icon/brand/brand-social-chat-telegram.svg +0 -5
  96. package/src/components/Icon/brand/brand-social-chat-wechat.svg +0 -5
  97. package/src/components/Icon/brand/brand-social-chat-whatsapp.svg +0 -5
  98. package/src/components/Icon/brand/brand-social-media-deviantart.svg +0 -5
  99. package/src/components/Icon/brand/brand-social-media-dribbble.svg +0 -1
  100. package/src/components/Icon/brand/brand-social-media-facebook.svg +0 -1
  101. package/src/components/Icon/brand/brand-social-media-instagram.svg +0 -5
  102. package/src/components/Icon/brand/brand-social-media-linkedin.svg +0 -5
  103. package/src/components/Icon/brand/brand-social-media-pinterest.svg +0 -5
  104. package/src/components/Icon/brand/brand-social-media-reddit.svg +0 -1
  105. package/src/components/Icon/brand/brand-social-media-sina-weibo.svg +0 -5
  106. package/src/components/Icon/brand/brand-social-media-threads.svg +0 -1
  107. package/src/components/Icon/brand/brand-social-media-tiktok.svg +0 -5
  108. package/src/components/Icon/brand/brand-social-media-tinder.svg +0 -1
  109. package/src/components/Icon/brand/brand-social-media-tumblr.svg +0 -5
  110. package/src/components/Icon/brand/brand-social-media-twitter.svg +0 -5
  111. package/src/components/Icon/brand/brand-software-design-figma.svg +0 -1
  112. package/src/components/Icon/brand/brand-software-development-authy.svg +0 -1
  113. package/src/components/Icon/brand/brand-software-development-digital-ocean.svg +0 -1
  114. package/src/components/Icon/brand/brand-software-development-docker.svg +0 -5
  115. package/src/components/Icon/brand/brand-software-development-github.svg +0 -5
  116. package/src/components/Icon/brand/brand-software-development-jira.svg +0 -1
  117. package/src/components/Icon/brand/brand-software-development-openai.svg +0 -1
  118. package/src/components/Icon/brand/brand-software-development-stackexchange.svg +0 -5
  119. package/src/components/Icon/brand/brand-software-development-stackoverflow.svg +0 -1
  120. package/src/components/Icon/brand/brand-video-netflix.svg +0 -5
  121. package/src/components/Icon/brand/brand-video-twitch.svg +0 -1
  122. package/src/components/Icon/brand/brand-video-vimeo.svg +0 -5
  123. package/src/components/Icon/brand/brand-video-youtube.svg +0 -5
  124. package/src/components/Icon/brand/programming-framework-angular.svg +0 -5
  125. package/src/components/Icon/brand/programming-framework-astro.svg +0 -5
  126. package/src/components/Icon/brand/programming-framework-laravel.svg +0 -1
  127. package/src/components/Icon/brand/programming-framework-nextdotjs.svg +0 -5
  128. package/src/components/Icon/brand/programming-framework-react.svg +0 -5
  129. package/src/components/Icon/brand/programming-framework-vuedotjs.svg +0 -1
  130. package/src/components/Icon/brand/programming-language-c.svg +0 -5
  131. package/src/components/Icon/brand/programming-language-clojure.svg +0 -5
  132. package/src/components/Icon/brand/programming-language-csharp.svg +0 -4
  133. package/src/components/Icon/brand/programming-language-css3.svg +0 -4
  134. package/src/components/Icon/brand/programming-language-go.svg +0 -4
  135. package/src/components/Icon/brand/programming-language-html5.svg +0 -4
  136. package/src/components/Icon/brand/programming-language-java.svg +0 -21
  137. package/src/components/Icon/brand/programming-language-javascript-js.svg +0 -4
  138. package/src/components/Icon/brand/programming-language-json.svg +0 -8
  139. package/src/components/Icon/brand/programming-language-kotlin.svg +0 -3
  140. package/src/components/Icon/brand/programming-language-node.svg +0 -10
  141. package/src/components/Icon/brand/programming-language-objc.svg +0 -6
  142. package/src/components/Icon/brand/programming-language-ocaml.svg +0 -4
  143. package/src/components/Icon/brand/programming-language-php.svg +0 -4
  144. package/src/components/Icon/brand/programming-language-powershell.svg +0 -10
  145. package/src/components/Icon/brand/programming-language-python.svg +0 -4
  146. package/src/components/Icon/brand/programming-language-r.svg +0 -7
  147. package/src/components/Icon/brand/programming-language-ruby.svg +0 -5
  148. package/src/components/Icon/brand/programming-language-scala.svg +0 -5
  149. package/src/components/Icon/brand/programming-language-shell.svg +0 -5
  150. package/src/components/Icon/brand/programming-language-swift.svg +0 -4
  151. package/src/components/Icon/brand/programming-language-typescript.svg +0 -5
  152. package/src/components/Icon/brand/programming-tool-git.svg +0 -1
  153. package/src/components/Icon/brand/programming-tool-tailwindcss.svg +0 -5
  154. package/src/components/Icon/icons/Add.svg +0 -4
  155. package/src/components/Icon/icons/ArrowDown.svg +0 -3
  156. package/src/components/Icon/icons/ArrowLeft.svg +0 -3
  157. package/src/components/Icon/icons/ArrowRight.svg +0 -3
  158. package/src/components/Icon/icons/ArrowUp.svg +0 -3
  159. package/src/components/Icon/icons/Background.svg +0 -8
  160. package/src/components/Icon/icons/CallToAction.svg +0 -5
  161. package/src/components/Icon/icons/CheckMark.svg +0 -3
  162. package/src/components/Icon/icons/ChevronDown.svg +0 -3
  163. package/src/components/Icon/icons/ChevronLeft.svg +0 -3
  164. package/src/components/Icon/icons/ChevronRight.svg +0 -3
  165. package/src/components/Icon/icons/ChevronUp.svg +0 -3
  166. package/src/components/Icon/icons/Close.svg +0 -3
  167. package/src/components/Icon/icons/DarkMode.svg +0 -4
  168. package/src/components/Icon/icons/Delete.svg +0 -5
  169. package/src/components/Icon/icons/Discord.svg +0 -5
  170. package/src/components/Icon/icons/Duplicate.svg +0 -6
  171. package/src/components/Icon/icons/Edit.svg +0 -4
  172. package/src/components/Icon/icons/EditorBold.svg +0 -4
  173. package/src/components/Icon/icons/EditorCode.svg +0 -6
  174. package/src/components/Icon/icons/EditorHighlight.svg +0 -12
  175. package/src/components/Icon/icons/EditorItalic.svg +0 -4
  176. package/src/components/Icon/icons/EditorLink.svg +0 -8
  177. package/src/components/Icon/icons/EditorStrike.svg +0 -4
  178. package/src/components/Icon/icons/EditorUnderline.svg +0 -6
  179. package/src/components/Icon/icons/Ellipses.svg +0 -4
  180. package/src/components/Icon/icons/Error.svg +0 -4
  181. package/src/components/Icon/icons/ExternalLink.svg +0 -7
  182. package/src/components/Icon/icons/Folder.svg +0 -4
  183. package/src/components/Icon/icons/GitHub.svg +0 -4
  184. package/src/components/Icon/icons/Google.svg +0 -4
  185. package/src/components/Icon/icons/Hide.svg +0 -5
  186. package/src/components/Icon/icons/Key.svg +0 -5
  187. package/src/components/Icon/icons/Leave.svg +0 -5
  188. package/src/components/Icon/icons/LightMode.svg +0 -6
  189. package/src/components/Icon/icons/Link.svg +0 -5
  190. package/src/components/Icon/icons/Lock.svg +0 -4
  191. package/src/components/Icon/icons/Logo.svg +0 -4
  192. package/src/components/Icon/icons/LogoAPI.svg +0 -4
  193. package/src/components/Icon/icons/LogoClient.svg +0 -4
  194. package/src/components/Icon/icons/LogoMarket.svg +0 -4
  195. package/src/components/Icon/icons/LogoSwagger.svg +0 -4
  196. package/src/components/Icon/icons/Magic.svg +0 -5
  197. package/src/components/Icon/icons/Menu.svg +0 -3
  198. package/src/components/Icon/icons/Page.svg +0 -8
  199. package/src/components/Icon/icons/Payment.svg +0 -5
  200. package/src/components/Icon/icons/Refresh.svg +0 -4
  201. package/src/components/Icon/icons/Search.svg +0 -4
  202. package/src/components/Icon/icons/Show.svg +0 -5
  203. package/src/components/Icon/icons/Sigma.svg +0 -4
  204. package/src/components/Icon/icons/Trash.svg +0 -5
  205. package/src/components/Icon/icons/index.ts +0 -65
  206. package/src/components/Icon/index.ts +0 -2
  207. package/src/components/Icon/line/arrow-chevron-down.svg +0 -1
  208. package/src/components/Icon/line/arrow-chevron-left.svg +0 -1
  209. package/src/components/Icon/line/arrow-chevron-right.svg +0 -1
  210. package/src/components/Icon/line/arrow-chevron-up.svg +0 -1
  211. package/src/components/Icon/line/arrow-down.svg +0 -1
  212. package/src/components/Icon/line/arrow-left.svg +0 -1
  213. package/src/components/Icon/line/arrow-right.svg +0 -1
  214. package/src/components/Icon/line/arrow-up.svg +0 -1
  215. package/src/components/Icon/line/basic-shape-diamond.svg +0 -1
  216. package/src/components/Icon/line/basic-shape-hexagon.svg +0 -1
  217. package/src/components/Icon/line/basic-shape-primary-circle-ellipse-round.svg +0 -1
  218. package/src/components/Icon/line/basic-shape-primary-square-rectangle.svg +0 -1
  219. package/src/components/Icon/line/basic-shape-shield.svg +0 -1
  220. package/src/components/Icon/line/computer-device-desktop-monitor.svg +0 -1
  221. package/src/components/Icon/line/computer-device-desktop.svg +0 -1
  222. package/src/components/Icon/line/computer-device-laptop.svg +0 -1
  223. package/src/components/Icon/line/computer-device-mobile-phone-android-samsung-back.svg +0 -1
  224. package/src/components/Icon/line/computer-device-mobile-phone-android-samsung.svg +0 -1
  225. package/src/components/Icon/line/computer-device-mobile-phone-iphone-x-back.svg +0 -1
  226. package/src/components/Icon/line/computer-device-mobile-phone-iphone-x.svg +0 -1
  227. package/src/components/Icon/line/computer-device-mobile-tablet-touch.svg +0 -1
  228. package/src/components/Icon/line/computer-device-mobile-tablet.svg +0 -1
  229. package/src/components/Icon/line/computer-device-network-ethernet-cat6.svg +0 -1
  230. package/src/components/Icon/line/computer-device-network-lan-www.svg +0 -1
  231. package/src/components/Icon/line/computer-device-network-wifi-connection.svg +0 -1
  232. package/src/components/Icon/line/computer-device-network-wifi-router.svg +0 -1
  233. package/src/components/Icon/line/computer-keyboard-alt.svg +0 -1
  234. package/src/components/Icon/line/computer-keyboard-command-cmd-control-ctrl.svg +0 -1
  235. package/src/components/Icon/line/computer-keyboard-option.svg +0 -1
  236. package/src/components/Icon/line/computer-keyboard-shift.svg +0 -1
  237. package/src/components/Icon/line/ecology-science-erlenmeyer-flask.svg +0 -1
  238. package/src/components/Icon/line/entertainment-control-button-circle-left-arrow-rewind.svg +0 -1
  239. package/src/components/Icon/line/entertainment-control-button-circle-pause.svg +0 -1
  240. package/src/components/Icon/line/entertainment-control-button-circle-right-arrow-fast-forward.svg +0 -1
  241. package/src/components/Icon/line/entertainment-control-button-circle-stop-square.svg +0 -1
  242. package/src/components/Icon/line/entertainment-control-button-play-circle.svg +0 -1
  243. package/src/components/Icon/line/entertainment-party-popper-confetti.svg +0 -1
  244. package/src/components/Icon/line/image-flash-lightning.svg +0 -1
  245. package/src/components/Icon/line/image-photo-frame.svg +0 -1
  246. package/src/components/Icon/line/image-picture-flower.svg +0 -1
  247. package/src/components/Icon/line/interface-add.svg +0 -1
  248. package/src/components/Icon/line/interface-alert-error-exclamation-block-square.svg +0 -1
  249. package/src/components/Icon/line/interface-alert-error-x-block-square.svg +0 -1
  250. package/src/components/Icon/line/interface-alert-exclamation-diamond.svg +0 -1
  251. package/src/components/Icon/line/interface-alert-exclamation-triangle-warning.svg +0 -1
  252. package/src/components/Icon/line/interface-alert-information-circle.svg +0 -1
  253. package/src/components/Icon/line/interface-award-crown.svg +0 -1
  254. package/src/components/Icon/line/interface-bookmark-tag.svg +0 -1
  255. package/src/components/Icon/line/interface-bookmark.svg +0 -1
  256. package/src/components/Icon/line/interface-calendar-date-one.svg +0 -1
  257. package/src/components/Icon/line/interface-close.svg +0 -1
  258. package/src/components/Icon/line/interface-content-book-open-pages.svg +0 -1
  259. package/src/components/Icon/line/interface-content-book-page.svg +0 -1
  260. package/src/components/Icon/line/interface-content-file.svg +0 -8
  261. package/src/components/Icon/line/interface-content-folder.svg +0 -1
  262. package/src/components/Icon/line/interface-copy-clipboard.svg +0 -1
  263. package/src/components/Icon/line/interface-delete-bin-trash.svg +0 -1
  264. package/src/components/Icon/line/interface-dots-horizontal.svg +0 -1
  265. package/src/components/Icon/line/interface-dots-vertical.svg +0 -1
  266. package/src/components/Icon/line/interface-edit-attachment.svg +0 -1
  267. package/src/components/Icon/line/interface-edit-binocular.svg +0 -1
  268. package/src/components/Icon/line/interface-edit-magic-wand.svg +0 -1
  269. package/src/components/Icon/line/interface-edit-tool-eraser.svg +0 -1
  270. package/src/components/Icon/line/interface-edit-tool-paint-brush.svg +0 -1
  271. package/src/components/Icon/line/interface-edit-tool-paint-roller.svg +0 -1
  272. package/src/components/Icon/line/interface-edit-tool-pen.svg +0 -1
  273. package/src/components/Icon/line/interface-edit-tool-pencil.svg +0 -1
  274. package/src/components/Icon/line/interface-edit-view-eye.svg +0 -1
  275. package/src/components/Icon/line/interface-favorite-award.svg +0 -1
  276. package/src/components/Icon/line/interface-favorite-flag.svg +0 -1
  277. package/src/components/Icon/line/interface-favorite-heart.svg +0 -1
  278. package/src/components/Icon/line/interface-favorite-star.svg +0 -1
  279. package/src/components/Icon/line/interface-favorite-stars-shining.svg +0 -1
  280. package/src/components/Icon/line/interface-favorite-stars-sparkles.svg +0 -1
  281. package/src/components/Icon/line/interface-hierarchy-flowchart.svg +0 -1
  282. package/src/components/Icon/line/interface-home-house.svg +0 -1
  283. package/src/components/Icon/line/interface-hyperlink.svg +0 -1
  284. package/src/components/Icon/line/interface-lighting-brightness.svg +0 -1
  285. package/src/components/Icon/line/interface-lock-closed.svg +0 -1
  286. package/src/components/Icon/line/interface-lock-open-unlock.svg +0 -1
  287. package/src/components/Icon/line/interface-login-key.svg +0 -1
  288. package/src/components/Icon/line/interface-search.svg +0 -1
  289. package/src/components/Icon/line/interface-setting-cog.svg +0 -1
  290. package/src/components/Icon/line/interface-share-megaphone-bullhorn.svg +0 -1
  291. package/src/components/Icon/line/interface-share-rocket.svg +0 -1
  292. package/src/components/Icon/line/interface-share-satellite.svg +0 -1
  293. package/src/components/Icon/line/interface-share-space-ship.svg +0 -1
  294. package/src/components/Icon/line/interface-share.svg +0 -1
  295. package/src/components/Icon/line/interface-signal-square.svg +0 -1
  296. package/src/components/Icon/line/interface-text-formatting-left-open-quote.svg +0 -1
  297. package/src/components/Icon/line/interface-text-formatting-right-close-quote.svg +0 -1
  298. package/src/components/Icon/line/interface-time-clock-circle.svg +0 -1
  299. package/src/components/Icon/line/interface-time-hour-glass.svg +0 -1
  300. package/src/components/Icon/line/interface-users-multiple.svg +0 -1
  301. package/src/components/Icon/line/interface-validation-checkbox-square.svg +0 -1
  302. package/src/components/Icon/line/interface-weather-moon.svg +0 -1
  303. package/src/components/Icon/line/legal-justice-hammer-gavel.svg +0 -1
  304. package/src/components/Icon/line/mail-chat-bubble-square.svg +0 -1
  305. package/src/components/Icon/line/mail-send-email-paper-airplane.svg +0 -1
  306. package/src/components/Icon/line/mail-send-envelope.svg +0 -1
  307. package/src/components/Icon/line/mail-sign-hashtag.svg +0 -1
  308. package/src/components/Icon/line/money-cashier-receipt.svg +0 -1
  309. package/src/components/Icon/line/money-currency-dollar-pay.svg +0 -1
  310. package/src/components/Icon/line/money-graph-arrow-increase.svg +0 -1
  311. package/src/components/Icon/line/money-graph-bar-chart-increase.svg +0 -1
  312. package/src/components/Icon/line/nature-ecology-leaf.svg +0 -1
  313. package/src/components/Icon/line/phone-telephone.svg +0 -1
  314. package/src/components/Icon/line/programming-bug.svg +0 -1
  315. package/src/components/Icon/line/programming-cloud.svg +0 -1
  316. package/src/components/Icon/line/programming-computer-database-server.svg +0 -1
  317. package/src/components/Icon/line/programming-computer-database.svg +0 -1
  318. package/src/components/Icon/line/programming-module-four-layout.svg +0 -1
  319. package/src/components/Icon/line/programming-module-three.svg +0 -1
  320. package/src/components/Icon/line/programming-module.svg +0 -1
  321. package/src/components/Icon/line/programming-script-code.svg +0 -1
  322. package/src/components/Icon/line/shopping-cart.svg +0 -8
  323. package/src/components/Icon/line/shopping-gift-present.svg +0 -1
  324. package/src/components/Icon/line/shopping-shipping-box-parcel-package.svg +0 -1
  325. package/src/components/Icon/line/tag-new-circle.svg +0 -1
  326. package/src/components/Icon/line/travel-map-earth-globe.svg +0 -1
  327. package/src/components/Icon/localIcons.ts +0 -68
  328. package/src/components/Icon/solid/arrow-chevron-down.svg +0 -1
  329. package/src/components/Icon/solid/arrow-chevron-left.svg +0 -1
  330. package/src/components/Icon/solid/arrow-chevron-right.svg +0 -1
  331. package/src/components/Icon/solid/arrow-chevron-up.svg +0 -1
  332. package/src/components/Icon/solid/arrow-down.svg +0 -1
  333. package/src/components/Icon/solid/arrow-left.svg +0 -1
  334. package/src/components/Icon/solid/arrow-right.svg +0 -1
  335. package/src/components/Icon/solid/arrow-up.svg +0 -1
  336. package/src/components/Icon/solid/basic-shape-diamond.svg +0 -1
  337. package/src/components/Icon/solid/basic-shape-hexagon.svg +0 -1
  338. package/src/components/Icon/solid/basic-shape-primary-circle-ellipse-round.svg +0 -1
  339. package/src/components/Icon/solid/basic-shape-primary-square-rectangle.svg +0 -1
  340. package/src/components/Icon/solid/basic-shape-shield.svg +0 -1
  341. package/src/components/Icon/solid/computer-device-desktop-monitor.svg +0 -1
  342. package/src/components/Icon/solid/computer-device-desktop.svg +0 -1
  343. package/src/components/Icon/solid/computer-device-laptop.svg +0 -1
  344. package/src/components/Icon/solid/computer-device-mobile-phone-android-samsung-back.svg +0 -1
  345. package/src/components/Icon/solid/computer-device-mobile-phone-android-samsung.svg +0 -1
  346. package/src/components/Icon/solid/computer-device-mobile-phone-iphone-x-back.svg +0 -1
  347. package/src/components/Icon/solid/computer-device-mobile-phone-iphone-x.svg +0 -1
  348. package/src/components/Icon/solid/computer-device-mobile-tablet-touch.svg +0 -1
  349. package/src/components/Icon/solid/computer-device-mobile-tablet.svg +0 -1
  350. package/src/components/Icon/solid/computer-device-network-ethernet-cat6.svg +0 -1
  351. package/src/components/Icon/solid/computer-device-network-lan-www.svg +0 -1
  352. package/src/components/Icon/solid/computer-device-network-wifi-connection.svg +0 -5
  353. package/src/components/Icon/solid/computer-device-network-wifi-router.svg +0 -1
  354. package/src/components/Icon/solid/computer-keyboard-alt.svg +0 -1
  355. package/src/components/Icon/solid/computer-keyboard-command-cmd-control-ctrl.svg +0 -1
  356. package/src/components/Icon/solid/computer-keyboard-option.svg +0 -1
  357. package/src/components/Icon/solid/computer-keyboard-shift.svg +0 -1
  358. package/src/components/Icon/solid/ecology-science-erlenmeyer-flask.svg +0 -1
  359. package/src/components/Icon/solid/entertainment-control-button-circle-left-arrow-rewind.svg +0 -1
  360. package/src/components/Icon/solid/entertainment-control-button-circle-pause.svg +0 -1
  361. package/src/components/Icon/solid/entertainment-control-button-circle-play.svg +0 -5
  362. package/src/components/Icon/solid/entertainment-control-button-circle-right-arrow-fast-forward.svg +0 -1
  363. package/src/components/Icon/solid/entertainment-control-button-circle-stop-square.svg +0 -1
  364. package/src/components/Icon/solid/entertainment-party-popper-confetti.svg +0 -1
  365. package/src/components/Icon/solid/image-flash-lightning.svg +0 -5
  366. package/src/components/Icon/solid/image-photo-frame.svg +0 -11
  367. package/src/components/Icon/solid/image-picture-flower.svg +0 -5
  368. package/src/components/Icon/solid/interface-add-square.svg +0 -5
  369. package/src/components/Icon/solid/interface-alert-error-exclamation-block-square.svg +0 -1
  370. package/src/components/Icon/solid/interface-alert-error-x-block-square.svg +0 -1
  371. package/src/components/Icon/solid/interface-alert-exclamation-diamond.svg +0 -1
  372. package/src/components/Icon/solid/interface-alert-exclamation-triangle-warning.svg +0 -1
  373. package/src/components/Icon/solid/interface-alert-information-circle.svg +0 -5
  374. package/src/components/Icon/solid/interface-award-crown.svg +0 -5
  375. package/src/components/Icon/solid/interface-bookmark-tag.svg +0 -1
  376. package/src/components/Icon/solid/interface-bookmark.svg +0 -5
  377. package/src/components/Icon/solid/interface-calendar-date-one.svg +0 -5
  378. package/src/components/Icon/solid/interface-close.svg +0 -8
  379. package/src/components/Icon/solid/interface-content-book-open-pages.svg +0 -13
  380. package/src/components/Icon/solid/interface-content-book-page.svg +0 -5
  381. package/src/components/Icon/solid/interface-content-file.svg +0 -5
  382. package/src/components/Icon/solid/interface-content-folder.svg +0 -1
  383. package/src/components/Icon/solid/interface-copy-clipboard.svg +0 -5
  384. package/src/components/Icon/solid/interface-delete-bin-trash.svg +0 -1
  385. package/src/components/Icon/solid/interface-dots-horizontal.svg +0 -1
  386. package/src/components/Icon/solid/interface-dots-vertical.svg +0 -1
  387. package/src/components/Icon/solid/interface-edit-attachment.svg +0 -5
  388. package/src/components/Icon/solid/interface-edit-binocular.svg +0 -5
  389. package/src/components/Icon/solid/interface-edit-magic-wand.svg +0 -7
  390. package/src/components/Icon/solid/interface-edit-tool-eraser.svg +0 -1
  391. package/src/components/Icon/solid/interface-edit-tool-paint-brush.svg +0 -1
  392. package/src/components/Icon/solid/interface-edit-tool-paint-roller.svg +0 -5
  393. package/src/components/Icon/solid/interface-edit-tool-pen.svg +0 -5
  394. package/src/components/Icon/solid/interface-edit-tool-pencil.svg +0 -1
  395. package/src/components/Icon/solid/interface-edit-view-eye.svg +0 -7
  396. package/src/components/Icon/solid/interface-favorite-award.svg +0 -5
  397. package/src/components/Icon/solid/interface-favorite-flag.svg +0 -1
  398. package/src/components/Icon/solid/interface-favorite-heart.svg +0 -5
  399. package/src/components/Icon/solid/interface-favorite-star.svg +0 -5
  400. package/src/components/Icon/solid/interface-favorite-stars-shining.svg +0 -1
  401. package/src/components/Icon/solid/interface-favorite-stars-sparkles.svg +0 -1
  402. package/src/components/Icon/solid/interface-hierarchy-flowchart.svg +0 -5
  403. package/src/components/Icon/solid/interface-home-house.svg +0 -5
  404. package/src/components/Icon/solid/interface-hyperlink.svg +0 -5
  405. package/src/components/Icon/solid/interface-lighting-brightness.svg +0 -22
  406. package/src/components/Icon/solid/interface-lock-closed.svg +0 -5
  407. package/src/components/Icon/solid/interface-lock-open-unlock.svg +0 -1
  408. package/src/components/Icon/solid/interface-login-key.svg +0 -5
  409. package/src/components/Icon/solid/interface-search.svg +0 -5
  410. package/src/components/Icon/solid/interface-setting-cog.svg +0 -5
  411. package/src/components/Icon/solid/interface-share-megaphone-bullhorn.svg +0 -5
  412. package/src/components/Icon/solid/interface-share-rocket.svg +0 -1
  413. package/src/components/Icon/solid/interface-share-satellite.svg +0 -8
  414. package/src/components/Icon/solid/interface-share-space-ship.svg +0 -1
  415. package/src/components/Icon/solid/interface-share.svg +0 -5
  416. package/src/components/Icon/solid/interface-signal-square.svg +0 -5
  417. package/src/components/Icon/solid/interface-text-formatting-left-open-quote.svg +0 -1
  418. package/src/components/Icon/solid/interface-text-formatting-right-close-quote.svg +0 -1
  419. package/src/components/Icon/solid/interface-time-clock-circle.svg +0 -5
  420. package/src/components/Icon/solid/interface-time-hour-glass.svg +0 -1
  421. package/src/components/Icon/solid/interface-users-multiple.svg +0 -11
  422. package/src/components/Icon/solid/interface-validation-checkbox-square.svg +0 -5
  423. package/src/components/Icon/solid/interface-weather-moon.svg +0 -5
  424. package/src/components/Icon/solid/legal-justice-hammer-gavel.svg +0 -1
  425. package/src/components/Icon/solid/mail-chat-bubble-square.svg +0 -5
  426. package/src/components/Icon/solid/mail-send-email-paper-airplane.svg +0 -5
  427. package/src/components/Icon/solid/mail-send-envelope.svg +0 -1
  428. package/src/components/Icon/solid/mail-sign-hashtag.svg +0 -5
  429. package/src/components/Icon/solid/money-cashier-receipt.svg +0 -1
  430. package/src/components/Icon/solid/money-currency-dollar-pay.svg +0 -5
  431. package/src/components/Icon/solid/money-graph-arrow-increase.svg +0 -5
  432. package/src/components/Icon/solid/money-graph-bar-chart-increase.svg +0 -1
  433. package/src/components/Icon/solid/nature-ecology-leaf.svg +0 -5
  434. package/src/components/Icon/solid/phone-telephone.svg +0 -5
  435. package/src/components/Icon/solid/programming-bug.svg +0 -5
  436. package/src/components/Icon/solid/programming-cloud.svg +0 -4
  437. package/src/components/Icon/solid/programming-computer-database-server.svg +0 -5
  438. package/src/components/Icon/solid/programming-computer-database.svg +0 -5
  439. package/src/components/Icon/solid/programming-module-four-layout.svg +0 -1
  440. package/src/components/Icon/solid/programming-module-three.svg +0 -1
  441. package/src/components/Icon/solid/programming-module.svg +0 -1
  442. package/src/components/Icon/solid/programming-script-code.svg +0 -5
  443. package/src/components/Icon/solid/shopping-cart.svg +0 -1
  444. package/src/components/Icon/solid/shopping-gift-present.svg +0 -16
  445. package/src/components/Icon/solid/shopping-shipping-box-parcel-package.svg +0 -11
  446. package/src/components/Icon/solid/tag-new-circle.svg +0 -7
  447. package/src/components/Icon/solid/travel-map-earth-globe.svg +0 -5
  448. package/src/components/SearchModal.vue +0 -305
  449. package/src/components/Sidebar.vue +0 -289
  450. package/src/components/SidebarElement.vue +0 -133
  451. package/src/components/SidebarGroup.vue +0 -12
  452. package/src/components/SimpleTable/SimpleCell.vue +0 -46
  453. package/src/components/SimpleTable/SimpleHeader.vue +0 -17
  454. package/src/components/SimpleTable/SimpleRow.vue +0 -5
  455. package/src/components/SimpleTable/SimpleTable.vue +0 -13
  456. package/src/components/SimpleTable/index.ts +0 -4
  457. package/src/declarations/typographic-base.d.ts +0 -1
  458. package/src/helpers/generateAxiosCodeFromRequest.ts +0 -42
  459. package/src/helpers/generateLaravelCodeFromRequest.ts +0 -20
  460. package/src/helpers/index.ts +0 -4
  461. package/src/helpers/objectMerge.ts +0 -19
  462. package/src/helpers/specHelpers.ts +0 -62
  463. package/src/helpers/transformToJson.test.ts +0 -7
  464. package/src/helpers/transformToJson.ts +0 -22
  465. package/src/hooks/useRefOnMount.ts +0 -12
  466. package/src/index.ts +0 -9
  467. package/src/standalone.ts +0 -27
  468. package/src/stores/template.ts +0 -66
  469. package/src/stores/utility.ts +0 -23
  470. package/src/types.ts +0 -150
@@ -1,750 +0,0 @@
1
- <script setup lang="ts">
2
- import { useApiClientStore } from '@scalar/api-client'
3
- import '@scalar/default-theme/scrollbar.css'
4
- import '@scalar/default-theme/theme.css'
5
- import { FlowToastContainer } from '@scalar/use-toasts'
6
- import { useMediaQuery, useResizeObserver } from '@vueuse/core'
7
- import {
8
- computed,
9
- defineAsyncComponent,
10
- onMounted,
11
- reactive,
12
- ref,
13
- watch,
14
- } from 'vue'
15
-
16
- import { useTemplateStore } from '../stores/template'
17
- import type { ReferenceProps, Spec } from '../types'
18
- import { default as ApiClientModal } from './ApiClientModal.vue'
19
- import { Content } from './Content'
20
- import SearchModal from './SearchModal.vue'
21
- import Sidebar from './Sidebar.vue'
22
-
23
- const props = withDefaults(defineProps<ReferenceProps>(), {
24
- showSidebar: true,
25
- isEditable: false,
26
- })
27
-
28
- /**
29
- * The editor component has heavy dependencies (process), let's lazy load it.
30
- */
31
- const LazyLoadedSwaggerEditor = defineAsyncComponent(() =>
32
- import('@scalar/swagger-editor').then((module) => module.SwaggerEditor),
33
- )
34
-
35
- const specRef = ref<string>(props.spec ?? '')
36
- watch(
37
- () => props.spec,
38
- () => {
39
- if (props.spec) {
40
- specRef.value = props.spec
41
- }
42
- },
43
- )
44
-
45
- const fetchSpecUrl = () => {
46
- if (props.specUrl === undefined || props.specUrl.length === 0) {
47
- return
48
- }
49
-
50
- fetch(props.specUrl)
51
- .then((response) => {
52
- if (!response.ok) {
53
- throw new Error('The provided OpenAPI/Swagger spec URL is invalid.')
54
- }
55
-
56
- return response.text()
57
- })
58
- .then((data) => {
59
- specRef.value = data
60
- })
61
- .catch((error) => {
62
- console.log(
63
- 'Could not fetch the OpenAPI/Swagger Spec file:',
64
- error.message,
65
- )
66
- })
67
- }
68
-
69
- const isLargeScreen = useMediaQuery('(min-width: 1150px)')
70
- const isMobile = useMediaQuery('(max-width: 1000px)')
71
-
72
- // Track the container height to control the sidebar height
73
- const elementHeight = ref(0)
74
- const documentEl = ref<HTMLElement | null>(null)
75
- useResizeObserver(documentEl, (entries) => {
76
- elementHeight.value = entries[0].contentRect.height
77
- })
78
-
79
- const { toggleCollapsedSidebarItem } = useTemplateStore()
80
- const { state, setActiveSidebar } = useApiClientStore()
81
-
82
- // Handle content updates
83
- const transformedSpec = reactive<Spec>({
84
- info: {
85
- title: '',
86
- description: '',
87
- termsOfService: '',
88
- version: '',
89
- license: {
90
- name: '',
91
- url: '',
92
- },
93
- contact: {
94
- email: '',
95
- },
96
- },
97
- externalDocs: {
98
- description: '',
99
- url: '',
100
- },
101
- servers: [],
102
- tags: [],
103
- })
104
-
105
- // @ts-ignore
106
- const handleSpecUpdate = (newSpec) => {
107
- Object.assign(transformedSpec, newSpec)
108
-
109
- if (!state.activeSidebar) {
110
- toggleCollapsedSidebarItem(transformedSpec.tags[0].name)
111
- setActiveSidebar(transformedSpec.tags[0].operations[0].operationId)
112
- }
113
- }
114
-
115
- onMounted(() => {
116
- document.querySelector('#tippy')?.scrollTo({
117
- top: 0,
118
- left: 0,
119
- })
120
-
121
- fetchSpecUrl()
122
- })
123
-
124
- const showAside = computed(() => isLargeScreen.value || !props.isEditable)
125
-
126
- const showCodeEditor = computed(() => {
127
- return props.isEditable
128
- })
129
-
130
- // Navigational breadcrumb text from reference info
131
- const breadCrumbs = computed(() => {
132
- const operations = transformedSpec.tags
133
- .map((t) => t.operations.flatMap((o) => ({ ...o, tag: t.name })))
134
- .flat()
135
-
136
- const op = operations.find((o) => o.operationId === state.activeSidebar)
137
-
138
- return op ? `${op.tag.toUpperCase()} / ${op.name}` : 'None'
139
- })
140
- </script>
141
- <template>
142
- <FlowToastContainer />
143
- <div
144
- ref="documentEl"
145
- :class="[
146
- 'scalar-api-reference',
147
- 'document',
148
- 'layout-swagger-editor',
149
- { 'footer-below-sidebar': footerBelowSidebar, 'preview': !isEditable },
150
- ]"
151
- :style="{ '--full-height': `${elementHeight}px` }">
152
- <slot name="search-modal">
153
- <SearchModal :spec="transformedSpec" />
154
- </slot>
155
- <!-- Desktop header -->
156
- <div
157
- v-if="!isMobile"
158
- class="layout-header">
159
- <slot name="header"></slot>
160
- </div>
161
- <!-- Sidebar wrapper -->
162
- <aside class="layout-aside-left sidebar">
163
- <!-- Mobile header content -->
164
- <slot
165
- v-if="isMobile"
166
- :label="breadCrumbs"
167
- name="mobile-header" />
168
- <!-- Primary sidebar content -->
169
- <div
170
- v-if="showSidebar"
171
- class="layout-aside-content">
172
- <slot
173
- v-if="isMobile"
174
- name="header" />
175
- <Sidebar :spec="transformedSpec"> </Sidebar>
176
- </div>
177
- </aside>
178
- <!-- Swagger file editing -->
179
- <div
180
- v-show="showCodeEditor"
181
- class="layout-content">
182
- <LazyLoadedSwaggerEditor
183
- :value="specRef"
184
- @specUpdate="handleSpecUpdate" />
185
- </div>
186
- <!-- Rendered reference -->
187
- <div
188
- v-if="showAside"
189
- class="layout-aside-right">
190
- <Content
191
- :ready="true"
192
- :spec="transformedSpec" />
193
- </div>
194
- <slot name="footer"></slot>
195
- <!-- REST API Client Overlay -->
196
- <ApiClientModal :spec="transformedSpec" />
197
- </div>
198
- </template>
199
-
200
- <style lang="postcss">
201
- /** CSS Reset */
202
- .scalar-api-reference {
203
- p {
204
- margin: 0;
205
- }
206
-
207
- i {
208
- font-style: normal;
209
- }
210
-
211
- ul,
212
- ol {
213
- margin: 0;
214
- padding: 0;
215
- }
216
-
217
- /** Add some more things which are normally applied to `html`. */
218
- font-family: var(--theme-font);
219
- line-height: 1.15;
220
- -webkit-text-size-adjust: 100%;
221
- -moz-tab-size: 4;
222
- tab-size: 4;
223
-
224
- /** Make sure box-sizing is set properly. */
225
- box-sizing: border-box;
226
-
227
- *,
228
- *:before,
229
- *:after {
230
- box-sizing: inherit;
231
- }
232
-
233
- /** Smooth text rendering */
234
- * {
235
- text-rendering: optimizeLegibility;
236
- -webkit-font-smoothing: antialiased;
237
- -moz-osx-font-smoothing: grayscale;
238
- }
239
- }
240
-
241
- /* ?? layout stuff */
242
- :root {
243
- --scalar-api-reference-theme-header-height: 0;
244
- --scalar-api-reference-theme-sidebar-width: 300px;
245
- --scalar-api-reference-theme-toc-width: 300px;
246
- --scalar-api-reference-app-header-height: 100px;
247
- --scalar-api-reference-col-width-1: 300px;
248
- --scalar-api-reference-col-width-2: calc(50% - 150px);
249
- --scalar-api-reference-col-width-3: calc(50% - 150px);
250
- --scalar-api-reference-document-height: 100vh;
251
- --scalar-api-reference-full-height: 100%;
252
- }
253
-
254
- /** Utilities, how do we deal with them? */
255
- .flex {
256
- display: flex;
257
- }
258
-
259
- .flex-col {
260
- display: flex;
261
- min-height: 0;
262
- flex-direction: column;
263
- }
264
-
265
- .gap-1 {
266
- gap: 12px;
267
- }
268
-
269
- .sr-only {
270
- position: absolute;
271
- width: 1px;
272
- height: 1px;
273
- padding: 0;
274
- margin: -1px;
275
- overflow: hidden;
276
- clip: rect(0, 0, 0, 0);
277
- border: 0;
278
- }
279
-
280
- /** TODO: Move to components */
281
- .codemenu-topbar {
282
- background: var(--theme-background-2);
283
- border-bottom: 1px solid var(--theme-border-color);
284
- padding: 0 7px 0 12px;
285
- border-radius: var(--theme-radius) var(--theme-radius) 0 0;
286
- }
287
- .codemenu {
288
- display: flex;
289
- position: relative;
290
- justify-content: space-between;
291
- align-items: center;
292
- min-height: 35px;
293
- }
294
- .codemenu-tabs {
295
- display: flex;
296
- position: relative;
297
- column-gap: 6px;
298
- }
299
- .codemenu-item {
300
- position: relative;
301
- display: flex;
302
- align-items: center;
303
- }
304
- .codemenu-item-key {
305
- font-size: var(--theme-micro);
306
- color: var(--theme-color-3);
307
- padding: 6px 4px;
308
- cursor: pointer;
309
- user-select: none;
310
- display: flex;
311
- align-items: center;
312
- justify-content: center;
313
- font-weight: var(--theme-semibold);
314
- position: relative;
315
- margin-left: -4px;
316
- margin-right: -4px;
317
- border-radius: var(--theme-radius-lg);
318
- text-transform: uppercase;
319
- }
320
- .codemenu-item-key:hover {
321
- background: var(--scalar-api-reference-theme-background-3);
322
- }
323
- .codemenu-item:first-of-type:last-of-type .codemenu-item-key,
324
- .codemenu-item__active .codemenu-item-key {
325
- color: var(--theme-color-1);
326
- }
327
- .codemenu-item:first-of-type:last-of-type:after,
328
- .codemenu-item__active:after {
329
- content: '';
330
- width: 100%;
331
- height: 1px;
332
- position: absolute;
333
- bottom: -4px;
334
- background: var(--theme-color-1);
335
- }
336
-
337
- .codemenu-item__disabled {
338
- pointer-events: none;
339
- }
340
- .endpoint {
341
- display: flex;
342
- white-space: nowrap;
343
- cursor: pointer;
344
- }
345
- .endpoint span:first-of-type {
346
- text-transform: uppercase;
347
- }
348
-
349
- .codemenu .endpoint {
350
- overflow: hidden;
351
- }
352
- .endpoint .post {
353
- color: var(--theme-post-color);
354
- }
355
- .endpoint .patch {
356
- color: var(--theme-patch-color);
357
- }
358
- .endpoint .get {
359
- color: var(--theme-get-color);
360
- }
361
- .endpoint .delete {
362
- color: var(--theme-delete-color);
363
- }
364
- .endpoint .put {
365
- color: var(--theme-put-color);
366
- }
367
- .endpoint .post,
368
- .endpoint .get,
369
- .endpoint .delete,
370
- .endpoint .put {
371
- white-space: nowrap;
372
- }
373
- .endpoint span {
374
- color: var(--theme-color-2);
375
- min-width: 62px;
376
- display: inline-block;
377
- text-align: right;
378
- line-height: 1.55;
379
- font-family: var(--theme-font-code);
380
- font-size: var(--theme-mini);
381
- cursor: pointer;
382
- }
383
- .languages .example-item-endpoints {
384
- background: var(--theme-background-2);
385
- width: 100%;
386
- border-top: 1px solid var(--theme-border-color);
387
- }
388
- .endpoint-response p {
389
- margin-top: 6px;
390
- font-size: var(--theme-small);
391
- min-height: auto;
392
- line-height: 17px;
393
- }
394
-
395
- .codemenu .endpoint span {
396
- text-align: left;
397
- min-width: auto;
398
- }
399
- .endpoint-response {
400
- border-top: 1px solid var(--theme-border-color);
401
- padding: 12px 0;
402
- font-size: var(--theme-small);
403
- }
404
-
405
- .tag-description {
406
- margin-top: 12px;
407
- }
408
-
409
- .reference .endpoint-title {
410
- display: flex;
411
- margin-bottom: 12px;
412
- margin-top: 24px;
413
- }
414
- .copy .title {
415
- font-size: var(--theme-heading-4);
416
- font-weight: var(--theme-semibold);
417
- color: var(--theme-color-1);
418
- line-height: 1.45;
419
- }
420
- .endpoint-response__headers {
421
- padding-bottom: 0;
422
- }
423
- .endpoint-response__headers + .endpoint-response {
424
- border-top: none;
425
- }
426
-
427
- /* ----------------------------------------------------- */
428
-
429
- .reference {
430
- position: relative;
431
- padding: 0 60px;
432
- width: 100%;
433
- }
434
-
435
- .reference:not(:last-of-type) {
436
- border-bottom: 1px solid var(--theme-border-color);
437
- }
438
-
439
- .reference .reference-container {
440
- position: relative;
441
- display: flex;
442
- gap: 48px;
443
-
444
- max-width: 1120px;
445
- margin: auto;
446
- padding: 90px 0;
447
- }
448
-
449
- .reference-container + .reference-container {
450
- border-top: 1px solid var(--theme-border-color);
451
- }
452
-
453
- .reference-container .copy,
454
- .reference-container .example {
455
- flex: 1;
456
- min-width: 0;
457
- }
458
-
459
- .response .cm-editor {
460
- max-height: calc(50vh - 90px);
461
- }
462
-
463
- .example {
464
- padding-top: 48px;
465
- top: 12px;
466
- height: fit-content;
467
- position: sticky;
468
- }
469
-
470
- .copy .tag-description a {
471
- color: var(--theme-color-1);
472
- text-decoration: underline;
473
- }
474
-
475
- /* ----------------------------------------------------- */
476
- /* Responsive styles for narrow reference container (900px) */
477
- .references-narrow .reference {
478
- padding: 0 30px;
479
- }
480
- @media screen and (max-width: 1000px) {
481
- .references-narrow .reference {
482
- padding: 0 24px;
483
- }
484
- }
485
- .references-narrow .reference-container {
486
- flex-direction: column;
487
- gap: 24px;
488
- padding: 48px 0;
489
- }
490
-
491
- .references-narrow .example {
492
- padding-top: 0;
493
- }
494
-
495
- .editor-heading h1 {
496
- font-size: var(--font-size, var(--theme-heading-2));
497
- font-weight: var(--font-weight, var(--theme-bold));
498
- /* prettier-ignore */
499
- color: var(--theme-color-1);
500
- line-height: 1.45;
501
- }
502
-
503
- /** Layout */
504
- /* ----------------------------------------------------- */
505
- /* Document Layouts */
506
-
507
- .document {
508
- flex: 1;
509
- overflow-y: auto;
510
- overflow-x: hidden;
511
-
512
- /* Fallback to 100vh if the element height is not specified */
513
- --full-height: var(--scalar-api-reference-full-height, 100vh);
514
- /* --theme-header-height: 50px; */
515
- /* --scalar-api-reference-theme-sidebar-width: 200px; */
516
- /* --theme-toc-width: 200px; */
517
-
518
- --document-height: calc(
519
- var(--scalar-api-reference-full-height) -
520
- var(--scalar-api-reference-theme-header-height)
521
- );
522
-
523
- --col-width-1: var(--scalar-api-reference-theme-sidebar-width);
524
- --col-width-2: auto;
525
- --col-width-3: var(--scalar-api-reference-theme-toc-width);
526
-
527
- display: grid;
528
-
529
- grid-template-rows:
530
- var(--scalar-api-reference-theme-header-height)
531
- auto
532
- auto;
533
-
534
- grid-template-columns:
535
- var(--scalar-api-reference-col-width-1)
536
- var(--scalar-api-reference-col-width-2)
537
- var(--scalar-api-reference-col-width-3);
538
-
539
- grid-template-areas:
540
- 'header header header'
541
- 'sidebar content aside'
542
- 'sidebar footer footer';
543
- }
544
-
545
- .document.hide-aside-left {
546
- --col-width-1: 0;
547
- }
548
-
549
- .document.hide-aside-right {
550
- --col-width-3: 0;
551
- }
552
- .document.hide-aside-left .layout-aside-left .layout-aside-content,
553
- .document.hide-aside-right .layout-aside-right .layout-aside-content {
554
- border-right-color: transparent;
555
- border-left-color: transparent;
556
- display: none;
557
- }
558
-
559
- .document.footer-below-sidebar {
560
- grid-template-areas:
561
- 'header header header'
562
- 'sidebar content aside'
563
- 'footer footer footer';
564
- }
565
-
566
- .layout-header {
567
- grid-area: header;
568
- position: sticky;
569
- top: 0;
570
- z-index: 10;
571
- }
572
-
573
- .layout-content {
574
- grid-area: content;
575
- min-width: 0;
576
- background: var(--theme-background-1);
577
- display: flex;
578
- }
579
-
580
- /* Measures the visible viewport of the editor */
581
- .layout-content-viewport {
582
- position: fixed;
583
- left: var(--scalar-api-reference-theme-sidebar-width);
584
- right: var(--scalar-api-reference-theme-toc-width);
585
- top: calc(
586
- var(--scalar-api-reference-app-header-height) +
587
- var(--scalar-api-reference-theme-header-height)
588
- );
589
- bottom: 0;
590
- pointer-events: none;
591
- }
592
-
593
- .layout-aside-left {
594
- position: relative;
595
- grid-area: sidebar;
596
- border-right: 1px solid var(--theme-border-color);
597
- }
598
-
599
- .layout-aside-right {
600
- position: relative;
601
- grid-area: aside;
602
- background: var(--theme-background-1);
603
- }
604
-
605
- .layout-aside-content {
606
- position: sticky;
607
- top: var(--scalar-api-reference-theme-header-height);
608
- height: var(--scalar-api-reference-document-height);
609
- overflow-y: auto;
610
- display: flex;
611
- flex-direction: column;
612
- }
613
-
614
- .layout-footer {
615
- grid-area: footer;
616
- }
617
-
618
- /* ----------------------------------------------------- */
619
- /* Document layout modified for references */
620
-
621
- .document.layout-swagger-editor {
622
- /* Fallback to 100vh if the element height is not specified */
623
- --full-height: var(--scalar-api-reference-full-height, 100vh);
624
- /* --theme-header-height: 50px; */
625
- /* --scalar-api-reference-theme-sidebar-width: 200px; */
626
- /* --theme-toc-width: 200px; */
627
-
628
- --document-height: calc(
629
- var(--scalar-api-reference-full-height) -
630
- var(--scalar-api-reference-theme-header-height)
631
- );
632
-
633
- --col-width-1: var(--scalar-api-reference-theme-sidebar-width);
634
- --col-width-2: calc(
635
- 50% - (var(--scalar-api-reference-theme-sidebar-width) / 2)
636
- );
637
- --col-width-3: calc(
638
- 50% - (var(--scalar-api-reference-theme-sidebar-width) / 2)
639
- );
640
-
641
- display: grid;
642
-
643
- grid-template-rows:
644
- var(--scalar-api-reference-theme-header-height)
645
- auto;
646
-
647
- grid-template-columns:
648
- var(--scalar-api-reference-col-width-1)
649
- var(--scalar-api-reference-col-width-2)
650
- var(--scalar-api-reference-col-width-3);
651
-
652
- grid-template-areas:
653
- 'header header header'
654
- 'sidebar content aside'
655
- 'sidebar content footer';
656
- }
657
-
658
- .document.layout-swagger-editor .layout-content {
659
- position: sticky;
660
- top: var(--scalar-api-reference-theme-header-height);
661
- height: var(--scalar-api-reference-document-height);
662
- }
663
-
664
- .document.preview {
665
- --col-width-2: calc(100% - (var(--scalar-api-reference-theme-sidebar-width)));
666
- --col-width-3: calc(100% - (var(--scalar-api-reference-theme-sidebar-width)));
667
-
668
- grid-template-areas:
669
- 'header header'
670
- 'sidebar aside'
671
- 'sidebar footer';
672
- }
673
-
674
- .document.layout-swagger-editor.footer-below-sidebar.preview {
675
- grid-template-areas:
676
- 'header header'
677
- 'sidebar aside'
678
- 'footer footer';
679
- }
680
-
681
- .document.layout-swagger-editor.hide-aside-left {
682
- --col-width-1: 0;
683
- --col-width-2: 50%;
684
- --col-width-3: 50%;
685
- }
686
-
687
- /* ----------------------------------------------------- */
688
- /* Responsive styles */
689
-
690
- @media (max-width: 1150px) {
691
- .document.layout-swagger-editor {
692
- --col-width-3: 0;
693
- --col-width-2: auto;
694
- }
695
- }
696
-
697
- @media (max-width: 1000px) {
698
- .document,
699
- .document.layout-swagger-editor {
700
- /** Content area heights are restricted using just the template row defs */
701
- grid-template-rows:
702
- var(--scalar-api-reference-theme-header-height)
703
- auto
704
- auto
705
- auto;
706
-
707
- grid-template-columns: 100%;
708
-
709
- grid-template-areas:
710
- 'sidebar'
711
- 'content'
712
- 'aside'
713
- 'footer';
714
- }
715
-
716
- .layout-aside-left,
717
- .layout-aside-right,
718
- .layout-aside-content {
719
- position: static;
720
- max-height: unset;
721
- }
722
-
723
- .layout-aside-left {
724
- position: sticky;
725
- top: 0;
726
- height: var(--scalar-api-reference-theme-header-height);
727
- border-bottom: 1px solid var(--theme-border-color);
728
-
729
- width: 100%;
730
- z-index: 10;
731
- border-right: none;
732
- }
733
-
734
- .layout-aside-left .layout-aside-content {
735
- position: absolute;
736
-
737
- /* Offset by 1px to avoid gap */
738
- top: calc(100% - 1px);
739
- left: 0;
740
- width: 100%;
741
-
742
- /* Offset by 2px to fill screen and compensate for gap */
743
- height: calc(var(--scalar-api-reference-document-height) + 2px);
744
-
745
- border-top: 1px solid var(--theme-border-color);
746
- display: flex;
747
- flex-direction: column;
748
- }
749
- }
750
- </style>