@scalar/api-reference 1.59.3 → 1.61.0

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 (262) hide show
  1. package/CHANGELOG.md +33 -0
  2. package/dist/blocks/scalar-info-block/components/IntroductionLayout.vue.d.ts +4 -4
  3. package/dist/blocks/scalar-info-block/components/IntroductionLayout.vue.d.ts.map +1 -1
  4. package/dist/blocks/scalar-info-block/components/IntroductionLayout.vue.js +1 -1
  5. package/dist/blocks/scalar-info-block/components/IntroductionLayout.vue.js.map +1 -1
  6. package/dist/blocks/scalar-info-block/components/IntroductionLayout.vue.script.js +14 -17
  7. package/dist/blocks/scalar-info-block/components/IntroductionLayout.vue.script.js.map +1 -1
  8. package/dist/blocks/scalar-info-block/components/IntroductionLoading.vue.d.ts +12 -0
  9. package/dist/blocks/scalar-info-block/components/IntroductionLoading.vue.d.ts.map +1 -0
  10. package/dist/blocks/scalar-info-block/components/IntroductionLoading.vue.js +9 -0
  11. package/dist/blocks/scalar-info-block/components/IntroductionLoading.vue.js.map +1 -0
  12. package/dist/blocks/scalar-info-block/components/IntroductionLoading.vue.script.js +63 -0
  13. package/dist/blocks/scalar-info-block/components/IntroductionLoading.vue.script.js.map +1 -0
  14. package/dist/browser/chunks/AgentScalarChatInterface-BhUn0w1j.js +27 -0
  15. package/dist/browser/chunks/ScalarTextInput.vue-BUzf4Z_k.js +27 -0
  16. package/dist/browser/chunks/basic-shape-diamond.svg-BTEOT1FL.js +1 -1
  17. package/dist/browser/chunks/basic-shape-hexagon.svg-BSPzaCgF.js +1 -1
  18. package/dist/browser/chunks/basic-shape-primary-circle-ellipse-round.svg-DKmZ8UUU.js +1 -1
  19. package/dist/browser/chunks/basic-shape-primary-square-rectangle.svg-n2YRykHD.js +1 -1
  20. package/dist/browser/chunks/basic-shape-shield.svg-Bec9cJDA.js +1 -1
  21. package/dist/browser/chunks/browser-67K6wmG9.js +1 -1
  22. package/dist/browser/chunks/computer-device-desktop-monitor.svg-m6j893Hb.js +1 -1
  23. package/dist/browser/chunks/computer-device-desktop.svg-Dk1VVO7k.js +1 -1
  24. package/dist/browser/chunks/computer-device-laptop.svg-BNGVUCYS.js +1 -1
  25. package/dist/browser/chunks/computer-device-mobile-phone-android-samsung-back.svg-CC4UUTFw.js +1 -1
  26. package/dist/browser/chunks/computer-device-mobile-phone-android-samsung.svg-D8ExpMpL.js +1 -1
  27. package/dist/browser/chunks/computer-device-mobile-phone-iphone-x-back.svg-CLm7sgMM.js +1 -1
  28. package/dist/browser/chunks/computer-device-mobile-phone-iphone-x.svg-Xrttg6_7.js +1 -1
  29. package/dist/browser/chunks/computer-device-mobile-tablet-touch.svg-DQ2oTvOG.js +1 -1
  30. package/dist/browser/chunks/computer-device-mobile-tablet.svg-DCr0XlRc.js +1 -1
  31. package/dist/browser/chunks/computer-device-network-ethernet-cat6.svg-AK9l0iOl.js +1 -1
  32. package/dist/browser/chunks/computer-device-network-lan-www.svg-gUIdFBlE.js +1 -1
  33. package/dist/browser/chunks/computer-device-network-wifi-connection.svg-Be-EMm4e.js +1 -1
  34. package/dist/browser/chunks/computer-device-network-wifi-router.svg-Dc2VzyqK.js +1 -1
  35. package/dist/browser/chunks/ecology-science-erlenmeyer-flask.svg-DHgy7Jfd.js +1 -1
  36. package/dist/browser/chunks/image-flash-lightning.svg-EETR_y1q.js +1 -1
  37. package/dist/browser/chunks/image-picture-flower.svg-DN1AYzJU.js +1 -1
  38. package/dist/browser/chunks/interface-alert-exclamation-diamond.svg-C5NozMV_.js +1 -1
  39. package/dist/browser/chunks/interface-alert-exclamation-triangle-warning.svg-DaAg2fF5.js +1 -1
  40. package/dist/browser/chunks/interface-alert-information-circle.svg-ckkkt9Mv.js +1 -1
  41. package/dist/browser/chunks/interface-award-crown.svg-pjvn9hY-.js +1 -1
  42. package/dist/browser/chunks/interface-bookmark-tag.svg-r2r-lQq4.js +1 -1
  43. package/dist/browser/chunks/interface-bookmark.svg-BK9HKQBT.js +1 -1
  44. package/dist/browser/chunks/interface-calendar-date-one.svg-DNnF0M1I.js +1 -1
  45. package/dist/browser/chunks/interface-content-book-open-pages.svg-CQj_w9Vp.js +1 -1
  46. package/dist/browser/chunks/interface-content-book-page.svg-DppoeJRe.js +1 -1
  47. package/dist/browser/chunks/interface-content-file.svg-CvcD7OiY.js +1 -1
  48. package/dist/browser/chunks/interface-content-folder.svg-BmtS5I9A.js +1 -1
  49. package/dist/browser/chunks/interface-copy-clipboard.svg-Be6EI50X.js +1 -1
  50. package/dist/browser/chunks/interface-edit-attachment.svg-G5TKzpWX.js +1 -1
  51. package/dist/browser/chunks/interface-edit-binocular.svg-jzL-DvGB.js +1 -1
  52. package/dist/browser/chunks/interface-edit-magic-wand.svg-BOTlymvp.js +1 -1
  53. package/dist/browser/chunks/interface-edit-tool-paint-roller.svg-s9dwryx7.js +1 -1
  54. package/dist/browser/chunks/interface-edit-tool-pencil.svg-C7v0dbB3.js +1 -1
  55. package/dist/browser/chunks/interface-favorite-award.svg-CYHUgUG0.js +1 -1
  56. package/dist/browser/chunks/interface-favorite-flag.svg-C10zlKOb.js +1 -1
  57. package/dist/browser/chunks/interface-favorite-heart.svg-eoduXxlz.js +1 -1
  58. package/dist/browser/chunks/interface-favorite-star.svg-BSmxJetr.js +1 -1
  59. package/dist/browser/chunks/interface-favorite-stars-sparkles.svg-JTFLj3Ls.js +1 -1
  60. package/dist/browser/chunks/interface-hierarchy-flowchart.svg-Cg_Wy0kN.js +1 -1
  61. package/dist/browser/chunks/interface-home-house.svg-DytoGRnv.js +1 -1
  62. package/dist/browser/chunks/interface-hyperlink.svg-CuEfmmQI.js +1 -1
  63. package/dist/browser/chunks/interface-lighting-brightness.svg-DSK0h_Pa.js +1 -1
  64. package/dist/browser/chunks/interface-lock-closed.svg-Cn6TaLYv.js +1 -1
  65. package/dist/browser/chunks/interface-lock-open-unlock.svg-CVkG5-9W.js +1 -1
  66. package/dist/browser/chunks/interface-login-key.svg-y-cwwXjN.js +1 -1
  67. package/dist/browser/chunks/interface-search.svg-S-puVFJB.js +1 -1
  68. package/dist/browser/chunks/interface-setting-cog.svg-CTH4_lLg.js +1 -1
  69. package/dist/browser/chunks/interface-share-megaphone-bullhorn.svg-Pbp39MyC.js +1 -1
  70. package/dist/browser/chunks/interface-share-rocket.svg-BgCsIRZO.js +1 -1
  71. package/dist/browser/chunks/interface-share-satellite.svg-DAMN9d5G.js +1 -1
  72. package/dist/browser/chunks/interface-share-space-ship.svg-Dt-Mejxk.js +1 -1
  73. package/dist/browser/chunks/interface-share.svg-vFYTXSti.js +1 -1
  74. package/dist/browser/chunks/interface-signal-square.svg-DNG4LpAe.js +1 -1
  75. package/dist/browser/chunks/interface-time-clock-circle.svg-Bpz-nLxo.js +1 -1
  76. package/dist/browser/chunks/interface-time-hour-glass.svg-D7agfKsH.js +1 -1
  77. package/dist/browser/chunks/interface-users-multiple.svg-CkPJBBnG.js +1 -1
  78. package/dist/browser/chunks/interface-weather-moon.svg-CaTZFMPO.js +1 -1
  79. package/dist/browser/chunks/mail-chat-bubble-square.svg-DC8RIihp.js +1 -1
  80. package/dist/browser/chunks/mail-send-email-paper-airplane.svg-D8OLs9jz.js +1 -1
  81. package/dist/browser/chunks/mail-send-envelope.svg-CV33h5Sx.js +1 -1
  82. package/dist/browser/chunks/{modal-Bh68oUy_.js → modal-CKthJJWy.js} +2 -2
  83. package/dist/browser/chunks/modal-CZI71Aau.js +99 -0
  84. package/dist/browser/chunks/money-cashier-receipt.svg-CJL8C2gs.js +1 -1
  85. package/dist/browser/chunks/money-currency-dollar-pay.svg-VdBplCTx.js +1 -1
  86. package/dist/browser/chunks/money-graph-arrow-increase.svg-DcRov3zk.js +1 -1
  87. package/dist/browser/chunks/money-graph-bar-chart-increase.svg-Cc7KxjX-.js +1 -1
  88. package/dist/browser/chunks/nature-ecology-leaf.svg-DR3cTZxt.js +1 -1
  89. package/dist/browser/chunks/phone-telephone.svg-DyY0gUlk.js +1 -1
  90. package/dist/browser/chunks/programming-bug.svg-BHLT-Qhp.js +1 -1
  91. package/dist/browser/chunks/programming-cloud.svg-B6YW33ba.js +1 -1
  92. package/dist/browser/chunks/programming-computer-database-server.svg-B6o5Sdn-.js +1 -1
  93. package/dist/browser/chunks/programming-computer-database.svg-Cl7OVtpJ.js +1 -1
  94. package/dist/browser/chunks/programming-module-four-layout.svg-BQrerL1x.js +1 -1
  95. package/dist/browser/chunks/programming-module-three.svg-B2KTQzBM.js +1 -1
  96. package/dist/browser/chunks/programming-module.svg-CiID7kPm.js +1 -1
  97. package/dist/browser/chunks/programming-script-code.svg-D1M5rtkN.js +1 -1
  98. package/dist/browser/chunks/runtime-core.esm-bundler-Byrbbu5Q.js +1 -1
  99. package/dist/browser/chunks/shopping-cart.svg-BEegiIR9.js +1 -1
  100. package/dist/browser/chunks/shopping-gift-present.svg-BUHwuLix.js +1 -1
  101. package/dist/browser/chunks/shopping-shipping-box-parcel-package.svg-D6fxWdYx.js +1 -1
  102. package/dist/browser/chunks/tag-new-circle.svg-jsg1bGs0.js +1 -1
  103. package/dist/browser/chunks/travel-map-earth-globe.svg-ClbMiU-f.js +1 -1
  104. package/dist/browser/chunks/vendor-BeJNu9KM.js +306 -0
  105. package/dist/browser/standalone.esm.js +6 -6
  106. package/dist/browser/standalone.js +250 -249
  107. package/dist/components/ApiReference.vue.d.ts.map +1 -1
  108. package/dist/components/ApiReference.vue.js +1 -1
  109. package/dist/components/ApiReference.vue.js.map +1 -1
  110. package/dist/components/ApiReference.vue.script.js +48 -14
  111. package/dist/components/ApiReference.vue.script.js.map +1 -1
  112. package/dist/components/Content/AsyncApi/AsyncApiLabels.vue.d.ts +10 -0
  113. package/dist/components/Content/AsyncApi/AsyncApiLabels.vue.d.ts.map +1 -0
  114. package/dist/components/Content/AsyncApi/AsyncApiLabels.vue.js +9 -0
  115. package/dist/components/Content/AsyncApi/AsyncApiLabels.vue.js.map +1 -0
  116. package/dist/components/Content/AsyncApi/AsyncApiLabels.vue.script.js +43 -0
  117. package/dist/components/Content/AsyncApi/AsyncApiLabels.vue.script.js.map +1 -0
  118. package/dist/components/Content/AsyncApi/AsyncApiTraversedEntry.vue.js.map +1 -1
  119. package/dist/components/Content/AsyncApi/AsyncApiTraversedEntry.vue.script.js +2 -1
  120. package/dist/components/Content/AsyncApi/AsyncApiTraversedEntry.vue.script.js.map +1 -1
  121. package/dist/components/Content/AsyncApi/Channel.vue.d.ts +4 -1
  122. package/dist/components/Content/AsyncApi/Channel.vue.d.ts.map +1 -1
  123. package/dist/components/Content/AsyncApi/Channel.vue.js +1 -1
  124. package/dist/components/Content/AsyncApi/Channel.vue.js.map +1 -1
  125. package/dist/components/Content/AsyncApi/Channel.vue.script.js +98 -44
  126. package/dist/components/Content/AsyncApi/Channel.vue.script.js.map +1 -1
  127. package/dist/components/Content/AsyncApi/Message.vue.d.ts +18 -0
  128. package/dist/components/Content/AsyncApi/Message.vue.d.ts.map +1 -0
  129. package/dist/components/Content/AsyncApi/Message.vue.js +9 -0
  130. package/dist/components/Content/AsyncApi/Message.vue.js.map +1 -0
  131. package/dist/components/Content/AsyncApi/Message.vue.script.js +159 -0
  132. package/dist/components/Content/AsyncApi/Message.vue.script.js.map +1 -0
  133. package/dist/components/Content/AsyncApi/Operation.vue.d.ts +18 -0
  134. package/dist/components/Content/AsyncApi/Operation.vue.d.ts.map +1 -0
  135. package/dist/components/Content/AsyncApi/Operation.vue.js +9 -0
  136. package/dist/components/Content/AsyncApi/Operation.vue.js.map +1 -0
  137. package/dist/components/Content/AsyncApi/Operation.vue.script.js +84 -0
  138. package/dist/components/Content/AsyncApi/Operation.vue.script.js.map +1 -0
  139. package/dist/components/Content/AsyncApi/helpers/async-api-render-options.d.ts +14 -0
  140. package/dist/components/Content/AsyncApi/helpers/async-api-render-options.d.ts.map +1 -0
  141. package/dist/components/Content/AsyncApi/helpers/async-api-render-options.js +14 -0
  142. package/dist/components/Content/AsyncApi/helpers/async-api-render-options.js.map +1 -0
  143. package/dist/components/Content/AsyncApi/helpers/filter-children-by-type.d.ts +9 -0
  144. package/dist/components/Content/AsyncApi/helpers/filter-children-by-type.d.ts.map +1 -0
  145. package/dist/components/Content/AsyncApi/helpers/filter-children-by-type.js +12 -0
  146. package/dist/components/Content/AsyncApi/helpers/filter-children-by-type.js.map +1 -0
  147. package/dist/components/Content/AsyncApi/helpers/get-async-api-labels.d.ts +13 -0
  148. package/dist/components/Content/AsyncApi/helpers/get-async-api-labels.d.ts.map +1 -0
  149. package/dist/components/Content/AsyncApi/helpers/get-async-api-labels.js +23 -0
  150. package/dist/components/Content/AsyncApi/helpers/get-async-api-labels.js.map +1 -0
  151. package/dist/components/Content/AsyncApi/helpers/pick-heading.d.ts +10 -0
  152. package/dist/components/Content/AsyncApi/helpers/pick-heading.d.ts.map +1 -0
  153. package/dist/components/Content/AsyncApi/helpers/pick-heading.js +20 -0
  154. package/dist/components/Content/AsyncApi/helpers/pick-heading.js.map +1 -0
  155. package/dist/components/Content/AsyncApi/helpers/resolve-async-api-nodes.d.ts +21 -0
  156. package/dist/components/Content/AsyncApi/helpers/resolve-async-api-nodes.d.ts.map +1 -0
  157. package/dist/components/Content/AsyncApi/helpers/resolve-async-api-nodes.js +35 -0
  158. package/dist/components/Content/AsyncApi/helpers/resolve-async-api-nodes.js.map +1 -0
  159. package/dist/components/Content/Content.vue.d.ts +4 -2
  160. package/dist/components/Content/Content.vue.d.ts.map +1 -1
  161. package/dist/components/Content/Content.vue.js.map +1 -1
  162. package/dist/components/Content/Content.vue.script.js +18 -1
  163. package/dist/components/Content/Content.vue.script.js.map +1 -1
  164. package/dist/components/Content/Operations/TraversedEntry.vue.d.ts.map +1 -1
  165. package/dist/components/Content/Operations/TraversedEntry.vue.js.map +1 -1
  166. package/dist/components/Content/Operations/TraversedEntry.vue.script.js +0 -1
  167. package/dist/components/Content/Operations/TraversedEntry.vue.script.js.map +1 -1
  168. package/dist/components/Content/Schema/Schema.vue.d.ts.map +1 -1
  169. package/dist/components/Content/Schema/Schema.vue.js +1 -1
  170. package/dist/components/Content/Schema/Schema.vue.js.map +1 -1
  171. package/dist/components/Content/Schema/Schema.vue.script.js +24 -3
  172. package/dist/components/Content/Schema/Schema.vue.script.js.map +1 -1
  173. package/dist/components/Content/Schema/SchemaComposition.vue.d.ts.map +1 -1
  174. package/dist/components/Content/Schema/SchemaComposition.vue.js.map +1 -1
  175. package/dist/components/Content/Schema/SchemaComposition.vue.script.js +16 -1
  176. package/dist/components/Content/Schema/SchemaComposition.vue.script.js.map +1 -1
  177. package/dist/components/Content/Schema/SchemaHeading.vue.script.js +1 -1
  178. package/dist/components/Content/Schema/SchemaProperty.vue.d.ts +0 -6
  179. package/dist/components/Content/Schema/SchemaProperty.vue.d.ts.map +1 -1
  180. package/dist/components/Content/Schema/SchemaProperty.vue.js +1 -1
  181. package/dist/components/Content/Schema/SchemaProperty.vue.js.map +1 -1
  182. package/dist/components/Content/Schema/SchemaProperty.vue.script.js +37 -8
  183. package/dist/components/Content/Schema/SchemaProperty.vue.script.js.map +1 -1
  184. package/dist/components/Content/Schema/helpers/merge-all-of-schemas.d.ts.map +1 -1
  185. package/dist/components/Content/Schema/helpers/merge-all-of-schemas.js +10 -9
  186. package/dist/components/Content/Schema/helpers/merge-all-of-schemas.js.map +1 -1
  187. package/dist/components/Content/Schema/helpers/should-display-description.d.ts.map +1 -1
  188. package/dist/components/Content/Schema/helpers/should-display-description.js +1 -1
  189. package/dist/components/Content/Schema/helpers/should-display-description.js.map +1 -1
  190. package/dist/components/Content/Tags/Tag.vue.d.ts +0 -1
  191. package/dist/components/Content/Tags/Tag.vue.d.ts.map +1 -1
  192. package/dist/components/Content/Tags/Tag.vue.js.map +1 -1
  193. package/dist/components/Content/Tags/Tag.vue.script.js +0 -3
  194. package/dist/components/Content/Tags/Tag.vue.script.js.map +1 -1
  195. package/dist/components/Content/Tags/components/ModernLayout.vue.d.ts +0 -1
  196. package/dist/components/Content/Tags/components/ModernLayout.vue.d.ts.map +1 -1
  197. package/dist/components/Content/Tags/components/ModernLayout.vue.js +1 -1
  198. package/dist/components/Content/Tags/components/ModernLayout.vue.js.map +1 -1
  199. package/dist/components/Content/Tags/components/ModernLayout.vue.script.js +0 -3
  200. package/dist/components/Content/Tags/components/ModernLayout.vue.script.js.map +1 -1
  201. package/dist/components/Content/Tags/components/TagSection.vue.d.ts +0 -1
  202. package/dist/components/Content/Tags/components/TagSection.vue.d.ts.map +1 -1
  203. package/dist/components/Content/Tags/components/TagSection.vue.js.map +1 -1
  204. package/dist/components/Content/Tags/components/TagSection.vue.script.js +5 -6
  205. package/dist/components/Content/Tags/components/TagSection.vue.script.js.map +1 -1
  206. package/dist/components/RenderPlugins/RenderPluginView.vue.d.ts +11 -0
  207. package/dist/components/RenderPlugins/RenderPluginView.vue.d.ts.map +1 -0
  208. package/dist/components/RenderPlugins/RenderPluginView.vue.js +7 -0
  209. package/dist/components/RenderPlugins/RenderPluginView.vue.js.map +1 -0
  210. package/dist/components/RenderPlugins/RenderPluginView.vue.script.js +45 -0
  211. package/dist/components/RenderPlugins/RenderPluginView.vue.script.js.map +1 -0
  212. package/dist/components/RenderPlugins/RenderPlugins.vue.d.ts +5 -1
  213. package/dist/components/RenderPlugins/RenderPlugins.vue.d.ts.map +1 -1
  214. package/dist/components/RenderPlugins/RenderPlugins.vue.js.map +1 -1
  215. package/dist/components/RenderPlugins/RenderPlugins.vue.script.js +17 -22
  216. package/dist/components/RenderPlugins/RenderPlugins.vue.script.js.map +1 -1
  217. package/dist/components/Section/SectionContent.vue.d.ts +1 -6
  218. package/dist/components/Section/SectionContent.vue.d.ts.map +1 -1
  219. package/dist/components/Section/SectionContent.vue.js +7 -2
  220. package/dist/components/Section/SectionContent.vue.js.map +1 -1
  221. package/dist/components/Section/SectionHeader.vue.d.ts +3 -4
  222. package/dist/components/Section/SectionHeader.vue.d.ts.map +1 -1
  223. package/dist/components/Section/SectionHeader.vue.js +1 -1
  224. package/dist/components/Section/SectionHeader.vue.js.map +1 -1
  225. package/dist/components/Section/SectionHeader.vue.script.js +5 -10
  226. package/dist/components/Section/SectionHeader.vue.script.js.map +1 -1
  227. package/dist/helpers/get-async-api-message-payload-schema.d.ts +18 -0
  228. package/dist/helpers/get-async-api-message-payload-schema.d.ts.map +1 -0
  229. package/dist/helpers/get-async-api-message-payload-schema.js +33 -0
  230. package/dist/helpers/get-async-api-message-payload-schema.js.map +1 -0
  231. package/dist/helpers/get-async-api-model-schema.d.ts.map +1 -1
  232. package/dist/helpers/get-async-api-model-schema.js +2 -11
  233. package/dist/helpers/get-async-api-model-schema.js.map +1 -1
  234. package/dist/helpers/lazy-bus.d.ts +10 -0
  235. package/dist/helpers/lazy-bus.d.ts.map +1 -1
  236. package/dist/helpers/lazy-bus.js +22 -1
  237. package/dist/helpers/lazy-bus.js.map +1 -1
  238. package/dist/helpers/map-config-plugins.d.ts +8 -3
  239. package/dist/helpers/map-config-plugins.d.ts.map +1 -1
  240. package/dist/helpers/map-config-plugins.js +22 -4
  241. package/dist/helpers/map-config-plugins.js.map +1 -1
  242. package/dist/plugins/index.d.ts +1 -1
  243. package/dist/plugins/index.d.ts.map +1 -1
  244. package/dist/plugins/plugin-manager.d.ts +27 -2
  245. package/dist/plugins/plugin-manager.d.ts.map +1 -1
  246. package/dist/plugins/plugin-manager.js +32 -2
  247. package/dist/plugins/plugin-manager.js.map +1 -1
  248. package/dist/style.css +850 -570
  249. package/dist/vue-styles.css +550 -452
  250. package/package.json +14 -14
  251. package/dist/browser/chunks/AgentScalarChatInterface-Dv0uBVU9.js +0 -27
  252. package/dist/browser/chunks/ScalarTextInput.vue-ZmlutrTU.js +0 -27
  253. package/dist/browser/chunks/modal-DHI6k89v.js +0 -66
  254. package/dist/browser/chunks/vendor-Cx_C-51y.js +0 -338
  255. package/dist/components/LoadingSkeleton.vue.d.ts +0 -9
  256. package/dist/components/LoadingSkeleton.vue.d.ts.map +0 -1
  257. package/dist/components/LoadingSkeleton.vue.js +0 -9
  258. package/dist/components/LoadingSkeleton.vue.js.map +0 -1
  259. package/dist/components/LoadingSkeleton.vue.script.js +0 -20
  260. package/dist/components/LoadingSkeleton.vue.script.js.map +0 -1
  261. package/dist/components/Section/SectionContent.vue.script.js +0 -23
  262. package/dist/components/Section/SectionContent.vue.script.js.map +0 -1
