@scalar/api-client 2.8.1 → 2.9.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 (403) hide show
  1. package/CHANGELOG.md +58 -0
  2. package/dist/components/AddressBar/AddressBarHistory.vue2.js +9 -10
  3. package/dist/components/CodeInput/CodeInput.vue2.js +5 -5
  4. package/dist/components/CommandPalette/CommandActionForm.vue.d.ts.map +1 -1
  5. package/dist/components/CommandPalette/CommandActionForm.vue.js +2 -2
  6. package/dist/components/CommandPalette/CommandPaletteCollection.vue.js +3 -3
  7. package/dist/components/CommandPalette/CommandPaletteExample.vue.js +3 -3
  8. package/dist/components/CommandPalette/CommandPaletteImport.vue.js +18 -20
  9. package/dist/components/CommandPalette/CommandPaletteImportCurl.vue.js +2 -2
  10. package/dist/components/CommandPalette/CommandPaletteImportCurl.vue2.js +1 -1
  11. package/dist/components/CommandPalette/CommandPaletteServer.vue.js +13 -14
  12. package/dist/components/CommandPalette/CommandPaletteTag.vue.js +3 -3
  13. package/dist/components/CommandPalette/CommandPaletteWorkspace.vue.js +3 -3
  14. package/dist/components/CommandPalette/TheCommandPalette.vue2.js +22 -24
  15. package/dist/components/CommandPalette/WatchModeToggle.vue.js +1 -1
  16. package/dist/components/DataTable/DataTableInput.vue2.js +1 -1
  17. package/dist/components/DataTable/DataTableInputSelect.vue.js +8 -9
  18. package/dist/components/EnvironmentSelector/EnvironmentSelector.vue.js +8 -10
  19. package/dist/components/IconSelector.vue.js +1 -1
  20. package/dist/components/ImportCollection/DropEventListener.vue.js +12 -12
  21. package/dist/components/ImportCollection/ImportCollectionListener.vue.js +8 -8
  22. package/dist/components/ImportCollection/ImportCollectionModal.vue.js +1 -1
  23. package/dist/components/ImportCollection/ImportNowButton.vue.js +14 -16
  24. package/dist/components/ImportCollection/PasteEventListener.vue.js +1 -1
  25. package/dist/components/ImportCollection/PrefetchError.vue.js +2 -2
  26. package/dist/components/ImportCollection/WorkspaceSelector.vue.js +5 -7
  27. package/dist/components/ImportCollection/hooks/useUrlPrefetcher.d.ts +1 -1
  28. package/dist/components/ImportCollection/hooks/useUrlPrefetcher.d.ts.map +1 -1
  29. package/dist/components/ImportCollection/hooks/useUrlPrefetcher.js +3 -3
  30. package/dist/components/OpenApiClientButton.vue2.js +1 -1
  31. package/dist/components/Server/ServerSelector.vue.js +1 -2
  32. package/dist/components/SideNav/SideHelp.vue.js +13 -19
  33. package/dist/components/SideNav/SideNav.vue.js +4 -5
  34. package/dist/components/Sidebar/Actions/SidebarListElementForm.vue2.js +4 -5
  35. package/dist/components/Sidebar/Sidebar.vue.d.ts.map +1 -1
  36. package/dist/components/Sidebar/Sidebar.vue.js +2 -2
  37. package/dist/components/Sidebar/Sidebar.vue2.js +1 -1
  38. package/dist/components/TopNav/TopNav.vue.js +8 -10
  39. package/dist/components/TopNav/TopNavItem.vue2.js +8 -12
  40. package/dist/hooks/index.d.ts +0 -1
  41. package/dist/hooks/index.d.ts.map +1 -1
  42. package/dist/hooks/index.js +9 -11
  43. package/dist/hooks/useClientConfig.d.ts +3 -0
  44. package/dist/hooks/useClientConfig.d.ts.map +1 -1
  45. package/dist/index.d.ts +1 -2
  46. package/dist/index.d.ts.map +1 -1
  47. package/dist/index.js +8 -15
  48. package/dist/layouts/App/create-api-client-app.d.ts +3646 -3645
  49. package/dist/layouts/App/create-api-client-app.d.ts.map +1 -1
  50. package/dist/layouts/App/create-api-client-app.js +24 -18
  51. package/dist/layouts/Modal/create-api-client-modal.d.ts +5 -8089
  52. package/dist/layouts/Modal/create-api-client-modal.d.ts.map +1 -1
  53. package/dist/layouts/Modal/create-api-client-modal.js +28 -46
  54. package/dist/layouts/Modal/index.d.ts +2 -2
  55. package/dist/layouts/Modal/index.d.ts.map +1 -1
  56. package/dist/layouts/Modal/index.js +2 -5
  57. package/dist/layouts/Web/create-api-client-web.d.ts.map +1 -1
  58. package/dist/layouts/Web/create-api-client-web.js +15 -12
  59. package/dist/libs/create-client.d.ts +2 -2
  60. package/dist/libs/create-client.d.ts.map +1 -1
  61. package/dist/libs/postman.d.ts +1 -1
  62. package/dist/libs/postman.d.ts.map +1 -1
  63. package/dist/libs/postman.js +12 -12
  64. package/dist/libs/validate-parameters.d.ts +10 -2
  65. package/dist/libs/validate-parameters.d.ts.map +1 -1
  66. package/dist/libs/validate-parameters.js +13 -6
  67. package/dist/routes.d.ts +3 -184
  68. package/dist/routes.d.ts.map +1 -1
  69. package/dist/routes.js +6 -6
  70. package/dist/store/active-entities.d.ts +1 -1
  71. package/dist/store/active-entities.d.ts.map +1 -1
  72. package/dist/store/active-entities.js +2 -2
  73. package/dist/store/router-params.d.ts.map +1 -1
  74. package/dist/style.css +1 -1
  75. package/dist/v2/blocks/scalar-address-bar-block/components/AddressBar.vue.d.ts +5 -5
  76. package/dist/v2/blocks/scalar-address-bar-block/components/AddressBar.vue.d.ts.map +1 -1
  77. package/dist/v2/blocks/scalar-address-bar-block/components/AddressBar.vue.js +2 -2
  78. package/dist/v2/blocks/scalar-address-bar-block/components/AddressBar.vue2.js +3 -3
  79. package/dist/v2/blocks/scalar-address-bar-block/components/AddressBarHistory.vue2.js +3 -4
  80. package/dist/v2/blocks/scalar-address-bar-block/index.d.ts +1 -0
  81. package/dist/v2/blocks/scalar-address-bar-block/index.d.ts.map +1 -1
  82. package/dist/v2/blocks/scalar-auth-selector-block/components/AuthSelector.vue2.js +2 -2
  83. package/dist/v2/blocks/scalar-auth-selector-block/components/DeleteRequestAuthModal.vue.js +7 -8
  84. package/dist/v2/blocks/scalar-auth-selector-block/components/OAuth2.vue.js +44 -55
  85. package/dist/v2/blocks/scalar-auth-selector-block/components/OAuthScopesInput.vue.js +16 -18
  86. package/dist/v2/blocks/scalar-auth-selector-block/components/RequestAuthTab.vue.js +41 -46
  87. package/dist/v2/blocks/scalar-auth-selector-block/helpers/oauth.d.ts.map +1 -1
  88. package/dist/v2/blocks/scalar-operation-block/components/OperationBlock.vue.d.ts +3 -0
  89. package/dist/v2/blocks/scalar-operation-block/components/OperationBlock.vue.d.ts.map +1 -1
  90. package/dist/v2/blocks/scalar-operation-block/components/OperationBlock.vue.js +2 -2
  91. package/dist/v2/blocks/scalar-operation-block/components/OperationBlock.vue2.js +201 -187
  92. package/dist/v2/blocks/scalar-operation-block/components/OperationBody.vue.js +2 -2
  93. package/dist/v2/blocks/scalar-operation-block/components/OperationBody.vue2.js +8 -10
  94. package/dist/v2/blocks/scalar-operation-block/components/OperationParams.vue.js +2 -3
  95. package/dist/v2/blocks/scalar-operation-block/components/OperationTableRow.vue.js +2 -4
  96. package/dist/v2/blocks/scalar-response-block/components/Headers.vue.js +14 -16
  97. package/dist/v2/blocks/scalar-response-block/components/ResponseBlock.vue.d.ts +3 -0
  98. package/dist/v2/blocks/scalar-response-block/components/ResponseBlock.vue.d.ts.map +1 -1
  99. package/dist/v2/blocks/scalar-response-block/components/ResponseBlock.vue.js +3 -3
  100. package/dist/v2/blocks/scalar-response-block/components/ResponseBlock.vue2.js +87 -85
  101. package/dist/v2/blocks/scalar-response-block/components/ResponseBody.vue2.js +10 -11
  102. package/dist/v2/blocks/scalar-response-block/components/ResponseBodyPreview.vue2.js +4 -5
  103. package/dist/v2/blocks/scalar-response-block/components/ResponseBodyVirtual.vue.js +1 -1
  104. package/dist/v2/blocks/scalar-response-block/components/ResponseCookies.vue.js +3 -3
  105. package/dist/v2/blocks/scalar-response-block/components/ResponseEmpty.vue.js +1 -1
  106. package/dist/v2/blocks/scalar-response-block/components/ResponseEmpty.vue2.js +5 -5
  107. package/dist/v2/blocks/scalar-response-block/components/ResponseLoadingOverlay.vue2.js +9 -10
  108. package/dist/v2/components/TempReplaceMe.vue.d.ts +3 -0
  109. package/dist/v2/components/TempReplaceMe.vue.d.ts.map +1 -0
  110. package/dist/v2/components/TempReplaceMe.vue.js +12 -0
  111. package/dist/v2/components/resize/Resize.vue.d.ts +20 -0
  112. package/dist/v2/components/resize/Resize.vue.d.ts.map +1 -0
  113. package/dist/v2/components/resize/Resize.vue.js +8 -0
  114. package/dist/v2/components/resize/Resize.vue2.js +36 -0
  115. package/dist/v2/components/resize/index.d.ts +3 -0
  116. package/dist/v2/components/resize/index.d.ts.map +1 -0
  117. package/dist/v2/components/resize/index.js +4 -0
  118. package/dist/v2/components/sidebar/Sidebar.vue.d.ts +39 -0
  119. package/dist/v2/components/sidebar/Sidebar.vue.d.ts.map +1 -0
  120. package/dist/v2/components/sidebar/Sidebar.vue.js +95 -0
  121. package/dist/v2/components/sidebar/Sidebar.vue2.js +4 -0
  122. package/dist/v2/components/sidebar/SidebarMenu.vue.d.ts +13 -0
  123. package/dist/v2/components/sidebar/SidebarMenu.vue.d.ts.map +1 -0
  124. package/dist/v2/components/sidebar/SidebarMenu.vue.js +63 -0
  125. package/dist/v2/components/sidebar/SidebarMenu.vue2.js +4 -0
  126. package/dist/v2/components/sidebar/SidebarToggle.vue.d.ts +10 -0
  127. package/dist/v2/components/sidebar/SidebarToggle.vue.d.ts.map +1 -0
  128. package/dist/v2/components/sidebar/SidebarToggle.vue.js +52 -0
  129. package/dist/v2/components/sidebar/SidebarToggle.vue2.js +4 -0
  130. package/dist/v2/components/sidebar/index.d.ts +4 -0
  131. package/dist/v2/components/sidebar/index.d.ts.map +1 -0
  132. package/dist/v2/components/sidebar/index.js +8 -0
  133. package/dist/v2/features/app/App.vue.d.ts +16 -0
  134. package/dist/v2/features/app/App.vue.d.ts.map +1 -0
  135. package/dist/v2/features/app/App.vue.js +72 -0
  136. package/dist/v2/features/app/App.vue3.js +5 -0
  137. package/dist/v2/features/app/components/AppSidebar.vue.d.ts +30 -0
  138. package/dist/v2/features/app/components/AppSidebar.vue.d.ts.map +1 -0
  139. package/dist/v2/features/app/components/AppSidebar.vue.js +7 -0
  140. package/dist/v2/features/app/components/AppSidebar.vue2.js +117 -0
  141. package/dist/v2/features/app/components/DesktopTabs.vue.d.ts +3 -0
  142. package/dist/v2/features/app/components/DesktopTabs.vue.d.ts.map +1 -0
  143. package/dist/v2/features/app/components/DesktopTabs.vue.js +14 -0
  144. package/dist/v2/features/app/components/DownloadAppButton.vue.d.ts +3 -0
  145. package/dist/v2/features/app/components/DownloadAppButton.vue.d.ts.map +1 -0
  146. package/dist/v2/features/app/components/DownloadAppButton.vue.js +7 -0
  147. package/dist/v2/features/app/components/DownloadAppButton.vue2.js +19 -0
  148. package/dist/v2/features/app/components/WebTopNav.vue.d.ts +16 -0
  149. package/dist/v2/features/app/components/WebTopNav.vue.d.ts.map +1 -0
  150. package/dist/v2/features/app/components/WebTopNav.vue.js +28 -0
  151. package/dist/v2/features/app/components/WebTopNav.vue2.js +4 -0
  152. package/dist/v2/features/app/components/index.d.ts +2 -0
  153. package/dist/v2/features/app/components/index.d.ts.map +1 -0
  154. package/dist/v2/features/app/components/index.js +5 -0
  155. package/dist/v2/features/app/helpers/create-api-client-app.d.ts +25 -0
  156. package/dist/v2/features/app/helpers/create-api-client-app.d.ts.map +1 -0
  157. package/dist/v2/features/app/helpers/create-api-client-app.js +21 -0
  158. package/dist/v2/features/app/helpers/routes.d.ts +103 -0
  159. package/dist/v2/features/app/helpers/routes.d.ts.map +1 -0
  160. package/dist/v2/features/app/helpers/routes.js +115 -0
  161. package/dist/v2/features/app/index.d.ts +2 -0
  162. package/dist/v2/features/app/index.d.ts.map +1 -0
  163. package/dist/v2/features/app/index.js +4 -0
  164. package/dist/v2/features/collection/DocumentCollection.test.d.ts +2 -0
  165. package/dist/v2/features/collection/DocumentCollection.test.d.ts.map +1 -0
  166. package/dist/v2/features/collection/DocumentCollection.vue.d.ts +12 -0
  167. package/dist/v2/features/collection/DocumentCollection.vue.d.ts.map +1 -0
  168. package/dist/v2/features/collection/DocumentCollection.vue.js +4 -0
  169. package/dist/v2/features/collection/DocumentCollection.vue2.js +82 -0
  170. package/dist/v2/features/collection/WorkspaceCollection.test.d.ts +2 -0
  171. package/dist/v2/features/collection/WorkspaceCollection.test.d.ts.map +1 -0
  172. package/dist/v2/features/collection/WorkspaceCollection.vue.d.ts +10 -0
  173. package/dist/v2/features/collection/WorkspaceCollection.vue.d.ts.map +1 -0
  174. package/dist/v2/features/collection/WorkspaceCollection.vue.js +4 -0
  175. package/dist/v2/features/collection/WorkspaceCollection.vue2.js +38 -0
  176. package/dist/v2/features/collection/components/Authentication.test.d.ts +2 -0
  177. package/dist/v2/features/collection/components/Authentication.test.d.ts.map +1 -0
  178. package/dist/v2/features/collection/components/Authentication.vue.d.ts +48 -0
  179. package/dist/v2/features/collection/components/Authentication.vue.d.ts.map +1 -0
  180. package/dist/v2/features/collection/components/Authentication.vue.js +7 -0
  181. package/dist/v2/features/collection/components/Authentication.vue2.js +50 -0
  182. package/dist/v2/features/collection/components/Cookies.vue.d.ts +3 -0
  183. package/dist/v2/features/collection/components/Cookies.vue.d.ts.map +1 -0
  184. package/dist/v2/features/collection/components/Cookies.vue.js +9 -0
  185. package/dist/v2/features/collection/components/Environment.test.d.ts +2 -0
  186. package/dist/v2/features/collection/components/Environment.test.d.ts.map +1 -0
  187. package/dist/v2/features/collection/components/Environment.vue.d.ts +89 -0
  188. package/dist/v2/features/collection/components/Environment.vue.d.ts.map +1 -0
  189. package/dist/v2/features/collection/components/Environment.vue.js +4 -0
  190. package/dist/v2/features/collection/components/Environment.vue2.js +34 -0
  191. package/dist/v2/features/collection/components/Form.vue.d.ts +29 -0
  192. package/dist/v2/features/collection/components/Form.vue.d.ts.map +1 -0
  193. package/dist/v2/features/collection/components/Form.vue.js +83 -0
  194. package/dist/v2/features/collection/components/Form.vue2.js +4 -0
  195. package/dist/v2/features/collection/components/LabelInput.test.d.ts +2 -0
  196. package/dist/v2/features/collection/components/LabelInput.test.d.ts.map +1 -0
  197. package/dist/v2/features/collection/components/LabelInput.vue.d.ts +10 -0
  198. package/dist/v2/features/collection/components/LabelInput.vue.d.ts.map +1 -0
  199. package/dist/v2/features/collection/components/LabelInput.vue.js +7 -0
  200. package/dist/v2/features/collection/components/LabelInput.vue2.js +29 -0
  201. package/dist/v2/features/collection/components/Overview.test.d.ts +2 -0
  202. package/dist/v2/features/collection/components/Overview.test.d.ts.map +1 -0
  203. package/dist/v2/features/collection/components/Overview.vue.d.ts +14 -0
  204. package/dist/v2/features/collection/components/Overview.vue.d.ts.map +1 -0
  205. package/dist/v2/features/collection/components/Overview.vue.js +4 -0
  206. package/dist/v2/features/collection/components/Overview.vue2.js +91 -0
  207. package/dist/v2/features/collection/components/Servers.test.d.ts +2 -0
  208. package/dist/v2/features/collection/components/Servers.test.d.ts.map +1 -0
  209. package/dist/v2/features/collection/components/Servers.vue.d.ts +33 -0
  210. package/dist/v2/features/collection/components/Servers.vue.d.ts.map +1 -0
  211. package/dist/v2/features/collection/components/Servers.vue.js +4 -0
  212. package/dist/v2/features/collection/components/Servers.vue2.js +120 -0
  213. package/dist/v2/features/collection/components/Settings.test.d.ts +2 -0
  214. package/dist/v2/features/collection/components/Settings.test.d.ts.map +1 -0
  215. package/dist/v2/features/collection/components/Settings.vue.d.ts +17 -0
  216. package/dist/v2/features/collection/components/Settings.vue.d.ts.map +1 -0
  217. package/dist/v2/features/collection/components/Settings.vue.js +7 -0
  218. package/dist/v2/features/collection/components/Settings.vue2.js +100 -0
  219. package/dist/v2/features/collection/components/Tabs.test.d.ts +2 -0
  220. package/dist/v2/features/collection/components/Tabs.test.d.ts.map +1 -0
  221. package/dist/v2/features/collection/components/Tabs.vue.d.ts +6 -0
  222. package/dist/v2/features/collection/components/Tabs.vue.d.ts.map +1 -0
  223. package/dist/v2/features/collection/components/Tabs.vue.js +46 -0
  224. package/dist/v2/features/collection/components/Tabs.vue2.js +4 -0
  225. package/dist/v2/features/environments/Environments.test.d.ts +2 -0
  226. package/dist/v2/features/environments/Environments.test.d.ts.map +1 -0
  227. package/dist/v2/features/environments/Environments.vue.d.ts +31 -0
  228. package/dist/v2/features/environments/Environments.vue.d.ts.map +1 -0
  229. package/dist/v2/features/environments/Environments.vue.js +65 -0
  230. package/dist/v2/features/environments/Environments.vue2.js +4 -0
  231. package/dist/v2/features/environments/EnvironmentsList.test.d.ts +2 -0
  232. package/dist/v2/features/environments/EnvironmentsList.test.d.ts.map +1 -0
  233. package/dist/v2/features/environments/EnvironmentsList.vue.d.ts +98 -0
  234. package/dist/v2/features/environments/EnvironmentsList.vue.d.ts.map +1 -0
  235. package/dist/v2/features/environments/EnvironmentsList.vue.js +114 -0
  236. package/dist/v2/features/environments/EnvironmentsList.vue2.js +4 -0
  237. package/dist/v2/features/environments/components/Environment.test.d.ts +2 -0
  238. package/dist/v2/features/environments/components/Environment.test.d.ts.map +1 -0
  239. package/dist/v2/features/environments/components/Environment.vue.d.ts +70 -0
  240. package/dist/v2/features/environments/components/Environment.vue.d.ts.map +1 -0
  241. package/dist/v2/features/environments/components/Environment.vue.js +104 -0
  242. package/dist/v2/features/environments/components/Environment.vue2.js +4 -0
  243. package/dist/v2/features/environments/components/EnvironmentColorUpdateModal.vue.d.ts +20 -0
  244. package/dist/v2/features/environments/components/EnvironmentColorUpdateModal.vue.d.ts.map +1 -0
  245. package/dist/v2/features/environments/components/EnvironmentColorUpdateModal.vue.js +48 -0
  246. package/dist/v2/features/environments/components/EnvironmentColorUpdateModal.vue2.js +4 -0
  247. package/dist/v2/features/environments/components/EnvironmentColors.test.d.ts +2 -0
  248. package/dist/v2/features/environments/components/EnvironmentColors.test.d.ts.map +1 -0
  249. package/dist/v2/features/environments/components/EnvironmentColors.vue.d.ts +10 -0
  250. package/dist/v2/features/environments/components/EnvironmentColors.vue.d.ts.map +1 -0
  251. package/dist/v2/features/environments/components/EnvironmentColors.vue.js +97 -0
  252. package/dist/v2/features/environments/components/EnvironmentColors.vue2.js +4 -0
  253. package/dist/v2/features/environments/components/EnvironmentCreateModal.vue.d.ts +19 -0
  254. package/dist/v2/features/environments/components/EnvironmentCreateModal.vue.d.ts.map +1 -0
  255. package/dist/v2/features/environments/components/EnvironmentCreateModal.vue.js +63 -0
  256. package/dist/v2/features/environments/components/EnvironmentCreateModal.vue2.js +4 -0
  257. package/dist/v2/features/environments/components/EnvironmentDeleteModal.vue.d.ts +14 -0
  258. package/dist/v2/features/environments/components/EnvironmentDeleteModal.vue.d.ts.map +1 -0
  259. package/dist/v2/features/environments/components/EnvironmentDeleteModal.vue.js +53 -0
  260. package/dist/v2/features/environments/components/EnvironmentDeleteModal.vue2.js +4 -0
  261. package/dist/v2/features/environments/components/EnvironmentNameUpdateModal.vue.d.ts +18 -0
  262. package/dist/v2/features/environments/components/EnvironmentNameUpdateModal.vue.d.ts.map +1 -0
  263. package/dist/v2/features/environments/components/EnvironmentNameUpdateModal.vue.js +35 -0
  264. package/dist/v2/features/environments/components/EnvironmentNameUpdateModal.vue2.js +4 -0
  265. package/dist/v2/features/environments/components/EnvironmentVariablesTable.test.d.ts +2 -0
  266. package/dist/v2/features/environments/components/EnvironmentVariablesTable.test.d.ts.map +1 -0
  267. package/dist/v2/features/environments/components/EnvironmentVariablesTable.vue.d.ts +23 -0
  268. package/dist/v2/features/environments/components/EnvironmentVariablesTable.vue.d.ts.map +1 -0
  269. package/dist/v2/features/environments/components/EnvironmentVariablesTable.vue.js +7 -0
  270. package/dist/v2/features/environments/components/EnvironmentVariablesTable.vue2.js +122 -0
  271. package/dist/v2/features/environments/index.d.ts +5 -0
  272. package/dist/v2/features/environments/index.d.ts.map +1 -0
  273. package/dist/v2/features/environments/index.js +6 -0
  274. package/dist/v2/features/global-cookies/components/CookiesTable.test.d.ts +2 -0
  275. package/dist/v2/features/global-cookies/components/CookiesTable.test.d.ts.map +1 -0
  276. package/dist/v2/features/global-cookies/components/CookiesTable.vue.d.ts +25 -0
  277. package/dist/v2/features/global-cookies/components/CookiesTable.vue.d.ts.map +1 -0
  278. package/dist/v2/features/global-cookies/components/CookiesTable.vue.js +7 -0
  279. package/dist/v2/features/global-cookies/components/CookiesTable.vue2.js +156 -0
  280. package/dist/v2/features/global-cookies/components/GlobalCookies.test.d.ts +2 -0
  281. package/dist/v2/features/global-cookies/components/GlobalCookies.test.d.ts.map +1 -0
  282. package/dist/v2/features/global-cookies/components/GlobalCookies.vue.d.ts +32 -0
  283. package/dist/v2/features/global-cookies/components/GlobalCookies.vue.d.ts.map +1 -0
  284. package/dist/v2/features/global-cookies/components/GlobalCookies.vue.js +7 -0
  285. package/dist/v2/features/global-cookies/components/GlobalCookies.vue2.js +58 -0
  286. package/dist/v2/features/global-cookies/index.d.ts +2 -0
  287. package/dist/v2/features/global-cookies/index.d.ts.map +1 -0
  288. package/dist/v2/features/global-cookies/index.js +4 -0
  289. package/dist/v2/features/modal/Modal.vue.d.ts +16 -0
  290. package/dist/v2/features/modal/Modal.vue.d.ts.map +1 -0
  291. package/dist/v2/features/modal/Modal.vue.js +7 -0
  292. package/dist/v2/features/modal/Modal.vue2.js +81 -0
  293. package/dist/v2/features/modal/helpers/create-api-client-modal.d.ts +53 -0
  294. package/dist/v2/features/modal/helpers/create-api-client-modal.d.ts.map +1 -0
  295. package/dist/v2/features/modal/helpers/create-api-client-modal.js +46 -0
  296. package/dist/v2/features/modal/index.d.ts +2 -0
  297. package/dist/v2/features/modal/index.d.ts.map +1 -0
  298. package/dist/v2/features/modal/index.js +4 -0
  299. package/dist/v2/features/operation/Operation.test.d.ts +2 -0
  300. package/dist/v2/features/operation/Operation.test.d.ts.map +1 -0
  301. package/dist/v2/features/operation/Operation.vue.d.ts +79 -0
  302. package/dist/v2/features/operation/Operation.vue.d.ts.map +1 -0
  303. package/dist/v2/features/operation/Operation.vue.js +124 -0
  304. package/dist/v2/features/operation/Operation.vue2.js +4 -0
  305. package/dist/v2/features/operation/components/Header.test.d.ts +2 -0
  306. package/dist/v2/features/operation/components/Header.test.d.ts.map +1 -0
  307. package/dist/v2/features/operation/components/Header.vue.d.ts +85 -0
  308. package/dist/v2/features/operation/components/Header.vue.d.ts.map +1 -0
  309. package/dist/v2/features/operation/components/Header.vue.js +7 -0
  310. package/dist/v2/features/operation/components/Header.vue2.js +97 -0
  311. package/dist/v2/features/operation/index.d.ts +3 -0
  312. package/dist/v2/features/operation/index.d.ts.map +1 -0
  313. package/dist/v2/features/operation/index.js +4 -0
  314. package/dist/v2/features/settings/Settings.test.d.ts +2 -0
  315. package/dist/v2/features/settings/Settings.test.d.ts.map +1 -0
  316. package/dist/v2/features/settings/Settings.vue.d.ts +22 -0
  317. package/dist/v2/features/settings/Settings.vue.d.ts.map +1 -0
  318. package/dist/v2/features/settings/Settings.vue.js +268 -0
  319. package/dist/v2/features/settings/Settings.vue2.js +4 -0
  320. package/dist/v2/features/settings/components/Appearance.vue.d.ts +10 -0
  321. package/dist/v2/features/settings/components/Appearance.vue.d.ts.map +1 -0
  322. package/dist/v2/features/settings/components/Appearance.vue.js +88 -0
  323. package/dist/v2/features/settings/components/Appearance.vue2.js +4 -0
  324. package/dist/v2/features/settings/components/Section.vue.d.ts +14 -0
  325. package/dist/v2/features/settings/components/Section.vue.d.ts.map +1 -0
  326. package/dist/v2/features/settings/components/Section.vue.js +24 -0
  327. package/dist/v2/features/settings/components/Section.vue2.js +4 -0
  328. package/dist/v2/features/settings/helpers/get-theme-colors.d.ts +9 -0
  329. package/dist/v2/features/settings/helpers/get-theme-colors.d.ts.map +1 -0
  330. package/dist/v2/features/settings/helpers/get-theme-colors.js +17 -0
  331. package/dist/v2/features/settings/index.d.ts +2 -0
  332. package/dist/v2/features/settings/index.d.ts.map +1 -0
  333. package/dist/v2/features/settings/index.js +4 -0
  334. package/dist/v2/hooks/use-document-watcher.d.ts +28 -0
  335. package/dist/v2/hooks/use-document-watcher.d.ts.map +1 -0
  336. package/dist/v2/hooks/use-document-watcher.test.d.ts +2 -0
  337. package/dist/v2/hooks/use-document-watcher.test.d.ts.map +1 -0
  338. package/dist/v2/hooks/use-workspace-client-events.d.ts +8 -0
  339. package/dist/v2/hooks/use-workspace-client-events.d.ts.map +1 -0
  340. package/dist/v2/hooks/use-workspace-client-events.js +13 -0
  341. package/dist/v2/plugins.d.ts +44 -0
  342. package/dist/v2/plugins.d.ts.map +1 -0
  343. package/dist/v2/types/layout.d.ts +10 -0
  344. package/dist/v2/types/layout.d.ts.map +1 -0
  345. package/dist/views/Collection/Collection.vue2.js +6 -6
  346. package/dist/views/Collection/CollectionCookies.vue2.js +3 -3
  347. package/dist/views/Collection/CollectionEnvironment.vue2.js +12 -13
  348. package/dist/views/Collection/CollectionScripts.vue2.js +3 -3
  349. package/dist/views/Collection/CollectionServerForm.vue.d.ts.map +1 -1
  350. package/dist/views/Collection/CollectionServerForm.vue.js +42 -62
  351. package/dist/views/Collection/CollectionServers.vue.d.ts.map +1 -1
  352. package/dist/views/Collection/CollectionServers.vue2.js +43 -50
  353. package/dist/views/Collection/CollectionSettings.vue.js +2 -2
  354. package/dist/views/Collection/CollectionSettings.vue2.js +5 -6
  355. package/dist/views/Collection/CollectionSync.vue2.js +3 -3
  356. package/dist/views/Collection/components/EnvironmentForm.vue2.js +10 -12
  357. package/dist/views/Collection/components/MarkdownInput.vue2.js +2 -4
  358. package/dist/views/Cookies/CookieModal.vue2.js +6 -6
  359. package/dist/views/Cookies/Cookies.vue2.js +6 -6
  360. package/dist/views/Environment/Environment.vue2.js +5 -6
  361. package/dist/views/Environment/EnvironmentModal.vue.js +13 -14
  362. package/dist/views/Environment/EnvironmentVariableDropdown.vue.js +8 -9
  363. package/dist/views/Request/RequestRoot.vue.d.ts.map +1 -1
  364. package/dist/views/Request/RequestRoot.vue.js +2 -2
  365. package/dist/views/Request/RequestRoot.vue2.js +79 -80
  366. package/dist/views/Request/RequestSection/RequestAuth/DeleteRequestAuthModal.vue.js +10 -11
  367. package/dist/views/Request/RequestSection/RequestAuth/OAuth2.vue.js +44 -55
  368. package/dist/views/Request/RequestSection/RequestAuth/OAuthScopesInput.vue.js +10 -12
  369. package/dist/views/Request/RequestSection/RequestAuth/RequestAuth.vue2.js +2 -2
  370. package/dist/views/Request/RequestSection/RequestAuth/RequestAuthTab.vue.js +39 -44
  371. package/dist/views/Request/RequestSection/RequestBody.vue.d.ts.map +1 -1
  372. package/dist/views/Request/RequestSection/RequestBody.vue.js +2 -2
  373. package/dist/views/Request/RequestSection/RequestBody.vue2.js +96 -78
  374. package/dist/views/Request/RequestSection/RequestCodeExample.vue2.js +3 -3
  375. package/dist/views/Request/RequestSection/RequestParams.vue.js +2 -3
  376. package/dist/views/Request/RequestSection/RequestSection.vue.js +2 -2
  377. package/dist/views/Request/RequestSection/RequestSection.vue2.js +55 -55
  378. package/dist/views/Request/RequestSection/RequestTable.vue2.js +15 -17
  379. package/dist/views/Request/RequestSidebar.vue2.js +7 -8
  380. package/dist/views/Request/RequestSidebarItem.vue.js +2 -2
  381. package/dist/views/Request/RequestSidebarItem.vue2.js +31 -32
  382. package/dist/views/Request/RequestSidebarItemMenu.vue.js +1 -1
  383. package/dist/views/Request/RequestSidebarItemMenu.vue2.js +13 -16
  384. package/dist/views/Request/ResponseSection/RequestHeaders.vue.js +11 -13
  385. package/dist/views/Request/ResponseSection/ResponseBody.vue2.js +4 -5
  386. package/dist/views/Request/ResponseSection/ResponseBodyPreview.vue2.js +4 -5
  387. package/dist/views/Request/ResponseSection/ResponseBodyVirtual.vue.js +1 -1
  388. package/dist/views/Request/ResponseSection/ResponseCookies.vue.js +3 -3
  389. package/dist/views/Request/ResponseSection/ResponseEmpty.vue2.js +4 -4
  390. package/dist/views/Request/ResponseSection/ResponseHeaders.vue.js +11 -13
  391. package/dist/views/Request/ResponseSection/ResponseLoadingOverlay.vue2.js +7 -8
  392. package/dist/views/Request/components/WorkspaceDropdown.vue.js +11 -14
  393. package/dist/views/Request/libs/oauth2.d.ts +1 -1
  394. package/dist/views/Request/libs/oauth2.d.ts.map +1 -1
  395. package/dist/views/Settings/SettingsGeneral.vue.js +40 -42
  396. package/dist/views/Settings/components/SettingsAppearance.vue.js +8 -11
  397. package/package.json +30 -25
  398. package/dist/hooks/useKeyMap.d.ts +0 -2
  399. package/dist/hooks/useKeyMap.d.ts.map +0 -1
  400. package/dist/hooks/useKeyMap.js +0 -9
  401. package/dist/router.d.ts +0 -8
  402. package/dist/router.d.ts.map +0 -1
  403. package/dist/router.js +0 -20
