@scalar/api-client 2.8.0 → 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 (418) hide show
  1. package/CHANGELOG.md +90 -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.vue.d.ts +4 -4
  15. package/dist/components/CommandPalette/TheCommandPalette.vue2.js +22 -24
  16. package/dist/components/CommandPalette/WatchModeToggle.vue.js +1 -1
  17. package/dist/components/DataTable/DataTableInput.vue2.js +1 -1
  18. package/dist/components/DataTable/DataTableInputSelect.vue.js +8 -9
  19. package/dist/components/EnvironmentSelector/EnvironmentSelector.vue.js +8 -10
  20. package/dist/components/HttpMethod/HttpMethod.vue.d.ts +2 -2
  21. package/dist/components/IconSelector.vue.js +1 -1
  22. package/dist/components/ImportCollection/DropEventListener.vue.js +12 -12
  23. package/dist/components/ImportCollection/ImportCollectionListener.vue.js +8 -8
  24. package/dist/components/ImportCollection/ImportCollectionModal.vue.js +1 -1
  25. package/dist/components/ImportCollection/ImportNowButton.vue.js +14 -16
  26. package/dist/components/ImportCollection/PasteEventListener.vue.js +1 -1
  27. package/dist/components/ImportCollection/PrefetchError.vue.js +2 -2
  28. package/dist/components/ImportCollection/WorkspaceSelector.vue.js +5 -7
  29. package/dist/components/ImportCollection/hooks/useUrlPrefetcher.d.ts +1 -1
  30. package/dist/components/ImportCollection/hooks/useUrlPrefetcher.d.ts.map +1 -1
  31. package/dist/components/ImportCollection/hooks/useUrlPrefetcher.js +3 -3
  32. package/dist/components/OpenApiClientButton.vue2.js +1 -1
  33. package/dist/components/Server/ServerSelector.vue.js +1 -2
  34. package/dist/components/SideNav/SideHelp.vue.js +13 -19
  35. package/dist/components/SideNav/SideNav.vue.js +4 -5
  36. package/dist/components/Sidebar/Actions/SidebarListElementForm.vue2.js +4 -5
  37. package/dist/components/Sidebar/Sidebar.vue.d.ts.map +1 -1
  38. package/dist/components/Sidebar/Sidebar.vue.js +2 -2
  39. package/dist/components/Sidebar/Sidebar.vue2.js +1 -1
  40. package/dist/components/TopNav/TopNav.vue.js +8 -10
  41. package/dist/components/TopNav/TopNavItem.vue2.js +8 -12
  42. package/dist/hooks/index.d.ts +0 -1
  43. package/dist/hooks/index.d.ts.map +1 -1
  44. package/dist/hooks/index.js +9 -11
  45. package/dist/hooks/useClientConfig.d.ts +9 -6
  46. package/dist/hooks/useClientConfig.d.ts.map +1 -1
  47. package/dist/index.d.ts +1 -2
  48. package/dist/index.d.ts.map +1 -1
  49. package/dist/index.js +8 -15
  50. package/dist/layouts/App/create-api-client-app.d.ts +3644 -3643
  51. package/dist/layouts/App/create-api-client-app.d.ts.map +1 -1
  52. package/dist/layouts/App/create-api-client-app.js +24 -18
  53. package/dist/layouts/Modal/create-api-client-modal.d.ts +5 -8089
  54. package/dist/layouts/Modal/create-api-client-modal.d.ts.map +1 -1
  55. package/dist/layouts/Modal/create-api-client-modal.js +28 -46
  56. package/dist/layouts/Modal/index.d.ts +2 -2
  57. package/dist/layouts/Modal/index.d.ts.map +1 -1
  58. package/dist/layouts/Modal/index.js +2 -5
  59. package/dist/layouts/Web/create-api-client-web.d.ts +20 -20
  60. package/dist/layouts/Web/create-api-client-web.d.ts.map +1 -1
  61. package/dist/layouts/Web/create-api-client-web.js +15 -12
  62. package/dist/libs/create-client.d.ts +25 -25
  63. package/dist/libs/create-client.d.ts.map +1 -1
  64. package/dist/libs/create-client.js +23 -23
  65. package/dist/libs/find-request.d.ts +2 -2
  66. package/dist/libs/postman.d.ts +1 -1
  67. package/dist/libs/postman.d.ts.map +1 -1
  68. package/dist/libs/postman.js +12 -12
  69. package/dist/libs/send-request/create-request-operation.js +8 -8
  70. package/dist/libs/send-request/create-request-operation.test.d.ts +2 -2
  71. package/dist/libs/validate-parameters.d.ts +10 -2
  72. package/dist/libs/validate-parameters.d.ts.map +1 -1
  73. package/dist/libs/validate-parameters.js +13 -6
  74. package/dist/plugins/plugin-manager.d.ts +1 -1
  75. package/dist/routes.d.ts +3 -184
  76. package/dist/routes.d.ts.map +1 -1
  77. package/dist/routes.js +6 -6
  78. package/dist/store/active-entities.d.ts +3 -3
  79. package/dist/store/active-entities.d.ts.map +1 -1
  80. package/dist/store/active-entities.js +2 -2
  81. package/dist/store/requests.d.ts +22 -22
  82. package/dist/store/router-params.d.ts.map +1 -1
  83. package/dist/store/store.d.ts +20 -20
  84. package/dist/style.css +1 -1
  85. package/dist/v2/blocks/operation-code-sample/components/OperationCodeSample.vue.js +2 -2
  86. package/dist/v2/blocks/operation-code-sample/components/OperationCodeSample.vue2.js +1 -1
  87. package/dist/v2/blocks/operation-code-sample/index.d.ts +1 -0
  88. package/dist/v2/blocks/operation-code-sample/index.d.ts.map +1 -1
  89. package/dist/v2/blocks/operation-code-sample/index.js +8 -6
  90. package/dist/v2/blocks/scalar-address-bar-block/components/AddressBar.vue.d.ts +5 -5
  91. package/dist/v2/blocks/scalar-address-bar-block/components/AddressBar.vue.d.ts.map +1 -1
  92. package/dist/v2/blocks/scalar-address-bar-block/components/AddressBar.vue.js +2 -2
  93. package/dist/v2/blocks/scalar-address-bar-block/components/AddressBar.vue2.js +3 -3
  94. package/dist/v2/blocks/scalar-address-bar-block/components/AddressBarHistory.vue2.js +3 -4
  95. package/dist/v2/blocks/scalar-address-bar-block/index.d.ts +1 -0
  96. package/dist/v2/blocks/scalar-address-bar-block/index.d.ts.map +1 -1
  97. package/dist/v2/blocks/scalar-auth-selector-block/components/AuthSelector.vue2.js +2 -2
  98. package/dist/v2/blocks/scalar-auth-selector-block/components/DeleteRequestAuthModal.vue.js +7 -8
  99. package/dist/v2/blocks/scalar-auth-selector-block/components/OAuth2.vue.js +44 -55
  100. package/dist/v2/blocks/scalar-auth-selector-block/components/OAuthScopesInput.vue.js +16 -18
  101. package/dist/v2/blocks/scalar-auth-selector-block/components/RequestAuthTab.vue.js +41 -46
  102. package/dist/v2/blocks/scalar-auth-selector-block/helpers/oauth.d.ts.map +1 -1
  103. package/dist/v2/blocks/scalar-operation-block/components/OperationBlock.vue.d.ts +3 -0
  104. package/dist/v2/blocks/scalar-operation-block/components/OperationBlock.vue.d.ts.map +1 -1
  105. package/dist/v2/blocks/scalar-operation-block/components/OperationBlock.vue.js +2 -2
  106. package/dist/v2/blocks/scalar-operation-block/components/OperationBlock.vue2.js +201 -187
  107. package/dist/v2/blocks/scalar-operation-block/components/OperationBody.vue.js +2 -2
  108. package/dist/v2/blocks/scalar-operation-block/components/OperationBody.vue2.js +8 -10
  109. package/dist/v2/blocks/scalar-operation-block/components/OperationParams.vue.js +2 -3
  110. package/dist/v2/blocks/scalar-operation-block/components/OperationTableRow.vue.js +2 -4
  111. package/dist/v2/blocks/scalar-response-block/components/Headers.vue.js +14 -16
  112. package/dist/v2/blocks/scalar-response-block/components/ResponseBlock.vue.d.ts +3 -0
  113. package/dist/v2/blocks/scalar-response-block/components/ResponseBlock.vue.d.ts.map +1 -1
  114. package/dist/v2/blocks/scalar-response-block/components/ResponseBlock.vue.js +3 -3
  115. package/dist/v2/blocks/scalar-response-block/components/ResponseBlock.vue2.js +87 -85
  116. package/dist/v2/blocks/scalar-response-block/components/ResponseBody.vue2.js +10 -11
  117. package/dist/v2/blocks/scalar-response-block/components/ResponseBodyPreview.vue2.js +4 -5
  118. package/dist/v2/blocks/scalar-response-block/components/ResponseBodyVirtual.vue.js +1 -1
  119. package/dist/v2/blocks/scalar-response-block/components/ResponseCookies.vue.js +3 -3
  120. package/dist/v2/blocks/scalar-response-block/components/ResponseEmpty.vue.js +1 -1
  121. package/dist/v2/blocks/scalar-response-block/components/ResponseEmpty.vue2.js +5 -5
  122. package/dist/v2/blocks/scalar-response-block/components/ResponseLoadingOverlay.vue2.js +9 -10
  123. package/dist/v2/components/TempReplaceMe.vue.d.ts +3 -0
  124. package/dist/v2/components/TempReplaceMe.vue.d.ts.map +1 -0
  125. package/dist/v2/components/TempReplaceMe.vue.js +12 -0
  126. package/dist/v2/components/resize/Resize.vue.d.ts +20 -0
  127. package/dist/v2/components/resize/Resize.vue.d.ts.map +1 -0
  128. package/dist/v2/components/resize/Resize.vue.js +8 -0
  129. package/dist/v2/components/resize/Resize.vue2.js +36 -0
  130. package/dist/v2/components/resize/index.d.ts +3 -0
  131. package/dist/v2/components/resize/index.d.ts.map +1 -0
  132. package/dist/v2/components/resize/index.js +4 -0
  133. package/dist/v2/components/sidebar/Sidebar.vue.d.ts +39 -0
  134. package/dist/v2/components/sidebar/Sidebar.vue.d.ts.map +1 -0
  135. package/dist/v2/components/sidebar/Sidebar.vue.js +95 -0
  136. package/dist/v2/components/sidebar/Sidebar.vue2.js +4 -0
  137. package/dist/v2/components/sidebar/SidebarMenu.vue.d.ts +13 -0
  138. package/dist/v2/components/sidebar/SidebarMenu.vue.d.ts.map +1 -0
  139. package/dist/v2/components/sidebar/SidebarMenu.vue.js +63 -0
  140. package/dist/v2/components/sidebar/SidebarMenu.vue2.js +4 -0
  141. package/dist/v2/components/sidebar/SidebarToggle.vue.d.ts +10 -0
  142. package/dist/v2/components/sidebar/SidebarToggle.vue.d.ts.map +1 -0
  143. package/dist/v2/components/sidebar/SidebarToggle.vue.js +52 -0
  144. package/dist/v2/components/sidebar/SidebarToggle.vue2.js +4 -0
  145. package/dist/v2/components/sidebar/index.d.ts +4 -0
  146. package/dist/v2/components/sidebar/index.d.ts.map +1 -0
  147. package/dist/v2/components/sidebar/index.js +8 -0
  148. package/dist/v2/features/app/App.vue.d.ts +16 -0
  149. package/dist/v2/features/app/App.vue.d.ts.map +1 -0
  150. package/dist/v2/features/app/App.vue.js +72 -0
  151. package/dist/v2/features/app/App.vue3.js +5 -0
  152. package/dist/v2/features/app/components/AppSidebar.vue.d.ts +30 -0
  153. package/dist/v2/features/app/components/AppSidebar.vue.d.ts.map +1 -0
  154. package/dist/v2/features/app/components/AppSidebar.vue.js +7 -0
  155. package/dist/v2/features/app/components/AppSidebar.vue2.js +117 -0
  156. package/dist/v2/features/app/components/DesktopTabs.vue.d.ts +3 -0
  157. package/dist/v2/features/app/components/DesktopTabs.vue.d.ts.map +1 -0
  158. package/dist/v2/features/app/components/DesktopTabs.vue.js +14 -0
  159. package/dist/v2/features/app/components/DownloadAppButton.vue.d.ts +3 -0
  160. package/dist/v2/features/app/components/DownloadAppButton.vue.d.ts.map +1 -0
  161. package/dist/v2/features/app/components/DownloadAppButton.vue.js +7 -0
  162. package/dist/v2/features/app/components/DownloadAppButton.vue2.js +19 -0
  163. package/dist/v2/features/app/components/WebTopNav.vue.d.ts +16 -0
  164. package/dist/v2/features/app/components/WebTopNav.vue.d.ts.map +1 -0
  165. package/dist/v2/features/app/components/WebTopNav.vue.js +28 -0
  166. package/dist/v2/features/app/components/WebTopNav.vue2.js +4 -0
  167. package/dist/v2/features/app/components/index.d.ts +2 -0
  168. package/dist/v2/features/app/components/index.d.ts.map +1 -0
  169. package/dist/v2/features/app/components/index.js +5 -0
  170. package/dist/v2/features/app/helpers/create-api-client-app.d.ts +25 -0
  171. package/dist/v2/features/app/helpers/create-api-client-app.d.ts.map +1 -0
  172. package/dist/v2/features/app/helpers/create-api-client-app.js +21 -0
  173. package/dist/v2/features/app/helpers/routes.d.ts +103 -0
  174. package/dist/v2/features/app/helpers/routes.d.ts.map +1 -0
  175. package/dist/v2/features/app/helpers/routes.js +115 -0
  176. package/dist/v2/features/app/index.d.ts +2 -0
  177. package/dist/v2/features/app/index.d.ts.map +1 -0
  178. package/dist/v2/features/app/index.js +4 -0
  179. package/dist/v2/features/collection/DocumentCollection.test.d.ts +2 -0
  180. package/dist/v2/features/collection/DocumentCollection.test.d.ts.map +1 -0
  181. package/dist/v2/features/collection/DocumentCollection.vue.d.ts +12 -0
  182. package/dist/v2/features/collection/DocumentCollection.vue.d.ts.map +1 -0
  183. package/dist/v2/features/collection/DocumentCollection.vue.js +4 -0
  184. package/dist/v2/features/collection/DocumentCollection.vue2.js +82 -0
  185. package/dist/v2/features/collection/WorkspaceCollection.test.d.ts +2 -0
  186. package/dist/v2/features/collection/WorkspaceCollection.test.d.ts.map +1 -0
  187. package/dist/v2/features/collection/WorkspaceCollection.vue.d.ts +10 -0
  188. package/dist/v2/features/collection/WorkspaceCollection.vue.d.ts.map +1 -0
  189. package/dist/v2/features/collection/WorkspaceCollection.vue.js +4 -0
  190. package/dist/v2/features/collection/WorkspaceCollection.vue2.js +38 -0
  191. package/dist/v2/features/collection/components/Authentication.test.d.ts +2 -0
  192. package/dist/v2/features/collection/components/Authentication.test.d.ts.map +1 -0
  193. package/dist/v2/features/collection/components/Authentication.vue.d.ts +48 -0
  194. package/dist/v2/features/collection/components/Authentication.vue.d.ts.map +1 -0
  195. package/dist/v2/features/collection/components/Authentication.vue.js +7 -0
  196. package/dist/v2/features/collection/components/Authentication.vue2.js +50 -0
  197. package/dist/v2/features/collection/components/Cookies.vue.d.ts +3 -0
  198. package/dist/v2/features/collection/components/Cookies.vue.d.ts.map +1 -0
  199. package/dist/v2/features/collection/components/Cookies.vue.js +9 -0
  200. package/dist/v2/features/collection/components/Environment.test.d.ts +2 -0
  201. package/dist/v2/features/collection/components/Environment.test.d.ts.map +1 -0
  202. package/dist/v2/features/collection/components/Environment.vue.d.ts +89 -0
  203. package/dist/v2/features/collection/components/Environment.vue.d.ts.map +1 -0
  204. package/dist/v2/features/collection/components/Environment.vue.js +4 -0
  205. package/dist/v2/features/collection/components/Environment.vue2.js +34 -0
  206. package/dist/v2/features/collection/components/Form.vue.d.ts +29 -0
  207. package/dist/v2/features/collection/components/Form.vue.d.ts.map +1 -0
  208. package/dist/v2/features/collection/components/Form.vue.js +83 -0
  209. package/dist/v2/features/collection/components/Form.vue2.js +4 -0
  210. package/dist/v2/features/collection/components/LabelInput.test.d.ts +2 -0
  211. package/dist/v2/features/collection/components/LabelInput.test.d.ts.map +1 -0
  212. package/dist/v2/features/collection/components/LabelInput.vue.d.ts +10 -0
  213. package/dist/v2/features/collection/components/LabelInput.vue.d.ts.map +1 -0
  214. package/dist/v2/features/collection/components/LabelInput.vue.js +7 -0
  215. package/dist/v2/features/collection/components/LabelInput.vue2.js +29 -0
  216. package/dist/v2/features/collection/components/Overview.test.d.ts +2 -0
  217. package/dist/v2/features/collection/components/Overview.test.d.ts.map +1 -0
  218. package/dist/v2/features/collection/components/Overview.vue.d.ts +14 -0
  219. package/dist/v2/features/collection/components/Overview.vue.d.ts.map +1 -0
  220. package/dist/v2/features/collection/components/Overview.vue.js +4 -0
  221. package/dist/v2/features/collection/components/Overview.vue2.js +91 -0
  222. package/dist/v2/features/collection/components/Servers.test.d.ts +2 -0
  223. package/dist/v2/features/collection/components/Servers.test.d.ts.map +1 -0
  224. package/dist/v2/features/collection/components/Servers.vue.d.ts +33 -0
  225. package/dist/v2/features/collection/components/Servers.vue.d.ts.map +1 -0
  226. package/dist/v2/features/collection/components/Servers.vue.js +4 -0
  227. package/dist/v2/features/collection/components/Servers.vue2.js +120 -0
  228. package/dist/v2/features/collection/components/Settings.test.d.ts +2 -0
  229. package/dist/v2/features/collection/components/Settings.test.d.ts.map +1 -0
  230. package/dist/v2/features/collection/components/Settings.vue.d.ts +17 -0
  231. package/dist/v2/features/collection/components/Settings.vue.d.ts.map +1 -0
  232. package/dist/v2/features/collection/components/Settings.vue.js +7 -0
  233. package/dist/v2/features/collection/components/Settings.vue2.js +100 -0
  234. package/dist/v2/features/collection/components/Tabs.test.d.ts +2 -0
  235. package/dist/v2/features/collection/components/Tabs.test.d.ts.map +1 -0
  236. package/dist/v2/features/collection/components/Tabs.vue.d.ts +6 -0
  237. package/dist/v2/features/collection/components/Tabs.vue.d.ts.map +1 -0
  238. package/dist/v2/features/collection/components/Tabs.vue.js +46 -0
  239. package/dist/v2/features/collection/components/Tabs.vue2.js +4 -0
  240. package/dist/v2/features/environments/Environments.test.d.ts +2 -0
  241. package/dist/v2/features/environments/Environments.test.d.ts.map +1 -0
  242. package/dist/v2/features/environments/Environments.vue.d.ts +31 -0
  243. package/dist/v2/features/environments/Environments.vue.d.ts.map +1 -0
  244. package/dist/v2/features/environments/Environments.vue.js +65 -0
  245. package/dist/v2/features/environments/Environments.vue2.js +4 -0
  246. package/dist/v2/features/environments/EnvironmentsList.test.d.ts +2 -0
  247. package/dist/v2/features/environments/EnvironmentsList.test.d.ts.map +1 -0
  248. package/dist/v2/features/environments/EnvironmentsList.vue.d.ts +98 -0
  249. package/dist/v2/features/environments/EnvironmentsList.vue.d.ts.map +1 -0
  250. package/dist/v2/features/environments/EnvironmentsList.vue.js +114 -0
  251. package/dist/v2/features/environments/EnvironmentsList.vue2.js +4 -0
  252. package/dist/v2/features/environments/components/Environment.test.d.ts +2 -0
  253. package/dist/v2/features/environments/components/Environment.test.d.ts.map +1 -0
  254. package/dist/v2/features/environments/components/Environment.vue.d.ts +70 -0
  255. package/dist/v2/features/environments/components/Environment.vue.d.ts.map +1 -0
  256. package/dist/v2/features/environments/components/Environment.vue.js +104 -0
  257. package/dist/v2/features/environments/components/Environment.vue2.js +4 -0
  258. package/dist/v2/features/environments/components/EnvironmentColorUpdateModal.vue.d.ts +20 -0
  259. package/dist/v2/features/environments/components/EnvironmentColorUpdateModal.vue.d.ts.map +1 -0
  260. package/dist/v2/features/environments/components/EnvironmentColorUpdateModal.vue.js +48 -0
  261. package/dist/v2/features/environments/components/EnvironmentColorUpdateModal.vue2.js +4 -0
  262. package/dist/v2/features/environments/components/EnvironmentColors.test.d.ts +2 -0
  263. package/dist/v2/features/environments/components/EnvironmentColors.test.d.ts.map +1 -0
  264. package/dist/v2/features/environments/components/EnvironmentColors.vue.d.ts +10 -0
  265. package/dist/v2/features/environments/components/EnvironmentColors.vue.d.ts.map +1 -0
  266. package/dist/v2/features/environments/components/EnvironmentColors.vue.js +97 -0
  267. package/dist/v2/features/environments/components/EnvironmentColors.vue2.js +4 -0
  268. package/dist/v2/features/environments/components/EnvironmentCreateModal.vue.d.ts +19 -0
  269. package/dist/v2/features/environments/components/EnvironmentCreateModal.vue.d.ts.map +1 -0
  270. package/dist/v2/features/environments/components/EnvironmentCreateModal.vue.js +63 -0
  271. package/dist/v2/features/environments/components/EnvironmentCreateModal.vue2.js +4 -0
  272. package/dist/v2/features/environments/components/EnvironmentDeleteModal.vue.d.ts +14 -0
  273. package/dist/v2/features/environments/components/EnvironmentDeleteModal.vue.d.ts.map +1 -0
  274. package/dist/v2/features/environments/components/EnvironmentDeleteModal.vue.js +53 -0
  275. package/dist/v2/features/environments/components/EnvironmentDeleteModal.vue2.js +4 -0
  276. package/dist/v2/features/environments/components/EnvironmentNameUpdateModal.vue.d.ts +18 -0
  277. package/dist/v2/features/environments/components/EnvironmentNameUpdateModal.vue.d.ts.map +1 -0
  278. package/dist/v2/features/environments/components/EnvironmentNameUpdateModal.vue.js +35 -0
  279. package/dist/v2/features/environments/components/EnvironmentNameUpdateModal.vue2.js +4 -0
  280. package/dist/v2/features/environments/components/EnvironmentVariablesTable.test.d.ts +2 -0
  281. package/dist/v2/features/environments/components/EnvironmentVariablesTable.test.d.ts.map +1 -0
  282. package/dist/v2/features/environments/components/EnvironmentVariablesTable.vue.d.ts +23 -0
  283. package/dist/v2/features/environments/components/EnvironmentVariablesTable.vue.d.ts.map +1 -0
  284. package/dist/v2/features/environments/components/EnvironmentVariablesTable.vue.js +7 -0
  285. package/dist/v2/features/environments/components/EnvironmentVariablesTable.vue2.js +122 -0
  286. package/dist/v2/features/environments/index.d.ts +5 -0
  287. package/dist/v2/features/environments/index.d.ts.map +1 -0
  288. package/dist/v2/features/environments/index.js +6 -0
  289. package/dist/v2/features/global-cookies/components/CookiesTable.test.d.ts +2 -0
  290. package/dist/v2/features/global-cookies/components/CookiesTable.test.d.ts.map +1 -0
  291. package/dist/v2/features/global-cookies/components/CookiesTable.vue.d.ts +25 -0
  292. package/dist/v2/features/global-cookies/components/CookiesTable.vue.d.ts.map +1 -0
  293. package/dist/v2/features/global-cookies/components/CookiesTable.vue.js +7 -0
  294. package/dist/v2/features/global-cookies/components/CookiesTable.vue2.js +156 -0
  295. package/dist/v2/features/global-cookies/components/GlobalCookies.test.d.ts +2 -0
  296. package/dist/v2/features/global-cookies/components/GlobalCookies.test.d.ts.map +1 -0
  297. package/dist/v2/features/global-cookies/components/GlobalCookies.vue.d.ts +32 -0
  298. package/dist/v2/features/global-cookies/components/GlobalCookies.vue.d.ts.map +1 -0
  299. package/dist/v2/features/global-cookies/components/GlobalCookies.vue.js +7 -0
  300. package/dist/v2/features/global-cookies/components/GlobalCookies.vue2.js +58 -0
  301. package/dist/v2/features/global-cookies/index.d.ts +2 -0
  302. package/dist/v2/features/global-cookies/index.d.ts.map +1 -0
  303. package/dist/v2/features/global-cookies/index.js +4 -0
  304. package/dist/v2/features/modal/Modal.vue.d.ts +16 -0
  305. package/dist/v2/features/modal/Modal.vue.d.ts.map +1 -0
  306. package/dist/v2/features/modal/Modal.vue.js +7 -0
  307. package/dist/v2/features/modal/Modal.vue2.js +81 -0
  308. package/dist/v2/features/modal/helpers/create-api-client-modal.d.ts +53 -0
  309. package/dist/v2/features/modal/helpers/create-api-client-modal.d.ts.map +1 -0
  310. package/dist/v2/features/modal/helpers/create-api-client-modal.js +46 -0
  311. package/dist/v2/features/modal/index.d.ts +2 -0
  312. package/dist/v2/features/modal/index.d.ts.map +1 -0
  313. package/dist/v2/features/modal/index.js +4 -0
  314. package/dist/v2/features/operation/Operation.test.d.ts +2 -0
  315. package/dist/v2/features/operation/Operation.test.d.ts.map +1 -0
  316. package/dist/v2/features/operation/Operation.vue.d.ts +79 -0
  317. package/dist/v2/features/operation/Operation.vue.d.ts.map +1 -0
  318. package/dist/v2/features/operation/Operation.vue.js +124 -0
  319. package/dist/v2/features/operation/Operation.vue2.js +4 -0
  320. package/dist/v2/features/operation/components/Header.test.d.ts +2 -0
  321. package/dist/v2/features/operation/components/Header.test.d.ts.map +1 -0
  322. package/dist/v2/features/operation/components/Header.vue.d.ts +85 -0
  323. package/dist/v2/features/operation/components/Header.vue.d.ts.map +1 -0
  324. package/dist/v2/features/operation/components/Header.vue.js +7 -0
  325. package/dist/v2/features/operation/components/Header.vue2.js +97 -0
  326. package/dist/v2/features/operation/index.d.ts +3 -0
  327. package/dist/v2/features/operation/index.d.ts.map +1 -0
  328. package/dist/v2/features/operation/index.js +4 -0
  329. package/dist/v2/features/settings/Settings.test.d.ts +2 -0
  330. package/dist/v2/features/settings/Settings.test.d.ts.map +1 -0
  331. package/dist/v2/features/settings/Settings.vue.d.ts +22 -0
  332. package/dist/v2/features/settings/Settings.vue.d.ts.map +1 -0
  333. package/dist/v2/features/settings/Settings.vue.js +268 -0
  334. package/dist/v2/features/settings/Settings.vue2.js +4 -0
  335. package/dist/v2/features/settings/components/Appearance.vue.d.ts +10 -0
  336. package/dist/v2/features/settings/components/Appearance.vue.d.ts.map +1 -0
  337. package/dist/v2/features/settings/components/Appearance.vue.js +88 -0
  338. package/dist/v2/features/settings/components/Appearance.vue2.js +4 -0
  339. package/dist/v2/features/settings/components/Section.vue.d.ts +14 -0
  340. package/dist/v2/features/settings/components/Section.vue.d.ts.map +1 -0
  341. package/dist/v2/features/settings/components/Section.vue.js +24 -0
  342. package/dist/v2/features/settings/components/Section.vue2.js +4 -0
  343. package/dist/v2/features/settings/helpers/get-theme-colors.d.ts +9 -0
  344. package/dist/v2/features/settings/helpers/get-theme-colors.d.ts.map +1 -0
  345. package/dist/v2/features/settings/helpers/get-theme-colors.js +17 -0
  346. package/dist/v2/features/settings/index.d.ts +2 -0
  347. package/dist/v2/features/settings/index.d.ts.map +1 -0
  348. package/dist/v2/features/settings/index.js +4 -0
  349. package/dist/v2/hooks/use-document-watcher.d.ts +28 -0
  350. package/dist/v2/hooks/use-document-watcher.d.ts.map +1 -0
  351. package/dist/v2/hooks/use-document-watcher.test.d.ts +2 -0
  352. package/dist/v2/hooks/use-document-watcher.test.d.ts.map +1 -0
  353. package/dist/v2/hooks/use-workspace-client-events.d.ts +8 -0
  354. package/dist/v2/hooks/use-workspace-client-events.d.ts.map +1 -0
  355. package/dist/v2/hooks/use-workspace-client-events.js +13 -0
  356. package/dist/v2/plugins.d.ts +44 -0
  357. package/dist/v2/plugins.d.ts.map +1 -0
  358. package/dist/v2/types/layout.d.ts +10 -0
  359. package/dist/v2/types/layout.d.ts.map +1 -0
  360. package/dist/views/Collection/Collection.vue2.js +6 -6
  361. package/dist/views/Collection/CollectionCookies.vue2.js +3 -3
  362. package/dist/views/Collection/CollectionEnvironment.vue2.js +12 -13
  363. package/dist/views/Collection/CollectionScripts.vue2.js +3 -3
  364. package/dist/views/Collection/CollectionServerForm.vue.d.ts.map +1 -1
  365. package/dist/views/Collection/CollectionServerForm.vue.js +42 -62
  366. package/dist/views/Collection/CollectionServers.vue.d.ts.map +1 -1
  367. package/dist/views/Collection/CollectionServers.vue2.js +43 -50
  368. package/dist/views/Collection/CollectionSettings.vue.js +2 -2
  369. package/dist/views/Collection/CollectionSettings.vue2.js +5 -6
  370. package/dist/views/Collection/CollectionSync.vue2.js +3 -3
  371. package/dist/views/Collection/components/EnvironmentForm.vue2.js +10 -12
  372. package/dist/views/Collection/components/MarkdownInput.vue2.js +2 -4
  373. package/dist/views/Cookies/CookieModal.vue2.js +6 -6
  374. package/dist/views/Cookies/Cookies.vue2.js +6 -6
  375. package/dist/views/Environment/Environment.vue2.js +5 -6
  376. package/dist/views/Environment/EnvironmentModal.vue.js +13 -14
  377. package/dist/views/Environment/EnvironmentVariableDropdown.vue.js +8 -9
  378. package/dist/views/Request/RequestRoot.vue.d.ts.map +1 -1
  379. package/dist/views/Request/RequestRoot.vue.js +2 -2
  380. package/dist/views/Request/RequestRoot.vue2.js +79 -80
  381. package/dist/views/Request/RequestSection/RequestAuth/DeleteRequestAuthModal.vue.js +10 -11
  382. package/dist/views/Request/RequestSection/RequestAuth/OAuth2.vue.js +44 -55
  383. package/dist/views/Request/RequestSection/RequestAuth/OAuthScopesInput.vue.js +10 -12
  384. package/dist/views/Request/RequestSection/RequestAuth/RequestAuth.vue2.js +2 -2
  385. package/dist/views/Request/RequestSection/RequestAuth/RequestAuthTab.vue.js +39 -44
  386. package/dist/views/Request/RequestSection/RequestBody.vue.d.ts.map +1 -1
  387. package/dist/views/Request/RequestSection/RequestBody.vue.js +2 -2
  388. package/dist/views/Request/RequestSection/RequestBody.vue2.js +96 -78
  389. package/dist/views/Request/RequestSection/RequestCodeExample.vue2.js +3 -3
  390. package/dist/views/Request/RequestSection/RequestParams.vue.js +2 -3
  391. package/dist/views/Request/RequestSection/RequestSection.vue.js +2 -2
  392. package/dist/views/Request/RequestSection/RequestSection.vue2.js +55 -55
  393. package/dist/views/Request/RequestSection/RequestTable.vue2.js +15 -17
  394. package/dist/views/Request/RequestSidebar.vue2.js +7 -8
  395. package/dist/views/Request/RequestSidebarItem.vue.js +2 -2
  396. package/dist/views/Request/RequestSidebarItem.vue2.js +31 -32
  397. package/dist/views/Request/RequestSidebarItemMenu.vue.js +1 -1
  398. package/dist/views/Request/RequestSidebarItemMenu.vue2.js +13 -16
  399. package/dist/views/Request/ResponseSection/RequestHeaders.vue.js +11 -13
  400. package/dist/views/Request/ResponseSection/ResponseBody.vue2.js +4 -5
  401. package/dist/views/Request/ResponseSection/ResponseBodyPreview.vue2.js +4 -5
  402. package/dist/views/Request/ResponseSection/ResponseBodyVirtual.vue.js +1 -1
  403. package/dist/views/Request/ResponseSection/ResponseCookies.vue.js +3 -3
  404. package/dist/views/Request/ResponseSection/ResponseEmpty.vue2.js +4 -4
  405. package/dist/views/Request/ResponseSection/ResponseHeaders.vue.js +11 -13
  406. package/dist/views/Request/ResponseSection/ResponseLoadingOverlay.vue2.js +7 -8
  407. package/dist/views/Request/components/WorkspaceDropdown.vue.js +11 -14
  408. package/dist/views/Request/libs/oauth2.d.ts +1 -1
  409. package/dist/views/Request/libs/oauth2.d.ts.map +1 -1
  410. package/dist/views/Settings/SettingsGeneral.vue.js +40 -42
  411. package/dist/views/Settings/components/SettingsAppearance.vue.js +8 -11
  412. package/package.json +52 -27
  413. package/dist/hooks/useKeyMap.d.ts +0 -2
  414. package/dist/hooks/useKeyMap.d.ts.map +0 -1
  415. package/dist/hooks/useKeyMap.js +0 -9
  416. package/dist/router.d.ts +0 -8
  417. package/dist/router.d.ts.map +0 -1
  418. package/dist/router.js +0 -20
