@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,99 +1,102 @@
1
- import { defineComponent as B, createElementBlock as a, openBlock as o, createElementVNode as r, renderSlot as g, createCommentVNode as s, normalizeClass as A, unref as l, createTextVNode as h, withModifiers as O, createVNode as f, withCtx as b, toDisplayString as p, createBlock as $, normalizeStyle as E } from "vue";
2
- import { ScalarSidebarGroupToggle as N } from "@scalar/components";
3
- import { scrollToId as V } from "@scalar/helpers/dom/scroll-to-id";
4
- import { getHttpMethodInfo as H } from "@scalar/helpers/http/http-info";
5
- import { sleep as k } from "@scalar/helpers/testing/sleep";
6
- import { ScalarIconWebhooksLogo as I } from "@scalar/icons";
7
- import { combineUrlAndPath as P } from "@scalar/oas-utils/helpers";
8
- import { useConfig as R } from "../../../../hooks/useConfig.js";
9
- import { useNavState as U } from "../../../../hooks/useNavState.js";
10
- import D from "./SidebarHttpBadge.vue.js";
11
- const L = ["id"], M = {
1
+ import { defineComponent as T, createElementBlock as n, openBlock as o, createElementVNode as a, renderSlot as c, createCommentVNode as s, normalizeClass as B, createTextVNode as p, withModifiers as A, createVNode as g, unref as h, withCtx as f, toDisplayString as l, createBlock as O, normalizeStyle as $ } from "vue";
2
+ import { ScalarSidebarGroupToggle as E } from "@scalar/components";
3
+ import { scrollToId as N } from "@scalar/helpers/dom/scroll-to-id";
4
+ import { getHttpMethodInfo as V } from "@scalar/helpers/http/http-info";
5
+ import { sleep as b } from "@scalar/helpers/testing/sleep";
6
+ import { ScalarIconWebhooksLogo as H } from "@scalar/icons";
7
+ import { combineUrlAndPath as I } from "@scalar/oas-utils/helpers";
8
+ import { useNavState as P } from "../../../../hooks/useNavState.js";
9
+ import R from "./SidebarHttpBadge.vue.js";
10
+ const U = ["id"], D = {
12
11
  key: 0,
13
12
  class: "sidebar-heading-chevron"
14
- }, z = ["aria-expanded"], j = ["href", "tabindex"], F = { class: "sidebar-heading-link-title" }, G = {
13
+ }, L = ["aria-expanded"], M = ["href", "tabindex"], z = { class: "sidebar-heading-link-title" }, j = {
15
14
  key: 0,
16
15
  class: "hanging-indent"
17
- }, W = { key: 1 }, q = {
16
+ }, F = { key: 1 }, G = {
18
17
  key: 0,
19
18
  class: "sidebar-heading-link-method"
20
- }, J = {
19
+ }, W = {
21
20
  key: 1,
22
21
  class: "action-menu"
23
- }, ie = /* @__PURE__ */ B({
22
+ }, ee = /* @__PURE__ */ T({
24
23
  __name: "SidebarElement",
25
24
  props: {
26
25
  id: {},
27
26
  item: {},
28
27
  isActive: { type: Boolean },
29
28
  hasChildren: { type: Boolean },
30
- open: { type: Boolean }
29
+ open: { type: Boolean },
30
+ options: {}
31
31
  },
32
32
  emits: ["toggleOpen"],
33
- setup(y, { emit: v }) {
34
- const t = y, m = v, { getFullHash: u, isIntersectionEnabled: d, replaceUrlState: C } = U(), i = R(), w = (e) => "path" in e ? e.path.replace(/\//g, "/​") : e.title, c = async () => {
35
- d.value = !1, t.hasChildren && m("toggleOpen"), await k(100), d.value = !0;
36
- }, S = () => {
37
- if (i.value.pathRouting)
38
- return P(i.value.pathRouting.basePath, t.item.id);
33
+ setup(k, { emit: y }) {
34
+ const t = k, d = y, { getFullHash: m, isIntersectionEnabled: r, replaceUrlState: C } = P(), v = (e) => "path" in e ? e.path.replace(/\//g, "/​") : e.title, u = async () => {
35
+ r.value = !1, t.hasChildren && d("toggleOpen"), await b(100), r.value = !0;
36
+ }, w = () => {
37
+ if (t.options.pathRouting)
38
+ return I(
39
+ t.options.pathRouting?.basePath ?? "",
40
+ t.item.id
41
+ );
39
42
  if (typeof window < "u") {
40
43
  const e = new URL(window.location.href);
41
- return e.hash = u(t.item.id), `${e.search}${e.hash}`;
44
+ return e.hash = m(t.item.id), `${e.search}${e.hash}`;
42
45
  }
43
- return `#${u(t.item.id)}`;
44
- }, T = async (e) => {
45
- i.value.onSidebarClick?.(t.item.id), i.value.pathRouting && (e.preventDefault(), t.hasChildren && m("toggleOpen"), m("toggleOpen"), d.value = !1, C(t.item.id), V(t.item.id), await k(100), d.value = !0);
46
+ return `#${m(t.item.id)}`;
47
+ }, S = async (e) => {
48
+ t.options.onSidebarClick?.(t.item.id), t.options.pathRouting && (e.preventDefault(), t.hasChildren && d("toggleOpen"), d("toggleOpen"), r.value = !1, C(t.item.id), N(t.item.id), await b(100), r.value = !0);
46
49
  };
47
- return (e, n) => (o(), a("li", {
50
+ return (e, i) => (o(), n("li", {
48
51
  id: e.id,
49
52
  class: "sidebar-group-item"
50
53
  }, [
51
- r("div", {
52
- class: A(["sidebar-heading", {
54
+ a("div", {
55
+ class: B(["sidebar-heading", {
53
56
  "sidebar-group-item__folder": e.hasChildren,
54
57
  active_page: e.isActive,
55
58
  deprecated: e.item.type === "operation" && e.item.isDeprecated
56
59
  }]),
57
- onClick: c
60
+ onClick: u
58
61
  }, [
59
- e.hasChildren && !l(i).defaultOpenAllTags ? (o(), a("p", M, [
60
- r("button", {
62
+ e.hasChildren && !e.options.defaultOpenAllTags ? (o(), n("p", D, [
63
+ a("button", {
61
64
  "aria-expanded": e.open,
62
65
  class: "toggle-nested-icon",
63
66
  type: "button",
64
- onClick: O(c, ["stop"])
67
+ onClick: A(u, ["stop"])
65
68
  }, [
66
- f(l(N), { open: e.open }, {
67
- label: b(() => [
68
- h(p(e.open ? "Collapse" : "Expand") + " " + p(e.item.title), 1)
69
+ g(h(E), { open: e.open }, {
70
+ label: f(() => [
71
+ p(l(e.open ? "Collapse" : "Expand") + " " + l(e.item.title), 1)
69
72
  ]),
70
73
  _: 1
71
74
  }, 8, ["open"])
72
- ], 8, z),
73
- n[0] || (n[0] = h("   "))
75
+ ], 8, L),
76
+ i[0] || (i[0] = p("   "))
74
77
  ])) : s("", !0),
75
- r("a", {
78
+ a("a", {
76
79
  class: "sidebar-heading-link",
77
- href: S(),
80
+ href: w(),
78
81
  tabindex: e.hasChildren ? -1 : 0,
79
- onClick: T
82
+ onClick: S
80
83
  }, [
81
- r("p", F, [
82
- l(i).operationTitleSource === "path" ? (o(), a("span", G, p(w(e.item)), 1)) : (o(), a("span", W, p(e.item.title), 1))
84
+ a("p", z, [
85
+ e.options.operationTitleSource === "path" ? (o(), n("span", j, l(v(e.item)), 1)) : (o(), n("span", F, l(e.item.title), 1))
83
86
  ]),
84
- "method" in e.item && !e.hasChildren ? (o(), a("p", q, [
85
- n[1] || (n[1] = h("   ")),
86
- n[2] || (n[2] = r("span", { class: "sr-only" }, "HTTP Method: ", -1)),
87
- f(D, {
87
+ "method" in e.item && !e.hasChildren ? (o(), n("p", G, [
88
+ i[1] || (i[1] = p("   ")),
89
+ i[2] || (i[2] = a("span", { class: "sr-only" }, "HTTP Method: ", -1)),
90
+ g(R, {
88
91
  active: e.isActive,
89
92
  class: "min-w-9.75 justify-end text-right",
90
93
  method: e.item.method
91
94
  }, {
92
- default: b(() => [
93
- e.item.type === "webhook" ? (o(), $(l(I), {
95
+ default: f(() => [
96
+ e.item.type === "webhook" ? (o(), O(h(H), {
94
97
  key: 0,
95
- style: E({
96
- color: l(H)(e.item.method).colorVar
98
+ style: $({
99
+ color: h(V)(e.item.method).colorVar
97
100
  }),
98
101
  weight: "bold"
99
102
  }, null, 8, ["style"])) : s("", !0)
@@ -101,15 +104,15 @@ const L = ["id"], M = {
101
104
  _: 1
102
105
  }, 8, ["active", "method"])
103
106
  ])) : s("", !0)
104
- ], 8, j)
107
+ ], 8, M)
105
108
  ], 2),
106
- e.open ? g(e.$slots, "default", { key: 0 }, void 0, !0) : s("", !0),
107
- e.$slots["action-menu"] ? (o(), a("div", J, [
108
- g(e.$slots, "action-menu", {}, void 0, !0)
109
+ e.open ? c(e.$slots, "default", { key: 0 }, void 0, !0) : s("", !0),
110
+ e.$slots["action-menu"] ? (o(), n("div", W, [
111
+ c(e.$slots, "action-menu", {}, void 0, !0)
109
112
  ])) : s("", !0)
110
- ], 8, L));
113
+ ], 8, U));
111
114
  }
112
115
  });
113
116
  export {
114
- ie as default
117
+ ee as default
115
118
  };
@@ -11,371 +11,9 @@ export declare const createSidebar: (store: WorkspaceStore) => {
11
11
  collapsedSidebarItems: Record<string, boolean>;
12
12
  isSidebarOpen: import("vue").Ref<boolean, boolean>;
13
13
  items: import("vue").ComputedRef<{
14
- entries: (({
15
- title: string;
16
- id: string;
17
- } & {
18
- description?: string | undefined;
19
- children?: (({
20
- title: string;
21
- id: string;
22
- } & /*elided*/ any) | ({
23
- title: string;
24
- id: string;
25
- } & {
26
- children?: (({
27
- title: string;
28
- id: string;
29
- } & /*elided*/ any) | ({
30
- title: string;
31
- id: string;
32
- } & /*elided*/ any) | ({
33
- title: string;
34
- id: string;
35
- } & {
36
- isDeprecated?: boolean | undefined;
37
- path: string;
38
- method: "head" | "connect" | "delete" | "get" | "options" | "patch" | "post" | "put" | "trace";
39
- type: "operation";
40
- ref: string;
41
- }) | ({
42
- title: string;
43
- id: string;
44
- } & {
45
- type: "model";
46
- ref: string;
47
- name: string;
48
- }) | ({
49
- title: string;
50
- id: string;
51
- } & {
52
- isDeprecated?: boolean | undefined;
53
- method: "head" | "connect" | "delete" | "get" | "options" | "patch" | "post" | "put" | "trace";
54
- type: "webhook";
55
- ref: string;
56
- name: string;
57
- }))[] | undefined;
58
- type: "text";
59
- }) | ({
60
- title: string;
61
- id: string;
62
- } & {
63
- isDeprecated?: boolean | undefined;
64
- path: string;
65
- method: "head" | "connect" | "delete" | "get" | "options" | "patch" | "post" | "put" | "trace";
66
- type: "operation";
67
- ref: string;
68
- }) | ({
69
- title: string;
70
- id: string;
71
- } & {
72
- type: "model";
73
- ref: string;
74
- name: string;
75
- }) | ({
76
- title: string;
77
- id: string;
78
- } & {
79
- isDeprecated?: boolean | undefined;
80
- method: "head" | "connect" | "delete" | "get" | "options" | "patch" | "post" | "put" | "trace";
81
- type: "webhook";
82
- ref: string;
83
- name: string;
84
- }))[] | undefined;
85
- isWebhooks?: boolean | undefined;
86
- xKeys?: {
87
- [x: string]: unknown;
88
- } | undefined;
89
- type: "tag";
90
- name: string;
91
- isGroup: boolean;
92
- }) | ({
93
- title: string;
94
- id: string;
95
- } & {
96
- children?: (({
97
- title: string;
98
- id: string;
99
- } & {
100
- description?: string | undefined;
101
- children?: (({
102
- title: string;
103
- id: string;
104
- } & /*elided*/ any) | ({
105
- title: string;
106
- id: string;
107
- } & /*elided*/ any) | ({
108
- title: string;
109
- id: string;
110
- } & {
111
- isDeprecated?: boolean | undefined;
112
- path: string;
113
- method: "head" | "connect" | "delete" | "get" | "options" | "patch" | "post" | "put" | "trace";
114
- type: "operation";
115
- ref: string;
116
- }) | ({
117
- title: string;
118
- id: string;
119
- } & {
120
- type: "model";
121
- ref: string;
122
- name: string;
123
- }) | ({
124
- title: string;
125
- id: string;
126
- } & {
127
- isDeprecated?: boolean | undefined;
128
- method: "head" | "connect" | "delete" | "get" | "options" | "patch" | "post" | "put" | "trace";
129
- type: "webhook";
130
- ref: string;
131
- name: string;
132
- }))[] | undefined;
133
- isWebhooks?: boolean | undefined;
134
- xKeys?: {
135
- [x: string]: unknown;
136
- } | undefined;
137
- type: "tag";
138
- name: string;
139
- isGroup: boolean;
140
- }) | ({
141
- title: string;
142
- id: string;
143
- } & /*elided*/ any) | ({
144
- title: string;
145
- id: string;
146
- } & {
147
- isDeprecated?: boolean | undefined;
148
- path: string;
149
- method: "head" | "connect" | "delete" | "get" | "options" | "patch" | "post" | "put" | "trace";
150
- type: "operation";
151
- ref: string;
152
- }) | ({
153
- title: string;
154
- id: string;
155
- } & {
156
- type: "model";
157
- ref: string;
158
- name: string;
159
- }) | ({
160
- title: string;
161
- id: string;
162
- } & {
163
- isDeprecated?: boolean | undefined;
164
- method: "head" | "connect" | "delete" | "get" | "options" | "patch" | "post" | "put" | "trace";
165
- type: "webhook";
166
- ref: string;
167
- name: string;
168
- }))[] | undefined;
169
- type: "text";
170
- }) | ({
171
- title: string;
172
- id: string;
173
- } & {
174
- isDeprecated?: boolean | undefined;
175
- path: string;
176
- method: "head" | "connect" | "delete" | "get" | "options" | "patch" | "post" | "put" | "trace";
177
- type: "operation";
178
- ref: string;
179
- }) | ({
180
- title: string;
181
- id: string;
182
- } & {
183
- type: "model";
184
- ref: string;
185
- name: string;
186
- }) | ({
187
- title: string;
188
- id: string;
189
- } & {
190
- isDeprecated?: boolean | undefined;
191
- method: "head" | "connect" | "delete" | "get" | "options" | "patch" | "post" | "put" | "trace";
192
- type: "webhook";
193
- ref: string;
194
- name: string;
195
- }))[];
196
- entities: Map<string, (({
197
- title: string;
198
- id: string;
199
- } & {
200
- description?: string | undefined;
201
- children?: (({
202
- title: string;
203
- id: string;
204
- } & /*elided*/ any) | ({
205
- title: string;
206
- id: string;
207
- } & {
208
- children?: (({
209
- title: string;
210
- id: string;
211
- } & /*elided*/ any) | ({
212
- title: string;
213
- id: string;
214
- } & /*elided*/ any) | ({
215
- title: string;
216
- id: string;
217
- } & {
218
- isDeprecated?: boolean | undefined;
219
- path: string;
220
- method: "head" | "connect" | "delete" | "get" | "options" | "patch" | "post" | "put" | "trace";
221
- type: "operation";
222
- ref: string;
223
- }) | ({
224
- title: string;
225
- id: string;
226
- } & {
227
- type: "model";
228
- ref: string;
229
- name: string;
230
- }) | ({
231
- title: string;
232
- id: string;
233
- } & {
234
- isDeprecated?: boolean | undefined;
235
- method: "head" | "connect" | "delete" | "get" | "options" | "patch" | "post" | "put" | "trace";
236
- type: "webhook";
237
- ref: string;
238
- name: string;
239
- }))[] | undefined;
240
- type: "text";
241
- }) | ({
242
- title: string;
243
- id: string;
244
- } & {
245
- isDeprecated?: boolean | undefined;
246
- path: string;
247
- method: "head" | "connect" | "delete" | "get" | "options" | "patch" | "post" | "put" | "trace";
248
- type: "operation";
249
- ref: string;
250
- }) | ({
251
- title: string;
252
- id: string;
253
- } & {
254
- type: "model";
255
- ref: string;
256
- name: string;
257
- }) | ({
258
- title: string;
259
- id: string;
260
- } & {
261
- isDeprecated?: boolean | undefined;
262
- method: "head" | "connect" | "delete" | "get" | "options" | "patch" | "post" | "put" | "trace";
263
- type: "webhook";
264
- ref: string;
265
- name: string;
266
- }))[] | undefined;
267
- isWebhooks?: boolean | undefined;
268
- xKeys?: {
269
- [x: string]: unknown;
270
- } | undefined;
271
- type: "tag";
272
- name: string;
273
- isGroup: boolean;
274
- }) | ({
275
- title: string;
276
- id: string;
277
- } & {
278
- children?: (({
279
- title: string;
280
- id: string;
281
- } & {
282
- description?: string | undefined;
283
- children?: (({
284
- title: string;
285
- id: string;
286
- } & /*elided*/ any) | ({
287
- title: string;
288
- id: string;
289
- } & /*elided*/ any) | ({
290
- title: string;
291
- id: string;
292
- } & {
293
- isDeprecated?: boolean | undefined;
294
- path: string;
295
- method: "head" | "connect" | "delete" | "get" | "options" | "patch" | "post" | "put" | "trace";
296
- type: "operation";
297
- ref: string;
298
- }) | ({
299
- title: string;
300
- id: string;
301
- } & {
302
- type: "model";
303
- ref: string;
304
- name: string;
305
- }) | ({
306
- title: string;
307
- id: string;
308
- } & {
309
- isDeprecated?: boolean | undefined;
310
- method: "head" | "connect" | "delete" | "get" | "options" | "patch" | "post" | "put" | "trace";
311
- type: "webhook";
312
- ref: string;
313
- name: string;
314
- }))[] | undefined;
315
- isWebhooks?: boolean | undefined;
316
- xKeys?: {
317
- [x: string]: unknown;
318
- } | undefined;
319
- type: "tag";
320
- name: string;
321
- isGroup: boolean;
322
- }) | ({
323
- title: string;
324
- id: string;
325
- } & /*elided*/ any) | ({
326
- title: string;
327
- id: string;
328
- } & {
329
- isDeprecated?: boolean | undefined;
330
- path: string;
331
- method: "head" | "connect" | "delete" | "get" | "options" | "patch" | "post" | "put" | "trace";
332
- type: "operation";
333
- ref: string;
334
- }) | ({
335
- title: string;
336
- id: string;
337
- } & {
338
- type: "model";
339
- ref: string;
340
- name: string;
341
- }) | ({
342
- title: string;
343
- id: string;
344
- } & {
345
- isDeprecated?: boolean | undefined;
346
- method: "head" | "connect" | "delete" | "get" | "options" | "patch" | "post" | "put" | "trace";
347
- type: "webhook";
348
- ref: string;
349
- name: string;
350
- }))[] | undefined;
351
- type: "text";
352
- }) | ({
353
- title: string;
354
- id: string;
355
- } & {
356
- isDeprecated?: boolean | undefined;
357
- path: string;
358
- method: "head" | "connect" | "delete" | "get" | "options" | "patch" | "post" | "put" | "trace";
359
- type: "operation";
360
- ref: string;
361
- }) | ({
362
- title: string;
363
- id: string;
364
- } & {
365
- type: "model";
366
- ref: string;
367
- name: string;
368
- }) | ({
369
- title: string;
370
- id: string;
371
- } & {
372
- isDeprecated?: boolean | undefined;
373
- method: "head" | "connect" | "delete" | "get" | "options" | "patch" | "post" | "put" | "trace";
374
- type: "webhook";
375
- ref: string;
376
- name: string;
377
- })) & {
378
- parent?: import("@scalar/workspace-store/schemas/v3.1/strict/openapi-document").TraversedEntry;
14
+ entries: import("@scalar/workspace-store/schemas/navigation").TraversedEntry[];
15
+ entities: Map<string, import("@scalar/workspace-store/schemas/navigation").TraversedEntry & {
16
+ parent?: import("@scalar/workspace-store/schemas/navigation").TraversedEntry;
379
17
  }>;
380
18
  }>;
381
19
  scrollToOperation: (operationId: string, focus?: boolean) => void;
@@ -1 +1 @@
1
- {"version":3,"file":"create-sidebar.d.ts","sourceRoot":"","sources":["../../../../../src/v2/blocks/scalar-sidebar-block/helpers/create-sidebar.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,gCAAgC,CAAA;AAMpE;;;;;;;GAOG;AACH,eAAO,MAAM,aAAa,GAAI,OAAO,cAAc;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;qCA4BT,MAAM,UAAU,OAAO;mCAvBzB,MAAM,SAAS,OAAO;sCADnB,MAAM;CAmDhD,CAAA"}
1
+ {"version":3,"file":"create-sidebar.d.ts","sourceRoot":"","sources":["../../../../../src/v2/blocks/scalar-sidebar-block/helpers/create-sidebar.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,gCAAgC,CAAA;AAMpE;;;;;;;GAOG;AACH,eAAO,MAAM,aAAa,GAAI,OAAO,cAAc;;;;;;;;;qCA4BT,MAAM,UAAU,OAAO;mCAvBzB,MAAM,SAAS,OAAO;sCADnB,MAAM;CAmDhD,CAAA"}