@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,100 +1,102 @@
1
- import { defineComponent as v, computed as S, useId as C, createBlock as r, openBlock as i, unref as o, withCtx as t, createVNode as a, createElementVNode as s, createCommentVNode as l, normalizeClass as c, createTextVNode as n, toDisplayString as h, createSlots as w } from "vue";
2
- import { ScalarMarkdown as B, ScalarErrorBoundary as p } from "@scalar/components";
3
- import { ScalarIconWebhooksLogo as O } from "@scalar/icons";
4
- import { getOperationStability as b, getOperationStabilityColor as W, isOperationDeprecated as I } from "@scalar/oas-utils/helpers";
5
- import { getResolvedRef as R } from "@scalar/workspace-store/helpers/get-resolved-ref";
6
- import $ from "../../../components/OperationPath.vue.js";
7
- import q from "../components/callbacks/Callbacks.vue.js";
8
- import L from "../components/OperationParameters.vue.js";
9
- import T from "../components/OperationResponses.vue.js";
10
- import D from "../../../components/Section/Section.vue.js";
11
- import E from "../../../components/Section/SectionContent.vue.js";
12
- import g from "../../../components/Badge/Badge.vue.js";
13
- import y from "../../x-badges/XBadges.vue.js";
1
+ import { defineComponent as g, computed as v, useId as B, createBlock as a, openBlock as i, unref as o, withCtx as t, createVNode as r, createElementVNode as n, createCommentVNode as s, createTextVNode as l, toDisplayString as p, normalizeClass as b, createSlots as C } from "vue";
2
+ import { OperationCodeSample as P } from "@scalar/api-client/v2/blocks/operation-code-sample";
3
+ import { ScalarMarkdown as w, ScalarErrorBoundary as d } from "@scalar/components";
4
+ import { ScalarIconWebhooksLogo as R } from "@scalar/icons";
5
+ import { getOperationStability as y, getOperationStabilityColor as q, isOperationDeprecated as O } from "@scalar/oas-utils/helpers";
6
+ import { getResolvedRef as I } from "@scalar/workspace-store/helpers/get-resolved-ref";
7
+ import W from "../../../components/OperationPath.vue.js";
8
+ import T from "../components/callbacks/Callbacks.vue.js";
9
+ import $ from "../components/OperationParameters.vue.js";
10
+ import D from "../components/OperationResponses.vue.js";
11
+ import F from "../../../components/Section/Section.vue.js";
12
+ import L from "../../../components/Section/SectionContent.vue.js";
13
+ import m from "../../../components/Badge/Badge.vue.js";
14
+ import k from "../../x-badges/XBadges.vue.js";
14
15
  import N from "../../../components/Section/SectionHeader.vue.js";
15
16
  import V from "../../../components/Anchor/Anchor.vue.js";
16
- import _ from "../../../components/Section/SectionHeaderTag.vue.js";
17
- import P from "../../../components/Section/SectionColumns.vue.js";
18
- import k from "../../../components/Section/SectionColumn.vue.js";
19
- import j from "../../../components/LinkList/LinkList.vue.js";
20
- import z from "../../external-docs/ExternalDocs.vue.js";
21
- import A from "../../../v2/blocks/scalar-request-example-block/components/RequestExample.vue.js";
17
+ import E from "../../../components/Section/SectionHeaderTag.vue.js";
18
+ import j from "../../../components/Section/SectionColumns.vue.js";
19
+ import S from "../../../components/Section/SectionColumn.vue.js";
20
+ import z from "../../../components/LinkList/LinkList.vue.js";
21
+ import A from "../../external-docs/ExternalDocs.vue.js";
22
22
  import H from "../../test-request-button/TestRequestButton.vue.js";
23
23
  import M from "../../example-responses/ExampleResponses.vue.js";