@@ -4,7 +4,6 @@ type __VLS_Props = {
4
4
  tag: TraversedTag;
5
5
  headerId?: string;
6
6
  isCollapsed?: boolean;
7
- isLoading?: boolean;
8
7
  eventBus: WorkspaceEventBus | null;
9
8
  };
10
9
  declare const __VLS_export: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
@@ -1 +1 @@
1
- {"version":3,"file":"TagSection.vue.d.ts","sourceRoot":"","sources":["../../../../../src/components/Content/Tags/components/TagSection.vue"],"names":[],"mappings":"AAqEA,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,gCAAgC,CAAA;AACvE,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,4CAA4C,CAAA;AAe9E,KAAK,WAAW,GAAG;IACjB,GAAG,EAAE,YAAY,CAAA;IACjB,QAAQ,CAAC,EAAE,MAAM,CAAA;IACjB,WAAW,CAAC,EAAE,OAAO,CAAA;IACrB,SAAS,CAAC,EAAE,OAAO,CAAA;IACnB,QAAQ,EAAE,iBAAiB,GAAG,IAAI,CAAA;CACnC,CAAC;AAmNF,QAAA,MAAM,YAAY,kSAEhB,CAAC;wBACkB,OAAO,YAAY;AAAxC,wBAAyC"}
1
+ {"version":3,"file":"TagSection.vue.d.ts","sourceRoot":"","sources":["../../../../../src/components/Content/Tags/components/TagSection.vue"],"names":[],"mappings":"AAoEA,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,gCAAgC,CAAA;AACvE,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,4CAA4C,CAAA;AAe9E,KAAK,WAAW,GAAG;IACjB,GAAG,EAAE,YAAY,CAAA;IACjB,QAAQ,CAAC,EAAE,MAAM,CAAA;IACjB,WAAW,CAAC,EAAE,OAAO,CAAA;IACrB,QAAQ,EAAE,iBAAiB,GAAG,IAAI,CAAA;CACnC,CAAC;AAgNF,QAAA,MAAM,YAAY,kSAEhB,CAAC;wBACkB,OAAO,YAAY;AAAxC,wBAAyC"}
@@ -1 +1 @@
1
- {"version":3,"file":"TagSection.vue.js","names":[],"sources":["../../../../../src/components/Content/Tags/components/TagSection.vue"],"sourcesContent":["<script setup lang=\"ts\">\nimport { ScalarMarkdown } from '@scalar/components/markdown'\nimport type { WorkspaceEventBus } from '@scalar/workspace-store/events'\nimport type { TraversedTag } from '@scalar/workspace-store/schemas/navigation'\n\nimport { Anchor } from '@/components/Anchor'\nimport { OperationsList } from '@/components/OperationsList'\nimport ScreenReader from '@/components/ScreenReader.vue'\nimport {\n Section,\n SectionColumn,\n SectionColumns,\n SectionContent,\n SectionHeader,\n SectionHeaderTag,\n} from '@/components/Section'\nimport { SpecificationExtension } from '@/features/specification-extension'\n\nconst { tag, headerId, isCollapsed } = defineProps<{\n tag: TraversedTag\n headerId?: string\n isCollapsed?: boolean\n isLoading?: boolean\n eventBus: WorkspaceEventBus | null\n}>()\n</script>\n<template>\n <Section\n v-if=\"tag\"\n :id=\"tag.id\"\n role=\"none\"\n @intersecting=\"\n () => eventBus?.emit('intersecting:nav-item', { id: tag.id })\n \">\n <SectionHeader v-show=\"!isLoading\">\n <Anchor\n @copyAnchorUrl=\"\n () => eventBus?.emit('copy-url:nav-item', { id: tag.id })\n \">\n <SectionHeaderTag\n :id=\"headerId\"\n :level=\"2\">\n {{ tag.title }}\n <ScreenReader v-if=\"isCollapsed\"> (Collapsed)</ScreenReader>\n </SectionHeaderTag>\n </Anchor>\n </SectionHeader>\n <SectionContent :loading=\"isLoading\">\n <SectionColumns>\n <SectionColumn>\n <ScalarMarkdown\n :clamp=\"isCollapsed ? 7 : undefined\"\n :value=\"tag?.description ?? ''\"\n withImages />\n </SectionColumn>\n <SectionColumn>\n <OperationsList\n :eventBus=\"eventBus\"\n :tag=\"tag\" />\n </SectionColumn>\n </SectionColumns>\n </SectionContent>\n <SpecificationExtension :value=\"tag.xKeys\" />\n </Section>\n</template>\n"],"mappings":""}
1
+ {"version":3,"file":"TagSection.vue.js","names":[],"sources":["../../../../../src/components/Content/Tags/components/TagSection.vue"],"sourcesContent":["<script setup lang=\"ts\">\nimport { ScalarMarkdown } from '@scalar/components/markdown'\nimport type { WorkspaceEventBus } from '@scalar/workspace-store/events'\nimport type { TraversedTag } from '@scalar/workspace-store/schemas/navigation'\n\nimport { Anchor } from '@/components/Anchor'\nimport { OperationsList } from '@/components/OperationsList'\nimport ScreenReader from '@/components/ScreenReader.vue'\nimport {\n Section,\n SectionColumn,\n SectionColumns,\n SectionContent,\n SectionHeader,\n SectionHeaderTag,\n} from '@/components/Section'\nimport { SpecificationExtension } from '@/features/specification-extension'\n\nconst { tag, headerId, isCollapsed } = defineProps<{\n tag: TraversedTag\n headerId?: string\n isCollapsed?: boolean\n eventBus: WorkspaceEventBus | null\n}>()\n</script>\n<template>\n <Section\n v-if=\"tag\"\n :id=\"tag.id\"\n role=\"none\"\n @intersecting=\"\n () => eventBus?.emit('intersecting:nav-item', { id: tag.id })\n \">\n <SectionHeader>\n <Anchor\n @copyAnchorUrl=\"\n () => eventBus?.emit('copy-url:nav-item', { id: tag.id })\n \">\n <SectionHeaderTag\n :id=\"headerId\"\n :level=\"2\">\n {{ tag.title }}\n <ScreenReader v-if=\"isCollapsed\"> (Collapsed)</ScreenReader>\n </SectionHeaderTag>\n </Anchor>\n </SectionHeader>\n <SectionContent>\n <SectionColumns>\n <SectionColumn>\n <ScalarMarkdown\n :clamp=\"isCollapsed ? 7 : undefined\"\n :value=\"tag?.description ?? ''\"\n withImages />\n </SectionColumn>\n <SectionColumn>\n <OperationsList\n :eventBus=\"eventBus\"\n :tag=\"tag\" />\n </SectionColumn>\n </SectionColumns>\n </SectionContent>\n <SpecificationExtension :value=\"tag.xKeys\" />\n </Section>\n</template>\n"],"mappings":""}
@@ -8,7 +8,7 @@ import ScreenReader_default from "../../../ScreenReader.vue.js";
8
8
  import Anchor_default from "../../../Anchor/Anchor.vue.js";
