@scalar/api-reference 1.36.1 → 1.37.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 (278) hide show
  1. package/CHANGELOG.md +63 -0
  2. package/dist/browser/standalone.js +26246 -25660
  3. package/dist/browser/webpack-stats.json +1 -1
  4. package/dist/components/ApiReferenceContent.vue.d.ts +34 -0
  5. package/dist/components/ApiReferenceContent.vue.d.ts.map +1 -0
  6. package/dist/components/ApiReferenceContent.vue.js +8 -0
  7. package/dist/components/ApiReferenceContent.vue2.js +148 -0
  8. package/dist/components/ApiReferenceLayout.vue.d.ts.map +1 -1
  9. package/dist/components/ApiReferenceLayout.vue.js +2 -2
  10. package/dist/components/ApiReferenceLayout.vue2.js +239 -219
  11. package/dist/components/Content/ClientLibraries/ClientLibraries.vue.d.ts +2 -2
  12. package/dist/components/Content/ClientLibraries/ClientLibraries.vue.d.ts.map +1 -1
  13. package/dist/components/Content/ClientLibraries/ClientSelector.vue.d.ts +1 -1
  14. package/dist/components/Content/ClientLibraries/ClientSelector.vue.d.ts.map +1 -1
  15. package/dist/components/Content/ClientLibraries/featured-clients.d.ts +1 -1
  16. package/dist/components/Content/ClientLibraries/featured-clients.d.ts.map +1 -1
  17. package/dist/components/Content/Content.vue.d.ts +21 -3
  18. package/dist/components/Content/Content.vue.d.ts.map +1 -1
  19. package/dist/components/Content/Content.vue.js +132 -95
  20. package/dist/components/Content/Models/ClassicLayout.vue.d.ts +4 -2
  21. package/dist/components/Content/Models/ClassicLayout.vue.d.ts.map +1 -1
  22. package/dist/components/Content/Models/ClassicLayout.vue.js +2 -2
  23. package/dist/components/Content/Models/ClassicLayout.vue2.js +28 -28
  24. package/dist/components/Content/Models/Models.vue.d.ts +10 -2
  25. package/dist/components/Content/Models/Models.vue.d.ts.map +1 -1
  26. package/dist/components/Content/Models/Models.vue.js +25 -27
  27. package/dist/components/Content/Models/ModernLayout.vue.d.ts +6 -2
  28. package/dist/components/Content/Models/ModernLayout.vue.d.ts.map +1 -1
  29. package/dist/components/Content/Models/ModernLayout.vue.js +1 -1
  30. package/dist/components/Content/Models/ModernLayout.vue2.js +30 -29
  31. package/dist/components/Content/Operations/TraversedEntry.vue.d.ts +20 -6
  32. package/dist/components/Content/Operations/TraversedEntry.vue.d.ts.map +1 -1
  33. package/dist/components/Content/Operations/TraversedEntry.vue.js +58 -46
  34. package/dist/components/Content/Operations/get-current-index.d.ts +1 -1
  35. package/dist/components/Content/Operations/get-current-index.d.ts.map +1 -1
  36. package/dist/components/Content/Schema/Schema.vue.js +2 -2
  37. package/dist/components/Content/Schema/Schema.vue2.js +24 -24
  38. package/dist/components/Content/Schema/helpers/get-ref-name.d.ts.map +1 -1
  39. package/dist/components/Content/Schema/helpers/get-ref-name.js +9 -7
  40. package/dist/components/Content/Schema/helpers/merge-all-of-schemas.js +1 -1
  41. package/dist/components/Content/Schema/helpers/schema-name.d.ts.map +1 -1
  42. package/dist/components/Content/Schema/helpers/schema-name.js +15 -14
  43. package/dist/components/Content/Tags/ClassicLayout.vue.d.ts +1 -1
  44. package/dist/components/Content/Tags/ClassicLayout.vue.d.ts.map +1 -1
  45. package/dist/components/Content/Tags/ClassicLayout.vue.js +2 -2
  46. package/dist/components/Content/Tags/ModernLayout.vue.d.ts +3 -1
  47. package/dist/components/Content/Tags/ModernLayout.vue.d.ts.map +1 -1
  48. package/dist/components/Content/Tags/ModernLayout.vue.js +1 -1
  49. package/dist/components/Content/Tags/ModernLayout.vue2.js +34 -30
  50. package/dist/components/Content/Tags/Tag.vue.d.ts +3 -1
  51. package/dist/components/Content/Tags/Tag.vue.d.ts.map +1 -1
  52. package/dist/components/Content/Tags/Tag.vue.js +14 -12
  53. package/dist/components/Content/Tags/TagSection.vue.d.ts +2 -1
  54. package/dist/components/Content/Tags/TagSection.vue.d.ts.map +1 -1
  55. package/dist/components/Content/Tags/TagSection.vue.js +49 -52
  56. package/dist/components/OperationsList/OperationsList.vue.d.ts +1 -1
  57. package/dist/components/OperationsList/OperationsList.vue.d.ts.map +1 -1
  58. package/dist/components/OperationsList/OperationsList.vue.js +1 -1
  59. package/dist/components/OperationsList/OperationsListItem.vue.d.ts +1 -1
  60. package/dist/components/OperationsList/OperationsListItem.vue.d.ts.map +1 -1
  61. package/dist/components/OperationsList/OperationsListItem.vue.js +2 -2
  62. package/dist/components/Section/Section.vue.js +1 -1
  63. package/dist/components/Section/SectionContainerAccordion.vue.js +2 -2
  64. package/dist/components/ShowMoreButton.vue.d.ts +1 -0
  65. package/dist/components/ShowMoreButton.vue.d.ts.map +1 -1
  66. package/dist/components/ShowMoreButton.vue.js +2 -2
  67. package/dist/components/ShowMoreButton.vue2.js +12 -12
  68. package/dist/consts/urls.d.ts +17 -0
  69. package/dist/consts/urls.d.ts.map +1 -0
  70. package/dist/consts/urls.js +7 -0
  71. package/dist/features/Operation/Operation.vue.d.ts +21 -9
  72. package/dist/features/Operation/Operation.vue.d.ts.map +1 -1
  73. package/dist/features/Operation/Operation.vue.js +42 -53
  74. package/dist/features/Operation/components/Header.vue.d.ts +2 -2
  75. package/dist/features/Operation/components/Header.vue.d.ts.map +1 -1
  76. package/dist/features/Operation/components/Header.vue.js +9 -8
  77. package/dist/features/Operation/components/Headers.vue.d.ts +2 -2
  78. package/dist/features/Operation/components/Headers.vue.d.ts.map +1 -1
  79. package/dist/features/Operation/components/Headers.vue.js +1 -1
  80. package/dist/features/Operation/components/Headers.vue2.js +35 -33
  81. package/dist/features/Operation/components/OperationParameters.vue.d.ts +4 -0
  82. package/dist/features/Operation/components/OperationParameters.vue.d.ts.map +1 -1
  83. package/dist/features/Operation/components/OperationParameters.vue.js +37 -31
  84. package/dist/features/Operation/components/OperationResponses.vue.d.ts +5 -1
  85. package/dist/features/Operation/components/OperationResponses.vue.d.ts.map +1 -1
  86. package/dist/features/Operation/components/OperationResponses.vue.js +16 -17
  87. package/dist/features/Operation/components/ParameterList.vue.d.ts +6 -2
  88. package/dist/features/Operation/components/ParameterList.vue.d.ts.map +1 -1
  89. package/dist/features/Operation/components/ParameterList.vue.js +17 -19
  90. package/dist/features/Operation/components/ParameterListItem.vue.d.ts +6 -2
  91. package/dist/features/Operation/components/ParameterListItem.vue.d.ts.map +1 -1
  92. package/dist/features/Operation/components/ParameterListItem.vue.js +3 -3
  93. package/dist/features/Operation/components/ParameterListItem.vue2.js +64 -65
  94. package/dist/features/Operation/components/RequestBody.vue.d.ts +4 -0
  95. package/dist/features/Operation/components/RequestBody.vue.d.ts.map +1 -1
  96. package/dist/features/Operation/components/RequestBody.vue.js +2 -2
  97. package/dist/features/Operation/components/RequestBody.vue2.js +65 -65
  98. package/dist/features/Operation/components/callbacks/Callback.vue.d.ts +4 -0
  99. package/dist/features/Operation/components/callbacks/Callback.vue.d.ts.map +1 -1
  100. package/dist/features/Operation/components/callbacks/Callback.vue.js +2 -2
  101. package/dist/features/Operation/components/callbacks/Callback.vue2.js +29 -22
  102. package/dist/features/Operation/components/callbacks/Callbacks.vue.d.ts +6 -0
  103. package/dist/features/Operation/components/callbacks/Callbacks.vue.d.ts.map +1 -1
  104. package/dist/features/Operation/components/callbacks/Callbacks.vue.js +18 -16
  105. package/dist/features/Operation/layouts/ClassicLayout.vue.d.ts +11 -5
  106. package/dist/features/Operation/layouts/ClassicLayout.vue.d.ts.map +1 -1
  107. package/dist/features/Operation/layouts/ClassicLayout.vue.js +3 -3
  108. package/dist/features/Operation/layouts/ClassicLayout.vue2.js +99 -90
  109. package/dist/features/Operation/layouts/ModernLayout.vue.d.ts +12 -5
  110. package/dist/features/Operation/layouts/ModernLayout.vue.d.ts.map +1 -1
  111. package/dist/features/Operation/layouts/ModernLayout.vue.js +2 -2
  112. package/dist/features/Operation/layouts/ModernLayout.vue2.js +99 -87
  113. package/dist/features/Search/helpers/create-search-index.d.ts +2 -1
  114. package/dist/features/Search/helpers/create-search-index.d.ts.map +1 -1
  115. package/dist/features/Search/types.d.ts +1 -1
  116. package/dist/features/Search/types.d.ts.map +1 -1
  117. package/dist/features/api-client-modal/ApiClientModal.vue.d.ts.map +1 -1
  118. package/dist/features/api-client-modal/ApiClientModal.vue.js +23 -26
  119. package/dist/features/api-client-modal/useApiClient.d.ts +3032 -2888
  120. package/dist/features/api-client-modal/useApiClient.d.ts.map +1 -1
  121. package/dist/features/document-source/hooks/useDocumentFetcher.d.ts.map +1 -1
  122. package/dist/features/document-source/hooks/useDocumentFetcher.js +13 -11
  123. package/dist/features/document-source/hooks/useDocumentSource.d.ts +1 -1
  124. package/dist/features/document-source/hooks/useDocumentSource.d.ts.map +1 -1
  125. package/dist/features/example-responses/ExampleResponse.vue.d.ts.map +1 -1
  126. package/dist/features/example-responses/ExampleResponse.vue.js +3 -3
  127. package/dist/features/example-responses/ExampleResponse.vue2.js +26 -18
  128. package/dist/features/example-responses/ExampleResponses.vue.d.ts.map +1 -1
  129. package/dist/features/example-responses/ExampleResponses.vue.js +2 -2
  130. package/dist/features/example-responses/ExampleResponses.vue2.js +53 -53
  131. package/dist/features/multiple-documents/useMultipleDocuments.d.ts +11 -6
  132. package/dist/features/multiple-documents/useMultipleDocuments.d.ts.map +1 -1
  133. package/dist/features/multiple-documents/useMultipleDocuments.js +57 -48
  134. package/dist/features/test-request-button/TestRequestButton.vue.d.ts.map +1 -1
  135. package/dist/features/test-request-button/TestRequestButton.vue.js +2 -2
  136. package/dist/features/test-request-button/TestRequestButton.vue2.js +15 -21
  137. package/dist/features/toolbar/ApiReferenceToolbar.vue.d.ts +16 -0
  138. package/dist/features/toolbar/ApiReferenceToolbar.vue.d.ts.map +1 -0
  139. package/dist/features/toolbar/ApiReferenceToolbar.vue.js +43 -0
  140. package/dist/features/toolbar/ApiReferenceToolbar.vue2.js +4 -0
  141. package/dist/features/toolbar/ApiReferenceToolbarBlurb.vue.d.ts +13 -0
  142. package/dist/features/toolbar/ApiReferenceToolbarBlurb.vue.d.ts.map +1 -0
  143. package/dist/features/toolbar/ApiReferenceToolbarBlurb.vue.js +12 -0
  144. package/dist/features/toolbar/ApiReferenceToolbarConfig.vue.d.ts +14 -0
  145. package/dist/features/toolbar/ApiReferenceToolbarConfig.vue.d.ts.map +1 -0
  146. package/dist/features/toolbar/ApiReferenceToolbarConfig.vue.js +95 -0
  147. package/dist/features/toolbar/ApiReferenceToolbarConfig.vue2.js +4 -0
  148. package/dist/features/toolbar/ApiReferenceToolbarConfigLayout.vue.d.ts +10 -0
  149. package/dist/features/toolbar/ApiReferenceToolbarConfigLayout.vue.d.ts.map +1 -0
  150. package/dist/features/toolbar/ApiReferenceToolbarConfigLayout.vue.js +27 -0
  151. package/dist/features/toolbar/ApiReferenceToolbarConfigLayout.vue2.js +4 -0
  152. package/dist/features/toolbar/ApiReferenceToolbarConfigLayoutOptions.vue.d.ts +25 -0
  153. package/dist/features/toolbar/ApiReferenceToolbarConfigLayoutOptions.vue.d.ts.map +1 -0
  154. package/dist/features/toolbar/ApiReferenceToolbarConfigLayoutOptions.vue.js +123 -0
  155. package/dist/features/toolbar/ApiReferenceToolbarConfigLayoutOptions.vue2.js +4 -0
  156. package/dist/features/toolbar/ApiReferenceToolbarConfigTheme.vue.d.ts +11 -0
  157. package/dist/features/toolbar/ApiReferenceToolbarConfigTheme.vue.d.ts.map +1 -0
  158. package/dist/features/toolbar/ApiReferenceToolbarConfigTheme.vue.js +41 -0
  159. package/dist/features/toolbar/ApiReferenceToolbarConfigTheme.vue2.js +4 -0
  160. package/dist/features/toolbar/ApiReferenceToolbarPopover.vue.d.ts +26 -0
  161. package/dist/features/toolbar/ApiReferenceToolbarPopover.vue.d.ts.map +1 -0
  162. package/dist/features/toolbar/ApiReferenceToolbarPopover.vue.js +46 -0
  163. package/dist/features/toolbar/ApiReferenceToolbarPopover.vue2.js +4 -0
  164. package/dist/features/toolbar/ApiReferenceToolbarRegisterButton.vue.d.ts +25 -0
  165. package/dist/features/toolbar/ApiReferenceToolbarRegisterButton.vue.d.ts.map +1 -0
  166. package/dist/features/toolbar/ApiReferenceToolbarRegisterButton.vue.js +58 -0
  167. package/dist/features/toolbar/ApiReferenceToolbarRegisterButton.vue2.js +4 -0
  168. package/dist/features/toolbar/ApiReferenceToolbarSdks.vue.d.ts +7 -0
  169. package/dist/features/toolbar/ApiReferenceToolbarSdks.vue.d.ts.map +1 -0
  170. package/dist/features/toolbar/ApiReferenceToolbarSdks.vue.js +84 -0
  171. package/dist/features/toolbar/ApiReferenceToolbarSdks.vue2.js +4 -0
  172. package/dist/features/toolbar/ApiReferenceToolbarShare.vue.d.ts +7 -0
  173. package/dist/features/toolbar/ApiReferenceToolbarShare.vue.d.ts.map +1 -0
  174. package/dist/features/toolbar/ApiReferenceToolbarShare.vue.js +42 -0
  175. package/dist/features/toolbar/ApiReferenceToolbarShare.vue2.js +4 -0
  176. package/dist/features/toolbar/ApiReferenceToolbarShareRegister.vue.d.ts +7 -0
  177. package/dist/features/toolbar/ApiReferenceToolbarShareRegister.vue.d.ts.map +1 -0
  178. package/dist/features/toolbar/ApiReferenceToolbarShareRegister.vue.js +56 -0
  179. package/dist/features/toolbar/ApiReferenceToolbarShareRegister.vue2.js +4 -0
  180. package/dist/{v2/blocks/scalar-request-example-block/components/ExamplePicker.vue.d.ts → features/toolbar/ApiReferenceToolbarShareTemporary.vue.d.ts} +6 -6
  181. package/dist/features/toolbar/ApiReferenceToolbarShareTemporary.vue.d.ts.map +1 -0
  182. package/dist/features/toolbar/ApiReferenceToolbarShareTemporary.vue.js +83 -0
  183. package/dist/features/toolbar/ApiReferenceToolbarShareTemporary.vue2.js +4 -0
  184. package/dist/features/toolbar/ApiReferenceToolbarTitle.vue.d.ts +3 -0
  185. package/dist/features/toolbar/ApiReferenceToolbarTitle.vue.d.ts.map +1 -0
  186. package/dist/features/toolbar/ApiReferenceToolbarTitle.vue.js +51 -0
  187. package/dist/features/toolbar/ApiReferenceToolbarTitle.vue2.js +4 -0
  188. package/dist/features/toolbar/uploadTempDocument.d.ts +3 -0
  189. package/dist/features/toolbar/uploadTempDocument.d.ts.map +1 -0
  190. package/dist/features/toolbar/uploadTempDocument.js +21 -0
  191. package/dist/helpers/test-utils.d.ts +3 -365
  192. package/dist/helpers/test-utils.d.ts.map +1 -1
  193. package/dist/hooks/useNavState.d.ts +4 -2
  194. package/dist/hooks/useNavState.d.ts.map +1 -1
  195. package/dist/hooks/useNavState.js +31 -27
  196. package/dist/index.d.ts +1 -0
  197. package/dist/index.d.ts.map +1 -1
  198. package/dist/index.js +21 -19
  199. package/dist/style.css +1 -1
  200. package/dist/types.d.ts.map +1 -1
  201. package/dist/v2/ApiReferenceWorkspace.vue.d.ts +6 -6
  202. package/dist/v2/ApiReferenceWorkspace.vue.d.ts.map +1 -1
  203. package/dist/v2/ApiReferenceWorkspace.vue.js +93 -79
  204. package/dist/v2/blocks/scalar-client-selector-block/components/ClientDropdown.vue.d.ts +1 -1
  205. package/dist/v2/blocks/scalar-client-selector-block/components/ClientDropdown.vue.d.ts.map +1 -1
  206. package/dist/v2/blocks/scalar-client-selector-block/components/ClientDropdown.vue.js +2 -2
  207. package/dist/v2/blocks/scalar-client-selector-block/components/ClientDropdown.vue2.js +11 -11
  208. package/dist/v2/blocks/scalar-client-selector-block/components/ClientSelector.vue.d.ts +2 -2
  209. package/dist/v2/blocks/scalar-client-selector-block/components/ClientSelector.vue.d.ts.map +1 -1
  210. package/dist/v2/blocks/scalar-client-selector-block/components/ClientSelector.vue.js +2 -2
  211. package/dist/v2/blocks/scalar-client-selector-block/components/ClientSelector.vue2.js +10 -10
  212. package/dist/v2/blocks/scalar-client-selector-block/helpers/featured-clients.d.ts +1 -1
  213. package/dist/v2/blocks/scalar-client-selector-block/helpers/featured-clients.d.ts.map +1 -1
  214. package/dist/v2/blocks/scalar-info-block/components/DownloadLink.vue.d.ts +3 -0
  215. package/dist/v2/blocks/scalar-info-block/components/DownloadLink.vue.d.ts.map +1 -1
  216. package/dist/v2/blocks/scalar-info-block/components/DownloadLink.vue.js +2 -2
  217. package/dist/v2/blocks/scalar-info-block/components/DownloadLink.vue2.js +32 -31
  218. package/dist/v2/blocks/scalar-info-block/components/InfoBlock.vue.d.ts +15 -8
  219. package/dist/v2/blocks/scalar-info-block/components/InfoBlock.vue.d.ts.map +1 -1
  220. package/dist/v2/blocks/scalar-info-block/components/InfoBlock.vue.js +25 -20
  221. package/dist/v2/blocks/scalar-info-block/components/IntroductionLayout.vue.d.ts +8 -7
  222. package/dist/v2/blocks/scalar-info-block/components/IntroductionLayout.vue.d.ts.map +1 -1
  223. package/dist/v2/blocks/scalar-info-block/components/IntroductionLayout.vue.js +1 -1
  224. package/dist/v2/blocks/scalar-info-block/components/IntroductionLayout.vue2.js +27 -32
  225. package/dist/v2/blocks/scalar-server-selector-block/components/Selector.vue.d.ts +2 -22
  226. package/dist/v2/blocks/scalar-server-selector-block/components/Selector.vue.d.ts.map +1 -1
  227. package/dist/v2/blocks/scalar-sidebar-block/components/SidebarBlock.vue.d.ts +8 -0
  228. package/dist/v2/blocks/scalar-sidebar-block/components/SidebarBlock.vue.d.ts.map +1 -1
  229. package/dist/v2/blocks/scalar-sidebar-block/components/SidebarBlock.vue.js +2 -2
  230. package/dist/v2/blocks/scalar-sidebar-block/components/SidebarBlock.vue2.js +70 -65
  231. package/dist/v2/blocks/scalar-sidebar-block/components/SidebarElement.vue.d.ts +9 -1
  232. package/dist/v2/blocks/scalar-sidebar-block/components/SidebarElement.vue.d.ts.map +1 -1
  233. package/dist/v2/blocks/scalar-sidebar-block/components/SidebarElement.vue.js +2 -2
  234. package/dist/v2/blocks/scalar-sidebar-block/components/SidebarElement.vue2.js +60 -57
  235. package/dist/v2/blocks/scalar-sidebar-block/helpers/create-sidebar.d.ts +3 -365
  236. package/dist/v2/blocks/scalar-sidebar-block/helpers/create-sidebar.d.ts.map +1 -1
  237. package/dist/v2/blocks/scalar-sidebar-block/helpers/generate-reverse-index.d.ts +3 -183
  238. package/dist/v2/blocks/scalar-sidebar-block/helpers/generate-reverse-index.d.ts.map +1 -1
  239. package/dist/v2/helpers/map-configuration.d.ts +22 -22
  240. package/dist/v2/helpers/map-configuration.d.ts.map +1 -1
  241. package/package.json +21 -18
  242. package/dist/components/Content/Operations/TraversedEntryContainer.vue.d.ts +0 -13
  243. package/dist/components/Content/Operations/TraversedEntryContainer.vue.d.ts.map +0 -1
  244. package/dist/components/Content/Operations/TraversedEntryContainer.vue.js +0 -52
  245. package/dist/components/Content/Operations/TraversedEntryContainer.vue2.js +0 -4
  246. package/dist/components/Content/Operations/index.d.ts +0 -2
  247. package/dist/components/Content/Operations/index.d.ts.map +0 -1
  248. package/dist/hooks/useConfig.d.ts +0 -9
  249. package/dist/hooks/useConfig.d.ts.map +0 -1
  250. package/dist/hooks/useConfig.js +0 -10
  251. package/dist/legacy/stores/index.d.ts +0 -2
  252. package/dist/legacy/stores/index.d.ts.map +0 -1
  253. package/dist/legacy/stores/useExampleStore.d.ts +0 -5
  254. package/dist/legacy/stores/useExampleStore.d.ts.map +0 -1
  255. package/dist/legacy/stores/useExampleStore.js +0 -8
  256. package/dist/v2/blocks/scalar-request-example-block/components/ExamplePicker.vue.d.ts.map +0 -1
  257. package/dist/v2/blocks/scalar-request-example-block/components/ExamplePicker.vue.js +0 -4
  258. package/dist/v2/blocks/scalar-request-example-block/components/ExamplePicker.vue2.js +0 -55
  259. package/dist/v2/blocks/scalar-request-example-block/components/RequestExample.vue.d.ts +0 -79
  260. package/dist/v2/blocks/scalar-request-example-block/components/RequestExample.vue.d.ts.map +0 -1
  261. package/dist/v2/blocks/scalar-request-example-block/components/RequestExample.vue.js +0 -7
  262. package/dist/v2/blocks/scalar-request-example-block/components/RequestExample.vue2.js +0 -236
  263. package/dist/v2/blocks/scalar-request-example-block/helpers/find-client.d.ts +0 -41
  264. package/dist/v2/blocks/scalar-request-example-block/helpers/find-client.d.ts.map +0 -1
  265. package/dist/v2/blocks/scalar-request-example-block/helpers/find-client.js +0 -22
  266. package/dist/v2/blocks/scalar-request-example-block/helpers/generate-client-options.d.ts +0 -20
  267. package/dist/v2/blocks/scalar-request-example-block/helpers/generate-client-options.d.ts.map +0 -1
  268. package/dist/v2/blocks/scalar-request-example-block/helpers/generate-client-options.js +0 -33
  269. package/dist/v2/blocks/scalar-request-example-block/helpers/generate-code-snippet.d.ts +0 -17
  270. package/dist/v2/blocks/scalar-request-example-block/helpers/generate-code-snippet.d.ts.map +0 -1
  271. package/dist/v2/blocks/scalar-request-example-block/helpers/generate-code-snippet.js +0 -26
  272. package/dist/v2/blocks/scalar-request-example-block/helpers/get-secrets.d.ts +0 -4
  273. package/dist/v2/blocks/scalar-request-example-block/helpers/get-secrets.d.ts.map +0 -1
  274. package/dist/v2/blocks/scalar-request-example-block/helpers/get-secrets.js +0 -10
  275. package/dist/v2/blocks/scalar-request-example-block/index.d.ts +0 -3
  276. package/dist/v2/blocks/scalar-request-example-block/index.d.ts.map +0 -1
  277. package/dist/v2/blocks/scalar-request-example-block/types.d.ts +0 -29
  278. package/dist/v2/blocks/scalar-request-example-block/types.d.ts.map +0 -1
