@scalar/api-reference 1.48.8 → 1.49.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (381) hide show
  1. package/CHANGELOG.md +40 -0
  2. package/dist/AgentScalarChatInterface-MUbtSqMw.js +41 -0
  3. package/dist/AgentScalarChatInterface-MUbtSqMw.js.map +1 -0
  4. package/dist/ExternalDocs-phu7GxpZ.js +272 -0
  5. package/dist/ExternalDocs-phu7GxpZ.js.map +1 -0
  6. package/dist/MobileHeader-B71jYJdT.js +1373 -0
  7. package/dist/MobileHeader-B71jYJdT.js.map +1 -0
  8. package/dist/Operation-CixLVfKd.js +3827 -0
  9. package/dist/Operation-CixLVfKd.js.map +1 -0
  10. package/dist/SearchButton-xzhIpMCZ.js +621 -0
  11. package/dist/SearchButton-xzhIpMCZ.js.map +1 -0
  12. package/dist/ServerSelector-5y29y2BJ.js +852 -0
  13. package/dist/ServerSelector-5y29y2BJ.js.map +1 -0
  14. package/dist/blocks/index.js +3 -10
  15. package/dist/blocks/scalar-client-selector-block/index.d.ts +1 -1
  16. package/dist/blocks/scalar-info-block/index.d.ts +2 -2
  17. package/dist/blocks/scalar-server-selector-block/index.d.ts +1 -1
  18. package/dist/browser/standalone.js +40748 -34662
  19. package/dist/browser/webpack-stats.json +1 -1
  20. package/dist/components/AgentScalar/index.d.ts +3 -3
  21. package/dist/components/Anchor/index.d.ts +2 -2
  22. package/dist/components/ApiReference.vue.d.ts.map +1 -1
  23. package/dist/components/Badge/index.d.ts +1 -1
  24. package/dist/components/Content/Auth/index.d.ts +1 -1
  25. package/dist/components/Content/Content.vue.d.ts +2 -4
  26. package/dist/components/Content/Content.vue.d.ts.map +1 -1
  27. package/dist/components/Content/Models/ModelTag.vue.d.ts +3 -3
  28. package/dist/components/Content/Models/ModelTag.vue.d.ts.map +1 -1
  29. package/dist/components/Content/Models/index.d.ts +2 -2
  30. package/dist/components/Content/Operations/TraversedEntry.vue.d.ts.map +1 -1
  31. package/dist/components/Content/Schema/Schema.vue.d.ts +1 -1
  32. package/dist/components/Content/Schema/SchemaComposition.vue.d.ts +2 -2
  33. package/dist/components/Content/Schema/SchemaObjectProperties.vue.d.ts +1 -1
  34. package/dist/components/Content/Schema/SchemaProperty.vue.d.ts +1 -1
  35. package/dist/components/Content/Schema/SchemaProperty.vue.d.ts.map +1 -1
  36. package/dist/components/Content/Schema/SchemaPropertyExamples.vue.d.ts.map +1 -1
  37. package/dist/components/Content/Schema/SchemaPropertyHeading.vue.d.ts.map +1 -1
  38. package/dist/components/Content/Schema/helpers/get-compositions-to-render.d.ts +1 -1
  39. package/dist/components/Content/Schema/index.d.ts +4 -4
  40. package/dist/components/Content/Tags/components/ModernLayout.vue.d.ts +2 -2
  41. package/dist/components/Content/Tags/components/ModernLayout.vue.d.ts.map +1 -1
  42. package/dist/components/Content/Tags/index.d.ts +1 -1
  43. package/dist/components/Content/index.d.ts +2 -2
  44. package/dist/components/HttpMethod/index.d.ts +1 -1
  45. package/dist/components/Lazy/Lazy.vue.d.ts +3 -0
  46. package/dist/components/Lazy/Lazy.vue.d.ts.map +1 -1
  47. package/dist/components/LinkList/index.d.ts +1 -1
  48. package/dist/components/OperationsList/index.d.ts +1 -1
  49. package/dist/components/RenderPlugins/index.d.ts +1 -1
  50. package/dist/components/Section/index.d.ts +10 -10
  51. package/dist/components/SectionFlare/index.d.ts +1 -1
  52. package/dist/components/index.d.ts +5 -5
  53. package/dist/components/index.js +102 -42
  54. package/dist/components/index.js.map +1 -0
  55. package/dist/features/Operation/components/OperationParameters.vue.d.ts +1 -1
  56. package/dist/features/Operation/components/OperationResponses.vue.d.ts +1 -1
  57. package/dist/features/Operation/components/ParameterList.vue.d.ts +1 -1
  58. package/dist/features/Operation/components/ParameterListItem.vue.d.ts +1 -1
  59. package/dist/features/Operation/components/callbacks/Callback.vue.d.ts +1 -1
  60. package/dist/features/Operation/components/callbacks/Callbacks.vue.d.ts +1 -1
  61. package/dist/features/Operation/index.d.ts +1 -1
  62. package/dist/features/Operation/layouts/ClassicLayout.vue.d.ts +1 -1
  63. package/dist/features/Operation/layouts/ModernLayout.vue.d.ts +1 -1
  64. package/dist/features/Search/components/SearchResult.vue.d.ts +1 -1
  65. package/dist/features/Search/helpers/create-fuse-instance.d.ts +1 -1
  66. package/dist/features/Search/helpers/create-search-index.d.ts +1 -1
  67. package/dist/features/Search/index.d.ts +2 -2
  68. package/dist/features/Search/types.d.ts +1 -1
  69. package/dist/features/ask-agent-button/AskAgentButton.vue.d.ts.map +1 -1
  70. package/dist/features/developer-tools/index.d.ts +1 -1
  71. package/dist/features/example-responses/index.d.ts +1 -1
  72. package/dist/features/external-docs/index.d.ts +1 -1
  73. package/dist/features/index.d.ts +2 -2
  74. package/dist/features/index.js +4 -10
  75. package/dist/features/info-object/index.d.ts +3 -3
  76. package/dist/features/specification-extension/index.d.ts +2 -2
  77. package/dist/features/test-request-button/index.d.ts +1 -1
  78. package/dist/features/x-badges/index.d.ts +1 -1
  79. package/dist/helpers/download.d.ts +1 -1
  80. package/dist/helpers/download.d.ts.map +1 -1
  81. package/dist/helpers/id-routing.d.ts +4 -0
  82. package/dist/helpers/id-routing.d.ts.map +1 -1
  83. package/dist/helpers/index.d.ts +8 -8
  84. package/dist/helpers/index.js +3 -24
  85. package/dist/helpers/lazy-bus.d.ts +19 -19
  86. package/dist/helpers/lazy-bus.d.ts.map +1 -1
  87. package/dist/hooks/index.d.ts +2 -2
  88. package/dist/hooks/index.js +3 -8
  89. package/dist/index.d.ts +5 -5
  90. package/dist/index.js +7 -14
  91. package/dist/lazy-bus-CV8Ox5hD.js +333 -0
  92. package/dist/lazy-bus-CV8Ox5hD.js.map +1 -0
  93. package/dist/normalize-configurations-DcVpOEjD.js +232 -0
  94. package/dist/normalize-configurations-DcVpOEjD.js.map +1 -0
  95. package/dist/plugins/hooks/usePluginManager.d.ts +1 -1
  96. package/dist/plugins/index.d.ts +3 -3
  97. package/dist/plugins/index.js +2 -9
  98. package/dist/plugins-4EyiUD_A.js +80 -0
  99. package/dist/plugins-4EyiUD_A.js.map +1 -0
  100. package/dist/src-DqcYVBWI.js +1686 -0
  101. package/dist/src-DqcYVBWI.js.map +1 -0
  102. package/dist/ssr.d.ts +2 -2
  103. package/dist/ssr.js +7 -14
  104. package/dist/storage--3JuzjCI.js +42 -0
  105. package/dist/storage--3JuzjCI.js.map +1 -0
  106. package/dist/style.css +6840 -7397
  107. package/dist/urls-gPTXGgbj.js +17 -0
  108. package/dist/urls-gPTXGgbj.js.map +1 -0
  109. package/dist/use-agent-Bnm1de0n.js +60 -0
  110. package/dist/use-agent-Bnm1de0n.js.map +1 -0
  111. package/dist/use-intersection-8QqPi2O-.js +24 -0
  112. package/dist/use-intersection-8QqPi2O-.js.map +1 -0
  113. package/package.json +25 -27
  114. package/dist/_virtual/_plugin-vue_export-helper.js +0 -10
  115. package/dist/blocks/scalar-client-selector-block/components/ClientDropdown.vue.js +0 -7
  116. package/dist/blocks/scalar-client-selector-block/components/ClientDropdown.vue2.js +0 -123
  117. package/dist/blocks/scalar-client-selector-block/components/ClientSelector.vue.js +0 -7
  118. package/dist/blocks/scalar-client-selector-block/components/ClientSelector.vue2.js +0 -142
  119. package/dist/blocks/scalar-client-selector-block/helpers/featured-clients.js +0 -24
  120. package/dist/blocks/scalar-info-block/components/DownloadLink.vue.js +0 -7
  121. package/dist/blocks/scalar-info-block/components/DownloadLink.vue2.js +0 -63
  122. package/dist/blocks/scalar-info-block/components/InfoBlock.vue.js +0 -59
  123. package/dist/blocks/scalar-info-block/components/InfoBlock.vue2.js +0 -4
  124. package/dist/blocks/scalar-info-block/components/InfoDescription.vue.js +0 -7
  125. package/dist/blocks/scalar-info-block/components/InfoDescription.vue2.js +0 -70
  126. package/dist/blocks/scalar-info-block/components/InfoLinks.vue.js +0 -38
  127. package/dist/blocks/scalar-info-block/components/InfoLinks.vue2.js +0 -4
  128. package/dist/blocks/scalar-info-block/components/InfoMarkdownSection.vue.js +0 -38
  129. package/dist/blocks/scalar-info-block/components/InfoMarkdownSection.vue2.js +0 -4
  130. package/dist/blocks/scalar-info-block/components/InfoVersion.vue.js +0 -28
  131. package/dist/blocks/scalar-info-block/components/InfoVersion.vue2.js +0 -4
  132. package/dist/blocks/scalar-info-block/components/IntroductionCard.vue.js +0 -7
  133. package/dist/blocks/scalar-info-block/components/IntroductionCard.vue2.js +0 -19
  134. package/dist/blocks/scalar-info-block/components/IntroductionCardItem.vue.js +0 -14
  135. package/dist/blocks/scalar-info-block/components/IntroductionLayout.vue.js +0 -7
  136. package/dist/blocks/scalar-info-block/components/IntroductionLayout.vue2.js +0 -112
  137. package/dist/blocks/scalar-info-block/components/OpenApiVersion.vue.js +0 -21
  138. package/dist/blocks/scalar-info-block/components/OpenApiVersion.vue2.js +0 -4
  139. package/dist/blocks/scalar-server-selector-block/components/Selector.vue.js +0 -76
  140. package/dist/blocks/scalar-server-selector-block/components/Selector.vue2.js +0 -4
  141. package/dist/blocks/scalar-server-selector-block/components/ServerSelector.vue.js +0 -72
  142. package/dist/blocks/scalar-server-selector-block/components/ServerSelector.vue2.js +0 -4
  143. package/dist/components/AgentScalar/AgentScalarButton.vue.js +0 -22
  144. package/dist/components/AgentScalar/AgentScalarButton.vue2.js +0 -4
  145. package/dist/components/AgentScalar/AgentScalarChatInterface.vue.js +0 -4
  146. package/dist/components/AgentScalar/AgentScalarChatInterface.vue2.js +0 -29
  147. package/dist/components/AgentScalar/AgentScalarDrawer.vue.js +0 -7
  148. package/dist/components/AgentScalar/AgentScalarDrawer.vue2.js +0 -78
  149. package/dist/components/AgentScalar/OpenMCPButton.vue.js +0 -7
  150. package/dist/components/AgentScalar/OpenMCPButton.vue2.js +0 -191
  151. package/dist/components/Anchor/Anchor.vue.js +0 -51
  152. package/dist/components/Anchor/Anchor.vue2.js +0 -4
  153. package/dist/components/Anchor/WithBreadcrumb.vue.js +0 -41
  154. package/dist/components/Anchor/WithBreadcrumb.vue2.js +0 -4
  155. package/dist/components/ApiReference.vue.js +0 -10
  156. package/dist/components/ApiReference.vue2.js +0 -744
  157. package/dist/components/Badge/Badge.vue.js +0 -7
  158. package/dist/components/Badge/Badge.vue2.js +0 -26
  159. package/dist/components/ClassicHeader.vue.js +0 -21
  160. package/dist/components/Content/Auth/Auth.vue.js +0 -77
  161. package/dist/components/Content/Auth/Auth.vue2.js +0 -4
  162. package/dist/components/Content/Auth/helpers/get-default-security.js +0 -55
  163. package/dist/components/Content/Content.vue.js +0 -177
  164. package/dist/components/Content/Content.vue3.js +0 -5
  165. package/dist/components/Content/Models/Model.vue.js +0 -47
  166. package/dist/components/Content/Models/Model.vue2.js +0 -4
  167. package/dist/components/Content/Models/ModelTag.vue.js +0 -82
  168. package/dist/components/Content/Models/ModelTag.vue2.js +0 -4
  169. package/dist/components/Content/Models/components/ClassicLayout.vue.js +0 -7
  170. package/dist/components/Content/Models/components/ClassicLayout.vue2.js +0 -78
  171. package/dist/components/Content/Models/components/ModernLayout.vue.js +0 -61
  172. package/dist/components/Content/Models/components/ModernLayout.vue2.js +0 -4
  173. package/dist/components/Content/Operations/TraversedEntry.vue.js +0 -145
  174. package/dist/components/Content/Operations/TraversedEntry.vue2.js +0 -4
  175. package/dist/components/Content/Schema/RenderString.vue.js +0 -27
  176. package/dist/components/Content/Schema/RenderString.vue2.js +0 -4
  177. package/dist/components/Content/Schema/Schema.vue.js +0 -7
  178. package/dist/components/Content/Schema/Schema.vue2.js +0 -193
  179. package/dist/components/Content/Schema/SchemaComposition.vue.js +0 -120
  180. package/dist/components/Content/Schema/SchemaComposition.vue2.js +0 -4
  181. package/dist/components/Content/Schema/SchemaEnumPropertyItem.vue.js +0 -7
  182. package/dist/components/Content/Schema/SchemaEnumPropertyItem.vue2.js +0 -36
  183. package/dist/components/Content/Schema/SchemaEnums.vue.js +0 -7
  184. package/dist/components/Content/Schema/SchemaEnums.vue2.js +0 -112
  185. package/dist/components/Content/Schema/SchemaHeading.vue.js +0 -7
  186. package/dist/components/Content/Schema/SchemaHeading.vue2.js +0 -61
  187. package/dist/components/Content/Schema/SchemaObjectExampleCodeBlock.vue.js +0 -66
  188. package/dist/components/Content/Schema/SchemaObjectExampleCodeBlock.vue2.js +0 -4
  189. package/dist/components/Content/Schema/SchemaObjectProperties.vue.js +0 -120
  190. package/dist/components/Content/Schema/SchemaObjectProperties.vue2.js +0 -4
  191. package/dist/components/Content/Schema/SchemaProperty.vue.js +0 -7
  192. package/dist/components/Content/Schema/SchemaProperty.vue2.js +0 -228
  193. package/dist/components/Content/Schema/SchemaPropertyDefault.vue.js +0 -7
  194. package/dist/components/Content/Schema/SchemaPropertyDefault.vue2.js +0 -45
  195. package/dist/components/Content/Schema/SchemaPropertyDetail.vue.js +0 -7
  196. package/dist/components/Content/Schema/SchemaPropertyDetail.vue2.js +0 -40
  197. package/dist/components/Content/Schema/SchemaPropertyExamples.vue.js +0 -7
  198. package/dist/components/Content/Schema/SchemaPropertyExamples.vue2.js +0 -80
  199. package/dist/components/Content/Schema/SchemaPropertyHeading.vue.js +0 -7
  200. package/dist/components/Content/Schema/SchemaPropertyHeading.vue2.js +0 -318
  201. package/dist/components/Content/Schema/helpers/format-example.js +0 -41
  202. package/dist/components/Content/Schema/helpers/format-value.js +0 -35
  203. package/dist/components/Content/Schema/helpers/get-compositions-to-render.js +0 -31
  204. package/dist/components/Content/Schema/helpers/get-enum-values.js +0 -20
  205. package/dist/components/Content/Schema/helpers/get-property-description.js +0 -34
  206. package/dist/components/Content/Schema/helpers/get-ref-name.js +0 -14
  207. package/dist/components/Content/Schema/helpers/get-schema-type.js +0 -47
  208. package/dist/components/Content/Schema/helpers/has-complex-array-items.js +0 -48
  209. package/dist/components/Content/Schema/helpers/is-empty-schema-object.js +0 -13
  210. package/dist/components/Content/Schema/helpers/is-type-object.js +0 -27
  211. package/dist/components/Content/Schema/helpers/merge-all-of-schemas.js +0 -215
  212. package/dist/components/Content/Schema/helpers/optimize-value-for-display.js +0 -64
  213. package/dist/components/Content/Schema/helpers/schema-composition.js +0 -4
  214. package/dist/components/Content/Schema/helpers/schema-name.js +0 -24
  215. package/dist/components/Content/Schema/helpers/should-display-description.js +0 -12
  216. package/dist/components/Content/Schema/helpers/should-display-heading.js +0 -12
  217. package/dist/components/Content/Schema/helpers/should-render-array-item-composition.js +0 -15
  218. package/dist/components/Content/Schema/helpers/sort-property-names.js +0 -71
  219. package/dist/components/Content/Tags/Tag.vue.js +0 -46
  220. package/dist/components/Content/Tags/Tag.vue2.js +0 -4
  221. package/dist/components/Content/Tags/components/ClassicLayout.vue.js +0 -7
  222. package/dist/components/Content/Tags/components/ClassicLayout.vue2.js +0 -57
  223. package/dist/components/Content/Tags/components/ModernLayout.vue.js +0 -7
  224. package/dist/components/Content/Tags/components/ModernLayout.vue2.js +0 -64
  225. package/dist/components/Content/Tags/components/TagSection.vue.js +0 -100
  226. package/dist/components/Content/Tags/components/TagSection.vue2.js +0 -4
  227. package/dist/components/GettingStarted.vue.js +0 -7
  228. package/dist/components/GettingStarted.vue2.js +0 -82
  229. package/dist/components/HttpMethod/HttpMethod.vue.js +0 -34
  230. package/dist/components/HttpMethod/HttpMethod.vue2.js +0 -4
  231. package/dist/components/IntersectionObserver.vue.js +0 -55
  232. package/dist/components/IntersectionObserver.vue2.js +0 -4
  233. package/dist/components/Lazy/Lazy.vue.js +0 -17
  234. package/dist/components/Lazy/Lazy.vue2.js +0 -4
  235. package/dist/components/LinkList/LinkList.vue.js +0 -7
  236. package/dist/components/LinkList/LinkList.vue2.js +0 -48
  237. package/dist/components/LoadingSkeleton.vue.js +0 -7
  238. package/dist/components/LoadingSkeleton.vue2.js +0 -20
  239. package/dist/components/MobileHeader.vue.js +0 -62
  240. package/dist/components/MobileHeader.vue2.js +0 -4
  241. package/dist/components/OperationPath.vue.js +0 -7
  242. package/dist/components/OperationPath.vue2.js +0 -30
  243. package/dist/components/OperationsList/OperationsList.vue.js +0 -7
  244. package/dist/components/OperationsList/OperationsList.vue2.js +0 -61
  245. package/dist/components/OperationsList/OperationsListItem.vue.js +0 -7
  246. package/dist/components/OperationsList/OperationsListItem.vue2.js +0 -68
  247. package/dist/components/RenderPlugins/RenderPlugins.vue.js +0 -43
  248. package/dist/components/RenderPlugins/RenderPlugins.vue2.js +0 -4
  249. package/dist/components/ScreenReader.vue.js +0 -7
  250. package/dist/components/ScreenReader.vue2.js +0 -21
  251. package/dist/components/Section/CompactSection.vue.js +0 -7
  252. package/dist/components/Section/CompactSection.vue2.js +0 -60
  253. package/dist/components/Section/Section.vue.js +0 -7
  254. package/dist/components/Section/Section.vue2.js +0 -23
  255. package/dist/components/Section/SectionAccordion.vue.js +0 -7
  256. package/dist/components/Section/SectionAccordion.vue2.js +0 -76
  257. package/dist/components/Section/SectionColumn.vue.js +0 -14
  258. package/dist/components/Section/SectionColumns.vue.js +0 -14
  259. package/dist/components/Section/SectionContainer.vue.js +0 -7
  260. package/dist/components/Section/SectionContainer.vue2.js +0 -21
  261. package/dist/components/Section/SectionContainerAccordion.vue.js +0 -7
  262. package/dist/components/Section/SectionContainerAccordion.vue2.js +0 -54
  263. package/dist/components/Section/SectionContent.vue.js +0 -7
  264. package/dist/components/Section/SectionContent.vue2.js +0 -22
  265. package/dist/components/Section/SectionHeader.vue.js +0 -7
  266. package/dist/components/Section/SectionHeader.vue2.js +0 -26
  267. package/dist/components/Section/SectionHeaderTag.vue.js +0 -7
  268. package/dist/components/Section/SectionHeaderTag.vue2.js +0 -20
  269. package/dist/components/SectionFlare/SectionFlare.vue.js +0 -14
  270. package/dist/components/ShowMoreButton.vue.js +0 -7
  271. package/dist/components/ShowMoreButton.vue2.js +0 -23
  272. package/dist/consts/urls.js +0 -16
  273. package/dist/features/Operation/Operation.vue.js +0 -100
  274. package/dist/features/Operation/Operation.vue2.js +0 -4
  275. package/dist/features/Operation/components/ContentTypeSelect.vue.js +0 -88
  276. package/dist/features/Operation/components/ContentTypeSelect.vue2.js +0 -4
  277. package/dist/features/Operation/components/Header.vue.js +0 -33
  278. package/dist/features/Operation/components/Header.vue2.js +0 -4
  279. package/dist/features/Operation/components/Headers.vue.js +0 -7
  280. package/dist/features/Operation/components/Headers.vue2.js +0 -71
  281. package/dist/features/Operation/components/OperationParameters.vue.js +0 -92
  282. package/dist/features/Operation/components/OperationParameters.vue2.js +0 -4
  283. package/dist/features/Operation/components/OperationResponses.vue.js +0 -44
  284. package/dist/features/Operation/components/OperationResponses.vue2.js +0 -4
  285. package/dist/features/Operation/components/ParameterList.vue.js +0 -50
  286. package/dist/features/Operation/components/ParameterList.vue2.js +0 -4
  287. package/dist/features/Operation/components/ParameterListItem.vue.js +0 -7
  288. package/dist/features/Operation/components/ParameterListItem.vue2.js +0 -163
  289. package/dist/features/Operation/components/RequestBody.vue.js +0 -7
  290. package/dist/features/Operation/components/RequestBody.vue2.js +0 -164
  291. package/dist/features/Operation/components/callbacks/Callback.vue.js +0 -7
  292. package/dist/features/Operation/components/callbacks/Callback.vue2.js +0 -60
  293. package/dist/features/Operation/components/callbacks/Callbacks.vue.js +0 -63
  294. package/dist/features/Operation/components/callbacks/Callbacks.vue2.js +0 -4
  295. package/dist/features/Operation/helpers/filter-selected-security.js +0 -28
  296. package/dist/features/Operation/helpers/get-first-server.js +0 -25
  297. package/dist/features/Operation/layouts/ClassicLayout.vue.js +0 -7
  298. package/dist/features/Operation/layouts/ClassicLayout.vue2.js +0 -243
  299. package/dist/features/Operation/layouts/ModernLayout.vue.js +0 -7
  300. package/dist/features/Operation/layouts/ModernLayout.vue2.js +0 -256
  301. package/dist/features/Search/components/SearchButton.vue.js +0 -88
  302. package/dist/features/Search/components/SearchButton.vue2.js +0 -4
  303. package/dist/features/Search/components/SearchModal.vue.js +0 -7
  304. package/dist/features/Search/components/SearchModal.vue2.js +0 -120
  305. package/dist/features/Search/components/SearchResult.vue.js +0 -84
  306. package/dist/features/Search/components/SearchResult.vue2.js +0 -4
  307. package/dist/features/Search/helpers/create-fuse-instance.js +0 -43
  308. package/dist/features/Search/helpers/create-search-index.js +0 -119
  309. package/dist/features/Search/hooks/useSearchIndex.js +0 -33
  310. package/dist/features/ask-agent-button/AskAgentButton.vue.js +0 -7
  311. package/dist/features/ask-agent-button/AskAgentButton.vue2.js +0 -47
  312. package/dist/features/developer-tools/DeveloperTools.vue.js +0 -60
  313. package/dist/features/developer-tools/DeveloperTools.vue2.js +0 -4
  314. package/dist/features/developer-tools/components/ApiReferenceToolbarBlurb.vue.js +0 -13
  315. package/dist/features/developer-tools/components/ApiReferenceToolbarConfigLayout.vue.js +0 -33
  316. package/dist/features/developer-tools/components/ApiReferenceToolbarConfigLayout.vue2.js +0 -4
  317. package/dist/features/developer-tools/components/ApiReferenceToolbarConfigLayoutOptions.vue.js +0 -138
  318. package/dist/features/developer-tools/components/ApiReferenceToolbarConfigLayoutOptions.vue2.js +0 -4
  319. package/dist/features/developer-tools/components/ApiReferenceToolbarConfigTheme.vue.js +0 -66
  320. package/dist/features/developer-tools/components/ApiReferenceToolbarConfigTheme.vue2.js +0 -4
  321. package/dist/features/developer-tools/components/ApiReferenceToolbarPopover.vue.js +0 -54
  322. package/dist/features/developer-tools/components/ApiReferenceToolbarPopover.vue2.js +0 -4
  323. package/dist/features/developer-tools/components/ApiReferenceToolbarRegisterButton.vue.js +0 -71
  324. package/dist/features/developer-tools/components/ApiReferenceToolbarRegisterButton.vue2.js +0 -4
  325. package/dist/features/developer-tools/components/ApiReferenceToolbarShareRegister.vue.js +0 -63
  326. package/dist/features/developer-tools/components/ApiReferenceToolbarShareRegister.vue2.js +0 -4
  327. package/dist/features/developer-tools/components/ApiReferenceToolbarShareTemporary.vue.js +0 -73
  328. package/dist/features/developer-tools/components/ApiReferenceToolbarShareTemporary.vue2.js +0 -4
  329. package/dist/features/developer-tools/components/ApiReferenceToolbarTitle.vue.js +0 -57
  330. package/dist/features/developer-tools/components/ApiReferenceToolbarTitle.vue2.js +0 -4
  331. package/dist/features/developer-tools/components/DeployApiReference.vue.js +0 -35
  332. package/dist/features/developer-tools/components/DeployApiReference.vue2.js +0 -4
  333. package/dist/features/developer-tools/components/ModifyConfiguration.vue.js +0 -103
  334. package/dist/features/developer-tools/components/ModifyConfiguration.vue2.js +0 -4
  335. package/dist/features/developer-tools/components/ShareApiReference.vue.js +0 -35
  336. package/dist/features/developer-tools/components/ShareApiReference.vue2.js +0 -4
  337. package/dist/features/example-responses/ExampleResponse.vue.js +0 -7
  338. package/dist/features/example-responses/ExampleResponse.vue2.js +0 -61
  339. package/dist/features/example-responses/ExampleResponseTab.vue.js +0 -7
  340. package/dist/features/example-responses/ExampleResponseTab.vue2.js +0 -25
  341. package/dist/features/example-responses/ExampleResponseTabList.vue.js +0 -7
  342. package/dist/features/example-responses/ExampleResponseTabList.vue2.js +0 -37
  343. package/dist/features/example-responses/ExampleResponses.vue.js +0 -7
  344. package/dist/features/example-responses/ExampleResponses.vue2.js +0 -181
  345. package/dist/features/example-responses/ExampleSchema.vue.js +0 -42
  346. package/dist/features/example-responses/ExampleSchema.vue2.js +0 -4
  347. package/dist/features/example-responses/has-response-content.js +0 -28
  348. package/dist/features/external-docs/ExternalDocs.vue.js +0 -42
  349. package/dist/features/external-docs/ExternalDocs.vue2.js +0 -4
  350. package/dist/features/info-object/Contact.vue.js +0 -46
  351. package/dist/features/info-object/Contact.vue2.js +0 -4
  352. package/dist/features/info-object/License.vue.js +0 -40
  353. package/dist/features/info-object/License.vue2.js +0 -4
  354. package/dist/features/info-object/TermsOfService.vue.js +0 -34
  355. package/dist/features/info-object/TermsOfService.vue2.js +0 -4
  356. package/dist/features/multiple-documents/DocumentSelector.vue.js +0 -54
  357. package/dist/features/multiple-documents/DocumentSelector.vue2.js +0 -4
  358. package/dist/features/specification-extension/SpecificationExtension.vue.js +0 -4
  359. package/dist/features/specification-extension/SpecificationExtension.vue2.js +0 -52
  360. package/dist/features/specification-extension/helpers.js +0 -9
  361. package/dist/features/test-request-button/TestRequestButton.vue.js +0 -7
  362. package/dist/features/test-request-button/TestRequestButton.vue2.js +0 -46
  363. package/dist/features/x-badges/XBadges.vue.js +0 -35
  364. package/dist/features/x-badges/XBadges.vue2.js +0 -4
  365. package/dist/helpers/color-mode.js +0 -9
  366. package/dist/helpers/download.js +0 -45
  367. package/dist/helpers/id-routing.js +0 -63
  368. package/dist/helpers/lazy-bus.js +0 -160
  369. package/dist/helpers/load-from-perssistance.js +0 -17
  370. package/dist/helpers/map-config-plugins.js +0 -27
  371. package/dist/helpers/map-config-to-workspace-store.js +0 -45
  372. package/dist/helpers/normalize-configurations.js +0 -69
  373. package/dist/helpers/openapi.js +0 -135
  374. package/dist/helpers/storage.js +0 -47
  375. package/dist/helpers/upload-temp-document.js +0 -24
  376. package/dist/hooks/use-agent.js +0 -42
  377. package/dist/hooks/use-intersection.js +0 -32
  378. package/dist/plugins/hooks/usePluginManager.js +0 -14
  379. package/dist/plugins/persistance-plugin.js +0 -48
  380. package/dist/plugins/plugin-manager.js +0 -39
  381. package/dist/standalone/lib/html-api.js +0 -81