9
9
  import SpecificationExtension_default from "../../../../features/specification-extension/SpecificationExtension.vue.js";
10
10
  import OperationsList_default from "../../../OperationsList/OperationsList.vue.js";
11
- import { createBlock, createCommentVNode, createTextVNode, createVNode, defineComponent, openBlock, toDisplayString, unref, vShow, withCtx, withDirectives } from "vue";
11
+ import { createBlock, createCommentVNode, createTextVNode, createVNode, defineComponent, openBlock, toDisplayString, unref, withCtx } from "vue";
12
12
  import { ScalarMarkdown } from "@scalar/components/markdown";
13
13
  //#region src/components/Content/Tags/components/TagSection.vue?vue&type=script&setup=true&lang.ts
14
14
  var TagSection_vue_vue_type_script_setup_true_lang_default = /* @__PURE__ */ defineComponent({
@@ -17,7 +17,6 @@ var TagSection_vue_vue_type_script_setup_true_lang_default = /* @__PURE__ */ def
17
17
  tag: {},
18
18
  headerId: {},
19
19
  isCollapsed: { type: Boolean },
20
- isLoading: { type: Boolean },
21
20
  eventBus: {}
22
21
  },
23
22
  setup(__props) {
@@ -29,7 +28,7 @@ var TagSection_vue_vue_type_script_setup_true_lang_default = /* @__PURE__ */ def
29
28
  onIntersecting: _cache[1] || (_cache[1] = () => __props.eventBus?.emit("intersecting:nav-item", { id: __props.tag.id }))
30
29
  }, {
31
30
  default: withCtx(() => [
32
- withDirectives(createVNode(unref(SectionHeader_default), null, {
31
+ createVNode(unref(SectionHeader_default), null, {
33
32
  default: withCtx(() => [createVNode(unref(Anchor_default), { onCopyAnchorUrl: _cache[0] || (_cache[0] = () => __props.eventBus?.emit("copy-url:nav-item", { id: __props.tag.id })) }, {
34
33
  default: withCtx(() => [createVNode(unref(SectionHeaderTag_default), {
35
34
  id: __props.headerId,
@@ -44,8 +43,8 @@ var TagSection_vue_vue_type_script_setup_true_lang_default = /* @__PURE__ */ def
44
43
  _: 1
45
44
  })]),
46
45
  _: 1
47
- }, 512), [[vShow, !__props.isLoading]]),
48
- createVNode(unref(SectionContent_default), { loading: __props.isLoading }, {
46
+ }),
47
+ createVNode(unref(SectionContent_default), null, {
49
48
  default: withCtx(() => [createVNode(unref(SectionColumns_default), null, {
50
49
  default: withCtx(() => [createVNode(unref(SectionColumn_default), null, {
51
50
  default: withCtx(() => [createVNode(unref(ScalarMarkdown), {
@@ -64,7 +63,7 @@ var TagSection_vue_vue_type_script_setup_true_lang_default = /* @__PURE__ */ def
64
63
  _: 1
65
64
  })]),
66
65
  _: 1
67
- }, 8, ["loading"]),
66
+ }),
68
67
  createVNode(unref(SpecificationExtension_default), { value: __props.tag.xKeys }, null, 8, ["value"])
69
68
  ]),
70
69
  _: 1
@@ -1 +1 @@
1
- {"version":3,"file":"TagSection.vue.script.js","names":[],"sources":["../../../../../src/components/Content/Tags/components/TagSection.vue"],"sourcesContent":["<script setup lang=\"ts\">\nimport { ScalarMarkdown } from '@scalar/components/markdown'\nimport type { WorkspaceEventBus } from '@scalar/workspace-store/events'\nimport type { TraversedTag } from '@scalar/workspace-store/schemas/navigation'\n\nimport { Anchor } from '@/components/Anchor'\nimport { OperationsList } from '@/components/OperationsList'\nimport ScreenReader from '@/components/ScreenReader.vue'\nimport {\n Section,\n SectionColumn,\n SectionColumns,\n SectionContent,\n SectionHeader,\n SectionHeaderTag,\n} from '@/components/Section'\nimport { SpecificationExtension } from '@/features/specification-extension'\n\nconst { tag, headerId, isCollapsed } = defineProps<{\n tag: TraversedTag\n headerId?: string\n isCollapsed?: boolean\n isLoading?: boolean\n eventBus: WorkspaceEventBus | null\n}>()\n</script>\n<template>\n <Section\n v-if=\"tag\"\n :id=\"tag.id\"\n role=\"none\"\n @intersecting=\"\n () => eventBus?.emit('intersecting:nav-item', { id: tag.id })\n \">\n <SectionHeader v-show=\"!isLoading\">\n <Anchor\n @copyAnchorUrl=\"\n () => eventBus?.emit('copy-url:nav-item', { id: tag.id })\n \">\n <SectionHeaderTag\n :id=\"headerId\"\n :level=\"2\">\n {{ tag.title }}\n <ScreenReader v-if=\"isCollapsed\"> (Collapsed)</ScreenReader>\n </SectionHeaderTag>\n </Anchor>\n </SectionHeader>\n <SectionContent :loading=\"isLoading\">\n <SectionColumns>\n <SectionColumn>\n <ScalarMarkdown\n :clamp=\"isCollapsed ? 7 : undefined\"\n :value=\"tag?.description ?? ''\"\n withImages />\n </SectionColumn>\n <SectionColumn>\n <OperationsList\n :eventBus=\"eventBus\"\n :tag=\"tag\" />\n </SectionColumn>\n </SectionColumns>\n </SectionContent>\n <SpecificationExtension :value=\"tag.xKeys\" />\n </Section>\n</template>\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;UA4BU,QAAA,OAAA,WAAA,EADR,YAoCU,MAAA,gBAAA,EAAA;;IAlCP,IAAI,QAAA,IAAI;IACT,MAAK;IACJ,gBAAY,OAAA,OAAA,OAAA,WAAe,QAAA,UAAU,KAAI,yBAAA,EAAA,IAAgC,QAAA,IAAI,IAAE,CAAA;;2BAehE;oBAZhB,YAYgB,MAAA,sBAAA,EAAA,MAAA;6BADL,CAVT,YAUS,MAAA,eAAA,EAAA,EATN,iBAAa,OAAA,OAAA,OAAA,WAAmB,QAAA,UAAU,KAAI,qBAAA,EAAA,IAA4B,QAAA,IAAI,IAAE,CAAA,GAAA,EAAA;8BAQ9D,CALnB,YAKmB,MAAA,yBAAA,EAAA;QAJhB,IAAI,QAAA;QACJ,OAAO;;+BACO,CAAA,gBAAA,gBAAZ,QAAA,IAAI,MAAK,GAAG,KACf,EAAA,EAAoB,QAAA,eAAA,WAAA,EAApB,YAA4D,sBAAA,EAAA,KAAA,GAAA,EAAA;gCAAf,CAAA,GAAA,OAAA,OAAA,OAAA,KAAA,CAAA,gBAAZ,gBAAY,GAAA,CAAA,EAAA,CAAA;;;;;;;;wBAT3B,QAAA,UAAS,CAAA,CAAA;KAajC,YAciB,MAAA,uBAAA,EAAA,EAdA,SAAS,QAAA,WAAS,EAAA;6BAahB,CAZjB,YAYiB,MAAA,uBAAA,EAAA,MAAA;8BANC,CALhB,YAKgB,MAAA,sBAAA,EAAA,MAAA;+BADC,CAHf,YAGe,MAAA,eAAA,EAAA;SAFZ,OAAO,QAAA,cAAW,IAAO,KAAA;SACzB,OAAO,QAAA,KAAK,eAAW;SACxB,YAAA;;;WAEJ,YAIgB,MAAA,sBAAA,EAAA,MAAA;+BADC,CAFf,YAEe,MAAA,uBAAA,EAAA;SADZ,UAAU,QAAA;SACV,KAAK,QAAA;;;;;;;;KAId,YAA6C,MAAA,+BAAA,EAAA,EAApB,OAAO,QAAA,IAAI,OAAA,EAAA,MAAA,GAAA,CAAA,QAAA,CAAA"}
1
+ {"version":3,"file":"TagSection.vue.script.js","names":[],"sources":["../../../../../src/components/Content/Tags/components/TagSection.vue"],"sourcesContent":["<script setup lang=\"ts\">\nimport { ScalarMarkdown } from '@scalar/components/markdown'\nimport type { WorkspaceEventBus } from '@scalar/workspace-store/events'\nimport type { TraversedTag } from '@scalar/workspace-store/schemas/navigation'\n\nimport { Anchor } from '@/components/Anchor'\nimport { OperationsList } from '@/components/OperationsList'\nimport ScreenReader from '@/components/ScreenReader.vue'\nimport {\n Section,\n SectionColumn,\n SectionColumns,\n SectionContent,\n SectionHeader,\n SectionHeaderTag,\n} from '@/components/Section'\nimport { SpecificationExtension } from '@/features/specification-extension'\n\nconst { tag, headerId, isCollapsed } = defineProps<{\n tag: TraversedTag\n headerId?: string\n isCollapsed?: boolean\n eventBus: WorkspaceEventBus | null\n}>()\n</script>\n<template>\n <Section\n v-if=\"tag\"\n :id=\"tag.id\"\n role=\"none\"\n @intersecting=\"\n () => eventBus?.emit('intersecting:nav-item', { id: tag.id })\n \">\n <SectionHeader>\n <Anchor\n @copyAnchorUrl=\"\n () => eventBus?.emit('copy-url:nav-item', { id: tag.id })\n \">\n <SectionHeaderTag\n :id=\"headerId\"\n :level=\"2\">\n {{ tag.title }}\n <ScreenReader v-if=\"isCollapsed\"> (Collapsed)</ScreenReader>\n </SectionHeaderTag>\n </Anchor>\n </SectionHeader>\n <SectionContent>\n <SectionColumns>\n <SectionColumn>\n <ScalarMarkdown\n :clamp=\"isCollapsed ? 7 : undefined\"\n :value=\"tag?.description ?? ''\"\n withImages />\n </SectionColumn>\n <SectionColumn>\n <OperationsList\n :eventBus=\"eventBus\"\n :tag=\"tag\" />\n </SectionColumn>\n </SectionColumns>\n </SectionContent>\n <SpecificationExtension :value=\"tag.xKeys\" />\n </Section>\n</template>\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;UA2BU,QAAA,OAAA,WAAA,EADR,YAoCU,MAAA,gBAAA,EAAA;;IAlCP,IAAI,QAAA,IAAI;IACT,MAAK;IACJ,gBAAY,OAAA,OAAA,OAAA,WAAe,QAAA,UAAU,KAAI,yBAAA,EAAA,IAAgC,QAAA,IAAI,IAAE,CAAA;;2BAehE;KAZhB,YAYgB,MAAA,sBAAA,EAAA,MAAA;6BADL,CAVT,YAUS,MAAA,eAAA,EAAA,EATN,iBAAa,OAAA,OAAA,OAAA,WAAmB,QAAA,UAAU,KAAI,qBAAA,EAAA,IAA4B,QAAA,IAAI,IAAE,CAAA,GAAA,EAAA;8BAQ9D,CALnB,YAKmB,MAAA,yBAAA,EAAA;QAJhB,IAAI,QAAA;QACJ,OAAO;;+BACO,CAAA,gBAAA,gBAAZ,QAAA,IAAI,MAAK,GAAG,KACf,EAAA,EAAoB,QAAA,eAAA,WAAA,EAApB,YAA4D,sBAAA,EAAA,KAAA,GAAA,EAAA;gCAAf,CAAA,GAAA,OAAA,OAAA,OAAA,KAAA,CAAA,gBAAZ,gBAAY,GAAA,CAAA,EAAA,CAAA;;;;;;;;;KAInD,YAciB,MAAA,uBAAA,EAAA,MAAA;6BADE,CAZjB,YAYiB,MAAA,uBAAA,EAAA,MAAA;8BANC,CALhB,YAKgB,MAAA,sBAAA,EAAA,MAAA;+BADC,CAHf,YAGe,MAAA,eAAA,EAAA;SAFZ,OAAO,QAAA,cAAW,IAAO,KAAA;SACzB,OAAO,QAAA,KAAK,eAAW;SACxB,YAAA;;;WAEJ,YAIgB,MAAA,sBAAA,EAAA,MAAA;+BADC,CAFf,YAEe,MAAA,uBAAA,EAAA;SADZ,UAAU,QAAA;SACV,KAAK,QAAA;;;;;;;;KAId,YAA6C,MAAA,+BAAA,EAAA,EAApB,OAAO,QAAA,IAAI,OAAA,EAAA,MAAA,GAAA,CAAA,QAAA,CAAA"}
@@ -0,0 +1,11 @@
1
+ import type { WorkspaceEventBus } from '@scalar/workspace-store/events';
2
+ import type { PluginViewComponent } from '../../plugins/index.js';
3
+ type __VLS_Props = {
4
+ item: PluginViewComponent;
5
+ options: Record<string, any>;
6
+ eventBus?: WorkspaceEventBus;
7
+ };
8
+ declare const __VLS_export: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
9
+ declare const _default: typeof __VLS_export;
10
+ export default _default;
11
+ //# sourceMappingURL=RenderPluginView.vue.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"RenderPluginView.vue.d.ts","sourceRoot":"","sources":["../../../src/components/RenderPlugins/RenderPluginView.vue"],"names":[],"mappings":"AAyDA,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,gCAAgC,CAAA;AAIvE,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,WAAW,CAAA;AAEpD,KAAK,WAAW,GAAG;IACjB,IAAI,EAAE,mBAAmB,CAAA;IACzB,OAAO,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAA;IAC5B,QAAQ,CAAC,EAAE,iBAAiB,CAAA;CAC7B,CAAC;AAgFF,QAAA,MAAM,YAAY,kSAEhB,CAAC;wBACkB,OAAO,YAAY;AAAxC,wBAAyC"}
@@ -0,0 +1,7 @@
1
+ import RenderPluginView_vue_vue_type_script_setup_true_lang_default from "./RenderPluginView.vue.script.js";
2
+ //#region src/components/RenderPlugins/RenderPluginView.vue
3
+ var RenderPluginView_default = RenderPluginView_vue_vue_type_script_setup_true_lang_default;
4
+ //#endregion
5
+ export { RenderPluginView_default as default };
6
+
7
+ //# sourceMappingURL=RenderPluginView.vue.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"RenderPluginView.vue.js","names":[],"sources":["../../../src/components/RenderPlugins/RenderPluginView.vue"],"sourcesContent":["<script setup lang=\"ts\">\nimport { ScalarErrorBoundary } from '@scalar/components/error-boundary'\nimport type { WorkspaceEventBus } from '@scalar/workspace-store/events'\nimport { useTemplateRef } from 'vue'\n\nimport { useIntersection } from '@/hooks/use-intersection'\nimport type { PluginViewComponent } from '@/plugins'\n\nconst { item, options, eventBus } = defineProps<{\n item: PluginViewComponent\n options: Record<string, any>\n eventBus?: WorkspaceEventBus\n}>()\n\nconst el = useTemplateRef<HTMLElement>('el')\n\n/**\n * Participate in the existing scroll-spy. We only emit when the view opts into a sidebar\n * entry, because otherwise we would select a navigation item that does not exist and clear\n * the currently active section as the user scrolls past the plugin view.\n */\nuseIntersection(el, () => {\n if (item.sidebar?.show) {\n eventBus?.emit('intersecting:nav-item', { id: item.id })\n }\n})\n</script>\n\n<template>\n <!-- The id mirrors the sidebar entry id so navigation can scroll to this element -->\n <div\n :id=\"item.id\"\n ref=\"el\">\n <ScalarErrorBoundary>\n <template v-if=\"item.renderer\">\n <!-- Custom renderer (e.g. React) -->\n <component\n :is=\"item.renderer\"\n v-bind=\"{\n component: item.component,\n options,\n ...item.props,\n }\" />\n </template>\n <template v-else>\n <!-- Vue component -->\n <component\n :is=\"item.component\"\n v-bind=\"{ options, ...item.props }\" />\n </template>\n </ScalarErrorBoundary>\n </div>\n</template>\n"],"mappings":""}
@@ -0,0 +1,45 @@
1
+ import { useIntersection } from "../../hooks/use-intersection.js";
2
+ import { createBlock, createElementBlock, createVNode, defineComponent, mergeProps, normalizeProps, openBlock, resolveDynamicComponent, unref, useTemplateRef, withCtx } from "vue";
3
+ import { ScalarErrorBoundary } from "@scalar/components/error-boundary";
4
+ //#region src/components/RenderPlugins/RenderPluginView.vue?vue&type=script&setup=true&lang.ts
5
+ var _hoisted_1 = ["id"];
6
+ var RenderPluginView_vue_vue_type_script_setup_true_lang_default = /* @__PURE__ */ defineComponent({
7
+ __name: "RenderPluginView",
8
+ props: {
9
+ item: {},
10
+ options: {},
11
+ eventBus: {}
12
+ },
13
+ setup(__props) {
14
+ const el = useTemplateRef("el");
15
+ /**
16
+ * Participate in the existing scroll-spy. We only emit when the view opts into a sidebar
17
+ * entry, because otherwise we would select a navigation item that does not exist and clear
18
+ * the currently active section as the user scrolls past the plugin view.
19
+ */
20
+ useIntersection(el, () => {
21
+ if (__props.item.sidebar?.show) __props.eventBus?.emit("intersecting:nav-item", { id: __props.item.id });
22
+ });
23
+ return (_ctx, _cache) => {
24
+ return openBlock(), createElementBlock("div", {
25
+ id: __props.item.id,
26
+ ref_key: "el",
27
+ ref: el
28
+ }, [createVNode(unref(ScalarErrorBoundary), null, {
29
+ default: withCtx(() => [__props.item.renderer ? (openBlock(), createBlock(resolveDynamicComponent(__props.item.renderer), normalizeProps(mergeProps({ key: 0 }, {
30
+ component: __props.item.component,
31
+ options: __props.options,
32
+ ...__props.item.props
33
+ })), null, 16)) : (openBlock(), createBlock(resolveDynamicComponent(__props.item.component), normalizeProps(mergeProps({ key: 1 }, {
34
+ options: __props.options,
35
+ ...__props.item.props
36
+ })), null, 16))]),
37
+ _: 1
38
+ })], 8, _hoisted_1);
39
+ };
40
+ }
41
+ });
42
+ //#endregion
43
+ export { RenderPluginView_vue_vue_type_script_setup_true_lang_default as default };
44
+
45
+ //# sourceMappingURL=RenderPluginView.vue.script.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"RenderPluginView.vue.script.js","names":[],"sources":["../../../src/components/RenderPlugins/RenderPluginView.vue"],"sourcesContent":["<script setup lang=\"ts\">\nimport { ScalarErrorBoundary } from '@scalar/components/error-boundary'\nimport type { WorkspaceEventBus } from '@scalar/workspace-store/events'\nimport { useTemplateRef } from 'vue'\n\nimport { useIntersection } from '@/hooks/use-intersection'\nimport type { PluginViewComponent } from '@/plugins'\n\nconst { item, options, eventBus } = defineProps<{\n item: PluginViewComponent\n options: Record<string, any>\n eventBus?: WorkspaceEventBus\n}>()\n\nconst el = useTemplateRef<HTMLElement>('el')\n\n/**\n * Participate in the existing scroll-spy. We only emit when the view opts into a sidebar\n * entry, because otherwise we would select a navigation item that does not exist and clear\n * the currently active section as the user scrolls past the plugin view.\n */\nuseIntersection(el, () => {\n if (item.sidebar?.show) {\n eventBus?.emit('intersecting:nav-item', { id: item.id })\n }\n})\n</script>\n\n<template>\n <!-- The id mirrors the sidebar entry id so navigation can scroll to this element -->\n <div\n :id=\"item.id\"\n ref=\"el\">\n <ScalarErrorBoundary>\n <template v-if=\"item.renderer\">\n <!-- Custom renderer (e.g. React) -->\n <component\n :is=\"item.renderer\"\n v-bind=\"{\n component: item.component,\n options,\n ...item.props,\n }\" />\n </template>\n <template v-else>\n <!-- Vue component -->\n <component\n :is=\"item.component\"\n v-bind=\"{ options, ...item.props }\" />\n </template>\n </ScalarErrorBoundary>\n </div>\n</template>\n"],"mappings":";;;;;;;;;;;;;EAcA,MAAM,KAAK,eAA4B,KAAI;;;;;;AAO3C,kBAAgB,UAAU;AACxB,OAAI,QAAA,KAAK,SAAS,KAChB,SAAA,UAAU,KAAK,yBAAyB,EAAE,IAAI,QAAA,KAAK,IAAI,CAAA;IAE1D;;uBAKC,mBAqBM,OAAA;IApBH,IAAI,QAAA,KAAK;aACN;IAAJ,KAAI;OACJ,YAiBsB,MAAA,oBAAA,EAAA,MAAA;2BAPT,CATK,QAAA,KAAK,YAAA,WAAA,EAEnB,YAMO,wBALA,QAAA,KAAK,SAAQ,EAAA,eAAA,WAAA,EAAA,KAAA,GAAA,EAAA;gBACe,QAAA,KAAK;cAAuB,QAAA;QAAwB,QAAA,KAAK;oCAQ5F,YAEwC,wBADjC,QAAA,KAAK,UAAS,EAAA,eAAA,WAAA,EAAA,KAAA,GAAA,EAAA;KAAA,SACT,QAAA;KAAO,GAAK,QAAA,KAAK;KAAK,CAAA,CAAA,EAAA,MAAA,GAAA,EAAA,CAAA"}
@@ -1,6 +1,10 @@
1
+ import type { WorkspaceEventBus } from '@scalar/workspace-store/events';
1
2
  type __VLS_Props = {
2
- viewName: 'content.end';
3
+ viewName: 'content.start' | 'content.end';
3
4
  options: Record<string, any>;
5
+ eventBus?: WorkspaceEventBus;
6
+ /** Slug of the active document, used to scope plugin view ids for navigation and deep-linking */
7
+ documentSlug: string;
4
8
  };
5
9
  declare const __VLS_export: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
6
10
  declare const _default: typeof __VLS_export;
@@ -1 +1 @@
1
- {"version":3,"file":"RenderPlugins.vue.d.ts","sourceRoot":"","sources":["../../../src/components/RenderPlugins/RenderPlugins.vue"],"names":[],"mappings":"AAiDA,KAAK,WAAW,GAAG;IACjB,QAAQ,EAAE,aAAa,CAAA;IACvB,OAAO,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAA;CAC7B,CAAC;AAiFF,QAAA,MAAM,YAAY,kSAEhB,CAAC;wBACkB,OAAO,YAAY;AAAxC,wBAAyC"}
1
+ {"version":3,"file":"RenderPlugins.vue.d.ts","sourceRoot":"","sources":["../../../src/components/RenderPlugins/RenderPlugins.vue"],"names":[],"mappings":"AAmCA,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,gCAAgC,CAAA;AAOvE,KAAK,WAAW,GAAG;IACjB,QAAQ,EAAE,eAAe,GAAG,aAAa,CAAA;IACzC,OAAO,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAA;IAC5B,QAAQ,CAAC,EAAE,iBAAiB,CAAA;IAC5B,iGAAiG;IACjG,YAAY,EAAE,MAAM,CAAA;CACrB,CAAC;AAoDF,QAAA,MAAM,YAAY,kSAEhB,CAAC;wBACkB,OAAO,YAAY;AAAxC,wBAAyC"}
@@ -1 +1 @@
1
- {"version":3,"file":"RenderPlugins.vue.js","names":[],"sources":["../../../src/components/RenderPlugins/RenderPlugins.vue"],"sourcesContent":["<script setup lang=\"ts\">\nimport { ScalarErrorBoundary } from '@scalar/components/error-boundary'\n\nimport { usePluginManager } from '@/plugins'\n\nconst { viewName, options } = defineProps<{\n viewName: 'content.end'\n options: Record<string, any>\n}>()\n\nconst { getViewComponents } = usePluginManager()\nconst components = getViewComponents(viewName)\n</script>\n\n<template>\n <template v-if=\"components.length\">\n <div class=\"plugin-view\">\n <template\n v-for=\"(item, _index) in components\"\n :key=\"_index\">\n <ScalarErrorBoundary>\n <template v-if=\"item.renderer\">\n <!-- Custom renderer (e.g. React) -->\n <component\n :is=\"item.renderer\"\n v-bind=\"{\n component: item.component,\n options,\n ...item.props,\n }\" />\n </template>\n <template v-else>\n <!-- Vue component -->\n <component\n :is=\"item.component\"\n v-bind=\"{ options, ...item.props }\" />\n </template>\n </ScalarErrorBoundary>\n </template>\n </div>\n </template>\n</template>\n"],"mappings":""}
1
+ {"version":3,"file":"RenderPlugins.vue.js","names":[],"sources":["../../../src/components/RenderPlugins/RenderPlugins.vue"],"sourcesContent":["<script setup lang=\"ts\">\nimport type { WorkspaceEventBus } from '@scalar/workspace-store/events'\nimport { computed } from 'vue'\n\nimport { usePluginManager } from '@/plugins'\n\nimport RenderPluginView from './RenderPluginView.vue'\n\nconst { viewName, options, eventBus, documentSlug } = defineProps<{\n viewName: 'content.start' | 'content.end'\n options: Record<string, any>\n eventBus?: WorkspaceEventBus\n /** Slug of the active document, used to scope plugin view ids for navigation and deep-linking */\n documentSlug: string\n}>()\n\nconst { getViewComponents } = usePluginManager()\nconst components = computed(() => getViewComponents(viewName, documentSlug))\n</script>\n\n<template>\n <div\n v-if=\"components.length\"\n class=\"plugin-view\">\n <RenderPluginView\n v-for=\"item in components\"\n :key=\"item.id\"\n :eventBus=\"eventBus\"\n :item=\"item\"\n :options=\"options\" />\n </div>\n</template>\n"],"mappings":""}
@@ -1,6 +1,6 @@
1
1
  import { usePluginManager } from "../../plugins/hooks/usePluginManager.js";
2
- import { Fragment, createBlock, createCommentVNode, createElementBlock, defineComponent, mergeProps, openBlock, renderList, resolveDynamicComponent, unref, withCtx } from "vue";
3
- import { ScalarErrorBoundary } from "@scalar/components/error-boundary";
2
+ import RenderPluginView_default from "./RenderPluginView.vue.js";
3
+ import { Fragment, computed, createBlock, createCommentVNode, createElementBlock, defineComponent, openBlock, renderList } from "vue";
4
4
  //#region src/components/RenderPlugins/RenderPlugins.vue?vue&type=script&setup=true&lang.ts
5
5
  var _hoisted_1 = {
6
6
  key: 0,
@@ -10,30 +10,25 @@ var RenderPlugins_vue_vue_type_script_setup_true_lang_default = /* @__PURE__ */
10
10
  __name: "RenderPlugins",
11
11
  props: {
12
12
  viewName: {},
13
- options: {}
13
+ options: {},
14
+ eventBus: {},
15
+ documentSlug: {}
14
16
  },
15
17
  setup(__props) {
16
18
  const { getViewComponents } = usePluginManager();
17
- const components = getViewComponents(__props.viewName);
19
+ const components = computed(() => getViewComponents(__props.viewName, __props.documentSlug));
18
20
  return (_ctx, _cache) => {
19
- return unref(components).length ? (openBlock(), createElementBlock("div", _hoisted_1, [(openBlock(true), createElementBlock(Fragment, null, renderList(unref(components), (item, _index) => {
20
- return openBlock(), createBlock(unref(ScalarErrorBoundary), { key: _index }, {
21
- default: withCtx(() => [item.renderer ? (openBlock(), createBlock(resolveDynamicComponent(item.renderer), mergeProps({
22
- key: 0,
23
- ref_for: true
24
- }, {
25
- component: item.component,
26
- options: __props.options,
27
- ...item.props
28
- }), null, 16)) : (openBlock(), createBlock(resolveDynamicComponent(item.component), mergeProps({
29
- key: 1,
30
- ref_for: true
31
- }, {
32
- options: __props.options,
33
- ...item.props
34
- }), null, 16))]),
35
- _: 2
36
- }, 1024);
21
+ return components.value.length ? (openBlock(), createElementBlock("div", _hoisted_1, [(openBlock(true), createElementBlock(Fragment, null, renderList(components.value, (item) => {
22
+ return openBlock(), createBlock(RenderPluginView_default, {
23
+ key: item.id,
24
+ eventBus: __props.eventBus,
25
+ item,
26
+ options: __props.options
27
+ }, null, 8, [
28
+ "eventBus",
29
+ "item",
30
+ "options"
31
+ ]);
37
32
  }), 128))])) : createCommentVNode("", true);
38
33
  };
39
34
  }
@@ -1 +1 @@
1
- {"version":3,"file":"RenderPlugins.vue.script.js","names":[],"sources":["../../../src/components/RenderPlugins/RenderPlugins.vue"],"sourcesContent":["<script setup lang=\"ts\">\nimport { ScalarErrorBoundary } from '@scalar/components/error-boundary'\n\nimport { usePluginManager } from '@/plugins'\n\nconst { viewName, options } = defineProps<{\n viewName: 'content.end'\n options: Record<string, any>\n}>()\n\nconst { getViewComponents } = usePluginManager()\nconst components = getViewComponents(viewName)\n</script>\n\n<template>\n <template v-if=\"components.length\">\n <div class=\"plugin-view\">\n <template\n v-for=\"(item, _index) in components\"\n :key=\"_index\">\n <ScalarErrorBoundary>\n <template v-if=\"item.renderer\">\n <!-- Custom renderer (e.g. React) -->\n <component\n :is=\"item.renderer\"\n v-bind=\"{\n component: item.component,\n options,\n ...item.props,\n }\" />\n </template>\n <template v-else>\n <!-- Vue component -->\n <component\n :is=\"item.component\"\n v-bind=\"{ options, ...item.props }\" />\n </template>\n </ScalarErrorBoundary>\n </template>\n </div>\n </template>\n</template>\n"],"mappings":";;;;;;;;;;;;;;;EAUA,MAAM,EAAE,sBAAsB,kBAAiB;EAC/C,MAAM,aAAa,kBAAkB,QAAA,SAAQ;;UAI3B,MAAA,WAAU,CAAC,UAAA,WAAA,EACzB,mBAuBM,OAvBN,YAuBM,EAAA,UAAA,KAAA,EAtBJ,mBAqBW,UAAA,MAAA,WApBgB,MAAA,WAAU,GAA3B,MAAM,WAAM;wBAEpB,YAiBsB,MAAA,oBAAA,EAAA,EAAA,KAlBhB,QAAM,EAAA;4BAWC,CATK,KAAK,YAAA,WAAA,EAEnB,YAMO,wBALA,KAAK,SAAQ,EADpB,WAMO;;;;iBAJgC,KAAK;eAA2B,QAAA;SAA4B,KAAK;oCAQxG,YAEwC,wBADjC,KAAK,UAAS,EADrB,WAEwC;;;;eAA5B,QAAA;MAAO,GAAK,KAAK;MAAK,CAAA,EAAA,MAAA,GAAA,EAAA,CAAA"}
1
+ {"version":3,"file":"RenderPlugins.vue.script.js","names":[],"sources":["../../../src/components/RenderPlugins/RenderPlugins.vue"],"sourcesContent":["<script setup lang=\"ts\">\nimport type { WorkspaceEventBus } from '@scalar/workspace-store/events'\nimport { computed } from 'vue'\n\nimport { usePluginManager } from '@/plugins'\n\nimport RenderPluginView from './RenderPluginView.vue'\n\nconst { viewName, options, eventBus, documentSlug } = defineProps<{\n viewName: 'content.start' | 'content.end'\n options: Record<string, any>\n eventBus?: WorkspaceEventBus\n /** Slug of the active document, used to scope plugin view ids for navigation and deep-linking */\n documentSlug: string\n}>()\n\nconst { getViewComponents } = usePluginManager()\nconst components = computed(() => getViewComponents(viewName, documentSlug))\n</script>\n\n<template>\n <div\n v-if=\"components.length\"\n class=\"plugin-view\">\n <RenderPluginView\n v-for=\"item in components\"\n :key=\"item.id\"\n :eventBus=\"eventBus\"\n :item=\"item\"\n :options=\"options\" />\n </div>\n</template>\n"],"mappings":";;;;;;;;;;;;;;;;;EAgBA,MAAM,EAAE,sBAAsB,kBAAiB;EAC/C,MAAM,aAAa,eAAe,kBAAkB,QAAA,UAAU,QAAA,aAAa,CAAA;;UAKjE,WAAA,MAAW,UAAA,WAAA,EADnB,mBASM,OATN,YASM,EAAA,UAAA,KAAA,EANJ,mBAKuB,UAAA,MAAA,WAJN,WAAA,QAAR,SAAI;wBADb,YAKuB,0BAAA;KAHpB,KAAK,KAAK;KACV,UAAU,QAAA;KACJ;KACN,SAAS,QAAA"}
@@ -1,13 +1,8 @@
1
- type __VLS_Props = {
2
- loading?: boolean;
3
- };
4
1
  declare var __VLS_1: {};
5
2
  type __VLS_Slots = {} & {
6
3
  default?: (props: typeof __VLS_1) => any;
7
4
  };
8
- declare const __VLS_base: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {
9
- loading: boolean;
10
- }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
5
+ declare const __VLS_base: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
11
6
  declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
12
7
  declare const _default: typeof __VLS_export;
13
8
  export default _default;
@@ -1 +1 @@
1
- {"version":3,"file":"SectionContent.vue.d.ts","sourceRoot":"","sources":["../../../src/components/Section/SectionContent.vue"],"names":[],"mappings":"AAmCA,KAAK,WAAW,GAAG;IACf,OAAO,CAAC,EAAE,OAAO,CAAA;CAClB,CAAC;AA6CJ,QAAA,IAAI,OAAO,IAAW,CAAE;AACxB,KAAK,WAAW,GAAG,EAAE,GACnB;IAAE,OAAO,CAAC,EAAE,CAAC,KAAK,EAAE,OAAO,OAAO,KAAK,GAAG,CAAA;CAAE,CAAC;AAK/C,QAAA,MAAM,UAAU;aArDF,OAAO;6EAwDnB,CAAC;AACH,QAAA,MAAM,YAAY,EAAS,eAAe,CAAC,OAAO,UAAU,EAAE,WAAW,CAAC,CAAC;wBACtD,OAAO,YAAY;AAAxC,wBAAyC;AAWzC,KAAK,eAAe,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG;IAChC,QAAO;QACN,MAAM,EAAE,CAAC,CAAC;KACV,CAAA;CACD,CAAC"}
1
+ {"version":3,"file":"SectionContent.vue.d.ts","sourceRoot":"","sources":["../../../src/components/Section/SectionContent.vue"],"names":[],"mappings":"AAkCA,QAAA,IAAI,OAAO,IAAW,CAAE;AACxB,KAAK,WAAW,GAAG,EAAE,GACnB;IAAE,OAAO,CAAC,EAAE,CAAC,KAAK,EAAE,OAAO,OAAO,KAAK,GAAG,CAAA;CAAE,CAAC;AAG/C,QAAA,MAAM,UAAU,+QACd,CAAC;AACH,QAAA,MAAM,YAAY,EAAS,eAAe,CAAC,OAAO,UAAU,EAAE,WAAW,CAAC,CAAC;wBACtD,OAAO,YAAY;AAAxC,wBAAyC;AACzC,KAAK,eAAe,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG;IAChC,QAAO;QACN,MAAM,EAAE,CAAC,CAAC;KACV,CAAA;CACD,CAAC"}
@@ -1,8 +1,13 @@
1
1
  import _plugin_vue_export_helper_default from "../../_virtual/_plugin-vue_export-helper.js";
2
- import SectionContent_vue_vue_type_script_setup_true_lang_default from "./SectionContent.vue.script.js";
3
2
  /* empty css */
3
+ import { createElementBlock, openBlock, renderSlot } from "vue";
4
4
  //#region src/components/Section/SectionContent.vue
5
- var SectionContent_default = /* @__PURE__ */ _plugin_vue_export_helper_default(SectionContent_vue_vue_type_script_setup_true_lang_default, [["__scopeId", "data-v-9735459e"]]);
5
+ var _sfc_main = {};
6
+ var _hoisted_1 = { class: "section-content" };
7
+ function _sfc_render(_ctx, _cache) {
8
+ return openBlock(), createElementBlock("div", _hoisted_1, [renderSlot(_ctx.$slots, "default", {}, void 0, true)]);
9
+ }
10
+ var SectionContent_default = /* @__PURE__ */ _plugin_vue_export_helper_default(_sfc_main, [["render", _sfc_render], ["__scopeId", "data-v-6101128d"]]);
6
11
  //#endregion
7
12
  export { SectionContent_default as default };
8
13
 
@@ -1 +1 @@
1
- {"version":3,"file":"SectionContent.vue.js","names":[],"sources":["../../../src/components/Section/SectionContent.vue"],"sourcesContent":["<script setup lang=\"ts\">\nimport LoadingSkeleton from '../LoadingSkeleton.vue'\n\nwithDefaults(\n defineProps<{\n loading?: boolean\n }>(),\n {\n loading: false,\n },\n)\n</script>\n\n<template>\n <div class=\"section-content\">\n <slot v-if=\"!loading\" />\n <template v-else>\n <LoadingSkeleton :lines=\"8\" />\n </template>\n </div>\n</template>\n\n<style scoped>\n@container narrow-references-container (max-width: 900px) {\n .section-content--with-columns {\n flex-direction: column;\n gap: 24px;\n }\n}\n</style>\n"],"mappings":""}
1
+ {"version":3,"file":"SectionContent.vue.js","names":[],"sources":["../../../src/components/Section/SectionContent.vue"],"sourcesContent":["<template>\n <div class=\"section-content\">\n <slot />\n </div>\n</template>\n\n<style scoped>\n@container narrow-references-container (max-width: 900px) {\n .section-content--with-columns {\n flex-direction: column;\n gap: 24px;\n }\n}\n</style>\n"],"mappings":";;;;;mBACO,OAAM,mBAAiB;;qBAA5B,mBAEM,OAFN,YAEM,CADJ,WAAQ,KAAA,QAAA,WAAA,EAAA,EAAA,KAAA,GAAA,KAAA,CAAA,CAAA"}
@@ -1,13 +1,12 @@
1
1
  type __VLS_Props = {
2
- loading?: boolean;
3
2
  tight?: boolean;
4
3
  removeMargin?: boolean;
5
4
  };
6
- declare var __VLS_6: {}, __VLS_8: {};
5
+ declare var __VLS_1: {}, __VLS_3: {};
7
6
  type __VLS_Slots = {} & {
8
- default?: (props: typeof __VLS_6) => any;
7
+ default?: (props: typeof __VLS_1) => any;
9
8
  } & {
10
- links?: (props: typeof __VLS_8) => any;
9
+ links?: (props: typeof __VLS_3) => any;
11
10
  };
12
11
  declare const __VLS_base: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
13
12
  declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
@@ -1 +1 @@
1
- {"version":3,"file":"SectionHeader.vue.d.ts","sourceRoot":"","sources":["../../../src/components/Section/SectionHeader.vue"],"names":[],"mappings":"AAkEA,KAAK,WAAW,GAAG;IACjB,OAAO,CAAC,EAAE,OAAO,CAAA;IACjB,KAAK,CAAC,EAAE,OAAO,CAAA;IACf,YAAY,CAAC,EAAE,OAAO,CAAA;CACvB,CAAC;AA0DF,QAAA,IAAI,OAAO,IAAU,EAAE,OAAO,IAAW,CAAE;AAC3C,KAAK,WAAW,GAAG,EAAE,GACnB;IAAE,OAAO,CAAC,EAAE,CAAC,KAAK,EAAE,OAAO,OAAO,KAAK,GAAG,CAAA;CAAE,GAC5C;IAAE,KAAK,CAAC,EAAE,CAAC,KAAK,EAAE,OAAO,OAAO,KAAK,GAAG,CAAA;CAAE,CAAC;AAK7C,QAAA,MAAM,UAAU,kSAEd,CAAC;AACH,QAAA,MAAM,YAAY,EAAS,eAAe,CAAC,OAAO,UAAU,EAAE,WAAW,CAAC,CAAC;wBACtD,OAAO,YAAY;AAAxC,wBAAyC;AACzC,KAAK,eAAe,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG;IAChC,QAAO;QACN,MAAM,EAAE,CAAC,CAAC;KACV,CAAA;CACD,CAAC"}
1
+ {"version":3,"file":"SectionHeader.vue.d.ts","sourceRoot":"","sources":["../../../src/components/Section/SectionHeader.vue"],"names":[],"mappings":"AAmDA,KAAK,WAAW,GAAG;IACjB,KAAK,CAAC,EAAE,OAAO,CAAA;IACf,YAAY,CAAC,EAAE,OAAO,CAAA;CACvB,CAAC;AA0CF,QAAA,IAAI,OAAO,IAAU,EAAE,OAAO,IAAW,CAAE;AAC3C,KAAK,WAAW,GAAG,EAAE,GACnB;IAAE,OAAO,CAAC,EAAE,CAAC,KAAK,EAAE,OAAO,OAAO,KAAK,GAAG,CAAA;CAAE,GAC5C;IAAE,KAAK,CAAC,EAAE,CAAC,KAAK,EAAE,OAAO,OAAO,KAAK,GAAG,CAAA;CAAE,CAAC;AAK7C,QAAA,MAAM,UAAU,kSAEd,CAAC;AACH,QAAA,MAAM,YAAY,EAAS,eAAe,CAAC,OAAO,UAAU,EAAE,WAAW,CAAC,CAAC;wBACtD,OAAO,YAAY;AAAxC,wBAAyC;AACzC,KAAK,eAAe,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG;IAChC,QAAO;QACN,MAAM,EAAE,CAAC,CAAC;KACV,CAAA;CACD,CAAC"}
@@ -2,7 +2,7 @@ import _plugin_vue_export_helper_default from "../../_virtual/_plugin-vue_export
2
2
  import SectionHeader_vue_vue_type_script_setup_true_lang_default from "./SectionHeader.vue.script.js";
3
3
  /* empty css */
4
4
  //#region src/components/Section/SectionHeader.vue
5
- var SectionHeader_default = /* @__PURE__ */ _plugin_vue_export_helper_default(SectionHeader_vue_vue_type_script_setup_true_lang_default, [["__scopeId", "data-v-8a5913a9"]]);
5
+ var SectionHeader_default = /* @__PURE__ */ _plugin_vue_export_helper_default(SectionHeader_vue_vue_type_script_setup_true_lang_default, [["__scopeId", "data-v-09a18ec6"]]);
6
6
  //#endregion
7
7
  export { SectionHeader_default as default };
8
8
 
@@ -1 +1 @@
1
- {"version":3,"file":"SectionHeader.vue.js","names":[],"sources":["../../../src/components/Section/SectionHeader.vue"],"sourcesContent":["<script setup lang=\"ts\">\nimport LoadingSkeleton from '../LoadingSkeleton.vue'\n\nconst {\n loading,\n tight,\n removeMargin = false,\n} = defineProps<{\n loading?: boolean\n tight?: boolean\n removeMargin?: boolean\n}>()\n</script>\n\n<template>\n <div class=\"section-header-wrapper xl:gap-12\">\n <LoadingSkeleton v-if=\"loading\" />\n <div\n v-else\n class=\"section-header\"\n :class=\"{ tight, 'mb-3': !removeMargin }\">\n <slot />\n </div>\n <slot\n v-if=\"$slots.links\"\n name=\"links\" />\n </div>\n</template>\n\n<style scoped>\n@reference \"@/style.css\";\n\n.section-header-wrapper {\n display: grid;\n grid-template-columns: 1fr;\n}\n\n@variant xl {\n .section-header-wrapper {\n grid-template-columns: repeat(2, 1fr);\n }\n}\n\n.section-header {\n font-size: var(--font-size, var(--scalar-heading-1));\n font-weight: var(--font-weight, var(--scalar-bold));\n /* prettier-ignore */\n color: var(--scalar-color-1);\n word-wrap: break-word;\n line-height: 1.45;\n margin-top: 0;\n}\n\n.section-header.tight {\n margin-bottom: 6px;\n}\n\n.section-header.loading {\n width: 80%;\n}\n</style>\n"],"mappings":""}
1
+ {"version":3,"file":"SectionHeader.vue.js","names":[],"sources":["../../../src/components/Section/SectionHeader.vue"],"sourcesContent":["<script setup lang=\"ts\">\nconst { tight, removeMargin = false } = defineProps<{\n tight?: boolean\n removeMargin?: boolean\n}>()\n</script>\n\n<template>\n <div class=\"section-header-wrapper xl:gap-12\">\n <div\n class=\"section-header\"\n :class=\"{ tight, 'mb-3': !removeMargin }\">\n <slot />\n </div>\n <slot\n v-if=\"$slots.links\"\n name=\"links\" />\n </div>\n</template>\n\n<style scoped>\n@reference \"@/style.css\";\n\n.section-header-wrapper {\n display: grid;\n grid-template-columns: 1fr;\n}\n\n@variant xl {\n .section-header-wrapper {\n grid-template-columns: repeat(2, 1fr);\n }\n}\n\n.section-header {\n font-size: var(--font-size, var(--scalar-heading-1));\n font-weight: var(--font-weight, var(--scalar-bold));\n /* prettier-ignore */\n color: var(--scalar-color-1);\n word-wrap: break-word;\n line-height: 1.45;\n margin-top: 0;\n}\n\n.section-header.tight {\n margin-bottom: 6px;\n}\n</style>\n"],"mappings":""}
@@ -1,11 +1,9 @@
1
- import LoadingSkeleton_default from "../LoadingSkeleton.vue.js";
2
- import { createBlock, createCommentVNode, createElementBlock, defineComponent, normalizeClass, openBlock, renderSlot } from "vue";
1
+ import { createCommentVNode, createElementBlock, createElementVNode, defineComponent, normalizeClass, openBlock, renderSlot } from "vue";
3
2
  //#region src/components/Section/SectionHeader.vue?vue&type=script&setup=true&lang.ts
4
3
  var _hoisted_1 = { class: "section-header-wrapper xl:gap-12" };
5
4
  var SectionHeader_vue_vue_type_script_setup_true_lang_default = /* @__PURE__ */ defineComponent({
6
5
  __name: "SectionHeader",
7
6
  props: {
8
- loading: { type: Boolean },
9
7
  tight: { type: Boolean },
10
8
  removeMargin: {
11
9
  type: Boolean,
@@ -14,13 +12,10 @@ var SectionHeader_vue_vue_type_script_setup_true_lang_default = /* @__PURE__ */
14
12
  },
15
13
  setup(__props) {
16
14
  return (_ctx, _cache) => {
17
- return openBlock(), createElementBlock("div", _hoisted_1, [__props.loading ? (openBlock(), createBlock(LoadingSkeleton_default, { key: 0 })) : (openBlock(), createElementBlock("div", {
18
- key: 1,
19
- class: normalizeClass(["section-header", {
20
- tight: __props.tight,
21
- "mb-3": !__props.removeMargin
22
- }])
23
- }, [renderSlot(_ctx.$slots, "default", {}, void 0, true)], 2)), _ctx.$slots.links ? renderSlot(_ctx.$slots, "links", { key: 2 }, void 0, true) : createCommentVNode("", true)]);
15
+ return openBlock(), createElementBlock("div", _hoisted_1, [createElementVNode("div", { class: normalizeClass(["section-header", {
16
+ tight: __props.tight,
17
+ "mb-3": !__props.removeMargin
18
+ }]) }, [renderSlot(_ctx.$slots, "default", {}, void 0, true)], 2), _ctx.$slots.links ? renderSlot(_ctx.$slots, "links", { key: 0 }, void 0, true) : createCommentVNode("", true)]);
24
19
  };
25
20
  }
26
21
  });
@@ -1 +1 @@
1
- {"version":3,"file":"SectionHeader.vue.script.js","names":["$slots"],"sources":["../../../src/components/Section/SectionHeader.vue"],"sourcesContent":["<script setup lang=\"ts\">\nimport LoadingSkeleton from '../LoadingSkeleton.vue'\n\nconst {\n loading,\n tight,\n removeMargin = false,\n} = defineProps<{\n loading?: boolean\n tight?: boolean\n removeMargin?: boolean\n}>()\n</script>\n\n<template>\n <div class=\"section-header-wrapper xl:gap-12\">\n <LoadingSkeleton v-if=\"loading\" />\n <div\n v-else\n class=\"section-header\"\n :class=\"{ tight, 'mb-3': !removeMargin }\">\n <slot />\n </div>\n <slot\n v-if=\"$slots.links\"\n name=\"links\" />\n </div>\n</template>\n\n<style scoped>\n@reference \"@/style.css\";\n\n.section-header-wrapper {\n display: grid;\n grid-template-columns: 1fr;\n}\n\n@variant xl {\n .section-header-wrapper {\n grid-template-columns: repeat(2, 1fr);\n }\n}\n\n.section-header {\n font-size: var(--font-size, var(--scalar-heading-1));\n font-weight: var(--font-weight, var(--scalar-bold));\n /* prettier-ignore */\n color: var(--scalar-color-1);\n word-wrap: break-word;\n line-height: 1.45;\n margin-top: 0;\n}\n\n.section-header.tight {\n margin-bottom: 6px;\n}\n\n.section-header.loading {\n width: 80%;\n}\n</style>\n"],"mappings":";;;;;;;;;;;;;;;;uBAeE,mBAWM,OAXN,YAWM,CAVmB,QAAA,WAAA,WAAA,EAAvB,YAAkC,yBAAA,EAAA,KAAA,GAAA,CAAA,KAAA,WAAA,EAClC,mBAKM,OAAA;;IAHJ,OAAK,eAAA,CAAC,kBAAgB;KAAA,OACZ,QAAA;KAAK,QAAA,CAAW,QAAA;KAAY,CAAA,CAAA;OACtC,WAAQ,KAAA,QAAA,WAAA,EAAA,EAAA,KAAA,GAAA,KAAA,CAAA,EAAA,EAAA,GAGFA,KAAAA,OAAO,QADf,WAEiB,KAAA,QAAA,SAAA,EAAA,KAAA,GAAA,EAAA,KAAA,GAAA,KAAA,GAAA,mBAAA,IAAA,KAAA,CAAA,CAAA"}
1
+ {"version":3,"file":"SectionHeader.vue.script.js","names":["$slots"],"sources":["../../../src/components/Section/SectionHeader.vue"],"sourcesContent":["<script setup lang=\"ts\">\nconst { tight, removeMargin = false } = defineProps<{\n tight?: boolean\n removeMargin?: boolean\n}>()\n</script>\n\n<template>\n <div class=\"section-header-wrapper xl:gap-12\">\n <div\n class=\"section-header\"\n :class=\"{ tight, 'mb-3': !removeMargin }\">\n <slot />\n </div>\n <slot\n v-if=\"$slots.links\"\n name=\"links\" />\n </div>\n</template>\n\n<style scoped>\n@reference \"@/style.css\";\n\n.section-header-wrapper {\n display: grid;\n grid-template-columns: 1fr;\n}\n\n@variant xl {\n .section-header-wrapper {\n grid-template-columns: repeat(2, 1fr);\n }\n}\n\n.section-header {\n font-size: var(--font-size, var(--scalar-heading-1));\n font-weight: var(--font-weight, var(--scalar-bold));\n /* prettier-ignore */\n color: var(--scalar-color-1);\n word-wrap: break-word;\n line-height: 1.45;\n margin-top: 0;\n}\n\n.section-header.tight {\n margin-bottom: 6px;\n}\n</style>\n"],"mappings":";;;;;;;;;;;;;;uBAQE,mBASM,OATN,YASM,CARJ,mBAIM,OAAA,EAHJ,OAAK,eAAA,CAAC,kBAAgB;IAAA,OACZ,QAAA;IAAK,QAAA,CAAW,QAAA;IAAY,CAAA,CAAA,EAAA,EAAA,CACtC,WAAQ,KAAA,QAAA,WAAA,EAAA,EAAA,KAAA,GAAA,KAAA,CAAA,EAAA,EAAA,EAGFA,KAAAA,OAAO,QADf,WAEiB,KAAA,QAAA,SAAA,EAAA,KAAA,GAAA,EAAA,KAAA,GAAA,KAAA,GAAA,mBAAA,IAAA,KAAA,CAAA,CAAA"}
@@ -0,0 +1,18 @@
1
+ import type { AsyncApiMessageObject } from '@scalar/types/asyncapi/3.1';
2
+ import type { SchemaObject } from '@scalar/workspace-store/schemas/v3.1/strict/openapi-document';
3
+ /**
4
+ * Unwraps an AsyncAPI schema-bearing value into the `SchemaObject` shape the shared OpenAPI
5
+ * `Schema`/`Model` components expect.
6
+ *
7
+ * AsyncAPI reuses JSON Schema, but a value may need extra handling:
8
+ * - The value itself may be a `$ref`; it is resolved to its `$ref-value`.
9
+ * - A Multi Format Schema Object (`schemaFormat` plus a nested `schema`) is unwrapped to its
10
+ * payload, so we render the inner JSON Schema rather than the wrapper.
11
+ * - Boolean (`true`/`false`) and non-JSON-Schema payloads are skipped.
12
+ */
13
+ export declare const unwrapAsyncApiSchema: (value: unknown) => SchemaObject | undefined;
14
+ /** Resolves an AsyncAPI message `payload` into the `SchemaObject` the shared Schema component expects. */
15
+ export declare const getAsyncApiMessagePayloadSchema: (message: AsyncApiMessageObject) => SchemaObject | undefined;
16
+ /** Resolves an AsyncAPI message `headers` into the `SchemaObject` the shared Schema component expects. */
17
+ export declare const getAsyncApiMessageHeadersSchema: (message: AsyncApiMessageObject) => SchemaObject | undefined;
18
+ //# sourceMappingURL=get-async-api-message-payload-schema.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"get-async-api-message-payload-schema.d.ts","sourceRoot":"","sources":["../../src/helpers/get-async-api-message-payload-schema.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,4BAA4B,CAAA;AAEvE,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,8DAA8D,CAAA;AAShG;;;;;;;;;GASG;AACH,eAAO,MAAM,oBAAoB,GAAI,OAAO,OAAO,KAAG,YAAY,GAAG,SAYpE,CAAA;AAED,0GAA0G;AAC1G,eAAO,MAAM,+BAA+B,GAAI,SAAS,qBAAqB,KAAG,YAAY,GAAG,SACzD,CAAA;AAEvC,0GAA0G;AAC1G,eAAO,MAAM,+BAA+B,GAAI,SAAS,qBAAqB,KAAG,YAAY,GAAG,SACzD,CAAA"}
@@ -0,0 +1,33 @@
1
+ import { getResolvedRef } from "@scalar/workspace-store/helpers/get-resolved-ref";
2
+ import { isObject } from "@scalar/helpers/object/is-object";
3
+ //#region src/helpers/get-async-api-message-payload-schema.ts
4
+ /**
5
+ * A resolved schema-bearing value may be a JSON Schema object, a boolean (`true`/`false`)
6
+ * schema, or a Multi Format Schema wrapper, so accept only plain objects and treat them as the
7
+ * `SchemaObject` the shared Schema/Model rendering expects.
8
+ */
9
+ var isSchemaObject = (value) => isObject(value);
10
+ /**
11
+ * Unwraps an AsyncAPI schema-bearing value into the `SchemaObject` shape the shared OpenAPI
12
+ * `Schema`/`Model` components expect.
13
+ *
14
+ * AsyncAPI reuses JSON Schema, but a value may need extra handling:
15
+ * - The value itself may be a `$ref`; it is resolved to its `$ref-value`.
16
+ * - A Multi Format Schema Object (`schemaFormat` plus a nested `schema`) is unwrapped to its
17
+ * payload, so we render the inner JSON Schema rather than the wrapper.
18
+ * - Boolean (`true`/`false`) and non-JSON-Schema payloads are skipped.
19
+ */
20
+ var unwrapAsyncApiSchema = (value) => {
21
+ if (value === void 0) return;
22
+ const resolved = getResolvedRef(value);
23
+ const schema = isObject(resolved) && "schemaFormat" in resolved ? getResolvedRef(resolved.schema) : resolved;
24
+ return isSchemaObject(schema) ? schema : void 0;
25
+ };
26
+ /** Resolves an AsyncAPI message `payload` into the `SchemaObject` the shared Schema component expects. */
27
+ var getAsyncApiMessagePayloadSchema = (message) => unwrapAsyncApiSchema(message.payload);
28
+ /** Resolves an AsyncAPI message `headers` into the `SchemaObject` the shared Schema component expects. */
29
+ var getAsyncApiMessageHeadersSchema = (message) => unwrapAsyncApiSchema(message.headers);
30
+ //#endregion
31
+ export { getAsyncApiMessageHeadersSchema, getAsyncApiMessagePayloadSchema, unwrapAsyncApiSchema };
32
+
33
+ //# sourceMappingURL=get-async-api-message-payload-schema.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"get-async-api-message-payload-schema.js","names":[],"sources":["../../src/helpers/get-async-api-message-payload-schema.ts"],"sourcesContent":["import { isObject } from '@scalar/helpers/object/is-object'\nimport type { AsyncApiMessageObject } from '@scalar/types/asyncapi/3.1'\nimport { getResolvedRef } from '@scalar/workspace-store/helpers/get-resolved-ref'\nimport type { SchemaObject } from '@scalar/workspace-store/schemas/v3.1/strict/openapi-document'\n\n/**\n * A resolved schema-bearing value may be a JSON Schema object, a boolean (`true`/`false`)\n * schema, or a Multi Format Schema wrapper, so accept only plain objects and treat them as the\n * `SchemaObject` the shared Schema/Model rendering expects.\n */\nconst isSchemaObject = (value: unknown): value is SchemaObject => isObject(value)\n\n/**\n * Unwraps an AsyncAPI schema-bearing value into the `SchemaObject` shape the shared OpenAPI\n * `Schema`/`Model` components expect.\n *\n * AsyncAPI reuses JSON Schema, but a value may need extra handling:\n * - The value itself may be a `$ref`; it is resolved to its `$ref-value`.\n * - A Multi Format Schema Object (`schemaFormat` plus a nested `schema`) is unwrapped to its\n * payload, so we render the inner JSON Schema rather than the wrapper.\n * - Boolean (`true`/`false`) and non-JSON-Schema payloads are skipped.\n */\nexport const unwrapAsyncApiSchema = (value: unknown): SchemaObject | undefined => {\n if (value === undefined) {\n return undefined\n }\n\n // Resolve the value the same way OpenAPI model rendering does (plain `$ref-value`).\n const resolved = getResolvedRef(value)\n\n // Multi Format Schema Objects carry the real schema under `schema`; unwrap to that payload.\n const schema = isObject(resolved) && 'schemaFormat' in resolved ? getResolvedRef(resolved.schema) : resolved\n\n return isSchemaObject(schema) ? schema : undefined\n}\n\n/** Resolves an AsyncAPI message `payload` into the `SchemaObject` the shared Schema component expects. */\nexport const getAsyncApiMessagePayloadSchema = (message: AsyncApiMessageObject): SchemaObject | undefined =>\n unwrapAsyncApiSchema(message.payload)\n\n/** Resolves an AsyncAPI message `headers` into the `SchemaObject` the shared Schema component expects. */\nexport const getAsyncApiMessageHeadersSchema = (message: AsyncApiMessageObject): SchemaObject | undefined =>\n unwrapAsyncApiSchema(message.headers)\n"],"mappings":";;;;;;;;AAUA,IAAM,kBAAkB,UAA0C,SAAS,MAAM;;;;;;;;;;;AAYjF,IAAa,wBAAwB,UAA6C;AAChF,KAAI,UAAU,KAAA,EACZ;CAIF,MAAM,WAAW,eAAe,MAAM;CAGtC,MAAM,SAAS,SAAS,SAAS,IAAI,kBAAkB,WAAW,eAAe,SAAS,OAAO,GAAG;AAEpG,QAAO,eAAe,OAAO,GAAG,SAAS,KAAA;;;AAI3C,IAAa,mCAAmC,YAC9C,qBAAqB,QAAQ,QAAQ;;AAGvC,IAAa,mCAAmC,YAC9C,qBAAqB,QAAQ,QAAQ"}
@@ -1 +1 @@
1
- {"version":3,"file":"get-async-api-model-schema.d.ts","sourceRoot":"","sources":["../../src/helpers/get-async-api-model-schema.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,4BAA4B,CAAA;AAElE,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,8DAA8D,CAAA;AAShG;;;;;;;;;;GAUG;AACH,eAAO,MAAM,sBAAsB,GAAI,UAAU,gBAAgB,EAAE,MAAM,MAAM,KAAG,YAAY,GAAG,SAmBhG,CAAA"}
1
+ {"version":3,"file":"get-async-api-model-schema.d.ts","sourceRoot":"","sources":["../../src/helpers/get-async-api-model-schema.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,4BAA4B,CAAA;AAElE,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,8DAA8D,CAAA;AAIhG;;;;;;;;;;GAUG;AACH,eAAO,MAAM,sBAAsB,GAAI,UAAU,gBAAgB,EAAE,MAAM,MAAM,KAAG,YAAY,GAAG,SAWhG,CAAA"}
@@ -1,13 +1,7 @@
1
+ import { unwrapAsyncApiSchema } from "./get-async-api-message-payload-schema.js";
1
2
  import { getResolvedRef, mergeSiblingReferences } from "@scalar/workspace-store/helpers/get-resolved-ref";
2
- import { isObject } from "@scalar/helpers/object/is-object";
3
3
  //#region src/helpers/get-async-api-model-schema.ts
4
4
  /**
5
- * A resolved `components.schemas` entry may be a JSON Schema object, a boolean (`true`/`false`)
6
- * schema, or a Multi Format Schema wrapper, so accept only plain objects and treat them as the
7
- * `SchemaObject` the shared Model rendering and search helpers expect.
8
- */
9
- var isSchemaObject = (value) => isObject(value);
10
- /**
11
5
  * Resolves a named schema from an AsyncAPI document's `components.schemas` into the `SchemaObject`
12
6
  * shape the shared OpenAPI Model components and search indexing expect.
13
7
  *
@@ -21,10 +15,7 @@ var isSchemaObject = (value) => isObject(value);
21
15
  var getAsyncApiModelSchema = (document, name) => {
22
16
  if (!document.components) return;
23
17
  const entry = getResolvedRef(document.components, mergeSiblingReferences).schemas?.[name];
24
- if (entry === void 0) return;
25
- const resolved = getResolvedRef(entry);
26
- const schema = isObject(resolved) && "schemaFormat" in resolved ? getResolvedRef(resolved.schema) : resolved;
27
- return isSchemaObject(schema) ? schema : void 0;
18
+ return unwrapAsyncApiSchema(entry);
28
19
  };
29
20
  //#endregion
30
21
  export { getAsyncApiModelSchema };
@@ -1 +1 @@
1
- {"version":3,"file":"get-async-api-model-schema.js","names":[],"sources":["../../src/helpers/get-async-api-model-schema.ts"],"sourcesContent":["import { isObject } from '@scalar/helpers/object/is-object'\nimport type { AsyncApiDocument } from '@scalar/types/asyncapi/3.1'\nimport { getResolvedRef, mergeSiblingReferences } from '@scalar/workspace-store/helpers/get-resolved-ref'\nimport type { SchemaObject } from '@scalar/workspace-store/schemas/v3.1/strict/openapi-document'\n\n/**\n * A resolved `components.schemas` entry may be a JSON Schema object, a boolean (`true`/`false`)\n * schema, or a Multi Format Schema wrapper, so accept only plain objects and treat them as the\n * `SchemaObject` the shared Model rendering and search helpers expect.\n */\nconst isSchemaObject = (value: unknown): value is SchemaObject => isObject(value)\n\n/**\n * Resolves a named schema from an AsyncAPI document's `components.schemas` into the `SchemaObject`\n * shape the shared OpenAPI Model components and search indexing expect.\n *\n * AsyncAPI keeps reusable schemas in the same place OpenAPI does, but an entry may need extra handling:\n * - `components` or the schema itself may be a `$ref`; siblings are merged so keys declared alongside\n * a `$ref` are kept rather than dropped.\n * - A Multi Format Schema Object (`schemaFormat` plus a nested `schema`) is unwrapped to its payload,\n * so we index and render the inner JSON Schema rather than the wrapper.\n * - Boolean (`true`/`false`) and non-JSON-Schema payloads are skipped.\n */\nexport const getAsyncApiModelSchema = (document: AsyncApiDocument, name: string): SchemaObject | undefined => {\n if (!document.components) {\n return undefined\n }\n\n // Merge siblings at the components level so schemas declared alongside a `$ref` are kept.\n const components = getResolvedRef(document.components, mergeSiblingReferences)\n const entry = components.schemas?.[name]\n if (entry === undefined) {\n return undefined\n }\n\n // Resolve the schema itself the same way OpenAPI model rendering does (plain `$ref-value`).\n const resolved = getResolvedRef(entry)\n\n // Multi Format Schema Objects carry the real schema under `schema`; unwrap to that payload.\n const schema = isObject(resolved) && 'schemaFormat' in resolved ? getResolvedRef(resolved.schema) : resolved\n\n return isSchemaObject(schema) ? schema : undefined\n}\n"],"mappings":";;;;;;;;AAUA,IAAM,kBAAkB,UAA0C,SAAS,MAAM;;;;;;;;;;;;AAajF,IAAa,0BAA0B,UAA4B,SAA2C;AAC5G,KAAI,CAAC,SAAS,WACZ;CAKF,MAAM,QADa,eAAe,SAAS,YAAY,uBAAuB,CACrD,UAAU;AACnC,KAAI,UAAU,KAAA,EACZ;CAIF,MAAM,WAAW,eAAe,MAAM;CAGtC,MAAM,SAAS,SAAS,SAAS,IAAI,kBAAkB,WAAW,eAAe,SAAS,OAAO,GAAG;AAEpG,QAAO,eAAe,OAAO,GAAG,SAAS,KAAA"}
1
+ {"version":3,"file":"get-async-api-model-schema.js","names":[],"sources":["../../src/helpers/get-async-api-model-schema.ts"],"sourcesContent":["import type { AsyncApiDocument } from '@scalar/types/asyncapi/3.1'\nimport { getResolvedRef, mergeSiblingReferences } from '@scalar/workspace-store/helpers/get-resolved-ref'\nimport type { SchemaObject } from '@scalar/workspace-store/schemas/v3.1/strict/openapi-document'\n\nimport { unwrapAsyncApiSchema } from './get-async-api-message-payload-schema'\n\n/**\n * Resolves a named schema from an AsyncAPI document's `components.schemas` into the `SchemaObject`\n * shape the shared OpenAPI Model components and search indexing expect.\n *\n * AsyncAPI keeps reusable schemas in the same place OpenAPI does, but an entry may need extra handling:\n * - `components` or the schema itself may be a `$ref`; siblings are merged so keys declared alongside\n * a `$ref` are kept rather than dropped.\n * - A Multi Format Schema Object (`schemaFormat` plus a nested `schema`) is unwrapped to its payload,\n * so we index and render the inner JSON Schema rather than the wrapper.\n * - Boolean (`true`/`false`) and non-JSON-Schema payloads are skipped.\n */\nexport const getAsyncApiModelSchema = (document: AsyncApiDocument, name: string): SchemaObject | undefined => {\n if (!document.components) {\n return undefined\n }\n\n // Merge siblings at the components level so schemas declared alongside a `$ref` are kept.\n const components = getResolvedRef(document.components, mergeSiblingReferences)\n const entry = components.schemas?.[name]\n\n // Resolve `$ref`s and unwrap Multi Format Schema Objects into the plain JSON Schema shape.\n return unwrapAsyncApiSchema(entry)\n}\n"],"mappings":";;;;;;;;;;;;;;AAiBA,IAAa,0BAA0B,UAA4B,SAA2C;AAC5G,KAAI,CAAC,SAAS,WACZ;CAKF,MAAM,QADa,eAAe,SAAS,YAAY,uBAAuB,CACrD,UAAU;AAGnC,QAAO,qBAAqB,MAAM"}
@@ -1,5 +1,15 @@
1
1
  /** Tracks when the initial load is complete. */
2
2
  export declare const firstLazyLoadComplete: import("vue").Ref<boolean, boolean>;
3
+ /**
4
+ * The id of the element we are currently scrolling to (the anchor target).
5
+ *
6
+ * Schema properties live inside collapsible disclosures that are not part of the
7
+ * navigation tree, so the lazy bus cannot expand them the way it expands sidebar
8
+ * parents. Instead we publish the active target here and let each collapsible
9
+ * schema disclosure open itself when its breadcrumb is on the path to the target.
10
+ * This is what makes deep links to hidden (collapsed) schema properties work.
11
+ */
12
+ export declare const scrollTargetId: import("vue").Ref<string, string>;
3
13
  export declare const getLazyPlaceholderHeight: (id: string) => number | undefined;
4
14
  export declare const setLazyPlaceholderHeight: (id: string, height: number) => void;
5
15
  type UnblockFn = () => void;
@@ -1 +1 @@
1
- {"version":3,"file":"lazy-bus.d.ts","sourceRoot":"","sources":["../../src/helpers/lazy-bus.ts"],"names":[],"mappings":"AAuBA,gDAAgD;AAChD,eAAO,MAAM,qBAAqB,qCAAa,CAAA;AAU/C,eAAO,MAAM,wBAAwB,GAAI,IAAI,MAAM,KAAG,MAAM,GAAG,SAA2C,CAAA;AAE1G,eAAO,MAAM,wBAAwB,GAAI,IAAI,MAAM,EAAE,QAAQ,MAAM,KAAG,IAKrE,CAAA;AASD,KAAK,SAAS,GAAG,MAAM,IAAI,CAAA;AAE3B;;;GAGG;AACH,eAAO,MAAM,iBAAiB,QAAO,SAMpC,CAAA;AAED,2EAA2E;AAC3E,eAAO,MAAM,mBAAmB,oCAAkD,CAAA;AAsFlF;;;;GAIG;AACH,eAAO,MAAM,kBAAkB,GAAI,IAAI,MAAM,GAAG,SAAS,SAIxD,CAAA;AAED;;GAEG;AACH,eAAO,MAAM,iBAAiB,GAAI,IAAI,MAAM,GAAG,SAAS,EAAE,kBAAgB,KAAG,IAY5E,CAAA;AAED;;;;GAIG;AACH,eAAO,MAAM,2BAA2B,QAAO,IAM9C,CAAA;AAYD;;;;GAIG;AACH,wBAAgB,UAAU,CAAC,EAAE,EAAE,MAAM;;EAQpC;AAED;;;GAGG;AACH,eAAO,MAAM,YAAY,GACvB,IAAI,MAAM,EACV,aAAa,CAAC,EAAE,EAAE,MAAM,EAAE,KAAK,EAAE,OAAO,KAAK,IAAI,EACjD,cAAc,CAAC,EAAE,EAAE,MAAM,KAAK;IAAE,EAAE,EAAE,MAAM,CAAC;IAAC,MAAM,CAAC,EAAE;QAAE,EAAE,EAAE,MAAM,CAAA;KAAE,CAAC;IAAC,QAAQ,CAAC,EAAE;QAAE,EAAE,EAAE,MAAM,CAAA;KAAE,EAAE,CAAA;CAAE,GAAG,SAAS,SAwD/G,CAAA"}
1
+ {"version":3,"file":"lazy-bus.d.ts","sourceRoot":"","sources":["../../src/helpers/lazy-bus.ts"],"names":[],"mappings":"AAuBA,gDAAgD;AAChD,eAAO,MAAM,qBAAqB,qCAAa,CAAA;AAE/C;;;;;;;;GAQG;AACH,eAAO,MAAM,cAAc,mCAAkB,CAAA;AAqB7C,eAAO,MAAM,wBAAwB,GAAI,IAAI,MAAM,KAAG,MAAM,GAAG,SAA2C,CAAA;AAE1G,eAAO,MAAM,wBAAwB,GAAI,IAAI,MAAM,EAAE,QAAQ,MAAM,KAAG,IAKrE,CAAA;AASD,KAAK,SAAS,GAAG,MAAM,IAAI,CAAA;AAE3B;;;GAGG;AACH,eAAO,MAAM,iBAAiB,QAAO,SAMpC,CAAA;AAED,2EAA2E;AAC3E,eAAO,MAAM,mBAAmB,oCAAkD,CAAA;AAsFlF;;;;GAIG;AACH,eAAO,MAAM,kBAAkB,GAAI,IAAI,MAAM,GAAG,SAAS,SAIxD,CAAA;AAED;;GAEG;AACH,eAAO,MAAM,iBAAiB,GAAI,IAAI,MAAM,GAAG,SAAS,EAAE,kBAAgB,KAAG,IAY5E,CAAA;AAED;;;;GAIG;AACH,eAAO,MAAM,2BAA2B,QAAO,IAM9C,CAAA;AAYD;;;;GAIG;AACH,wBAAgB,UAAU,CAAC,EAAE,EAAE,MAAM;;EAQpC;AAED;;;GAGG;AACH,eAAO,MAAM,YAAY,GACvB,IAAI,MAAM,EACV,aAAa,CAAC,EAAE,EAAE,MAAM,EAAE,KAAK,EAAE,OAAO,KAAK,IAAI,EACjD,cAAc,CAAC,EAAE,EAAE,MAAM,KAAK;IAAE,EAAE,EAAE,MAAM,CAAC;IAAC,MAAM,CAAC,EAAE;QAAE,EAAE,EAAE,MAAM,CAAA;KAAE,CAAC;IAAC,QAAQ,CAAC,EAAE;QAAE,EAAE,EAAE,MAAM,CAAA;KAAE,EAAE,CAAA;CAAE,GAAG,SAAS,SA6D/G,CAAA"}