@@ -1 +1 @@
1
- {"version":3,"file":"Content.vue.d.ts","sourceRoot":"","sources":["../../../src/components/Content/Content.vue"],"names":[],"mappings":"AAoMA,OAAO,KAAK,EAAE,yBAAyB,EAAE,MAAM,eAAe,CAAA;AAC9D,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,gCAAgC,CAAA;AAkBpE,KAAK,WAAW,GAAG;IACjB,MAAM,EAAE,yBAAyB,CAAA;IACjC,KAAK,EAAE,cAAc,CAAA;CACtB,CAAC;AAiUF,QAAA,IAAI,OAAO,IAAU,EAAE,QAAQ,IAAW,EAAE,QAAQ,IAAY,CAAE;AAClE,KAAK,WAAW,GAAG,EAAE,GACnB;IAAE,KAAK,CAAC,EAAE,CAAC,KAAK,EAAE,OAAO,OAAO,KAAK,GAAG,CAAA;CAAE,GAC1C;IAAE,aAAa,CAAC,EAAE,CAAC,KAAK,EAAE,OAAO,QAAQ,KAAK,GAAG,CAAA;CAAE,GACnD;IAAE,GAAG,CAAC,EAAE,CAAC,KAAK,EAAE,OAAO,QAAQ,KAAK,GAAG,CAAA;CAAE,CAAC;AAuC5C,QAAA,MAAM,eAAe,kSAMnB,CAAC;wBACkB,eAAe,CAAC,OAAO,eAAe,EAAE,WAAW,CAAC;AAAzE,wBAA0E;AAQ1E,KAAK,eAAe,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG;IAChC,QAAO;QACN,MAAM,EAAE,CAAC,CAAC;KAEV,CAAA;CACD,CAAC"}
1
+ {"version":3,"file":"Content.vue.d.ts","sourceRoot":"","sources":["../../../src/components/Content/Content.vue"],"names":[],"mappings":"AAyQA,OAAO,KAAK,EAAE,yBAAyB,EAAE,MAAM,eAAe,CAAA;AAC9D,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,gCAAgC,CAAA;AAmBpE,KAAK,WAAW,GAAG;IACjB,SAAS,EAAE,MAAM,CAAA;IACjB,KAAK,EAAE,cAAc,CAAA;IACrB,OAAO,EAAE;QACP,SAAS,EAAE,OAAO,GAAG,SAAS,CAAA;QAC9B,IAAI,EAAE,MAAM,GAAG,SAAS,CAAA;QACxB,aAAa,EAAE,yBAAyB,CAAC,eAAe,CAAC,CAAA;QACzD,MAAM,EAAE,QAAQ,GAAG,SAAS,CAAA;QAC5B,QAAQ,EAAE,CAAC,MAAM,IAAI,CAAC,GAAG,SAAS,CAAA;QAClC,WAAW,EAAE,OAAO,CAAA;QACpB,eAAe,CAAC,EAAE,OAAO,GAAG,SAAS,CAAA;QACrC,qBAAqB,EAAE,OAAO,GAAG,SAAS,CAAA;QAC1C,kBAAkB,CAAC,EAAE,OAAO,CAAA;QAC5B,UAAU,EAAE,OAAO,GAAG,SAAS,CAAA;QAC/B,sBAAsB,EAAE,OAAO,GAAG,SAAS,CAAA;QAC3C,4BAA4B,EAAE,OAAO,GAAG,SAAS,CAAA;QACjD,uBAAuB,EAAE,OAAO,GAAG,UAAU,GAAG,SAAS,CAAA;QACzD,oBAAoB,EAAE,yBAAyB,CAAC,sBAAsB,CAAC,CAAA;QACvE,GAAG,EAAE,MAAM,GAAG,SAAS,CAAA;QACvB,UAAU,EAAE,CAAC,CAAC,EAAE,EAAE,MAAM,KAAK,IAAI,CAAC,GAAG,SAAS,CAAA;KAC/C,CAAA;CACF,CAAC;AA4YF,QAAA,IAAI,OAAO,IAAU,EAAE,QAAQ,IAAW,EAAE,QAAQ,IAAY,CAAE;AAClE,KAAK,WAAW,GAAG,EAAE,GACnB;IAAE,KAAK,CAAC,EAAE,CAAC,KAAK,EAAE,OAAO,OAAO,KAAK,GAAG,CAAA;CAAE,GAC1C;IAAE,aAAa,CAAC,EAAE,CAAC,KAAK,EAAE,OAAO,QAAQ,KAAK,GAAG,CAAA;CAAE,GACnD;IAAE,GAAG,CAAC,EAAE,CAAC,KAAK,EAAE,OAAO,QAAQ,KAAK,GAAG,CAAA;CAAE,CAAC;AA0C5C,QAAA,MAAM,eAAe,kSAMnB,CAAC;wBACkB,eAAe,CAAC,OAAO,eAAe,EAAE,WAAW,CAAC;AAAzE,wBAA0E;AAQ1E,KAAK,eAAe,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG;IAChC,QAAO;QACN,MAAM,EAAE,CAAC,CAAC;KAEV,CAAA;CACD,CAAC"}
@@ -1,89 +1,102 @@
1
- import { defineComponent as $, computed as c, createElementBlock as A, openBlock as s, Fragment as L, createVNode as r, createElementVNode as U, unref as t, renderSlot as m, createBlock as a, createCommentVNode as l, withCtx as o } from "vue";
2
- import { useWorkspace as B, useActiveEntities as F } from "@scalar/api-client/store";
3
- import { ScalarErrorBoundary as d } from "@scalar/components";
4
- import { getSlugUid as I } from "@scalar/oas-utils/transforms";
5
- import j from "./IntroductionSection.vue.js";
6
- import { useFreezing as N } from "../../hooks/useFreezing.js";
7
- import { generateClientOptions as W } from "../../v2/blocks/scalar-request-example-block/helpers/generate-client-options.js";
8
- import { useSidebar as z } from "../../v2/blocks/scalar-sidebar-block/hooks/useSidebar.js";
9
- import { getXKeysFromObject as g } from "../../features/specification-extension/helpers.js";
10
- import K from "../SectionFlare/SectionFlare.vue.js";
11
- import M from "../../v2/blocks/scalar-info-block/components/InfoBlock.vue.js";
1
+ import { defineComponent as R, computed as n, createElementBlock as w, openBlock as i, Fragment as V, createVNode as r, createElementVNode as $, unref as o, renderSlot as p, createCommentVNode as l, createBlock as c, withCtx as s } from "vue";
2
+ import { useWorkspace as M, useActiveEntities as q } from "@scalar/api-client/store";
3
+ import { generateClientOptions as U } from "@scalar/api-client/v2/blocks/operation-code-sample";
4
+ import { ScalarErrorBoundary as v } from "@scalar/components";
5
+ import { getSlugUid as L } from "@scalar/oas-utils/transforms";
6
+ import N from "./IntroductionSection.vue.js";
7
+ import { getCurrentIndex as T } from "./Operations/get-current-index.js";
8
+ import j from "./Operations/TraversedEntry.vue.js";
9
+ import { useFreezing as W } from "../../hooks/useFreezing.js";
10
+ import { useNavState as z } from "../../hooks/useNavState.js";
11
+ import { getXKeysFromObject as D } from "../../features/specification-extension/helpers.js";
12
+ import { useSidebar as K } from "../../v2/blocks/scalar-sidebar-block/hooks/useSidebar.js";
13
+ import X from "../SectionFlare/SectionFlare.vue.js";
14
+ import G from "../../v2/blocks/scalar-info-block/components/InfoBlock.vue.js";
12
15
  import f from "../../v2/blocks/scalar-info-block/components/IntroductionCardItem.vue.js";