24
- const F = { class: "flex flex-row justify-between gap-1" }, G = { class: "flex gap-1" }, J = { class: "flex gap-1" }, K = { class: "operation-details" }, Q = { class: "examples" }, ye = /* @__PURE__ */ v({
24
+ const G = { class: "flex flex-row justify-between gap-1" }, J = { class: "flex gap-1" }, K = { class: "flex gap-1" }, Q = { class: "operation-details" }, U = { class: "examples" }, ke = /* @__PURE__ */ g({
25
25
  __name: "ModernLayout",
26
26
  props: {
27
27
  id: {},
28
28
  path: {},
29
- clientOptions: {},
30
- config: {},
31
29
  method: {},
32
30
  operation: {},
33
- isWebhook: { type: Boolean },
34
31
  securitySchemes: {},
35
32
  server: {},
36
- store: {}
33
+ store: {},
34
+ options: {}
37
35
  },
38
- setup(d) {
39
- const m = S(() => d.operation.summary || d.path || ""), u = C();
40
- return (e, f) => (i(), r(o(D), {
36
+ setup(u) {
37
+ const f = v(() => u.operation.summary || u.path || ""), h = B();
38
+ return (e, c) => (i(), a(o(F), {
41
39
  id: e.id,
42
- "aria-labelledby": o(u),
43
- label: m.value,
40
+ "aria-labelledby": o(h),
41
+ label: f.value,
44
42
  tabindex: "-1"
45
43
  }, {
46
44
  default: t(() => [
47
- a(o(E), {
48
- loading: e.config.isLoading
49
- }, {
45
+ r(o(L), null, {
50
46
  default: t(() => [
51
- s("div", F, [
52
- s("div", G, [
53
- o(b)(e.operation) ? (i(), r(o(g), {
54
- key: 0,
55
- class: c(["capitalize", o(W)(e.operation)])
56
- }, {
47
+ n("div", G, [
48
+ n("div", J, [
49
+ e.options?.showOperationId && e.operation.operationId ? (i(), a(o(m), { key: 0 }, {
57
50
  default: t(() => [
58
- n(h(o(b)(e.operation)), 1)
51
+ l(p(e.operation.operationId), 1)
59
52
  ]),
60
53
  _: 1
61
- }, 8, ["class"])) : l("", !0),
62
- e.isWebhook ? (i(), r(o(g), {
54
+ })) : s("", !0),
55
+ o(y)(e.operation) ? (i(), a(o(m), {
63
56
  key: 1,
57
+ class: b(["capitalize", o(q)(e.operation)])
58
+ }, {
59
+ default: t(() => [
60
+ l(p(o(y)(e.operation)), 1)
61
+ ]),
62
+ _: 1
63
+ }, 8, ["class"])) : s("", !0),
64
+ e.options.isWebhook ? (i(), a(o(m), {
65
+ key: 2,
64
66
  class: "font-code text-green flex w-fit items-center justify-center gap-1"
65
67
  }, {
66
68
  default: t(() => [
67
- a(o(O), { weight: "bold" }),
68
- f[0] || (f[0] = n("Webhook "))
69
+ r(o(R), { weight: "bold" }),
70
+ c[0] || (c[0] = l("Webhook "))
69
71
  ]),
70
72
  _: 1,
71
73
  __: [0]
72
- })) : l("", !0),
73
- a(o(y), {
74
+ })) : s("", !0),
75
+ r(o(k), {
74
76
  badges: e.operation["x-badges"],
75
77
  position: "before"
76
78
  }, null, 8, ["badges"])
77
79
  ]),
78
- s("div", J, [
79
- a(o(y), {
80
+ n("div", K, [
81
+ r(o(k), {
80
82
  badges: e.operation["x-badges"],
81
83
  position: "after"
82
84
  }, null, 8, ["badges"])
83
85
  ])
84
86
  ]),
85
- s("div", {
86
- class: c(o(I)(e.operation) ? "deprecated" : "")
87
+ n("div", {
88
+ class: b(o(O)(e.operation) ? "deprecated" : "")
87
89
  }, [
88
- a(o(N), null, {
90
+ r(o(N), null, {
89
91
  default: t(() => [
90
- a(o(V), { id: e.id }, {
92
+ r(o(V), { id: e.id }, {
91
93
  default: t(() => [
92
- a(o(_), {
93
- id: o(u),
94
+ r(o(E), {
95
+ id: o(h),
94
96
  level: 3
95
97
  }, {
96
98
  default: t(() => [
97
- n(h(m.value), 1)
99
+ l(p(f.value), 1)
98
100
  ]),
99
101
  _: 1
100
102
  }, 8, ["id"])
@@ -105,40 +107,49 @@ const F = { class: "flex flex-row justify-between gap-1" }, G = { class: "flex g
105
107
  _: 1
106
108
  })
107
109
  ], 2),
108
- a(o(P), null, {
110
+ r(o(j), null, {
109
111
  default: t(() => [
110
- a(o(k), null, {
112
+ r(o(S), null, {
111
113
  default: t(() => [
112
- s("div", K, [
113
- a(o(B), {
114
+ n("div", Q, [
115
+ r(o(w), {
114
116
  anchorPrefix: e.id,
115
117
  transformType: "heading",
116
118
  value: e.operation.description,
117
119
  withAnchors: "",
118
120
  withImages: ""
119
121
  }, null, 8, ["anchorPrefix", "value"]),
120
- a(L, {
122
+ r($, {
121
123
  breadcrumb: [e.id],
124
+ options: {
125
+ orderRequiredPropertiesFirst: e.options.orderRequiredPropertiesFirst,
126
+ orderSchemaPropertiesBy: e.options.orderSchemaPropertiesBy
127
+ },
122
128
  parameters: (
123
129
  // These have been resolved in the Operation.vue component
124
130
  e.operation.parameters
125
131
  ),
126
- requestBody: o(R)(e.operation.requestBody)
127
- }, null, 8, ["breadcrumb", "parameters", "requestBody"]),
128
- a(T, {
132
+ requestBody: o(I)(e.operation.requestBody)
133
+ }, null, 8, ["breadcrumb", "options", "parameters", "requestBody"]),
134
+ r(D, {
129
135
  breadcrumb: [e.id],
130
- collapsableItems: !e.config.expandAllResponses,
136
+ options: {
137
+ collapsableItems: !e.options.expandAllResponses,
138
+ orderRequiredPropertiesFirst: e.options.orderRequiredPropertiesFirst,
139
+ orderSchemaPropertiesBy: e.options.orderSchemaPropertiesBy
140
+ },
131
141
  responses: e.operation.responses
132
- }, null, 8, ["breadcrumb", "collapsableItems", "responses"]),
133
- a(o(p), null, {
142
+ }, null, 8, ["breadcrumb", "options", "responses"]),
143
+ r(o(d), null, {
134
144
  default: t(() => [
135
- e.operation.callbacks ? (i(), r(q, {
145
+ e.operation.callbacks ? (i(), a(T, {
136
146
  key: 0,
137
147
  callbacks: e.operation.callbacks,
138
148
  class: "mt-6",
139
149
  method: e.method,
150
+ options: e.options,
140
151
  path: e.path
141
- }, null, 8, ["callbacks", "method", "path"])) : l("", !0)
152
+ }, null, 8, ["callbacks", "method", "options", "path"])) : s("", !0)
142
153
  ]),
143
154
  _: 1
144
155
  })
@@ -146,32 +157,32 @@ const F = { class: "flex flex-row justify-between gap-1" }, G = { class: "flex g
146
157
  ]),
147
158
  _: 1
148
159
  }),
149
- a(o(k), null, {
160
+ r(o(S), null, {
150
161
  default: t(() => [
151
- s("div", Q, [
152
- e.operation.externalDocs ? (i(), r(o(j), { key: 0 }, {
162
+ n("div", U, [
163
+ e.operation.externalDocs ? (i(), a(o(z), { key: 0 }, {
153
164
  default: t(() => [
154
- a(o(z), {
165
+ r(o(A), {
155
166
  value: e.operation.externalDocs
156
167
  }, null, 8, ["value"])
157
168
  ]),
158
169
  _: 1
159
- })) : l("", !0),
160
- a(o(p), null, {
170
+ })) : s("", !0),
171
+ r(o(d), null, {
161
172
  default: t(() => [
162
- a(o(A), {
163
- clientOptions: e.clientOptions,
173
+ r(o(P), {
174
+ clientOptions: e.options.clientOptions,
164
175
  fallback: "",
176
+ isWebhook: e.options.isWebhook,
165
177
  method: e.method,
166
178
  operation: e.operation,
167
179
  path: e.path,
168
- isWebhook: e.isWebhook,
169
180
  securitySchemes: e.securitySchemes,
170
181
  selectedClient: e.store.workspace["x-scalar-default-client"],
171
182
  selectedServer: e.server
172
- }, w({
183
+ }, C({
173
184
  header: t(() => [
174
- a($, {
185
+ r(W, {
175
186
  class: "font-code text-c-2 [&_em]:text-c-1 [&_em]:not-italic",
176
187
  deprecated: e.operation?.deprecated,
177
188
  path: e.path
@@ -179,27 +190,28 @@ const F = { class: "flex flex-row justify-between gap-1" }, G = { class: "flex g
179
190
  ]),
180
191
  _: 2
181
192
  }, [
182
- e.isWebhook ? void 0 : {
193
+ e.options.isWebhook ? void 0 : {
183
194
  name: "footer",
184
195
  fn: t(() => [
185
- a(o(H), {
196
+ e.options.hideTestRequestButton ? s("", !0) : (i(), a(o(H), {
197
+ key: 0,
186
198
  method: e.method,
187
199
  path: e.path
188
- }, null, 8, ["method", "path"])
200
+ }, null, 8, ["method", "path"]))
189
201
  ]),
190
202
  key: "0"
191
203
  }
192
- ]), 1032, ["clientOptions", "method", "operation", "path", "isWebhook", "securitySchemes", "selectedClient", "selectedServer"])
204
+ ]), 1032, ["clientOptions", "isWebhook", "method", "operation", "path", "securitySchemes", "selectedClient", "selectedServer"])
193
205
  ]),
194
206
  _: 1
195
207
  }),
196
- a(o(p), null, {
208
+ r(o(d), null, {
197
209
  default: t(() => [
198
- e.operation.responses ? (i(), r(o(M), {
210
+ e.operation.responses ? (i(), a(o(M), {
199
211
  key: 0,
200
212
  responses: e.operation.responses,
201
213
  style: { "margin-top": "12px" }
202
- }, null, 8, ["responses"])) : l("", !0)
214
+ }, null, 8, ["responses"])) : s("", !0)
203
215
  ]),
204
216
  _: 1
205
217
  })
@@ -212,12 +224,12 @@ const F = { class: "flex flex-row justify-between gap-1" }, G = { class: "flex g
212
224
  })
213
225
  ]),
214
226
  _: 1
215
- }, 8, ["loading"])
227
+ })
216
228
  ]),
217
229
  _: 1
218
230
  }, 8, ["id", "aria-labelledby", "label"]));
219
231
  }
220
232
  });
221
233
  export {
222
- ye as default
234
+ ke as default
223
235
  };
@@ -1,4 +1,5 @@
1
- import type { OpenApiDocument, TraversedEntry } from '@scalar/workspace-store/schemas/v3.1/strict/openapi-document';
1
+ import type { TraversedEntry } from '@scalar/workspace-store/schemas/navigation';
2
+ import type { OpenApiDocument } from '@scalar/workspace-store/schemas/v3.1/strict/openapi-document';
2
3
  import type { FuseData } from '../../../features/Search/types';
3
4
  /**
4
5
  * Create a search index from a list of entries.
@@ -1 +1 @@
1
- {"version":3,"file":"create-search-index.d.ts","sourceRoot":"","sources":["../../../../src/features/Search/helpers/create-search-index.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,eAAe,EAAE,cAAc,EAAE,MAAM,8DAA8D,CAAA;AAEnH,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,yBAAyB,CAAA;AAGvD;;GAEG;AACH,wBAAgB,iBAAiB,CAAC,OAAO,EAAE,cAAc,EAAE,EAAE,QAAQ,CAAC,EAAE,eAAe,GAAG,QAAQ,EAAE,CAoBnG"}
1
+ {"version":3,"file":"create-search-index.d.ts","sourceRoot":"","sources":["../../../../src/features/Search/helpers/create-search-index.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,4CAA4C,CAAA;AAChF,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,8DAA8D,CAAA;AAEnG,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,yBAAyB,CAAA;AAGvD;;GAEG;AACH,wBAAgB,iBAAiB,CAAC,OAAO,EAAE,cAAc,EAAE,EAAE,QAAQ,CAAC,EAAE,eAAe,GAAG,QAAQ,EAAE,CAoBnG"}
@@ -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
  import type { ParameterMap } from '../../libs/openapi.js';
3
3
  export type EntryType = 'operation' | 'webhook' | 'model' | 'heading' | 'tag';
4
4
  export type FuseData = {
@@ -1 +1 @@
1
- {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/features/Search/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,8DAA8D,CAAA;AAElG,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAA;AAElD,MAAM,MAAM,SAAS,GAAG,WAAW,GAAG,SAAS,GAAG,OAAO,GAAG,SAAS,GAAG,KAAK,CAAA;AAE7E,MAAM,MAAM,QAAQ,GAAG;IACrB,IAAI,EAAE,SAAS,CAAA;IACf,EAAE,CAAC,EAAE,MAAM,CAAA;IACX,KAAK,EAAE,MAAM,CAAA;IACb,WAAW,EAAE,MAAM,CAAA;IACnB,IAAI,EAAE,MAAM,CAAA;IACZ,IAAI,CAAC,EAAE,MAAM,GAAG,MAAM,EAAE,GAAG,YAAY,CAAA;IACvC,MAAM,CAAC,EAAE,MAAM,CAAA;IACf,IAAI,CAAC,EAAE,MAAM,CAAA;IACb,KAAK,EAAE,cAAc,CAAA;CACtB,CAAA"}
1
+ {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/features/Search/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,4CAA4C,CAAA;AAEhF,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAA;AAElD,MAAM,MAAM,SAAS,GAAG,WAAW,GAAG,SAAS,GAAG,OAAO,GAAG,SAAS,GAAG,KAAK,CAAA;AAE7E,MAAM,MAAM,QAAQ,GAAG;IACrB,IAAI,EAAE,SAAS,CAAA;IACf,EAAE,CAAC,EAAE,MAAM,CAAA;IACX,KAAK,EAAE,MAAM,CAAA;IACb,WAAW,EAAE,MAAM,CAAA;IACnB,IAAI,EAAE,MAAM,CAAA;IACZ,IAAI,CAAC,EAAE,MAAM,GAAG,MAAM,EAAE,GAAG,YAAY,CAAA;IACvC,MAAM,CAAC,EAAE,MAAM,CAAA;IACf,IAAI,CAAC,EAAE,MAAM,CAAA;IACb,KAAK,EAAE,cAAc,CAAA;CACtB,CAAA"}
@@ -1 +1 @@
1
- {"version":3,"file":"ApiClientModal.vue.d.ts","sourceRoot":"","sources":["../../../src/features/api-client-modal/ApiClientModal.vue"],"names":[],"mappings":"AAoKA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,uBAAuB,CAAA;AAExD,OAAO,KAAK,EACV,sBAAsB,EACtB,yBAAyB,EAC1B,MAAM,6BAA6B,CAAA;AAWpC,KAAK,WAAW,GAAG;IAEjB,aAAa,EAAE,OAAO,CAAC,IAAI,CAAC,sBAAsB,EAAE,SAAS,CAAC,CAAC,GAC7D,IAAI,CAAC,yBAAyB,EAAE,iBAAiB,CAAC,CAAA;IACpD,oBAAoB,EAAE,WAAW,CAAC,QAAQ,CAAA;CAC3C,CAAC;;AAoKF,wBAMG"}
1
+ {"version":3,"file":"ApiClientModal.vue.d.ts","sourceRoot":"","sources":["../../../src/features/api-client-modal/ApiClientModal.vue"],"names":[],"mappings":"AA+JA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,uBAAuB,CAAA;AAExD,OAAO,KAAK,EACV,sBAAsB,EACtB,yBAAyB,EAC1B,MAAM,6BAA6B,CAAA;AAUpC,KAAK,WAAW,GAAG;IAEjB,aAAa,EAAE,OAAO,CAAC,IAAI,CAAC,sBAAsB,EAAE,SAAS,CAAC,CAAC,GAC7D,IAAI,CAAC,yBAAyB,EAAE,iBAAiB,CAAC,CAAA;IACpD,oBAAoB,EAAE,WAAW,CAAC,QAAQ,CAAA;CAC3C,CAAC;;AAgKF,wBAMG"}
@@ -1,40 +1,39 @@
1
- import { defineComponent as h, ref as S, onMounted as g, watch as E, onBeforeUnmount as b, createElementBlock as B, openBlock as R } from "vue";
2
- import { useActiveEntities as k, useWorkspace as q } from "@scalar/api-client/store";
3
- import { mutateSecuritySchemeDiff as x } from "@scalar/api-client/views/Request/libs";
4
- import { getServersFromDocument as D } from "@scalar/oas-utils/helpers";
5
- import { emitCustomEvent as U } from "@scalar/workspace-store/events";
1
+ import { defineComponent as v, ref as p, onMounted as h, onBeforeUnmount as S, createElementBlock as g, openBlock as b } from "vue";
2
+ import { useActiveEntities as B, useWorkspace as E } from "@scalar/api-client/store";
3
+ import { mutateSecuritySchemeDiff as R } from "@scalar/api-client/views/Request/libs";
4
+ import { getServersFromDocument as k } from "@scalar/oas-utils/helpers";
5
+ import { emitCustomEvent as q } from "@scalar/workspace-store/events";
6
6
  import { watchDebounced as f } from "@vueuse/core";
7
- import m from "microdiff";
8
- import { useNavState as C } from "../../hooks/useNavState.js";
9
- import { useApiClient as y } from "./useApiClient.js";
10
- import { useExampleStore as A } from "../../legacy/stores/useExampleStore.js";
11
- const z = /* @__PURE__ */ h({
7
+ import l from "microdiff";
8
+ import { useNavState as D } from "../../hooks/useNavState.js";
9
+ import { useApiClient as U } from "./useApiClient.js";
10
+ const N = /* @__PURE__ */ v({
12
11
  __name: "ApiClientModal",
13
12
  props: {
14
13
  configuration: {},
15
14
  dereferencedDocument: {}
16
15
  },
17
16
  setup(r) {
18
- const n = S(null), { client: u, init: v } = y(), { selectedExampleKey: d, operationId: s } = A(), i = k(), a = q(), { isIntersectionEnabled: l } = C(), p = () => ({
17
+ const n = p(null), { client: a, init: m } = U(), i = B(), u = E(), { isIntersectionEnabled: s } = D(), d = () => ({
19
18
  name: "on-before-request",
20
19
  hooks: {
21
20
  onBeforeRequest: r.configuration.onBeforeRequest
22
21
  }
23
22
  });
24
- return g(() => {
25
- n.value && v({
23
+ return h(() => {
24
+ n.value && m({
26
25
  el: n.value,
27
26
  configuration: {
28
27
  ...r.configuration,
29
28
  // If the onBeforeRequest hook is configured, we add the plugin to the API client.
30
- plugins: r.configuration.onBeforeRequest ? [p] : []
29
+ plugins: typeof r.configuration.onBeforeRequest == "function" ? [d] : []
31
30
  },
32
- store: a
31
+ store: u
33
32
  });
34
33
  }), f(
35
34
  () => r.dereferencedDocument,
36
35
  (e, o) => {
37
- !e || !m(e, o || {})?.length || (i.activeCollection.value && u.value?.resetStore(), a.importSpecFile(void 0, "default", {
36
+ !e || !l(e, o || {})?.length || (i.activeCollection.value && a.value?.resetStore(), u.importSpecFile(void 0, "default", {
38
37
  dereferencedDocument: e,
39
38
  shouldLoad: !1,
40
39
  documentUrl: r.configuration?.url,
@@ -47,20 +46,20 @@ const z = /* @__PURE__ */ h({
47
46
  (e, o) => {
48
47
  if (!o || !i.activeCollection.value)
49
48
  return;
50
- const c = m(o, e);
49
+ const c = l(o, e);
51
50
  if (!c.some(
52
51
  (t) => t.path[0] === "url" || t.path[0] === "content" || t.path[1] === "url" || t.path[1] === "content"
53
52
  )) {
54
53
  if (c.forEach((t) => {
55
- t.path[0] === "authentication" && x(t, i, a);
54
+ t.path[0] === "authentication" && R(t, i, u);
56
55
  }), e.servers || o.servers) {
57
- const t = D(
56
+ const t = k(
58
57
  e.servers ?? r.dereferencedDocument.servers,
59
58
  {
60
59
  baseServerURL: e.baseServerURL
61
60
  }
62
61
  );
63
- U(n.value, "scalar-replace-servers", {
62
+ q(n.value, "scalar-replace-servers", {
64
63
  servers: t,
65
64
  options: {
66
65
  disableOldStoreUpdate: !0
@@ -68,19 +67,17 @@ const z = /* @__PURE__ */ h({
68
67
  });
69
68
  }
70
69
  }
71
- l.value = !1, setTimeout(() => {
72
- l.value = !0;
70
+ s.value = !1, setTimeout(() => {
71
+ s.value = !0;
73
72
  }, 1e3);
74
73
  },
75
74
  { deep: !0, debounce: 300 }
76
- ), E(d, (e) => {
77
- u.value && e && s.value && u.value.updateExample(e, s.value);
78
- }), b(() => u.value?.app.unmount()), (e, o) => (R(), B("div", {
75
+ ), S(() => a.value?.app.unmount()), (e, o) => (b(), g("div", {
79
76
  ref_key: "el",
80
77
  ref: n
81
78
  }, null, 512));
82
79
  }
83
80
  });
84
81
  export {
85
- z as default
82
+ N as default
86
83
  };