package/CHANGELOG.md CHANGED
@@ -1,5 +1,95 @@
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
+
61
+ ## 2.8.1
62
+
63
+ ### Patch Changes
64
+
65
+ - 577150c: fix(api-client): create-request-operation - await from pluginManager onResponseReceived executeHook
66
+ - f3e17d8: fix(api-client): create-request-operation - await Promise from pluginManager.executeHook
67
+ - 8e4c8c0: feat: export all blocks
68
+ - f8efecd: feat: use new schema example generation in the response
69
+ - Updated dependencies [f8efecd]
70
+ - Updated dependencies [3f6d0b9]
71
+ - Updated dependencies [2089748]
72
+ - Updated dependencies [f3e17d8]
73
+ - Updated dependencies [f8efecd]
74
+ - Updated dependencies [8a7fb2a]
75
+ - Updated dependencies [1335923]
76
+ - Updated dependencies [07397c8]
77
+ - Updated dependencies [f69e7cc]
78
+ - @scalar/components@0.15.1
79
+ - @scalar/helpers@0.0.12
80
+ - @scalar/json-magic@0.6.1
81
+ - @scalar/types@0.3.2
82
+ - @scalar/oas-utils@0.5.2
83
+ - @scalar/workspace-store@0.17.1
84
+ - @scalar/openapi-types@0.5.0
85
+ - @scalar/use-codemirror@0.12.43
86
+ - @scalar/import@0.4.31
87
+ - @scalar/object-utils@1.2.8
88
+ - @scalar/postman-to-openapi@0.3.40
89
+ - @scalar/openapi-parser@0.22.3
90
+ - @scalar/snippetz@0.5.1
91
+ - @scalar/themes@0.13.22
92
+
3
93
  ## 2.8.0
