@scalar/api-reference 0.1.4 → 0.1.6

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