package/CHANGELOG.md CHANGED
@@ -1,5 +1,63 @@
1
1
  # @scalar/api-client
2
2
 
3
+ ## 2.9.0
4
+
5
+ ### Minor Changes
6
+
7
+ - [#6997](https://github.com/scalar/scalar/pull/6997) [`d34f31e`](https://github.com/scalar/scalar/commit/d34f31ee9e3ff360869c52f383b14431af520201) Thanks [@DemonHa](https://github.com/DemonHa)! - feat: implement global cookies feature
8
+
9
+ - [#7185](https://github.com/scalar/scalar/pull/7185) [`6ca835e`](https://github.com/scalar/scalar/commit/6ca835e5afd3e8c603e073e7c83f2cdd961a0f69) Thanks [@DemonHa](https://github.com/DemonHa)! - feat: add support for watch mode
10
+
11
+ - [#7068](https://github.com/scalar/scalar/pull/7068) [`7cda4c5`](https://github.com/scalar/scalar/commit/7cda4c5ecf237e17193391e223f9503c9f37f574) Thanks [@DemonHa](https://github.com/DemonHa)! - feat: settings feature
12
+
13
+ - [#7140](https://github.com/scalar/scalar/pull/7140) [`573c5a6`](https://github.com/scalar/scalar/commit/573c5a6c5d71ecfda262532aa32dad382f9f71e4) Thanks [@DemonHa](https://github.com/DemonHa)! - feat(api-client): request feature
14
+
15
+ - [#7173](https://github.com/scalar/scalar/pull/7173) [`7c1e09e`](https://github.com/scalar/scalar/commit/7c1e09e86ce128adeefd209284a2ba49917adf2c) Thanks [@DemonHa](https://github.com/DemonHa)! - feat: new plugin interface for v2
16
+
17
+ - [#7199](https://github.com/scalar/scalar/pull/7199) [`0d9c945`](https://github.com/scalar/scalar/commit/0d9c945a696ea8b826d86f7b48ec6de4d85e64f0) Thanks [@marcalexiei](https://github.com/marcalexiei)! - feat: update vue to 3.5.21
18
+
19
+ - [#7120](https://github.com/scalar/scalar/pull/7120) [`f612140`](https://github.com/scalar/scalar/commit/f612140491d4e5088757ea5a3fef65ccd2785f08) Thanks [@DemonHa](https://github.com/DemonHa)! - feat: document page feature
20
+
21
+ ### Patch Changes
22
+
23
+ - [#7133](https://github.com/scalar/scalar/pull/7133) [`0319b8a`](https://github.com/scalar/scalar/commit/0319b8a8652a50667776b2e9fd27c3e15b34f765) Thanks [@marcalexiei](https://github.com/marcalexiei)! - fix(api-client): use request content type "other" when api supports `text/*` content types
24
+
25
+ - [#7111](https://github.com/scalar/scalar/pull/7111) [`729ad06`](https://github.com/scalar/scalar/commit/729ad06027c91abcc39866f39319f053d286b995) Thanks [@marcalexiei](https://github.com/marcalexiei)! - fix(api-client): remove `async` from `convertPostmanToOpenApi`
26
+
27
+ - [#7159](https://github.com/scalar/scalar/pull/7159) [`c22fc4e`](https://github.com/scalar/scalar/commit/c22fc4e5acb49d648014a6100c724a5b33c59cde) Thanks [@amritk](https://github.com/amritk)! - feat: added new layouts for client v2
28
+
29
+ - [#7186](https://github.com/scalar/scalar/pull/7186) [`c162bb6`](https://github.com/scalar/scalar/commit/c162bb64b86e698427c1fce36f6d8a2b789e094a) Thanks [@amritk](https://github.com/amritk)! - feat: hooking up event bus to the store
30
+
31
+ - [#7227](https://github.com/scalar/scalar/pull/7227) [`704fa30`](https://github.com/scalar/scalar/commit/704fa302b2cdbb17b19ca2d742537ca163d58c1c) Thanks [@hwkr](https://github.com/hwkr)! - feat(sidebar): cleanup structure and improve text wrapping
32
+
33
+ - [#7191](https://github.com/scalar/scalar/pull/7191) [`0865e66`](https://github.com/scalar/scalar/commit/0865e662092f8521bf69b69d82486ec0cc6030dd) Thanks [@amritk](https://github.com/amritk)! - fix: remove old custom event emitting
34
+
35
+ - [#7094](https://github.com/scalar/scalar/pull/7094) [`eba18d0`](https://github.com/scalar/scalar/commit/eba18d06267a163a8f91396a66f817100ee59461) Thanks [@geoffgscott](https://github.com/geoffgscott)! - Migrate to workspace store as primary source of truth.
36
+
37
+ - [#7146](https://github.com/scalar/scalar/pull/7146) [`d386ae2`](https://github.com/scalar/scalar/commit/d386ae2a7c9288c8e5c4750ab57920ab955cae06) Thanks [@hanspagel](https://github.com/hanspagel)! - feat: block requests with empty path parameters
38
+
39
+ - Updated dependencies [[`eb022f2`](https://github.com/scalar/scalar/commit/eb022f2c8f93c84a04c0093fefe8a1e05d6ec80d), [`913607c`](https://github.com/scalar/scalar/commit/913607c7d67236f08f5369408f304440c6c42b22), [`348f8f6`](https://github.com/scalar/scalar/commit/348f8f6292ef41844fda1fdd3089a55d97adbc0e), [`17817ad`](https://github.com/scalar/scalar/commit/17817addbca916c8d625a03335ae58be3a1c4e4b), [`c22fc4e`](https://github.com/scalar/scalar/commit/c22fc4e5acb49d648014a6100c724a5b33c59cde), [`2239843`](https://github.com/scalar/scalar/commit/2239843150ed16d1ca35b0b1f8e90cd3e35be7ce), [`6ec8c29`](https://github.com/scalar/scalar/commit/6ec8c299d912111b029e8058979d00968b70691a), [`9661e81`](https://github.com/scalar/scalar/commit/9661e81907d1a9b74ba30f270f2d6c8e49834cd5), [`c162bb6`](https://github.com/scalar/scalar/commit/c162bb64b86e698427c1fce36f6d8a2b789e094a), [`b64265b`](https://github.com/scalar/scalar/commit/b64265b3e8b447a4d1c6dafaca8135ef69545d98), [`6ca835e`](https://github.com/scalar/scalar/commit/6ca835e5afd3e8c603e073e7c83f2cdd961a0f69), [`134ff5f`](https://github.com/scalar/scalar/commit/134ff5f32aa6842696bf146c7e0817b1662905eb), [`6aa06b0`](https://github.com/scalar/scalar/commit/6aa06b0f843ae3d8e6771e3c02ac11ee0043a4b1), [`81b0a7a`](https://github.com/scalar/scalar/commit/81b0a7a4245619f03161eae639dc5834b77432b6), [`8a5a6a0`](https://github.com/scalar/scalar/commit/8a5a6a052cc05b0902b05052c80cc429ebc5a730), [`6ec8c29`](https://github.com/scalar/scalar/commit/6ec8c299d912111b029e8058979d00968b70691a), [`704fa30`](https://github.com/scalar/scalar/commit/704fa302b2cdbb17b19ca2d742537ca163d58c1c), [`c84b7c5`](https://github.com/scalar/scalar/commit/c84b7c5e81be83dacbdfcbf9cb1e558dfdc3faa1), [`0319b8a`](https://github.com/scalar/scalar/commit/0319b8a8652a50667776b2e9fd27c3e15b34f765), [`da7ab2f`](https://github.com/scalar/scalar/commit/da7ab2fb2e422b9cec2de5faba58ea83dd774808), [`a26ced6`](https://github.com/scalar/scalar/commit/a26ced6f2897074f0c102d5ccbff55c6fd520e12), [`134ff5f`](https://github.com/scalar/scalar/commit/134ff5f32aa6842696bf146c7e0817b1662905eb), [`33edbf2`](https://github.com/scalar/scalar/commit/33edbf2a2648eb72ae49e36dfd289d4d57dc18e0), [`6a090a2`](https://github.com/scalar/scalar/commit/6a090a2e07ef961c56041c85ee9786180437593a), [`4fe1643`](https://github.com/scalar/scalar/commit/4fe1643be51f76a8ebdfd75f5675337b8d43418e), [`5db92db`](https://github.com/scalar/scalar/commit/5db92db78e5b11bb052307bc10c1be4eb7a3f164), [`592533f`](https://github.com/scalar/scalar/commit/592533faf60b6a5ba27909a4ca0847ca9f04a96d), [`75ad74c`](https://github.com/scalar/scalar/commit/75ad74c0eee10103b966ce4707e4823d819456a8), [`eba18d0`](https://github.com/scalar/scalar/commit/eba18d06267a163a8f91396a66f817100ee59461), [`a821986`](https://github.com/scalar/scalar/commit/a821986332141e69d26885b2d2b32eb0c49f416c), [`c72a2c5`](https://github.com/scalar/scalar/commit/c72a2c59eb80e1f5e216c687229ff90bea88f554), [`0d9c945`](https://github.com/scalar/scalar/commit/0d9c945a696ea8b826d86f7b48ec6de4d85e64f0), [`43bc5e8`](https://github.com/scalar/scalar/commit/43bc5e8b90dc0edf7176d0ddfc64bf3212494458), [`e23229d`](https://github.com/scalar/scalar/commit/e23229dfbd9613b5047b28b57901f2fc5a6e33e6)]:
40
+ - @scalar/types@0.4.0
41
+ - @scalar/workspace-store@0.18.0
42
+ - @scalar/components@0.16.0
43
+ - @scalar/sidebar@0.2.0
44
+ - @scalar/openapi-parser@0.23.0
45
+ - @scalar/openapi-types@0.5.1
46
+ - @scalar/helpers@0.0.13
47
+ - @scalar/oas-utils@0.6.0
48
+ - @scalar/json-magic@0.7.0
49
+ - @scalar/snippetz@0.5.2
50
+ - @scalar/use-hooks@0.3.0
51
+ - @scalar/use-toasts@0.9.0
52
+ - @scalar/draggable@0.3.0
53
+ - @scalar/icons@0.5.0
54
+ - @scalar/themes@0.13.23
55
+ - @scalar/use-codemirror@0.12.44
56
+ - @scalar/analytics-client@1.0.0
57
+ - @scalar/import@0.4.32
58
+ - @scalar/object-utils@1.2.9
59
+ - @scalar/postman-to-openapi@0.3.41
60
+
3
61
  ## 2.8.1
4
62
 
5
63
  ### Patch Changes
@@ -1,4 +1,4 @@
1
- import { defineComponent as v, computed as k, createBlock as n, openBlock as a, unref as e, withCtx as o, createVNode as i, createSlots as x, createCommentVNode as d, createElementVNode as s, normalizeStyle as y, createElementBlock as C, Fragment as S, renderList as b, toDisplayString as l, normalizeClass as H } from "vue";
1
+ import { defineComponent as k, computed as x, createBlock as n, openBlock as a, unref as e, withCtx as o, createVNode as i, createSlots as _, createCommentVNode as d, createElementVNode as s, normalizeStyle as y, createElementBlock as C, Fragment as S, renderList as b, toDisplayString as l, normalizeClass as H } from "vue";
2
2
  import { Menu as q, MenuButton as B, MenuItems as M, MenuItem as w } from "@headlessui/vue";
3
3
  import { ScalarFloating as z, ScalarIcon as I, ScalarFloatingBackdrop as F } from "@scalar/components";
4
4
  import { httpStatusCodes as N } from "@scalar/oas-utils/helpers";
@@ -6,14 +6,14 @@ import { formatMs as R } from "../../libs/formatters.js";
6
6
  import V from "../HttpMethod/HttpMethod.vue.js";
7
7
  import { getStatusCodeColor as E } from "./httpStatusCodeColors.js";
8
8
  import { useWorkspace as A } from "../../store/store.js";
9
- const D = { class: "min-w-0" }, L = { class: "text-c-1 min-w-0 truncate" }, Q = /* @__PURE__ */ v({
9
+ const D = { class: "min-w-0" }, L = { class: "text-c-1 min-w-0 truncate" }, Q = /* @__PURE__ */ k({
10
10
  __name: "AddressBarHistory",
11
11
  props: {
12
12
  operation: {},
13
13
  target: {}
14
14
  },
15
15
  setup(m) {
16
- const { requestHistory: p } = A(), u = k(
16
+ const { requestHistory: p } = A(), u = x(
17
17
  () => p.filter((r) => r.request.requestUid === m.operation.uid).slice().reverse()
18
18
  );
19
19
  function f(r) {
@@ -28,7 +28,7 @@ const D = { class: "min-w-0" }, L = { class: "text-c-1 min-w-0 truncate" }, Q =
28
28
  offset: 0,
29
29
  resize: "",
30
30
  target: r.target
31
- }, x({
31
+ }, _({
32
32
  default: o(() => [
33
33
  u.value?.length ? (a(), n(e(B), {
34
34
  key: 0,
@@ -42,8 +42,7 @@ const D = { class: "min-w-0" }, L = { class: "text-c-1 min-w-0 truncate" }, Q =
42
42
  }),
43
43
  c[0] || (c[0] = s("span", { class: "sr-only" }, "Request History", -1))
44
44
  ]),
45
- _: 1,
46
- __: [0]
45
+ _: 1
47
46
  })) : d("", !0)
48
47
  ]),
49
48
  _: 2
@@ -57,11 +56,11 @@ const D = { class: "min-w-0" }, L = { class: "text-c-1 min-w-0 truncate" }, Q =
57
56
  style: y({ width: g })
58
57
  }, {
59
58
  default: o(() => [
60
- (a(!0), C(S, null, b(u.value, (t, _) => (a(), n(e(w), {
59
+ (a(!0), C(S, null, b(u.value, (t, v) => (a(), n(e(w), {
61
60
  key: t.timestamp,
62
61
  as: "button",
63
62
  class: "font-code ui-active:*:bg-b-2 text-c-2 contents text-sm font-medium *:flex *:h-8 *:cursor-pointer *:items-center *:rounded-none *:px-1.5 *:first:rounded-l *:last:rounded-r",
64
- value: _,
63
+ value: v,
65
64
  onClick: (U) => f(t)
66
65
  }, {
67
66
  default: o(() => [
@@ -82,8 +81,8 @@ const D = { class: "min-w-0" }, L = { class: "text-c-1 min-w-0 truncate" }, Q =
82
81
  _: 2
83
82
  }, 1032, ["value", "onClick"]))), 128))
84
83
  ]),
85
- _: 2
86
- }, 1032, ["style"]),
84
+ _: 1
85
+ }, 8, ["style"]),
87
86
  i(e(F), { class: "-top-(--scalar-address-bar-height) rounded-lg" })
88
87
  ]),
89
88
  key: "0"
@@ -176,13 +176,13 @@ const ae = { class: "whitespace-nowrap" }, re = ["id"], se = {
176
176
  l[6] || (l[6] = b($((t) => m("up", t), ["stop"]), ["up"]))
177
177
  ]
178
178
  }), [
179
- e.disableTabIndent ? p("", !0) : (n(), u("div", se, l[7] || (l[7] = [
180
- V(" Press "),
179
+ e.disableTabIndent ? p("", !0) : (n(), u("div", se, [...l[7] || (l[7] = [
180
+ V(" Press ", -1),
181
181
  w("kbd", { class: "-mx-0.25 rounded border px-0.5 font-mono" }, "Esc", -1),
182
- V(" then "),
182
+ V(" then ", -1),
183
183
  w("kbd", { class: "-mx-0.25 rounded border px-0.5 font-mono" }, "Tab", -1),
184
- V(" to exit ")
185
- ])))
184
+ V(" to exit ", -1)
185
+ ])]))
186
186
  ], 16, re)),
187
187
  e.$slots.warning ? (n(), u("div", ue, [
188
188
  q(e.$slots, "warning", {}, void 0, !0)
@@ -1 +1 @@
1
- {"version":3,"file":"CommandActionForm.vue.d.ts","sourceRoot":"","sources":["../../../src/components/CommandPalette/CommandActionForm.vue"],"names":[],"mappings":"AA4CA,OAAO,EAGL,KAAK,eAAe,EACrB,MAAM,oBAAoB,CAAA;AAE3B,KAAK,WAAW,GAAG;IACjB,OAAO,CAAC,EAAE,UAAU,CAAC,OAAO,eAAe,CAAC,CAAA;IAC5C,QAAQ,CAAC,EAAE,OAAO,CAAA;CACnB,CAAC;AAyEF,QAAA,IAAI,OAAO,IAAU,EAAE,OAAO,IAAU,EAAE,OAAO,IAAW,CAAE;AAC9D,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,OAAO,KAAK,GAAG,CAAA;CAAE,GAC5C;IAAE,MAAM,CAAC,EAAE,CAAC,KAAK,EAAE,OAAO,OAAO,KAAK,GAAG,CAAA;CAAE,CAAC;AAsB9C,QAAA,MAAM,eAAe;;;;;;;;kFAOnB,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":"CommandActionForm.vue.d.ts","sourceRoot":"","sources":["../../../src/components/CommandPalette/CommandActionForm.vue"],"names":[],"mappings":"AA4CA,OAAO,EAGL,KAAK,eAAe,EACrB,MAAM,oBAAoB,CAAA;AAE3B,KAAK,WAAW,GAAG;IACjB,OAAO,CAAC,EAAE,UAAU,CAAC,OAAO,eAAe,CAAC,CAAA;IAC5C,QAAQ,CAAC,EAAE,OAAO,CAAA;CACnB,CAAC;AAwEF,QAAA,IAAI,OAAO,IAAU,EAAE,OAAO,IAAU,EAAE,OAAO,IAAW,CAAE;AAC9D,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,OAAO,KAAK,GAAG,CAAA;CAAE,GAC5C;IAAE,MAAM,CAAC,EAAE,CAAC,KAAK,EAAE,OAAO,OAAO,KAAK,GAAG,CAAA;CAAE,CAAC;AAsB9C,QAAA,MAAM,eAAe;;;;;;;;kFAOnB,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"}
@@ -23,14 +23,14 @@ const v = { class: "flex gap-2" }, w = { class: "flex max-h-8 flex-1" }, h = /*
23
23
  s(e.$slots, "options")
24
24
  ]),
25
25
  u(n(g), {
26
- class: "max-h-8 p-0 px-3 text-xs",
26
+ class: "max-h-8 px-3 text-xs",
27
27
  disabled: e.disabled,
28
28
  loading: e.loading,
29
29
  type: "submit"
30
30
  }, {
31
31
  default: x(() => [
32
32
  s(e.$slots, "submit", {}, () => [
33
- o[2] || (o[2] = b("Continue"))
33
+ o[2] || (o[2] = b("Continue", -1))
34
34
  ])
35
35
  ]),
36
36
  _: 3
@@ -59,9 +59,9 @@ const D = /* @__PURE__ */ p({
59
59
  _: 1
60
60
  }, 8, ["modelValue"])
61
61
  ]),
62
- submit: l(() => e[3] || (e[3] = [
63
- _(" Create Collection ")
64
- ])),
62
+ submit: l(() => [...e[3] || (e[3] = [
63
+ _(" Create Collection ", -1)
64
+ ])]),
65
65
  default: l(() => [
66
66
  r(S, {
67
67
  modelValue: o.value,
@@ -95,9 +95,9 @@ const G = { class: "flex items-center gap-2" }, J = { class: "custom-scroll max-
95
95
  _: 1
96
96
  })
97
97
  ]),
98
- submit: l(() => a[3] || (a[3] = [
99
- u("Create Example")
100
- ])),
98
+ submit: l(() => [...a[3] || (a[3] = [
99
+ u("Create Example", -1)
100
+ ])]),
101
101
  default: l(() => [
102
102
  r(L, {
103
103
  modelValue: s.value,
@@ -1,27 +1,27 @@
1
1
  import { defineComponent as J, ref as L, computed as x, watch as A, createBlock as I, openBlock as l, unref as r, withCtx as p, createElementBlock as d, Fragment as v, createElementVNode as U, createCommentVNode as Y, createVNode as w, createTextVNode as c, toDisplayString as R } from "vue";
2
- import { useLoadingState as q, ScalarButton as _, ScalarCodeBlock as G, ScalarIcon as H, ScalarTooltip as K } from "@scalar/components";
2
+ import { useLoadingState as q, ScalarButton as D, ScalarCodeBlock as G, ScalarIcon as H, ScalarTooltip as K } from "@scalar/components";
3
3
  import { useToasts as Q } from "@scalar/use-toasts";
4
4
  import { useRouter as X } from "vue-router";
5
5
  import { importCurlCommand as Z } from "../../libs/importers/curl.js";
6
+ import { PathId as O } from "../../routes.js";
6
7
  import { useActiveEntities as ee } from "../../store/active-entities.js";
7
8
  import te from "./CommandActionForm.vue.js";
8
9
  import oe from "./CommandActionInput.vue.js";
9
10
  import ae from "./WatchModeToggle.vue.js";
10
- import { isPostmanCollection as P, getPostmanDocumentDetails as le, convertPostmanToOpenApi as D } from "../../libs/postman.js";
11
+ import { isPostmanCollection as P, getPostmanDocumentDetails as le, convertPostmanToOpenApi as V } from "../../libs/postman.js";
11
12
  import { getOpenApiDocumentDetails as re } from "../../libs/getOpenApiDocumentDetails.js";
12
13
  import { isUrl as h } from "../../libs/isUrl.js";
13
14
  import { useFileDialog as ne } from "../../hooks/useFileDialog.js";
14
- import { PathId as O } from "../../routes.js";
15
15
  import { useWorkspace as ie } from "../../store/store.js";
16
16
  const se = { class: "flex justify-between" }, ue = { class: "flex w-full flex-row items-center justify-between gap-3" }, Pe = /* @__PURE__ */ J({
17
17
  __name: "CommandPaletteImport",
18
18
  emits: ["close", "back"],
19
- setup(ce, { emit: V }) {
20
- const C = V, T = X(), { activeWorkspace: n, activeCollection: F } = ee(), { importSpecFile: k, importSpecFromUrl: W, events: N } = ie(), { toast: i } = Q(), s = q(), o = L(""), f = L(!0), a = x(() => P(o.value) ? le(o.value) : re(o.value)), S = x(
19
+ setup(ce, { emit: T }) {
20
+ const C = T, _ = X(), { activeWorkspace: n, activeCollection: F } = ee(), { importSpecFile: k, importSpecFromUrl: W, events: N } = ie(), { toast: i } = Q(), s = q(), o = L(""), f = L(!0), a = x(() => P(o.value) ? le(o.value) : re(o.value)), S = x(
21
21
  () => a.value ? a.value.type : "json"
22
22
  );
23
23
  function g(e) {
24
- e && T.push({
24
+ e && _.push({
25
25
  name: "collection",
26
26
  params: {
27
27
  [O.Workspace]: n.value?.uid,
@@ -30,7 +30,7 @@ const se = { class: "flex justify-between" }, ue = { class: "flex w-full flex-ro
30
30
  });
31
31
  }
32
32
  const y = x(() => h(o.value)), $ = x(() => !!a.value), { open: B } = ne({
33
- onChange: async (e) => {
33
+ onChange: (e) => {
34
34
  const t = e?.[0];
35
35
  if (t) {
36
36
  const u = new FileReader();
@@ -39,7 +39,7 @@ const se = { class: "flex justify-between" }, ue = { class: "flex w-full flex-ro
39
39
  try {
40
40
  if (P(b)) {
41
41
  const m = await k(
42
- await D(b),
42
+ V(b),
43
43
  n.value?.uid ?? ""
44
44
  );
45
45
  g(m?.collection);
@@ -91,7 +91,7 @@ const se = { class: "flex justify-between" }, ue = { class: "flex w-full flex-ro
91
91
  } else if ($.value)
92
92
  if (P(o.value)) {
93
93
  const e = await k(
94
- await D(o.value),
94
+ V(o.value),
95
95
  n.value?.uid ?? ""
96
96
  );
97
97
  g(e?.collection), i("Successfully converted Postman collection", "info");
@@ -134,21 +134,20 @@ const se = { class: "flex justify-between" }, ue = { class: "flex w-full flex-ro
134
134
  }, {
135
135
  options: p(() => [
136
136
  U("div", ue, [
137
- w(r(_), {
137
+ w(r(D), {
138
138
  class: "hover:bg-b-2 relative max-h-8 gap-1.5 p-2 text-xs",
139
139
  variant: "outlined",
140
140
  onClick: r(B)
141
141
  }, {
142
142
  default: p(() => [
143
- t[5] || (t[5] = c(" JSON, or YAML File ")),
143
+ t[5] || (t[5] = c(" JSON, or YAML File ", -1)),
144
144
  w(r(H), {
145
145
  class: "text-c-3",
146
146
  icon: "Upload",
147
147
  size: "md"
148
148
  })
149
149
  ]),
150
- _: 1,
151
- __: [5]
150
+ _: 1
152
151
  }, 8, ["onClick"]),
153
152
  w(r(K), {
154
153
  content: y.value ? "Watch mode automatically updates the API client when the OpenAPI URL content changes, ensuring your client remains up-to-date." : "Watch mode is only available for URL imports. When enabled it automatically updates the API client when the OpenAPI URL content changes.",
@@ -166,7 +165,7 @@ const se = { class: "flex justify-between" }, ue = { class: "flex w-full flex-ro
166
165
  ])
167
166
  ]),
168
167
  submit: p(() => [
169
- t[6] || (t[6] = c(" Import ")),
168
+ t[6] || (t[6] = c(" Import ", -1)),
170
169
  y.value ? (l(), d(v, { key: 0 }, [
171
170
  c(" from URL ")
172
171
  ], 64)) : a.value && S.value ? (l(), d(v, { key: 1 }, [
@@ -189,16 +188,15 @@ const se = { class: "flex justify-between" }, ue = { class: "flex w-full flex-ro
189
188
  }, null, 8, ["modelValue"])) : (l(), d(v, { key: 1 }, [
190
189
  U("div", se, [
191
190
  t[4] || (t[4] = U("div", { class: "text-c-2 min-h-8 w-full py-2 pl-12 text-center text-xs" }, " Preview ", -1)),
192
- w(r(_), {
191
+ w(r(D), {
193
192
  class: "hover:bg-b-2 relative ml-auto max-h-8 gap-1.5 p-2 text-xs",
194
193
  variant: "ghost",
195
194
  onClick: t[1] || (t[1] = (u) => o.value = "")
196
195
  }, {
197
- default: p(() => t[3] || (t[3] = [
198
- c(" Clear ")
199
- ])),
200
- _: 1,
201
- __: [3]
196
+ default: p(() => [...t[3] || (t[3] = [
197
+ c(" Clear ", -1)
198
+ ])]),
199
+ _: 1
202
200
  })
203
201
  ]),
204
202
  a.value && !r(h)(o.value) ? (l(), I(r(G), {
@@ -1,7 +1,7 @@
1
1
  import o from "./CommandPaletteImportCurl.vue2.js";
2
2
  /* empty css */
3
3
  import t from "../../_virtual/_plugin-vue_export-helper.js";
4
- const p = /* @__PURE__ */ t(o, [["__scopeId", "data-v-708cc906"]]);
4
+ const e = /* @__PURE__ */ t(o, [["__scopeId", "data-v-e0578855"]]);
5
5
  export {
6
- p as default
6
+ e as default
7
7
  };
@@ -5,8 +5,8 @@ import { emitCustomEvent as N } from "@scalar/workspace-store/events";
5
5
  import { useRouter as T } from "vue-router";
6
6
  import $ from "./CommandActionForm.vue.js";
7
7
  import A from "../HttpMethod/HttpMethod.vue.js";
8
- import { useActiveEntities as G } from "../../store/active-entities.js";
9
8
  import { PathId as p } from "../../routes.js";
9
+ import { useActiveEntities as G } from "../../store/active-entities.js";
10
10
  import { useWorkspace as H } from "../../store/store.js";
11
11
  const X = { class: "flex h-9 flex-row items-center gap-2 rounded border p-[3px] text-sm" }, J = { class: "flex h-full" }, K = { class: "scroll-timeline-x whitespace-nowrap" }, Q = { class: "flex" }, ie = /* @__PURE__ */ I({
12
12
  __name: "CommandPaletteImportCurl",
@@ -3,10 +3,10 @@ import { ScalarListbox as $, ScalarButton as b, ScalarIcon as j } from "@scalar/
3
3
  import { useToasts as z } from "@scalar/use-toasts";
4
4
  import { emitCustomEvent as I } from "@scalar/workspace-store/events";
5
5
  import { useRouter as L } from "vue-router";
6
+ import { PathId as C } from "../../routes.js";
6
7
  import { useActiveEntities as O } from "../../store/active-entities.js";
7
8
  import W from "./CommandActionForm.vue.js";
8
9
  import A from "./CommandActionInput.vue.js";
9
- import { PathId as C } from "../../routes.js";
10
10
  import { useWorkspace as q } from "../../store/store.js";
11
11
  const te = /* @__PURE__ */ T({
12
12
  __name: "CommandPaletteServer",
@@ -19,7 +19,7 @@ const te = /* @__PURE__ */ T({
19
19
  collectionMutators: g,
20
20
  serverMutators: D,
21
21
  events: U,
22
- collections: _
22
+ collections: y
23
23
  } = q(), a = v(""), i = h(
24
24
  () => V.value.flatMap(
25
25
  (e) => e.info?.title === "Drafts" ? [] : {
@@ -33,12 +33,12 @@ const te = /* @__PURE__ */ T({
33
33
  ) : i.value.find(
34
34
  (e) => e.id === w.value?.uid
35
35
  )
36
- ), y = () => {
36
+ ), P = () => {
37
37
  if (!a.value.trim()) {
38
38
  p("Please enter a valid url before creating a server.", "error");
39
39
  return;
40
40
  }
41
- const e = _[o.value?.id ?? ""];
41
+ const e = y[o.value?.id ?? ""];
42
42
  if (!e) {
43
43
  p("Please select a collection before creating a server.", "error");
44
44
  return;
@@ -56,13 +56,13 @@ const te = /* @__PURE__ */ T({
56
56
  [C.Servers]: t.uid
57
57
  }
58
58
  }), c("close");
59
- }, P = () => {
59
+ }, _ = () => {
60
60
  U.commandPalette.emit({ commandName: "Create Collection" });
61
61
  }, N = B("wrapper-ref");
62
62
  return (e, t) => (m(), u(W, {
63
63
  ref: "wrapper-ref",
64
64
  disabled: !a.value.trim() || !o.value,
65
- onSubmit: y
65
+ onSubmit: P
66
66
  }, {
67
67
  options: l(() => [
68
68
  d(s($), {
@@ -91,21 +91,20 @@ const te = /* @__PURE__ */ T({
91
91
  key: 1,
92
92
  class: "hover:bg-b-2 max-h-8 w-fit justify-between gap-1 p-2 text-xs",
93
93
  variant: "outlined",
94
- onClick: P
94
+ onClick: _
95
95
  }, {
96
- default: l(() => t[3] || (t[3] = [
96
+ default: l(() => [...t[3] || (t[3] = [
97
97
  f("span", { class: "text-c-1" }, "Create Collection", -1)
98
- ])),
99
- _: 1,
100
- __: [3]
98
+ ])]),
99
+ _: 1
101
100
  }))
102
101
  ]),
103
102
  _: 1
104
103
  }, 8, ["modelValue", "options"])
105
104
  ]),
106
- submit: l(() => t[4] || (t[4] = [
107
- E(" Create Server ")
108
- ])),
105
+ submit: l(() => [...t[4] || (t[4] = [
106
+ E(" Create Server ", -1)
107
+ ])]),
109
108
  default: l(() => [
110
109
  d(A, {
111
110
  modelValue: a.value,
@@ -63,9 +63,9 @@ const O = /* @__PURE__ */ g({
63
63
  _: 1
64
64
  }, 8, ["modelValue", "options"])
65
65
  ]),
66
- submit: n(() => e[3] || (e[3] = [
67
- S(" Create Tag ")
68
- ])),
66
+ submit: n(() => [...e[3] || (e[3] = [
67
+ S(" Create Tag ", -1)
68
+ ])]),
69
69
  default: n(() => [
70
70
  i(E, {
71
71
  modelValue: a.value,
@@ -27,9 +27,9 @@ const $ = /* @__PURE__ */ c({
27
27
  disabled: !o.value.trim(),
28
28
  onSubmit: u
29
29
  }, {
30
- submit: s(() => e[2] || (e[2] = [
31
- b("Create Workspace")
32
- ])),
30
+ submit: s(() => [...e[2] || (e[2] = [
31
+ b("Create Workspace", -1)
32
+ ])]),
33
33
  default: s(() => [
34
34
  k(N, {
35
35
  modelValue: o.value,
@@ -1,4 +1,4 @@
1
- import { defineComponent as ee, ref as f, computed as z, watch as te, onMounted as oe, onBeforeUnmount as ne, createBlock as N, openBlock as l, unref as i, withCtx as R, createElementVNode as v, createVNode as k, createElementBlock as c, createTextVNode as U, createCommentVNode as ae, withKeys as A, withModifiers as S, Fragment as T, renderList as V, withDirectives as le, toDisplayString as O, vShow as re, normalizeClass as se, resolveDynamicComponent as me, mergeProps as ie, nextTick as g } from "vue";
1
+ import { defineComponent as ee, ref as f, computed as z, watch as te, onMounted as oe, onBeforeUnmount as ne, createBlock as N, openBlock as l, unref as i, withCtx as R, createElementVNode as v, createVNode as k, createElementBlock as c, createTextVNode as U, createCommentVNode as ae, withKeys as A, withModifiers as S, Fragment as T, renderList as V, withDirectives as le, toDisplayString as O, vShow as re, normalizeClass as se, resolveDynamicComponent as me, mergeProps as ie, nextTick as _ } from "vue";
2
2
  import { Dialog as ce, DialogPanel as ue, DialogTitle as de } from "@headlessui/vue";
3
3
  import { useModal as pe, ScalarIcon as D } from "@scalar/components";
4
4
  import { useRouter as fe } from "vue-router";
@@ -8,9 +8,9 @@ import { PathId as L } from "../../routes.js";
8
8
  import { useActiveEntities as he } from "../../store/active-entities.js";
9
9
  import ke from "./CommandPaletteCollection.vue.js";
10
10
  import xe from "./CommandPaletteExample.vue.js";
11
- import _e from "./CommandPaletteImport.vue.js";
12
- import ye from "./CommandPaletteImportCurl.vue.js";
13
- import ge from "./CommandPaletteServer.vue.js";
11
+ import ye from "./CommandPaletteImport.vue.js";
12
+ import ge from "./CommandPaletteImportCurl.vue.js";
13
+ import _e from "./CommandPaletteServer.vue.js";
14
14
  import be from "./CommandPaletteTag.vue.js";
15
15
  import we from "./CommandPaletteWorkspace.vue.js";
16
16
  import { useWorkspace as Pe } from "../../store/store.js";
@@ -26,14 +26,14 @@ const Ie = {
26
26
  }, Ee = {
27
27
  name: "TheCommandPalette"
28
28
  }, We = {
29
- "Import from OpenAPI/Swagger/Postman/cURL": _e,
29
+ "Import from OpenAPI/Swagger/Postman/cURL": ye,
30
30
  "Create Request": "",
31
31
  "Create Workspace": we,
32
32
  "Add Tag": be,
33
- "Add Server": ge,
33
+ "Add Server": _e,
34
34
  "Create Collection": ke,
35
35
  "Add Example": xe,
36
- "Import from cURL": ye
36
+ "Import from cURL": ge
37
37
  }, Ye = /* @__PURE__ */ ee({
38
38
  ...Ee,
39
39
  setup(qe) {
@@ -121,7 +121,7 @@ const Ie = {
121
121
  ), d = () => {
122
122
  C.hide(), r.value = "", s.value = null, m.value = -1;
123
123
  }, j = (e) => {
124
- r.value !== "" && e?.preventDefault(), s.value = null, g(() => _.value?.focus());
124
+ r.value !== "" && e?.preventDefault(), s.value = null, _(() => y.value?.focus());
125
125
  }, q = (e) => {
126
126
  if ("path" in e)
127
127
  b.push(e.path), d();
@@ -137,7 +137,7 @@ const Ie = {
137
137
  workspace: x.value?.uid,
138
138
  request: o.uid
139
139
  }
140
- }), d(), g(() => {
140
+ }), d(), _(() => {
141
141
  u.hotKeys.emit({
142
142
  focusAddressBar: new KeyboardEvent("keydown", { key: "l" })
143
143
  });
@@ -146,11 +146,11 @@ const Ie = {
146
146
  d();
147
147
  } else
148
148
  s.value = e.name;
149
- }, _ = f(), M = ({
149
+ }, y = f(), M = ({
150
150
  commandName: e,
151
151
  metaData: t
152
152
  } = {}) => {
153
- s.value = e ?? null, w.value = t, C.show(), g(() => _.value?.focus());
153
+ s.value = e ?? null, w.value = t, C.show(), _(() => y.value?.focus());
154
154
  };
155
155
  te(r, (e) => {
156
156
  e && h.value.length > 0 && (m.value = 0);
@@ -159,8 +159,8 @@ const Ie = {
159
159
  if (!C.open) return;
160
160
  t.preventDefault();
161
161
  const o = e === "up" ? -1 : 1, n = h.value.length;
162
- m.value = (m.value + o + n) % n, g(() => {
163
- const a = _.value?.closest(".custom-scroll");
162
+ m.value = (m.value + o + n) % n, _(() => {
163
+ const a = y.value?.closest(".custom-scroll");
164
164
  if (!a) return;
165
165
  if (m.value === 0) {
166
166
  a.scrollTop = 0;
@@ -168,8 +168,8 @@ const Ie = {
168
168
  }
169
169
  const p = W.value[m.value];
170
170
  if (!p) return;
171
- const y = (a.querySelector(".sticky")?.clientHeight || 0) + 16, K = 6, I = p.offsetTop, $ = I + p.clientHeight, Y = a.scrollTop + y, Z = a.scrollTop + a.clientHeight - K;
172
- I < Y ? a.scrollTop = I - y : $ > Z && (a.scrollTop = $ - a.clientHeight + K);
171
+ const g = (a.querySelector(".sticky")?.clientHeight || 0) + 16, K = 6, I = p.offsetTop, $ = I + p.clientHeight, Y = a.scrollTop + g, Z = a.scrollTop + a.clientHeight - K;
172
+ I < Y ? a.scrollTop = I - g : $ > Z && (a.scrollTop = $ - a.clientHeight + K);
173
173
  });
174
174
  }, P = z(
175
175
  () => h.value[m.value]
@@ -203,11 +203,10 @@ const Ie = {
203
203
  k(i(ue), { class: "commandmenu z-overlay flex flex-col" }, {
204
204
  default: R(() => [
205
205
  k(i(de), { class: "sr-only" }, {
206
- default: R(() => t[6] || (t[6] = [
207
- U("API Client Command Menu")
208
- ])),
209
- _: 1,
210
- __: [6]
206
+ default: R(() => [...t[6] || (t[6] = [
207
+ U("API Client Command Menu", -1)
208
+ ])]),
209
+ _: 1
211
210
  }),
212
211
  s.value ? (l(), c("div", Le, [
213
212
  v("button", {
@@ -238,7 +237,7 @@ const Ie = {
238
237
  v("input", {
239
238
  id: "commandmenu",
240
239
  ref_key: "commandInputRef",
241
- ref: _,
240
+ ref: y,
242
241
  autocomplete: "off",
243
242
  autofocus: "",
244
243
  class: "w-full rounded border-none bg-none py-1.5 text-sm focus:outline-none",
@@ -272,7 +271,7 @@ const Ie = {
272
271
  ref: (a) => {
273
272
  if (a) {
274
273
  const p = h.value.findIndex(
275
- (y) => y.name === n.name
274
+ (g) => g.name === n.name
276
275
  );
277
276
  p !== -1 && (W.value[p] = a);
278
277
  }
@@ -297,8 +296,7 @@ const Ie = {
297
296
  _: 1
298
297
  })
299
298
  ]),
300
- _: 1,
301
- __: [7]
299
+ _: 1
302
300
  }, 8, ["open"]));
303
301
  }
304
302
  });
@@ -23,7 +23,7 @@ const N = /* @__PURE__ */ c({
23
23
  icon: "Watch",
24
24
  size: "sm"
25
25
  }),
26
- t[1] || (t[1] = g(" Watch Mode "))
26
+ t[1] || (t[1] = g(" Watch Mode ", -1))
27
27
  ], 2),
28
28
  d(s(b), {
29
29
  id: "watch-toggle",
@@ -46,7 +46,7 @@ const T = ["for"], N = { class: "relative flex min-w-0 flex-1" }, P = ["readOnly
46
46
  onClick: b
47
47
  }, [
48
48
  p(e.$slots, "default", {}, void 0, !0),
49
- l[5] || (l[5] = O(": "))
49
+ l[5] || (l[5] = O(": ", -1))
50
50
  ], 8, T)) : u("", !0),
51
51
  I("div", N, [
52
52
  n.enum && n.enum.length ? (a(), s(F, {