@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,38 +1,38 @@
1
- import { defineComponent as b, useId as y, computed as u, createBlock as s, createCommentVNode as f, openBlock as a, unref as e, withCtx as o, createVNode as l, createElementVNode as M, createTextVNode as B, normalizeClass as N, createElementBlock as k, Fragment as C, renderList as I } from "vue";
2
- import { ScalarErrorBoundary as _ } from "@scalar/components";
1
+ import { defineComponent as b, useId as y, computed as c, createBlock as s, createCommentVNode as p, openBlock as a, unref as e, withCtx as o, createVNode as l, createElementVNode as w, createTextVNode as B, normalizeClass as N, createElementBlock as g, Fragment as k, renderList as C } from "vue";
2
+ import { ScalarErrorBoundary as I } from "@scalar/components";
3
3
  import A from "../../ShowMoreButton.vue.js";
4
4
  import { useSidebar as H } from "../../../v2/blocks/scalar-sidebar-block/hooks/useSidebar.js";
5
5
  import L from "../../Section/SectionContainer.vue.js";
6
- import w from "../../Section/Section.vue.js";
6
+ import _ from "../../Section/Section.vue.js";
7
7
  import E from "../../Section/SectionHeader.vue.js";
8
- import p from "../../Section/SectionHeaderTag.vue.js";
8
+ import f from "../../Section/SectionHeaderTag.vue.js";
9
9
  import O from "../../Section/CompactSection.vue.js";
10
10
  import P from "../Schema/Schema.vue.js";
11
11
  import V from "../Schema/SchemaHeading.vue.js";