13
- import X from "../../v2/blocks/scalar-server-selector-block/components/ServerSelector.vue.js";
14
- import q from "../../v2/blocks/scalar-auth-selector-block/components/AuthSelector.vue.js";
15
- import G from "../../v2/blocks/scalar-client-selector-block/components/ClientSelector.vue.js";
16
- import H from "./Operations/TraversedEntryContainer.vue.js";
17
- import J from "./Models/Models.vue.js";
18
- const P = { class: "narrow-references-container" }, me = /* @__PURE__ */ $({
16
+ import H from "../../v2/blocks/scalar-server-selector-block/components/ServerSelector.vue.js";
17
+ import J from "../../v2/blocks/scalar-auth-selector-block/components/AuthSelector.vue.js";
18
+ import Q from "../../v2/blocks/scalar-client-selector-block/components/ClientSelector.vue.js";
19
+ import Y from "./Models/Models.vue.js";
20
+ const Z = { class: "narrow-references-container" }, x = { key: 0 }, ke = /* @__PURE__ */ R({
19
21
  __name: "Content",
20
22
  props: {
21
- config: {},
22
- store: {}
23
+ contentId: {},
24
+ store: {},
25
+ options: {}
23
26
  },
24
- setup(i) {
25
- N();
26
- const u = c(
27
- () => W(i.config.hiddenClients)
28
- ), { items: k } = z(), S = c(() => k.value.entries[0]?.id), h = c(
29
- () => g(i.store.workspace.activeDocument)
30
- ), w = c(
31
- () => g(i.store.workspace.activeDocument?.info)
32
- ), { collections: y, securitySchemes: D, servers: v } = B(), {
33
- activeCollection: C,
34
- activeEnvVariables: E,
35
- activeEnvironment: O,
36
- activeWorkspace: p
37
- } = F(), n = c(() => {
38
- if (i.config.slug) {
39
- const e = y[I(i.config.slug)];
27
+ setup(a) {
28
+ W();
29
+ const d = n(
30
+ () => U(a.options.hiddenClients)
31
+ ), g = n(
32
+ () => D(a.store.workspace.activeDocument)
33
+ ), C = n(
34
+ () => D(a.store.workspace.activeDocument?.info)
35
+ ), { collections: E, securitySchemes: I, servers: h } = M(), {
36
+ activeCollection: b,
37
+ activeEnvVariables: A,
38
+ activeEnvironment: B,
39
+ activeWorkspace: S
40
+ } = q(), t = n(() => {
41
+ if (a.options.slug) {
42
+ const e = E[L(a.options.slug)];
40
43
  if (e)
41
44
  return e;
42
45
  }
43
- return C.value;
44
- }), b = c(() => {
45
- if (n.value) {
46
- if (n.value.selectedServerUid) {
47
- const e = v[n.value.selectedServerUid];
46
+ return b.value;
47
+ }), k = n(() => {
48
+ if (t.value) {
49
+ if (t.value.selectedServerUid) {
50
+ const e = h[t.value.selectedServerUid];
48
51
  if (e)
49
52
  return e;
50
53
  }
51
- return v[n.value.servers[0]];
54
+ return h[t.value.servers[0]];
52
55
  }
53
- }), V = () => i.store.exportActiveDocument("json") ?? "{}";
54
- return (e, Q) => (s(), A(L, null, [
55
- r(t(K)),
56
- U("div", P, [
57
- m(e.$slots, "start"),
58
- r(j, {
56
+ }), O = () => a.store.exportActiveDocument("json") ?? "{}", { items: u } = K(), { hash: m } = z(), F = n(
57
+ () => T(m.value, u.value.entries)
58
+ ), P = n(() => {
59
+ const e = u.value.entries.find((y) => y.id === "models");
60
+ return e && e.type === "text" ? e : void 0;
61
+ });
62
+ return (e, y) => (i(), w(V, null, [
63
+ r(o(X)),
64
+ $("div", Z, [
65
+ p(e.$slots, "start"),
66
+ r(N, {
59
67
  showEmptyState: !e.store.workspace.activeDocument
60
68
  }, {
61
- "empty-state": o(() => [
62
- m(e.$slots, "empty-state")
69
+ "empty-state": s(() => [
70
+ p(e.$slots, "empty-state")
63
71
  ]),
64
- default: o(() => [
65
- e.store.workspace.activeDocument ? (s(), a(t(M), {
72
+ default: s(() => [
73
+ e.store.workspace.activeDocument ? (i(), c(o(G), {
66
74
  key: 0,
67
- id: S.value,
68
- documentExtensions: h.value,
75
+ id: e.contentId,
76
+ documentExtensions: g.value,
69
77
  externalDocs: e.store.workspace.activeDocument.externalDocs,
70
- getOriginalDocument: V,
71
78
  info: e.store.workspace.activeDocument.info,
72
- infoExtensions: w.value,
73
- isLoading: e.config.isLoading,
74
- layout: e.config.layout,
79
+ infoExtensions: C.value,
80
+ layout: e.options.layout,
75
81
  oasVersion: e.store.workspace.activeDocument?.["x-original-oas-version"],
76
- onLoaded: e.config.onLoaded
82
+ options: {
83
+ documentDownloadType: e.options.documentDownloadType,
84
+ url: e.options.url,
85
+ getOriginalDocument: O,
86
+ isLoading: e.options.isLoading,
87
+ layout: e.options.layout,
88
+ onLoaded: e.options.onLoaded
89
+ }
77
90
  }, {
78
- selectors: o(() => [
79
- r(t(d), null, {
80
- default: o(() => [
81
- e.store.workspace.activeDocument?.servers?.length ? (s(), a(t(f), {
91
+ selectors: s(() => [
92
+ r(o(v), null, {
93
+ default: s(() => [
94
+ e.store.workspace.activeDocument?.servers?.length ? (i(), c(o(f), {
82
95
  key: 0,
83
96
  class: "scalar-reference-intro-server scalar-client introduction-card-item text-base leading-normal [--scalar-address-bar-height:0px]"
84
97
  }, {
85
- default: o(() => [
86
- r(t(X), {
98
+ default: s(() => [
99
+ r(o(H), {
87
100
  servers: e.store.workspace.activeDocument?.servers ?? [],
88
101
  xSelectedServer: e.store.workspace.activeDocument?.["x-scalar-active-server"]
89
102
  }, null, 8, ["servers", "xSelectedServer"])
@@ -93,23 +106,23 @@ const P = { class: "narrow-references-container" }, me = /* @__PURE__ */ $({
93
106
  ]),
94
107
  _: 1
95
108
  }),
96
- r(t(d), null, {
97
- default: o(() => [
98
- n.value && t(p) && Object.keys(t(D) ?? {}).length ? (s(), a(t(f), {
109
+ r(o(v), null, {
110
+ default: s(() => [
111
+ t.value && o(S) && Object.keys(o(I) ?? {}).length ? (i(), c(o(f), {
99
112
  key: 0,
100
113
  class: "scalar-reference-intro-auth scalar-client introduction-card-item leading-normal"
101
114
  }, {
102
- default: o(() => [
103
- r(t(q), {
104
- collection: n.value,
105
- envVariables: t(E),
106
- environment: t(O),
115
+ default: s(() => [
116
+ r(o(J), {
117
+ collection: t.value,
118
+ envVariables: o(A),
119
+ environment: o(B),
107
120
  layout: "reference",
108
- persistAuth: e.config?.persistAuth,
109
- selectedSecuritySchemeUids: n.value?.selectedSecuritySchemeUids ?? [],
110
- server: b.value,
121
+ persistAuth: e.options.persistAuth,
122
+ selectedSecuritySchemeUids: t.value?.selectedSecuritySchemeUids ?? [],
123
+ server: k.value,
111
124
  title: "Authentication",
112
- workspace: t(p)
125
+ workspace: o(S)
113
126
  }, null, 8, ["collection", "envVariables", "environment", "persistAuth", "selectedSecuritySchemeUids", "server", "workspace"])
114
127
  ]),
115
128
  _: 1
@@ -117,16 +130,16 @@ const P = { class: "narrow-references-container" }, me = /* @__PURE__ */ $({
117
130
  ]),
118
131
  _: 1
119
132
  }),
120
- r(t(d), null, {
121
- default: o(() => [
122
- e.config?.hiddenClients !== !0 && u.value.length ? (s(), a(t(f), {
133
+ r(o(v), null, {
134
+ default: s(() => [
135
+ e.options.hiddenClients !== !0 && d.value.length ? (i(), c(o(f), {
123
136
  key: 0,
124
137
  class: "introduction-card-item scalar-reference-intro-clients"
125
138
  }, {
126
- default: o(() => [
127
- r(t(G), {
139
+ default: s(() => [
140
+ r(o(Q), {
128
141
  class: "introduction-card-item scalar-reference-intro-clients",
129
- clientOptions: u.value,
142
+ clientOptions: d.value,
130
143
  xScalarSdkInstallation: e.store.workspace.activeDocument?.info?.["x-scalar-sdk-installation"],
131
144
  xSelectedClient: e.store.workspace["x-scalar-default-client"]
132
145
  }, null, 8, ["clientOptions", "xScalarSdkInstallation", "xSelectedClient"])
@@ -138,27 +151,51 @@ const P = { class: "narrow-references-container" }, me = /* @__PURE__ */ $({
138
151
  })
139
152
  ]),
140
153
  _: 1
141
- }, 8, ["id", "documentExtensions", "externalDocs", "info", "infoExtensions", "isLoading", "layout", "oasVersion", "onLoaded"])) : l("", !0)
154
+ }, 8, ["id", "documentExtensions", "externalDocs", "info", "infoExtensions", "layout", "oasVersion", "options"])) : l("", !0)
142
155
  ]),
143
156
  _: 3
144
157
  }, 8, ["showEmptyState"]),
145
- e.store.workspace.activeDocument ? (s(), a(t(H), {
146
- key: 0,
147
- clientOptions: u.value,
148
- config: e.config,
149
- document: e.store.workspace.activeDocument,
150
- store: e.store
151
- }, null, 8, ["clientOptions", "config", "document", "store"])) : l("", !0),
152
- !e.config?.hideModels && e.store.workspace.activeDocument ? (s(), a(t(J), {
158
+ o(u).entries.length && t.value ? (i(), w("div", x, [
159
+ r(j, {
160
+ activeCollection: t.value,
161
+ activeServer: k.value,
162
+ entries: o(u).entries,
163
+ hash: o(m),
164
+ options: {
165
+ layout: e.options.layout ?? "modern",
166
+ showOperationId: e.options.showOperationId,
167
+ hideTestRequestButton: e.options.hideTestRequestButton,
168
+ expandAllResponses: e.options.expandAllResponses,
169
+ clientOptions: d.value,
170
+ orderRequiredPropertiesFirst: e.options.orderRequiredPropertiesFirst,
171
+ orderSchemaPropertiesBy: e.options.orderSchemaPropertiesBy,
172
+ onShowMore: e.options.onShowMore
173
+ },
174
+ paths: e.store.workspace.activeDocument?.paths ?? {},
175
+ rootIndex: F.value,
176
+ security: e.store.workspace.activeDocument?.security,
177
+ store: e.store,
178
+ webhooks: e.store.workspace.activeDocument?.webhooks ?? {}
179
+ }, null, 8, ["activeCollection", "activeServer", "entries", "hash", "options", "paths", "rootIndex", "security", "store", "webhooks"])
180
+ ])) : l("", !0),
181
+ !e.options.hideModels && e.store.workspace.activeDocument ? (i(), c(o(Y), {
153
182
  key: 1,
154
- config: e.config,
183
+ hash: o(m),
184
+ models: P.value,
185
+ options: {
186
+ layout: e.options.layout ?? "modern",
187
+ expandAllModelSections: e.options.expandAllModelSections,
188
+ orderRequiredPropertiesFirst: e.options.orderRequiredPropertiesFirst,
189
+ orderSchemaPropertiesBy: e.options.orderSchemaPropertiesBy,
190
+ onShowMore: e.options.onShowMore
191
+ },
155
192
  schemas: e.store.workspace.activeDocument.components?.schemas
156
- }, null, 8, ["config", "schemas"])) : l("", !0),
157
- m(e.$slots, "end")
193
+ }, null, 8, ["hash", "models", "options", "schemas"])) : l("", !0),
194
+ p(e.$slots, "end")
158
195
  ])
159
196
  ], 64));
160
197
  }
161
198
  });
162
199
  export {
163
- me as default
200
+ ke as default
164
201
  };
@@ -1,7 +1,9 @@
1
- import type { ApiReferenceConfiguration } from '@scalar/types/api-reference';
2
1
  import type { SchemaObject } from '@scalar/workspace-store/schemas/v3.1/strict/openapi-document';
3
2
  type __VLS_Props = {
4
- config: ApiReferenceConfiguration;
3
+ options: {
4
+ orderRequiredPropertiesFirst: boolean | undefined;
5
+ orderSchemaPropertiesBy: 'alpha' | 'preserve' | undefined;
6
+ };
5
7
  schemas: {
6
8
  id: string;
7
9
  name: string;
@@ -1 +1 @@
1
- {"version":3,"file":"ClassicLayout.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/Content/Models/ClassicLayout.vue"],"names":[],"mappings":"AA6FA,OAAO,KAAK,EAAE,yBAAyB,EAAE,MAAM,6BAA6B,CAAA;AAE5E,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,8DAA8D,CAAA;AAYhG,KAAK,WAAW,GAAG;IACjB,MAAM,EAAE,yBAAyB,CAAA;IACjC,OAAO,EAAE;QAAE,EAAE,EAAE,MAAM,CAAC;QAAC,IAAI,EAAE,MAAM,CAAC;QAAC,MAAM,EAAE,YAAY,CAAA;KAAE,EAAE,CAAA;CAC9D,CAAC;;AAyLF,wBAMG"}
1
+ {"version":3,"file":"ClassicLayout.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/Content/Models/ClassicLayout.vue"],"names":[],"mappings":"AAgGA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,8DAA8D,CAAA;AAYhG,KAAK,WAAW,GAAG;IACjB,OAAO,EAAE;QACP,4BAA4B,EAAE,OAAO,GAAG,SAAS,CAAA;QACjD,uBAAuB,EAAE,OAAO,GAAG,UAAU,GAAG,SAAS,CAAA;KAC1D,CAAA;IACD,OAAO,EAAE;QAAE,EAAE,EAAE,MAAM,CAAC;QAAC,IAAI,EAAE,MAAM,CAAC;QAAC,MAAM,EAAE,YAAY,CAAA;KAAE,EAAE,CAAA;CAC9D,CAAC;;AAyLF,wBAMG"}
@@ -1,7 +1,7 @@
1
1
  import o from "./ClassicLayout.vue2.js";
2
2
  /* empty css */
3
3
  import t from "../../../_virtual/_plugin-vue_export-helper.js";
4
- const f = /* @__PURE__ */ t(o, [["__scopeId", "data-v-42f5a051"]]);
4
+ const s = /* @__PURE__ */ t(o, [["__scopeId", "data-v-fafd6f50"]]);
5
5
  export {
6
- f as default
6
+ s as default
7
7
  };
@@ -1,50 +1,50 @@
1
- import { defineComponent as h, createBlock as a, createCommentVNode as g, openBlock as r, unref as e, withCtx as o, createElementBlock as s, Fragment as p, renderList as u, createVNode as n, createTextVNode as S } from "vue";
2
- import { getResolvedRef as y } from "@scalar/workspace-store/helpers/get-resolved-ref";
3
- import P from "../../Section/SectionContainerAccordion.vue.js";
4
- import k from "../../Section/SectionAccordion.vue.js";
1
+ import { defineComponent as h, createBlock as a, createCommentVNode as S, openBlock as r, unref as e, withCtx as o, createElementBlock as n, Fragment as c, renderList as u, createVNode as s, createTextVNode as y } from "vue";
2
+ import { getResolvedRef as P } from "@scalar/workspace-store/helpers/get-resolved-ref";
3
+ import k from "../../Section/SectionContainerAccordion.vue.js";
4
+ import q from "../../Section/SectionAccordion.vue.js";
5
5
  import f from "../Schema/SchemaProperty.vue.js";
6
- import q from "../../Anchor/Anchor.vue.js";
7
- import v from "../../Section/SectionHeaderTag.vue.js";
8
- import B from "../Schema/SchemaHeading.vue.js";
9
- import R from "../../Section/SectionHeader.vue.js";
6
+ import v from "../../Anchor/Anchor.vue.js";
7
+ import B from "../../Section/SectionHeaderTag.vue.js";
8
+ import R from "../Schema/SchemaHeading.vue.js";
9
+ import g from "../../Section/SectionHeader.vue.js";
10
10
  const C = {
11
11
  key: 0,
12
12
  class: "properties"
13
13
  }, F = { key: 1 }, M = /* @__PURE__ */ h({
14
14
  __name: "ClassicLayout",
15
15
  props: {
16
- config: {},
16
+ options: {},
17
17
  schemas: {}
18
18
  },
19
19
  setup(b) {
20
- return (t, m) => t.schemas.length ? (r(), a(e(P), {
20
+ return (t, m) => t.schemas.length ? (r(), a(e(k), {
21
21
  key: 0,
22
22
  class: "reference-models"
23
23
  }, {
24
24
  title: o(() => [
25
- n(e(R), { level: 2 }, {
25
+ s(e(g), { level: 2 }, {
26
26
  default: o(() => m[0] || (m[0] = [
27
- S("Models")
27
+ y("Models")
28
28
  ])),
29
29
  _: 1,
30
30
  __: [0]
31
31
  })
32
32
  ]),
33
33
  default: o(() => [
34
- (r(!0), s(p, null, u(t.schemas, ({ id: c, name: l, schema: i }) => (r(), a(e(k), {
35
- id: c,
34
+ (r(!0), n(c, null, u(t.schemas, ({ id: p, name: l, schema: i }) => (r(), a(e(q), {
35
+ id: p,
36
36
  key: l,
37
37
  label: l
38
38
  }, {
39
39
  title: o(() => [
40
- n(e(q), {
41
- id: c,
40
+ s(e(v), {
41
+ id: p,
42
42
  class: "reference-models-anchor"
43
43
  }, {
44
44
  default: o(() => [
45
- n(e(v), { level: 3 }, {
45
+ s(e(B), { level: 3 }, {
46
46
  default: o(() => [
47
- n(e(B), {
47
+ s(e(R), {
48
48
  class: "reference-models-label",
49
49
  name: i.title ?? l,
50
50
  value: i
@@ -57,22 +57,22 @@ const C = {
57
57
  }, 1032, ["id"])
58
58
  ]),
59
59
  default: o(() => [
60
- "properties" in i ? (r(), s("div", C, [
61
- (r(!0), s(p, null, u(Object.entries(i.properties ?? {}), ([d, _]) => (r(), a(e(f), {
60
+ "properties" in i ? (r(), n("div", C, [
61
+ (r(!0), n(c, null, u(Object.entries(i.properties ?? {}), ([d, _]) => (r(), a(e(f), {
62
62
  key: d,
63
63
  name: d,
64
64
  options: {
65
- orderRequiredPropertiesFirst: t.config.orderRequiredPropertiesFirst,
66
- orderSchemaPropertiesBy: t.config.orderSchemaPropertiesBy
65
+ orderRequiredPropertiesFirst: t.options.orderRequiredPropertiesFirst,
66
+ orderSchemaPropertiesBy: t.options.orderSchemaPropertiesBy
67
67
  },
68
68
  required: i.required?.includes(d),
69
- schema: e(y)(_)
69
+ schema: e(P)(_)
70
70
  }, null, 8, ["name", "options", "required", "schema"]))), 128))
71
- ])) : (r(), s("div", F, [
72
- n(e(f), {
71
+ ])) : (r(), n("div", F, [
72
+ s(e(f), {
73
73
  options: {
74
- orderRequiredPropertiesFirst: t.config.orderRequiredPropertiesFirst,
75
- orderSchemaPropertiesBy: t.config.orderSchemaPropertiesBy
74
+ orderRequiredPropertiesFirst: t.options.orderRequiredPropertiesFirst,
75
+ orderSchemaPropertiesBy: t.options.orderSchemaPropertiesBy
76
76
  },
77
77
  schema: i
78
78
  }, null, 8, ["options", "schema"])
@@ -82,7 +82,7 @@ const C = {
82
82
  }, 1032, ["id", "label"]))), 128))
83
83
  ]),
84
84
  _: 1
85
- })) : g("", !0);
85
+ })) : S("", !0);
86
86
  }
87
87
  });
88
88
  export {
@@ -1,8 +1,16 @@
1
- import type { ApiReferenceConfiguration } from '@scalar/types';
1
+ import type { TraversedDescription } from '@scalar/workspace-store/schemas/navigation';
2
2
  import type { ComponentsObject } from '@scalar/workspace-store/schemas/v3.1/strict/openapi-document';
3
3
  type __VLS_Props = {
4
4
  schemas: ComponentsObject['schemas'];
5
- config: ApiReferenceConfiguration;
5
+ models: TraversedDescription | undefined;
6
+ hash: string;
7
+ options: {
8
+ layout: 'classic' | 'modern';
9
+ expandAllModelSections: boolean | undefined;
10
+ orderRequiredPropertiesFirst: boolean | undefined;
11
+ orderSchemaPropertiesBy: 'alpha' | 'preserve' | undefined;
12
+ onShowMore: ((id: string) => void) | undefined;
13
+ };
6
14
  };
7
15
  declare const _default: 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>;
8
16
  export default _default;
@@ -1 +1 @@
1
- {"version":3,"file":"Models.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/Content/Models/Models.vue"],"names":[],"mappings":"AA6DA,OAAO,KAAK,EAAE,yBAAyB,EAAE,MAAM,eAAe,CAAA;AAE9D,OAAO,KAAK,EACV,gBAAgB,EAEjB,MAAM,8DAA8D,CAAA;AAUrE,KAAK,WAAW,GAAG;IACjB,OAAO,EAAE,gBAAgB,CAAC,SAAS,CAAC,CAAA;IACpC,MAAM,EAAE,yBAAyB,CAAA;CAClC,CAAC;;AAkGF,wBAMG"}
1
+ {"version":3,"file":"Models.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/Content/Models/Models.vue"],"names":[],"mappings":"AAuDA,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,4CAA4C,CAAA;AACtF,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,8DAA8D,CAAA;AAQpG,KAAK,WAAW,GAAG;IACjB,OAAO,EAAE,gBAAgB,CAAC,SAAS,CAAC,CAAA;IACpC,MAAM,EAAE,oBAAoB,GAAG,SAAS,CAAA;IACxC,IAAI,EAAE,MAAM,CAAA;IACZ,OAAO,EAAE;QACP,MAAM,EAAE,SAAS,GAAG,QAAQ,CAAA;QAC5B,sBAAsB,EAAE,OAAO,GAAG,SAAS,CAAA;QAC3C,4BAA4B,EAAE,OAAO,GAAG,SAAS,CAAA;QACjD,uBAAuB,EAAE,OAAO,GAAG,UAAU,GAAG,SAAS,CAAA;QACzD,UAAU,EAAE,CAAC,CAAC,EAAE,EAAE,MAAM,KAAK,IAAI,CAAC,GAAG,SAAS,CAAA;KAC/C,CAAA;CACF,CAAC;;AAuFF,wBAMG"}
@@ -1,44 +1,42 @@
1
- import { defineComponent as f, computed as r, createBlock as s, createCommentVNode as u, openBlock as t, unref as a, withCtx as d } from "vue";
1
+ import { defineComponent as n, computed as i, createBlock as o, createCommentVNode as r, openBlock as a, unref as l, withCtx as c } from "vue";
2
2
  import { getResolvedRef as h } from "@scalar/workspace-store/helpers/get-resolved-ref";
3
- import { useNavState as p } from "../../../hooks/useNavState.js";
4
- import y from "./ClassicLayout.vue.js";
5
- import g from "./ModernLayout.vue.js";
6
- import { useSidebar as k } from "../../../v2/blocks/scalar-sidebar-block/hooks/useSidebar.js";
7
- import v from "../../Lazy/Lazy.vue2.js";
8
- const z = /* @__PURE__ */ f({
3
+ import p from "./ClassicLayout.vue.js";
4
+ import d from "./ModernLayout.vue.js";
5
+ import u from "../../Lazy/Lazy.vue2.js";
6
+ const v = /* @__PURE__ */ n({
9
7
  __name: "Models",
10
8
  props: {
11
9
  schemas: { default: () => ({}) },
12
- config: {}
10
+ models: {},
11
+ hash: {},
12
+ options: {}
13
13
  },
14
- setup(c) {
15
- const { hash: m } = p(), { items: i } = k(), l = r(() => i.value.entries.find(
16
- (e) => e.type === "text" && e.id === "models"
17
- )), n = r(() => (l.value?.children ?? []).filter((o) => o.type === "model").map((o) => ({
18
- id: o.id,
19
- name: o.name,
20
- schema: h(c.schemas[o.name])
14
+ setup(m) {
15
+ const t = i(() => (m.models?.children ?? []).filter((s) => s.type === "model").map((s) => ({
16
+ id: s.id,
17
+ name: s.name,
18
+ schema: h(m.schemas[s.name])
21
19
  })));
22
- return (e, o) => e.schemas && Object.keys(e.schemas).length > 0 ? (t(), s(a(v), {
20
+ return (e, s) => e.schemas && Object.keys(e.schemas).length > 0 ? (a(), o(l(u), {
23
21
  key: 0,
24
22
  id: "models",
25
- isLazy: !!a(m) && !a(m).startsWith("model")
23
+ isLazy: !!e.hash && !e.hash.startsWith("model")
26
24
  }, {
27
- default: d(() => [
28
- e.config?.layout === "classic" ? (t(), s(y, {
25
+ default: c(() => [
26
+ e.options?.layout === "classic" ? (a(), o(p, {
29
27
  key: 0,
30
- config: e.config,
31
- schemas: n.value
32
- }, null, 8, ["config", "schemas"])) : (t(), s(g, {
28
+ options: e.options,
29
+ schemas: t.value
30
+ }, null, 8, ["options", "schemas"])) : (a(), o(d, {
33
31
  key: 1,
34
- config: e.config,
35
- schemas: n.value
36
- }, null, 8, ["config", "schemas"]))
32
+ options: e.options,
33
+ schemas: t.value
34
+ }, null, 8, ["options", "schemas"]))
37
35
  ]),
38
36
  _: 1
39
- }, 8, ["isLazy"])) : u("", !0);
37
+ }, 8, ["isLazy"])) : r("", !0);
40
38
  }
41
39
  });
42
40
  export {
43
- z as default
41
+ v as default
44
42
  };
@@ -1,7 +1,11 @@
1
- import type { ApiReferenceConfiguration } from '@scalar/types';
2
1
  import type { SchemaObject } from '@scalar/workspace-store/schemas/v3.1/strict/openapi-document';
3
2
  type __VLS_Props = {
4
- config: ApiReferenceConfiguration;
3
+ options: {
4
+ expandAllModelSections: boolean | undefined;
5
+ orderRequiredPropertiesFirst: boolean | undefined;
6
+ orderSchemaPropertiesBy: 'alpha' | 'preserve' | undefined;
7
+ onShowMore: ((id: string) => void) | undefined;
8
+ };
5
9
  schemas: {
6
10
  id: string;
7
11
  name: string;
@@ -1 +1 @@
1
- {"version":3,"file":"ModernLayout.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/Content/Models/ModernLayout.vue"],"names":[],"mappings":"AAmHA,OAAO,KAAK,EAAE,yBAAyB,EAAE,MAAM,eAAe,CAAA;AAC9D,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,8DAA8D,CAAA;AAehG,KAAK,WAAW,GAAG;IACjB,MAAM,EAAE,yBAAyB,CAAA;IACjC,OAAO,EAAE;QAAE,EAAE,EAAE,MAAM,CAAC;QAAC,IAAI,EAAE,MAAM,CAAC;QAAC,MAAM,EAAE,YAAY,CAAA;KAAE,EAAE,CAAA;CAC9D,CAAC;;AA6NF,wBAMG"}
1
+ {"version":3,"file":"ModernLayout.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/Content/Models/ModernLayout.vue"],"names":[],"mappings":"AAwHA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,8DAA8D,CAAA;AAehG,KAAK,WAAW,GAAG;IACjB,OAAO,EAAE;QACP,sBAAsB,EAAE,OAAO,GAAG,SAAS,CAAA;QAC3C,4BAA4B,EAAE,OAAO,GAAG,SAAS,CAAA;QACjD,uBAAuB,EAAE,OAAO,GAAG,UAAU,GAAG,SAAS,CAAA;QACzD,UAAU,EAAE,CAAC,CAAC,EAAE,EAAE,MAAM,KAAK,IAAI,CAAC,GAAG,SAAS,CAAA;KAC/C,CAAA;IACD,OAAO,EAAE;QAAE,EAAE,EAAE,MAAM,CAAC;QAAC,IAAI,EAAE,MAAM,CAAC;QAAC,MAAM,EAAE,YAAY,CAAA;KAAE,EAAE,CAAA;CAC9D,CAAC;;AA+NF,wBAMG"}
@@ -1,7 +1,7 @@
1
1
  import o from "./ModernLayout.vue2.js";
2
2
  /* empty css */
3
3
  import t from "../../../_virtual/_plugin-vue_export-helper.js";
4
- const m = /* @__PURE__ */ t(o, [["__scopeId", "data-v-c4d2ae99"]]);
4
+ const m = /* @__PURE__ */ t(o, [["__scopeId", "data-v-8ced91a6"]]);
5
5
  export {
6
6
  m as default
7
7
  };