@@ -1,7 +0,0 @@
1
- import _sfc_main from "./SchemaPropertyDetail.vue2.js";
2
- /* empty css */
3
- import _export_sfc from "../../../_virtual/_plugin-vue_export-helper.js";
4
- const SchemaPropertyDetail = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-1295f965"]]);
5
- export {
6
- SchemaPropertyDetail as default
7
- };
@@ -1,40 +0,0 @@
1
- import { defineComponent, createElementBlock, openBlock, normalizeClass, createCommentVNode, renderSlot, createTextVNode } from "vue";
2
- const _hoisted_1 = {
3
- key: 0,
4
- class: "property-detail-prefix"
5
- };
6
- const _hoisted_2 = {
7
- key: 1,
8
- class: "property-detail-value"
9
- };
10
- const _hoisted_3 = {
11
- key: 2,
12
- class: "property-detail-value"
13
- };
14
- const _sfc_main = /* @__PURE__ */ defineComponent({
15
- __name: "SchemaPropertyDetail",
16
- props: {
17
- truncate: { type: Boolean },
18
- code: { type: Boolean }
19
- },
20
- setup(__props) {
21
- return (_ctx, _cache) => {
22
- return openBlock(), createElementBlock("span", {
23
- class: normalizeClass(["property-detail", { "property-detail-truncate": __props.truncate }])
24
- }, [
25
- _ctx.$slots.prefix ? (openBlock(), createElementBlock("div", _hoisted_1, [
26
- renderSlot(_ctx.$slots, "prefix", {}, void 0, true),
27
- _cache[0] || (_cache[0] = createTextVNode("  ", -1))
28
- ])) : createCommentVNode("", true),
29
- __props.code ? (openBlock(), createElementBlock("code", _hoisted_2, [
30
- renderSlot(_ctx.$slots, "default", {}, void 0, true)
31
- ])) : (openBlock(), createElementBlock("span", _hoisted_3, [
32
- renderSlot(_ctx.$slots, "default", {}, void 0, true)
33
- ]))
34
- ], 2);
35
- };
36
- }
37
- });
38
- export {
39
- _sfc_main as default
40
- };
@@ -1,7 +0,0 @@
1
- import _sfc_main from "./SchemaPropertyExamples.vue2.js";
2
- /* empty css */
3
- import _export_sfc from "../../../_virtual/_plugin-vue_export-helper.js";
4
- const SchemaPropertyExamples = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-72def0ea"]]);
5
- export {
6
- SchemaPropertyExamples as default
7
- };
@@ -1,80 +0,0 @@
1
- import { defineComponent, createElementBlock, openBlock, Fragment, createCommentVNode, createElementVNode, unref, createVNode, toDisplayString, renderList } from "vue";
2
- import { ScalarIcon } from "@scalar/components";
3
- import { useClipboard } from "@scalar/use-hooks/useClipboard";
4
- import { formatExample } from "./helpers/format-example.js";
5
- const _hoisted_1 = {
6
- key: 0,
7
- class: "property-example"
8
- };
9
- const _hoisted_2 = { class: "property-example-value-list" };
10
- const _hoisted_3 = {
11
- key: 1,
12
- class: "property-example"
13
- };
14
- const _hoisted_4 = {
15
- class: "property-example-label",
16
- type: "button"
17
- };
18
- const _hoisted_5 = { class: "property-example-value-list" };
19
- const _hoisted_6 = ["onClick"];
20
- const _sfc_main = /* @__PURE__ */ defineComponent({
21
- __name: "SchemaPropertyExamples",
22
- props: {
23
- examples: {},
24
- example: {}
25
- },
26
- setup(__props) {
27
- const { copyToClipboard } = useClipboard();
28
- return (_ctx, _cache) => {
29
- return openBlock(), createElementBlock(Fragment, null, [
30
- __props.example ? (openBlock(), createElementBlock("div", _hoisted_1, [
31
- _cache[1] || (_cache[1] = createElementVNode("button", {
32
- class: "property-example-label",
33
- type: "button"
34
- }, [
35
- createElementVNode("span", null, "Example")
36
- ], -1)),
37
- createElementVNode("div", _hoisted_2, [
38
- createElementVNode("button", {
39
- class: "property-example-value group",
40
- type: "button",
41
- onClick: _cache[0] || (_cache[0] = ($event) => unref(copyToClipboard)(unref(formatExample)(__props.example)))
42
- }, [
43
- createElementVNode("span", null, toDisplayString(unref(formatExample)(__props.example)), 1),
44
- createVNode(unref(ScalarIcon), {
45
- class: "group-hover:text-c-1 text-c-3 ml-auto min-h-3 min-w-3",
46
- icon: "Clipboard",
47
- size: "xs"
48
- })
49
- ])
50
- ])
51
- ])) : createCommentVNode("", true),
52
- __props.examples && typeof __props.examples === "object" && Object.keys(__props.examples).length > 0 ? (openBlock(), createElementBlock("div", _hoisted_3, [
53
- createElementVNode("button", _hoisted_4, [
54
- createElementVNode("span", null, toDisplayString(Object.keys(__props.examples).length === 1 ? "Example" : "Examples"), 1)
55
- ]),
56
- createElementVNode("div", _hoisted_5, [
57
- (openBlock(true), createElementBlock(Fragment, null, renderList(__props.examples, (ex, key) => {
58
- return openBlock(), createElementBlock("button", {
59
- key,
60
- class: "property-example-value group",
61
- type: "button",
62
- onClick: ($event) => unref(copyToClipboard)(unref(formatExample)(ex))
63
- }, [
64
- createElementVNode("span", null, toDisplayString(unref(formatExample)(ex)), 1),
65
- createVNode(unref(ScalarIcon), {
66
- class: "text-c-3 group-hover:text-c-1 ml-auto min-h-3 min-w-3",
67
- icon: "Clipboard",
68
- size: "xs"
69
- })
70
- ], 8, _hoisted_6);
71
- }), 128))
72
- ])
73
- ])) : createCommentVNode("", true)
74
- ], 64);
75
- };
76
- }
77
- });
78
- export {
79
- _sfc_main as default
80
- };
@@ -1,7 +0,0 @@
1
- import _sfc_main from "./SchemaPropertyHeading.vue2.js";
2
- /* empty css */
3
- import _export_sfc from "../../../_virtual/_plugin-vue_export-helper.js";
4
- const SchemaPropertyHeading = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-881aa734"]]);
5
- export {
6
- SchemaPropertyHeading as default
7
- };
@@ -1,318 +0,0 @@
1
- import { defineComponent, toRef, computed, createElementBlock, openBlock, createCommentVNode, createVNode, createBlock, normalizeClass, renderSlot, Fragment, withCtx, createTextVNode, toDisplayString, renderList, createSlots, unref } from "vue";
2
- import { isDefined } from "@scalar/helpers/array/is-defined";
3
- import { resolve } from "@scalar/workspace-store/resolve";
4
- import { isArraySchema, isStringSchema, isNumberSchema } from "@scalar/workspace-store/schemas/v3.1/strict/type-guards";
5
- import ScreenReader from "../../ScreenReader.vue.js";
6
- import { getSchemaType } from "./helpers/get-schema-type.js";
7
- import { getModelNameFromSchema } from "./helpers/schema-name.js";
8
- import _sfc_main$1 from "./RenderString.vue.js";
9
- import SchemaPropertyDefault from "./SchemaPropertyDefault.vue.js";
10
- import SchemaPropertyDetail from "./SchemaPropertyDetail.vue.js";
11
- import SchemaPropertyExamples from "./SchemaPropertyExamples.vue.js";
12
- import Badge from "../../Badge/Badge.vue.js";
13
- const _hoisted_1 = { class: "property-heading" };
14
- const _hoisted_2 = {
15
- key: 1,
16
- class: "property-discriminator"
17
- };
18
- const _hoisted_3 = {
19
- key: 3,
20
- class: "property-additional"
21
- };
22
- const _hoisted_4 = {
23
- key: 4,
24
- class: "property-deprecated"
25
- };
26
- const _hoisted_5 = {
27
- key: 5,
28
- class: "property-const"
29
- };
30
- const _hoisted_6 = {
31
- key: 7,
32
- class: "property-write-only"
33
- };
34
- const _hoisted_7 = {
35
- key: 8,
36
- class: "property-read-only"
37
- };
38
- const _hoisted_8 = {
39
- key: 9,
40
- class: "property-required"
41
- };
42
- const _sfc_main = /* @__PURE__ */ defineComponent({
43
- __name: "SchemaPropertyHeading",
44
- props: {
45
- value: {},
46
- enum: { type: Boolean },
47
- isDiscriminator: { type: Boolean, default: false },
48
- required: { type: Boolean, default: false },
49
- additional: { type: Boolean },
50
- withExamples: { type: Boolean, default: true },
51
- hideModelNames: { type: Boolean, default: false },
52
- modelName: {}
53
- },
54
- setup(__props) {
55
- const props = __props;
56
- const valueRef = toRef(props, "value");
57
- const constValue = computed(() => {
58
- if (!valueRef.value) {
59
- return void 0;
60
- }
61
- const schema = valueRef.value;
62
- if (schema.const !== void 0) {
63
- return schema.const;
64
- }
65
- if (schema.enum?.length === 1) {
66
- return schema.enum[0];
67
- }
68
- if (isArraySchema(schema) && schema.items) {
69
- const items = resolve.schema(schema.items);
70
- if (isDefined(items.const)) {
71
- return items.const;
72
- }
73
- if (items.enum?.length === 1) {
74
- return items.enum[0];
75
- }
76
- }
77
- return void 0;
78
- });
79
- const validationProperties = computed(() => {
80
- if (!valueRef.value) {
81
- return [];
82
- }
83
- const schema = valueRef.value;
84
- const properties = [];
85
- if (isArraySchema(schema)) {
86
- if (schema.minItems || schema.maxItems) {
87
- properties.push({
88
- key: "array-range",
89
- value: `${schema.minItems || ""}…${schema.maxItems || ""}`
90
- });
91
- }
92
- if (schema.uniqueItems) {
93
- properties.push({
94
- key: "unique-items",
95
- value: "unique!"
96
- });
97
- }
98
- }
99
- if (isStringSchema(schema)) {
100
- if (schema.minLength) {
101
- properties.push({
102
- key: "min-length",
103
- prefix: "min length: ",
104
- value: schema.minLength
105
- });
106
- }
107
- if (schema.maxLength) {
108
- properties.push({
109
- key: "max-length",
110
- prefix: "max length: ",
111
- value: schema.maxLength
112
- });
113
- }
114
- if (schema.pattern) {
115
- properties.push({
116
- key: "pattern",
117
- value: schema.pattern,
118
- code: true,
119
- truncate: true
120
- });
121
- }
122
- }
123
- if (isStringSchema(schema) || isNumberSchema(schema)) {
124
- if (schema.format) {
125
- properties.push({
126
- key: "format",
127
- value: schema.format,
128
- truncate: true
129
- });
130
- }
131
- }
132
- if (isNumberSchema(schema)) {
133
- if (isDefined(schema.exclusiveMinimum)) {
134
- properties.push({
135
- key: "exclusive-minimum",
136
- prefix: "greater than: ",
137
- value: schema.exclusiveMinimum
138
- });
139
- }
140
- if (isDefined(schema.minimum)) {
141
- properties.push({
142
- key: "minimum",
143
- prefix: "min: ",
144
- value: schema.minimum
145
- });
146
- }
147
- if (isDefined(schema.exclusiveMaximum)) {
148
- properties.push({
149
- key: "exclusive-maximum",
150
- prefix: "less than: ",
151
- value: schema.exclusiveMaximum
152
- });
153
- }
154
- if (isDefined(schema.maximum)) {
155
- properties.push({
156
- key: "maximum",
157
- prefix: "max: ",
158
- value: schema.maximum
159
- });
160
- }
161
- if (isDefined(schema.multipleOf)) {
162
- properties.push({
163
- key: "multiple-of",
164
- prefix: "multiple of: ",
165
- value: schema.multipleOf
166
- });
167
- }
168
- }
169
- return properties;
170
- });
171
- const displayTitle = computed(() => {
172
- if (!props.value) {
173
- return null;
174
- }
175
- if (props.hideModelNames) {
176
- return null;
177
- }
178
- if (props.modelName) {
179
- return props.modelName;
180
- }
181
- const modelName = getModelNameFromSchema(props.value);
182
- if (modelName) {
183
- return modelName;
184
- }
185
- if (isArraySchema(props.value) && props.value.items) {
186
- const itemName = getModelNameFromSchema(props.value.items);
187
- return itemName ? `${itemName}[]` : null;
188
- }
189
- return null;
190
- });
191
- const shouldShowType = computed(() => {
192
- if (!props.value || !("type" in props.value)) {
193
- return false;
194
- }
195
- if (props.value.type === "array") {
196
- return true;
197
- }
198
- return !constValue.value;
199
- });
200
- const displayType = computed(() => {
201
- if (!props.value) {
202
- return "";
203
- }
204
- return getSchemaType(props.value);
205
- });
206
- return (_ctx, _cache) => {
207
- return openBlock(), createElementBlock("div", _hoisted_1, [
208
- _ctx.$slots.name ? (openBlock(), createElementBlock("div", {
209
- key: 0,
210
- class: normalizeClass(["property-name", { deprecated: props.value?.deprecated }])
211
- }, [
212
- renderSlot(_ctx.$slots, "name", {}, void 0, true)
213
- ], 2)) : createCommentVNode("", true),
214
- props.isDiscriminator ? (openBlock(), createElementBlock("div", _hoisted_2, " Discriminator ")) : createCommentVNode("", true),
215
- props.value ? (openBlock(), createElementBlock(Fragment, { key: 2 }, [
216
- shouldShowType.value ? (openBlock(), createBlock(SchemaPropertyDetail, {
217
- key: 0,
218
- truncate: ""
219
- }, {
220
- default: withCtx(() => [
221
- createVNode(ScreenReader, null, {
222
- default: withCtx(() => [..._cache[0] || (_cache[0] = [
223
- createTextVNode("Type: ", -1)
224
- ])]),
225
- _: 1
226
- }),
227
- createTextVNode(toDisplayString(displayType.value) + toDisplayString(displayTitle.value ? ` · ${displayTitle.value}` : ""), 1)
228
- ]),
229
- _: 1
230
- })) : createCommentVNode("", true),
231
- (openBlock(true), createElementBlock(Fragment, null, renderList(validationProperties.value, (property) => {
232
- return openBlock(), createBlock(SchemaPropertyDetail, {
233
- key: property.key,
234
- code: property.code,
235
- truncate: property.truncate
236
- }, createSlots({
237
- default: withCtx(() => [
238
- property.key === "format" ? (openBlock(), createBlock(ScreenReader, { key: 0 }, {
239
- default: withCtx(() => [..._cache[1] || (_cache[1] = [
240
- createTextVNode("Format:", -1)
241
- ])]),
242
- _: 1
243
- })) : property.key === "pattern" ? (openBlock(), createBlock(ScreenReader, { key: 1 }, {
244
- default: withCtx(() => [..._cache[2] || (_cache[2] = [
245
- createTextVNode(" Pattern: ", -1)
246
- ])]),
247
- _: 1
248
- })) : createCommentVNode("", true),
249
- createTextVNode(" " + toDisplayString(property.value), 1)
250
- ]),
251
- _: 2
252
- }, [
253
- property.prefix ? {
254
- name: "prefix",
255
- fn: withCtx(() => [
256
- createTextVNode(toDisplayString(property.prefix), 1)
257
- ]),
258
- key: "0"
259
- } : void 0
260
- ]), 1032, ["code", "truncate"]);
261
- }), 128)),
262
- props.enum ? (openBlock(), createBlock(SchemaPropertyDetail, { key: 1 }, {
263
- default: withCtx(() => [..._cache[3] || (_cache[3] = [
264
- createTextVNode("enum", -1)
265
- ])]),
266
- _: 1
267
- })) : createCommentVNode("", true)
268
- ], 64)) : createCommentVNode("", true),
269
- props.additional ? (openBlock(), createElementBlock("div", _hoisted_3, [
270
- props.value?.["x-additionalPropertiesName"] ? (openBlock(), createElementBlock(Fragment, { key: 0 }, [
271
- createTextVNode(toDisplayString(props.value["x-additionalPropertiesName"]), 1)
272
- ], 64)) : (openBlock(), createElementBlock(Fragment, { key: 1 }, [
273
- createTextVNode("additional properties")
274
- ], 64))
275
- ])) : createCommentVNode("", true),
276
- props.value?.deprecated ? (openBlock(), createElementBlock("div", _hoisted_4, [
277
- createVNode(unref(Badge), null, {
278
- default: withCtx(() => [..._cache[4] || (_cache[4] = [
279
- createTextVNode("deprecated", -1)
280
- ])]),
281
- _: 1
282
- })
283
- ])) : createCommentVNode("", true),
284
- constValue.value !== void 0 ? (openBlock(), createElementBlock("div", _hoisted_5, [
285
- createVNode(SchemaPropertyDetail, { truncate: "" }, {
286
- prefix: withCtx(() => [..._cache[5] || (_cache[5] = [
287
- createTextVNode("const: ", -1)
288
- ])]),
289
- default: withCtx(() => [
290
- createVNode(_sfc_main$1, { value: constValue.value }, null, 8, ["value"])
291
- ]),
292
- _: 1
293
- })
294
- ])) : (openBlock(), createElementBlock(Fragment, { key: 6 }, [
295
- props.value?.nullable === true ? (openBlock(), createBlock(SchemaPropertyDetail, { key: 0 }, {
296
- default: withCtx(() => [..._cache[6] || (_cache[6] = [
297
- createTextVNode(" nullable ", -1)
298
- ])]),
299
- _: 1
300
- })) : createCommentVNode("", true)
301
- ], 64)),
302
- props.value?.writeOnly ? (openBlock(), createElementBlock("div", _hoisted_6, " write-only ")) : props.value?.readOnly ? (openBlock(), createElementBlock("div", _hoisted_7, " read-only ")) : createCommentVNode("", true),
303
- props.required ? (openBlock(), createElementBlock("div", _hoisted_8, " required ")) : createCommentVNode("", true),
304
- createVNode(SchemaPropertyDefault, {
305
- value: props.value?.default
306
- }, null, 8, ["value"]),
307
- props.withExamples ? (openBlock(), createBlock(SchemaPropertyExamples, {
308
- key: 10,
309
- example: props.value?.example || props.value && unref(isArraySchema)(props.value) && unref(resolve).schema(props.value?.items)?.example,
310
- examples: props.value?.examples
311
- }, null, 8, ["example", "examples"])) : createCommentVNode("", true)
312
- ]);
313
- };
314
- }
315
- });
316
- export {
317
- _sfc_main as default
318
- };
@@ -1,41 +0,0 @@
1
- function formatExample(example) {
2
- if (Array.isArray(example)) {
3
- return `[${example.map((item) => {
4
- if (typeof item === "string") {
5
- return `"${item.toString().trim()}"`;
6
- }
7
- if (typeof item === "object") {
8
- return JSON.stringify(item);
9
- }
10
- if (item === void 0) {
11
- return "undefined";
12
- }
13
- if (item === null) {
14
- return "null";
15
- }
16
- return item;
17
- }).join(", ")}]`;
18
- }
19
- if (example === null) {
20
- return "null";
21
- }
22
- if (typeof example === "object") {
23
- if ("value" in example) {
24
- return example.value;
25
- }
26
- if ("externalValue" in example) {
27
- return example.externalValue;
28
- }
29
- return JSON.stringify(example);
30
- }
31
- if (example === void 0) {
32
- return "undefined";
33
- }
34
- if (typeof example === "string") {
35
- return example.trim();
36
- }
37
- return example.toString().trim();
38
- }
39
- export {
40
- formatExample
41
- };
@@ -1,35 +0,0 @@
1
- function formatValue(value) {
2
- if (Array.isArray(value)) {
3
- return `[${value.map((item) => {
4
- if (typeof item === "string") {
5
- return `"${item.toString().trim()}"`;
6
- }
7
- if (typeof item === "object") {
8
- return JSON.stringify(item);
9
- }
10
- if (item === void 0) {
11
- return "undefined";
12
- }
13
- if (item === null) {
14
- return "null";
15
- }
16
- return item;
17
- }).join(", ")}]`;
18
- }
19
- if (value === null) {
20
- return "null";
21
- }
22
- if (typeof value === "object") {
23
- return JSON.stringify(value);
24
- }
25
- if (value === void 0) {
26
- return "undefined";
27
- }
28
- if (typeof value === "string") {
29
- return value.trim();
30
- }
31
- return value.toString().trim();
32
- }
33
- export {
34
- formatValue
35
- };
@@ -1,31 +0,0 @@
1
- import { isDefined } from "@scalar/helpers/array/is-defined";
2
- import { resolve } from "@scalar/workspace-store/resolve";
3
- import { isArraySchema } from "@scalar/workspace-store/schemas/v3.1/strict/type-guards";
4
- import { compositions } from "./schema-composition.js";
5
- import { shouldRenderArrayItemComposition } from "./should-render-array-item-composition.js";
6
- const getCompositionsToRender = (value) => {
7
- if (!value) {
8
- return [];
9
- }
10
- return compositions.map((composition) => {
11
- if (shouldRenderArrayItemComposition(value, composition) && isArraySchema(value) && value.items) {
12
- return {
13
- composition,
14
- value: resolve.schema(value.items)
15
- };
16
- }
17
- if (value[composition]) {
18
- const hasArrayItemComposition = isArraySchema(value) && value.items && typeof value.items === "object" && composition in value.items;
19
- if (!hasArrayItemComposition) {
20
- return {
21
- composition,
22
- value: resolve.schema(value)
23
- };
24
- }
25
- }
26
- return null;
27
- }).filter(isDefined);
28
- };
29
- export {
30
- getCompositionsToRender
31
- };
@@ -1,20 +0,0 @@
1
- import { resolve } from "@scalar/workspace-store/resolve";
2
- import { isArraySchema } from "@scalar/workspace-store/schemas/v3.1/strict/type-guards";
3
- const getEnumValues = (value) => {
4
- if (!value) {
5
- return [];
6
- }
7
- if (value.enum) {
8
- return value.enum;
9
- }
10
- if (isArraySchema(value) && typeof value.items === "object") {
11
- const resolvedItems = resolve.schema(value.items);
12
- if (resolvedItems && "enum" in resolvedItems && resolvedItems.enum) {
13
- return resolvedItems.enum;
14
- }
15
- }
16
- return [];
17
- };
18
- export {
19
- getEnumValues
20
- };
@@ -1,34 +0,0 @@
1
- import { isSchema } from "@scalar/workspace-store/schemas/v3.1/strict/type-guards";
2
- const TYPE_DESCRIPTIONS = {
3
- integer: {
4
- _default: "Integer numbers.",
5
- int32: "Signed 32-bit integers (commonly used integer type).",
6
- int64: "Signed 64-bit integers (long type)."
7
- },
8
- string: {
9
- "date": "full-date notation as defined by RFC 3339, section 5.6, for example, 2017-07-21",
10
- "date-time": "the date-time notation as defined by RFC 3339, section 5.6, for example, 2017-07-21T17:32:28Z",
11
- "password": "a hint to UIs to mask the input",
12
- "base64": "base64-encoded characters, for example, U3dhZ2dlciByb2Nrcw==",
13
- "byte": "base64-encoded characters, for example, U3dhZ2dlciByb2Nrcw==",
14
- "binary": "binary data, used to describe files"
15
- }
16
- };
17
- const getPropertyDescription = (value) => {
18
- if (!isSchema(value)) {
19
- return null;
20
- }
21
- const type = Array.isArray(value.type) ? value.type[0] : value.type;
22
- if (!type) {
23
- return null;
24
- }
25
- const typeDescriptions = TYPE_DESCRIPTIONS[type];
26
- if (!typeDescriptions) {
27
- return null;
28
- }
29
- const format = "format" in value && value.format || "contentEncoding" in value && value.contentEncoding || "_default";
30
- return typeDescriptions[format] ?? null;
31
- };
32
- export {
33
- getPropertyDescription
34
- };
@@ -1,14 +0,0 @@
1
- import { REGEX } from "@scalar/helpers/regex/regex-helpers";
2
- const getRefName = (ref) => {
3
- if (!ref) {
4
- return null;
5
- }
6
- const match = ref.match(REGEX.REF_NAME);
7
- if (match) {
8
- return match[1];
9
- }
10
- return null;
11
- };
12
- export {
13
- getRefName
14
- };