12
12
  const S = 10, G = /* @__PURE__ */ b({
13
13
  __name: "ModernLayout",
14
14
  props: {
15
- config: {},
15
+ options: {},
16
16
  schemas: { default: () => [] }
17
17
  },
18
18
  setup(r) {
19
- const m = y(), { collapsedSidebarItems: h } = H(), d = u(
20
- () => r.config.expandAllModelSections || r.schemas.length <= S || h.models
21
- ), g = u(() => d.value ? r.schemas : r.schemas.slice(0, S));
22
- return (t, c) => t.schemas ? (a(), s(e(L), {
19
+ const m = y(), { collapsedSidebarItems: h } = H(), n = c(
20
+ () => r.options.expandAllModelSections || r.schemas.length <= S || h.models
21
+ ), M = c(() => n.value ? r.schemas : r.schemas.slice(0, S));
22
+ return (t, u) => t.schemas ? (a(), s(e(L), {
23
23
  key: 0,
24
24
  id: "models"
25
25
  }, {
26
26
  default: o(() => [
27
- l(e(w), { "aria-labelledby": e(m) }, {
27
+ l(e(_), { "aria-labelledby": e(m) }, {
28
28
  default: o(() => [
29
29
  l(e(E), null, {
30
30
  default: o(() => [
31
- l(e(p), {
31
+ l(e(f), {
32
32
  id: e(m),
33
33
  level: 2
34
34
  }, {
35
- default: o(() => c[0] || (c[0] = [
35
+ default: o(() => u[0] || (u[0] = [
36
36
  B(" Models ")
37
37
  ])),
38
38
  _: 1,
@@ -41,29 +41,29 @@ const S = 10, G = /* @__PURE__ */ b({
41
41
  ]),
42
42
  _: 1
43
43
  }),
44
- M("div", {
45
- class: N(["models-list", { "models-list-truncated": !d.value }])
44
+ w("div", {
45
+ class: N(["models-list", { "models-list-truncated": !n.value }])
46
46
  }, [
47
- (a(!0), k(C, null, I(g.value, ({ id: v, name: i, schema: n }) => (a(), s(e(O), {
47
+ (a(!0), g(k, null, C(M.value, ({ id: v, name: d, schema: i }) => (a(), s(e(O), {
48
48
  id: v,
49
- key: i,
49
+ key: d,
50
50
  class: "models-list-item",
51
- defaultOpen: t.config.expandAllModelSections,
52
- label: i
51
+ defaultOpen: t.options.expandAllModelSections,
52
+ label: d
53
53
  }, {
54
54
  heading: o(() => [
55
- l(e(p), { level: 3 }, {
55
+ l(e(f), { level: 3 }, {
56
56
  default: o(() => [
57
57
  l(e(V), {
58
- name: n.title ?? i,
59
- value: n
58
+ name: i.title ?? d,
59
+ value: i
60
60
  }, null, 8, ["name", "value"])
61
61
  ]),
62
62
  _: 2
63
63
  }, 1024)
64
64
  ]),
65
65
  default: o(() => [
66
- l(e(_), null, {
66
+ l(e(I), null, {
67
67
  default: o(() => [
68
68
  l(e(P), {
69
69
  hideHeading: "",
@@ -71,10 +71,10 @@ const S = 10, G = /* @__PURE__ */ b({
71
71
  level: 1,
72
72
  noncollapsible: "",
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
- schema: n
77
+ schema: i
78
78
  }, null, 8, ["options", "schema"])
79
79
  ]),
80
80
  _: 2
@@ -83,17 +83,18 @@ const S = 10, G = /* @__PURE__ */ b({
83
83
  _: 2
84
84
  }, 1032, ["id", "defaultOpen", "label"]))), 128))
85
85
  ], 2),
86
- d.value ? f("", !0) : (a(), s(A, {
86
+ n.value ? p("", !0) : (a(), s(A, {
87
87
  key: 0,
88
88
  id: "models",
89
- class: "show-more-models"
90
- }))
89
+ class: "show-more-models",
90
+ onShowMore: t.options.onShowMore
91
+ }, null, 8, ["onShowMore"]))
91
92
  ]),
92
93
  _: 1
93
94
  }, 8, ["aria-labelledby"])
94
95
  ]),
95
96
  _: 1
96
- })) : f("", !0);
97
+ })) : p("", !0);
97
98
  }
98
99
  });
99
100
  export {
@@ -1,18 +1,32 @@
1
+ import type { ClientOptionGroup } from '@scalar/api-client/v2/blocks/operation-code-sample';
1
2
  import type { Collection, Server } from '@scalar/oas-utils/entities/spec';
2
- import type { ApiReferenceConfiguration } from '@scalar/types';
3
3
  import type { WorkspaceStore } from '@scalar/workspace-store/client';
4
- import type { OpenApiDocument, TraversedEntry } from '@scalar/workspace-store/schemas/v3.1/strict/openapi-document';
5
- import type { ClientOptionGroup } from '../../../v2/blocks/scalar-request-example-block/types';
4
+ import type { TraversedEntry } from '@scalar/workspace-store/schemas/navigation';
5
+ import type { PathsObject, SecurityRequirementObject } from '@scalar/workspace-store/schemas/v3.1/strict/openapi-document';
6
6
  type __VLS_Props = {
7
7
  level?: number;
8
+ hash: string;
8
9
  rootIndex: number;
9
10
  entries: TraversedEntry[];
10
- config: ApiReferenceConfiguration;
11
- document: OpenApiDocument;
12
- clientOptions: ClientOptionGroup[];
11
+ /** The path entries from the document `document.paths` */
12
+ paths: PathsObject;
13
+ /** The webhook path entries from the document `document.webhooks` */
14
+ webhooks: PathsObject;
15
+ /** The security requirements from the document `document.security` */
16
+ security: SecurityRequirementObject[] | undefined;
13
17
  activeCollection: Collection;
14
18
  activeServer: Server | undefined;
15
19
  store: WorkspaceStore;
20
+ options: {
21
+ layout: 'classic' | 'modern';
22
+ showOperationId: boolean | undefined;
23
+ hideTestRequestButton: boolean | undefined;
24
+ expandAllResponses: boolean | undefined;
25
+ clientOptions: ClientOptionGroup[];
26
+ orderRequiredPropertiesFirst: boolean | undefined;
27
+ orderSchemaPropertiesBy: 'alpha' | 'preserve' | undefined;
28
+ onShowMore: ((id: string) => void) | undefined;
29
+ };
16
30
  };
17
31
  declare const _default: import("vue").DefineComponent<__VLS_Props, {
18
32
  currentIndex: import("vue").ComputedRef<number>;
@@ -1 +1 @@
1
- {"version":3,"file":"TraversedEntry.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/Content/Operations/TraversedEntry.vue"],"names":[],"mappings":"AA+JA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,EAAE,MAAM,iCAAiC,CAAA;AACzE,OAAO,KAAK,EAAE,yBAAyB,EAAE,MAAM,eAAe,CAAA;AAC9D,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,gCAAgC,CAAA;AACpE,OAAO,KAAK,EACV,eAAe,EACf,cAAc,EAIf,MAAM,8DAA8D,CAAA;AASrE,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,gDAAgD,CAAA;AAEvF,KAAK,WAAW,GAAG;IACjB,KAAK,CAAC,EAAE,MAAM,CAAA;IACd,SAAS,EAAE,MAAM,CAAA;IACjB,OAAO,EAAE,cAAc,EAAE,CAAA;IACzB,MAAM,EAAE,yBAAyB,CAAA;IACjC,QAAQ,EAAE,eAAe,CAAA;IACzB,aAAa,EAAE,iBAAiB,EAAE,CAAA;IAClC,gBAAgB,EAAE,UAAU,CAAA;IAC5B,YAAY,EAAE,MAAM,GAAG,SAAS,CAAA;IAChC,KAAK,EAAE,cAAc,CAAA;CACtB,CAAC;;;oBA0CqB,cAAc,SAAS,MAAM;;AA+LpD,wBAOG"}
1
+ {"version":3,"file":"TraversedEntry.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/Content/Operations/TraversedEntry.vue"],"names":[],"mappings":"AA6LA,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,oDAAoD,CAAA;AAC3F,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,EAAE,MAAM,iCAAiC,CAAA;AACzE,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,gCAAgC,CAAA;AACpE,OAAO,KAAK,EACV,cAAc,EAIf,MAAM,4CAA4C,CAAA;AACnD,OAAO,KAAK,EACV,WAAW,EACX,yBAAyB,EAC1B,MAAM,8DAA8D,CAAA;AASrE,KAAK,WAAW,GAAG;IACjB,KAAK,CAAC,EAAE,MAAM,CAAA;IACd,IAAI,EAAE,MAAM,CAAA;IACZ,SAAS,EAAE,MAAM,CAAA;IACjB,OAAO,EAAE,cAAc,EAAE,CAAA;IACzB,0DAA0D;IAC1D,KAAK,EAAE,WAAW,CAAA;IAClB,qEAAqE;IACrE,QAAQ,EAAE,WAAW,CAAA;IACrB,sEAAsE;IACtE,QAAQ,EAAE,yBAAyB,EAAE,GAAG,SAAS,CAAA;IACjD,gBAAgB,EAAE,UAAU,CAAA;IAC5B,YAAY,EAAE,MAAM,GAAG,SAAS,CAAA;IAChC,KAAK,EAAE,cAAc,CAAA;IACrB,OAAO,EAAE;QACP,MAAM,EAAE,SAAS,GAAG,QAAQ,CAAA;QAC5B,eAAe,EAAE,OAAO,GAAG,SAAS,CAAA;QACpC,qBAAqB,EAAE,OAAO,GAAG,SAAS,CAAA;QAC1C,kBAAkB,EAAE,OAAO,GAAG,SAAS,CAAA;QACvC,aAAa,EAAE,iBAAiB,EAAE,CAAA;QAClC,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;;;oBA6CqB,cAAc,SAAS,MAAM;;AAoNpD,wBAOG"}
@@ -1,89 +1,101 @@
1
- import { defineComponent as I, computed as g, resolveComponent as S, createElementBlock as T, openBlock as t, Fragment as L, renderList as b, createBlock as n, unref as i, withCtx as v, createCommentVNode as h, createVNode as B } from "vue";
2
- import { getCurrentIndex as E } from "./get-current-index.js";
3
- import { useNavState as z } from "../../../hooks/useNavState.js";
4
- import N from "../../Lazy/Lazy.vue2.js";
5
- import W from "../../Section/SectionContainer.vue.js";
6
- import $ from "../../../features/Operation/Operation.vue.js";
7
- import w from "../Tags/Tag.vue.js";
8
- const D = /* @__PURE__ */ I({
1
+ import { defineComponent as S, computed as f, resolveComponent as b, createElementBlock as I, openBlock as r, Fragment as T, renderList as L, createBlock as i, unref as a, withCtx as v, createCommentVNode as k, createVNode as y } from "vue";
2
+ import { getCurrentIndex as V } from "./get-current-index.js";
3
+ import B from "../../Lazy/Lazy.vue2.js";
4
+ import E from "../../Section/SectionContainer.vue.js";
5
+ import z from "../../../features/Operation/Operation.vue.js";
6
+ import M from "../Tags/Tag.vue.js";
7
+ const P = /* @__PURE__ */ S({
9
8
  __name: "TraversedEntry",
10
9
  props: {
11
10
  level: { default: 0 },
11
+ hash: {},
12
12
  rootIndex: {},
13
13
  entries: {},
14
- config: {},
15
- document: {},
16
- clientOptions: {},
14
+ paths: {},
15
+ webhooks: {},
16
+ security: {},
17
17
  activeCollection: {},
18
18
  activeServer: {},
19
- store: {}
19
+ store: {},
20
+ options: {}
20
21
  },
21
- setup(r, { expose: C }) {
22
- const l = (e) => e.type === "tag" && e.isGroup === !0, d = (e) => e.type === "tag" && !l(e), O = (e) => e.type === "operation", a = (e) => e.type === "webhook", m = g(() => r.level === 0), { hash: k } = z(), c = g(() => m.value ? r.rootIndex : E(k.value, r.entries)), s = (e, u) => l(e) ? null : u < c.value ? "prev" : u > c.value + 2 ? "after" : null;
23
- return C({
24
- currentIndex: c,
25
- isLazy: s
22
+ setup(t, { expose: g }) {
23
+ const n = (e) => e.type === "tag" && e.isGroup === !0, p = (e) => e.type === "tag" && !n(e), C = (e) => e.type === "operation", s = (e) => e.type === "webhook", c = f(() => t.level === 0), l = f(() => c.value ? t.rootIndex : V(t.hash, t.entries)), h = (e, u) => n(e) ? null : u < l.value ? "prev" : u > l.value + 2 ? "after" : null;
24
+ function w(e) {
25
+ return s(e) ? t.webhooks[e.name] : t.paths[e.path];
26
+ }
27
+ return g({
28
+ currentIndex: l,
29
+ isLazy: h
26
30
  }), (e, u) => {
27
- const p = S("TraversedEntry", !0);
28
- return t(!0), T(L, null, b(e.entries, (o, f) => (t(), n(i(N), {
31
+ const d = b("TraversedEntry", !0);
32
+ return r(!0), I(T, null, L(e.entries, (o, m) => (r(), i(a(B), {
29
33
  id: o.id,
30
34
  key: o.id,
31
- isLazy: !!s(o, f),
32
- prev: s(o, f) === "prev"
35
+ isLazy: !!h(o, m),
36
+ prev: h(o, m) === "prev"
33
37
  }, {
34
38
  default: v(() => [
35
- O(o) || a(o) ? (t(), n(i(W), {
39
+ C(o) || s(o) ? (r(), i(a(E), {
36
40
  key: 0,
37
- omit: !m.value
41
+ omit: !c.value
38
42
  }, {
39
43
  default: v(() => [
40
- B(i($), {
44
+ y(a(z), {
41
45
  id: o.id,
42
- clientOptions: e.clientOptions,
43
46
  collection: e.activeCollection,
44
- config: e.config,
45
- document: e.document,
46
- isWebhook: a(o),
47
47
  method: o.method,
48
- path: a(o) ? o.name : o.path,
48
+ options: {
49
+ ...e.options,
50
+ isWebhook: s(o)
51
+ },
52
+ path: s(o) ? o.name : o.path,
53
+ pathValue: w(o),
54
+ security: e.security,
49
55
  server: e.activeServer,
50
56
  store: e.store
51
- }, null, 8, ["id", "clientOptions", "collection", "config", "document", "isWebhook", "method", "path", "server", "store"])
57
+ }, null, 8, ["id", "collection", "method", "options", "path", "pathValue", "security", "server", "store"])
52
58
  ]),
53
59
  _: 2
54
- }, 1032, ["omit"])) : d(o) ? (t(), n(i(w), {
60
+ }, 1032, ["omit"])) : p(o) ? (r(), i(a(M), {
55
61
  key: 1,
56
- layout: e.config.layout,
57
- moreThanOneTag: e.entries.filter(d).length > 1,
62
+ isLoading: !1,
63
+ layout: e.options.layout,
64
+ moreThanOneTag: e.entries.filter(p).length > 1,
65
+ onShowMore: e.options.onShowMore,
58
66
  tag: o
59
67
  }, {
60
68
  default: v(() => [
61
- "children" in o && o.children?.length ? (t(), n(p, {
69
+ "children" in o && o.children?.length ? (r(), i(d, {
62
70
  key: 0,
63
71
  activeCollection: e.activeCollection,
64
72
  activeServer: e.activeServer,
65
- clientOptions: e.clientOptions,
66
- config: e.config,
67
- document: e.document,
68
73
  entries: o.children,
74
+ hash: e.hash,
69
75
  level: e.level + 1,
76
+ options: e.options,
77
+ paths: e.paths,
70
78
  rootIndex: e.rootIndex,
71
- store: e.store
72
- }, null, 8, ["activeCollection", "activeServer", "clientOptions", "config", "document", "entries", "level", "rootIndex", "store"])) : h("", !0)
79
+ security: e.security,
80
+ store: e.store,
81
+ webhooks: e.webhooks
82
+ }, null, 8, ["activeCollection", "activeServer", "entries", "hash", "level", "options", "paths", "rootIndex", "security", "store", "webhooks"])) : k("", !0)
73
83
  ]),
74
84
  _: 2
75
- }, 1032, ["layout", "moreThanOneTag", "tag"])) : l(o) ? (t(), n(p, {
85
+ }, 1032, ["layout", "moreThanOneTag", "onShowMore", "tag"])) : n(o) ? (r(), i(d, {
76
86
  key: 2,
77
87
  activeCollection: e.activeCollection,
78
88
  activeServer: e.activeServer,
79
- clientOptions: e.clientOptions,
80
- config: e.config,
81
- document: e.document,
82
89
  entries: o.children || [],
90
+ hash: e.hash,
83
91
  level: e.level + 1,
92
+ options: e.options,
93
+ paths: e.paths,
84
94
  rootIndex: e.rootIndex,
85
- store: e.store
86
- }, null, 8, ["activeCollection", "activeServer", "clientOptions", "config", "document", "entries", "level", "rootIndex", "store"])) : h("", !0)
95
+ security: e.security,
96
+ store: e.store,
97
+ webhooks: e.webhooks
98
+ }, null, 8, ["activeCollection", "activeServer", "entries", "hash", "level", "options", "paths", "rootIndex", "security", "store", "webhooks"])) : k("", !0)
87
99
  ]),
88
100
  _: 2
89
101
  }, 1032, ["id", "isLazy", "prev"]))), 128);
@@ -91,5 +103,5 @@ const D = /* @__PURE__ */ I({
91
103
  }
92
104
  });
93
105
  export {
94
- D as default
106
+ P as default
95
107
  };
@@ -1,4 +1,4 @@
1
- import type { TraversedEntry } from '@scalar/workspace-store/schemas/v3.1/strict/openapi-document';
1
+ import type { TraversedEntry } from '@scalar/workspace-store/schemas/navigation';
2
2
  /** Loops through the entries and returns the index of the current entry based on the hash */
3
3
  export declare const getCurrentIndex: (hash: string, entries: TraversedEntry[]) => number;
4
4
  //# sourceMappingURL=get-current-index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"get-current-index.d.ts","sourceRoot":"","sources":["../../../../src/components/Content/Operations/get-current-index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,8DAA8D,CAAA;AAuBlG,6FAA6F;AAC7F,eAAO,MAAM,eAAe,GAAI,MAAM,MAAM,EAAE,SAAS,cAAc,EAAE,WAYtE,CAAA"}
1
+ {"version":3,"file":"get-current-index.d.ts","sourceRoot":"","sources":["../../../../src/components/Content/Operations/get-current-index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,4CAA4C,CAAA;AAuBhF,6FAA6F;AAC7F,eAAO,MAAM,eAAe,GAAI,MAAM,MAAM,EAAE,SAAS,cAAc,EAAE,WAYtE,CAAA"}
@@ -1,7 +1,7 @@
1
1
  import o from "./Schema.vue2.js";
2
2
  /* empty css */
3
3
  import t from "../../../_virtual/_plugin-vue_export-helper.js";
4
- const a = /* @__PURE__ */ t(o, [["__scopeId", "data-v-09c7c1bd"]]);
4
+ const c = /* @__PURE__ */ t(o, [["__scopeId", "data-v-35907cdf"]]);
5
5
  export {
6
- a as default
6
+ c as default
7
7
  };
@@ -1,6 +1,6 @@
1
- import { defineComponent as H, computed as k, createBlock as o, createCommentVNode as t, openBlock as i, unref as l, withCtx as r, createElementVNode as g, normalizeClass as m, createElementBlock as c, createVNode as n, withDirectives as S, createTextVNode as d, toDisplayString as u, vShow as C, normalizeStyle as O, Fragment as h } from "vue";
2
- import { Disclosure as P, DisclosureButton as N, DisclosurePanel as M } from "@headlessui/vue";
3
- import { ScalarMarkdown as w, ScalarIcon as p } from "@scalar/components";
1
+ import { defineComponent as H, computed as k, createBlock as s, createCommentVNode as t, openBlock as i, unref as l, withCtx as r, createElementVNode as g, normalizeClass as m, createElementBlock as c, createVNode as n, withDirectives as S, createTextVNode as d, toDisplayString as u, vShow as C, normalizeStyle as O, Fragment as h } from "vue";
2
+ import { Disclosure as P, DisclosureButton as N, DisclosurePanel as w } from "@headlessui/vue";
3
+ import { ScalarMarkdown as M, ScalarIcon as p } from "@scalar/components";
4
4
  import B from "../../ScreenReader.vue.js";
5
5
  import { isTypeObject as D } from "./helpers/is-type-object.js";
6
6
  import z from "./SchemaHeading.vue.js";
@@ -28,32 +28,32 @@ const j = {
28
28
  options: {}
29
29
  },
30
30
  setup(a) {
31
- const f = k(() => !a.noncollapsible && a.level > 0), y = k(() => a.schema?.allOf && a.schema.allOf.length > 0 && a.name === "Request Body" ? a.schema.description || a.schema.allOf[0].description : !a.schema?.description || typeof a.schema.description != "string" || a.schema.oneOf || a.schema.anyOf || a.schema.enum || !("properties" in a.schema) && !("patternProperties" in a.schema) && !("additionalProperties" in a.schema) ? null : a.schema.description), b = (e) => a.noncollapsible && e.stopPropagation();
32
- return (e, v) => typeof e.schema == "object" && Object.keys(e.schema).length ? (i(), o(l(P), {
31
+ const f = k(() => !a.noncollapsible && a.level > 0), y = k(() => a.schema?.allOf && a.schema.allOf.length > 0 && a.name === "Request Body" ? a.schema.description || a.schema.allOf[0].description : !a.schema?.description || typeof a.schema.description != "string" || a.schema.oneOf || a.schema.anyOf || a.schema.enum || !("properties" in a.schema) && !("patternProperties" in a.schema) && !("additionalProperties" in a.schema) ? null : a.schema.description), v = (e) => a.noncollapsible && e.stopPropagation();
32
+ return (e, b) => typeof e.schema == "object" && Object.keys(e.schema).length ? (i(), s(l(P), {
33
33
  key: 0,
34
34
  defaultOpen: e.noncollapsible
35
35
  }, {
36
- default: r(({ open: s }) => [
36
+ default: r(({ open: o }) => [
37
37
  g("div", {
38
38
  class: m(["schema-card", [
39
39
  `schema-card--level-${e.level}`,
40
- { "schema-card--compact": e.compact, "schema-card--open": s },
41
- { "border-t": e.additionalProperties && s }
40
+ { "schema-card--compact": e.compact, "schema-card--open": o },
41
+ { "border-t": e.additionalProperties && o }
42
42
  ]])
43
43
  }, [
44
44
  y.value ? (i(), c("div", j, [
45
- n(l(w), { value: y.value }, null, 8, ["value"])
45
+ n(l(M), { value: y.value }, null, 8, ["value"])
46
46
  ])) : t("", !0),
47
47
  g("div", {
48
48
  class: m(["schema-properties", {
49
- "schema-properties-open": s
49
+ "schema-properties-open": o
50
50
  }])
51
51
  }, [
52
52
  e.additionalProperties ? S((i(), c("div", T, [
53
53
  n(l(N), {
54
54
  as: "button",
55
55
  class: "schema-card-title schema-card-title--compact",
56
- onClickCapture: b
56
+ onClickCapture: v
57
57
  }, {
58
58
  default: r(() => [
59
59
  n(l(p), {
@@ -61,8 +61,8 @@ const j = {
61
61
  icon: "Add",
62
62
  size: "sm"
63
63
  }),
64
- v[0] || (v[0] = d(" Show additional properties ")),
65
- e.name ? (i(), o(B, { key: 0 }, {
64
+ b[0] || (b[0] = d(" Show additional properties ")),
65
+ e.name ? (i(), s(B, { key: 0 }, {
66
66
  default: r(() => [
67
67
  d("for " + u(e.name), 1)
68
68
  ]),
@@ -73,29 +73,29 @@ const j = {
73
73
  __: [0]
74
74
  })
75
75
  ], 512)), [
76
- [C, !s]
77
- ]) : f.value ? S((i(), o(l(N), {
76
+ [C, !o]
77
+ ]) : f.value ? S((i(), s(l(N), {
78
78
  key: 1,
79
79
  as: e.noncollapsible ? "div" : "button",
80
80
  class: m(["schema-card-title", { "schema-card-title--compact": e.compact }]),
81
81
  style: O({
82
- top: `calc(var(--refs-header-height) + calc(var(--schema-title-height) * ${e.level}))`
82
+ top: `calc(var(--refs-viewport-offset) + calc(var(--schema-title-height) * ${e.level}))`
83
83
  }),
84
- onClickCapture: b
84
+ onClickCapture: v
85
85
  }, {
86
86
  default: r(() => [
87
87
  e.compact ? (i(), c(h, { key: 0 }, [
88
88
  n(l(p), {
89
- class: m(["schema-card-title-icon", { "schema-card-title-icon--open": s }]),
89
+ class: m(["schema-card-title-icon", { "schema-card-title-icon--open": o }]),
90
90
  icon: "Add",
91
91
  size: "sm"
92
92
  }, null, 8, ["class"]),
93
- s ? (i(), c(h, { key: 0 }, [
93
+ o ? (i(), c(h, { key: 0 }, [
94
94
  d(" Hide " + u(e.schema?.title ?? "Child Attributes"), 1)
95
95
  ], 64)) : (i(), c(h, { key: 1 }, [
96
96
  d(" Show " + u(e.schema?.title ?? "Child Attributes"), 1)
97
97
  ], 64)),
98
- e.name ? (i(), o(B, { key: 2 }, {
98
+ e.name ? (i(), s(B, { key: 2 }, {
99
99
  default: r(() => [
100
100
  d("for " + u(e.name), 1)
101
101
  ]),
@@ -103,7 +103,7 @@ const j = {
103
103
  })) : t("", !0)
104
104
  ], 64)) : (i(), c(h, { key: 1 }, [
105
105
  n(l(p), {
106
- class: m(["schema-card-title-icon", { "schema-card-title-icon--open": s }]),
106
+ class: m(["schema-card-title-icon", { "schema-card-title-icon--open": o }]),
107
107
  icon: "Add",
108
108
  size: "sm"
109
109
  }, null, 8, ["class"]),
@@ -117,13 +117,13 @@ const j = {
117
117
  }, 1032, ["as", "class", "style"])), [
118
118
  [C, !e.hideHeading && !(e.noncollapsible && e.compact)]
119
119
  ]) : t("", !0),
120
- !e.additionalProperties || s ? (i(), o(l(M), {
120
+ !e.additionalProperties || o ? (i(), s(l(w), {
121
121
  key: 2,
122
122
  as: "ul",
123
123
  static: !f.value
124
124
  }, {
125
125
  default: r(() => [
126
- l(D)(e.schema) ? (i(), o(A, {
126
+ l(D)(e.schema) ? (i(), s(A, {
127
127
  key: 0,
128
128
  breadcrumb: e.breadcrumb,
129
129
  compact: e.compact,
@@ -134,7 +134,7 @@ const j = {
134
134
  options: e.options,
135
135
  schema: e.schema
136
136
  }, null, 8, ["breadcrumb", "compact", "discriminator", "hideHeading", "hideModelNames", "level", "options", "schema"])) : (i(), c(h, { key: 1 }, [
137
- e.schema ? (i(), o(V, {
137
+ e.schema ? (i(), s(V, {
138
138
  key: 0,
139
139
  breadcrumb: e.breadcrumb,
140
140
  compact: e.compact,
@@ -1 +1 @@
1
- {"version":3,"file":"get-ref-name.d.ts","sourceRoot":"","sources":["../../../../../src/components/Content/Schema/helpers/get-ref-name.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,8DAA8D,CAAA;AAChG,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,uDAAuD,CAAA;AAE1F;;;;;;GAMG;AACH,eAAO,MAAM,UAAU,GAAI,QAAQ,aAAa,CAAC,YAAY,CAAC,kBAa7D,CAAA"}
1
+ {"version":3,"file":"get-ref-name.d.ts","sourceRoot":"","sources":["../../../../../src/components/Content/Schema/helpers/get-ref-name.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,8DAA8D,CAAA;AAChG,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,uDAAuD,CAAA;AAE1F;;;;;;GAMG;AACH,eAAO,MAAM,UAAU,GAAI,QAAQ,aAAa,CAAC,YAAY,CAAC,kBAiB7D,CAAA"}
@@ -1,11 +1,13 @@
1
- import { REGEX as n } from "@scalar/helpers/regex/regex-helpers";
2
- const o = (e) => {
3
- const r = e.$ref;
4
- if (!r)
1
+ import { REGEX as e } from "@scalar/helpers/regex/regex-helpers";
2
+ const u = (r) => {
3
+ if (!("$ref" in r))
5
4
  return null;
6
- const t = r.match(n.REF_NAME);
7
- return t ? t[1] : null;
5
+ const t = r.$ref;
6
+ if (!t)
7
+ return null;
8
+ const n = t.match(e.REF_NAME);
9
+ return n ? n[1] : null;
8
10
  };
9
11
  export {
10
- o as getRefName
12
+ u as getRefName
11
13
  };
@@ -72,7 +72,7 @@ const l = (e, f) => {
72
72
  continue;
73
73
  }
74
74
  if (!e[r]) {
75
- i.allOf ? e[r] = l(i) : "type" in i && i.type === "array" && p(i.items)?.allOf ? e[r] = {
75
+ i.allOf ? e[r] = l(i) : O(i) && p(i.items)?.allOf ? e[r] = {
76
76
  ...i,
77
77
  items: l(p(i.items))
78
78
  } : e[r] = f[r];
@@ -1 +1 @@
1
- {"version":3,"file":"schema-name.d.ts","sourceRoot":"","sources":["../../../../../src/components/Content/Schema/helpers/schema-name.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,8DAA8D,CAAA;AAChG,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,uDAAuD,CAAA;AAI1F;;;;GAIG;AACH,eAAO,MAAM,sBAAsB,GAAI,aAAa,YAAY,GAAG,aAAa,CAAC,YAAY,CAAC,KAAG,MAAM,GAAG,IAyBzG,CAAA;AAED;;GAEG;AACH,eAAO,MAAM,mBAAmB,GAAI,MAAM,OAAO,CAAC,YAAY,EAAE;IAAE,IAAI,EAAE,GAAG,CAAA;CAAE,CAAC,CAAC,MAAM,CAAC,EAAE,WAAW,MAAM,KAAG,MACrD,CAAA;AAEvD;;;GAGG;AACH,eAAO,MAAM,YAAY,GAAI,OAAO,YAAY,EAAE,wBAAsB,KAAG,MAAM,GAAG,IA+CnF,CAAA"}
1
+ {"version":3,"file":"schema-name.d.ts","sourceRoot":"","sources":["../../../../../src/components/Content/Schema/helpers/schema-name.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,8DAA8D,CAAA;AAChG,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,uDAAuD,CAAA;AAK1F;;;;GAIG;AACH,eAAO,MAAM,sBAAsB,GAAI,aAAa,YAAY,GAAG,aAAa,CAAC,YAAY,CAAC,KAAG,MAAM,GAAG,IAyBzG,CAAA;AAED;;GAEG;AACH,eAAO,MAAM,mBAAmB,GAAI,MAAM,OAAO,CAAC,YAAY,EAAE;IAAE,IAAI,EAAE,GAAG,CAAA;CAAE,CAAC,CAAC,MAAM,CAAC,EAAE,WAAW,MAAM,KAAG,MACrD,CAAA;AAEvD;;;GAGG;AACH,eAAO,MAAM,YAAY,GAAI,OAAO,YAAY,EAAE,wBAAsB,KAAG,MAAM,GAAG,IA+CnF,CAAA"}
@@ -1,32 +1,33 @@
1
- import { getResolvedRef as s } from "@scalar/workspace-store/helpers/get-resolved-ref";
2
- import { getRefName as y } from "./get-ref-name.js";
3
- const f = (t) => {
1
+ import { getResolvedRef as y } from "@scalar/workspace-store/helpers/get-resolved-ref";
2
+ import { isArraySchema as a } from "@scalar/workspace-store/schemas/v3.1/strict/type-guards";
3
+ import { getRefName as p } from "./get-ref-name.js";
4
+ const s = (t) => {
4
5
  if (!t)
5
6
  return null;
6
7
  if ("$ref" in t) {
7
- const e = y(t);
8
+ const e = p(t);
8
9
  if (e)
9
10
  return e;
10
11
  }
11
- const r = s(t);
12
+ const r = y(t);
12
13
  return r.title ? r.title : r.name ? r.name : null;
13
- }, o = (t, r) => `${t} ${r}${t === "array" ? "[]" : ""}`, u = (t, r = !1) => {
14
+ }, o = (t, r) => `${t} ${r}${t === "array" ? "[]" : ""}`, N = (t, r = !1) => {
14
15
  if (!("type" in t) || r)
15
16
  return null;
16
- const e = t.type, i = f(t);
17
+ const e = t.type, i = s(t);
17
18
  if (i && t.title)
18
19
  return e === "array" ? `array ${i}[]` : i;
19
- if (e === "array" && t.items) {
20
- const n = s(t.items), a = n.title;
21
- if (a)
22
- return o(e, a);
23
- const m = f(t.items);
20
+ if (a(t) && t.items) {
21
+ const n = y(t.items), f = n.title;
22
+ if (f)
23
+ return o(e, f);
24
+ const m = s(t.items);
24
25
  return m && "type" in n && m !== n.type ? o(e, m) : "type" in n ? o(e, Array.isArray(n.type) ? n.type.join(" | ") : n.type) : o(e, "object");
25
26
  }
26
27
  return i && i !== e ? i.startsWith("Array of ") ? `array ${i.slice(9)}[]` : i : null;
27
28
  };
28
29
  export {
29
30
  o as formatTypeWithModel,
30
- u as getModelName,
31
- f as getModelNameFromSchema
31
+ N as getModelName,
32
+ s as getModelNameFromSchema
32
33
  };
@@ -1,4 +1,4 @@
1
- import type { TraversedTag } from '@scalar/workspace-store/schemas/v3.1/strict/openapi-document';
1
+ import type { TraversedTag } from '@scalar/workspace-store/schemas/navigation';
2
2
  type __VLS_Props = {
3
3
  tag: TraversedTag;
4
4
  };
@@ -1 +1 @@
1
- {"version":3,"file":"ClassicLayout.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/Content/Tags/ClassicLayout.vue"],"names":[],"mappings":"AAkDA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,8DAA8D,CAAA;AAShG,KAAK,WAAW,GAAG;IACjB,GAAG,EAAE,YAAY,CAAA;CAClB,CAAC;AAqFF,QAAA,IAAI,QAAQ,IAAY,CAAE;AAC1B,KAAK,WAAW,GAAG,EAAE,GACnB;IAAE,OAAO,CAAC,EAAE,CAAC,KAAK,EAAE,OAAO,QAAQ,KAAK,GAAG,CAAA;CAAE,CAAC;AAwBhD,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":"ClassicLayout.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/Content/Tags/ClassicLayout.vue"],"names":[],"mappings":"AAkDA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,4CAA4C,CAAA;AAS9E,KAAK,WAAW,GAAG;IACjB,GAAG,EAAE,YAAY,CAAA;CAClB,CAAC;AAqFF,QAAA,IAAI,QAAQ,IAAY,CAAE;AAC1B,KAAK,WAAW,GAAG,EAAE,GACnB;IAAE,OAAO,CAAC,EAAE,CAAC,KAAK,EAAE,OAAO,QAAQ,KAAK,GAAG,CAAA;CAAE,CAAC;AAwBhD,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,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 m = /* @__PURE__ */ t(o, [["__scopeId", "data-v-2414d1d0"]]);
4
+ const f = /* @__PURE__ */ t(o, [["__scopeId", "data-v-f4dae8d7"]]);
5
5
  export {
6
- m as default
6
+ f as default
7
7
  };
@@ -1,7 +1,9 @@
1
- import type { TraversedTag } from '@scalar/workspace-store/schemas/v3.1/strict/openapi-document';
1
+ import type { TraversedTag } from '@scalar/workspace-store/schemas/navigation';
2
2
  type __VLS_Props = {
3
3
  tag: TraversedTag;
4
4
  moreThanOneTag: boolean;
5
+ isLoading: boolean;
6
+ onShowMore: ((id: string) => void) | undefined;
5
7
  };
6
8
  declare var __VLS_21: {};
7
9
  type __VLS_Slots = {} & {
@@ -1 +1 @@
1
- {"version":3,"file":"ModernLayout.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/Content/Tags/ModernLayout.vue"],"names":[],"mappings":"AAiFA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,8DAA8D,CAAA;AAWhG,KAAK,WAAW,GAAG;IACjB,GAAG,EAAE,YAAY,CAAA;IACjB,cAAc,EAAE,OAAO,CAAA;CACxB,CAAC;AAoHF,QAAA,IAAuB,QAAQ,IAAY,CAAE;AAC7C,KAAK,WAAW,GAAG,EAAE,GACnB;IAAE,OAAO,CAAC,EAAE,CAAC,KAAK,EAAE,OAAO,QAAQ,KAAK,GAAG,CAAA;CAAE,CAAC;AAgChD,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":"ModernLayout.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/Content/Tags/ModernLayout.vue"],"names":[],"mappings":"AAqFA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,4CAA4C,CAAA;AAW9E,KAAK,WAAW,GAAG;IACjB,GAAG,EAAE,YAAY,CAAA;IACjB,cAAc,EAAE,OAAO,CAAA;IACvB,SAAS,EAAE,OAAO,CAAA;IAClB,UAAU,EAAE,CAAC,CAAC,EAAE,EAAE,MAAM,KAAK,IAAI,CAAC,GAAG,SAAS,CAAA;CAC/C,CAAC;AAwHF,QAAA,IAAuB,QAAQ,IAAY,CAAE;AAC7C,KAAK,WAAW,GAAG,EAAE,GACnB;IAAE,OAAO,CAAC,EAAE,CAAC,KAAK,EAAE,OAAO,QAAQ,KAAK,GAAG,CAAA;CAAE,CAAC;AAgChD,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"}