@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,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-5edb9c26"]]);
4
+ const m = /* @__PURE__ */ t(o, [["__scopeId", "data-v-b59e6a08"]]);
5
5
  export {
6
6
  m as default
7
7
  };
@@ -1,59 +1,63 @@
1
- import { defineComponent as h, ref as f, useId as y, computed as C, createBlock as i, openBlock as a, unref as t, withCtx as m, createVNode as T, createElementBlock as k, createCommentVNode as l, renderSlot as b, nextTick as S } from "vue";
2
- import B from "../../ShowMoreButton.vue.js";
3
- import { useNavState as v } from "../../../hooks/useNavState.js";
4
- import I from "./TagSection.vue.js";
5
- import { useSidebar as O } from "../../../v2/blocks/scalar-sidebar-block/hooks/useSidebar.js";
6
- import $ from "../../Section/SectionContainer.vue.js";
7
- import w from "../../Lazy/Lazy.vue2.js";
8
- const E = /* @__PURE__ */ h({
1
+ import { defineComponent as p, ref as u, useId as y, computed as S, createBlock as i, openBlock as a, unref as o, withCtx as f, createVNode as C, createElementBlock as T, createCommentVNode as s, renderSlot as k, nextTick as b } from "vue";
2
+ import w from "../../ShowMoreButton.vue.js";
3
+ import { useNavState as B } from "../../../hooks/useNavState.js";
4
+ import L from "./TagSection.vue.js";
5
+ import { useSidebar as M } from "../../../v2/blocks/scalar-sidebar-block/hooks/useSidebar.js";
6
+ import v from "../../Section/SectionContainer.vue.js";
7
+ import I from "../../Lazy/Lazy.vue2.js";
8
+ const E = /* @__PURE__ */ p({
9
9
  __name: "ModernLayout",
10
10
  props: {
11
11
  tag: {},
12
- moreThanOneTag: { type: Boolean }
12
+ moreThanOneTag: { type: Boolean },
13
+ isLoading: { type: Boolean },
14
+ onShowMore: { type: Function }
13
15
  },
14
- setup(o) {
15
- const u = f(), s = f(), d = y(), { collapsedSidebarItems: c } = O(), { hash: n } = v(), g = C(
16
- () => o.moreThanOneTag || o.tag?.title !== "default" || o.tag?.description !== ""
16
+ setup(t) {
17
+ const m = u(), l = u(), d = y(), { collapsedSidebarItems: c } = M(), { hash: n } = B(), g = S(
18
+ () => t.moreThanOneTag || t.tag?.title !== "default" || t.tag?.description !== ""
17
19
  );
18
- async function p() {
19
- await S(), s.value?.querySelector("button")?.focus();
20
+ async function h() {
21
+ await b(), l.value?.querySelector("button")?.focus();
20
22
  }
21
23
  const r = (e) => !c[e];
22
- return (e, R) => (a(), i(t($), {
24
+ return (e, O) => (a(), i(o(v), {
23
25
  ref_key: "sectionContainerRef",
24
- ref: u,
25
- "aria-labelledby": t(d),
26
+ ref: m,
27
+ "aria-labelledby": o(d),
26
28
  class: "tag-section-container",
27
29
  role: "region"
28
30
  }, {
29
- default: m(() => [
30
- T(t(w), {
31
+ default: f(() => [
32
+ C(o(I), {
31
33
  id: `modern-tag-${e.tag.id}`,
32
- isLazy: !!t(n) && t(n) !== e.tag.id && t(n).startsWith(e.tag.id)
34
+ isLazy: !!o(n) && o(n) !== e.tag.id && o(n).startsWith(e.tag.id)
33
35
  }, {
34
- default: m(() => [
35
- g.value ? (a(), i(I, {
36
+ default: f(() => [
37
+ g.value ? (a(), i(L, {
36
38
  key: 0,
37
- headerId: t(d),
39
+ headerId: o(d),
38
40
  isCollapsed: r(e.tag.id),
41
+ isLoading: e.isLoading,
39
42
  tag: e.tag
40
- }, null, 8, ["headerId", "isCollapsed", "tag"])) : l("", !0),
41
- r(e.tag.id) && e.moreThanOneTag ? (a(), i(B, {
43
+ }, null, 8, ["headerId", "isCollapsed", "isLoading", "tag"])) : s("", !0),
44
+ r(e.tag.id) && e.moreThanOneTag ? (a(), i(w, {
42
45
  key: 1,
43
46
  id: e.tag.id,
44
47
  "aria-label": `Show all ${e.tag.title} endpoints`,
45
- onClick: p
46
- }, null, 8, ["id", "aria-label"])) : l("", !0)
48
+ onShowMore: e.onShowMore,
49
+ onClick: h
50
+ }, null, 8, ["id", "aria-label", "onShowMore"])) : s("", !0)
47
51
  ]),
48
52
  _: 1
49
53
  }, 8, ["id", "isLazy"]),
50
- r(e.tag.id) && e.moreThanOneTag ? l("", !0) : (a(), k("div", {
54
+ r(e.tag.id) && e.moreThanOneTag ? s("", !0) : (a(), T("div", {
51
55
  key: 0,
52
56
  ref_key: "contentsRef",
53
- ref: s,
57
+ ref: l,
54
58
  class: "contents"
55
59
  }, [
56
- b(e.$slots, "default", {}, void 0, !0)
60
+ k(e.$slots, "default", {}, void 0, !0)
57
61
  ], 512))
58
62
  ]),
59
63
  _: 3
@@ -1,8 +1,10 @@
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
  layout: 'classic' | 'modern';
5
5
  moreThanOneTag: boolean;
6
+ isLoading: boolean;
7
+ onShowMore: ((id: string) => void) | undefined;
6
8
  };
7
9
  declare var __VLS_5: {}, __VLS_11: {};
8
10
  type __VLS_Slots = {} & {
@@ -1 +1 @@
1
- {"version":3,"file":"Tag.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/Content/Tags/Tag.vue"],"names":[],"mappings":"AA2BA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,8DAA8D,CAAA;AAKhG,KAAK,WAAW,GAAG;IACjB,GAAG,EAAE,YAAY,CAAA;IACjB,MAAM,EAAE,SAAS,GAAG,QAAQ,CAAA;IAC5B,cAAc,EAAE,OAAO,CAAA;CACxB,CAAC;AA0CF,QAAA,IAAI,OAAO,IAAU,EAAE,QAAQ,IAAY,CAAE;AAC7C,KAAK,WAAW,GAAG,EAAE,GACnB;IAAE,OAAO,CAAC,EAAE,CAAC,KAAK,EAAE,OAAO,OAAO,KAAK,GAAG,CAAA;CAAE,GAC5C;IAAE,OAAO,CAAC,EAAE,CAAC,KAAK,EAAE,OAAO,QAAQ,KAAK,GAAG,CAAA;CAAE,CAAC;AAsBhD,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":"Tag.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/Content/Tags/Tag.vue"],"names":[],"mappings":"AA6BA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,4CAA4C,CAAA;AAK9E,KAAK,WAAW,GAAG;IACjB,GAAG,EAAE,YAAY,CAAA;IACjB,MAAM,EAAE,SAAS,GAAG,QAAQ,CAAA;IAC5B,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;AA0CF,QAAA,IAAI,OAAO,IAAU,EAAE,QAAQ,IAAY,CAAE;AAC7C,KAAK,WAAW,GAAG,EAAE,GACnB;IAAE,OAAO,CAAC,EAAE,CAAC,KAAK,EAAE,OAAO,OAAO,KAAK,GAAG,CAAA;CAAE,GAC5C;IAAE,OAAO,CAAC,EAAE,CAAC,KAAK,EAAE,OAAO,QAAQ,KAAK,GAAG,CAAA;CAAE,CAAC;AAsBhD,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,22 +1,24 @@
1
- import { defineComponent as l, createBlock as e, openBlock as r, normalizeProps as a, mergeProps as t, withCtx as p, renderSlot as s } from "vue";
2
- import n from "./ClassicLayout.vue.js";
3
- import m from "./ModernLayout.vue.js";
4
- const c = /* @__PURE__ */ l({
1
+ import { defineComponent as s, createBlock as e, openBlock as r, normalizeProps as t, mergeProps as a, withCtx as n, renderSlot as p } from "vue";
2
+ import l from "./ClassicLayout.vue.js";
3
+ import u from "./ModernLayout.vue.js";
4
+ const c = /* @__PURE__ */ s({
5
5
  __name: "Tag",
6
6
  props: {
7
7
  tag: {},
8
8
  layout: {},
9
- moreThanOneTag: { type: Boolean }
9
+ moreThanOneTag: { type: Boolean },
10
+ isLoading: { type: Boolean },
11
+ onShowMore: { type: Function }
10
12
  },
11
- setup(u) {
12
- return (o, f) => o.layout === "classic" ? (r(), e(n, a(t({ key: 0 }, o.$props)), {
13
- default: p(() => [
14
- s(o.$slots, "default")
13
+ setup(i) {
14
+ return (o, m) => o.layout === "classic" ? (r(), e(l, t(a({ key: 0 }, o.$props)), {
15
+ default: n(() => [
16
+ p(o.$slots, "default")
15
17
  ]),
16
18
  _: 3
17
- }, 16)) : (r(), e(m, a(t({ key: 1 }, o.$props)), {
18
- default: p(() => [
19
- s(o.$slots, "default")
19
+ }, 16)) : (r(), e(u, t(a({ key: 1 }, o.$props)), {
20
+ default: n(() => [
21
+ p(o.$slots, "default")
20
22
  ]),
21
23
  _: 3
22
24
  }, 16));
@@ -1,8 +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
  headerId?: string;
5
5
  isCollapsed?: boolean;
6
+ isLoading?: boolean;
6
7
  };
7
8
  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
9
  export default _default;
@@ -1 +1 @@
1
- {"version":3,"file":"TagSection.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/Content/Tags/TagSection.vue"],"names":[],"mappings":"AA6DA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,8DAA8D,CAAA;AAgBhG,KAAK,WAAW,GAAG;IACjB,GAAG,EAAE,YAAY,CAAA;IACjB,QAAQ,CAAC,EAAE,MAAM,CAAA;IACjB,WAAW,CAAC,EAAE,OAAO,CAAA;CACtB,CAAC;;AAgLF,wBAMG"}
1
+ {"version":3,"file":"TagSection.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/Content/Tags/TagSection.vue"],"names":[],"mappings":"AA2DA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,4CAA4C,CAAA;AAe9E,KAAK,WAAW,GAAG;IACjB,GAAG,EAAE,YAAY,CAAA;IACjB,QAAQ,CAAC,EAAE,MAAM,CAAA;IACjB,WAAW,CAAC,EAAE,OAAO,CAAA;IACrB,SAAS,CAAC,EAAE,OAAO,CAAA;CACpB,CAAC;;AA6KF,wBAMG"}
@@ -1,51 +1,50 @@
1
- import { defineComponent as f, createBlock as r, createCommentVNode as n, openBlock as d, unref as e, withCtx as a, withDirectives as u, createVNode as t, createTextVNode as m, toDisplayString as s, vShow as g } from "vue";
2
- import { ScalarMarkdown as c } from "@scalar/components";
1
+ import { defineComponent as p, createBlock as i, createCommentVNode as r, openBlock as n, unref as o, withCtx as t, withDirectives as u, createVNode as a, createTextVNode as d, toDisplayString as f, vShow as s } from "vue";
2
+ import { ScalarMarkdown as g } from "@scalar/components";
3
3
  import C from "../../ScreenReader.vue.js";
4
- import { useConfig as S } from "../../../hooks/useConfig.js";
5
- import _ from "../../Section/Section.vue.js";
6
- import v from "../../Section/SectionHeader.vue.js";
7
- import h from "../../Anchor/Anchor.vue.js";
8
- import k from "../../Section/SectionHeaderTag.vue.js";
9
- import w from "../../Section/SectionContent.vue.js";
10
- import y from "../../Section/SectionColumns.vue.js";
11
- import p from "../../Section/SectionColumn.vue.js";
12
- import B from "../../OperationsList/OperationsList.vue.js";
13
- import I from "../../../features/specification-extension/SpecificationExtension.vue2.js";
14
- const q = /* @__PURE__ */ f({
4
+ import S from "../../Section/Section.vue.js";
5
+ import c from "../../Section/SectionHeader.vue.js";
6
+ import v from "../../Anchor/Anchor.vue.js";
7
+ import _ from "../../Section/SectionHeaderTag.vue.js";
8
+ import y from "../../Section/SectionContent.vue.js";
9
+ import h from "../../Section/SectionColumns.vue.js";
10
+ import m from "../../Section/SectionColumn.vue.js";
11
+ import k from "../../OperationsList/OperationsList.vue.js";
12
+ import w from "../../../features/specification-extension/SpecificationExtension.vue2.js";
13
+ const R = /* @__PURE__ */ p({
15
14
  __name: "TagSection",
16
15
  props: {
17
16
  tag: {},
18
17
  headerId: {},
19
- isCollapsed: { type: Boolean }
18
+ isCollapsed: { type: Boolean },
19
+ isLoading: { type: Boolean }
20
20
  },
21
- setup(L) {
22
- const i = S();
23
- return (o, l) => o.tag ? (d(), r(e(_), {
21
+ setup(B) {
22
+ return (e, l) => e.tag ? (n(), i(o(S), {
24
23
  key: 0,
25
- id: o.tag.id,
26
- label: o.tag.title?.toUpperCase(),
24
+ id: e.tag.id,
25
+ label: e.tag.title?.toUpperCase(),
27
26
  role: "none"
28
27
  }, {
29
- default: a(() => [
30
- u(t(e(v), null, {
31
- default: a(() => [
32
- t(e(h), {
33
- id: o.tag.id
28
+ default: t(() => [
29
+ u(a(o(c), null, {
30
+ default: t(() => [
31
+ a(o(v), {
32
+ id: e.tag.id
34
33
  }, {
35
- default: a(() => [
36
- t(e(k), {
37
- id: o.headerId,
34
+ default: t(() => [
35
+ a(o(_), {
36
+ id: e.headerId,
38
37
  level: 2
39
38
  }, {
40
- default: a(() => [
41
- m(s(o.tag.title) + " ", 1),
42
- o.isCollapsed ? (d(), r(C, { key: 0 }, {
43
- default: a(() => l[0] || (l[0] = [
44
- m(" (Collapsed)")
39
+ default: t(() => [
40
+ d(f(e.tag.title) + " ", 1),
41
+ e.isCollapsed ? (n(), i(C, { key: 0 }, {
42
+ default: t(() => l[0] || (l[0] = [
43
+ d(" (Collapsed)")
45
44
  ])),
46
45
  _: 1,
47
46
  __: [0]
48
- })) : n("", !0)
47
+ })) : r("", !0)
49
48
  ]),
50
49
  _: 1
51
50
  }, 8, ["id"])
@@ -55,27 +54,25 @@ const q = /* @__PURE__ */ f({
55
54
  ]),
56
55
  _: 1
57
56
  }, 512), [
58
- [g, !e(i).isLoading]
57
+ [s, !e.isLoading]
59
58
  ]),
60
- t(e(w), {
61
- loading: e(i).isLoading
62
- }, {
63
- default: a(() => [
64
- t(e(y), null, {
65
- default: a(() => [
66
- t(e(p), null, {
67
- default: a(() => [
68
- t(e(c), {
69
- clamp: o.isCollapsed ? 7 : void 0,
70
- value: o.tag?.description ?? "",
59
+ a(o(y), { loading: e.isLoading }, {
60
+ default: t(() => [
61
+ a(o(h), null, {
62
+ default: t(() => [
63
+ a(o(m), null, {
64
+ default: t(() => [
65
+ a(o(g), {
66
+ clamp: e.isCollapsed ? 7 : void 0,
67
+ value: e.tag?.description ?? "",
71
68
  withImages: ""
72
69
  }, null, 8, ["clamp", "value"])
73
70
  ]),
74
71
  _: 1
75
72
  }),
76
- t(e(p), null, {
77
- default: a(() => [
78
- t(e(B), { tag: o.tag }, null, 8, ["tag"])
73
+ a(o(m), null, {
74
+ default: t(() => [
75
+ a(o(k), { tag: e.tag }, null, 8, ["tag"])
79
76
  ]),
80
77
  _: 1
81
78
  })
@@ -85,14 +82,14 @@ const q = /* @__PURE__ */ f({
85
82
  ]),
86
83
  _: 1
87
84
  }, 8, ["loading"]),
88
- t(e(I), {
89
- value: o.tag.xKeys
85
+ a(o(w), {
86
+ value: e.tag.xKeys
90
87
  }, null, 8, ["value"])
91
88
  ]),
92
89
  _: 1
93
- }, 8, ["id", "label"])) : n("", !0);
90
+ }, 8, ["id", "label"])) : r("", !0);
94
91
  }
95
92
  });
96
93
  export {
97
- q as default
94
+ R as default
98
95
  };
@@ -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":"OperationsList.vue.d.ts","sourceRoot":"","sources":["../../../src/components/OperationsList/OperationsList.vue"],"names":[],"mappings":"AAmEA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,8DAA8D,CAAA;AAOhG,KAAK,WAAW,GAAG;IACjB,GAAG,EAAE,YAAY,CAAA;CAClB,CAAC;;AAmHF,wBAMG"}
1
+ {"version":3,"file":"OperationsList.vue.d.ts","sourceRoot":"","sources":["../../../src/components/OperationsList/OperationsList.vue"],"names":[],"mappings":"AAmEA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,4CAA4C,CAAA;AAO9E,KAAK,WAAW,GAAG;IACjB,GAAG,EAAE,YAAY,CAAA;CAClB,CAAC;;AAmHF,wBAMG"}
@@ -1,7 +1,7 @@
1
1
  import o from "./OperationsList.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-50e4708f"]]);
4
+ const a = /* @__PURE__ */ t(o, [["__scopeId", "data-v-5f88c366"]]);
5
5
  export {
6
6
  a as default
7
7
  };
@@ -1,4 +1,4 @@
1
- import type { TraversedOperation, TraversedWebhook } from '@scalar/workspace-store/schemas/v3.1/strict/openapi-document';
1
+ import type { TraversedOperation, TraversedWebhook } from '@scalar/workspace-store/schemas/navigation';
2
2
  type __VLS_Props = {
3
3
  operation: TraversedOperation | TraversedWebhook;
4
4
  isCollapsed?: boolean;
@@ -1 +1 @@
1
- {"version":3,"file":"OperationsListItem.vue.d.ts","sourceRoot":"","sources":["../../../src/components/OperationsList/OperationsListItem.vue"],"names":[],"mappings":"AAwHA,OAAO,KAAK,EAEV,kBAAkB,EAClB,gBAAgB,EACjB,MAAM,8DAA8D,CAAA;AAOrE,KAAK,WAAW,GAAG;IACjB,SAAS,EAAE,kBAAkB,GAAG,gBAAgB,CAAA;IAChD,WAAW,CAAC,EAAE,OAAO,CAAA;CACtB,CAAC;;AAsJF,wBAMG"}
1
+ {"version":3,"file":"OperationsListItem.vue.d.ts","sourceRoot":"","sources":["../../../src/components/OperationsList/OperationsListItem.vue"],"names":[],"mappings":"AAwHA,OAAO,KAAK,EAEV,kBAAkB,EAClB,gBAAgB,EACjB,MAAM,4CAA4C,CAAA;AAOnD,KAAK,WAAW,GAAG;IACjB,SAAS,EAAE,kBAAkB,GAAG,gBAAgB,CAAA;IAChD,WAAW,CAAC,EAAE,OAAO,CAAA;CACtB,CAAC;;AAsJF,wBAMG"}
@@ -1,7 +1,7 @@
1
1
  import t from "./OperationsListItem.vue2.js";
2
2
  /* empty css */
3
3
  import o from "../../_virtual/_plugin-vue_export-helper.js";
4
- const s = /* @__PURE__ */ o(t, [["__scopeId", "data-v-836b3c7f"]]);
4
+ const p = /* @__PURE__ */ o(t, [["__scopeId", "data-v-7dff261d"]]);
5
5
  export {
6
- s as default
6
+ p as default
7
7
  };
@@ -1,7 +1,7 @@
1
1
  import o from "./Section.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-dbc12a67"]]);
4
+ const m = /* @__PURE__ */ t(o, [["__scopeId", "data-v-9bfffebe"]]);
5
5
  export {
6
6
  m as default
7
7
  };
@@ -1,7 +1,7 @@
1
1
  import o from "./SectionContainerAccordion.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-797031c0"]]);
4
+ const c = /* @__PURE__ */ t(o, [["__scopeId", "data-v-4ea50e41"]]);
5
5
  export {
6
- a as default
6
+ c as default
7
7
  };
@@ -1,5 +1,6 @@
1
1
  type __VLS_Props = {
2
2
  id: string;
3
+ onShowMore: ((id: string) => void) | undefined;
3
4
  };
4
5
  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>;
5
6
  export default _default;
@@ -1 +1 @@
1
- {"version":3,"file":"ShowMoreButton.vue.d.ts","sourceRoot":"","sources":["../../src/components/ShowMoreButton.vue"],"names":[],"mappings":"AAwEA,KAAK,WAAW,GAAG;IACjB,EAAE,EAAE,MAAM,CAAA;CACX,CAAC;;AAmEF,wBAMG"}
1
+ {"version":3,"file":"ShowMoreButton.vue.d.ts","sourceRoot":"","sources":["../../src/components/ShowMoreButton.vue"],"names":[],"mappings":"AAsEA,KAAK,WAAW,GAAG;IACjB,EAAE,EAAE,MAAM,CAAA;IACV,UAAU,EAAE,CAAC,CAAC,EAAE,EAAE,MAAM,KAAK,IAAI,CAAC,GAAG,SAAS,CAAA;CAC/C,CAAC;;AAkEF,wBAMG"}
@@ -1,7 +1,7 @@
1
1
  import o from "./ShowMoreButton.vue2.js";
2
2
  /* empty css */
3
3
  import t from "../_virtual/_plugin-vue_export-helper.js";
4
- const _ = /* @__PURE__ */ t(o, [["__scopeId", "data-v-46471107"]]);
4
+ const p = /* @__PURE__ */ t(o, [["__scopeId", "data-v-4b6e7dc9"]]);
5
5
  export {
6
- _ as default
6
+ p as default
7
7
  };
@@ -1,23 +1,23 @@
1
- import { defineComponent as c, createElementBlock as i, openBlock as s, createTextVNode as a, createVNode as m, unref as l } from "vue";
2
- import { ScalarIconCaretDown as d } from "@scalar/icons";
3
- import { useConfig as u } from "../hooks/useConfig.js";
4
- import { useSidebar as f } from "../v2/blocks/scalar-sidebar-block/hooks/useSidebar.js";
5
- const h = /* @__PURE__ */ c({
1
+ import { defineComponent as r, createElementBlock as c, openBlock as a, createTextVNode as i, createVNode as s, unref as l } from "vue";
2
+ import { ScalarIconCaretDown as m } from "@scalar/icons";
3
+ import { useSidebar as d } from "../v2/blocks/scalar-sidebar-block/hooks/useSidebar.js";
4
+ const S = /* @__PURE__ */ r({
6
5
  __name: "ShowMoreButton",
7
6
  props: {
8
- id: {}
7
+ id: {},
8
+ onShowMore: { type: Function }
9
9
  },
10
10
  setup(e) {
11
- const { setCollapsedSidebarItem: t } = f(), r = u(), n = () => {
12
- t(e.id, !0), r.value.onShowMore?.(e.id);
11
+ const { setCollapsedSidebarItem: t } = d(), n = () => {
12
+ t(e.id, !0), e.onShowMore?.(e.id);
13
13
  };
14
- return (p, o) => (s(), i("button", {
14
+ return (u, o) => (a(), c("button", {
15
15
  class: "show-more",
16
16
  type: "button",
17
17
  onClick: n
18
18
  }, [
19
- o[0] || (o[0] = a(" Show More ")),
20
- m(l(d), {
19
+ o[0] || (o[0] = i(" Show More ")),
20
+ s(l(m), {
21
21
  class: "text-c-2 mt-0.25 size-3",
22
22
  weight: "bold"
23
23
  })
@@ -25,5 +25,5 @@ const h = /* @__PURE__ */ c({
25
25
  }
26
26
  });
27
27
  export {
28
- h as default
28
+ S as default
29
29
  };
@@ -0,0 +1,17 @@
1
+ /** Registry URL where shared documents can be accessed */
2
+ export declare const REGISTRY_SHARE_URL: "https://registry.scalar.com/share";
3
+ /**
4
+ * Scalar proxy service
5
+ */
6
+ export declare const PROXY_URL: "https://proxy.scalar.com";
7
+ /**
8
+ * API endpoint for uploading temporary documents
9
+ * TODO: Update to production URL once available
10
+ */
11
+ export declare const UPLOAD_TEMP_API_URL: "https://api.scalar.com/core/share/upload/apis";
12
+ /**
13
+ * Editor preview URL for previewing a specific document
14
+ * TODO: Update to production URL once available
15
+ */
16
+ export declare const DASHBOARD_REGISTER_URL: "https://dashboard.scalar.com/register";
17
+ //# sourceMappingURL=urls.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"urls.d.ts","sourceRoot":"","sources":["../../src/consts/urls.ts"],"names":[],"mappings":"AAAA,0DAA0D;AAC1D,eAAO,MAAM,kBAAkB,EAAG,mCAA4C,CAAA;AAE9E;;GAEG;AACH,eAAO,MAAM,SAAS,EAAG,0BAAmC,CAAA;AAE5D;;;GAGG;AACH,eAAO,MAAM,mBAAmB,EAAG,+CAAwD,CAAA;AAE3F;;;GAGG;AACH,eAAO,MAAM,sBAAsB,EAAG,uCAAgD,CAAA"}
@@ -0,0 +1,7 @@
1
+ const s = "https://registry.scalar.com/share", a = "https://proxy.scalar.com", t = "https://api.scalar.com/core/share/upload/apis", r = "https://dashboard.scalar.com/register";
2
+ export {
3
+ r as DASHBOARD_REGISTER_URL,
4
+ a as PROXY_URL,
5
+ s as REGISTRY_SHARE_URL,
6
+ t as UPLOAD_TEMP_API_URL
7
+ };
@@ -1,21 +1,33 @@
1
+ import type { ClientOptionGroup } from '@scalar/api-client/v2/blocks/operation-code-sample';
1
2
  import type { HttpMethod } from '@scalar/helpers/http/http-methods';
2
3
  import type { Collection, Server } from '@scalar/oas-utils/entities/spec';
3
- import type { ApiReferenceConfiguration } from '@scalar/types';
4
4
  import type { WorkspaceStore } from '@scalar/workspace-store/client';
5
- import type { OpenApiDocument } from '@scalar/workspace-store/schemas/v3.1/strict/openapi-document';
6
- import type { ClientOptionGroup } from '../../v2/blocks/scalar-request-example-block/types';
5
+ import type { PathItemObject, SecurityRequirementObject } from '@scalar/workspace-store/schemas/v3.1/strict/openapi-document';
7
6
  type __VLS_Props = {
8
- path: string;
9
- method: HttpMethod;
10
- clientOptions: ClientOptionGroup[];
11
- config: ApiReferenceConfiguration;
12
- document: OpenApiDocument;
13
- isWebhook: boolean;
14
7
  id: string;
8
+ method: HttpMethod;
9
+ /** Key of the operations path in the document.paths object */
10
+ path: string;
11
+ /** OpenAPI path object that will include the operation */
12
+ pathValue: PathItemObject | undefined;
13
+ /** Active server*/
15
14
  server: Server | undefined;
15
+ /** Document level security requirements */
16
+ security: SecurityRequirementObject[] | undefined;
16
17
  store: WorkspaceStore;
17
18
  /** @deprecated Use `document` instead, we just need the selected security scheme uids for now */
18
19
  collection: Collection;
20
+ options: {
21
+ layout: 'classic' | 'modern';
22
+ /** Sets some additional display properties when an operation is a webhook */
23
+ isWebhook: boolean;
24
+ showOperationId: boolean | undefined;
25
+ hideTestRequestButton: boolean | undefined;
26
+ expandAllResponses: boolean | undefined;
27
+ clientOptions: ClientOptionGroup[];
28
+ orderRequiredPropertiesFirst: boolean | undefined;
29
+ orderSchemaPropertiesBy: 'alpha' | 'preserve' | undefined;
30
+ };
19
31
  };
20
32
  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>;
21
33
  export default _default;
@@ -1 +1 @@
1
- {"version":3,"file":"Operation.vue.d.ts","sourceRoot":"","sources":["../../../src/features/Operation/Operation.vue"],"names":[],"mappings":"AA8HA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,mCAAmC,CAAA;AACnE,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;AAEpE,OAAO,KAAK,EACV,eAAe,EAEhB,MAAM,8DAA8D,CAAA;AAKrE,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,gDAAgD,CAAA;AAMvF,KAAK,WAAW,GAAG;IACf,IAAI,EAAE,MAAM,CAAA;IACZ,MAAM,EAAE,UAAU,CAAA;IAClB,aAAa,EAAE,iBAAiB,EAAE,CAAA;IAClC,MAAM,EAAE,yBAAyB,CAAA;IACjC,QAAQ,EAAE,eAAe,CAAA;IACzB,SAAS,EAAE,OAAO,CAAA;IAClB,EAAE,EAAE,MAAM,CAAA;IACV,MAAM,EAAE,MAAM,GAAG,SAAS,CAAA;IAC1B,KAAK,EAAE,cAAc,CAAA;IACrB,iGAAiG;IACjG,UAAU,EAAE,UAAU,CAAA;CACvB,CAAC;;AAyJJ,wBAMG"}
1
+ {"version":3,"file":"Operation.vue.d.ts","sourceRoot":"","sources":["../../../src/features/Operation/Operation.vue"],"names":[],"mappings":"AA8HA,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,oDAAoD,CAAA;AAE3F,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,mCAAmC,CAAA;AACnE,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,EAAE,MAAM,iCAAiC,CAAA;AACzE,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,gCAAgC,CAAA;AAEpE,OAAO,KAAK,EACV,cAAc,EACd,yBAAyB,EAE1B,MAAM,8DAA8D,CAAA;AAUrE,KAAK,WAAW,GAAG;IACjB,EAAE,EAAE,MAAM,CAAA;IACV,MAAM,EAAE,UAAU,CAAA;IAClB,8DAA8D;IAC9D,IAAI,EAAE,MAAM,CAAA;IACZ,0DAA0D;IAC1D,SAAS,EAAE,cAAc,GAAG,SAAS,CAAA;IACrC,mBAAmB;IACnB,MAAM,EAAE,MAAM,GAAG,SAAS,CAAA;IAC1B,2CAA2C;IAC3C,QAAQ,EAAE,yBAAyB,EAAE,GAAG,SAAS,CAAA;IAGjD,KAAK,EAAE,cAAc,CAAA;IACrB,iGAAiG;IACjG,UAAU,EAAE,UAAU,CAAA;IACtB,OAAO,EAAE;QACP,MAAM,EAAE,SAAS,GAAG,QAAQ,CAAA;QAC5B,6EAA6E;QAC7E,SAAS,EAAE,OAAO,CAAA;QAClB,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;KAC1D,CAAA;CACF,CAAC;;AAuIF,wBAMG"}