4
94
 
5
95
  ### Minor 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,
@@ -91,7 +91,7 @@ export declare const PaletteComponents: {
91
91
  deprecated?: boolean | undefined;
92
92
  schema?: unknown;
93
93
  content?: unknown;
94
- style?: "matrix" | "simple" | "form" | "label" | "spaceDelimited" | "pipeDelimited" | "deepObject" | undefined;
94
+ style?: "matrix" | "label" | "form" | "simple" | "spaceDelimited" | "pipeDelimited" | "deepObject" | undefined;
95
95
  explode?: boolean | undefined;
96
96
  example?: unknown;
97
97
  examples?: Record<string, {
@@ -121,7 +121,7 @@ export declare const PaletteComponents: {
121
121
  type?: "request" | undefined;
122
122
  uid?: string | undefined;
123
123
  path?: string | undefined;
124
- method?: "delete" | "get" | "connect" | "head" | "options" | "patch" | "post" | "put" | "trace" | undefined;
124
+ method?: "delete" | "get" | "head" | "options" | "patch" | "post" | "put" | "trace" | undefined;
125
125
  servers?: string[] | undefined;
126
126
  selectedServerUid?: string | null | undefined;
127
127
  examples?: string[] | undefined;
@@ -159,7 +159,7 @@ export declare const PaletteComponents: {
159
159
  deprecated?: boolean | undefined;
160
160
  schema?: unknown;
161
161
  content?: unknown;
162
- style?: "matrix" | "simple" | "form" | "label" | "spaceDelimited" | "pipeDelimited" | "deepObject" | undefined;
162
+ style?: "matrix" | "label" | "form" | "simple" | "spaceDelimited" | "pipeDelimited" | "deepObject" | undefined;
163
163
  explode?: boolean | undefined;
164
164
  example?: unknown;
165
165
  examples?: Record<string, {
@@ -189,7 +189,7 @@ export declare const PaletteComponents: {
189
189
  type?: "request" | undefined;
190
190
  uid?: string | undefined;
191
191
  path?: string | undefined;
192
- method?: "delete" | "get" | "connect" | "head" | "options" | "patch" | "post" | "put" | "trace" | undefined;
192
+ method?: "delete" | "get" | "head" | "options" | "patch" | "post" | "put" | "trace" | undefined;
193
193
  servers?: string[] | undefined;
194
194
  selectedServerUid?: string | null | undefined;
195
195
  examples?: string[] | undefined;